rev |
line source |
alpar@9
|
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
alpar@9
|
2 #
|
alpar@9
|
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
alpar@9
|
4 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
alpar@9
|
5 # Written by Gordon Matzigkeit, 1996
|
alpar@9
|
6 #
|
alpar@9
|
7 # This file is free software; the Free Software Foundation gives
|
alpar@9
|
8 # unlimited permission to copy and/or distribute it, with or without
|
alpar@9
|
9 # modifications, as long as this notice is preserved.
|
alpar@9
|
10
|
alpar@9
|
11 m4_define([_LT_COPYING], [dnl
|
alpar@9
|
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
alpar@9
|
13 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
alpar@9
|
14 # Written by Gordon Matzigkeit, 1996
|
alpar@9
|
15 #
|
alpar@9
|
16 # This file is part of GNU Libtool.
|
alpar@9
|
17 #
|
alpar@9
|
18 # GNU Libtool is free software; you can redistribute it and/or
|
alpar@9
|
19 # modify it under the terms of the GNU General Public License as
|
alpar@9
|
20 # published by the Free Software Foundation; either version 2 of
|
alpar@9
|
21 # the License, or (at your option) any later version.
|
alpar@9
|
22 #
|
alpar@9
|
23 # As a special exception to the GNU General Public License,
|
alpar@9
|
24 # if you distribute this file as part of a program or library that
|
alpar@9
|
25 # is built using GNU Libtool, you may include this file under the
|
alpar@9
|
26 # same distribution terms that you use for the rest of that program.
|
alpar@9
|
27 #
|
alpar@9
|
28 # GNU Libtool is distributed in the hope that it will be useful,
|
alpar@9
|
29 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
alpar@9
|
30 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
alpar@9
|
31 # GNU General Public License for more details.
|
alpar@9
|
32 #
|
alpar@9
|
33 # You should have received a copy of the GNU General Public License
|
alpar@9
|
34 # along with GNU Libtool; see the file COPYING. If not, a copy
|
alpar@9
|
35 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
alpar@9
|
36 # obtained by writing to the Free Software Foundation, Inc.,
|
alpar@9
|
37 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
alpar@9
|
38 ])
|
alpar@9
|
39
|
alpar@9
|
40 # serial 56 LT_INIT
|
alpar@9
|
41
|
alpar@9
|
42
|
alpar@9
|
43 # LT_PREREQ(VERSION)
|
alpar@9
|
44 # ------------------
|
alpar@9
|
45 # Complain and exit if this libtool version is less that VERSION.
|
alpar@9
|
46 m4_defun([LT_PREREQ],
|
alpar@9
|
47 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
alpar@9
|
48 [m4_default([$3],
|
alpar@9
|
49 [m4_fatal([Libtool version $1 or higher is required],
|
alpar@9
|
50 63)])],
|
alpar@9
|
51 [$2])])
|
alpar@9
|
52
|
alpar@9
|
53
|
alpar@9
|
54 # _LT_CHECK_BUILDDIR
|
alpar@9
|
55 # ------------------
|
alpar@9
|
56 # Complain if the absolute build directory name contains unusual characters
|
alpar@9
|
57 m4_defun([_LT_CHECK_BUILDDIR],
|
alpar@9
|
58 [case `pwd` in
|
alpar@9
|
59 *\ * | *\ *)
|
alpar@9
|
60 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
alpar@9
|
61 esac
|
alpar@9
|
62 ])
|
alpar@9
|
63
|
alpar@9
|
64
|
alpar@9
|
65 # LT_INIT([OPTIONS])
|
alpar@9
|
66 # ------------------
|
alpar@9
|
67 AC_DEFUN([LT_INIT],
|
alpar@9
|
68 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
alpar@9
|
69 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
alpar@9
|
70 AC_BEFORE([$0], [LT_LANG])dnl
|
alpar@9
|
71 AC_BEFORE([$0], [LT_OUTPUT])dnl
|
alpar@9
|
72 AC_BEFORE([$0], [LTDL_INIT])dnl
|
alpar@9
|
73 m4_require([_LT_CHECK_BUILDDIR])dnl
|
alpar@9
|
74
|
alpar@9
|
75 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
alpar@9
|
76 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
alpar@9
|
77 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
alpar@9
|
78 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
alpar@9
|
79 dnl unless we require an AC_DEFUNed macro:
|
alpar@9
|
80 AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
alpar@9
|
81 AC_REQUIRE([LTSUGAR_VERSION])dnl
|
alpar@9
|
82 AC_REQUIRE([LTVERSION_VERSION])dnl
|
alpar@9
|
83 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
alpar@9
|
84 m4_require([_LT_PROG_LTMAIN])dnl
|
alpar@9
|
85
|
alpar@9
|
86 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
|
alpar@9
|
87
|
alpar@9
|
88 dnl Parse OPTIONS
|
alpar@9
|
89 _LT_SET_OPTIONS([$0], [$1])
|
alpar@9
|
90
|
alpar@9
|
91 # This can be used to rebuild libtool when needed
|
alpar@9
|
92 LIBTOOL_DEPS="$ltmain"
|
alpar@9
|
93
|
alpar@9
|
94 # Always use our own libtool.
|
alpar@9
|
95 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
alpar@9
|
96 AC_SUBST(LIBTOOL)dnl
|
alpar@9
|
97
|
alpar@9
|
98 _LT_SETUP
|
alpar@9
|
99
|
alpar@9
|
100 # Only expand once:
|
alpar@9
|
101 m4_define([LT_INIT])
|
alpar@9
|
102 ])# LT_INIT
|
alpar@9
|
103
|
alpar@9
|
104 # Old names:
|
alpar@9
|
105 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
alpar@9
|
106 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
alpar@9
|
107 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
108 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
alpar@9
|
109 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
alpar@9
|
110
|
alpar@9
|
111
|
alpar@9
|
112 # _LT_CC_BASENAME(CC)
|
alpar@9
|
113 # -------------------
|
alpar@9
|
114 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
alpar@9
|
115 m4_defun([_LT_CC_BASENAME],
|
alpar@9
|
116 [for cc_temp in $1""; do
|
alpar@9
|
117 case $cc_temp in
|
alpar@9
|
118 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
alpar@9
|
119 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
alpar@9
|
120 \-*) ;;
|
alpar@9
|
121 *) break;;
|
alpar@9
|
122 esac
|
alpar@9
|
123 done
|
alpar@9
|
124 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
alpar@9
|
125 ])
|
alpar@9
|
126
|
alpar@9
|
127
|
alpar@9
|
128 # _LT_FILEUTILS_DEFAULTS
|
alpar@9
|
129 # ----------------------
|
alpar@9
|
130 # It is okay to use these file commands and assume they have been set
|
alpar@9
|
131 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
|
alpar@9
|
132 m4_defun([_LT_FILEUTILS_DEFAULTS],
|
alpar@9
|
133 [: ${CP="cp -f"}
|
alpar@9
|
134 : ${MV="mv -f"}
|
alpar@9
|
135 : ${RM="rm -f"}
|
alpar@9
|
136 ])# _LT_FILEUTILS_DEFAULTS
|
alpar@9
|
137
|
alpar@9
|
138
|
alpar@9
|
139 # _LT_SETUP
|
alpar@9
|
140 # ---------
|
alpar@9
|
141 m4_defun([_LT_SETUP],
|
alpar@9
|
142 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
143 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
alpar@9
|
144 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
|
alpar@9
|
145 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
|
alpar@9
|
146
|
alpar@9
|
147 _LT_DECL([], [host_alias], [0], [The host system])dnl
|
alpar@9
|
148 _LT_DECL([], [host], [0])dnl
|
alpar@9
|
149 _LT_DECL([], [host_os], [0])dnl
|
alpar@9
|
150 dnl
|
alpar@9
|
151 _LT_DECL([], [build_alias], [0], [The build system])dnl
|
alpar@9
|
152 _LT_DECL([], [build], [0])dnl
|
alpar@9
|
153 _LT_DECL([], [build_os], [0])dnl
|
alpar@9
|
154 dnl
|
alpar@9
|
155 AC_REQUIRE([AC_PROG_CC])dnl
|
alpar@9
|
156 AC_REQUIRE([LT_PATH_LD])dnl
|
alpar@9
|
157 AC_REQUIRE([LT_PATH_NM])dnl
|
alpar@9
|
158 dnl
|
alpar@9
|
159 AC_REQUIRE([AC_PROG_LN_S])dnl
|
alpar@9
|
160 test -z "$LN_S" && LN_S="ln -s"
|
alpar@9
|
161 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
alpar@9
|
162 dnl
|
alpar@9
|
163 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
alpar@9
|
164 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
alpar@9
|
165 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
alpar@9
|
166 dnl
|
alpar@9
|
167 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
168 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
alpar@9
|
169 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
alpar@9
|
170 m4_require([_LT_CMD_RELOAD])dnl
|
alpar@9
|
171 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
alpar@9
|
172 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
alpar@9
|
173 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
alpar@9
|
174 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
alpar@9
|
175
|
alpar@9
|
176 _LT_CONFIG_LIBTOOL_INIT([
|
alpar@9
|
177 # See if we are running on zsh, and set the options which allow our
|
alpar@9
|
178 # commands through without removal of \ escapes INIT.
|
alpar@9
|
179 if test -n "\${ZSH_VERSION+set}" ; then
|
alpar@9
|
180 setopt NO_GLOB_SUBST
|
alpar@9
|
181 fi
|
alpar@9
|
182 ])
|
alpar@9
|
183 if test -n "${ZSH_VERSION+set}" ; then
|
alpar@9
|
184 setopt NO_GLOB_SUBST
|
alpar@9
|
185 fi
|
alpar@9
|
186
|
alpar@9
|
187 _LT_CHECK_OBJDIR
|
alpar@9
|
188
|
alpar@9
|
189 m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
190
|
alpar@9
|
191 case $host_os in
|
alpar@9
|
192 aix3*)
|
alpar@9
|
193 # AIX sometimes has problems with the GCC collect2 program. For some
|
alpar@9
|
194 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
alpar@9
|
195 # vanish in a puff of smoke.
|
alpar@9
|
196 if test "X${COLLECT_NAMES+set}" != Xset; then
|
alpar@9
|
197 COLLECT_NAMES=
|
alpar@9
|
198 export COLLECT_NAMES
|
alpar@9
|
199 fi
|
alpar@9
|
200 ;;
|
alpar@9
|
201 esac
|
alpar@9
|
202
|
alpar@9
|
203 # Global variables:
|
alpar@9
|
204 ofile=libtool
|
alpar@9
|
205 can_build_shared=yes
|
alpar@9
|
206
|
alpar@9
|
207 # All known linkers require a `.a' archive for static linking (except MSVC,
|
alpar@9
|
208 # which needs '.lib').
|
alpar@9
|
209 libext=a
|
alpar@9
|
210
|
alpar@9
|
211 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
alpar@9
|
212
|
alpar@9
|
213 old_CC="$CC"
|
alpar@9
|
214 old_CFLAGS="$CFLAGS"
|
alpar@9
|
215
|
alpar@9
|
216 # Set sane defaults for various variables
|
alpar@9
|
217 test -z "$CC" && CC=cc
|
alpar@9
|
218 test -z "$LTCC" && LTCC=$CC
|
alpar@9
|
219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
alpar@9
|
220 test -z "$LD" && LD=ld
|
alpar@9
|
221 test -z "$ac_objext" && ac_objext=o
|
alpar@9
|
222
|
alpar@9
|
223 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
224
|
alpar@9
|
225 # Only perform the check for file, if the check method requires it
|
alpar@9
|
226 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
alpar@9
|
227 case $deplibs_check_method in
|
alpar@9
|
228 file_magic*)
|
alpar@9
|
229 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
alpar@9
|
230 _LT_PATH_MAGIC
|
alpar@9
|
231 fi
|
alpar@9
|
232 ;;
|
alpar@9
|
233 esac
|
alpar@9
|
234
|
alpar@9
|
235 # Use C for the default configuration in the libtool script
|
alpar@9
|
236 LT_SUPPORTED_TAG([CC])
|
alpar@9
|
237 _LT_LANG_C_CONFIG
|
alpar@9
|
238 _LT_LANG_DEFAULT_CONFIG
|
alpar@9
|
239 _LT_CONFIG_COMMANDS
|
alpar@9
|
240 ])# _LT_SETUP
|
alpar@9
|
241
|
alpar@9
|
242
|
alpar@9
|
243 # _LT_PREPARE_SED_QUOTE_VARS
|
alpar@9
|
244 # --------------------------
|
alpar@9
|
245 # Define a few sed substitution that help us do robust quoting.
|
alpar@9
|
246 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
|
alpar@9
|
247 [# Backslashify metacharacters that are still active within
|
alpar@9
|
248 # double-quoted strings.
|
alpar@9
|
249 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
alpar@9
|
250
|
alpar@9
|
251 # Same as above, but do not quote variable references.
|
alpar@9
|
252 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
alpar@9
|
253
|
alpar@9
|
254 # Sed substitution to delay expansion of an escaped shell variable in a
|
alpar@9
|
255 # double_quote_subst'ed string.
|
alpar@9
|
256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
alpar@9
|
257
|
alpar@9
|
258 # Sed substitution to delay expansion of an escaped single quote.
|
alpar@9
|
259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
alpar@9
|
260
|
alpar@9
|
261 # Sed substitution to avoid accidental globbing in evaled expressions
|
alpar@9
|
262 no_glob_subst='s/\*/\\\*/g'
|
alpar@9
|
263 ])
|
alpar@9
|
264
|
alpar@9
|
265 # _LT_PROG_LTMAIN
|
alpar@9
|
266 # ---------------
|
alpar@9
|
267 # Note that this code is called both from `configure', and `config.status'
|
alpar@9
|
268 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
alpar@9
|
269 # `config.status' has no value for ac_aux_dir unless we are using Automake,
|
alpar@9
|
270 # so we pass a copy along to make sure it has a sensible value anyway.
|
alpar@9
|
271 m4_defun([_LT_PROG_LTMAIN],
|
alpar@9
|
272 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
alpar@9
|
273 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
alpar@9
|
274 ltmain="$ac_aux_dir/ltmain.sh"
|
alpar@9
|
275 ])# _LT_PROG_LTMAIN
|
alpar@9
|
276
|
alpar@9
|
277
|
alpar@9
|
278 ## ------------------------------------- ##
|
alpar@9
|
279 ## Accumulate code for creating libtool. ##
|
alpar@9
|
280 ## ------------------------------------- ##
|
alpar@9
|
281
|
alpar@9
|
282 # So that we can recreate a full libtool script including additional
|
alpar@9
|
283 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
alpar@9
|
284 # in macros and then make a single call at the end using the `libtool'
|
alpar@9
|
285 # label.
|
alpar@9
|
286
|
alpar@9
|
287
|
alpar@9
|
288 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
alpar@9
|
289 # ----------------------------------------
|
alpar@9
|
290 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
alpar@9
|
291 m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
alpar@9
|
292 [m4_ifval([$1],
|
alpar@9
|
293 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
alpar@9
|
294 [$1
|
alpar@9
|
295 ])])])
|
alpar@9
|
296
|
alpar@9
|
297 # Initialize.
|
alpar@9
|
298 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
alpar@9
|
299
|
alpar@9
|
300
|
alpar@9
|
301 # _LT_CONFIG_LIBTOOL([COMMANDS])
|
alpar@9
|
302 # ------------------------------
|
alpar@9
|
303 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
alpar@9
|
304 m4_define([_LT_CONFIG_LIBTOOL],
|
alpar@9
|
305 [m4_ifval([$1],
|
alpar@9
|
306 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
alpar@9
|
307 [$1
|
alpar@9
|
308 ])])])
|
alpar@9
|
309
|
alpar@9
|
310 # Initialize.
|
alpar@9
|
311 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
alpar@9
|
312
|
alpar@9
|
313
|
alpar@9
|
314 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
alpar@9
|
315 # -----------------------------------------------------
|
alpar@9
|
316 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
alpar@9
|
317 [_LT_CONFIG_LIBTOOL([$1])
|
alpar@9
|
318 _LT_CONFIG_LIBTOOL_INIT([$2])
|
alpar@9
|
319 ])
|
alpar@9
|
320
|
alpar@9
|
321
|
alpar@9
|
322 # _LT_FORMAT_COMMENT([COMMENT])
|
alpar@9
|
323 # -----------------------------
|
alpar@9
|
324 # Add leading comment marks to the start of each line, and a trailing
|
alpar@9
|
325 # full-stop to the whole comment if one is not present already.
|
alpar@9
|
326 m4_define([_LT_FORMAT_COMMENT],
|
alpar@9
|
327 [m4_ifval([$1], [
|
alpar@9
|
328 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
alpar@9
|
329 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
alpar@9
|
330 )])
|
alpar@9
|
331
|
alpar@9
|
332
|
alpar@9
|
333
|
alpar@9
|
334 ## ------------------------ ##
|
alpar@9
|
335 ## FIXME: Eliminate VARNAME ##
|
alpar@9
|
336 ## ------------------------ ##
|
alpar@9
|
337
|
alpar@9
|
338
|
alpar@9
|
339 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
alpar@9
|
340 # -------------------------------------------------------------------
|
alpar@9
|
341 # CONFIGNAME is the name given to the value in the libtool script.
|
alpar@9
|
342 # VARNAME is the (base) name used in the configure script.
|
alpar@9
|
343 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
alpar@9
|
344 # VARNAME. Any other value will be used directly.
|
alpar@9
|
345 m4_define([_LT_DECL],
|
alpar@9
|
346 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
alpar@9
|
347 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
alpar@9
|
348 [m4_ifval([$1], [$1], [$2])])
|
alpar@9
|
349 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
alpar@9
|
350 m4_ifval([$4],
|
alpar@9
|
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
alpar@9
|
352 lt_dict_add_subkey([lt_decl_dict], [$2],
|
alpar@9
|
353 [tagged?], [m4_ifval([$5], [yes], [no])])])
|
alpar@9
|
354 ])
|
alpar@9
|
355
|
alpar@9
|
356
|
alpar@9
|
357 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
alpar@9
|
358 # --------------------------------------------------------
|
alpar@9
|
359 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
alpar@9
|
360
|
alpar@9
|
361
|
alpar@9
|
362 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
alpar@9
|
363 # ------------------------------------------------
|
alpar@9
|
364 m4_define([lt_decl_tag_varnames],
|
alpar@9
|
365 [_lt_decl_filter([tagged?], [yes], $@)])
|
alpar@9
|
366
|
alpar@9
|
367
|
alpar@9
|
368 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
alpar@9
|
369 # ---------------------------------------------------------
|
alpar@9
|
370 m4_define([_lt_decl_filter],
|
alpar@9
|
371 [m4_case([$#],
|
alpar@9
|
372 [0], [m4_fatal([$0: too few arguments: $#])],
|
alpar@9
|
373 [1], [m4_fatal([$0: too few arguments: $#: $1])],
|
alpar@9
|
374 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
alpar@9
|
375 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
alpar@9
|
376 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
alpar@9
|
377 ])
|
alpar@9
|
378
|
alpar@9
|
379
|
alpar@9
|
380 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
alpar@9
|
381 # --------------------------------------------------
|
alpar@9
|
382 m4_define([lt_decl_quote_varnames],
|
alpar@9
|
383 [_lt_decl_filter([value], [1], $@)])
|
alpar@9
|
384
|
alpar@9
|
385
|
alpar@9
|
386 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
alpar@9
|
387 # ---------------------------------------------------
|
alpar@9
|
388 m4_define([lt_decl_dquote_varnames],
|
alpar@9
|
389 [_lt_decl_filter([value], [2], $@)])
|
alpar@9
|
390
|
alpar@9
|
391
|
alpar@9
|
392 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
alpar@9
|
393 # ---------------------------------------------------
|
alpar@9
|
394 m4_define([lt_decl_varnames_tagged],
|
alpar@9
|
395 [m4_assert([$# <= 2])dnl
|
alpar@9
|
396 _$0(m4_quote(m4_default([$1], [[, ]])),
|
alpar@9
|
397 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
alpar@9
|
398 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
alpar@9
|
399 m4_define([_lt_decl_varnames_tagged],
|
alpar@9
|
400 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
alpar@9
|
401
|
alpar@9
|
402
|
alpar@9
|
403 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
alpar@9
|
404 # ------------------------------------------------
|
alpar@9
|
405 m4_define([lt_decl_all_varnames],
|
alpar@9
|
406 [_$0(m4_quote(m4_default([$1], [[, ]])),
|
alpar@9
|
407 m4_if([$2], [],
|
alpar@9
|
408 m4_quote(lt_decl_varnames),
|
alpar@9
|
409 m4_quote(m4_shift($@))))[]dnl
|
alpar@9
|
410 ])
|
alpar@9
|
411 m4_define([_lt_decl_all_varnames],
|
alpar@9
|
412 [lt_join($@, lt_decl_varnames_tagged([$1],
|
alpar@9
|
413 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
alpar@9
|
414 ])
|
alpar@9
|
415
|
alpar@9
|
416
|
alpar@9
|
417 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
alpar@9
|
418 # ------------------------------------
|
alpar@9
|
419 # Quote a variable value, and forward it to `config.status' so that its
|
alpar@9
|
420 # declaration there will have the same value as in `configure'. VARNAME
|
alpar@9
|
421 # must have a single quote delimited value for this to work.
|
alpar@9
|
422 m4_define([_LT_CONFIG_STATUS_DECLARE],
|
alpar@9
|
423 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
|
alpar@9
|
424
|
alpar@9
|
425
|
alpar@9
|
426 # _LT_CONFIG_STATUS_DECLARATIONS
|
alpar@9
|
427 # ------------------------------
|
alpar@9
|
428 # We delimit libtool config variables with single quotes, so when
|
alpar@9
|
429 # we write them to config.status, we have to be sure to quote all
|
alpar@9
|
430 # embedded single quotes properly. In configure, this macro expands
|
alpar@9
|
431 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
alpar@9
|
432 #
|
alpar@9
|
433 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
|
alpar@9
|
434 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
alpar@9
|
435 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
alpar@9
|
436 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
alpar@9
|
437
|
alpar@9
|
438
|
alpar@9
|
439 # _LT_LIBTOOL_TAGS
|
alpar@9
|
440 # ----------------
|
alpar@9
|
441 # Output comment and list of tags supported by the script
|
alpar@9
|
442 m4_defun([_LT_LIBTOOL_TAGS],
|
alpar@9
|
443 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
alpar@9
|
444 available_tags="_LT_TAGS"dnl
|
alpar@9
|
445 ])
|
alpar@9
|
446
|
alpar@9
|
447
|
alpar@9
|
448 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
alpar@9
|
449 # -----------------------------------
|
alpar@9
|
450 # Extract the dictionary values for VARNAME (optionally with TAG) and
|
alpar@9
|
451 # expand to a commented shell variable setting:
|
alpar@9
|
452 #
|
alpar@9
|
453 # # Some comment about what VAR is for.
|
alpar@9
|
454 # visible_name=$lt_internal_name
|
alpar@9
|
455 m4_define([_LT_LIBTOOL_DECLARE],
|
alpar@9
|
456 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
alpar@9
|
457 [description])))[]dnl
|
alpar@9
|
458 m4_pushdef([_libtool_name],
|
alpar@9
|
459 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
alpar@9
|
460 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
alpar@9
|
461 [0], [_libtool_name=[$]$1],
|
alpar@9
|
462 [1], [_libtool_name=$lt_[]$1],
|
alpar@9
|
463 [2], [_libtool_name=$lt_[]$1],
|
alpar@9
|
464 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
alpar@9
|
465 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
alpar@9
|
466 ])
|
alpar@9
|
467
|
alpar@9
|
468
|
alpar@9
|
469 # _LT_LIBTOOL_CONFIG_VARS
|
alpar@9
|
470 # -----------------------
|
alpar@9
|
471 # Produce commented declarations of non-tagged libtool config variables
|
alpar@9
|
472 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
|
alpar@9
|
473 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
alpar@9
|
474 # section) are produced by _LT_LIBTOOL_TAG_VARS.
|
alpar@9
|
475 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
alpar@9
|
476 [m4_foreach([_lt_var],
|
alpar@9
|
477 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
alpar@9
|
478 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
alpar@9
|
479
|
alpar@9
|
480
|
alpar@9
|
481 # _LT_LIBTOOL_TAG_VARS(TAG)
|
alpar@9
|
482 # -------------------------
|
alpar@9
|
483 m4_define([_LT_LIBTOOL_TAG_VARS],
|
alpar@9
|
484 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
alpar@9
|
485 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
alpar@9
|
486
|
alpar@9
|
487
|
alpar@9
|
488 # _LT_TAGVAR(VARNAME, [TAGNAME])
|
alpar@9
|
489 # ------------------------------
|
alpar@9
|
490 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
alpar@9
|
491
|
alpar@9
|
492
|
alpar@9
|
493 # _LT_CONFIG_COMMANDS
|
alpar@9
|
494 # -------------------
|
alpar@9
|
495 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
alpar@9
|
496 # variables for single and double quote escaping we saved from calls
|
alpar@9
|
497 # to _LT_DECL, we can put quote escaped variables declarations
|
alpar@9
|
498 # into `config.status', and then the shell code to quote escape them in
|
alpar@9
|
499 # for loops in `config.status'. Finally, any additional code accumulated
|
alpar@9
|
500 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
alpar@9
|
501 m4_defun([_LT_CONFIG_COMMANDS],
|
alpar@9
|
502 [AC_PROVIDE_IFELSE([LT_OUTPUT],
|
alpar@9
|
503 dnl If the libtool generation code has been placed in $CONFIG_LT,
|
alpar@9
|
504 dnl instead of duplicating it all over again into config.status,
|
alpar@9
|
505 dnl then we will have config.status run $CONFIG_LT later, so it
|
alpar@9
|
506 dnl needs to know what name is stored there:
|
alpar@9
|
507 [AC_CONFIG_COMMANDS([libtool],
|
alpar@9
|
508 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
alpar@9
|
509 dnl If the libtool generation code is destined for config.status,
|
alpar@9
|
510 dnl expand the accumulated commands and init code now:
|
alpar@9
|
511 [AC_CONFIG_COMMANDS([libtool],
|
alpar@9
|
512 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
alpar@9
|
513 ])#_LT_CONFIG_COMMANDS
|
alpar@9
|
514
|
alpar@9
|
515
|
alpar@9
|
516 # Initialize.
|
alpar@9
|
517 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
alpar@9
|
518 [
|
alpar@9
|
519
|
alpar@9
|
520 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
alpar@9
|
521 # if CDPATH is set.
|
alpar@9
|
522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
alpar@9
|
523
|
alpar@9
|
524 sed_quote_subst='$sed_quote_subst'
|
alpar@9
|
525 double_quote_subst='$double_quote_subst'
|
alpar@9
|
526 delay_variable_subst='$delay_variable_subst'
|
alpar@9
|
527 _LT_CONFIG_STATUS_DECLARATIONS
|
alpar@9
|
528 LTCC='$LTCC'
|
alpar@9
|
529 LTCFLAGS='$LTCFLAGS'
|
alpar@9
|
530 compiler='$compiler_DEFAULT'
|
alpar@9
|
531
|
alpar@9
|
532 # A function that is used when there is no print builtin or printf.
|
alpar@9
|
533 func_fallback_echo ()
|
alpar@9
|
534 {
|
alpar@9
|
535 eval 'cat <<_LTECHO_EOF
|
alpar@9
|
536 \$[]1
|
alpar@9
|
537 _LTECHO_EOF'
|
alpar@9
|
538 }
|
alpar@9
|
539
|
alpar@9
|
540 # Quote evaled strings.
|
alpar@9
|
541 for var in lt_decl_all_varnames([[ \
|
alpar@9
|
542 ]], lt_decl_quote_varnames); do
|
alpar@9
|
543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
alpar@9
|
544 *[[\\\\\\\`\\"\\\$]]*)
|
alpar@9
|
545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
alpar@9
|
546 ;;
|
alpar@9
|
547 *)
|
alpar@9
|
548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
alpar@9
|
549 ;;
|
alpar@9
|
550 esac
|
alpar@9
|
551 done
|
alpar@9
|
552
|
alpar@9
|
553 # Double-quote double-evaled strings.
|
alpar@9
|
554 for var in lt_decl_all_varnames([[ \
|
alpar@9
|
555 ]], lt_decl_dquote_varnames); do
|
alpar@9
|
556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
alpar@9
|
557 *[[\\\\\\\`\\"\\\$]]*)
|
alpar@9
|
558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
alpar@9
|
559 ;;
|
alpar@9
|
560 *)
|
alpar@9
|
561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
alpar@9
|
562 ;;
|
alpar@9
|
563 esac
|
alpar@9
|
564 done
|
alpar@9
|
565
|
alpar@9
|
566 _LT_OUTPUT_LIBTOOL_INIT
|
alpar@9
|
567 ])
|
alpar@9
|
568
|
alpar@9
|
569 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
|
alpar@9
|
570 # ------------------------------------
|
alpar@9
|
571 # Generate a child script FILE with all initialization necessary to
|
alpar@9
|
572 # reuse the environment learned by the parent script, and make the
|
alpar@9
|
573 # file executable. If COMMENT is supplied, it is inserted after the
|
alpar@9
|
574 # `#!' sequence but before initialization text begins. After this
|
alpar@9
|
575 # macro, additional text can be appended to FILE to form the body of
|
alpar@9
|
576 # the child script. The macro ends with non-zero status if the
|
alpar@9
|
577 # file could not be fully written (such as if the disk is full).
|
alpar@9
|
578 m4_ifdef([AS_INIT_GENERATED],
|
alpar@9
|
579 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
|
alpar@9
|
580 [m4_defun([_LT_GENERATED_FILE_INIT],
|
alpar@9
|
581 [m4_require([AS_PREPARE])]dnl
|
alpar@9
|
582 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
|
alpar@9
|
583 [lt_write_fail=0
|
alpar@9
|
584 cat >$1 <<_ASEOF || lt_write_fail=1
|
alpar@9
|
585 #! $SHELL
|
alpar@9
|
586 # Generated by $as_me.
|
alpar@9
|
587 $2
|
alpar@9
|
588 SHELL=\${CONFIG_SHELL-$SHELL}
|
alpar@9
|
589 export SHELL
|
alpar@9
|
590 _ASEOF
|
alpar@9
|
591 cat >>$1 <<\_ASEOF || lt_write_fail=1
|
alpar@9
|
592 AS_SHELL_SANITIZE
|
alpar@9
|
593 _AS_PREPARE
|
alpar@9
|
594 exec AS_MESSAGE_FD>&1
|
alpar@9
|
595 _ASEOF
|
alpar@9
|
596 test $lt_write_fail = 0 && chmod +x $1[]dnl
|
alpar@9
|
597 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
|
alpar@9
|
598
|
alpar@9
|
599 # LT_OUTPUT
|
alpar@9
|
600 # ---------
|
alpar@9
|
601 # This macro allows early generation of the libtool script (before
|
alpar@9
|
602 # AC_OUTPUT is called), incase it is used in configure for compilation
|
alpar@9
|
603 # tests.
|
alpar@9
|
604 AC_DEFUN([LT_OUTPUT],
|
alpar@9
|
605 [: ${CONFIG_LT=./config.lt}
|
alpar@9
|
606 AC_MSG_NOTICE([creating $CONFIG_LT])
|
alpar@9
|
607 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
|
alpar@9
|
608 [# Run this file to recreate a libtool stub with the current configuration.])
|
alpar@9
|
609
|
alpar@9
|
610 cat >>"$CONFIG_LT" <<\_LTEOF
|
alpar@9
|
611 lt_cl_silent=false
|
alpar@9
|
612 exec AS_MESSAGE_LOG_FD>>config.log
|
alpar@9
|
613 {
|
alpar@9
|
614 echo
|
alpar@9
|
615 AS_BOX([Running $as_me.])
|
alpar@9
|
616 } >&AS_MESSAGE_LOG_FD
|
alpar@9
|
617
|
alpar@9
|
618 lt_cl_help="\
|
alpar@9
|
619 \`$as_me' creates a local libtool stub from the current configuration,
|
alpar@9
|
620 for use in further configure time tests before the real libtool is
|
alpar@9
|
621 generated.
|
alpar@9
|
622
|
alpar@9
|
623 Usage: $[0] [[OPTIONS]]
|
alpar@9
|
624
|
alpar@9
|
625 -h, --help print this help, then exit
|
alpar@9
|
626 -V, --version print version number, then exit
|
alpar@9
|
627 -q, --quiet do not print progress messages
|
alpar@9
|
628 -d, --debug don't remove temporary files
|
alpar@9
|
629
|
alpar@9
|
630 Report bugs to <bug-libtool@gnu.org>."
|
alpar@9
|
631
|
alpar@9
|
632 lt_cl_version="\
|
alpar@9
|
633 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
alpar@9
|
634 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
alpar@9
|
635 configured by $[0], generated by m4_PACKAGE_STRING.
|
alpar@9
|
636
|
alpar@9
|
637 Copyright (C) 2009 Free Software Foundation, Inc.
|
alpar@9
|
638 This config.lt script is free software; the Free Software Foundation
|
alpar@9
|
639 gives unlimited permision to copy, distribute and modify it."
|
alpar@9
|
640
|
alpar@9
|
641 while test $[#] != 0
|
alpar@9
|
642 do
|
alpar@9
|
643 case $[1] in
|
alpar@9
|
644 --version | --v* | -V )
|
alpar@9
|
645 echo "$lt_cl_version"; exit 0 ;;
|
alpar@9
|
646 --help | --h* | -h )
|
alpar@9
|
647 echo "$lt_cl_help"; exit 0 ;;
|
alpar@9
|
648 --debug | --d* | -d )
|
alpar@9
|
649 debug=: ;;
|
alpar@9
|
650 --quiet | --q* | --silent | --s* | -q )
|
alpar@9
|
651 lt_cl_silent=: ;;
|
alpar@9
|
652
|
alpar@9
|
653 -*) AC_MSG_ERROR([unrecognized option: $[1]
|
alpar@9
|
654 Try \`$[0] --help' for more information.]) ;;
|
alpar@9
|
655
|
alpar@9
|
656 *) AC_MSG_ERROR([unrecognized argument: $[1]
|
alpar@9
|
657 Try \`$[0] --help' for more information.]) ;;
|
alpar@9
|
658 esac
|
alpar@9
|
659 shift
|
alpar@9
|
660 done
|
alpar@9
|
661
|
alpar@9
|
662 if $lt_cl_silent; then
|
alpar@9
|
663 exec AS_MESSAGE_FD>/dev/null
|
alpar@9
|
664 fi
|
alpar@9
|
665 _LTEOF
|
alpar@9
|
666
|
alpar@9
|
667 cat >>"$CONFIG_LT" <<_LTEOF
|
alpar@9
|
668 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
alpar@9
|
669 _LTEOF
|
alpar@9
|
670
|
alpar@9
|
671 cat >>"$CONFIG_LT" <<\_LTEOF
|
alpar@9
|
672 AC_MSG_NOTICE([creating $ofile])
|
alpar@9
|
673 _LT_OUTPUT_LIBTOOL_COMMANDS
|
alpar@9
|
674 AS_EXIT(0)
|
alpar@9
|
675 _LTEOF
|
alpar@9
|
676 chmod +x "$CONFIG_LT"
|
alpar@9
|
677
|
alpar@9
|
678 # configure is writing to config.log, but config.lt does its own redirection,
|
alpar@9
|
679 # appending to config.log, which fails on DOS, as config.log is still kept
|
alpar@9
|
680 # open by configure. Here we exec the FD to /dev/null, effectively closing
|
alpar@9
|
681 # config.log, so it can be properly (re)opened and appended to by config.lt.
|
alpar@9
|
682 lt_cl_success=:
|
alpar@9
|
683 test "$silent" = yes &&
|
alpar@9
|
684 lt_config_lt_args="$lt_config_lt_args --quiet"
|
alpar@9
|
685 exec AS_MESSAGE_LOG_FD>/dev/null
|
alpar@9
|
686 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
alpar@9
|
687 exec AS_MESSAGE_LOG_FD>>config.log
|
alpar@9
|
688 $lt_cl_success || AS_EXIT(1)
|
alpar@9
|
689 ])# LT_OUTPUT
|
alpar@9
|
690
|
alpar@9
|
691
|
alpar@9
|
692 # _LT_CONFIG(TAG)
|
alpar@9
|
693 # ---------------
|
alpar@9
|
694 # If TAG is the built-in tag, create an initial libtool script with a
|
alpar@9
|
695 # default configuration from the untagged config vars. Otherwise add code
|
alpar@9
|
696 # to config.status for appending the configuration named by TAG from the
|
alpar@9
|
697 # matching tagged config vars.
|
alpar@9
|
698 m4_defun([_LT_CONFIG],
|
alpar@9
|
699 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
700 _LT_CONFIG_SAVE_COMMANDS([
|
alpar@9
|
701 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
alpar@9
|
702 m4_if(_LT_TAG, [C], [
|
alpar@9
|
703 # See if we are running on zsh, and set the options which allow our
|
alpar@9
|
704 # commands through without removal of \ escapes.
|
alpar@9
|
705 if test -n "${ZSH_VERSION+set}" ; then
|
alpar@9
|
706 setopt NO_GLOB_SUBST
|
alpar@9
|
707 fi
|
alpar@9
|
708
|
alpar@9
|
709 cfgfile="${ofile}T"
|
alpar@9
|
710 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
alpar@9
|
711 $RM "$cfgfile"
|
alpar@9
|
712
|
alpar@9
|
713 cat <<_LT_EOF >> "$cfgfile"
|
alpar@9
|
714 #! $SHELL
|
alpar@9
|
715
|
alpar@9
|
716 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
alpar@9
|
717 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
alpar@9
|
718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
alpar@9
|
719 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
alpar@9
|
720 #
|
alpar@9
|
721 _LT_COPYING
|
alpar@9
|
722 _LT_LIBTOOL_TAGS
|
alpar@9
|
723
|
alpar@9
|
724 # ### BEGIN LIBTOOL CONFIG
|
alpar@9
|
725 _LT_LIBTOOL_CONFIG_VARS
|
alpar@9
|
726 _LT_LIBTOOL_TAG_VARS
|
alpar@9
|
727 # ### END LIBTOOL CONFIG
|
alpar@9
|
728
|
alpar@9
|
729 _LT_EOF
|
alpar@9
|
730
|
alpar@9
|
731 case $host_os in
|
alpar@9
|
732 aix3*)
|
alpar@9
|
733 cat <<\_LT_EOF >> "$cfgfile"
|
alpar@9
|
734 # AIX sometimes has problems with the GCC collect2 program. For some
|
alpar@9
|
735 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
alpar@9
|
736 # vanish in a puff of smoke.
|
alpar@9
|
737 if test "X${COLLECT_NAMES+set}" != Xset; then
|
alpar@9
|
738 COLLECT_NAMES=
|
alpar@9
|
739 export COLLECT_NAMES
|
alpar@9
|
740 fi
|
alpar@9
|
741 _LT_EOF
|
alpar@9
|
742 ;;
|
alpar@9
|
743 esac
|
alpar@9
|
744
|
alpar@9
|
745 _LT_PROG_LTMAIN
|
alpar@9
|
746
|
alpar@9
|
747 # We use sed instead of cat because bash on DJGPP gets confused if
|
alpar@9
|
748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
alpar@9
|
749 # text mode, it properly converts lines to CR/LF. This bash problem
|
alpar@9
|
750 # is reportedly fixed, but why not run on old versions too?
|
alpar@9
|
751 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
alpar@9
|
752 || (rm -f "$cfgfile"; exit 1)
|
alpar@9
|
753
|
alpar@9
|
754 _LT_PROG_XSI_SHELLFNS
|
alpar@9
|
755
|
alpar@9
|
756 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
alpar@9
|
757 || (rm -f "$cfgfile"; exit 1)
|
alpar@9
|
758
|
alpar@9
|
759 mv -f "$cfgfile" "$ofile" ||
|
alpar@9
|
760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
alpar@9
|
761 chmod +x "$ofile"
|
alpar@9
|
762 ],
|
alpar@9
|
763 [cat <<_LT_EOF >> "$ofile"
|
alpar@9
|
764
|
alpar@9
|
765 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
alpar@9
|
766 dnl in a comment (ie after a #).
|
alpar@9
|
767 # ### BEGIN LIBTOOL TAG CONFIG: $1
|
alpar@9
|
768 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
alpar@9
|
769 # ### END LIBTOOL TAG CONFIG: $1
|
alpar@9
|
770 _LT_EOF
|
alpar@9
|
771 ])dnl /m4_if
|
alpar@9
|
772 ],
|
alpar@9
|
773 [m4_if([$1], [], [
|
alpar@9
|
774 PACKAGE='$PACKAGE'
|
alpar@9
|
775 VERSION='$VERSION'
|
alpar@9
|
776 TIMESTAMP='$TIMESTAMP'
|
alpar@9
|
777 RM='$RM'
|
alpar@9
|
778 ofile='$ofile'], [])
|
alpar@9
|
779 ])dnl /_LT_CONFIG_SAVE_COMMANDS
|
alpar@9
|
780 ])# _LT_CONFIG
|
alpar@9
|
781
|
alpar@9
|
782
|
alpar@9
|
783 # LT_SUPPORTED_TAG(TAG)
|
alpar@9
|
784 # ---------------------
|
alpar@9
|
785 # Trace this macro to discover what tags are supported by the libtool
|
alpar@9
|
786 # --tag option, using:
|
alpar@9
|
787 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
alpar@9
|
788 AC_DEFUN([LT_SUPPORTED_TAG], [])
|
alpar@9
|
789
|
alpar@9
|
790
|
alpar@9
|
791 # C support is built-in for now
|
alpar@9
|
792 m4_define([_LT_LANG_C_enabled], [])
|
alpar@9
|
793 m4_define([_LT_TAGS], [])
|
alpar@9
|
794
|
alpar@9
|
795
|
alpar@9
|
796 # LT_LANG(LANG)
|
alpar@9
|
797 # -------------
|
alpar@9
|
798 # Enable libtool support for the given language if not already enabled.
|
alpar@9
|
799 AC_DEFUN([LT_LANG],
|
alpar@9
|
800 [AC_BEFORE([$0], [LT_OUTPUT])dnl
|
alpar@9
|
801 m4_case([$1],
|
alpar@9
|
802 [C], [_LT_LANG(C)],
|
alpar@9
|
803 [C++], [_LT_LANG(CXX)],
|
alpar@9
|
804 [Java], [_LT_LANG(GCJ)],
|
alpar@9
|
805 [Fortran 77], [_LT_LANG(F77)],
|
alpar@9
|
806 [Fortran], [_LT_LANG(FC)],
|
alpar@9
|
807 [Windows Resource], [_LT_LANG(RC)],
|
alpar@9
|
808 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
alpar@9
|
809 [_LT_LANG($1)],
|
alpar@9
|
810 [m4_fatal([$0: unsupported language: "$1"])])])dnl
|
alpar@9
|
811 ])# LT_LANG
|
alpar@9
|
812
|
alpar@9
|
813
|
alpar@9
|
814 # _LT_LANG(LANGNAME)
|
alpar@9
|
815 # ------------------
|
alpar@9
|
816 m4_defun([_LT_LANG],
|
alpar@9
|
817 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
alpar@9
|
818 [LT_SUPPORTED_TAG([$1])dnl
|
alpar@9
|
819 m4_append([_LT_TAGS], [$1 ])dnl
|
alpar@9
|
820 m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
alpar@9
|
821 _LT_LANG_$1_CONFIG($1)])dnl
|
alpar@9
|
822 ])# _LT_LANG
|
alpar@9
|
823
|
alpar@9
|
824
|
alpar@9
|
825 # _LT_LANG_DEFAULT_CONFIG
|
alpar@9
|
826 # -----------------------
|
alpar@9
|
827 m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
alpar@9
|
828 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
alpar@9
|
829 [LT_LANG(CXX)],
|
alpar@9
|
830 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
alpar@9
|
831
|
alpar@9
|
832 AC_PROVIDE_IFELSE([AC_PROG_F77],
|
alpar@9
|
833 [LT_LANG(F77)],
|
alpar@9
|
834 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
alpar@9
|
835
|
alpar@9
|
836 AC_PROVIDE_IFELSE([AC_PROG_FC],
|
alpar@9
|
837 [LT_LANG(FC)],
|
alpar@9
|
838 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
alpar@9
|
839
|
alpar@9
|
840 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
alpar@9
|
841 dnl pulling things in needlessly.
|
alpar@9
|
842 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
alpar@9
|
843 [LT_LANG(GCJ)],
|
alpar@9
|
844 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
alpar@9
|
845 [LT_LANG(GCJ)],
|
alpar@9
|
846 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
alpar@9
|
847 [LT_LANG(GCJ)],
|
alpar@9
|
848 [m4_ifdef([AC_PROG_GCJ],
|
alpar@9
|
849 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
alpar@9
|
850 m4_ifdef([A][M_PROG_GCJ],
|
alpar@9
|
851 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
alpar@9
|
852 m4_ifdef([LT_PROG_GCJ],
|
alpar@9
|
853 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
alpar@9
|
854
|
alpar@9
|
855 AC_PROVIDE_IFELSE([LT_PROG_RC],
|
alpar@9
|
856 [LT_LANG(RC)],
|
alpar@9
|
857 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
alpar@9
|
858 ])# _LT_LANG_DEFAULT_CONFIG
|
alpar@9
|
859
|
alpar@9
|
860 # Obsolete macros:
|
alpar@9
|
861 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
alpar@9
|
862 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
alpar@9
|
863 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
alpar@9
|
864 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
alpar@9
|
865 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
|
alpar@9
|
866 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
867 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
alpar@9
|
868 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
alpar@9
|
869 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
alpar@9
|
870 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
alpar@9
|
871 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
|
alpar@9
|
872
|
alpar@9
|
873
|
alpar@9
|
874 # _LT_TAG_COMPILER
|
alpar@9
|
875 # ----------------
|
alpar@9
|
876 m4_defun([_LT_TAG_COMPILER],
|
alpar@9
|
877 [AC_REQUIRE([AC_PROG_CC])dnl
|
alpar@9
|
878
|
alpar@9
|
879 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
alpar@9
|
880 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
alpar@9
|
881 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
alpar@9
|
882 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
alpar@9
|
883
|
alpar@9
|
884 # If no C compiler was specified, use CC.
|
alpar@9
|
885 LTCC=${LTCC-"$CC"}
|
alpar@9
|
886
|
alpar@9
|
887 # If no C compiler flags were specified, use CFLAGS.
|
alpar@9
|
888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
alpar@9
|
889
|
alpar@9
|
890 # Allow CC to be a program name with arguments.
|
alpar@9
|
891 compiler=$CC
|
alpar@9
|
892 ])# _LT_TAG_COMPILER
|
alpar@9
|
893
|
alpar@9
|
894
|
alpar@9
|
895 # _LT_COMPILER_BOILERPLATE
|
alpar@9
|
896 # ------------------------
|
alpar@9
|
897 # Check for compiler boilerplate output or warnings with
|
alpar@9
|
898 # the simple compiler test code.
|
alpar@9
|
899 m4_defun([_LT_COMPILER_BOILERPLATE],
|
alpar@9
|
900 [m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
901 ac_outfile=conftest.$ac_objext
|
alpar@9
|
902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
alpar@9
|
903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
alpar@9
|
904 _lt_compiler_boilerplate=`cat conftest.err`
|
alpar@9
|
905 $RM conftest*
|
alpar@9
|
906 ])# _LT_COMPILER_BOILERPLATE
|
alpar@9
|
907
|
alpar@9
|
908
|
alpar@9
|
909 # _LT_LINKER_BOILERPLATE
|
alpar@9
|
910 # ----------------------
|
alpar@9
|
911 # Check for linker boilerplate output or warnings with
|
alpar@9
|
912 # the simple link test code.
|
alpar@9
|
913 m4_defun([_LT_LINKER_BOILERPLATE],
|
alpar@9
|
914 [m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
915 ac_outfile=conftest.$ac_objext
|
alpar@9
|
916 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
alpar@9
|
917 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
alpar@9
|
918 _lt_linker_boilerplate=`cat conftest.err`
|
alpar@9
|
919 $RM -r conftest*
|
alpar@9
|
920 ])# _LT_LINKER_BOILERPLATE
|
alpar@9
|
921
|
alpar@9
|
922 # _LT_REQUIRED_DARWIN_CHECKS
|
alpar@9
|
923 # -------------------------
|
alpar@9
|
924 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
alpar@9
|
925 case $host_os in
|
alpar@9
|
926 rhapsody* | darwin*)
|
alpar@9
|
927 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
alpar@9
|
928 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
alpar@9
|
929 AC_CHECK_TOOL([LIPO], [lipo], [:])
|
alpar@9
|
930 AC_CHECK_TOOL([OTOOL], [otool], [:])
|
alpar@9
|
931 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
alpar@9
|
932 _LT_DECL([], [DSYMUTIL], [1],
|
alpar@9
|
933 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
alpar@9
|
934 _LT_DECL([], [NMEDIT], [1],
|
alpar@9
|
935 [Tool to change global to local symbols on Mac OS X])
|
alpar@9
|
936 _LT_DECL([], [LIPO], [1],
|
alpar@9
|
937 [Tool to manipulate fat objects and archives on Mac OS X])
|
alpar@9
|
938 _LT_DECL([], [OTOOL], [1],
|
alpar@9
|
939 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
alpar@9
|
940 _LT_DECL([], [OTOOL64], [1],
|
alpar@9
|
941 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
alpar@9
|
942
|
alpar@9
|
943 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
alpar@9
|
944 [lt_cv_apple_cc_single_mod=no
|
alpar@9
|
945 if test -z "${LT_MULTI_MODULE}"; then
|
alpar@9
|
946 # By default we will add the -single_module flag. You can override
|
alpar@9
|
947 # by either setting the environment variable LT_MULTI_MODULE
|
alpar@9
|
948 # non-empty at configure time, or by adding -multi_module to the
|
alpar@9
|
949 # link flags.
|
alpar@9
|
950 rm -rf libconftest.dylib*
|
alpar@9
|
951 echo "int foo(void){return 1;}" > conftest.c
|
alpar@9
|
952 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
alpar@9
|
953 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
954 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
alpar@9
|
955 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
alpar@9
|
956 _lt_result=$?
|
alpar@9
|
957 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
alpar@9
|
958 lt_cv_apple_cc_single_mod=yes
|
alpar@9
|
959 else
|
alpar@9
|
960 cat conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
961 fi
|
alpar@9
|
962 rm -rf libconftest.dylib*
|
alpar@9
|
963 rm -f conftest.*
|
alpar@9
|
964 fi])
|
alpar@9
|
965 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
alpar@9
|
966 [lt_cv_ld_exported_symbols_list],
|
alpar@9
|
967 [lt_cv_ld_exported_symbols_list=no
|
alpar@9
|
968 save_LDFLAGS=$LDFLAGS
|
alpar@9
|
969 echo "_main" > conftest.sym
|
alpar@9
|
970 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
alpar@9
|
971 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
alpar@9
|
972 [lt_cv_ld_exported_symbols_list=yes],
|
alpar@9
|
973 [lt_cv_ld_exported_symbols_list=no])
|
alpar@9
|
974 LDFLAGS="$save_LDFLAGS"
|
alpar@9
|
975 ])
|
alpar@9
|
976 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
|
alpar@9
|
977 [lt_cv_ld_force_load=no
|
alpar@9
|
978 cat > conftest.c << _LT_EOF
|
alpar@9
|
979 int forced_loaded() { return 2;}
|
alpar@9
|
980 _LT_EOF
|
alpar@9
|
981 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
982 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
|
alpar@9
|
983 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
984 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
|
alpar@9
|
985 cat > conftest.c << _LT_EOF
|
alpar@9
|
986 int main() { return 0;}
|
alpar@9
|
987 _LT_EOF
|
alpar@9
|
988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
alpar@9
|
990 _lt_result=$?
|
alpar@9
|
991 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
|
alpar@9
|
992 lt_cv_ld_force_load=yes
|
alpar@9
|
993 else
|
alpar@9
|
994 cat conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
995 fi
|
alpar@9
|
996 rm -f conftest.err libconftest.a conftest conftest.c
|
alpar@9
|
997 rm -rf conftest.dSYM
|
alpar@9
|
998 ])
|
alpar@9
|
999 case $host_os in
|
alpar@9
|
1000 rhapsody* | darwin1.[[012]])
|
alpar@9
|
1001 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
alpar@9
|
1002 darwin1.*)
|
alpar@9
|
1003 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
alpar@9
|
1004 darwin*) # darwin 5.x on
|
alpar@9
|
1005 # if running on 10.5 or later, the deployment target defaults
|
alpar@9
|
1006 # to the OS version, if on x86, and 10.4, the deployment
|
alpar@9
|
1007 # target defaults to 10.4. Don't you love it?
|
alpar@9
|
1008 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
alpar@9
|
1009 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
alpar@9
|
1010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
alpar@9
|
1011 10.[[012]]*)
|
alpar@9
|
1012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
alpar@9
|
1013 10.*)
|
alpar@9
|
1014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
alpar@9
|
1015 esac
|
alpar@9
|
1016 ;;
|
alpar@9
|
1017 esac
|
alpar@9
|
1018 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
alpar@9
|
1019 _lt_dar_single_mod='$single_module'
|
alpar@9
|
1020 fi
|
alpar@9
|
1021 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
alpar@9
|
1022 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
alpar@9
|
1023 else
|
alpar@9
|
1024 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
alpar@9
|
1025 fi
|
alpar@9
|
1026 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
|
alpar@9
|
1027 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
alpar@9
|
1028 else
|
alpar@9
|
1029 _lt_dsymutil=
|
alpar@9
|
1030 fi
|
alpar@9
|
1031 ;;
|
alpar@9
|
1032 esac
|
alpar@9
|
1033 ])
|
alpar@9
|
1034
|
alpar@9
|
1035
|
alpar@9
|
1036 # _LT_DARWIN_LINKER_FEATURES
|
alpar@9
|
1037 # --------------------------
|
alpar@9
|
1038 # Checks for linker and compiler features on darwin
|
alpar@9
|
1039 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
alpar@9
|
1040 [
|
alpar@9
|
1041 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
alpar@9
|
1042 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
1043 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
1044 _LT_TAGVAR(hardcode_automatic, $1)=yes
|
alpar@9
|
1045 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
alpar@9
|
1046 if test "$lt_cv_ld_force_load" = "yes"; then
|
alpar@9
|
1047 _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\"`'
|
alpar@9
|
1048 else
|
alpar@9
|
1049 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
alpar@9
|
1050 fi
|
alpar@9
|
1051 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
1052 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
alpar@9
|
1053 case $cc_basename in
|
alpar@9
|
1054 ifort*) _lt_dar_can_shared=yes ;;
|
alpar@9
|
1055 *) _lt_dar_can_shared=$GCC ;;
|
alpar@9
|
1056 esac
|
alpar@9
|
1057 if test "$_lt_dar_can_shared" = "yes"; then
|
alpar@9
|
1058 output_verbose_link_cmd=func_echo_all
|
alpar@9
|
1059 _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}"
|
alpar@9
|
1060 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
alpar@9
|
1061 _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}"
|
alpar@9
|
1062 _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}"
|
alpar@9
|
1063 m4_if([$1], [CXX],
|
alpar@9
|
1064 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
|
alpar@9
|
1065 _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}"
|
alpar@9
|
1066 _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}"
|
alpar@9
|
1067 fi
|
alpar@9
|
1068 ],[])
|
alpar@9
|
1069 else
|
alpar@9
|
1070 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
1071 fi
|
alpar@9
|
1072 ])
|
alpar@9
|
1073
|
alpar@9
|
1074 # _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
1075 # -----------------------
|
alpar@9
|
1076 # Links a minimal program and checks the executable
|
alpar@9
|
1077 # for the system default hardcoded library path. In most cases,
|
alpar@9
|
1078 # this is /usr/lib:/lib, but when the MPI compilers are used
|
alpar@9
|
1079 # the location of the communication and MPI libs are included too.
|
alpar@9
|
1080 # If we don't find anything, use the default library path according
|
alpar@9
|
1081 # to the aix ld manual.
|
alpar@9
|
1082 m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
alpar@9
|
1083 [m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
1084 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
alpar@9
|
1085 lt_aix_libpath_sed='
|
alpar@9
|
1086 /Import File Strings/,/^$/ {
|
alpar@9
|
1087 /^0/ {
|
alpar@9
|
1088 s/^0 *\(.*\)$/\1/
|
alpar@9
|
1089 p
|
alpar@9
|
1090 }
|
alpar@9
|
1091 }'
|
alpar@9
|
1092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
alpar@9
|
1093 # Check for a 64-bit object if we didn't find anything.
|
alpar@9
|
1094 if test -z "$aix_libpath"; then
|
alpar@9
|
1095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
alpar@9
|
1096 fi],[])
|
alpar@9
|
1097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
alpar@9
|
1098 ])# _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
1099
|
alpar@9
|
1100
|
alpar@9
|
1101 # _LT_SHELL_INIT(ARG)
|
alpar@9
|
1102 # -------------------
|
alpar@9
|
1103 m4_define([_LT_SHELL_INIT],
|
alpar@9
|
1104 [m4_divert_text([M4SH-INIT], [$1
|
alpar@9
|
1105 ])])# _LT_SHELL_INIT
|
alpar@9
|
1106
|
alpar@9
|
1107
|
alpar@9
|
1108
|
alpar@9
|
1109 # _LT_PROG_ECHO_BACKSLASH
|
alpar@9
|
1110 # -----------------------
|
alpar@9
|
1111 # Find how we can fake an echo command that does not interpret backslash.
|
alpar@9
|
1112 # In particular, with Autoconf 2.60 or later we add some code to the start
|
alpar@9
|
1113 # of the generated configure script which will find a shell with a builtin
|
alpar@9
|
1114 # printf (which we can use as an echo command).
|
alpar@9
|
1115 m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
alpar@9
|
1116 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
alpar@9
|
1117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
alpar@9
|
1118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
alpar@9
|
1119
|
alpar@9
|
1120 AC_MSG_CHECKING([how to print strings])
|
alpar@9
|
1121 # Test print first, because it will be a builtin if present.
|
alpar@9
|
1122 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
alpar@9
|
1123 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
alpar@9
|
1124 ECHO='print -r --'
|
alpar@9
|
1125 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
alpar@9
|
1126 ECHO='printf %s\n'
|
alpar@9
|
1127 else
|
alpar@9
|
1128 # Use this function as a fallback that always works.
|
alpar@9
|
1129 func_fallback_echo ()
|
alpar@9
|
1130 {
|
alpar@9
|
1131 eval 'cat <<_LTECHO_EOF
|
alpar@9
|
1132 $[]1
|
alpar@9
|
1133 _LTECHO_EOF'
|
alpar@9
|
1134 }
|
alpar@9
|
1135 ECHO='func_fallback_echo'
|
alpar@9
|
1136 fi
|
alpar@9
|
1137
|
alpar@9
|
1138 # func_echo_all arg...
|
alpar@9
|
1139 # Invoke $ECHO with all args, space-separated.
|
alpar@9
|
1140 func_echo_all ()
|
alpar@9
|
1141 {
|
alpar@9
|
1142 $ECHO "$*"
|
alpar@9
|
1143 }
|
alpar@9
|
1144
|
alpar@9
|
1145 case "$ECHO" in
|
alpar@9
|
1146 printf*) AC_MSG_RESULT([printf]) ;;
|
alpar@9
|
1147 print*) AC_MSG_RESULT([print -r]) ;;
|
alpar@9
|
1148 *) AC_MSG_RESULT([cat]) ;;
|
alpar@9
|
1149 esac
|
alpar@9
|
1150
|
alpar@9
|
1151 m4_ifdef([_AS_DETECT_SUGGESTED],
|
alpar@9
|
1152 [_AS_DETECT_SUGGESTED([
|
alpar@9
|
1153 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
|
alpar@9
|
1154 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
alpar@9
|
1155 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
alpar@9
|
1156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
alpar@9
|
1157 PATH=/empty FPATH=/empty; export PATH FPATH
|
alpar@9
|
1158 test "X`printf %s $ECHO`" = "X$ECHO" \
|
alpar@9
|
1159 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
|
alpar@9
|
1160
|
alpar@9
|
1161 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
alpar@9
|
1162 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
alpar@9
|
1163 ])# _LT_PROG_ECHO_BACKSLASH
|
alpar@9
|
1164
|
alpar@9
|
1165
|
alpar@9
|
1166 # _LT_ENABLE_LOCK
|
alpar@9
|
1167 # ---------------
|
alpar@9
|
1168 m4_defun([_LT_ENABLE_LOCK],
|
alpar@9
|
1169 [AC_ARG_ENABLE([libtool-lock],
|
alpar@9
|
1170 [AS_HELP_STRING([--disable-libtool-lock],
|
alpar@9
|
1171 [avoid locking (might break parallel builds)])])
|
alpar@9
|
1172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
alpar@9
|
1173
|
alpar@9
|
1174 # Some flags need to be propagated to the compiler or linker for good
|
alpar@9
|
1175 # libtool support.
|
alpar@9
|
1176 case $host in
|
alpar@9
|
1177 ia64-*-hpux*)
|
alpar@9
|
1178 # Find out which ABI we are using.
|
alpar@9
|
1179 echo 'int i;' > conftest.$ac_ext
|
alpar@9
|
1180 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
1181 case `/usr/bin/file conftest.$ac_objext` in
|
alpar@9
|
1182 *ELF-32*)
|
alpar@9
|
1183 HPUX_IA64_MODE="32"
|
alpar@9
|
1184 ;;
|
alpar@9
|
1185 *ELF-64*)
|
alpar@9
|
1186 HPUX_IA64_MODE="64"
|
alpar@9
|
1187 ;;
|
alpar@9
|
1188 esac
|
alpar@9
|
1189 fi
|
alpar@9
|
1190 rm -rf conftest*
|
alpar@9
|
1191 ;;
|
alpar@9
|
1192 *-*-irix6*)
|
alpar@9
|
1193 # Find out which ABI we are using.
|
alpar@9
|
1194 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
|
alpar@9
|
1195 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
1196 if test "$lt_cv_prog_gnu_ld" = yes; then
|
alpar@9
|
1197 case `/usr/bin/file conftest.$ac_objext` in
|
alpar@9
|
1198 *32-bit*)
|
alpar@9
|
1199 LD="${LD-ld} -melf32bsmip"
|
alpar@9
|
1200 ;;
|
alpar@9
|
1201 *N32*)
|
alpar@9
|
1202 LD="${LD-ld} -melf32bmipn32"
|
alpar@9
|
1203 ;;
|
alpar@9
|
1204 *64-bit*)
|
alpar@9
|
1205 LD="${LD-ld} -melf64bmip"
|
alpar@9
|
1206 ;;
|
alpar@9
|
1207 esac
|
alpar@9
|
1208 else
|
alpar@9
|
1209 case `/usr/bin/file conftest.$ac_objext` in
|
alpar@9
|
1210 *32-bit*)
|
alpar@9
|
1211 LD="${LD-ld} -32"
|
alpar@9
|
1212 ;;
|
alpar@9
|
1213 *N32*)
|
alpar@9
|
1214 LD="${LD-ld} -n32"
|
alpar@9
|
1215 ;;
|
alpar@9
|
1216 *64-bit*)
|
alpar@9
|
1217 LD="${LD-ld} -64"
|
alpar@9
|
1218 ;;
|
alpar@9
|
1219 esac
|
alpar@9
|
1220 fi
|
alpar@9
|
1221 fi
|
alpar@9
|
1222 rm -rf conftest*
|
alpar@9
|
1223 ;;
|
alpar@9
|
1224
|
alpar@9
|
1225 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
alpar@9
|
1226 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
alpar@9
|
1227 # Find out which ABI we are using.
|
alpar@9
|
1228 echo 'int i;' > conftest.$ac_ext
|
alpar@9
|
1229 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
1230 case `/usr/bin/file conftest.o` in
|
alpar@9
|
1231 *32-bit*)
|
alpar@9
|
1232 case $host in
|
alpar@9
|
1233 x86_64-*kfreebsd*-gnu)
|
alpar@9
|
1234 LD="${LD-ld} -m elf_i386_fbsd"
|
alpar@9
|
1235 ;;
|
alpar@9
|
1236 x86_64-*linux*)
|
alpar@9
|
1237 LD="${LD-ld} -m elf_i386"
|
alpar@9
|
1238 ;;
|
alpar@9
|
1239 ppc64-*linux*|powerpc64-*linux*)
|
alpar@9
|
1240 LD="${LD-ld} -m elf32ppclinux"
|
alpar@9
|
1241 ;;
|
alpar@9
|
1242 s390x-*linux*)
|
alpar@9
|
1243 LD="${LD-ld} -m elf_s390"
|
alpar@9
|
1244 ;;
|
alpar@9
|
1245 sparc64-*linux*)
|
alpar@9
|
1246 LD="${LD-ld} -m elf32_sparc"
|
alpar@9
|
1247 ;;
|
alpar@9
|
1248 esac
|
alpar@9
|
1249 ;;
|
alpar@9
|
1250 *64-bit*)
|
alpar@9
|
1251 case $host in
|
alpar@9
|
1252 x86_64-*kfreebsd*-gnu)
|
alpar@9
|
1253 LD="${LD-ld} -m elf_x86_64_fbsd"
|
alpar@9
|
1254 ;;
|
alpar@9
|
1255 x86_64-*linux*)
|
alpar@9
|
1256 LD="${LD-ld} -m elf_x86_64"
|
alpar@9
|
1257 ;;
|
alpar@9
|
1258 ppc*-*linux*|powerpc*-*linux*)
|
alpar@9
|
1259 LD="${LD-ld} -m elf64ppc"
|
alpar@9
|
1260 ;;
|
alpar@9
|
1261 s390*-*linux*|s390*-*tpf*)
|
alpar@9
|
1262 LD="${LD-ld} -m elf64_s390"
|
alpar@9
|
1263 ;;
|
alpar@9
|
1264 sparc*-*linux*)
|
alpar@9
|
1265 LD="${LD-ld} -m elf64_sparc"
|
alpar@9
|
1266 ;;
|
alpar@9
|
1267 esac
|
alpar@9
|
1268 ;;
|
alpar@9
|
1269 esac
|
alpar@9
|
1270 fi
|
alpar@9
|
1271 rm -rf conftest*
|
alpar@9
|
1272 ;;
|
alpar@9
|
1273
|
alpar@9
|
1274 *-*-sco3.2v5*)
|
alpar@9
|
1275 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
alpar@9
|
1276 SAVE_CFLAGS="$CFLAGS"
|
alpar@9
|
1277 CFLAGS="$CFLAGS -belf"
|
alpar@9
|
1278 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
alpar@9
|
1279 [AC_LANG_PUSH(C)
|
alpar@9
|
1280 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
alpar@9
|
1281 AC_LANG_POP])
|
alpar@9
|
1282 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
alpar@9
|
1283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
alpar@9
|
1284 CFLAGS="$SAVE_CFLAGS"
|
alpar@9
|
1285 fi
|
alpar@9
|
1286 ;;
|
alpar@9
|
1287 sparc*-*solaris*)
|
alpar@9
|
1288 # Find out which ABI we are using.
|
alpar@9
|
1289 echo 'int i;' > conftest.$ac_ext
|
alpar@9
|
1290 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
1291 case `/usr/bin/file conftest.o` in
|
alpar@9
|
1292 *64-bit*)
|
alpar@9
|
1293 case $lt_cv_prog_gnu_ld in
|
alpar@9
|
1294 yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
alpar@9
|
1295 *)
|
alpar@9
|
1296 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
alpar@9
|
1297 LD="${LD-ld} -64"
|
alpar@9
|
1298 fi
|
alpar@9
|
1299 ;;
|
alpar@9
|
1300 esac
|
alpar@9
|
1301 ;;
|
alpar@9
|
1302 esac
|
alpar@9
|
1303 fi
|
alpar@9
|
1304 rm -rf conftest*
|
alpar@9
|
1305 ;;
|
alpar@9
|
1306 esac
|
alpar@9
|
1307
|
alpar@9
|
1308 need_locks="$enable_libtool_lock"
|
alpar@9
|
1309 ])# _LT_ENABLE_LOCK
|
alpar@9
|
1310
|
alpar@9
|
1311
|
alpar@9
|
1312 # _LT_CMD_OLD_ARCHIVE
|
alpar@9
|
1313 # -------------------
|
alpar@9
|
1314 m4_defun([_LT_CMD_OLD_ARCHIVE],
|
alpar@9
|
1315 [AC_CHECK_TOOL(AR, ar, false)
|
alpar@9
|
1316 test -z "$AR" && AR=ar
|
alpar@9
|
1317 test -z "$AR_FLAGS" && AR_FLAGS=cru
|
alpar@9
|
1318 _LT_DECL([], [AR], [1], [The archiver])
|
alpar@9
|
1319 _LT_DECL([], [AR_FLAGS], [1])
|
alpar@9
|
1320
|
alpar@9
|
1321 AC_CHECK_TOOL(STRIP, strip, :)
|
alpar@9
|
1322 test -z "$STRIP" && STRIP=:
|
alpar@9
|
1323 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
alpar@9
|
1324
|
alpar@9
|
1325 AC_CHECK_TOOL(RANLIB, ranlib, :)
|
alpar@9
|
1326 test -z "$RANLIB" && RANLIB=:
|
alpar@9
|
1327 _LT_DECL([], [RANLIB], [1],
|
alpar@9
|
1328 [Commands used to install an old-style archive])
|
alpar@9
|
1329
|
alpar@9
|
1330 # Determine commands to create old-style static archives.
|
alpar@9
|
1331 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
alpar@9
|
1332 old_postinstall_cmds='chmod 644 $oldlib'
|
alpar@9
|
1333 old_postuninstall_cmds=
|
alpar@9
|
1334
|
alpar@9
|
1335 if test -n "$RANLIB"; then
|
alpar@9
|
1336 case $host_os in
|
alpar@9
|
1337 openbsd*)
|
alpar@9
|
1338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
alpar@9
|
1339 ;;
|
alpar@9
|
1340 *)
|
alpar@9
|
1341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
alpar@9
|
1342 ;;
|
alpar@9
|
1343 esac
|
alpar@9
|
1344 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
alpar@9
|
1345 fi
|
alpar@9
|
1346
|
alpar@9
|
1347 case $host_os in
|
alpar@9
|
1348 darwin*)
|
alpar@9
|
1349 lock_old_archive_extraction=yes ;;
|
alpar@9
|
1350 *)
|
alpar@9
|
1351 lock_old_archive_extraction=no ;;
|
alpar@9
|
1352 esac
|
alpar@9
|
1353 _LT_DECL([], [old_postinstall_cmds], [2])
|
alpar@9
|
1354 _LT_DECL([], [old_postuninstall_cmds], [2])
|
alpar@9
|
1355 _LT_TAGDECL([], [old_archive_cmds], [2],
|
alpar@9
|
1356 [Commands used to build an old-style archive])
|
alpar@9
|
1357 _LT_DECL([], [lock_old_archive_extraction], [0],
|
alpar@9
|
1358 [Whether to use a lock for old archive extraction])
|
alpar@9
|
1359 ])# _LT_CMD_OLD_ARCHIVE
|
alpar@9
|
1360
|
alpar@9
|
1361
|
alpar@9
|
1362 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
alpar@9
|
1363 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
alpar@9
|
1364 # ----------------------------------------------------------------
|
alpar@9
|
1365 # Check whether the given compiler option works
|
alpar@9
|
1366 AC_DEFUN([_LT_COMPILER_OPTION],
|
alpar@9
|
1367 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
1368 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
1369 AC_CACHE_CHECK([$1], [$2],
|
alpar@9
|
1370 [$2=no
|
alpar@9
|
1371 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
alpar@9
|
1372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
alpar@9
|
1373 lt_compiler_flag="$3"
|
alpar@9
|
1374 # Insert the option either (1) after the last *FLAGS variable, or
|
alpar@9
|
1375 # (2) before a word containing "conftest.", or (3) at the end.
|
alpar@9
|
1376 # Note that $ac_compile itself does not contain backslashes and begins
|
alpar@9
|
1377 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
alpar@9
|
1378 # The option is referenced via a variable to avoid confusing sed.
|
alpar@9
|
1379 lt_compile=`echo "$ac_compile" | $SED \
|
alpar@9
|
1380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
alpar@9
|
1381 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
alpar@9
|
1382 -e 's:$: $lt_compiler_flag:'`
|
alpar@9
|
1383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
alpar@9
|
1384 (eval "$lt_compile" 2>conftest.err)
|
alpar@9
|
1385 ac_status=$?
|
alpar@9
|
1386 cat conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
1387 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
1388 if (exit $ac_status) && test -s "$ac_outfile"; then
|
alpar@9
|
1389 # The compiler can only warn and ignore the option if not recognized
|
alpar@9
|
1390 # So say no if there are warnings other than the usual output.
|
alpar@9
|
1391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
alpar@9
|
1392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
alpar@9
|
1393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
alpar@9
|
1394 $2=yes
|
alpar@9
|
1395 fi
|
alpar@9
|
1396 fi
|
alpar@9
|
1397 $RM conftest*
|
alpar@9
|
1398 ])
|
alpar@9
|
1399
|
alpar@9
|
1400 if test x"[$]$2" = xyes; then
|
alpar@9
|
1401 m4_if([$5], , :, [$5])
|
alpar@9
|
1402 else
|
alpar@9
|
1403 m4_if([$6], , :, [$6])
|
alpar@9
|
1404 fi
|
alpar@9
|
1405 ])# _LT_COMPILER_OPTION
|
alpar@9
|
1406
|
alpar@9
|
1407 # Old name:
|
alpar@9
|
1408 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
alpar@9
|
1409 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
1410 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
alpar@9
|
1411
|
alpar@9
|
1412
|
alpar@9
|
1413 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
alpar@9
|
1414 # [ACTION-SUCCESS], [ACTION-FAILURE])
|
alpar@9
|
1415 # ----------------------------------------------------
|
alpar@9
|
1416 # Check whether the given linker option works
|
alpar@9
|
1417 AC_DEFUN([_LT_LINKER_OPTION],
|
alpar@9
|
1418 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
1419 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
1420 AC_CACHE_CHECK([$1], [$2],
|
alpar@9
|
1421 [$2=no
|
alpar@9
|
1422 save_LDFLAGS="$LDFLAGS"
|
alpar@9
|
1423 LDFLAGS="$LDFLAGS $3"
|
alpar@9
|
1424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
alpar@9
|
1425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
alpar@9
|
1426 # The linker can only warn and ignore the option if not recognized
|
alpar@9
|
1427 # So say no if there are warnings
|
alpar@9
|
1428 if test -s conftest.err; then
|
alpar@9
|
1429 # Append any errors to the config.log.
|
alpar@9
|
1430 cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
alpar@9
|
1431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
alpar@9
|
1432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
alpar@9
|
1433 if diff conftest.exp conftest.er2 >/dev/null; then
|
alpar@9
|
1434 $2=yes
|
alpar@9
|
1435 fi
|
alpar@9
|
1436 else
|
alpar@9
|
1437 $2=yes
|
alpar@9
|
1438 fi
|
alpar@9
|
1439 fi
|
alpar@9
|
1440 $RM -r conftest*
|
alpar@9
|
1441 LDFLAGS="$save_LDFLAGS"
|
alpar@9
|
1442 ])
|
alpar@9
|
1443
|
alpar@9
|
1444 if test x"[$]$2" = xyes; then
|
alpar@9
|
1445 m4_if([$4], , :, [$4])
|
alpar@9
|
1446 else
|
alpar@9
|
1447 m4_if([$5], , :, [$5])
|
alpar@9
|
1448 fi
|
alpar@9
|
1449 ])# _LT_LINKER_OPTION
|
alpar@9
|
1450
|
alpar@9
|
1451 # Old name:
|
alpar@9
|
1452 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
alpar@9
|
1453 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
1454 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
alpar@9
|
1455
|
alpar@9
|
1456
|
alpar@9
|
1457 # LT_CMD_MAX_LEN
|
alpar@9
|
1458 #---------------
|
alpar@9
|
1459 AC_DEFUN([LT_CMD_MAX_LEN],
|
alpar@9
|
1460 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
1461 # find the maximum length of command line arguments
|
alpar@9
|
1462 AC_MSG_CHECKING([the maximum length of command line arguments])
|
alpar@9
|
1463 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
alpar@9
|
1464 i=0
|
alpar@9
|
1465 teststring="ABCD"
|
alpar@9
|
1466
|
alpar@9
|
1467 case $build_os in
|
alpar@9
|
1468 msdosdjgpp*)
|
alpar@9
|
1469 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
alpar@9
|
1470 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
alpar@9
|
1471 # during glob expansion). Even if it were fixed, the result of this
|
alpar@9
|
1472 # check would be larger than it should be.
|
alpar@9
|
1473 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
alpar@9
|
1474 ;;
|
alpar@9
|
1475
|
alpar@9
|
1476 gnu*)
|
alpar@9
|
1477 # Under GNU Hurd, this test is not required because there is
|
alpar@9
|
1478 # no limit to the length of command line arguments.
|
alpar@9
|
1479 # Libtool will interpret -1 as no limit whatsoever
|
alpar@9
|
1480 lt_cv_sys_max_cmd_len=-1;
|
alpar@9
|
1481 ;;
|
alpar@9
|
1482
|
alpar@9
|
1483 cygwin* | mingw* | cegcc*)
|
alpar@9
|
1484 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
alpar@9
|
1485 # about 5 minutes as the teststring grows exponentially.
|
alpar@9
|
1486 # Worse, since 9x/ME are not pre-emptively multitasking,
|
alpar@9
|
1487 # you end up with a "frozen" computer, even though with patience
|
alpar@9
|
1488 # the test eventually succeeds (with a max line length of 256k).
|
alpar@9
|
1489 # Instead, let's just punt: use the minimum linelength reported by
|
alpar@9
|
1490 # all of the supported platforms: 8192 (on NT/2K/XP).
|
alpar@9
|
1491 lt_cv_sys_max_cmd_len=8192;
|
alpar@9
|
1492 ;;
|
alpar@9
|
1493
|
alpar@9
|
1494 mint*)
|
alpar@9
|
1495 # On MiNT this can take a long time and run out of memory.
|
alpar@9
|
1496 lt_cv_sys_max_cmd_len=8192;
|
alpar@9
|
1497 ;;
|
alpar@9
|
1498
|
alpar@9
|
1499 amigaos*)
|
alpar@9
|
1500 # On AmigaOS with pdksh, this test takes hours, literally.
|
alpar@9
|
1501 # So we just punt and use a minimum line length of 8192.
|
alpar@9
|
1502 lt_cv_sys_max_cmd_len=8192;
|
alpar@9
|
1503 ;;
|
alpar@9
|
1504
|
alpar@9
|
1505 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
alpar@9
|
1506 # This has been around since 386BSD, at least. Likely further.
|
alpar@9
|
1507 if test -x /sbin/sysctl; then
|
alpar@9
|
1508 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
alpar@9
|
1509 elif test -x /usr/sbin/sysctl; then
|
alpar@9
|
1510 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
alpar@9
|
1511 else
|
alpar@9
|
1512 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
alpar@9
|
1513 fi
|
alpar@9
|
1514 # And add a safety zone
|
alpar@9
|
1515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
alpar@9
|
1516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
alpar@9
|
1517 ;;
|
alpar@9
|
1518
|
alpar@9
|
1519 interix*)
|
alpar@9
|
1520 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
alpar@9
|
1521 lt_cv_sys_max_cmd_len=196608
|
alpar@9
|
1522 ;;
|
alpar@9
|
1523
|
alpar@9
|
1524 osf*)
|
alpar@9
|
1525 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
alpar@9
|
1526 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
alpar@9
|
1527 # nice to cause kernel panics so lets avoid the loop below.
|
alpar@9
|
1528 # First set a reasonable default.
|
alpar@9
|
1529 lt_cv_sys_max_cmd_len=16384
|
alpar@9
|
1530 #
|
alpar@9
|
1531 if test -x /sbin/sysconfig; then
|
alpar@9
|
1532 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
alpar@9
|
1533 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
alpar@9
|
1534 esac
|
alpar@9
|
1535 fi
|
alpar@9
|
1536 ;;
|
alpar@9
|
1537 sco3.2v5*)
|
alpar@9
|
1538 lt_cv_sys_max_cmd_len=102400
|
alpar@9
|
1539 ;;
|
alpar@9
|
1540 sysv5* | sco5v6* | sysv4.2uw2*)
|
alpar@9
|
1541 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
alpar@9
|
1542 if test -n "$kargmax"; then
|
alpar@9
|
1543 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
alpar@9
|
1544 else
|
alpar@9
|
1545 lt_cv_sys_max_cmd_len=32768
|
alpar@9
|
1546 fi
|
alpar@9
|
1547 ;;
|
alpar@9
|
1548 *)
|
alpar@9
|
1549 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
alpar@9
|
1550 if test -n "$lt_cv_sys_max_cmd_len"; then
|
alpar@9
|
1551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
alpar@9
|
1552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
alpar@9
|
1553 else
|
alpar@9
|
1554 # Make teststring a little bigger before we do anything with it.
|
alpar@9
|
1555 # a 1K string should be a reasonable start.
|
alpar@9
|
1556 for i in 1 2 3 4 5 6 7 8 ; do
|
alpar@9
|
1557 teststring=$teststring$teststring
|
alpar@9
|
1558 done
|
alpar@9
|
1559 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
alpar@9
|
1560 # If test is not a shell built-in, we'll probably end up computing a
|
alpar@9
|
1561 # maximum length that is only half of the actual maximum length, but
|
alpar@9
|
1562 # we can't tell.
|
alpar@9
|
1563 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
|
alpar@9
|
1564 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
alpar@9
|
1565 test $i != 17 # 1/2 MB should be enough
|
alpar@9
|
1566 do
|
alpar@9
|
1567 i=`expr $i + 1`
|
alpar@9
|
1568 teststring=$teststring$teststring
|
alpar@9
|
1569 done
|
alpar@9
|
1570 # Only check the string length outside the loop.
|
alpar@9
|
1571 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
alpar@9
|
1572 teststring=
|
alpar@9
|
1573 # Add a significant safety factor because C++ compilers can tack on
|
alpar@9
|
1574 # massive amounts of additional arguments before passing them to the
|
alpar@9
|
1575 # linker. It appears as though 1/2 is a usable value.
|
alpar@9
|
1576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
alpar@9
|
1577 fi
|
alpar@9
|
1578 ;;
|
alpar@9
|
1579 esac
|
alpar@9
|
1580 ])
|
alpar@9
|
1581 if test -n $lt_cv_sys_max_cmd_len ; then
|
alpar@9
|
1582 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
alpar@9
|
1583 else
|
alpar@9
|
1584 AC_MSG_RESULT(none)
|
alpar@9
|
1585 fi
|
alpar@9
|
1586 max_cmd_len=$lt_cv_sys_max_cmd_len
|
alpar@9
|
1587 _LT_DECL([], [max_cmd_len], [0],
|
alpar@9
|
1588 [What is the maximum length of a command?])
|
alpar@9
|
1589 ])# LT_CMD_MAX_LEN
|
alpar@9
|
1590
|
alpar@9
|
1591 # Old name:
|
alpar@9
|
1592 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
alpar@9
|
1593 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
1594 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
alpar@9
|
1595
|
alpar@9
|
1596
|
alpar@9
|
1597 # _LT_HEADER_DLFCN
|
alpar@9
|
1598 # ----------------
|
alpar@9
|
1599 m4_defun([_LT_HEADER_DLFCN],
|
alpar@9
|
1600 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
alpar@9
|
1601 ])# _LT_HEADER_DLFCN
|
alpar@9
|
1602
|
alpar@9
|
1603
|
alpar@9
|
1604 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
alpar@9
|
1605 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
alpar@9
|
1606 # ----------------------------------------------------------------
|
alpar@9
|
1607 m4_defun([_LT_TRY_DLOPEN_SELF],
|
alpar@9
|
1608 [m4_require([_LT_HEADER_DLFCN])dnl
|
alpar@9
|
1609 if test "$cross_compiling" = yes; then :
|
alpar@9
|
1610 [$4]
|
alpar@9
|
1611 else
|
alpar@9
|
1612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
alpar@9
|
1613 lt_status=$lt_dlunknown
|
alpar@9
|
1614 cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
1615 [#line $LINENO "configure"
|
alpar@9
|
1616 #include "confdefs.h"
|
alpar@9
|
1617
|
alpar@9
|
1618 #if HAVE_DLFCN_H
|
alpar@9
|
1619 #include <dlfcn.h>
|
alpar@9
|
1620 #endif
|
alpar@9
|
1621
|
alpar@9
|
1622 #include <stdio.h>
|
alpar@9
|
1623
|
alpar@9
|
1624 #ifdef RTLD_GLOBAL
|
alpar@9
|
1625 # define LT_DLGLOBAL RTLD_GLOBAL
|
alpar@9
|
1626 #else
|
alpar@9
|
1627 # ifdef DL_GLOBAL
|
alpar@9
|
1628 # define LT_DLGLOBAL DL_GLOBAL
|
alpar@9
|
1629 # else
|
alpar@9
|
1630 # define LT_DLGLOBAL 0
|
alpar@9
|
1631 # endif
|
alpar@9
|
1632 #endif
|
alpar@9
|
1633
|
alpar@9
|
1634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
alpar@9
|
1635 find out it does not work in some platform. */
|
alpar@9
|
1636 #ifndef LT_DLLAZY_OR_NOW
|
alpar@9
|
1637 # ifdef RTLD_LAZY
|
alpar@9
|
1638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
alpar@9
|
1639 # else
|
alpar@9
|
1640 # ifdef DL_LAZY
|
alpar@9
|
1641 # define LT_DLLAZY_OR_NOW DL_LAZY
|
alpar@9
|
1642 # else
|
alpar@9
|
1643 # ifdef RTLD_NOW
|
alpar@9
|
1644 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
alpar@9
|
1645 # else
|
alpar@9
|
1646 # ifdef DL_NOW
|
alpar@9
|
1647 # define LT_DLLAZY_OR_NOW DL_NOW
|
alpar@9
|
1648 # else
|
alpar@9
|
1649 # define LT_DLLAZY_OR_NOW 0
|
alpar@9
|
1650 # endif
|
alpar@9
|
1651 # endif
|
alpar@9
|
1652 # endif
|
alpar@9
|
1653 # endif
|
alpar@9
|
1654 #endif
|
alpar@9
|
1655
|
alpar@9
|
1656 /* When -fvisbility=hidden is used, assume the code has been annotated
|
alpar@9
|
1657 correspondingly for the symbols needed. */
|
alpar@9
|
1658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
alpar@9
|
1659 void fnord () __attribute__((visibility("default")));
|
alpar@9
|
1660 #endif
|
alpar@9
|
1661
|
alpar@9
|
1662 void fnord () { int i=42; }
|
alpar@9
|
1663 int main ()
|
alpar@9
|
1664 {
|
alpar@9
|
1665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
alpar@9
|
1666 int status = $lt_dlunknown;
|
alpar@9
|
1667
|
alpar@9
|
1668 if (self)
|
alpar@9
|
1669 {
|
alpar@9
|
1670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
alpar@9
|
1671 else
|
alpar@9
|
1672 {
|
alpar@9
|
1673 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
alpar@9
|
1674 else puts (dlerror ());
|
alpar@9
|
1675 }
|
alpar@9
|
1676 /* dlclose (self); */
|
alpar@9
|
1677 }
|
alpar@9
|
1678 else
|
alpar@9
|
1679 puts (dlerror ());
|
alpar@9
|
1680
|
alpar@9
|
1681 return status;
|
alpar@9
|
1682 }]
|
alpar@9
|
1683 _LT_EOF
|
alpar@9
|
1684 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
alpar@9
|
1685 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
alpar@9
|
1686 lt_status=$?
|
alpar@9
|
1687 case x$lt_status in
|
alpar@9
|
1688 x$lt_dlno_uscore) $1 ;;
|
alpar@9
|
1689 x$lt_dlneed_uscore) $2 ;;
|
alpar@9
|
1690 x$lt_dlunknown|x*) $3 ;;
|
alpar@9
|
1691 esac
|
alpar@9
|
1692 else :
|
alpar@9
|
1693 # compilation failed
|
alpar@9
|
1694 $3
|
alpar@9
|
1695 fi
|
alpar@9
|
1696 fi
|
alpar@9
|
1697 rm -fr conftest*
|
alpar@9
|
1698 ])# _LT_TRY_DLOPEN_SELF
|
alpar@9
|
1699
|
alpar@9
|
1700
|
alpar@9
|
1701 # LT_SYS_DLOPEN_SELF
|
alpar@9
|
1702 # ------------------
|
alpar@9
|
1703 AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
alpar@9
|
1704 [m4_require([_LT_HEADER_DLFCN])dnl
|
alpar@9
|
1705 if test "x$enable_dlopen" != xyes; then
|
alpar@9
|
1706 enable_dlopen=unknown
|
alpar@9
|
1707 enable_dlopen_self=unknown
|
alpar@9
|
1708 enable_dlopen_self_static=unknown
|
alpar@9
|
1709 else
|
alpar@9
|
1710 lt_cv_dlopen=no
|
alpar@9
|
1711 lt_cv_dlopen_libs=
|
alpar@9
|
1712
|
alpar@9
|
1713 case $host_os in
|
alpar@9
|
1714 beos*)
|
alpar@9
|
1715 lt_cv_dlopen="load_add_on"
|
alpar@9
|
1716 lt_cv_dlopen_libs=
|
alpar@9
|
1717 lt_cv_dlopen_self=yes
|
alpar@9
|
1718 ;;
|
alpar@9
|
1719
|
alpar@9
|
1720 mingw* | pw32* | cegcc*)
|
alpar@9
|
1721 lt_cv_dlopen="LoadLibrary"
|
alpar@9
|
1722 lt_cv_dlopen_libs=
|
alpar@9
|
1723 ;;
|
alpar@9
|
1724
|
alpar@9
|
1725 cygwin*)
|
alpar@9
|
1726 lt_cv_dlopen="dlopen"
|
alpar@9
|
1727 lt_cv_dlopen_libs=
|
alpar@9
|
1728 ;;
|
alpar@9
|
1729
|
alpar@9
|
1730 darwin*)
|
alpar@9
|
1731 # if libdl is installed we need to link against it
|
alpar@9
|
1732 AC_CHECK_LIB([dl], [dlopen],
|
alpar@9
|
1733 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
alpar@9
|
1734 lt_cv_dlopen="dyld"
|
alpar@9
|
1735 lt_cv_dlopen_libs=
|
alpar@9
|
1736 lt_cv_dlopen_self=yes
|
alpar@9
|
1737 ])
|
alpar@9
|
1738 ;;
|
alpar@9
|
1739
|
alpar@9
|
1740 *)
|
alpar@9
|
1741 AC_CHECK_FUNC([shl_load],
|
alpar@9
|
1742 [lt_cv_dlopen="shl_load"],
|
alpar@9
|
1743 [AC_CHECK_LIB([dld], [shl_load],
|
alpar@9
|
1744 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
|
alpar@9
|
1745 [AC_CHECK_FUNC([dlopen],
|
alpar@9
|
1746 [lt_cv_dlopen="dlopen"],
|
alpar@9
|
1747 [AC_CHECK_LIB([dl], [dlopen],
|
alpar@9
|
1748 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
alpar@9
|
1749 [AC_CHECK_LIB([svld], [dlopen],
|
alpar@9
|
1750 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
alpar@9
|
1751 [AC_CHECK_LIB([dld], [dld_link],
|
alpar@9
|
1752 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
|
alpar@9
|
1753 ])
|
alpar@9
|
1754 ])
|
alpar@9
|
1755 ])
|
alpar@9
|
1756 ])
|
alpar@9
|
1757 ])
|
alpar@9
|
1758 ;;
|
alpar@9
|
1759 esac
|
alpar@9
|
1760
|
alpar@9
|
1761 if test "x$lt_cv_dlopen" != xno; then
|
alpar@9
|
1762 enable_dlopen=yes
|
alpar@9
|
1763 else
|
alpar@9
|
1764 enable_dlopen=no
|
alpar@9
|
1765 fi
|
alpar@9
|
1766
|
alpar@9
|
1767 case $lt_cv_dlopen in
|
alpar@9
|
1768 dlopen)
|
alpar@9
|
1769 save_CPPFLAGS="$CPPFLAGS"
|
alpar@9
|
1770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
alpar@9
|
1771
|
alpar@9
|
1772 save_LDFLAGS="$LDFLAGS"
|
alpar@9
|
1773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
alpar@9
|
1774
|
alpar@9
|
1775 save_LIBS="$LIBS"
|
alpar@9
|
1776 LIBS="$lt_cv_dlopen_libs $LIBS"
|
alpar@9
|
1777
|
alpar@9
|
1778 AC_CACHE_CHECK([whether a program can dlopen itself],
|
alpar@9
|
1779 lt_cv_dlopen_self, [dnl
|
alpar@9
|
1780 _LT_TRY_DLOPEN_SELF(
|
alpar@9
|
1781 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
alpar@9
|
1782 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
alpar@9
|
1783 ])
|
alpar@9
|
1784
|
alpar@9
|
1785 if test "x$lt_cv_dlopen_self" = xyes; then
|
alpar@9
|
1786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
alpar@9
|
1787 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
alpar@9
|
1788 lt_cv_dlopen_self_static, [dnl
|
alpar@9
|
1789 _LT_TRY_DLOPEN_SELF(
|
alpar@9
|
1790 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
alpar@9
|
1791 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
alpar@9
|
1792 ])
|
alpar@9
|
1793 fi
|
alpar@9
|
1794
|
alpar@9
|
1795 CPPFLAGS="$save_CPPFLAGS"
|
alpar@9
|
1796 LDFLAGS="$save_LDFLAGS"
|
alpar@9
|
1797 LIBS="$save_LIBS"
|
alpar@9
|
1798 ;;
|
alpar@9
|
1799 esac
|
alpar@9
|
1800
|
alpar@9
|
1801 case $lt_cv_dlopen_self in
|
alpar@9
|
1802 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
alpar@9
|
1803 *) enable_dlopen_self=unknown ;;
|
alpar@9
|
1804 esac
|
alpar@9
|
1805
|
alpar@9
|
1806 case $lt_cv_dlopen_self_static in
|
alpar@9
|
1807 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
alpar@9
|
1808 *) enable_dlopen_self_static=unknown ;;
|
alpar@9
|
1809 esac
|
alpar@9
|
1810 fi
|
alpar@9
|
1811 _LT_DECL([dlopen_support], [enable_dlopen], [0],
|
alpar@9
|
1812 [Whether dlopen is supported])
|
alpar@9
|
1813 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
alpar@9
|
1814 [Whether dlopen of programs is supported])
|
alpar@9
|
1815 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
alpar@9
|
1816 [Whether dlopen of statically linked programs is supported])
|
alpar@9
|
1817 ])# LT_SYS_DLOPEN_SELF
|
alpar@9
|
1818
|
alpar@9
|
1819 # Old name:
|
alpar@9
|
1820 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
alpar@9
|
1821 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
1822 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
alpar@9
|
1823
|
alpar@9
|
1824
|
alpar@9
|
1825 # _LT_COMPILER_C_O([TAGNAME])
|
alpar@9
|
1826 # ---------------------------
|
alpar@9
|
1827 # Check to see if options -c and -o are simultaneously supported by compiler.
|
alpar@9
|
1828 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
alpar@9
|
1829 m4_defun([_LT_COMPILER_C_O],
|
alpar@9
|
1830 [m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
1831 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
1832 m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
1833 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
alpar@9
|
1834 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
alpar@9
|
1835 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
alpar@9
|
1836 $RM -r conftest 2>/dev/null
|
alpar@9
|
1837 mkdir conftest
|
alpar@9
|
1838 cd conftest
|
alpar@9
|
1839 mkdir out
|
alpar@9
|
1840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
alpar@9
|
1841
|
alpar@9
|
1842 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
alpar@9
|
1843 # Insert the option either (1) after the last *FLAGS variable, or
|
alpar@9
|
1844 # (2) before a word containing "conftest.", or (3) at the end.
|
alpar@9
|
1845 # Note that $ac_compile itself does not contain backslashes and begins
|
alpar@9
|
1846 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
alpar@9
|
1847 lt_compile=`echo "$ac_compile" | $SED \
|
alpar@9
|
1848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
alpar@9
|
1849 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
alpar@9
|
1850 -e 's:$: $lt_compiler_flag:'`
|
alpar@9
|
1851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
alpar@9
|
1852 (eval "$lt_compile" 2>out/conftest.err)
|
alpar@9
|
1853 ac_status=$?
|
alpar@9
|
1854 cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
1856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
alpar@9
|
1857 then
|
alpar@9
|
1858 # The compiler can only warn and ignore the option if not recognized
|
alpar@9
|
1859 # So say no if there are warnings
|
alpar@9
|
1860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
alpar@9
|
1861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
alpar@9
|
1862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
alpar@9
|
1863 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
alpar@9
|
1864 fi
|
alpar@9
|
1865 fi
|
alpar@9
|
1866 chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
alpar@9
|
1867 $RM conftest*
|
alpar@9
|
1868 # SGI C++ compiler will create directory out/ii_files/ for
|
alpar@9
|
1869 # template instantiation
|
alpar@9
|
1870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
alpar@9
|
1871 $RM out/* && rmdir out
|
alpar@9
|
1872 cd ..
|
alpar@9
|
1873 $RM -r conftest
|
alpar@9
|
1874 $RM conftest*
|
alpar@9
|
1875 ])
|
alpar@9
|
1876 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
alpar@9
|
1877 [Does compiler simultaneously support -c and -o options?])
|
alpar@9
|
1878 ])# _LT_COMPILER_C_O
|
alpar@9
|
1879
|
alpar@9
|
1880
|
alpar@9
|
1881 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
alpar@9
|
1882 # ----------------------------------
|
alpar@9
|
1883 # Check to see if we can do hard links to lock some files if needed
|
alpar@9
|
1884 m4_defun([_LT_COMPILER_FILE_LOCKS],
|
alpar@9
|
1885 [m4_require([_LT_ENABLE_LOCK])dnl
|
alpar@9
|
1886 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
1887 _LT_COMPILER_C_O([$1])
|
alpar@9
|
1888
|
alpar@9
|
1889 hard_links="nottested"
|
alpar@9
|
1890 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
alpar@9
|
1891 # do not overwrite the value of need_locks provided by the user
|
alpar@9
|
1892 AC_MSG_CHECKING([if we can lock with hard links])
|
alpar@9
|
1893 hard_links=yes
|
alpar@9
|
1894 $RM conftest*
|
alpar@9
|
1895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
alpar@9
|
1896 touch conftest.a
|
alpar@9
|
1897 ln conftest.a conftest.b 2>&5 || hard_links=no
|
alpar@9
|
1898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
alpar@9
|
1899 AC_MSG_RESULT([$hard_links])
|
alpar@9
|
1900 if test "$hard_links" = no; then
|
alpar@9
|
1901 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
alpar@9
|
1902 need_locks=warn
|
alpar@9
|
1903 fi
|
alpar@9
|
1904 else
|
alpar@9
|
1905 need_locks=no
|
alpar@9
|
1906 fi
|
alpar@9
|
1907 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
alpar@9
|
1908 ])# _LT_COMPILER_FILE_LOCKS
|
alpar@9
|
1909
|
alpar@9
|
1910
|
alpar@9
|
1911 # _LT_CHECK_OBJDIR
|
alpar@9
|
1912 # ----------------
|
alpar@9
|
1913 m4_defun([_LT_CHECK_OBJDIR],
|
alpar@9
|
1914 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
alpar@9
|
1915 [rm -f .libs 2>/dev/null
|
alpar@9
|
1916 mkdir .libs 2>/dev/null
|
alpar@9
|
1917 if test -d .libs; then
|
alpar@9
|
1918 lt_cv_objdir=.libs
|
alpar@9
|
1919 else
|
alpar@9
|
1920 # MS-DOS does not allow filenames that begin with a dot.
|
alpar@9
|
1921 lt_cv_objdir=_libs
|
alpar@9
|
1922 fi
|
alpar@9
|
1923 rmdir .libs 2>/dev/null])
|
alpar@9
|
1924 objdir=$lt_cv_objdir
|
alpar@9
|
1925 _LT_DECL([], [objdir], [0],
|
alpar@9
|
1926 [The name of the directory that contains temporary libtool files])dnl
|
alpar@9
|
1927 m4_pattern_allow([LT_OBJDIR])dnl
|
alpar@9
|
1928 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
|
alpar@9
|
1929 [Define to the sub-directory in which libtool stores uninstalled libraries.])
|
alpar@9
|
1930 ])# _LT_CHECK_OBJDIR
|
alpar@9
|
1931
|
alpar@9
|
1932
|
alpar@9
|
1933 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
alpar@9
|
1934 # --------------------------------------
|
alpar@9
|
1935 # Check hardcoding attributes.
|
alpar@9
|
1936 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
alpar@9
|
1937 [AC_MSG_CHECKING([how to hardcode library paths into programs])
|
alpar@9
|
1938 _LT_TAGVAR(hardcode_action, $1)=
|
alpar@9
|
1939 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
alpar@9
|
1940 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
alpar@9
|
1941 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
alpar@9
|
1942
|
alpar@9
|
1943 # We can hardcode non-existent directories.
|
alpar@9
|
1944 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
|
alpar@9
|
1945 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
alpar@9
|
1946 # have to relink, otherwise we might link with an installed library
|
alpar@9
|
1947 # when we should be linking with a yet-to-be-installed one
|
alpar@9
|
1948 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
alpar@9
|
1949 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
|
alpar@9
|
1950 # Linking always hardcodes the temporary library directory.
|
alpar@9
|
1951 _LT_TAGVAR(hardcode_action, $1)=relink
|
alpar@9
|
1952 else
|
alpar@9
|
1953 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
alpar@9
|
1954 _LT_TAGVAR(hardcode_action, $1)=immediate
|
alpar@9
|
1955 fi
|
alpar@9
|
1956 else
|
alpar@9
|
1957 # We cannot hardcode anything, or else we can only hardcode existing
|
alpar@9
|
1958 # directories.
|
alpar@9
|
1959 _LT_TAGVAR(hardcode_action, $1)=unsupported
|
alpar@9
|
1960 fi
|
alpar@9
|
1961 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
alpar@9
|
1962
|
alpar@9
|
1963 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
|
alpar@9
|
1964 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
|
alpar@9
|
1965 # Fast installation is not supported
|
alpar@9
|
1966 enable_fast_install=no
|
alpar@9
|
1967 elif test "$shlibpath_overrides_runpath" = yes ||
|
alpar@9
|
1968 test "$enable_shared" = no; then
|
alpar@9
|
1969 # Fast installation is not necessary
|
alpar@9
|
1970 enable_fast_install=needless
|
alpar@9
|
1971 fi
|
alpar@9
|
1972 _LT_TAGDECL([], [hardcode_action], [0],
|
alpar@9
|
1973 [How to hardcode a shared library path into an executable])
|
alpar@9
|
1974 ])# _LT_LINKER_HARDCODE_LIBPATH
|
alpar@9
|
1975
|
alpar@9
|
1976
|
alpar@9
|
1977 # _LT_CMD_STRIPLIB
|
alpar@9
|
1978 # ----------------
|
alpar@9
|
1979 m4_defun([_LT_CMD_STRIPLIB],
|
alpar@9
|
1980 [m4_require([_LT_DECL_EGREP])
|
alpar@9
|
1981 striplib=
|
alpar@9
|
1982 old_striplib=
|
alpar@9
|
1983 AC_MSG_CHECKING([whether stripping libraries is possible])
|
alpar@9
|
1984 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
alpar@9
|
1985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
alpar@9
|
1986 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
alpar@9
|
1987 AC_MSG_RESULT([yes])
|
alpar@9
|
1988 else
|
alpar@9
|
1989 # FIXME - insert some real tests, host_os isn't really good enough
|
alpar@9
|
1990 case $host_os in
|
alpar@9
|
1991 darwin*)
|
alpar@9
|
1992 if test -n "$STRIP" ; then
|
alpar@9
|
1993 striplib="$STRIP -x"
|
alpar@9
|
1994 old_striplib="$STRIP -S"
|
alpar@9
|
1995 AC_MSG_RESULT([yes])
|
alpar@9
|
1996 else
|
alpar@9
|
1997 AC_MSG_RESULT([no])
|
alpar@9
|
1998 fi
|
alpar@9
|
1999 ;;
|
alpar@9
|
2000 *)
|
alpar@9
|
2001 AC_MSG_RESULT([no])
|
alpar@9
|
2002 ;;
|
alpar@9
|
2003 esac
|
alpar@9
|
2004 fi
|
alpar@9
|
2005 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
alpar@9
|
2006 _LT_DECL([], [striplib], [1])
|
alpar@9
|
2007 ])# _LT_CMD_STRIPLIB
|
alpar@9
|
2008
|
alpar@9
|
2009
|
alpar@9
|
2010 # _LT_SYS_DYNAMIC_LINKER([TAG])
|
alpar@9
|
2011 # -----------------------------
|
alpar@9
|
2012 # PORTME Fill in your ld.so characteristics
|
alpar@9
|
2013 m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
alpar@9
|
2014 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
2015 m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
2016 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
2017 m4_require([_LT_DECL_OBJDUMP])dnl
|
alpar@9
|
2018 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
2019 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
alpar@9
|
2020 AC_MSG_CHECKING([dynamic linker characteristics])
|
alpar@9
|
2021 m4_if([$1],
|
alpar@9
|
2022 [], [
|
alpar@9
|
2023 if test "$GCC" = yes; then
|
alpar@9
|
2024 case $host_os in
|
alpar@9
|
2025 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
alpar@9
|
2026 *) lt_awk_arg="/^libraries:/" ;;
|
alpar@9
|
2027 esac
|
alpar@9
|
2028 case $host_os in
|
alpar@9
|
2029 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
|
alpar@9
|
2030 *) lt_sed_strip_eq="s,=/,/,g" ;;
|
alpar@9
|
2031 esac
|
alpar@9
|
2032 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
alpar@9
|
2033 case $lt_search_path_spec in
|
alpar@9
|
2034 *\;*)
|
alpar@9
|
2035 # if the path contains ";" then we assume it to be the separator
|
alpar@9
|
2036 # otherwise default to the standard path separator (i.e. ":") - it is
|
alpar@9
|
2037 # assumed that no part of a normal pathname contains ";" but that should
|
alpar@9
|
2038 # okay in the real world where ";" in dirpaths is itself problematic.
|
alpar@9
|
2039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
alpar@9
|
2040 ;;
|
alpar@9
|
2041 *)
|
alpar@9
|
2042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
alpar@9
|
2043 ;;
|
alpar@9
|
2044 esac
|
alpar@9
|
2045 # Ok, now we have the path, separated by spaces, we can step through it
|
alpar@9
|
2046 # and add multilib dir if necessary.
|
alpar@9
|
2047 lt_tmp_lt_search_path_spec=
|
alpar@9
|
2048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
alpar@9
|
2049 for lt_sys_path in $lt_search_path_spec; do
|
alpar@9
|
2050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
alpar@9
|
2051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
alpar@9
|
2052 else
|
alpar@9
|
2053 test -d "$lt_sys_path" && \
|
alpar@9
|
2054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
alpar@9
|
2055 fi
|
alpar@9
|
2056 done
|
alpar@9
|
2057 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
alpar@9
|
2058 BEGIN {RS=" "; FS="/|\n";} {
|
alpar@9
|
2059 lt_foo="";
|
alpar@9
|
2060 lt_count=0;
|
alpar@9
|
2061 for (lt_i = NF; lt_i > 0; lt_i--) {
|
alpar@9
|
2062 if ($lt_i != "" && $lt_i != ".") {
|
alpar@9
|
2063 if ($lt_i == "..") {
|
alpar@9
|
2064 lt_count++;
|
alpar@9
|
2065 } else {
|
alpar@9
|
2066 if (lt_count == 0) {
|
alpar@9
|
2067 lt_foo="/" $lt_i lt_foo;
|
alpar@9
|
2068 } else {
|
alpar@9
|
2069 lt_count--;
|
alpar@9
|
2070 }
|
alpar@9
|
2071 }
|
alpar@9
|
2072 }
|
alpar@9
|
2073 }
|
alpar@9
|
2074 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
alpar@9
|
2075 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
alpar@9
|
2076 }'`
|
alpar@9
|
2077 # AWK program above erroneously prepends '/' to C:/dos/paths
|
alpar@9
|
2078 # for these hosts.
|
alpar@9
|
2079 case $host_os in
|
alpar@9
|
2080 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
alpar@9
|
2081 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
|
alpar@9
|
2082 esac
|
alpar@9
|
2083 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
alpar@9
|
2084 else
|
alpar@9
|
2085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
alpar@9
|
2086 fi])
|
alpar@9
|
2087 library_names_spec=
|
alpar@9
|
2088 libname_spec='lib$name'
|
alpar@9
|
2089 soname_spec=
|
alpar@9
|
2090 shrext_cmds=".so"
|
alpar@9
|
2091 postinstall_cmds=
|
alpar@9
|
2092 postuninstall_cmds=
|
alpar@9
|
2093 finish_cmds=
|
alpar@9
|
2094 finish_eval=
|
alpar@9
|
2095 shlibpath_var=
|
alpar@9
|
2096 shlibpath_overrides_runpath=unknown
|
alpar@9
|
2097 version_type=none
|
alpar@9
|
2098 dynamic_linker="$host_os ld.so"
|
alpar@9
|
2099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
alpar@9
|
2100 need_lib_prefix=unknown
|
alpar@9
|
2101 hardcode_into_libs=no
|
alpar@9
|
2102
|
alpar@9
|
2103 # when you set need_version to no, make sure it does not cause -set_version
|
alpar@9
|
2104 # flags to be left without arguments
|
alpar@9
|
2105 need_version=unknown
|
alpar@9
|
2106
|
alpar@9
|
2107 case $host_os in
|
alpar@9
|
2108 aix3*)
|
alpar@9
|
2109 version_type=linux
|
alpar@9
|
2110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
alpar@9
|
2111 shlibpath_var=LIBPATH
|
alpar@9
|
2112
|
alpar@9
|
2113 # AIX 3 has no versioning support, so we append a major version to the name.
|
alpar@9
|
2114 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2115 ;;
|
alpar@9
|
2116
|
alpar@9
|
2117 aix[[4-9]]*)
|
alpar@9
|
2118 version_type=linux
|
alpar@9
|
2119 need_lib_prefix=no
|
alpar@9
|
2120 need_version=no
|
alpar@9
|
2121 hardcode_into_libs=yes
|
alpar@9
|
2122 if test "$host_cpu" = ia64; then
|
alpar@9
|
2123 # AIX 5 supports IA64
|
alpar@9
|
2124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
alpar@9
|
2125 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2126 else
|
alpar@9
|
2127 # With GCC up to 2.95.x, collect2 would create an import file
|
alpar@9
|
2128 # for dependence libraries. The import file would start with
|
alpar@9
|
2129 # the line `#! .'. This would cause the generated library to
|
alpar@9
|
2130 # depend on `.', always an invalid library. This was fixed in
|
alpar@9
|
2131 # development snapshots of GCC prior to 3.0.
|
alpar@9
|
2132 case $host_os in
|
alpar@9
|
2133 aix4 | aix4.[[01]] | aix4.[[01]].*)
|
alpar@9
|
2134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
alpar@9
|
2135 echo ' yes '
|
alpar@9
|
2136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
alpar@9
|
2137 :
|
alpar@9
|
2138 else
|
alpar@9
|
2139 can_build_shared=no
|
alpar@9
|
2140 fi
|
alpar@9
|
2141 ;;
|
alpar@9
|
2142 esac
|
alpar@9
|
2143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
alpar@9
|
2144 # soname into executable. Probably we can add versioning support to
|
alpar@9
|
2145 # collect2, so additional links can be useful in future.
|
alpar@9
|
2146 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
2147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
alpar@9
|
2148 # instead of lib<name>.a to let people know that these are not
|
alpar@9
|
2149 # typical AIX shared libraries.
|
alpar@9
|
2150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2151 else
|
alpar@9
|
2152 # We preserve .a as extension for shared libraries through AIX4.2
|
alpar@9
|
2153 # and later when we are not doing run time linking.
|
alpar@9
|
2154 library_names_spec='${libname}${release}.a $libname.a'
|
alpar@9
|
2155 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2156 fi
|
alpar@9
|
2157 shlibpath_var=LIBPATH
|
alpar@9
|
2158 fi
|
alpar@9
|
2159 ;;
|
alpar@9
|
2160
|
alpar@9
|
2161 amigaos*)
|
alpar@9
|
2162 case $host_cpu in
|
alpar@9
|
2163 powerpc)
|
alpar@9
|
2164 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
alpar@9
|
2165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
alpar@9
|
2166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2167 ;;
|
alpar@9
|
2168 m68k)
|
alpar@9
|
2169 library_names_spec='$libname.ixlibrary $libname.a'
|
alpar@9
|
2170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
alpar@9
|
2171 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
alpar@9
|
2172 ;;
|
alpar@9
|
2173 esac
|
alpar@9
|
2174 ;;
|
alpar@9
|
2175
|
alpar@9
|
2176 beos*)
|
alpar@9
|
2177 library_names_spec='${libname}${shared_ext}'
|
alpar@9
|
2178 dynamic_linker="$host_os ld.so"
|
alpar@9
|
2179 shlibpath_var=LIBRARY_PATH
|
alpar@9
|
2180 ;;
|
alpar@9
|
2181
|
alpar@9
|
2182 bsdi[[45]]*)
|
alpar@9
|
2183 version_type=linux
|
alpar@9
|
2184 need_version=no
|
alpar@9
|
2185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2186 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
alpar@9
|
2188 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
alpar@9
|
2190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
alpar@9
|
2191 # the default ld.so.conf also contains /usr/contrib/lib and
|
alpar@9
|
2192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
alpar@9
|
2193 # libtool to hard-code these into programs
|
alpar@9
|
2194 ;;
|
alpar@9
|
2195
|
alpar@9
|
2196 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
2197 version_type=windows
|
alpar@9
|
2198 shrext_cmds=".dll"
|
alpar@9
|
2199 need_version=no
|
alpar@9
|
2200 need_lib_prefix=no
|
alpar@9
|
2201
|
alpar@9
|
2202 case $GCC,$host_os in
|
alpar@9
|
2203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
alpar@9
|
2204 library_names_spec='$libname.dll.a'
|
alpar@9
|
2205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
alpar@9
|
2206 postinstall_cmds='base_file=`basename \${file}`~
|
alpar@9
|
2207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
alpar@9
|
2208 dldir=$destdir/`dirname \$dlpath`~
|
alpar@9
|
2209 test -d \$dldir || mkdir -p \$dldir~
|
alpar@9
|
2210 $install_prog $dir/$dlname \$dldir/$dlname~
|
alpar@9
|
2211 chmod a+x \$dldir/$dlname~
|
alpar@9
|
2212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
alpar@9
|
2213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
alpar@9
|
2214 fi'
|
alpar@9
|
2215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
alpar@9
|
2216 dlpath=$dir/\$dldll~
|
alpar@9
|
2217 $RM \$dlpath'
|
alpar@9
|
2218 shlibpath_overrides_runpath=yes
|
alpar@9
|
2219
|
alpar@9
|
2220 case $host_os in
|
alpar@9
|
2221 cygwin*)
|
alpar@9
|
2222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
alpar@9
|
2223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
alpar@9
|
2224 m4_if([$1], [],[
|
alpar@9
|
2225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
|
alpar@9
|
2226 ;;
|
alpar@9
|
2227 mingw* | cegcc*)
|
alpar@9
|
2228 # MinGW DLLs use traditional 'lib' prefix
|
alpar@9
|
2229 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
alpar@9
|
2230 ;;
|
alpar@9
|
2231 pw32*)
|
alpar@9
|
2232 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
alpar@9
|
2233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
alpar@9
|
2234 ;;
|
alpar@9
|
2235 esac
|
alpar@9
|
2236 ;;
|
alpar@9
|
2237
|
alpar@9
|
2238 *)
|
alpar@9
|
2239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
alpar@9
|
2240 ;;
|
alpar@9
|
2241 esac
|
alpar@9
|
2242 dynamic_linker='Win32 ld.exe'
|
alpar@9
|
2243 # FIXME: first we should search . and the directory the executable is in
|
alpar@9
|
2244 shlibpath_var=PATH
|
alpar@9
|
2245 ;;
|
alpar@9
|
2246
|
alpar@9
|
2247 darwin* | rhapsody*)
|
alpar@9
|
2248 dynamic_linker="$host_os dyld"
|
alpar@9
|
2249 version_type=darwin
|
alpar@9
|
2250 need_lib_prefix=no
|
alpar@9
|
2251 need_version=no
|
alpar@9
|
2252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
alpar@9
|
2253 soname_spec='${libname}${release}${major}$shared_ext'
|
alpar@9
|
2254 shlibpath_overrides_runpath=yes
|
alpar@9
|
2255 shlibpath_var=DYLD_LIBRARY_PATH
|
alpar@9
|
2256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
alpar@9
|
2257 m4_if([$1], [],[
|
alpar@9
|
2258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
alpar@9
|
2259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
alpar@9
|
2260 ;;
|
alpar@9
|
2261
|
alpar@9
|
2262 dgux*)
|
alpar@9
|
2263 version_type=linux
|
alpar@9
|
2264 need_lib_prefix=no
|
alpar@9
|
2265 need_version=no
|
alpar@9
|
2266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
alpar@9
|
2267 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2268 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2269 ;;
|
alpar@9
|
2270
|
alpar@9
|
2271 freebsd1*)
|
alpar@9
|
2272 dynamic_linker=no
|
alpar@9
|
2273 ;;
|
alpar@9
|
2274
|
alpar@9
|
2275 freebsd* | dragonfly*)
|
alpar@9
|
2276 # DragonFly does not have aout. When/if they implement a new
|
alpar@9
|
2277 # versioning mechanism, adjust this.
|
alpar@9
|
2278 if test -x /usr/bin/objformat; then
|
alpar@9
|
2279 objformat=`/usr/bin/objformat`
|
alpar@9
|
2280 else
|
alpar@9
|
2281 case $host_os in
|
alpar@9
|
2282 freebsd[[123]]*) objformat=aout ;;
|
alpar@9
|
2283 *) objformat=elf ;;
|
alpar@9
|
2284 esac
|
alpar@9
|
2285 fi
|
alpar@9
|
2286 version_type=freebsd-$objformat
|
alpar@9
|
2287 case $version_type in
|
alpar@9
|
2288 freebsd-elf*)
|
alpar@9
|
2289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
alpar@9
|
2290 need_version=no
|
alpar@9
|
2291 need_lib_prefix=no
|
alpar@9
|
2292 ;;
|
alpar@9
|
2293 freebsd-*)
|
alpar@9
|
2294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
alpar@9
|
2295 need_version=yes
|
alpar@9
|
2296 ;;
|
alpar@9
|
2297 esac
|
alpar@9
|
2298 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2299 case $host_os in
|
alpar@9
|
2300 freebsd2*)
|
alpar@9
|
2301 shlibpath_overrides_runpath=yes
|
alpar@9
|
2302 ;;
|
alpar@9
|
2303 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
alpar@9
|
2304 shlibpath_overrides_runpath=yes
|
alpar@9
|
2305 hardcode_into_libs=yes
|
alpar@9
|
2306 ;;
|
alpar@9
|
2307 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
alpar@9
|
2308 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
alpar@9
|
2309 shlibpath_overrides_runpath=no
|
alpar@9
|
2310 hardcode_into_libs=yes
|
alpar@9
|
2311 ;;
|
alpar@9
|
2312 *) # from 4.6 on, and DragonFly
|
alpar@9
|
2313 shlibpath_overrides_runpath=yes
|
alpar@9
|
2314 hardcode_into_libs=yes
|
alpar@9
|
2315 ;;
|
alpar@9
|
2316 esac
|
alpar@9
|
2317 ;;
|
alpar@9
|
2318
|
alpar@9
|
2319 gnu*)
|
alpar@9
|
2320 version_type=linux
|
alpar@9
|
2321 need_lib_prefix=no
|
alpar@9
|
2322 need_version=no
|
alpar@9
|
2323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
alpar@9
|
2324 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2325 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2326 hardcode_into_libs=yes
|
alpar@9
|
2327 ;;
|
alpar@9
|
2328
|
alpar@9
|
2329 haiku*)
|
alpar@9
|
2330 version_type=linux
|
alpar@9
|
2331 need_lib_prefix=no
|
alpar@9
|
2332 need_version=no
|
alpar@9
|
2333 dynamic_linker="$host_os runtime_loader"
|
alpar@9
|
2334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
alpar@9
|
2335 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2336 shlibpath_var=LIBRARY_PATH
|
alpar@9
|
2337 shlibpath_overrides_runpath=yes
|
alpar@9
|
2338 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
|
alpar@9
|
2339 hardcode_into_libs=yes
|
alpar@9
|
2340 ;;
|
alpar@9
|
2341
|
alpar@9
|
2342 hpux9* | hpux10* | hpux11*)
|
alpar@9
|
2343 # Give a soname corresponding to the major version so that dld.sl refuses to
|
alpar@9
|
2344 # link against other versions.
|
alpar@9
|
2345 version_type=sunos
|
alpar@9
|
2346 need_lib_prefix=no
|
alpar@9
|
2347 need_version=no
|
alpar@9
|
2348 case $host_cpu in
|
alpar@9
|
2349 ia64*)
|
alpar@9
|
2350 shrext_cmds='.so'
|
alpar@9
|
2351 hardcode_into_libs=yes
|
alpar@9
|
2352 dynamic_linker="$host_os dld.so"
|
alpar@9
|
2353 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
alpar@9
|
2355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2356 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2357 if test "X$HPUX_IA64_MODE" = X32; then
|
alpar@9
|
2358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
alpar@9
|
2359 else
|
alpar@9
|
2360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
alpar@9
|
2361 fi
|
alpar@9
|
2362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
alpar@9
|
2363 ;;
|
alpar@9
|
2364 hppa*64*)
|
alpar@9
|
2365 shrext_cmds='.sl'
|
alpar@9
|
2366 hardcode_into_libs=yes
|
alpar@9
|
2367 dynamic_linker="$host_os dld.sl"
|
alpar@9
|
2368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
alpar@9
|
2369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
alpar@9
|
2370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2371 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
alpar@9
|
2373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
alpar@9
|
2374 ;;
|
alpar@9
|
2375 *)
|
alpar@9
|
2376 shrext_cmds='.sl'
|
alpar@9
|
2377 dynamic_linker="$host_os dld.sl"
|
alpar@9
|
2378 shlibpath_var=SHLIB_PATH
|
alpar@9
|
2379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
alpar@9
|
2380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2381 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2382 ;;
|
alpar@9
|
2383 esac
|
alpar@9
|
2384 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
alpar@9
|
2385 postinstall_cmds='chmod 555 $lib'
|
alpar@9
|
2386 # or fails outright, so override atomically:
|
alpar@9
|
2387 install_override_mode=555
|
alpar@9
|
2388 ;;
|
alpar@9
|
2389
|
alpar@9
|
2390 interix[[3-9]]*)
|
alpar@9
|
2391 version_type=linux
|
alpar@9
|
2392 need_lib_prefix=no
|
alpar@9
|
2393 need_version=no
|
alpar@9
|
2394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
alpar@9
|
2395 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2396 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
alpar@9
|
2397 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2398 shlibpath_overrides_runpath=no
|
alpar@9
|
2399 hardcode_into_libs=yes
|
alpar@9
|
2400 ;;
|
alpar@9
|
2401
|
alpar@9
|
2402 irix5* | irix6* | nonstopux*)
|
alpar@9
|
2403 case $host_os in
|
alpar@9
|
2404 nonstopux*) version_type=nonstopux ;;
|
alpar@9
|
2405 *)
|
alpar@9
|
2406 if test "$lt_cv_prog_gnu_ld" = yes; then
|
alpar@9
|
2407 version_type=linux
|
alpar@9
|
2408 else
|
alpar@9
|
2409 version_type=irix
|
alpar@9
|
2410 fi ;;
|
alpar@9
|
2411 esac
|
alpar@9
|
2412 need_lib_prefix=no
|
alpar@9
|
2413 need_version=no
|
alpar@9
|
2414 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
alpar@9
|
2416 case $host_os in
|
alpar@9
|
2417 irix5* | nonstopux*)
|
alpar@9
|
2418 libsuff= shlibsuff=
|
alpar@9
|
2419 ;;
|
alpar@9
|
2420 *)
|
alpar@9
|
2421 case $LD in # libtool.m4 will add one of these switches to LD
|
alpar@9
|
2422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
alpar@9
|
2423 libsuff= shlibsuff= libmagic=32-bit;;
|
alpar@9
|
2424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
alpar@9
|
2425 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
alpar@9
|
2426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
alpar@9
|
2427 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
alpar@9
|
2428 *) libsuff= shlibsuff= libmagic=never-match;;
|
alpar@9
|
2429 esac
|
alpar@9
|
2430 ;;
|
alpar@9
|
2431 esac
|
alpar@9
|
2432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
alpar@9
|
2433 shlibpath_overrides_runpath=no
|
alpar@9
|
2434 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
alpar@9
|
2435 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
alpar@9
|
2436 hardcode_into_libs=yes
|
alpar@9
|
2437 ;;
|
alpar@9
|
2438
|
alpar@9
|
2439 # No shared lib support for Linux oldld, aout, or coff.
|
alpar@9
|
2440 linux*oldld* | linux*aout* | linux*coff*)
|
alpar@9
|
2441 dynamic_linker=no
|
alpar@9
|
2442 ;;
|
alpar@9
|
2443
|
alpar@9
|
2444 # This must be Linux ELF.
|
alpar@9
|
2445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
2446 version_type=linux
|
alpar@9
|
2447 need_lib_prefix=no
|
alpar@9
|
2448 need_version=no
|
alpar@9
|
2449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2450 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
alpar@9
|
2452 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2453 shlibpath_overrides_runpath=no
|
alpar@9
|
2454
|
alpar@9
|
2455 # Some binutils ld are patched to set DT_RUNPATH
|
alpar@9
|
2456 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
|
alpar@9
|
2457 [lt_cv_shlibpath_overrides_runpath=no
|
alpar@9
|
2458 save_LDFLAGS=$LDFLAGS
|
alpar@9
|
2459 save_libdir=$libdir
|
alpar@9
|
2460 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
alpar@9
|
2461 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
alpar@9
|
2462 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
alpar@9
|
2463 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
alpar@9
|
2464 [lt_cv_shlibpath_overrides_runpath=yes])])
|
alpar@9
|
2465 LDFLAGS=$save_LDFLAGS
|
alpar@9
|
2466 libdir=$save_libdir
|
alpar@9
|
2467 ])
|
alpar@9
|
2468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
alpar@9
|
2469
|
alpar@9
|
2470 # This implies no fast_install, which is unacceptable.
|
alpar@9
|
2471 # Some rework will be needed to allow for fast_install
|
alpar@9
|
2472 # before this can be enabled.
|
alpar@9
|
2473 hardcode_into_libs=yes
|
alpar@9
|
2474
|
alpar@9
|
2475 # Append ld.so.conf contents to the search path
|
alpar@9
|
2476 if test -f /etc/ld.so.conf; then
|
alpar@9
|
2477 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' ' '`
|
alpar@9
|
2478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
alpar@9
|
2479 fi
|
alpar@9
|
2480
|
alpar@9
|
2481 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
alpar@9
|
2482 # powerpc, because MkLinux only supported shared libraries with the
|
alpar@9
|
2483 # GNU dynamic linker. Since this was broken with cross compilers,
|
alpar@9
|
2484 # most powerpc-linux boxes support dynamic linking these days and
|
alpar@9
|
2485 # people can always --disable-shared, the test was removed, and we
|
alpar@9
|
2486 # assume the GNU/Linux dynamic linker is in use.
|
alpar@9
|
2487 dynamic_linker='GNU/Linux ld.so'
|
alpar@9
|
2488 ;;
|
alpar@9
|
2489
|
alpar@9
|
2490 netbsd*)
|
alpar@9
|
2491 version_type=sunos
|
alpar@9
|
2492 need_lib_prefix=no
|
alpar@9
|
2493 need_version=no
|
alpar@9
|
2494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
alpar@9
|
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
alpar@9
|
2496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
alpar@9
|
2497 dynamic_linker='NetBSD (a.out) ld.so'
|
alpar@9
|
2498 else
|
alpar@9
|
2499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
alpar@9
|
2500 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2501 dynamic_linker='NetBSD ld.elf_so'
|
alpar@9
|
2502 fi
|
alpar@9
|
2503 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2504 shlibpath_overrides_runpath=yes
|
alpar@9
|
2505 hardcode_into_libs=yes
|
alpar@9
|
2506 ;;
|
alpar@9
|
2507
|
alpar@9
|
2508 newsos6)
|
alpar@9
|
2509 version_type=linux
|
alpar@9
|
2510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2511 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2512 shlibpath_overrides_runpath=yes
|
alpar@9
|
2513 ;;
|
alpar@9
|
2514
|
alpar@9
|
2515 *nto* | *qnx*)
|
alpar@9
|
2516 version_type=qnx
|
alpar@9
|
2517 need_lib_prefix=no
|
alpar@9
|
2518 need_version=no
|
alpar@9
|
2519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2520 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2521 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2522 shlibpath_overrides_runpath=no
|
alpar@9
|
2523 hardcode_into_libs=yes
|
alpar@9
|
2524 dynamic_linker='ldqnx.so'
|
alpar@9
|
2525 ;;
|
alpar@9
|
2526
|
alpar@9
|
2527 openbsd*)
|
alpar@9
|
2528 version_type=sunos
|
alpar@9
|
2529 sys_lib_dlsearch_path_spec="/usr/lib"
|
alpar@9
|
2530 need_lib_prefix=no
|
alpar@9
|
2531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
alpar@9
|
2532 case $host_os in
|
alpar@9
|
2533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
alpar@9
|
2534 *) need_version=no ;;
|
alpar@9
|
2535 esac
|
alpar@9
|
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
alpar@9
|
2537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
alpar@9
|
2538 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
alpar@9
|
2540 case $host_os in
|
alpar@9
|
2541 openbsd2.[[89]] | openbsd2.[[89]].*)
|
alpar@9
|
2542 shlibpath_overrides_runpath=no
|
alpar@9
|
2543 ;;
|
alpar@9
|
2544 *)
|
alpar@9
|
2545 shlibpath_overrides_runpath=yes
|
alpar@9
|
2546 ;;
|
alpar@9
|
2547 esac
|
alpar@9
|
2548 else
|
alpar@9
|
2549 shlibpath_overrides_runpath=yes
|
alpar@9
|
2550 fi
|
alpar@9
|
2551 ;;
|
alpar@9
|
2552
|
alpar@9
|
2553 os2*)
|
alpar@9
|
2554 libname_spec='$name'
|
alpar@9
|
2555 shrext_cmds=".dll"
|
alpar@9
|
2556 need_lib_prefix=no
|
alpar@9
|
2557 library_names_spec='$libname${shared_ext} $libname.a'
|
alpar@9
|
2558 dynamic_linker='OS/2 ld.exe'
|
alpar@9
|
2559 shlibpath_var=LIBPATH
|
alpar@9
|
2560 ;;
|
alpar@9
|
2561
|
alpar@9
|
2562 osf3* | osf4* | osf5*)
|
alpar@9
|
2563 version_type=osf
|
alpar@9
|
2564 need_lib_prefix=no
|
alpar@9
|
2565 need_version=no
|
alpar@9
|
2566 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2568 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
alpar@9
|
2570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
alpar@9
|
2571 ;;
|
alpar@9
|
2572
|
alpar@9
|
2573 rdos*)
|
alpar@9
|
2574 dynamic_linker=no
|
alpar@9
|
2575 ;;
|
alpar@9
|
2576
|
alpar@9
|
2577 solaris*)
|
alpar@9
|
2578 version_type=linux
|
alpar@9
|
2579 need_lib_prefix=no
|
alpar@9
|
2580 need_version=no
|
alpar@9
|
2581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2582 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2583 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2584 shlibpath_overrides_runpath=yes
|
alpar@9
|
2585 hardcode_into_libs=yes
|
alpar@9
|
2586 # ldd complains unless libraries are executable
|
alpar@9
|
2587 postinstall_cmds='chmod +x $lib'
|
alpar@9
|
2588 ;;
|
alpar@9
|
2589
|
alpar@9
|
2590 sunos4*)
|
alpar@9
|
2591 version_type=sunos
|
alpar@9
|
2592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
alpar@9
|
2593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
alpar@9
|
2594 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2595 shlibpath_overrides_runpath=yes
|
alpar@9
|
2596 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
2597 need_lib_prefix=no
|
alpar@9
|
2598 fi
|
alpar@9
|
2599 need_version=yes
|
alpar@9
|
2600 ;;
|
alpar@9
|
2601
|
alpar@9
|
2602 sysv4 | sysv4.3*)
|
alpar@9
|
2603 version_type=linux
|
alpar@9
|
2604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2605 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2606 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2607 case $host_vendor in
|
alpar@9
|
2608 sni)
|
alpar@9
|
2609 shlibpath_overrides_runpath=no
|
alpar@9
|
2610 need_lib_prefix=no
|
alpar@9
|
2611 runpath_var=LD_RUN_PATH
|
alpar@9
|
2612 ;;
|
alpar@9
|
2613 siemens)
|
alpar@9
|
2614 need_lib_prefix=no
|
alpar@9
|
2615 ;;
|
alpar@9
|
2616 motorola)
|
alpar@9
|
2617 need_lib_prefix=no
|
alpar@9
|
2618 need_version=no
|
alpar@9
|
2619 shlibpath_overrides_runpath=no
|
alpar@9
|
2620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
alpar@9
|
2621 ;;
|
alpar@9
|
2622 esac
|
alpar@9
|
2623 ;;
|
alpar@9
|
2624
|
alpar@9
|
2625 sysv4*MP*)
|
alpar@9
|
2626 if test -d /usr/nec ;then
|
alpar@9
|
2627 version_type=linux
|
alpar@9
|
2628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
alpar@9
|
2629 soname_spec='$libname${shared_ext}.$major'
|
alpar@9
|
2630 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2631 fi
|
alpar@9
|
2632 ;;
|
alpar@9
|
2633
|
alpar@9
|
2634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
alpar@9
|
2635 version_type=freebsd-elf
|
alpar@9
|
2636 need_lib_prefix=no
|
alpar@9
|
2637 need_version=no
|
alpar@9
|
2638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
alpar@9
|
2639 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2640 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2641 shlibpath_overrides_runpath=yes
|
alpar@9
|
2642 hardcode_into_libs=yes
|
alpar@9
|
2643 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
2644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
alpar@9
|
2645 else
|
alpar@9
|
2646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
alpar@9
|
2647 case $host_os in
|
alpar@9
|
2648 sco3.2v5*)
|
alpar@9
|
2649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
alpar@9
|
2650 ;;
|
alpar@9
|
2651 esac
|
alpar@9
|
2652 fi
|
alpar@9
|
2653 sys_lib_dlsearch_path_spec='/usr/lib'
|
alpar@9
|
2654 ;;
|
alpar@9
|
2655
|
alpar@9
|
2656 tpf*)
|
alpar@9
|
2657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
alpar@9
|
2658 version_type=linux
|
alpar@9
|
2659 need_lib_prefix=no
|
alpar@9
|
2660 need_version=no
|
alpar@9
|
2661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2662 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2663 shlibpath_overrides_runpath=no
|
alpar@9
|
2664 hardcode_into_libs=yes
|
alpar@9
|
2665 ;;
|
alpar@9
|
2666
|
alpar@9
|
2667 uts4*)
|
alpar@9
|
2668 version_type=linux
|
alpar@9
|
2669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
alpar@9
|
2670 soname_spec='${libname}${release}${shared_ext}$major'
|
alpar@9
|
2671 shlibpath_var=LD_LIBRARY_PATH
|
alpar@9
|
2672 ;;
|
alpar@9
|
2673
|
alpar@9
|
2674 *)
|
alpar@9
|
2675 dynamic_linker=no
|
alpar@9
|
2676 ;;
|
alpar@9
|
2677 esac
|
alpar@9
|
2678 AC_MSG_RESULT([$dynamic_linker])
|
alpar@9
|
2679 test "$dynamic_linker" = no && can_build_shared=no
|
alpar@9
|
2680
|
alpar@9
|
2681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
alpar@9
|
2682 if test "$GCC" = yes; then
|
alpar@9
|
2683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
alpar@9
|
2684 fi
|
alpar@9
|
2685
|
alpar@9
|
2686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
alpar@9
|
2687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
alpar@9
|
2688 fi
|
alpar@9
|
2689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
alpar@9
|
2690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
alpar@9
|
2691 fi
|
alpar@9
|
2692
|
alpar@9
|
2693 _LT_DECL([], [variables_saved_for_relink], [1],
|
alpar@9
|
2694 [Variables whose values should be saved in libtool wrapper scripts and
|
alpar@9
|
2695 restored at link time])
|
alpar@9
|
2696 _LT_DECL([], [need_lib_prefix], [0],
|
alpar@9
|
2697 [Do we need the "lib" prefix for modules?])
|
alpar@9
|
2698 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
|
alpar@9
|
2699 _LT_DECL([], [version_type], [0], [Library versioning type])
|
alpar@9
|
2700 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
|
alpar@9
|
2701 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
|
alpar@9
|
2702 _LT_DECL([], [shlibpath_overrides_runpath], [0],
|
alpar@9
|
2703 [Is shlibpath searched before the hard-coded library search path?])
|
alpar@9
|
2704 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
|
alpar@9
|
2705 _LT_DECL([], [library_names_spec], [1],
|
alpar@9
|
2706 [[List of archive names. First name is the real one, the rest are links.
|
alpar@9
|
2707 The last name is the one that the linker finds with -lNAME]])
|
alpar@9
|
2708 _LT_DECL([], [soname_spec], [1],
|
alpar@9
|
2709 [[The coded name of the library, if different from the real name]])
|
alpar@9
|
2710 _LT_DECL([], [install_override_mode], [1],
|
alpar@9
|
2711 [Permission mode override for installation of shared libraries])
|
alpar@9
|
2712 _LT_DECL([], [postinstall_cmds], [2],
|
alpar@9
|
2713 [Command to use after installation of a shared archive])
|
alpar@9
|
2714 _LT_DECL([], [postuninstall_cmds], [2],
|
alpar@9
|
2715 [Command to use after uninstallation of a shared archive])
|
alpar@9
|
2716 _LT_DECL([], [finish_cmds], [2],
|
alpar@9
|
2717 [Commands used to finish a libtool library installation in a directory])
|
alpar@9
|
2718 _LT_DECL([], [finish_eval], [1],
|
alpar@9
|
2719 [[As "finish_cmds", except a single script fragment to be evaled but
|
alpar@9
|
2720 not shown]])
|
alpar@9
|
2721 _LT_DECL([], [hardcode_into_libs], [0],
|
alpar@9
|
2722 [Whether we should hardcode library paths into libraries])
|
alpar@9
|
2723 _LT_DECL([], [sys_lib_search_path_spec], [2],
|
alpar@9
|
2724 [Compile-time system search path for libraries])
|
alpar@9
|
2725 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
|
alpar@9
|
2726 [Run-time system search path for libraries])
|
alpar@9
|
2727 ])# _LT_SYS_DYNAMIC_LINKER
|
alpar@9
|
2728
|
alpar@9
|
2729
|
alpar@9
|
2730 # _LT_PATH_TOOL_PREFIX(TOOL)
|
alpar@9
|
2731 # --------------------------
|
alpar@9
|
2732 # find a file program which can recognize shared library
|
alpar@9
|
2733 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
|
alpar@9
|
2734 [m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
2735 AC_MSG_CHECKING([for $1])
|
alpar@9
|
2736 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
alpar@9
|
2737 [case $MAGIC_CMD in
|
alpar@9
|
2738 [[\\/*] | ?:[\\/]*])
|
alpar@9
|
2739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
alpar@9
|
2740 ;;
|
alpar@9
|
2741 *)
|
alpar@9
|
2742 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
alpar@9
|
2743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
alpar@9
|
2744 dnl $ac_dummy forces splitting on constant user-supplied paths.
|
alpar@9
|
2745 dnl POSIX.2 word splitting is done only on the output of word expansions,
|
alpar@9
|
2746 dnl not every word. This closes a longstanding sh security hole.
|
alpar@9
|
2747 ac_dummy="m4_if([$2], , $PATH, [$2])"
|
alpar@9
|
2748 for ac_dir in $ac_dummy; do
|
alpar@9
|
2749 IFS="$lt_save_ifs"
|
alpar@9
|
2750 test -z "$ac_dir" && ac_dir=.
|
alpar@9
|
2751 if test -f $ac_dir/$1; then
|
alpar@9
|
2752 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
alpar@9
|
2753 if test -n "$file_magic_test_file"; then
|
alpar@9
|
2754 case $deplibs_check_method in
|
alpar@9
|
2755 "file_magic "*)
|
alpar@9
|
2756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
alpar@9
|
2757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
alpar@9
|
2758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
alpar@9
|
2759 $EGREP "$file_magic_regex" > /dev/null; then
|
alpar@9
|
2760 :
|
alpar@9
|
2761 else
|
alpar@9
|
2762 cat <<_LT_EOF 1>&2
|
alpar@9
|
2763
|
alpar@9
|
2764 *** Warning: the command libtool uses to detect shared libraries,
|
alpar@9
|
2765 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
alpar@9
|
2766 *** The result is that libtool may fail to recognize shared libraries
|
alpar@9
|
2767 *** as such. This will affect the creation of libtool libraries that
|
alpar@9
|
2768 *** depend on shared libraries, but programs linked with such libtool
|
alpar@9
|
2769 *** libraries will work regardless of this problem. Nevertheless, you
|
alpar@9
|
2770 *** may want to report the problem to your system manager and/or to
|
alpar@9
|
2771 *** bug-libtool@gnu.org
|
alpar@9
|
2772
|
alpar@9
|
2773 _LT_EOF
|
alpar@9
|
2774 fi ;;
|
alpar@9
|
2775 esac
|
alpar@9
|
2776 fi
|
alpar@9
|
2777 break
|
alpar@9
|
2778 fi
|
alpar@9
|
2779 done
|
alpar@9
|
2780 IFS="$lt_save_ifs"
|
alpar@9
|
2781 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
alpar@9
|
2782 ;;
|
alpar@9
|
2783 esac])
|
alpar@9
|
2784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
alpar@9
|
2785 if test -n "$MAGIC_CMD"; then
|
alpar@9
|
2786 AC_MSG_RESULT($MAGIC_CMD)
|
alpar@9
|
2787 else
|
alpar@9
|
2788 AC_MSG_RESULT(no)
|
alpar@9
|
2789 fi
|
alpar@9
|
2790 _LT_DECL([], [MAGIC_CMD], [0],
|
alpar@9
|
2791 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
|
alpar@9
|
2792 ])# _LT_PATH_TOOL_PREFIX
|
alpar@9
|
2793
|
alpar@9
|
2794 # Old name:
|
alpar@9
|
2795 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
|
alpar@9
|
2796 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
2797 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
|
alpar@9
|
2798
|
alpar@9
|
2799
|
alpar@9
|
2800 # _LT_PATH_MAGIC
|
alpar@9
|
2801 # --------------
|
alpar@9
|
2802 # find a file program which can recognize a shared library
|
alpar@9
|
2803 m4_defun([_LT_PATH_MAGIC],
|
alpar@9
|
2804 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
alpar@9
|
2805 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
alpar@9
|
2806 if test -n "$ac_tool_prefix"; then
|
alpar@9
|
2807 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
alpar@9
|
2808 else
|
alpar@9
|
2809 MAGIC_CMD=:
|
alpar@9
|
2810 fi
|
alpar@9
|
2811 fi
|
alpar@9
|
2812 ])# _LT_PATH_MAGIC
|
alpar@9
|
2813
|
alpar@9
|
2814
|
alpar@9
|
2815 # LT_PATH_LD
|
alpar@9
|
2816 # ----------
|
alpar@9
|
2817 # find the pathname to the GNU or non-GNU linker
|
alpar@9
|
2818 AC_DEFUN([LT_PATH_LD],
|
alpar@9
|
2819 [AC_REQUIRE([AC_PROG_CC])dnl
|
alpar@9
|
2820 AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
2821 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
alpar@9
|
2822 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
2823 m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
2824 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
|
alpar@9
|
2825
|
alpar@9
|
2826 AC_ARG_WITH([gnu-ld],
|
alpar@9
|
2827 [AS_HELP_STRING([--with-gnu-ld],
|
alpar@9
|
2828 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
alpar@9
|
2829 [test "$withval" = no || with_gnu_ld=yes],
|
alpar@9
|
2830 [with_gnu_ld=no])dnl
|
alpar@9
|
2831
|
alpar@9
|
2832 ac_prog=ld
|
alpar@9
|
2833 if test "$GCC" = yes; then
|
alpar@9
|
2834 # Check if gcc -print-prog-name=ld gives a path.
|
alpar@9
|
2835 AC_MSG_CHECKING([for ld used by $CC])
|
alpar@9
|
2836 case $host in
|
alpar@9
|
2837 *-*-mingw*)
|
alpar@9
|
2838 # gcc leaves a trailing carriage return which upsets mingw
|
alpar@9
|
2839 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
alpar@9
|
2840 *)
|
alpar@9
|
2841 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
alpar@9
|
2842 esac
|
alpar@9
|
2843 case $ac_prog in
|
alpar@9
|
2844 # Accept absolute paths.
|
alpar@9
|
2845 [[\\/]]* | ?:[[\\/]]*)
|
alpar@9
|
2846 re_direlt='/[[^/]][[^/]]*/\.\./'
|
alpar@9
|
2847 # Canonicalize the pathname of ld
|
alpar@9
|
2848 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
alpar@9
|
2849 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
alpar@9
|
2850 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
alpar@9
|
2851 done
|
alpar@9
|
2852 test -z "$LD" && LD="$ac_prog"
|
alpar@9
|
2853 ;;
|
alpar@9
|
2854 "")
|
alpar@9
|
2855 # If it fails, then pretend we aren't using GCC.
|
alpar@9
|
2856 ac_prog=ld
|
alpar@9
|
2857 ;;
|
alpar@9
|
2858 *)
|
alpar@9
|
2859 # If it is relative, then search for the first ld in PATH.
|
alpar@9
|
2860 with_gnu_ld=unknown
|
alpar@9
|
2861 ;;
|
alpar@9
|
2862 esac
|
alpar@9
|
2863 elif test "$with_gnu_ld" = yes; then
|
alpar@9
|
2864 AC_MSG_CHECKING([for GNU ld])
|
alpar@9
|
2865 else
|
alpar@9
|
2866 AC_MSG_CHECKING([for non-GNU ld])
|
alpar@9
|
2867 fi
|
alpar@9
|
2868 AC_CACHE_VAL(lt_cv_path_LD,
|
alpar@9
|
2869 [if test -z "$LD"; then
|
alpar@9
|
2870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
alpar@9
|
2871 for ac_dir in $PATH; do
|
alpar@9
|
2872 IFS="$lt_save_ifs"
|
alpar@9
|
2873 test -z "$ac_dir" && ac_dir=.
|
alpar@9
|
2874 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
alpar@9
|
2875 lt_cv_path_LD="$ac_dir/$ac_prog"
|
alpar@9
|
2876 # Check to see if the program is GNU ld. I'd rather use --version,
|
alpar@9
|
2877 # but apparently some variants of GNU ld only accept -v.
|
alpar@9
|
2878 # Break only if it was the GNU/non-GNU ld that we prefer.
|
alpar@9
|
2879 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
alpar@9
|
2880 *GNU* | *'with BFD'*)
|
alpar@9
|
2881 test "$with_gnu_ld" != no && break
|
alpar@9
|
2882 ;;
|
alpar@9
|
2883 *)
|
alpar@9
|
2884 test "$with_gnu_ld" != yes && break
|
alpar@9
|
2885 ;;
|
alpar@9
|
2886 esac
|
alpar@9
|
2887 fi
|
alpar@9
|
2888 done
|
alpar@9
|
2889 IFS="$lt_save_ifs"
|
alpar@9
|
2890 else
|
alpar@9
|
2891 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
alpar@9
|
2892 fi])
|
alpar@9
|
2893 LD="$lt_cv_path_LD"
|
alpar@9
|
2894 if test -n "$LD"; then
|
alpar@9
|
2895 AC_MSG_RESULT($LD)
|
alpar@9
|
2896 else
|
alpar@9
|
2897 AC_MSG_RESULT(no)
|
alpar@9
|
2898 fi
|
alpar@9
|
2899 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
alpar@9
|
2900 _LT_PATH_LD_GNU
|
alpar@9
|
2901 AC_SUBST([LD])
|
alpar@9
|
2902
|
alpar@9
|
2903 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
|
alpar@9
|
2904 ])# LT_PATH_LD
|
alpar@9
|
2905
|
alpar@9
|
2906 # Old names:
|
alpar@9
|
2907 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
|
alpar@9
|
2908 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
|
alpar@9
|
2909 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
2910 dnl AC_DEFUN([AM_PROG_LD], [])
|
alpar@9
|
2911 dnl AC_DEFUN([AC_PROG_LD], [])
|
alpar@9
|
2912
|
alpar@9
|
2913
|
alpar@9
|
2914 # _LT_PATH_LD_GNU
|
alpar@9
|
2915 #- --------------
|
alpar@9
|
2916 m4_defun([_LT_PATH_LD_GNU],
|
alpar@9
|
2917 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
alpar@9
|
2918 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
alpar@9
|
2919 case `$LD -v 2>&1 </dev/null` in
|
alpar@9
|
2920 *GNU* | *'with BFD'*)
|
alpar@9
|
2921 lt_cv_prog_gnu_ld=yes
|
alpar@9
|
2922 ;;
|
alpar@9
|
2923 *)
|
alpar@9
|
2924 lt_cv_prog_gnu_ld=no
|
alpar@9
|
2925 ;;
|
alpar@9
|
2926 esac])
|
alpar@9
|
2927 with_gnu_ld=$lt_cv_prog_gnu_ld
|
alpar@9
|
2928 ])# _LT_PATH_LD_GNU
|
alpar@9
|
2929
|
alpar@9
|
2930
|
alpar@9
|
2931 # _LT_CMD_RELOAD
|
alpar@9
|
2932 # --------------
|
alpar@9
|
2933 # find reload flag for linker
|
alpar@9
|
2934 # -- PORTME Some linkers may need a different reload flag.
|
alpar@9
|
2935 m4_defun([_LT_CMD_RELOAD],
|
alpar@9
|
2936 [AC_CACHE_CHECK([for $LD option to reload object files],
|
alpar@9
|
2937 lt_cv_ld_reload_flag,
|
alpar@9
|
2938 [lt_cv_ld_reload_flag='-r'])
|
alpar@9
|
2939 reload_flag=$lt_cv_ld_reload_flag
|
alpar@9
|
2940 case $reload_flag in
|
alpar@9
|
2941 "" | " "*) ;;
|
alpar@9
|
2942 *) reload_flag=" $reload_flag" ;;
|
alpar@9
|
2943 esac
|
alpar@9
|
2944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
alpar@9
|
2945 case $host_os in
|
alpar@9
|
2946 darwin*)
|
alpar@9
|
2947 if test "$GCC" = yes; then
|
alpar@9
|
2948 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
alpar@9
|
2949 else
|
alpar@9
|
2950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
alpar@9
|
2951 fi
|
alpar@9
|
2952 ;;
|
alpar@9
|
2953 esac
|
alpar@9
|
2954 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
|
alpar@9
|
2955 _LT_TAGDECL([], [reload_cmds], [2])dnl
|
alpar@9
|
2956 ])# _LT_CMD_RELOAD
|
alpar@9
|
2957
|
alpar@9
|
2958
|
alpar@9
|
2959 # _LT_CHECK_MAGIC_METHOD
|
alpar@9
|
2960 # ----------------------
|
alpar@9
|
2961 # how to check for library dependencies
|
alpar@9
|
2962 # -- PORTME fill in with the dynamic library characteristics
|
alpar@9
|
2963 m4_defun([_LT_CHECK_MAGIC_METHOD],
|
alpar@9
|
2964 [m4_require([_LT_DECL_EGREP])
|
alpar@9
|
2965 m4_require([_LT_DECL_OBJDUMP])
|
alpar@9
|
2966 AC_CACHE_CHECK([how to recognize dependent libraries],
|
alpar@9
|
2967 lt_cv_deplibs_check_method,
|
alpar@9
|
2968 [lt_cv_file_magic_cmd='$MAGIC_CMD'
|
alpar@9
|
2969 lt_cv_file_magic_test_file=
|
alpar@9
|
2970 lt_cv_deplibs_check_method='unknown'
|
alpar@9
|
2971 # Need to set the preceding variable on all platforms that support
|
alpar@9
|
2972 # interlibrary dependencies.
|
alpar@9
|
2973 # 'none' -- dependencies not supported.
|
alpar@9
|
2974 # `unknown' -- same as none, but documents that we really don't know.
|
alpar@9
|
2975 # 'pass_all' -- all dependencies passed with no checks.
|
alpar@9
|
2976 # 'test_compile' -- check by making test program.
|
alpar@9
|
2977 # 'file_magic [[regex]]' -- check by looking for files in library path
|
alpar@9
|
2978 # which responds to the $file_magic_cmd with a given extended regex.
|
alpar@9
|
2979 # If you have `file' or equivalent on your system and you're not sure
|
alpar@9
|
2980 # whether `pass_all' will *always* work, you probably want this one.
|
alpar@9
|
2981
|
alpar@9
|
2982 case $host_os in
|
alpar@9
|
2983 aix[[4-9]]*)
|
alpar@9
|
2984 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
2985 ;;
|
alpar@9
|
2986
|
alpar@9
|
2987 beos*)
|
alpar@9
|
2988 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
2989 ;;
|
alpar@9
|
2990
|
alpar@9
|
2991 bsdi[[45]]*)
|
alpar@9
|
2992 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
alpar@9
|
2993 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
alpar@9
|
2994 lt_cv_file_magic_test_file=/shlib/libc.so
|
alpar@9
|
2995 ;;
|
alpar@9
|
2996
|
alpar@9
|
2997 cygwin*)
|
alpar@9
|
2998 # func_win32_libid is a shell function defined in ltmain.sh
|
alpar@9
|
2999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
alpar@9
|
3000 lt_cv_file_magic_cmd='func_win32_libid'
|
alpar@9
|
3001 ;;
|
alpar@9
|
3002
|
alpar@9
|
3003 mingw* | pw32*)
|
alpar@9
|
3004 # Base MSYS/MinGW do not provide the 'file' command needed by
|
alpar@9
|
3005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
alpar@9
|
3006 # unless we find 'file', for example because we are cross-compiling.
|
alpar@9
|
3007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
|
alpar@9
|
3008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
|
alpar@9
|
3009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
alpar@9
|
3010 lt_cv_file_magic_cmd='func_win32_libid'
|
alpar@9
|
3011 else
|
alpar@9
|
3012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
alpar@9
|
3013 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
alpar@9
|
3014 fi
|
alpar@9
|
3015 ;;
|
alpar@9
|
3016
|
alpar@9
|
3017 cegcc*)
|
alpar@9
|
3018 # use the weaker test based on 'objdump'. See mingw*.
|
alpar@9
|
3019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
alpar@9
|
3020 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
alpar@9
|
3021 ;;
|
alpar@9
|
3022
|
alpar@9
|
3023 darwin* | rhapsody*)
|
alpar@9
|
3024 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3025 ;;
|
alpar@9
|
3026
|
alpar@9
|
3027 freebsd* | dragonfly*)
|
alpar@9
|
3028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
alpar@9
|
3029 case $host_cpu in
|
alpar@9
|
3030 i*86 )
|
alpar@9
|
3031 # Not sure whether the presence of OpenBSD here was a mistake.
|
alpar@9
|
3032 # Let's accept both of them until this is cleared up.
|
alpar@9
|
3033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
alpar@9
|
3034 lt_cv_file_magic_cmd=/usr/bin/file
|
alpar@9
|
3035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
alpar@9
|
3036 ;;
|
alpar@9
|
3037 esac
|
alpar@9
|
3038 else
|
alpar@9
|
3039 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3040 fi
|
alpar@9
|
3041 ;;
|
alpar@9
|
3042
|
alpar@9
|
3043 gnu*)
|
alpar@9
|
3044 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3045 ;;
|
alpar@9
|
3046
|
alpar@9
|
3047 haiku*)
|
alpar@9
|
3048 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3049 ;;
|
alpar@9
|
3050
|
alpar@9
|
3051 hpux10.20* | hpux11*)
|
alpar@9
|
3052 lt_cv_file_magic_cmd=/usr/bin/file
|
alpar@9
|
3053 case $host_cpu in
|
alpar@9
|
3054 ia64*)
|
alpar@9
|
3055 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
alpar@9
|
3056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
alpar@9
|
3057 ;;
|
alpar@9
|
3058 hppa*64*)
|
alpar@9
|
3059 [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]']
|
alpar@9
|
3060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
alpar@9
|
3061 ;;
|
alpar@9
|
3062 *)
|
alpar@9
|
3063 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
|
alpar@9
|
3064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
alpar@9
|
3065 ;;
|
alpar@9
|
3066 esac
|
alpar@9
|
3067 ;;
|
alpar@9
|
3068
|
alpar@9
|
3069 interix[[3-9]]*)
|
alpar@9
|
3070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
alpar@9
|
3071 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
alpar@9
|
3072 ;;
|
alpar@9
|
3073
|
alpar@9
|
3074 irix5* | irix6* | nonstopux*)
|
alpar@9
|
3075 case $LD in
|
alpar@9
|
3076 *-32|*"-32 ") libmagic=32-bit;;
|
alpar@9
|
3077 *-n32|*"-n32 ") libmagic=N32;;
|
alpar@9
|
3078 *-64|*"-64 ") libmagic=64-bit;;
|
alpar@9
|
3079 *) libmagic=never-match;;
|
alpar@9
|
3080 esac
|
alpar@9
|
3081 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3082 ;;
|
alpar@9
|
3083
|
alpar@9
|
3084 # This must be Linux ELF.
|
alpar@9
|
3085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
3086 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3087 ;;
|
alpar@9
|
3088
|
alpar@9
|
3089 netbsd*)
|
alpar@9
|
3090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
alpar@9
|
3091 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
alpar@9
|
3092 else
|
alpar@9
|
3093 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
alpar@9
|
3094 fi
|
alpar@9
|
3095 ;;
|
alpar@9
|
3096
|
alpar@9
|
3097 newos6*)
|
alpar@9
|
3098 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
alpar@9
|
3099 lt_cv_file_magic_cmd=/usr/bin/file
|
alpar@9
|
3100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
alpar@9
|
3101 ;;
|
alpar@9
|
3102
|
alpar@9
|
3103 *nto* | *qnx*)
|
alpar@9
|
3104 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3105 ;;
|
alpar@9
|
3106
|
alpar@9
|
3107 openbsd*)
|
alpar@9
|
3108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
alpar@9
|
3109 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
alpar@9
|
3110 else
|
alpar@9
|
3111 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
alpar@9
|
3112 fi
|
alpar@9
|
3113 ;;
|
alpar@9
|
3114
|
alpar@9
|
3115 osf3* | osf4* | osf5*)
|
alpar@9
|
3116 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3117 ;;
|
alpar@9
|
3118
|
alpar@9
|
3119 rdos*)
|
alpar@9
|
3120 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3121 ;;
|
alpar@9
|
3122
|
alpar@9
|
3123 solaris*)
|
alpar@9
|
3124 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3125 ;;
|
alpar@9
|
3126
|
alpar@9
|
3127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
alpar@9
|
3128 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3129 ;;
|
alpar@9
|
3130
|
alpar@9
|
3131 sysv4 | sysv4.3*)
|
alpar@9
|
3132 case $host_vendor in
|
alpar@9
|
3133 motorola)
|
alpar@9
|
3134 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]]'
|
alpar@9
|
3135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
alpar@9
|
3136 ;;
|
alpar@9
|
3137 ncr)
|
alpar@9
|
3138 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3139 ;;
|
alpar@9
|
3140 sequent)
|
alpar@9
|
3141 lt_cv_file_magic_cmd='/bin/file'
|
alpar@9
|
3142 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
alpar@9
|
3143 ;;
|
alpar@9
|
3144 sni)
|
alpar@9
|
3145 lt_cv_file_magic_cmd='/bin/file'
|
alpar@9
|
3146 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
alpar@9
|
3147 lt_cv_file_magic_test_file=/lib/libc.so
|
alpar@9
|
3148 ;;
|
alpar@9
|
3149 siemens)
|
alpar@9
|
3150 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3151 ;;
|
alpar@9
|
3152 pc)
|
alpar@9
|
3153 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3154 ;;
|
alpar@9
|
3155 esac
|
alpar@9
|
3156 ;;
|
alpar@9
|
3157
|
alpar@9
|
3158 tpf*)
|
alpar@9
|
3159 lt_cv_deplibs_check_method=pass_all
|
alpar@9
|
3160 ;;
|
alpar@9
|
3161 esac
|
alpar@9
|
3162 ])
|
alpar@9
|
3163 file_magic_cmd=$lt_cv_file_magic_cmd
|
alpar@9
|
3164 deplibs_check_method=$lt_cv_deplibs_check_method
|
alpar@9
|
3165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
alpar@9
|
3166
|
alpar@9
|
3167 _LT_DECL([], [deplibs_check_method], [1],
|
alpar@9
|
3168 [Method to check whether dependent libraries are shared objects])
|
alpar@9
|
3169 _LT_DECL([], [file_magic_cmd], [1],
|
alpar@9
|
3170 [Command to use when deplibs_check_method == "file_magic"])
|
alpar@9
|
3171 ])# _LT_CHECK_MAGIC_METHOD
|
alpar@9
|
3172
|
alpar@9
|
3173
|
alpar@9
|
3174 # LT_PATH_NM
|
alpar@9
|
3175 # ----------
|
alpar@9
|
3176 # find the pathname to a BSD- or MS-compatible name lister
|
alpar@9
|
3177 AC_DEFUN([LT_PATH_NM],
|
alpar@9
|
3178 [AC_REQUIRE([AC_PROG_CC])dnl
|
alpar@9
|
3179 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
|
alpar@9
|
3180 [if test -n "$NM"; then
|
alpar@9
|
3181 # Let the user override the test.
|
alpar@9
|
3182 lt_cv_path_NM="$NM"
|
alpar@9
|
3183 else
|
alpar@9
|
3184 lt_nm_to_check="${ac_tool_prefix}nm"
|
alpar@9
|
3185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
alpar@9
|
3186 lt_nm_to_check="$lt_nm_to_check nm"
|
alpar@9
|
3187 fi
|
alpar@9
|
3188 for lt_tmp_nm in $lt_nm_to_check; do
|
alpar@9
|
3189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
alpar@9
|
3190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
alpar@9
|
3191 IFS="$lt_save_ifs"
|
alpar@9
|
3192 test -z "$ac_dir" && ac_dir=.
|
alpar@9
|
3193 tmp_nm="$ac_dir/$lt_tmp_nm"
|
alpar@9
|
3194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
alpar@9
|
3195 # Check to see if the nm accepts a BSD-compat flag.
|
alpar@9
|
3196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
alpar@9
|
3197 # nm: unknown option "B" ignored
|
alpar@9
|
3198 # Tru64's nm complains that /dev/null is an invalid object file
|
alpar@9
|
3199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
alpar@9
|
3200 */dev/null* | *'Invalid file or object type'*)
|
alpar@9
|
3201 lt_cv_path_NM="$tmp_nm -B"
|
alpar@9
|
3202 break
|
alpar@9
|
3203 ;;
|
alpar@9
|
3204 *)
|
alpar@9
|
3205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
alpar@9
|
3206 */dev/null*)
|
alpar@9
|
3207 lt_cv_path_NM="$tmp_nm -p"
|
alpar@9
|
3208 break
|
alpar@9
|
3209 ;;
|
alpar@9
|
3210 *)
|
alpar@9
|
3211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
alpar@9
|
3212 continue # so that we can try to find one that supports BSD flags
|
alpar@9
|
3213 ;;
|
alpar@9
|
3214 esac
|
alpar@9
|
3215 ;;
|
alpar@9
|
3216 esac
|
alpar@9
|
3217 fi
|
alpar@9
|
3218 done
|
alpar@9
|
3219 IFS="$lt_save_ifs"
|
alpar@9
|
3220 done
|
alpar@9
|
3221 : ${lt_cv_path_NM=no}
|
alpar@9
|
3222 fi])
|
alpar@9
|
3223 if test "$lt_cv_path_NM" != "no"; then
|
alpar@9
|
3224 NM="$lt_cv_path_NM"
|
alpar@9
|
3225 else
|
alpar@9
|
3226 # Didn't find any BSD compatible name lister, look for dumpbin.
|
alpar@9
|
3227 if test -n "$DUMPBIN"; then :
|
alpar@9
|
3228 # Let the user override the test.
|
alpar@9
|
3229 else
|
alpar@9
|
3230 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
|
alpar@9
|
3231 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
|
alpar@9
|
3232 *COFF*)
|
alpar@9
|
3233 DUMPBIN="$DUMPBIN -symbols"
|
alpar@9
|
3234 ;;
|
alpar@9
|
3235 *)
|
alpar@9
|
3236 DUMPBIN=:
|
alpar@9
|
3237 ;;
|
alpar@9
|
3238 esac
|
alpar@9
|
3239 fi
|
alpar@9
|
3240 AC_SUBST([DUMPBIN])
|
alpar@9
|
3241 if test "$DUMPBIN" != ":"; then
|
alpar@9
|
3242 NM="$DUMPBIN"
|
alpar@9
|
3243 fi
|
alpar@9
|
3244 fi
|
alpar@9
|
3245 test -z "$NM" && NM=nm
|
alpar@9
|
3246 AC_SUBST([NM])
|
alpar@9
|
3247 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
|
alpar@9
|
3248
|
alpar@9
|
3249 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
|
alpar@9
|
3250 [lt_cv_nm_interface="BSD nm"
|
alpar@9
|
3251 echo "int some_variable = 0;" > conftest.$ac_ext
|
alpar@9
|
3252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
|
alpar@9
|
3253 (eval "$ac_compile" 2>conftest.err)
|
alpar@9
|
3254 cat conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
|
alpar@9
|
3256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
alpar@9
|
3257 cat conftest.err >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3258 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
|
alpar@9
|
3259 cat conftest.out >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
alpar@9
|
3261 lt_cv_nm_interface="MS dumpbin"
|
alpar@9
|
3262 fi
|
alpar@9
|
3263 rm -f conftest*])
|
alpar@9
|
3264 ])# LT_PATH_NM
|
alpar@9
|
3265
|
alpar@9
|
3266 # Old names:
|
alpar@9
|
3267 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
|
alpar@9
|
3268 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
|
alpar@9
|
3269 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
3270 dnl AC_DEFUN([AM_PROG_NM], [])
|
alpar@9
|
3271 dnl AC_DEFUN([AC_PROG_NM], [])
|
alpar@9
|
3272
|
alpar@9
|
3273 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
alpar@9
|
3274 # ----------------------
|
alpar@9
|
3275 # how to determine the name of the shared library
|
alpar@9
|
3276 # associated with a specific link library.
|
alpar@9
|
3277 # -- PORTME fill in with the dynamic library characteristics
|
alpar@9
|
3278 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
|
alpar@9
|
3279 [m4_require([_LT_DECL_EGREP])
|
alpar@9
|
3280 m4_require([_LT_DECL_OBJDUMP])
|
alpar@9
|
3281 m4_require([_LT_DECL_DLLTOOL])
|
alpar@9
|
3282 AC_CACHE_CHECK([how to associate runtime and link libraries],
|
alpar@9
|
3283 lt_cv_sharedlib_from_linklib_cmd,
|
alpar@9
|
3284 [lt_cv_sharedlib_from_linklib_cmd='unknown'
|
alpar@9
|
3285
|
alpar@9
|
3286 case $host_os in
|
alpar@9
|
3287 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
3288 # two different shell functions defined in ltmain.sh
|
alpar@9
|
3289 # decide which to use based on capabilities of $DLLTOOL
|
alpar@9
|
3290 case `$DLLTOOL --help 2>&1` in
|
alpar@9
|
3291 *--identify-strict*)
|
alpar@9
|
3292 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
alpar@9
|
3293 ;;
|
alpar@9
|
3294 *)
|
alpar@9
|
3295 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
alpar@9
|
3296 ;;
|
alpar@9
|
3297 esac
|
alpar@9
|
3298 ;;
|
alpar@9
|
3299 *)
|
alpar@9
|
3300 # fallback: assume linklib IS sharedlib
|
alpar@9
|
3301 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
alpar@9
|
3302 ;;
|
alpar@9
|
3303 esac
|
alpar@9
|
3304 ])
|
alpar@9
|
3305 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
alpar@9
|
3306 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
alpar@9
|
3307
|
alpar@9
|
3308 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
|
alpar@9
|
3309 [Command to associate shared and link libraries])
|
alpar@9
|
3310 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
alpar@9
|
3311
|
alpar@9
|
3312
|
alpar@9
|
3313 # LT_LIB_M
|
alpar@9
|
3314 # --------
|
alpar@9
|
3315 # check for math library
|
alpar@9
|
3316 AC_DEFUN([LT_LIB_M],
|
alpar@9
|
3317 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
3318 LIBM=
|
alpar@9
|
3319 case $host in
|
alpar@9
|
3320 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
|
alpar@9
|
3321 # These system don't have libm, or don't need it
|
alpar@9
|
3322 ;;
|
alpar@9
|
3323 *-ncr-sysv4.3*)
|
alpar@9
|
3324 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
alpar@9
|
3325 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
alpar@9
|
3326 ;;
|
alpar@9
|
3327 *)
|
alpar@9
|
3328 AC_CHECK_LIB(m, cos, LIBM="-lm")
|
alpar@9
|
3329 ;;
|
alpar@9
|
3330 esac
|
alpar@9
|
3331 AC_SUBST([LIBM])
|
alpar@9
|
3332 ])# LT_LIB_M
|
alpar@9
|
3333
|
alpar@9
|
3334 # Old name:
|
alpar@9
|
3335 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
|
alpar@9
|
3336 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
3337 dnl AC_DEFUN([AC_CHECK_LIBM], [])
|
alpar@9
|
3338
|
alpar@9
|
3339
|
alpar@9
|
3340 # _LT_COMPILER_NO_RTTI([TAGNAME])
|
alpar@9
|
3341 # -------------------------------
|
alpar@9
|
3342 m4_defun([_LT_COMPILER_NO_RTTI],
|
alpar@9
|
3343 [m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
3344
|
alpar@9
|
3345 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
alpar@9
|
3346
|
alpar@9
|
3347 if test "$GCC" = yes; then
|
alpar@9
|
3348 case $cc_basename in
|
alpar@9
|
3349 nvcc*)
|
alpar@9
|
3350 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
|
alpar@9
|
3351 *)
|
alpar@9
|
3352 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
|
alpar@9
|
3353 esac
|
alpar@9
|
3354
|
alpar@9
|
3355 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
alpar@9
|
3356 lt_cv_prog_compiler_rtti_exceptions,
|
alpar@9
|
3357 [-fno-rtti -fno-exceptions], [],
|
alpar@9
|
3358 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
alpar@9
|
3359 fi
|
alpar@9
|
3360 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
|
alpar@9
|
3361 [Compiler flag to turn off builtin functions])
|
alpar@9
|
3362 ])# _LT_COMPILER_NO_RTTI
|
alpar@9
|
3363
|
alpar@9
|
3364
|
alpar@9
|
3365 # _LT_CMD_GLOBAL_SYMBOLS
|
alpar@9
|
3366 # ----------------------
|
alpar@9
|
3367 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
|
alpar@9
|
3368 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
3369 AC_REQUIRE([AC_PROG_CC])dnl
|
alpar@9
|
3370 AC_REQUIRE([AC_PROG_AWK])dnl
|
alpar@9
|
3371 AC_REQUIRE([LT_PATH_NM])dnl
|
alpar@9
|
3372 AC_REQUIRE([LT_PATH_LD])dnl
|
alpar@9
|
3373 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
3374 m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
3375 m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
3376
|
alpar@9
|
3377 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
alpar@9
|
3378 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
alpar@9
|
3379 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
alpar@9
|
3380 [
|
alpar@9
|
3381 # These are sane defaults that work on at least a few old systems.
|
alpar@9
|
3382 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
alpar@9
|
3383
|
alpar@9
|
3384 # Character class describing NM global symbol codes.
|
alpar@9
|
3385 symcode='[[BCDEGRST]]'
|
alpar@9
|
3386
|
alpar@9
|
3387 # Regexp to match symbols that can be accessed directly from C.
|
alpar@9
|
3388 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
alpar@9
|
3389
|
alpar@9
|
3390 # Define system-specific variables.
|
alpar@9
|
3391 case $host_os in
|
alpar@9
|
3392 aix*)
|
alpar@9
|
3393 symcode='[[BCDT]]'
|
alpar@9
|
3394 ;;
|
alpar@9
|
3395 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
3396 symcode='[[ABCDGISTW]]'
|
alpar@9
|
3397 ;;
|
alpar@9
|
3398 hpux*)
|
alpar@9
|
3399 if test "$host_cpu" = ia64; then
|
alpar@9
|
3400 symcode='[[ABCDEGRST]]'
|
alpar@9
|
3401 fi
|
alpar@9
|
3402 ;;
|
alpar@9
|
3403 irix* | nonstopux*)
|
alpar@9
|
3404 symcode='[[BCDEGRST]]'
|
alpar@9
|
3405 ;;
|
alpar@9
|
3406 osf*)
|
alpar@9
|
3407 symcode='[[BCDEGQRST]]'
|
alpar@9
|
3408 ;;
|
alpar@9
|
3409 solaris*)
|
alpar@9
|
3410 symcode='[[BDRT]]'
|
alpar@9
|
3411 ;;
|
alpar@9
|
3412 sco3.2v5*)
|
alpar@9
|
3413 symcode='[[DT]]'
|
alpar@9
|
3414 ;;
|
alpar@9
|
3415 sysv4.2uw2*)
|
alpar@9
|
3416 symcode='[[DT]]'
|
alpar@9
|
3417 ;;
|
alpar@9
|
3418 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
alpar@9
|
3419 symcode='[[ABDT]]'
|
alpar@9
|
3420 ;;
|
alpar@9
|
3421 sysv4)
|
alpar@9
|
3422 symcode='[[DFNSTU]]'
|
alpar@9
|
3423 ;;
|
alpar@9
|
3424 esac
|
alpar@9
|
3425
|
alpar@9
|
3426 # If we're using GNU nm, then use its standard symbol codes.
|
alpar@9
|
3427 case `$NM -V 2>&1` in
|
alpar@9
|
3428 *GNU* | *'with BFD'*)
|
alpar@9
|
3429 symcode='[[ABCDGIRSTW]]' ;;
|
alpar@9
|
3430 esac
|
alpar@9
|
3431
|
alpar@9
|
3432 # Transform an extracted symbol line into a proper C declaration.
|
alpar@9
|
3433 # Some systems (esp. on ia64) link data and code symbols differently,
|
alpar@9
|
3434 # so use this general approach.
|
alpar@9
|
3435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
alpar@9
|
3436
|
alpar@9
|
3437 # Transform an extracted symbol line into symbol name and symbol address
|
alpar@9
|
3438 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
alpar@9
|
3439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
alpar@9
|
3440
|
alpar@9
|
3441 # Handle CRLF in mingw tool chain
|
alpar@9
|
3442 opt_cr=
|
alpar@9
|
3443 case $build_os in
|
alpar@9
|
3444 mingw*)
|
alpar@9
|
3445 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
alpar@9
|
3446 ;;
|
alpar@9
|
3447 esac
|
alpar@9
|
3448
|
alpar@9
|
3449 # Try without a prefix underscore, then with it.
|
alpar@9
|
3450 for ac_symprfx in "" "_"; do
|
alpar@9
|
3451
|
alpar@9
|
3452 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
alpar@9
|
3453 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
alpar@9
|
3454
|
alpar@9
|
3455 # Write the raw and C identifiers.
|
alpar@9
|
3456 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
alpar@9
|
3457 # Fake it for dumpbin and say T for any non-static function
|
alpar@9
|
3458 # and D for any global variable.
|
alpar@9
|
3459 # Also find C++ and __fastcall symbols from MSVC++,
|
alpar@9
|
3460 # which start with @ or ?.
|
alpar@9
|
3461 lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
alpar@9
|
3462 " {last_section=section; section=\$ 3};"\
|
alpar@9
|
3463 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
alpar@9
|
3464 " \$ 0!~/External *\|/{next};"\
|
alpar@9
|
3465 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
alpar@9
|
3466 " {if(hide[section]) next};"\
|
alpar@9
|
3467 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
alpar@9
|
3468 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
alpar@9
|
3469 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
alpar@9
|
3470 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
alpar@9
|
3471 " ' prfx=^$ac_symprfx]"
|
alpar@9
|
3472 else
|
alpar@9
|
3473 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
alpar@9
|
3474 fi
|
alpar@9
|
3475
|
alpar@9
|
3476 # Check to see that the pipe works correctly.
|
alpar@9
|
3477 pipe_works=no
|
alpar@9
|
3478
|
alpar@9
|
3479 rm -f conftest*
|
alpar@9
|
3480 cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
3481 #ifdef __cplusplus
|
alpar@9
|
3482 extern "C" {
|
alpar@9
|
3483 #endif
|
alpar@9
|
3484 char nm_test_var;
|
alpar@9
|
3485 void nm_test_func(void);
|
alpar@9
|
3486 void nm_test_func(void){}
|
alpar@9
|
3487 #ifdef __cplusplus
|
alpar@9
|
3488 }
|
alpar@9
|
3489 #endif
|
alpar@9
|
3490 int main(){nm_test_var='a';nm_test_func();return(0);}
|
alpar@9
|
3491 _LT_EOF
|
alpar@9
|
3492
|
alpar@9
|
3493 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
3494 # Now try to grab the symbols.
|
alpar@9
|
3495 nlist=conftest.nm
|
alpar@9
|
3496 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
|
alpar@9
|
3497 # Try sorting and uniquifying the output.
|
alpar@9
|
3498 if sort "$nlist" | uniq > "$nlist"T; then
|
alpar@9
|
3499 mv -f "$nlist"T "$nlist"
|
alpar@9
|
3500 else
|
alpar@9
|
3501 rm -f "$nlist"T
|
alpar@9
|
3502 fi
|
alpar@9
|
3503
|
alpar@9
|
3504 # Make sure that we snagged all the symbols we need.
|
alpar@9
|
3505 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
alpar@9
|
3506 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
alpar@9
|
3507 cat <<_LT_EOF > conftest.$ac_ext
|
alpar@9
|
3508 #ifdef __cplusplus
|
alpar@9
|
3509 extern "C" {
|
alpar@9
|
3510 #endif
|
alpar@9
|
3511
|
alpar@9
|
3512 _LT_EOF
|
alpar@9
|
3513 # Now generate the symbol file.
|
alpar@9
|
3514 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
alpar@9
|
3515
|
alpar@9
|
3516 cat <<_LT_EOF >> conftest.$ac_ext
|
alpar@9
|
3517
|
alpar@9
|
3518 /* The mapping between symbol names and symbols. */
|
alpar@9
|
3519 const struct {
|
alpar@9
|
3520 const char *name;
|
alpar@9
|
3521 void *address;
|
alpar@9
|
3522 }
|
alpar@9
|
3523 lt__PROGRAM__LTX_preloaded_symbols[[]] =
|
alpar@9
|
3524 {
|
alpar@9
|
3525 { "@PROGRAM@", (void *) 0 },
|
alpar@9
|
3526 _LT_EOF
|
alpar@9
|
3527 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
alpar@9
|
3528 cat <<\_LT_EOF >> conftest.$ac_ext
|
alpar@9
|
3529 {0, (void *) 0}
|
alpar@9
|
3530 };
|
alpar@9
|
3531
|
alpar@9
|
3532 /* This works around a problem in FreeBSD linker */
|
alpar@9
|
3533 #ifdef FREEBSD_WORKAROUND
|
alpar@9
|
3534 static const void *lt_preloaded_setup() {
|
alpar@9
|
3535 return lt__PROGRAM__LTX_preloaded_symbols;
|
alpar@9
|
3536 }
|
alpar@9
|
3537 #endif
|
alpar@9
|
3538
|
alpar@9
|
3539 #ifdef __cplusplus
|
alpar@9
|
3540 }
|
alpar@9
|
3541 #endif
|
alpar@9
|
3542 _LT_EOF
|
alpar@9
|
3543 # Now try linking the two files.
|
alpar@9
|
3544 mv conftest.$ac_objext conftstm.$ac_objext
|
alpar@9
|
3545 lt_save_LIBS="$LIBS"
|
alpar@9
|
3546 lt_save_CFLAGS="$CFLAGS"
|
alpar@9
|
3547 LIBS="conftstm.$ac_objext"
|
alpar@9
|
3548 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
alpar@9
|
3549 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
alpar@9
|
3550 pipe_works=yes
|
alpar@9
|
3551 fi
|
alpar@9
|
3552 LIBS="$lt_save_LIBS"
|
alpar@9
|
3553 CFLAGS="$lt_save_CFLAGS"
|
alpar@9
|
3554 else
|
alpar@9
|
3555 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3556 fi
|
alpar@9
|
3557 else
|
alpar@9
|
3558 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3559 fi
|
alpar@9
|
3560 else
|
alpar@9
|
3561 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3562 fi
|
alpar@9
|
3563 else
|
alpar@9
|
3564 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
alpar@9
|
3565 cat conftest.$ac_ext >&5
|
alpar@9
|
3566 fi
|
alpar@9
|
3567 rm -rf conftest* conftst*
|
alpar@9
|
3568
|
alpar@9
|
3569 # Do not use the global_symbol_pipe unless it works.
|
alpar@9
|
3570 if test "$pipe_works" = yes; then
|
alpar@9
|
3571 break
|
alpar@9
|
3572 else
|
alpar@9
|
3573 lt_cv_sys_global_symbol_pipe=
|
alpar@9
|
3574 fi
|
alpar@9
|
3575 done
|
alpar@9
|
3576 ])
|
alpar@9
|
3577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
alpar@9
|
3578 lt_cv_sys_global_symbol_to_cdecl=
|
alpar@9
|
3579 fi
|
alpar@9
|
3580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
alpar@9
|
3581 AC_MSG_RESULT(failed)
|
alpar@9
|
3582 else
|
alpar@9
|
3583 AC_MSG_RESULT(ok)
|
alpar@9
|
3584 fi
|
alpar@9
|
3585
|
alpar@9
|
3586 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
alpar@9
|
3587 [Take the output of nm and produce a listing of raw symbols and C names])
|
alpar@9
|
3588 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
alpar@9
|
3589 [Transform the output of nm in a proper C declaration])
|
alpar@9
|
3590 _LT_DECL([global_symbol_to_c_name_address],
|
alpar@9
|
3591 [lt_cv_sys_global_symbol_to_c_name_address], [1],
|
alpar@9
|
3592 [Transform the output of nm in a C name address pair])
|
alpar@9
|
3593 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
alpar@9
|
3594 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
alpar@9
|
3595 [Transform the output of nm in a C name address pair when lib prefix is needed])
|
alpar@9
|
3596 ]) # _LT_CMD_GLOBAL_SYMBOLS
|
alpar@9
|
3597
|
alpar@9
|
3598
|
alpar@9
|
3599 # _LT_COMPILER_PIC([TAGNAME])
|
alpar@9
|
3600 # ---------------------------
|
alpar@9
|
3601 m4_defun([_LT_COMPILER_PIC],
|
alpar@9
|
3602 [m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
3603 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
alpar@9
|
3604 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
3605 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
alpar@9
|
3606
|
alpar@9
|
3607 AC_MSG_CHECKING([for $compiler option to produce PIC])
|
alpar@9
|
3608 m4_if([$1], [CXX], [
|
alpar@9
|
3609 # C++ specific cases for pic, static, wl, etc.
|
alpar@9
|
3610 if test "$GXX" = yes; then
|
alpar@9
|
3611 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3612 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
3613
|
alpar@9
|
3614 case $host_os in
|
alpar@9
|
3615 aix*)
|
alpar@9
|
3616 # All AIX code is PIC.
|
alpar@9
|
3617 if test "$host_cpu" = ia64; then
|
alpar@9
|
3618 # AIX 5 now supports IA64 processor
|
alpar@9
|
3619 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3620 fi
|
alpar@9
|
3621 ;;
|
alpar@9
|
3622
|
alpar@9
|
3623 amigaos*)
|
alpar@9
|
3624 case $host_cpu in
|
alpar@9
|
3625 powerpc)
|
alpar@9
|
3626 # see comment about AmigaOS4 .so support
|
alpar@9
|
3627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3628 ;;
|
alpar@9
|
3629 m68k)
|
alpar@9
|
3630 # FIXME: we need at least 68020 code to build shared libraries, but
|
alpar@9
|
3631 # adding the `-m68020' flag to GCC prevents building anything better,
|
alpar@9
|
3632 # like `-m68040'.
|
alpar@9
|
3633 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
alpar@9
|
3634 ;;
|
alpar@9
|
3635 esac
|
alpar@9
|
3636 ;;
|
alpar@9
|
3637
|
alpar@9
|
3638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
alpar@9
|
3639 # PIC is the default for these OSes.
|
alpar@9
|
3640 ;;
|
alpar@9
|
3641 mingw* | cygwin* | os2* | pw32* | cegcc*)
|
alpar@9
|
3642 # This hack is so that the source file can tell whether it is being
|
alpar@9
|
3643 # built for inclusion in a dll (and should export symbols for example).
|
alpar@9
|
3644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
alpar@9
|
3645 # (--disable-auto-import) libraries
|
alpar@9
|
3646 m4_if([$1], [GCJ], [],
|
alpar@9
|
3647 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
alpar@9
|
3648 ;;
|
alpar@9
|
3649 darwin* | rhapsody*)
|
alpar@9
|
3650 # PIC is the default on this platform
|
alpar@9
|
3651 # Common symbols not allowed in MH_DYLIB files
|
alpar@9
|
3652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
alpar@9
|
3653 ;;
|
alpar@9
|
3654 *djgpp*)
|
alpar@9
|
3655 # DJGPP does not support shared libraries at all
|
alpar@9
|
3656 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
3657 ;;
|
alpar@9
|
3658 haiku*)
|
alpar@9
|
3659 # PIC is the default for Haiku.
|
alpar@9
|
3660 # The "-static" flag exists, but is broken.
|
alpar@9
|
3661 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
alpar@9
|
3662 ;;
|
alpar@9
|
3663 interix[[3-9]]*)
|
alpar@9
|
3664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
alpar@9
|
3665 # Instead, we relocate shared libraries at runtime.
|
alpar@9
|
3666 ;;
|
alpar@9
|
3667 sysv4*MP*)
|
alpar@9
|
3668 if test -d /usr/nec; then
|
alpar@9
|
3669 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
alpar@9
|
3670 fi
|
alpar@9
|
3671 ;;
|
alpar@9
|
3672 hpux*)
|
alpar@9
|
3673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
alpar@9
|
3674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
alpar@9
|
3675 # sets the default TLS model and affects inlining.
|
alpar@9
|
3676 case $host_cpu in
|
alpar@9
|
3677 hppa*64*)
|
alpar@9
|
3678 ;;
|
alpar@9
|
3679 *)
|
alpar@9
|
3680 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3681 ;;
|
alpar@9
|
3682 esac
|
alpar@9
|
3683 ;;
|
alpar@9
|
3684 *qnx* | *nto*)
|
alpar@9
|
3685 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
alpar@9
|
3686 # it will coredump.
|
alpar@9
|
3687 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
alpar@9
|
3688 ;;
|
alpar@9
|
3689 *)
|
alpar@9
|
3690 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3691 ;;
|
alpar@9
|
3692 esac
|
alpar@9
|
3693 else
|
alpar@9
|
3694 case $host_os in
|
alpar@9
|
3695 aix[[4-9]]*)
|
alpar@9
|
3696 # All AIX code is PIC.
|
alpar@9
|
3697 if test "$host_cpu" = ia64; then
|
alpar@9
|
3698 # AIX 5 now supports IA64 processor
|
alpar@9
|
3699 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3700 else
|
alpar@9
|
3701 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
alpar@9
|
3702 fi
|
alpar@9
|
3703 ;;
|
alpar@9
|
3704 chorus*)
|
alpar@9
|
3705 case $cc_basename in
|
alpar@9
|
3706 cxch68*)
|
alpar@9
|
3707 # Green Hills C++ Compiler
|
alpar@9
|
3708 # _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"
|
alpar@9
|
3709 ;;
|
alpar@9
|
3710 esac
|
alpar@9
|
3711 ;;
|
alpar@9
|
3712 dgux*)
|
alpar@9
|
3713 case $cc_basename in
|
alpar@9
|
3714 ec++*)
|
alpar@9
|
3715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3716 ;;
|
alpar@9
|
3717 ghcx*)
|
alpar@9
|
3718 # Green Hills C++ Compiler
|
alpar@9
|
3719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
alpar@9
|
3720 ;;
|
alpar@9
|
3721 *)
|
alpar@9
|
3722 ;;
|
alpar@9
|
3723 esac
|
alpar@9
|
3724 ;;
|
alpar@9
|
3725 freebsd* | dragonfly*)
|
alpar@9
|
3726 # FreeBSD uses GNU C++
|
alpar@9
|
3727 ;;
|
alpar@9
|
3728 hpux9* | hpux10* | hpux11*)
|
alpar@9
|
3729 case $cc_basename in
|
alpar@9
|
3730 CC*)
|
alpar@9
|
3731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3732 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
alpar@9
|
3733 if test "$host_cpu" != ia64; then
|
alpar@9
|
3734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
alpar@9
|
3735 fi
|
alpar@9
|
3736 ;;
|
alpar@9
|
3737 aCC*)
|
alpar@9
|
3738 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3739 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
alpar@9
|
3740 case $host_cpu in
|
alpar@9
|
3741 hppa*64*|ia64*)
|
alpar@9
|
3742 # +Z the default
|
alpar@9
|
3743 ;;
|
alpar@9
|
3744 *)
|
alpar@9
|
3745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
alpar@9
|
3746 ;;
|
alpar@9
|
3747 esac
|
alpar@9
|
3748 ;;
|
alpar@9
|
3749 *)
|
alpar@9
|
3750 ;;
|
alpar@9
|
3751 esac
|
alpar@9
|
3752 ;;
|
alpar@9
|
3753 interix*)
|
alpar@9
|
3754 # This is c89, which is MS Visual C++ (no shared libs)
|
alpar@9
|
3755 # Anyone wants to do a port?
|
alpar@9
|
3756 ;;
|
alpar@9
|
3757 irix5* | irix6* | nonstopux*)
|
alpar@9
|
3758 case $cc_basename in
|
alpar@9
|
3759 CC*)
|
alpar@9
|
3760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3761 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
3762 # CC pic flag -KPIC is the default.
|
alpar@9
|
3763 ;;
|
alpar@9
|
3764 *)
|
alpar@9
|
3765 ;;
|
alpar@9
|
3766 esac
|
alpar@9
|
3767 ;;
|
alpar@9
|
3768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
3769 case $cc_basename in
|
alpar@9
|
3770 KCC*)
|
alpar@9
|
3771 # KAI C++ Compiler
|
alpar@9
|
3772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
alpar@9
|
3773 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3774 ;;
|
alpar@9
|
3775 ecpc* )
|
alpar@9
|
3776 # old Intel C++ for x86_64 which still supported -KPIC.
|
alpar@9
|
3777 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3778 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3779 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
3780 ;;
|
alpar@9
|
3781 icpc* )
|
alpar@9
|
3782 # Intel C++, used to be incompatible with GCC.
|
alpar@9
|
3783 # ICC 10 doesn't accept -KPIC any more.
|
alpar@9
|
3784 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3786 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
3787 ;;
|
alpar@9
|
3788 pgCC* | pgcpp*)
|
alpar@9
|
3789 # Portland Group C++ compiler
|
alpar@9
|
3790 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3791 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
alpar@9
|
3792 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3793 ;;
|
alpar@9
|
3794 cxx*)
|
alpar@9
|
3795 # Compaq C++
|
alpar@9
|
3796 # Make sure the PIC flag is empty. It appears that all Alpha
|
alpar@9
|
3797 # Linux and Compaq Tru64 Unix objects are PIC.
|
alpar@9
|
3798 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
3799 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
3800 ;;
|
alpar@9
|
3801 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
|
alpar@9
|
3802 # IBM XL 8.0, 9.0 on PPC and BlueGene
|
alpar@9
|
3803 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
alpar@9
|
3805 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
alpar@9
|
3806 ;;
|
alpar@9
|
3807 *)
|
alpar@9
|
3808 case `$CC -V 2>&1 | sed 5q` in
|
alpar@9
|
3809 *Sun\ C*)
|
alpar@9
|
3810 # Sun C++ 5.9
|
alpar@9
|
3811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3812 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3813 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
alpar@9
|
3814 ;;
|
alpar@9
|
3815 esac
|
alpar@9
|
3816 ;;
|
alpar@9
|
3817 esac
|
alpar@9
|
3818 ;;
|
alpar@9
|
3819 lynxos*)
|
alpar@9
|
3820 ;;
|
alpar@9
|
3821 m88k*)
|
alpar@9
|
3822 ;;
|
alpar@9
|
3823 mvs*)
|
alpar@9
|
3824 case $cc_basename in
|
alpar@9
|
3825 cxx*)
|
alpar@9
|
3826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
alpar@9
|
3827 ;;
|
alpar@9
|
3828 *)
|
alpar@9
|
3829 ;;
|
alpar@9
|
3830 esac
|
alpar@9
|
3831 ;;
|
alpar@9
|
3832 netbsd*)
|
alpar@9
|
3833 ;;
|
alpar@9
|
3834 *qnx* | *nto*)
|
alpar@9
|
3835 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
alpar@9
|
3836 # it will coredump.
|
alpar@9
|
3837 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
alpar@9
|
3838 ;;
|
alpar@9
|
3839 osf3* | osf4* | osf5*)
|
alpar@9
|
3840 case $cc_basename in
|
alpar@9
|
3841 KCC*)
|
alpar@9
|
3842 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
alpar@9
|
3843 ;;
|
alpar@9
|
3844 RCC*)
|
alpar@9
|
3845 # Rational C++ 2.4.1
|
alpar@9
|
3846 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
alpar@9
|
3847 ;;
|
alpar@9
|
3848 cxx*)
|
alpar@9
|
3849 # Digital/Compaq C++
|
alpar@9
|
3850 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3851 # Make sure the PIC flag is empty. It appears that all Alpha
|
alpar@9
|
3852 # Linux and Compaq Tru64 Unix objects are PIC.
|
alpar@9
|
3853 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
3854 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
3855 ;;
|
alpar@9
|
3856 *)
|
alpar@9
|
3857 ;;
|
alpar@9
|
3858 esac
|
alpar@9
|
3859 ;;
|
alpar@9
|
3860 psos*)
|
alpar@9
|
3861 ;;
|
alpar@9
|
3862 solaris*)
|
alpar@9
|
3863 case $cc_basename in
|
alpar@9
|
3864 CC*)
|
alpar@9
|
3865 # Sun C++ 4.2, 5.x and Centerline C++
|
alpar@9
|
3866 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3867 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3868 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
alpar@9
|
3869 ;;
|
alpar@9
|
3870 gcx*)
|
alpar@9
|
3871 # Green Hills C++ Compiler
|
alpar@9
|
3872 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
alpar@9
|
3873 ;;
|
alpar@9
|
3874 *)
|
alpar@9
|
3875 ;;
|
alpar@9
|
3876 esac
|
alpar@9
|
3877 ;;
|
alpar@9
|
3878 sunos4*)
|
alpar@9
|
3879 case $cc_basename in
|
alpar@9
|
3880 CC*)
|
alpar@9
|
3881 # Sun C++ 4.x
|
alpar@9
|
3882 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
alpar@9
|
3883 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3884 ;;
|
alpar@9
|
3885 lcc*)
|
alpar@9
|
3886 # Lucid
|
alpar@9
|
3887 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
alpar@9
|
3888 ;;
|
alpar@9
|
3889 *)
|
alpar@9
|
3890 ;;
|
alpar@9
|
3891 esac
|
alpar@9
|
3892 ;;
|
alpar@9
|
3893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
alpar@9
|
3894 case $cc_basename in
|
alpar@9
|
3895 CC*)
|
alpar@9
|
3896 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3898 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3899 ;;
|
alpar@9
|
3900 esac
|
alpar@9
|
3901 ;;
|
alpar@9
|
3902 tandem*)
|
alpar@9
|
3903 case $cc_basename in
|
alpar@9
|
3904 NCC*)
|
alpar@9
|
3905 # NonStop-UX NCC 3.20
|
alpar@9
|
3906 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
3907 ;;
|
alpar@9
|
3908 *)
|
alpar@9
|
3909 ;;
|
alpar@9
|
3910 esac
|
alpar@9
|
3911 ;;
|
alpar@9
|
3912 vxworks*)
|
alpar@9
|
3913 ;;
|
alpar@9
|
3914 *)
|
alpar@9
|
3915 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
alpar@9
|
3916 ;;
|
alpar@9
|
3917 esac
|
alpar@9
|
3918 fi
|
alpar@9
|
3919 ],
|
alpar@9
|
3920 [
|
alpar@9
|
3921 if test "$GCC" = yes; then
|
alpar@9
|
3922 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
3923 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
3924
|
alpar@9
|
3925 case $host_os in
|
alpar@9
|
3926 aix*)
|
alpar@9
|
3927 # All AIX code is PIC.
|
alpar@9
|
3928 if test "$host_cpu" = ia64; then
|
alpar@9
|
3929 # AIX 5 now supports IA64 processor
|
alpar@9
|
3930 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
3931 fi
|
alpar@9
|
3932 ;;
|
alpar@9
|
3933
|
alpar@9
|
3934 amigaos*)
|
alpar@9
|
3935 case $host_cpu in
|
alpar@9
|
3936 powerpc)
|
alpar@9
|
3937 # see comment about AmigaOS4 .so support
|
alpar@9
|
3938 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3939 ;;
|
alpar@9
|
3940 m68k)
|
alpar@9
|
3941 # FIXME: we need at least 68020 code to build shared libraries, but
|
alpar@9
|
3942 # adding the `-m68020' flag to GCC prevents building anything better,
|
alpar@9
|
3943 # like `-m68040'.
|
alpar@9
|
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
alpar@9
|
3945 ;;
|
alpar@9
|
3946 esac
|
alpar@9
|
3947 ;;
|
alpar@9
|
3948
|
alpar@9
|
3949 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
alpar@9
|
3950 # PIC is the default for these OSes.
|
alpar@9
|
3951 ;;
|
alpar@9
|
3952
|
alpar@9
|
3953 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
alpar@9
|
3954 # This hack is so that the source file can tell whether it is being
|
alpar@9
|
3955 # built for inclusion in a dll (and should export symbols for example).
|
alpar@9
|
3956 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
alpar@9
|
3957 # (--disable-auto-import) libraries
|
alpar@9
|
3958 m4_if([$1], [GCJ], [],
|
alpar@9
|
3959 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
alpar@9
|
3960 ;;
|
alpar@9
|
3961
|
alpar@9
|
3962 darwin* | rhapsody*)
|
alpar@9
|
3963 # PIC is the default on this platform
|
alpar@9
|
3964 # Common symbols not allowed in MH_DYLIB files
|
alpar@9
|
3965 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
alpar@9
|
3966 ;;
|
alpar@9
|
3967
|
alpar@9
|
3968 haiku*)
|
alpar@9
|
3969 # PIC is the default for Haiku.
|
alpar@9
|
3970 # The "-static" flag exists, but is broken.
|
alpar@9
|
3971 _LT_TAGVAR(lt_prog_compiler_static, $1)=
|
alpar@9
|
3972 ;;
|
alpar@9
|
3973
|
alpar@9
|
3974 hpux*)
|
alpar@9
|
3975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
alpar@9
|
3976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
alpar@9
|
3977 # sets the default TLS model and affects inlining.
|
alpar@9
|
3978 case $host_cpu in
|
alpar@9
|
3979 hppa*64*)
|
alpar@9
|
3980 # +Z the default
|
alpar@9
|
3981 ;;
|
alpar@9
|
3982 *)
|
alpar@9
|
3983 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
3984 ;;
|
alpar@9
|
3985 esac
|
alpar@9
|
3986 ;;
|
alpar@9
|
3987
|
alpar@9
|
3988 interix[[3-9]]*)
|
alpar@9
|
3989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
alpar@9
|
3990 # Instead, we relocate shared libraries at runtime.
|
alpar@9
|
3991 ;;
|
alpar@9
|
3992
|
alpar@9
|
3993 msdosdjgpp*)
|
alpar@9
|
3994 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
alpar@9
|
3995 # on systems that don't support them.
|
alpar@9
|
3996 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
alpar@9
|
3997 enable_shared=no
|
alpar@9
|
3998 ;;
|
alpar@9
|
3999
|
alpar@9
|
4000 *nto* | *qnx*)
|
alpar@9
|
4001 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
alpar@9
|
4002 # it will coredump.
|
alpar@9
|
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
alpar@9
|
4004 ;;
|
alpar@9
|
4005
|
alpar@9
|
4006 sysv4*MP*)
|
alpar@9
|
4007 if test -d /usr/nec; then
|
alpar@9
|
4008 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
alpar@9
|
4009 fi
|
alpar@9
|
4010 ;;
|
alpar@9
|
4011
|
alpar@9
|
4012 *)
|
alpar@9
|
4013 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
4014 ;;
|
alpar@9
|
4015 esac
|
alpar@9
|
4016
|
alpar@9
|
4017 case $cc_basename in
|
alpar@9
|
4018 nvcc*) # Cuda Compiler Driver 2.2
|
alpar@9
|
4019 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
|
alpar@9
|
4020 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
|
alpar@9
|
4021 ;;
|
alpar@9
|
4022 esac
|
alpar@9
|
4023 else
|
alpar@9
|
4024 # PORTME Check for flag to pass linker flags through the system compiler.
|
alpar@9
|
4025 case $host_os in
|
alpar@9
|
4026 aix*)
|
alpar@9
|
4027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4028 if test "$host_cpu" = ia64; then
|
alpar@9
|
4029 # AIX 5 now supports IA64 processor
|
alpar@9
|
4030 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4031 else
|
alpar@9
|
4032 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
alpar@9
|
4033 fi
|
alpar@9
|
4034 ;;
|
alpar@9
|
4035
|
alpar@9
|
4036 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
alpar@9
|
4037 # This hack is so that the source file can tell whether it is being
|
alpar@9
|
4038 # built for inclusion in a dll (and should export symbols for example).
|
alpar@9
|
4039 m4_if([$1], [GCJ], [],
|
alpar@9
|
4040 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
alpar@9
|
4041 ;;
|
alpar@9
|
4042
|
alpar@9
|
4043 hpux9* | hpux10* | hpux11*)
|
alpar@9
|
4044 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
alpar@9
|
4046 # not for PA HP-UX.
|
alpar@9
|
4047 case $host_cpu in
|
alpar@9
|
4048 hppa*64*|ia64*)
|
alpar@9
|
4049 # +Z the default
|
alpar@9
|
4050 ;;
|
alpar@9
|
4051 *)
|
alpar@9
|
4052 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
alpar@9
|
4053 ;;
|
alpar@9
|
4054 esac
|
alpar@9
|
4055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
alpar@9
|
4056 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
alpar@9
|
4057 ;;
|
alpar@9
|
4058
|
alpar@9
|
4059 irix5* | irix6* | nonstopux*)
|
alpar@9
|
4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4061 # PIC (with -KPIC) is the default.
|
alpar@9
|
4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
4063 ;;
|
alpar@9
|
4064
|
alpar@9
|
4065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
4066 case $cc_basename in
|
alpar@9
|
4067 # old Intel for x86_64 which still supported -KPIC.
|
alpar@9
|
4068 ecc*)
|
alpar@9
|
4069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4071 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
4072 ;;
|
alpar@9
|
4073 # icc used to be incompatible with GCC.
|
alpar@9
|
4074 # ICC 10 doesn't accept -KPIC any more.
|
alpar@9
|
4075 icc* | ifort*)
|
alpar@9
|
4076 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4077 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
alpar@9
|
4078 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
alpar@9
|
4079 ;;
|
alpar@9
|
4080 # Lahey Fortran 8.1.
|
alpar@9
|
4081 lf95*)
|
alpar@9
|
4082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
alpar@9
|
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
alpar@9
|
4085 ;;
|
alpar@9
|
4086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
alpar@9
|
4087 # Portland Group compilers (*not* the Pentium gcc compiler,
|
alpar@9
|
4088 # which looks to be a dead project)
|
alpar@9
|
4089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4090 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
alpar@9
|
4091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4092 ;;
|
alpar@9
|
4093 ccc*)
|
alpar@9
|
4094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4095 # All Alpha code is PIC.
|
alpar@9
|
4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
4097 ;;
|
alpar@9
|
4098 xl* | bgxl* | bgf* | mpixl*)
|
alpar@9
|
4099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
alpar@9
|
4100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4101 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
alpar@9
|
4102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
alpar@9
|
4103 ;;
|
alpar@9
|
4104 *)
|
alpar@9
|
4105 case `$CC -V 2>&1 | sed 5q` in
|
alpar@9
|
4106 *Sun\ F* | *Sun*Fortran*)
|
alpar@9
|
4107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
alpar@9
|
4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4109 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4110 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
alpar@9
|
4111 ;;
|
alpar@9
|
4112 *Sun\ C*)
|
alpar@9
|
4113 # Sun C 5.9
|
alpar@9
|
4114 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4115 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4116 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4117 ;;
|
alpar@9
|
4118 esac
|
alpar@9
|
4119 ;;
|
alpar@9
|
4120 esac
|
alpar@9
|
4121 ;;
|
alpar@9
|
4122
|
alpar@9
|
4123 newsos6)
|
alpar@9
|
4124 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4125 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4126 ;;
|
alpar@9
|
4127
|
alpar@9
|
4128 *nto* | *qnx*)
|
alpar@9
|
4129 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
alpar@9
|
4130 # it will coredump.
|
alpar@9
|
4131 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
alpar@9
|
4132 ;;
|
alpar@9
|
4133
|
alpar@9
|
4134 osf3* | osf4* | osf5*)
|
alpar@9
|
4135 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4136 # All OSF/1 code is PIC.
|
alpar@9
|
4137 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
4138 ;;
|
alpar@9
|
4139
|
alpar@9
|
4140 rdos*)
|
alpar@9
|
4141 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
alpar@9
|
4142 ;;
|
alpar@9
|
4143
|
alpar@9
|
4144 solaris*)
|
alpar@9
|
4145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4147 case $cc_basename in
|
alpar@9
|
4148 f77* | f90* | f95*)
|
alpar@9
|
4149 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
alpar@9
|
4150 *)
|
alpar@9
|
4151 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
alpar@9
|
4152 esac
|
alpar@9
|
4153 ;;
|
alpar@9
|
4154
|
alpar@9
|
4155 sunos4*)
|
alpar@9
|
4156 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
alpar@9
|
4157 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
alpar@9
|
4158 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4159 ;;
|
alpar@9
|
4160
|
alpar@9
|
4161 sysv4 | sysv4.2uw2* | sysv4.3*)
|
alpar@9
|
4162 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4165 ;;
|
alpar@9
|
4166
|
alpar@9
|
4167 sysv4*MP*)
|
alpar@9
|
4168 if test -d /usr/nec ;then
|
alpar@9
|
4169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
alpar@9
|
4170 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4171 fi
|
alpar@9
|
4172 ;;
|
alpar@9
|
4173
|
alpar@9
|
4174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
alpar@9
|
4175 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4176 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
alpar@9
|
4177 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4178 ;;
|
alpar@9
|
4179
|
alpar@9
|
4180 unicos*)
|
alpar@9
|
4181 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
alpar@9
|
4182 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
alpar@9
|
4183 ;;
|
alpar@9
|
4184
|
alpar@9
|
4185 uts4*)
|
alpar@9
|
4186 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
alpar@9
|
4187 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
alpar@9
|
4188 ;;
|
alpar@9
|
4189
|
alpar@9
|
4190 *)
|
alpar@9
|
4191 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
alpar@9
|
4192 ;;
|
alpar@9
|
4193 esac
|
alpar@9
|
4194 fi
|
alpar@9
|
4195 ])
|
alpar@9
|
4196 case $host_os in
|
alpar@9
|
4197 # For platforms which do not support PIC, -DPIC is meaningless:
|
alpar@9
|
4198 *djgpp*)
|
alpar@9
|
4199 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
4200 ;;
|
alpar@9
|
4201 *)
|
alpar@9
|
4202 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
alpar@9
|
4203 ;;
|
alpar@9
|
4204 esac
|
alpar@9
|
4205 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
alpar@9
|
4206 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
alpar@9
|
4207 [How to pass a linker flag through the compiler])
|
alpar@9
|
4208
|
alpar@9
|
4209 #
|
alpar@9
|
4210 # Check to make sure the PIC flag actually works.
|
alpar@9
|
4211 #
|
alpar@9
|
4212 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
alpar@9
|
4213 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
|
alpar@9
|
4214 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
|
alpar@9
|
4215 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
|
alpar@9
|
4216 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
|
alpar@9
|
4217 "" | " "*) ;;
|
alpar@9
|
4218 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
alpar@9
|
4219 esac],
|
alpar@9
|
4220 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
alpar@9
|
4221 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
alpar@9
|
4222 fi
|
alpar@9
|
4223 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
alpar@9
|
4224 [Additional compiler flags for building library objects])
|
alpar@9
|
4225
|
alpar@9
|
4226 #
|
alpar@9
|
4227 # Check to make sure the static flag actually works.
|
alpar@9
|
4228 #
|
alpar@9
|
4229 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
|
alpar@9
|
4230 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
alpar@9
|
4231 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
|
alpar@9
|
4232 $lt_tmp_static_flag,
|
alpar@9
|
4233 [],
|
alpar@9
|
4234 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
|
alpar@9
|
4235 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
alpar@9
|
4236 [Compiler flag to prevent dynamic linking])
|
alpar@9
|
4237 ])# _LT_COMPILER_PIC
|
alpar@9
|
4238
|
alpar@9
|
4239
|
alpar@9
|
4240 # _LT_LINKER_SHLIBS([TAGNAME])
|
alpar@9
|
4241 # ----------------------------
|
alpar@9
|
4242 # See if the linker supports building shared libraries.
|
alpar@9
|
4243 m4_defun([_LT_LINKER_SHLIBS],
|
alpar@9
|
4244 [AC_REQUIRE([LT_PATH_LD])dnl
|
alpar@9
|
4245 AC_REQUIRE([LT_PATH_NM])dnl
|
alpar@9
|
4246 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
4247 m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
4248 m4_require([_LT_DECL_SED])dnl
|
alpar@9
|
4249 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
alpar@9
|
4250 m4_require([_LT_TAG_COMPILER])dnl
|
alpar@9
|
4251 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
alpar@9
|
4252 m4_if([$1], [CXX], [
|
alpar@9
|
4253 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
alpar@9
|
4254 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
alpar@9
|
4255 case $host_os in
|
alpar@9
|
4256 aix[[4-9]]*)
|
alpar@9
|
4257 # If we're using GNU nm, then we don't want the "-C" option.
|
alpar@9
|
4258 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
alpar@9
|
4259 # Also, AIX nm treats weak defined symbols like other global defined
|
alpar@9
|
4260 # symbols, whereas GNU nm marks them as "W".
|
alpar@9
|
4261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
alpar@9
|
4262 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
alpar@9
|
4263 else
|
alpar@9
|
4264 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
alpar@9
|
4265 fi
|
alpar@9
|
4266 ;;
|
alpar@9
|
4267 pw32*)
|
alpar@9
|
4268 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
alpar@9
|
4269 ;;
|
alpar@9
|
4270 cygwin* | mingw* | cegcc*)
|
alpar@9
|
4271 _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'
|
alpar@9
|
4272 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
alpar@9
|
4273 ;;
|
alpar@9
|
4274 *)
|
alpar@9
|
4275 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
alpar@9
|
4276 ;;
|
alpar@9
|
4277 esac
|
alpar@9
|
4278 ], [
|
alpar@9
|
4279 runpath_var=
|
alpar@9
|
4280 _LT_TAGVAR(allow_undefined_flag, $1)=
|
alpar@9
|
4281 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
4282 _LT_TAGVAR(archive_cmds, $1)=
|
alpar@9
|
4283 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
alpar@9
|
4284 _LT_TAGVAR(compiler_needs_object, $1)=no
|
alpar@9
|
4285 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
alpar@9
|
4286 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
alpar@9
|
4287 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
alpar@9
|
4288 _LT_TAGVAR(hardcode_automatic, $1)=no
|
alpar@9
|
4289 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
4290 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
alpar@9
|
4291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
4292 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
alpar@9
|
4293 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
4294 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
alpar@9
|
4295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
alpar@9
|
4296 _LT_TAGVAR(inherit_rpath, $1)=no
|
alpar@9
|
4297 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
alpar@9
|
4298 _LT_TAGVAR(module_cmds, $1)=
|
alpar@9
|
4299 _LT_TAGVAR(module_expsym_cmds, $1)=
|
alpar@9
|
4300 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
|
alpar@9
|
4301 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
alpar@9
|
4302 _LT_TAGVAR(thread_safe_flag_spec, $1)=
|
alpar@9
|
4303 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
4304 # include_expsyms should be a list of space-separated symbols to be *always*
|
alpar@9
|
4305 # included in the symbol list
|
alpar@9
|
4306 _LT_TAGVAR(include_expsyms, $1)=
|
alpar@9
|
4307 # exclude_expsyms can be an extended regexp of symbols to exclude
|
alpar@9
|
4308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
alpar@9
|
4309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
alpar@9
|
4310 # as well as any symbol that contains `d'.
|
alpar@9
|
4311 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
alpar@9
|
4312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
alpar@9
|
4313 # platforms (ab)use it in PIC code, but their linkers get confused if
|
alpar@9
|
4314 # the symbol is explicitly referenced. Since portable code cannot
|
alpar@9
|
4315 # rely on this symbol name, it's probably fine to never include it in
|
alpar@9
|
4316 # preloaded symbol tables.
|
alpar@9
|
4317 # Exclude shared library initialization/finalization symbols.
|
alpar@9
|
4318 dnl Note also adjust exclude_expsyms for C++ above.
|
alpar@9
|
4319 extract_expsyms_cmds=
|
alpar@9
|
4320
|
alpar@9
|
4321 case $host_os in
|
alpar@9
|
4322 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
4323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
alpar@9
|
4324 # When not using gcc, we currently assume that we are using
|
alpar@9
|
4325 # Microsoft Visual C++.
|
alpar@9
|
4326 if test "$GCC" != yes; then
|
alpar@9
|
4327 with_gnu_ld=no
|
alpar@9
|
4328 fi
|
alpar@9
|
4329 ;;
|
alpar@9
|
4330 interix*)
|
alpar@9
|
4331 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
alpar@9
|
4332 with_gnu_ld=yes
|
alpar@9
|
4333 ;;
|
alpar@9
|
4334 openbsd*)
|
alpar@9
|
4335 with_gnu_ld=no
|
alpar@9
|
4336 ;;
|
alpar@9
|
4337 esac
|
alpar@9
|
4338
|
alpar@9
|
4339 _LT_TAGVAR(ld_shlibs, $1)=yes
|
alpar@9
|
4340
|
alpar@9
|
4341 # On some targets, GNU ld is compatible enough with the native linker
|
alpar@9
|
4342 # that we're better off using the native interface for both.
|
alpar@9
|
4343 lt_use_gnu_ld_interface=no
|
alpar@9
|
4344 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
4345 case $host_os in
|
alpar@9
|
4346 aix*)
|
alpar@9
|
4347 # The AIX port of GNU ld has always aspired to compatibility
|
alpar@9
|
4348 # with the native linker. However, as the warning in the GNU ld
|
alpar@9
|
4349 # block says, versions before 2.19.5* couldn't really create working
|
alpar@9
|
4350 # shared libraries, regardless of the interface used.
|
alpar@9
|
4351 case `$LD -v 2>&1` in
|
alpar@9
|
4352 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
alpar@9
|
4353 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
|
alpar@9
|
4354 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
|
alpar@9
|
4355 *)
|
alpar@9
|
4356 lt_use_gnu_ld_interface=yes
|
alpar@9
|
4357 ;;
|
alpar@9
|
4358 esac
|
alpar@9
|
4359 ;;
|
alpar@9
|
4360 *)
|
alpar@9
|
4361 lt_use_gnu_ld_interface=yes
|
alpar@9
|
4362 ;;
|
alpar@9
|
4363 esac
|
alpar@9
|
4364 fi
|
alpar@9
|
4365
|
alpar@9
|
4366 if test "$lt_use_gnu_ld_interface" = yes; then
|
alpar@9
|
4367 # If archive_cmds runs LD, not CC, wlarc should be empty
|
alpar@9
|
4368 wlarc='${wl}'
|
alpar@9
|
4369
|
alpar@9
|
4370 # Set some defaults for GNU ld with shared library support. These
|
alpar@9
|
4371 # are reset later if shared libraries are not supported. Putting them
|
alpar@9
|
4372 # here allows them to be overridden if necessary.
|
alpar@9
|
4373 runpath_var=LD_RUN_PATH
|
alpar@9
|
4374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
4375 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
4376 # ancient GNU ld didn't support --whole-archive et. al.
|
alpar@9
|
4377 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
alpar@9
|
4378 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
alpar@9
|
4379 else
|
alpar@9
|
4380 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
4381 fi
|
alpar@9
|
4382 supports_anon_versioning=no
|
alpar@9
|
4383 case `$LD -v 2>&1` in
|
alpar@9
|
4384 *GNU\ gold*) supports_anon_versioning=yes ;;
|
alpar@9
|
4385 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
alpar@9
|
4386 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
alpar@9
|
4387 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
alpar@9
|
4388 *\ 2.11.*) ;; # other 2.11 versions
|
alpar@9
|
4389 *) supports_anon_versioning=yes ;;
|
alpar@9
|
4390 esac
|
alpar@9
|
4391
|
alpar@9
|
4392 # See if GNU ld supports shared libraries.
|
alpar@9
|
4393 case $host_os in
|
alpar@9
|
4394 aix[[3-9]]*)
|
alpar@9
|
4395 # On AIX/PPC, the GNU linker is very broken
|
alpar@9
|
4396 if test "$host_cpu" != ia64; then
|
alpar@9
|
4397 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4398 cat <<_LT_EOF 1>&2
|
alpar@9
|
4399
|
alpar@9
|
4400 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
alpar@9
|
4401 *** to be unable to reliably create shared libraries on AIX.
|
alpar@9
|
4402 *** Therefore, libtool is disabling shared libraries support. If you
|
alpar@9
|
4403 *** really care for shared libraries, you may want to install binutils
|
alpar@9
|
4404 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
alpar@9
|
4405 *** You will then need to restart the configuration process.
|
alpar@9
|
4406
|
alpar@9
|
4407 _LT_EOF
|
alpar@9
|
4408 fi
|
alpar@9
|
4409 ;;
|
alpar@9
|
4410
|
alpar@9
|
4411 amigaos*)
|
alpar@9
|
4412 case $host_cpu in
|
alpar@9
|
4413 powerpc)
|
alpar@9
|
4414 # see comment about AmigaOS4 .so support
|
alpar@9
|
4415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4416 _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
alpar@9
|
4417 ;;
|
alpar@9
|
4418 m68k)
|
alpar@9
|
4419 _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)'
|
alpar@9
|
4420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
4421 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4422 ;;
|
alpar@9
|
4423 esac
|
alpar@9
|
4424 ;;
|
alpar@9
|
4425
|
alpar@9
|
4426 beos*)
|
alpar@9
|
4427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
alpar@9
|
4428 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
4429 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
alpar@9
|
4430 # support --undefined. This deserves some investigation. FIXME
|
alpar@9
|
4431 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4432 else
|
alpar@9
|
4433 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4434 fi
|
alpar@9
|
4435 ;;
|
alpar@9
|
4436
|
alpar@9
|
4437 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
4438 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
alpar@9
|
4439 # as there is no search path for DLLs.
|
alpar@9
|
4440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
4441 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
alpar@9
|
4442 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
4443 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
4444 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
alpar@9
|
4445 _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'
|
alpar@9
|
4446 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
alpar@9
|
4447
|
alpar@9
|
4448 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
alpar@9
|
4449 _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'
|
alpar@9
|
4450 # If the export-symbols file already is a .def file (1st line
|
alpar@9
|
4451 # is EXPORTS), use it as is; otherwise, prepend...
|
alpar@9
|
4452 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
alpar@9
|
4453 cp $export_symbols $output_objdir/$soname.def;
|
alpar@9
|
4454 else
|
alpar@9
|
4455 echo EXPORTS > $output_objdir/$soname.def;
|
alpar@9
|
4456 cat $export_symbols >> $output_objdir/$soname.def;
|
alpar@9
|
4457 fi~
|
alpar@9
|
4458 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
alpar@9
|
4459 else
|
alpar@9
|
4460 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4461 fi
|
alpar@9
|
4462 ;;
|
alpar@9
|
4463
|
alpar@9
|
4464 haiku*)
|
alpar@9
|
4465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4466 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
4467 ;;
|
alpar@9
|
4468
|
alpar@9
|
4469 interix[[3-9]]*)
|
alpar@9
|
4470 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
4471 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4472 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
4473 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
4474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
alpar@9
|
4475 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
alpar@9
|
4476 # default) and relocated if they conflict, which is a slow very memory
|
alpar@9
|
4477 # consuming and fragmenting process. To avoid this, we pick a random,
|
alpar@9
|
4478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
alpar@9
|
4479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
alpar@9
|
4480 _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'
|
alpar@9
|
4481 _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'
|
alpar@9
|
4482 ;;
|
alpar@9
|
4483
|
alpar@9
|
4484 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
4485 tmp_diet=no
|
alpar@9
|
4486 if test "$host_os" = linux-dietlibc; then
|
alpar@9
|
4487 case $cc_basename in
|
alpar@9
|
4488 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
alpar@9
|
4489 esac
|
alpar@9
|
4490 fi
|
alpar@9
|
4491 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
alpar@9
|
4492 && test "$tmp_diet" = no
|
alpar@9
|
4493 then
|
alpar@9
|
4494 tmp_addflag=
|
alpar@9
|
4495 tmp_sharedflag='-shared'
|
alpar@9
|
4496 case $cc_basename,$host_cpu in
|
alpar@9
|
4497 pgcc*) # Portland Group C compiler
|
alpar@9
|
4498 _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'
|
alpar@9
|
4499 tmp_addflag=' $pic_flag'
|
alpar@9
|
4500 ;;
|
alpar@9
|
4501 pgf77* | pgf90* | pgf95* | pgfortran*)
|
alpar@9
|
4502 # Portland Group f77 and f90 compilers
|
alpar@9
|
4503 _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'
|
alpar@9
|
4504 tmp_addflag=' $pic_flag -Mnomain' ;;
|
alpar@9
|
4505 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
alpar@9
|
4506 tmp_addflag=' -i_dynamic' ;;
|
alpar@9
|
4507 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
alpar@9
|
4508 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
alpar@9
|
4509 ifc* | ifort*) # Intel Fortran compiler
|
alpar@9
|
4510 tmp_addflag=' -nofor_main' ;;
|
alpar@9
|
4511 lf95*) # Lahey Fortran 8.1
|
alpar@9
|
4512 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
4513 tmp_sharedflag='--shared' ;;
|
alpar@9
|
4514 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
alpar@9
|
4515 tmp_sharedflag='-qmkshrobj'
|
alpar@9
|
4516 tmp_addflag= ;;
|
alpar@9
|
4517 nvcc*) # Cuda Compiler Driver 2.2
|
alpar@9
|
4518 _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'
|
alpar@9
|
4519 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
alpar@9
|
4520 ;;
|
alpar@9
|
4521 esac
|
alpar@9
|
4522 case `$CC -V 2>&1 | sed 5q` in
|
alpar@9
|
4523 *Sun\ C*) # Sun C 5.9
|
alpar@9
|
4524 _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'
|
alpar@9
|
4525 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
alpar@9
|
4526 tmp_sharedflag='-G' ;;
|
alpar@9
|
4527 *Sun\ F*) # Sun Fortran 8.3
|
alpar@9
|
4528 tmp_sharedflag='-G' ;;
|
alpar@9
|
4529 esac
|
alpar@9
|
4530 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4531
|
alpar@9
|
4532 if test "x$supports_anon_versioning" = xyes; then
|
alpar@9
|
4533 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
alpar@9
|
4534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
alpar@9
|
4535 echo "local: *; };" >> $output_objdir/$libname.ver~
|
alpar@9
|
4536 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
alpar@9
|
4537 fi
|
alpar@9
|
4538
|
alpar@9
|
4539 case $cc_basename in
|
alpar@9
|
4540 xlf* | bgf* | bgxlf* | mpixlf*)
|
alpar@9
|
4541 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
alpar@9
|
4542 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
alpar@9
|
4543 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
4544 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
alpar@9
|
4545 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
alpar@9
|
4546 if test "x$supports_anon_versioning" = xyes; then
|
alpar@9
|
4547 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
alpar@9
|
4548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
alpar@9
|
4549 echo "local: *; };" >> $output_objdir/$libname.ver~
|
alpar@9
|
4550 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
alpar@9
|
4551 fi
|
alpar@9
|
4552 ;;
|
alpar@9
|
4553 esac
|
alpar@9
|
4554 else
|
alpar@9
|
4555 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4556 fi
|
alpar@9
|
4557 ;;
|
alpar@9
|
4558
|
alpar@9
|
4559 netbsd*)
|
alpar@9
|
4560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
alpar@9
|
4561 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
alpar@9
|
4562 wlarc=
|
alpar@9
|
4563 else
|
alpar@9
|
4564 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4565 _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'
|
alpar@9
|
4566 fi
|
alpar@9
|
4567 ;;
|
alpar@9
|
4568
|
alpar@9
|
4569 solaris*)
|
alpar@9
|
4570 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
alpar@9
|
4571 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4572 cat <<_LT_EOF 1>&2
|
alpar@9
|
4573
|
alpar@9
|
4574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
alpar@9
|
4575 *** create shared libraries on Solaris systems. Therefore, libtool
|
alpar@9
|
4576 *** is disabling shared libraries support. We urge you to upgrade GNU
|
alpar@9
|
4577 *** binutils to release 2.9.1 or newer. Another option is to modify
|
alpar@9
|
4578 *** your PATH or compiler configuration so that the native linker is
|
alpar@9
|
4579 *** used, and then restart.
|
alpar@9
|
4580
|
alpar@9
|
4581 _LT_EOF
|
alpar@9
|
4582 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
alpar@9
|
4583 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4584 _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'
|
alpar@9
|
4585 else
|
alpar@9
|
4586 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4587 fi
|
alpar@9
|
4588 ;;
|
alpar@9
|
4589
|
alpar@9
|
4590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
alpar@9
|
4591 case `$LD -v 2>&1` in
|
alpar@9
|
4592 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
alpar@9
|
4593 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4594 cat <<_LT_EOF 1>&2
|
alpar@9
|
4595
|
alpar@9
|
4596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
alpar@9
|
4597 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
alpar@9
|
4598 *** is disabling shared libraries support. We urge you to upgrade GNU
|
alpar@9
|
4599 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
alpar@9
|
4600 *** your PATH or compiler configuration so that the native linker is
|
alpar@9
|
4601 *** used, and then restart.
|
alpar@9
|
4602
|
alpar@9
|
4603 _LT_EOF
|
alpar@9
|
4604 ;;
|
alpar@9
|
4605 *)
|
alpar@9
|
4606 # For security reasons, it is highly recommended that you always
|
alpar@9
|
4607 # use absolute paths for naming shared libraries, and exclude the
|
alpar@9
|
4608 # DT_RUNPATH tag from executables and libraries. But doing so
|
alpar@9
|
4609 # requires that you compile everything twice, which is a pain.
|
alpar@9
|
4610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
alpar@9
|
4611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
4612 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4613 _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'
|
alpar@9
|
4614 else
|
alpar@9
|
4615 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4616 fi
|
alpar@9
|
4617 ;;
|
alpar@9
|
4618 esac
|
alpar@9
|
4619 ;;
|
alpar@9
|
4620
|
alpar@9
|
4621 sunos4*)
|
alpar@9
|
4622 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
4623 wlarc=
|
alpar@9
|
4624 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4625 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4626 ;;
|
alpar@9
|
4627
|
alpar@9
|
4628 *)
|
alpar@9
|
4629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
alpar@9
|
4630 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4631 _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'
|
alpar@9
|
4632 else
|
alpar@9
|
4633 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4634 fi
|
alpar@9
|
4635 ;;
|
alpar@9
|
4636 esac
|
alpar@9
|
4637
|
alpar@9
|
4638 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
|
alpar@9
|
4639 runpath_var=
|
alpar@9
|
4640 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
4641 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
alpar@9
|
4642 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
4643 fi
|
alpar@9
|
4644 else
|
alpar@9
|
4645 # PORTME fill in a description of your system's linker (not GNU ld)
|
alpar@9
|
4646 case $host_os in
|
alpar@9
|
4647 aix3*)
|
alpar@9
|
4648 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
4649 _LT_TAGVAR(always_export_symbols, $1)=yes
|
alpar@9
|
4650 _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'
|
alpar@9
|
4651 # Note: this linker hardcodes the directories in LIBPATH if there
|
alpar@9
|
4652 # are no directories specified by -L.
|
alpar@9
|
4653 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4654 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
alpar@9
|
4655 # Neither direct hardcoding nor static linking is supported with a
|
alpar@9
|
4656 # broken collect2.
|
alpar@9
|
4657 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
alpar@9
|
4658 fi
|
alpar@9
|
4659 ;;
|
alpar@9
|
4660
|
alpar@9
|
4661 aix[[4-9]]*)
|
alpar@9
|
4662 if test "$host_cpu" = ia64; then
|
alpar@9
|
4663 # On IA64, the linker does run time linking by default, so we don't
|
alpar@9
|
4664 # have to do anything special.
|
alpar@9
|
4665 aix_use_runtimelinking=no
|
alpar@9
|
4666 exp_sym_flag='-Bexport'
|
alpar@9
|
4667 no_entry_flag=""
|
alpar@9
|
4668 else
|
alpar@9
|
4669 # If we're using GNU nm, then we don't want the "-C" option.
|
alpar@9
|
4670 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
alpar@9
|
4671 # Also, AIX nm treats weak defined symbols like other global
|
alpar@9
|
4672 # defined symbols, whereas GNU nm marks them as "W".
|
alpar@9
|
4673 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
alpar@9
|
4674 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
alpar@9
|
4675 else
|
alpar@9
|
4676 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
alpar@9
|
4677 fi
|
alpar@9
|
4678 aix_use_runtimelinking=no
|
alpar@9
|
4679
|
alpar@9
|
4680 # Test if we are trying to use run time linking or normal
|
alpar@9
|
4681 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
alpar@9
|
4682 # need to do runtime linking.
|
alpar@9
|
4683 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
alpar@9
|
4684 for ld_flag in $LDFLAGS; do
|
alpar@9
|
4685 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
alpar@9
|
4686 aix_use_runtimelinking=yes
|
alpar@9
|
4687 break
|
alpar@9
|
4688 fi
|
alpar@9
|
4689 done
|
alpar@9
|
4690 ;;
|
alpar@9
|
4691 esac
|
alpar@9
|
4692
|
alpar@9
|
4693 exp_sym_flag='-bexport'
|
alpar@9
|
4694 no_entry_flag='-bnoentry'
|
alpar@9
|
4695 fi
|
alpar@9
|
4696
|
alpar@9
|
4697 # When large executables or shared objects are built, AIX ld can
|
alpar@9
|
4698 # have problems creating the table of contents. If linking a library
|
alpar@9
|
4699 # or program results in "error TOC overflow" add -mminimal-toc to
|
alpar@9
|
4700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
alpar@9
|
4701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
alpar@9
|
4702
|
alpar@9
|
4703 _LT_TAGVAR(archive_cmds, $1)=''
|
alpar@9
|
4704 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4705 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
4706 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
alpar@9
|
4707 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
4708 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
alpar@9
|
4709
|
alpar@9
|
4710 if test "$GCC" = yes; then
|
alpar@9
|
4711 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
alpar@9
|
4712 # We only want to do this on AIX 4.2 and lower, the check
|
alpar@9
|
4713 # below for broken collect2 doesn't work under 4.3+
|
alpar@9
|
4714 collect2name=`${CC} -print-prog-name=collect2`
|
alpar@9
|
4715 if test -f "$collect2name" &&
|
alpar@9
|
4716 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
alpar@9
|
4717 then
|
alpar@9
|
4718 # We have reworked collect2
|
alpar@9
|
4719 :
|
alpar@9
|
4720 else
|
alpar@9
|
4721 # We have old collect2
|
alpar@9
|
4722 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
alpar@9
|
4723 # It fails to find uninstalled libraries when the uninstalled
|
alpar@9
|
4724 # path is not listed in the libpath. Setting hardcode_minus_L
|
alpar@9
|
4725 # to unsupported forces relinking
|
alpar@9
|
4726 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
4728 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
4729 fi
|
alpar@9
|
4730 ;;
|
alpar@9
|
4731 esac
|
alpar@9
|
4732 shared_flag='-shared'
|
alpar@9
|
4733 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
4734 shared_flag="$shared_flag "'${wl}-G'
|
alpar@9
|
4735 fi
|
alpar@9
|
4736 else
|
alpar@9
|
4737 # not using gcc
|
alpar@9
|
4738 if test "$host_cpu" = ia64; then
|
alpar@9
|
4739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
alpar@9
|
4740 # chokes on -Wl,-G. The following line is correct:
|
alpar@9
|
4741 shared_flag='-G'
|
alpar@9
|
4742 else
|
alpar@9
|
4743 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
4744 shared_flag='${wl}-G'
|
alpar@9
|
4745 else
|
alpar@9
|
4746 shared_flag='${wl}-bM:SRE'
|
alpar@9
|
4747 fi
|
alpar@9
|
4748 fi
|
alpar@9
|
4749 fi
|
alpar@9
|
4750
|
alpar@9
|
4751 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
alpar@9
|
4752 # It seems that -bexpall does not export symbols beginning with
|
alpar@9
|
4753 # underscore (_), so it is better to generate a list of symbols to export.
|
alpar@9
|
4754 _LT_TAGVAR(always_export_symbols, $1)=yes
|
alpar@9
|
4755 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
4756 # Warning - without using the other runtime loading flags (-brtl),
|
alpar@9
|
4757 # -berok will link without error, but may produce a broken library.
|
alpar@9
|
4758 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
alpar@9
|
4759 # Determine the default libpath from the value encoded in an
|
alpar@9
|
4760 # empty executable.
|
alpar@9
|
4761 _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
4762 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
alpar@9
|
4763 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
alpar@9
|
4764 else
|
alpar@9
|
4765 if test "$host_cpu" = ia64; then
|
alpar@9
|
4766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
alpar@9
|
4767 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
alpar@9
|
4768 _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"
|
alpar@9
|
4769 else
|
alpar@9
|
4770 # Determine the default libpath from the value encoded in an
|
alpar@9
|
4771 # empty executable.
|
alpar@9
|
4772 _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
4773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
alpar@9
|
4774 # Warning - without using the other run time loading flags,
|
alpar@9
|
4775 # -berok will link without error, but may produce a broken library.
|
alpar@9
|
4776 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
alpar@9
|
4777 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
alpar@9
|
4778 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
4779 # We only use this code for GNU lds that support --whole-archive.
|
alpar@9
|
4780 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
alpar@9
|
4781 else
|
alpar@9
|
4782 # Exported symbols can be pulled into shared objects from archives
|
alpar@9
|
4783 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
alpar@9
|
4784 fi
|
alpar@9
|
4785 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
alpar@9
|
4786 # This is similar to how AIX traditionally builds its shared libraries.
|
alpar@9
|
4787 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
alpar@9
|
4788 fi
|
alpar@9
|
4789 fi
|
alpar@9
|
4790 ;;
|
alpar@9
|
4791
|
alpar@9
|
4792 amigaos*)
|
alpar@9
|
4793 case $host_cpu in
|
alpar@9
|
4794 powerpc)
|
alpar@9
|
4795 # see comment about AmigaOS4 .so support
|
alpar@9
|
4796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
4797 _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
alpar@9
|
4798 ;;
|
alpar@9
|
4799 m68k)
|
alpar@9
|
4800 _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)'
|
alpar@9
|
4801 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
4802 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4803 ;;
|
alpar@9
|
4804 esac
|
alpar@9
|
4805 ;;
|
alpar@9
|
4806
|
alpar@9
|
4807 bsdi[[45]]*)
|
alpar@9
|
4808 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
alpar@9
|
4809 ;;
|
alpar@9
|
4810
|
alpar@9
|
4811 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
4812 # When not using gcc, we currently assume that we are using
|
alpar@9
|
4813 # Microsoft Visual C++.
|
alpar@9
|
4814 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
alpar@9
|
4815 # no search path for DLLs.
|
alpar@9
|
4816 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
alpar@9
|
4817 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
4818 # Tell ltmain to make .lib files, not .a files.
|
alpar@9
|
4819 libext=lib
|
alpar@9
|
4820 # Tell ltmain to make .dll files, not .so files.
|
alpar@9
|
4821 shrext_cmds=".dll"
|
alpar@9
|
4822 # FIXME: Setting linknames here is a bad hack.
|
alpar@9
|
4823 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
alpar@9
|
4824 # The linker will automatically build a .lib file if we build a DLL.
|
alpar@9
|
4825 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
alpar@9
|
4826 # FIXME: Should let the user specify the lib program.
|
alpar@9
|
4827 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
alpar@9
|
4828 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
alpar@9
|
4829 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
alpar@9
|
4830 ;;
|
alpar@9
|
4831
|
alpar@9
|
4832 darwin* | rhapsody*)
|
alpar@9
|
4833 _LT_DARWIN_LINKER_FEATURES($1)
|
alpar@9
|
4834 ;;
|
alpar@9
|
4835
|
alpar@9
|
4836 dgux*)
|
alpar@9
|
4837 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
4838 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
4839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4840 ;;
|
alpar@9
|
4841
|
alpar@9
|
4842 freebsd1*)
|
alpar@9
|
4843 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
4844 ;;
|
alpar@9
|
4845
|
alpar@9
|
4846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
alpar@9
|
4847 # support. Future versions do this automatically, but an explicit c++rt0.o
|
alpar@9
|
4848 # does not break anything, and helps significantly (at the cost of a little
|
alpar@9
|
4849 # extra space).
|
alpar@9
|
4850 freebsd2.2*)
|
alpar@9
|
4851 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
alpar@9
|
4852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
4853 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4855 ;;
|
alpar@9
|
4856
|
alpar@9
|
4857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
alpar@9
|
4858 freebsd2*)
|
alpar@9
|
4859 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
4860 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4861 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4862 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4863 ;;
|
alpar@9
|
4864
|
alpar@9
|
4865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
alpar@9
|
4866 freebsd* | dragonfly*)
|
alpar@9
|
4867 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
4869 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4870 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4871 ;;
|
alpar@9
|
4872
|
alpar@9
|
4873 hpux9*)
|
alpar@9
|
4874 if test "$GCC" = yes; then
|
alpar@9
|
4875 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
alpar@9
|
4876 else
|
alpar@9
|
4877 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
alpar@9
|
4878 fi
|
alpar@9
|
4879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
alpar@9
|
4880 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
4881 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4882
|
alpar@9
|
4883 # hardcode_minus_L: Not really in the search PATH,
|
alpar@9
|
4884 # but as the default location of the library.
|
alpar@9
|
4885 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4886 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
4887 ;;
|
alpar@9
|
4888
|
alpar@9
|
4889 hpux10*)
|
alpar@9
|
4890 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
alpar@9
|
4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4892 else
|
alpar@9
|
4893 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
4894 fi
|
alpar@9
|
4895 if test "$with_gnu_ld" = no; then
|
alpar@9
|
4896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
alpar@9
|
4897 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
alpar@9
|
4898 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
4899 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4900 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
4901 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
4902 # hardcode_minus_L: Not really in the search PATH,
|
alpar@9
|
4903 # but as the default location of the library.
|
alpar@9
|
4904 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4905 fi
|
alpar@9
|
4906 ;;
|
alpar@9
|
4907
|
alpar@9
|
4908 hpux11*)
|
alpar@9
|
4909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
alpar@9
|
4910 case $host_cpu in
|
alpar@9
|
4911 hppa*64*)
|
alpar@9
|
4912 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4913 ;;
|
alpar@9
|
4914 ia64*)
|
alpar@9
|
4915 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4916 ;;
|
alpar@9
|
4917 *)
|
alpar@9
|
4918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4919 ;;
|
alpar@9
|
4920 esac
|
alpar@9
|
4921 else
|
alpar@9
|
4922 case $host_cpu in
|
alpar@9
|
4923 hppa*64*)
|
alpar@9
|
4924 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4925 ;;
|
alpar@9
|
4926 ia64*)
|
alpar@9
|
4927 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
4928 ;;
|
alpar@9
|
4929 *)
|
alpar@9
|
4930 m4_if($1, [], [
|
alpar@9
|
4931 # Older versions of the 11.00 compiler do not understand -b yet
|
alpar@9
|
4932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
alpar@9
|
4933 _LT_LINKER_OPTION([if $CC understands -b],
|
alpar@9
|
4934 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
|
alpar@9
|
4935 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
|
alpar@9
|
4936 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
|
alpar@9
|
4937 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
|
alpar@9
|
4938 ;;
|
alpar@9
|
4939 esac
|
alpar@9
|
4940 fi
|
alpar@9
|
4941 if test "$with_gnu_ld" = no; then
|
alpar@9
|
4942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
alpar@9
|
4943 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
4944
|
alpar@9
|
4945 case $host_cpu in
|
alpar@9
|
4946 hppa*64*|ia64*)
|
alpar@9
|
4947 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
4948 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4949 ;;
|
alpar@9
|
4950 *)
|
alpar@9
|
4951 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4952 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
4953 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
4954
|
alpar@9
|
4955 # hardcode_minus_L: Not really in the search PATH,
|
alpar@9
|
4956 # but as the default location of the library.
|
alpar@9
|
4957 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
4958 ;;
|
alpar@9
|
4959 esac
|
alpar@9
|
4960 fi
|
alpar@9
|
4961 ;;
|
alpar@9
|
4962
|
alpar@9
|
4963 irix5* | irix6* | nonstopux*)
|
alpar@9
|
4964 if test "$GCC" = yes; then
|
alpar@9
|
4965 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
alpar@9
|
4966 # Try to use the -exported_symbol ld option, if it does not
|
alpar@9
|
4967 # work, assume that -exports_file does not work either and
|
alpar@9
|
4968 # implicitly export all symbols.
|
alpar@9
|
4969 save_LDFLAGS="$LDFLAGS"
|
alpar@9
|
4970 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
alpar@9
|
4971 AC_LINK_IFELSE(int foo(void) {},
|
alpar@9
|
4972 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
alpar@9
|
4973 )
|
alpar@9
|
4974 LDFLAGS="$save_LDFLAGS"
|
alpar@9
|
4975 else
|
alpar@9
|
4976 _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'
|
alpar@9
|
4977 _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'
|
alpar@9
|
4978 fi
|
alpar@9
|
4979 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
alpar@9
|
4980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
4981 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
4982 _LT_TAGVAR(inherit_rpath, $1)=yes
|
alpar@9
|
4983 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
4984 ;;
|
alpar@9
|
4985
|
alpar@9
|
4986 netbsd*)
|
alpar@9
|
4987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
alpar@9
|
4988 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
alpar@9
|
4989 else
|
alpar@9
|
4990 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
alpar@9
|
4991 fi
|
alpar@9
|
4992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
4993 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
4994 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
4995 ;;
|
alpar@9
|
4996
|
alpar@9
|
4997 newsos6)
|
alpar@9
|
4998 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
4999 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5000 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
5001 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5002 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5003 ;;
|
alpar@9
|
5004
|
alpar@9
|
5005 *nto* | *qnx*)
|
alpar@9
|
5006 ;;
|
alpar@9
|
5007
|
alpar@9
|
5008 openbsd*)
|
alpar@9
|
5009 if test -f /usr/libexec/ld.so; then
|
alpar@9
|
5010 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5011 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5012 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
5013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
alpar@9
|
5014 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5015 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
alpar@9
|
5016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
5017 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
5018 else
|
alpar@9
|
5019 case $host_os in
|
alpar@9
|
5020 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
alpar@9
|
5021 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5022 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
5023 ;;
|
alpar@9
|
5024 *)
|
alpar@9
|
5025 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
5027 ;;
|
alpar@9
|
5028 esac
|
alpar@9
|
5029 fi
|
alpar@9
|
5030 else
|
alpar@9
|
5031 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5032 fi
|
alpar@9
|
5033 ;;
|
alpar@9
|
5034
|
alpar@9
|
5035 os2*)
|
alpar@9
|
5036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
5037 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
5038 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
5039 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
alpar@9
|
5040 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
alpar@9
|
5041 ;;
|
alpar@9
|
5042
|
alpar@9
|
5043 osf3*)
|
alpar@9
|
5044 if test "$GCC" = yes; then
|
alpar@9
|
5045 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
alpar@9
|
5046 _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'
|
alpar@9
|
5047 else
|
alpar@9
|
5048 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
alpar@9
|
5049 _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'
|
alpar@9
|
5050 fi
|
alpar@9
|
5051 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
alpar@9
|
5052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
5053 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5054 ;;
|
alpar@9
|
5055
|
alpar@9
|
5056 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
alpar@9
|
5057 if test "$GCC" = yes; then
|
alpar@9
|
5058 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
alpar@9
|
5059 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
alpar@9
|
5060 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
5061 else
|
alpar@9
|
5062 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
alpar@9
|
5063 _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'
|
alpar@9
|
5064 _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~
|
alpar@9
|
5065 $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'
|
alpar@9
|
5066
|
alpar@9
|
5067 # Both c and cxx compiler support -rpath directly
|
alpar@9
|
5068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
alpar@9
|
5069 fi
|
alpar@9
|
5070 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
alpar@9
|
5071 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5072 ;;
|
alpar@9
|
5073
|
alpar@9
|
5074 solaris*)
|
alpar@9
|
5075 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
alpar@9
|
5076 if test "$GCC" = yes; then
|
alpar@9
|
5077 wlarc='${wl}'
|
alpar@9
|
5078 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5079 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
5080 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
alpar@9
|
5081 else
|
alpar@9
|
5082 case `$CC -V 2>&1` in
|
alpar@9
|
5083 *"Compilers 5.0"*)
|
alpar@9
|
5084 wlarc=''
|
alpar@9
|
5085 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5086 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
5087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
alpar@9
|
5088 ;;
|
alpar@9
|
5089 *)
|
alpar@9
|
5090 wlarc='${wl}'
|
alpar@9
|
5091 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5092 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
5093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
alpar@9
|
5094 ;;
|
alpar@9
|
5095 esac
|
alpar@9
|
5096 fi
|
alpar@9
|
5097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
5098 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5099 case $host_os in
|
alpar@9
|
5100 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
alpar@9
|
5101 *)
|
alpar@9
|
5102 # The compiler driver will combine and reorder linker options,
|
alpar@9
|
5103 # but understands `-z linker_flag'. GCC discards it without `$wl',
|
alpar@9
|
5104 # but is careful enough not to reorder.
|
alpar@9
|
5105 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
alpar@9
|
5106 if test "$GCC" = yes; then
|
alpar@9
|
5107 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
alpar@9
|
5108 else
|
alpar@9
|
5109 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
alpar@9
|
5110 fi
|
alpar@9
|
5111 ;;
|
alpar@9
|
5112 esac
|
alpar@9
|
5113 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
5114 ;;
|
alpar@9
|
5115
|
alpar@9
|
5116 sunos4*)
|
alpar@9
|
5117 if test "x$host_vendor" = xsequent; then
|
alpar@9
|
5118 # Use $CC to link under sequent, because it throws in some extra .o
|
alpar@9
|
5119 # files that make .init and .fini sections work.
|
alpar@9
|
5120 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5121 else
|
alpar@9
|
5122 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5123 fi
|
alpar@9
|
5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
5125 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5126 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
5127 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5128 ;;
|
alpar@9
|
5129
|
alpar@9
|
5130 sysv4)
|
alpar@9
|
5131 case $host_vendor in
|
alpar@9
|
5132 sni)
|
alpar@9
|
5133 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5134 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
alpar@9
|
5135 ;;
|
alpar@9
|
5136 siemens)
|
alpar@9
|
5137 ## LD is ld it makes a PLAMLIB
|
alpar@9
|
5138 ## CC just makes a GrossModule.
|
alpar@9
|
5139 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5140 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
alpar@9
|
5141 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
5142 ;;
|
alpar@9
|
5143 motorola)
|
alpar@9
|
5144 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5145 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
alpar@9
|
5146 ;;
|
alpar@9
|
5147 esac
|
alpar@9
|
5148 runpath_var='LD_RUN_PATH'
|
alpar@9
|
5149 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5150 ;;
|
alpar@9
|
5151
|
alpar@9
|
5152 sysv4.3*)
|
alpar@9
|
5153 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5154 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5155 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
alpar@9
|
5156 ;;
|
alpar@9
|
5157
|
alpar@9
|
5158 sysv4*MP*)
|
alpar@9
|
5159 if test -d /usr/nec; then
|
alpar@9
|
5160 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5161 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5162 runpath_var=LD_RUN_PATH
|
alpar@9
|
5163 hardcode_runpath_var=yes
|
alpar@9
|
5164 _LT_TAGVAR(ld_shlibs, $1)=yes
|
alpar@9
|
5165 fi
|
alpar@9
|
5166 ;;
|
alpar@9
|
5167
|
alpar@9
|
5168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
alpar@9
|
5169 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
alpar@9
|
5170 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
5171 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5172 runpath_var='LD_RUN_PATH'
|
alpar@9
|
5173
|
alpar@9
|
5174 if test "$GCC" = yes; then
|
alpar@9
|
5175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5176 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5177 else
|
alpar@9
|
5178 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5179 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5180 fi
|
alpar@9
|
5181 ;;
|
alpar@9
|
5182
|
alpar@9
|
5183 sysv5* | sco3.2v5* | sco5v6*)
|
alpar@9
|
5184 # Note: We can NOT use -z defs as we might desire, because we do not
|
alpar@9
|
5185 # link with -lc, and that would cause any symbols used from libc to
|
alpar@9
|
5186 # always be unresolved, which means just about no library would
|
alpar@9
|
5187 # ever link correctly. If we're not using GNU ld we use -z text
|
alpar@9
|
5188 # though, which does catch some bad symbols but isn't as heavy-handed
|
alpar@9
|
5189 # as -z defs.
|
alpar@9
|
5190 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
alpar@9
|
5191 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
alpar@9
|
5192 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
5193 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
alpar@9
|
5195 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
alpar@9
|
5196 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
5197 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
alpar@9
|
5198 runpath_var='LD_RUN_PATH'
|
alpar@9
|
5199
|
alpar@9
|
5200 if test "$GCC" = yes; then
|
alpar@9
|
5201 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5202 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5203 else
|
alpar@9
|
5204 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5205 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
5206 fi
|
alpar@9
|
5207 ;;
|
alpar@9
|
5208
|
alpar@9
|
5209 uts4*)
|
alpar@9
|
5210 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
alpar@9
|
5211 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
5212 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5213 ;;
|
alpar@9
|
5214
|
alpar@9
|
5215 *)
|
alpar@9
|
5216 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5217 ;;
|
alpar@9
|
5218 esac
|
alpar@9
|
5219
|
alpar@9
|
5220 if test x$host_vendor = xsni; then
|
alpar@9
|
5221 case $host in
|
alpar@9
|
5222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
alpar@9
|
5223 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
|
alpar@9
|
5224 ;;
|
alpar@9
|
5225 esac
|
alpar@9
|
5226 fi
|
alpar@9
|
5227 fi
|
alpar@9
|
5228 ])
|
alpar@9
|
5229 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
alpar@9
|
5230 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
alpar@9
|
5231
|
alpar@9
|
5232 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
|
alpar@9
|
5233
|
alpar@9
|
5234 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
|
alpar@9
|
5235 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
|
alpar@9
|
5236 _LT_DECL([], [extract_expsyms_cmds], [2],
|
alpar@9
|
5237 [The commands to extract the exported symbol list from a shared archive])
|
alpar@9
|
5238
|
alpar@9
|
5239 #
|
alpar@9
|
5240 # Do we need to explicitly link libc?
|
alpar@9
|
5241 #
|
alpar@9
|
5242 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
|
alpar@9
|
5243 x|xyes)
|
alpar@9
|
5244 # Assume -lc should be added
|
alpar@9
|
5245 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
alpar@9
|
5246
|
alpar@9
|
5247 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
alpar@9
|
5248 case $_LT_TAGVAR(archive_cmds, $1) in
|
alpar@9
|
5249 *'~'*)
|
alpar@9
|
5250 # FIXME: we may have to deal with multi-command sequences.
|
alpar@9
|
5251 ;;
|
alpar@9
|
5252 '$CC '*)
|
alpar@9
|
5253 # Test whether the compiler implicitly links with -lc since on some
|
alpar@9
|
5254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
alpar@9
|
5255 # to ld, don't add -lc before -lgcc.
|
alpar@9
|
5256 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
|
alpar@9
|
5257 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
|
alpar@9
|
5258 [$RM conftest*
|
alpar@9
|
5259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
alpar@9
|
5260
|
alpar@9
|
5261 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
alpar@9
|
5262 soname=conftest
|
alpar@9
|
5263 lib=conftest
|
alpar@9
|
5264 libobjs=conftest.$ac_objext
|
alpar@9
|
5265 deplibs=
|
alpar@9
|
5266 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
|
alpar@9
|
5267 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
alpar@9
|
5268 compiler_flags=-v
|
alpar@9
|
5269 linker_flags=-v
|
alpar@9
|
5270 verstring=
|
alpar@9
|
5271 output_objdir=.
|
alpar@9
|
5272 libname=conftest
|
alpar@9
|
5273 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
|
alpar@9
|
5274 _LT_TAGVAR(allow_undefined_flag, $1)=
|
alpar@9
|
5275 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
|
alpar@9
|
5276 then
|
alpar@9
|
5277 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
5278 else
|
alpar@9
|
5279 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
alpar@9
|
5280 fi
|
alpar@9
|
5281 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
alpar@9
|
5282 else
|
alpar@9
|
5283 cat conftest.err 1>&5
|
alpar@9
|
5284 fi
|
alpar@9
|
5285 $RM conftest*
|
alpar@9
|
5286 ])
|
alpar@9
|
5287 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
|
alpar@9
|
5288 ;;
|
alpar@9
|
5289 esac
|
alpar@9
|
5290 fi
|
alpar@9
|
5291 ;;
|
alpar@9
|
5292 esac
|
alpar@9
|
5293
|
alpar@9
|
5294 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
|
alpar@9
|
5295 [Whether or not to add -lc for building shared libraries])
|
alpar@9
|
5296 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
|
alpar@9
|
5297 [enable_shared_with_static_runtimes], [0],
|
alpar@9
|
5298 [Whether or not to disallow shared libs when runtime libs are static])
|
alpar@9
|
5299 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
|
alpar@9
|
5300 [Compiler flag to allow reflexive dlopens])
|
alpar@9
|
5301 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
|
alpar@9
|
5302 [Compiler flag to generate shared objects directly from archives])
|
alpar@9
|
5303 _LT_TAGDECL([], [compiler_needs_object], [1],
|
alpar@9
|
5304 [Whether the compiler copes with passing no objects directly])
|
alpar@9
|
5305 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
|
alpar@9
|
5306 [Create an old-style archive from a shared archive])
|
alpar@9
|
5307 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
|
alpar@9
|
5308 [Create a temporary old-style archive to link instead of a shared archive])
|
alpar@9
|
5309 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
|
alpar@9
|
5310 _LT_TAGDECL([], [archive_expsym_cmds], [2])
|
alpar@9
|
5311 _LT_TAGDECL([], [module_cmds], [2],
|
alpar@9
|
5312 [Commands used to build a loadable module if different from building
|
alpar@9
|
5313 a shared archive.])
|
alpar@9
|
5314 _LT_TAGDECL([], [module_expsym_cmds], [2])
|
alpar@9
|
5315 _LT_TAGDECL([], [with_gnu_ld], [1],
|
alpar@9
|
5316 [Whether we are building with GNU ld or not])
|
alpar@9
|
5317 _LT_TAGDECL([], [allow_undefined_flag], [1],
|
alpar@9
|
5318 [Flag that allows shared libraries with undefined symbols to be built])
|
alpar@9
|
5319 _LT_TAGDECL([], [no_undefined_flag], [1],
|
alpar@9
|
5320 [Flag that enforces no undefined symbols])
|
alpar@9
|
5321 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
alpar@9
|
5322 [Flag to hardcode $libdir into a binary during linking.
|
alpar@9
|
5323 This must work even if $libdir does not exist])
|
alpar@9
|
5324 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
|
alpar@9
|
5325 [[If ld is used when linking, flag to hardcode $libdir into a binary
|
alpar@9
|
5326 during linking. This must work even if $libdir does not exist]])
|
alpar@9
|
5327 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
alpar@9
|
5328 [Whether we need a single "-rpath" flag with a separated argument])
|
alpar@9
|
5329 _LT_TAGDECL([], [hardcode_direct], [0],
|
alpar@9
|
5330 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
alpar@9
|
5331 DIR into the resulting binary])
|
alpar@9
|
5332 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
|
alpar@9
|
5333 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
alpar@9
|
5334 DIR into the resulting binary and the resulting library dependency is
|
alpar@9
|
5335 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
|
alpar@9
|
5336 library is relocated])
|
alpar@9
|
5337 _LT_TAGDECL([], [hardcode_minus_L], [0],
|
alpar@9
|
5338 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
alpar@9
|
5339 into the resulting binary])
|
alpar@9
|
5340 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
|
alpar@9
|
5341 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
alpar@9
|
5342 into the resulting binary])
|
alpar@9
|
5343 _LT_TAGDECL([], [hardcode_automatic], [0],
|
alpar@9
|
5344 [Set to "yes" if building a shared library automatically hardcodes DIR
|
alpar@9
|
5345 into the library and all subsequent libraries and executables linked
|
alpar@9
|
5346 against it])
|
alpar@9
|
5347 _LT_TAGDECL([], [inherit_rpath], [0],
|
alpar@9
|
5348 [Set to yes if linker adds runtime paths of dependent libraries
|
alpar@9
|
5349 to runtime path list])
|
alpar@9
|
5350 _LT_TAGDECL([], [link_all_deplibs], [0],
|
alpar@9
|
5351 [Whether libtool must link a program against all its dependency libraries])
|
alpar@9
|
5352 _LT_TAGDECL([], [fix_srcfile_path], [1],
|
alpar@9
|
5353 [Fix the shell variable $srcfile for the compiler])
|
alpar@9
|
5354 _LT_TAGDECL([], [always_export_symbols], [0],
|
alpar@9
|
5355 [Set to "yes" if exported symbols are required])
|
alpar@9
|
5356 _LT_TAGDECL([], [export_symbols_cmds], [2],
|
alpar@9
|
5357 [The commands to list exported symbols])
|
alpar@9
|
5358 _LT_TAGDECL([], [exclude_expsyms], [1],
|
alpar@9
|
5359 [Symbols that should not be listed in the preloaded symbols])
|
alpar@9
|
5360 _LT_TAGDECL([], [include_expsyms], [1],
|
alpar@9
|
5361 [Symbols that must always be exported])
|
alpar@9
|
5362 _LT_TAGDECL([], [prelink_cmds], [2],
|
alpar@9
|
5363 [Commands necessary for linking programs (against libraries) with templates])
|
alpar@9
|
5364 _LT_TAGDECL([], [file_list_spec], [1],
|
alpar@9
|
5365 [Specify filename containing input files])
|
alpar@9
|
5366 dnl FIXME: Not yet implemented
|
alpar@9
|
5367 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
|
alpar@9
|
5368 dnl [Compiler flag to generate thread safe objects])
|
alpar@9
|
5369 ])# _LT_LINKER_SHLIBS
|
alpar@9
|
5370
|
alpar@9
|
5371
|
alpar@9
|
5372 # _LT_LANG_C_CONFIG([TAG])
|
alpar@9
|
5373 # ------------------------
|
alpar@9
|
5374 # Ensure that the configuration variables for a C compiler are suitably
|
alpar@9
|
5375 # defined. These variables are subsequently used by _LT_CONFIG to write
|
alpar@9
|
5376 # the compiler configuration to `libtool'.
|
alpar@9
|
5377 m4_defun([_LT_LANG_C_CONFIG],
|
alpar@9
|
5378 [m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
5379 lt_save_CC="$CC"
|
alpar@9
|
5380 AC_LANG_PUSH(C)
|
alpar@9
|
5381
|
alpar@9
|
5382 # Source file extension for C test sources.
|
alpar@9
|
5383 ac_ext=c
|
alpar@9
|
5384
|
alpar@9
|
5385 # Object file extension for compiled C test sources.
|
alpar@9
|
5386 objext=o
|
alpar@9
|
5387 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
5388
|
alpar@9
|
5389 # Code to be used in simple compile tests
|
alpar@9
|
5390 lt_simple_compile_test_code="int some_variable = 0;"
|
alpar@9
|
5391
|
alpar@9
|
5392 # Code to be used in simple link tests
|
alpar@9
|
5393 lt_simple_link_test_code='int main(){return(0);}'
|
alpar@9
|
5394
|
alpar@9
|
5395 _LT_TAG_COMPILER
|
alpar@9
|
5396 # Save the default compiler, since it gets overwritten when the other
|
alpar@9
|
5397 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
alpar@9
|
5398 compiler_DEFAULT=$CC
|
alpar@9
|
5399
|
alpar@9
|
5400 # save warnings/boilerplate of simple test code
|
alpar@9
|
5401 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
5402 _LT_LINKER_BOILERPLATE
|
alpar@9
|
5403
|
alpar@9
|
5404 ## CAVEAT EMPTOR:
|
alpar@9
|
5405 ## There is no encapsulation within the following macros, do not change
|
alpar@9
|
5406 ## the running order or otherwise move them around unless you know exactly
|
alpar@9
|
5407 ## what you are doing...
|
alpar@9
|
5408 if test -n "$compiler"; then
|
alpar@9
|
5409 _LT_COMPILER_NO_RTTI($1)
|
alpar@9
|
5410 _LT_COMPILER_PIC($1)
|
alpar@9
|
5411 _LT_COMPILER_C_O($1)
|
alpar@9
|
5412 _LT_COMPILER_FILE_LOCKS($1)
|
alpar@9
|
5413 _LT_LINKER_SHLIBS($1)
|
alpar@9
|
5414 _LT_SYS_DYNAMIC_LINKER($1)
|
alpar@9
|
5415 _LT_LINKER_HARDCODE_LIBPATH($1)
|
alpar@9
|
5416 LT_SYS_DLOPEN_SELF
|
alpar@9
|
5417 _LT_CMD_STRIPLIB
|
alpar@9
|
5418
|
alpar@9
|
5419 # Report which library types will actually be built
|
alpar@9
|
5420 AC_MSG_CHECKING([if libtool supports shared libraries])
|
alpar@9
|
5421 AC_MSG_RESULT([$can_build_shared])
|
alpar@9
|
5422
|
alpar@9
|
5423 AC_MSG_CHECKING([whether to build shared libraries])
|
alpar@9
|
5424 test "$can_build_shared" = "no" && enable_shared=no
|
alpar@9
|
5425
|
alpar@9
|
5426 # On AIX, shared libraries and static libraries use the same namespace, and
|
alpar@9
|
5427 # are all built from PIC.
|
alpar@9
|
5428 case $host_os in
|
alpar@9
|
5429 aix3*)
|
alpar@9
|
5430 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
5431 if test -n "$RANLIB"; then
|
alpar@9
|
5432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
alpar@9
|
5433 postinstall_cmds='$RANLIB $lib'
|
alpar@9
|
5434 fi
|
alpar@9
|
5435 ;;
|
alpar@9
|
5436
|
alpar@9
|
5437 aix[[4-9]]*)
|
alpar@9
|
5438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
alpar@9
|
5439 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
5440 fi
|
alpar@9
|
5441 ;;
|
alpar@9
|
5442 esac
|
alpar@9
|
5443 AC_MSG_RESULT([$enable_shared])
|
alpar@9
|
5444
|
alpar@9
|
5445 AC_MSG_CHECKING([whether to build static libraries])
|
alpar@9
|
5446 # Make sure either enable_shared or enable_static is yes.
|
alpar@9
|
5447 test "$enable_shared" = yes || enable_static=yes
|
alpar@9
|
5448 AC_MSG_RESULT([$enable_static])
|
alpar@9
|
5449
|
alpar@9
|
5450 _LT_CONFIG($1)
|
alpar@9
|
5451 fi
|
alpar@9
|
5452 AC_LANG_POP
|
alpar@9
|
5453 CC="$lt_save_CC"
|
alpar@9
|
5454 ])# _LT_LANG_C_CONFIG
|
alpar@9
|
5455
|
alpar@9
|
5456
|
alpar@9
|
5457 # _LT_LANG_CXX_CONFIG([TAG])
|
alpar@9
|
5458 # --------------------------
|
alpar@9
|
5459 # Ensure that the configuration variables for a C++ compiler are suitably
|
alpar@9
|
5460 # defined. These variables are subsequently used by _LT_CONFIG to write
|
alpar@9
|
5461 # the compiler configuration to `libtool'.
|
alpar@9
|
5462 m4_defun([_LT_LANG_CXX_CONFIG],
|
alpar@9
|
5463 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
5464 m4_require([_LT_DECL_EGREP])dnl
|
alpar@9
|
5465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
alpar@9
|
5466 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
alpar@9
|
5467 (test "X$CXX" != "Xg++"))) ; then
|
alpar@9
|
5468 AC_PROG_CXXCPP
|
alpar@9
|
5469 else
|
alpar@9
|
5470 _lt_caught_CXX_error=yes
|
alpar@9
|
5471 fi
|
alpar@9
|
5472
|
alpar@9
|
5473 AC_LANG_PUSH(C++)
|
alpar@9
|
5474 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
5475 _LT_TAGVAR(allow_undefined_flag, $1)=
|
alpar@9
|
5476 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
5477 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
alpar@9
|
5478 _LT_TAGVAR(compiler_needs_object, $1)=no
|
alpar@9
|
5479 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
alpar@9
|
5480 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
5481 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
alpar@9
|
5482 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
5483 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
alpar@9
|
5484 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
5485 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
alpar@9
|
5486 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
alpar@9
|
5487 _LT_TAGVAR(hardcode_automatic, $1)=no
|
alpar@9
|
5488 _LT_TAGVAR(inherit_rpath, $1)=no
|
alpar@9
|
5489 _LT_TAGVAR(module_cmds, $1)=
|
alpar@9
|
5490 _LT_TAGVAR(module_expsym_cmds, $1)=
|
alpar@9
|
5491 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
alpar@9
|
5492 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
alpar@9
|
5493 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
alpar@9
|
5494 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
alpar@9
|
5495 _LT_TAGVAR(no_undefined_flag, $1)=
|
alpar@9
|
5496 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
5497 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
alpar@9
|
5498
|
alpar@9
|
5499 # Source file extension for C++ test sources.
|
alpar@9
|
5500 ac_ext=cpp
|
alpar@9
|
5501
|
alpar@9
|
5502 # Object file extension for compiled C++ test sources.
|
alpar@9
|
5503 objext=o
|
alpar@9
|
5504 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
5505
|
alpar@9
|
5506 # No sense in running all these tests if we already determined that
|
alpar@9
|
5507 # the CXX compiler isn't working. Some variables (like enable_shared)
|
alpar@9
|
5508 # are currently assumed to apply to all compilers on this platform,
|
alpar@9
|
5509 # and will be corrupted by setting them based on a non-working compiler.
|
alpar@9
|
5510 if test "$_lt_caught_CXX_error" != yes; then
|
alpar@9
|
5511 # Code to be used in simple compile tests
|
alpar@9
|
5512 lt_simple_compile_test_code="int some_variable = 0;"
|
alpar@9
|
5513
|
alpar@9
|
5514 # Code to be used in simple link tests
|
alpar@9
|
5515 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
alpar@9
|
5516
|
alpar@9
|
5517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
alpar@9
|
5518 _LT_TAG_COMPILER
|
alpar@9
|
5519
|
alpar@9
|
5520 # save warnings/boilerplate of simple test code
|
alpar@9
|
5521 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
5522 _LT_LINKER_BOILERPLATE
|
alpar@9
|
5523
|
alpar@9
|
5524 # Allow CC to be a program name with arguments.
|
alpar@9
|
5525 lt_save_CC=$CC
|
alpar@9
|
5526 lt_save_LD=$LD
|
alpar@9
|
5527 lt_save_GCC=$GCC
|
alpar@9
|
5528 GCC=$GXX
|
alpar@9
|
5529 lt_save_with_gnu_ld=$with_gnu_ld
|
alpar@9
|
5530 lt_save_path_LD=$lt_cv_path_LD
|
alpar@9
|
5531 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
alpar@9
|
5532 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
alpar@9
|
5533 else
|
alpar@9
|
5534 $as_unset lt_cv_prog_gnu_ld
|
alpar@9
|
5535 fi
|
alpar@9
|
5536 if test -n "${lt_cv_path_LDCXX+set}"; then
|
alpar@9
|
5537 lt_cv_path_LD=$lt_cv_path_LDCXX
|
alpar@9
|
5538 else
|
alpar@9
|
5539 $as_unset lt_cv_path_LD
|
alpar@9
|
5540 fi
|
alpar@9
|
5541 test -z "${LDCXX+set}" || LD=$LDCXX
|
alpar@9
|
5542 CC=${CXX-"c++"}
|
alpar@9
|
5543 compiler=$CC
|
alpar@9
|
5544 _LT_TAGVAR(compiler, $1)=$CC
|
alpar@9
|
5545 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
5546
|
alpar@9
|
5547 if test -n "$compiler"; then
|
alpar@9
|
5548 # We don't want -fno-exception when compiling C++ code, so set the
|
alpar@9
|
5549 # no_builtin_flag separately
|
alpar@9
|
5550 if test "$GXX" = yes; then
|
alpar@9
|
5551 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
alpar@9
|
5552 else
|
alpar@9
|
5553 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
alpar@9
|
5554 fi
|
alpar@9
|
5555
|
alpar@9
|
5556 if test "$GXX" = yes; then
|
alpar@9
|
5557 # Set up default GNU C++ configuration
|
alpar@9
|
5558
|
alpar@9
|
5559 LT_PATH_LD
|
alpar@9
|
5560
|
alpar@9
|
5561 # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
alpar@9
|
5562 # archiving commands below assume that GNU ld is being used.
|
alpar@9
|
5563 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
5564 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
5565 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
alpar@9
|
5566
|
alpar@9
|
5567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
5568 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
5569
|
alpar@9
|
5570 # If archive_cmds runs LD, not CC, wlarc should be empty
|
alpar@9
|
5571 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
alpar@9
|
5572 # investigate it a little bit more. (MM)
|
alpar@9
|
5573 wlarc='${wl}'
|
alpar@9
|
5574
|
alpar@9
|
5575 # ancient GNU ld didn't support --whole-archive et. al.
|
alpar@9
|
5576 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
|
alpar@9
|
5577 $GREP 'no-whole-archive' > /dev/null; then
|
alpar@9
|
5578 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
alpar@9
|
5579 else
|
alpar@9
|
5580 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
5581 fi
|
alpar@9
|
5582 else
|
alpar@9
|
5583 with_gnu_ld=no
|
alpar@9
|
5584 wlarc=
|
alpar@9
|
5585
|
alpar@9
|
5586 # A generic and very simple default shared library creation
|
alpar@9
|
5587 # command for GNU C++ for the case where it uses the native
|
alpar@9
|
5588 # linker, instead of GNU ld. If possible, this setting should
|
alpar@9
|
5589 # overridden to take advantage of the native linker features on
|
alpar@9
|
5590 # the platform it is being used on.
|
alpar@9
|
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
alpar@9
|
5592 fi
|
alpar@9
|
5593
|
alpar@9
|
5594 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
5595 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
5596 # linking a shared library.
|
alpar@9
|
5597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
alpar@9
|
5598
|
alpar@9
|
5599 else
|
alpar@9
|
5600 GXX=no
|
alpar@9
|
5601 with_gnu_ld=no
|
alpar@9
|
5602 wlarc=
|
alpar@9
|
5603 fi
|
alpar@9
|
5604
|
alpar@9
|
5605 # PORTME: fill in a description of your system's C++ link characteristics
|
alpar@9
|
5606 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
alpar@9
|
5607 _LT_TAGVAR(ld_shlibs, $1)=yes
|
alpar@9
|
5608 case $host_os in
|
alpar@9
|
5609 aix3*)
|
alpar@9
|
5610 # FIXME: insert proper C++ library support
|
alpar@9
|
5611 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5612 ;;
|
alpar@9
|
5613 aix[[4-9]]*)
|
alpar@9
|
5614 if test "$host_cpu" = ia64; then
|
alpar@9
|
5615 # On IA64, the linker does run time linking by default, so we don't
|
alpar@9
|
5616 # have to do anything special.
|
alpar@9
|
5617 aix_use_runtimelinking=no
|
alpar@9
|
5618 exp_sym_flag='-Bexport'
|
alpar@9
|
5619 no_entry_flag=""
|
alpar@9
|
5620 else
|
alpar@9
|
5621 aix_use_runtimelinking=no
|
alpar@9
|
5622
|
alpar@9
|
5623 # Test if we are trying to use run time linking or normal
|
alpar@9
|
5624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
alpar@9
|
5625 # need to do runtime linking.
|
alpar@9
|
5626 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
alpar@9
|
5627 for ld_flag in $LDFLAGS; do
|
alpar@9
|
5628 case $ld_flag in
|
alpar@9
|
5629 *-brtl*)
|
alpar@9
|
5630 aix_use_runtimelinking=yes
|
alpar@9
|
5631 break
|
alpar@9
|
5632 ;;
|
alpar@9
|
5633 esac
|
alpar@9
|
5634 done
|
alpar@9
|
5635 ;;
|
alpar@9
|
5636 esac
|
alpar@9
|
5637
|
alpar@9
|
5638 exp_sym_flag='-bexport'
|
alpar@9
|
5639 no_entry_flag='-bnoentry'
|
alpar@9
|
5640 fi
|
alpar@9
|
5641
|
alpar@9
|
5642 # When large executables or shared objects are built, AIX ld can
|
alpar@9
|
5643 # have problems creating the table of contents. If linking a library
|
alpar@9
|
5644 # or program results in "error TOC overflow" add -mminimal-toc to
|
alpar@9
|
5645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
alpar@9
|
5646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
alpar@9
|
5647
|
alpar@9
|
5648 _LT_TAGVAR(archive_cmds, $1)=''
|
alpar@9
|
5649 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5650 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
5651 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
alpar@9
|
5652 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
5653 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
alpar@9
|
5654
|
alpar@9
|
5655 if test "$GXX" = yes; then
|
alpar@9
|
5656 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
alpar@9
|
5657 # We only want to do this on AIX 4.2 and lower, the check
|
alpar@9
|
5658 # below for broken collect2 doesn't work under 4.3+
|
alpar@9
|
5659 collect2name=`${CC} -print-prog-name=collect2`
|
alpar@9
|
5660 if test -f "$collect2name" &&
|
alpar@9
|
5661 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
alpar@9
|
5662 then
|
alpar@9
|
5663 # We have reworked collect2
|
alpar@9
|
5664 :
|
alpar@9
|
5665 else
|
alpar@9
|
5666 # We have old collect2
|
alpar@9
|
5667 _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
alpar@9
|
5668 # It fails to find uninstalled libraries when the uninstalled
|
alpar@9
|
5669 # path is not listed in the libpath. Setting hardcode_minus_L
|
alpar@9
|
5670 # to unsupported forces relinking
|
alpar@9
|
5671 _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
alpar@9
|
5672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
5673 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
5674 fi
|
alpar@9
|
5675 esac
|
alpar@9
|
5676 shared_flag='-shared'
|
alpar@9
|
5677 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
5678 shared_flag="$shared_flag "'${wl}-G'
|
alpar@9
|
5679 fi
|
alpar@9
|
5680 else
|
alpar@9
|
5681 # not using gcc
|
alpar@9
|
5682 if test "$host_cpu" = ia64; then
|
alpar@9
|
5683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
alpar@9
|
5684 # chokes on -Wl,-G. The following line is correct:
|
alpar@9
|
5685 shared_flag='-G'
|
alpar@9
|
5686 else
|
alpar@9
|
5687 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
5688 shared_flag='${wl}-G'
|
alpar@9
|
5689 else
|
alpar@9
|
5690 shared_flag='${wl}-bM:SRE'
|
alpar@9
|
5691 fi
|
alpar@9
|
5692 fi
|
alpar@9
|
5693 fi
|
alpar@9
|
5694
|
alpar@9
|
5695 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
alpar@9
|
5696 # It seems that -bexpall does not export symbols beginning with
|
alpar@9
|
5697 # underscore (_), so it is better to generate a list of symbols to
|
alpar@9
|
5698 # export.
|
alpar@9
|
5699 _LT_TAGVAR(always_export_symbols, $1)=yes
|
alpar@9
|
5700 if test "$aix_use_runtimelinking" = yes; then
|
alpar@9
|
5701 # Warning - without using the other runtime loading flags (-brtl),
|
alpar@9
|
5702 # -berok will link without error, but may produce a broken library.
|
alpar@9
|
5703 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
alpar@9
|
5704 # Determine the default libpath from the value encoded in an empty
|
alpar@9
|
5705 # executable.
|
alpar@9
|
5706 _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
5707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
alpar@9
|
5708
|
alpar@9
|
5709 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
alpar@9
|
5710 else
|
alpar@9
|
5711 if test "$host_cpu" = ia64; then
|
alpar@9
|
5712 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
alpar@9
|
5713 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
alpar@9
|
5714 _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"
|
alpar@9
|
5715 else
|
alpar@9
|
5716 # Determine the default libpath from the value encoded in an
|
alpar@9
|
5717 # empty executable.
|
alpar@9
|
5718 _LT_SYS_MODULE_PATH_AIX
|
alpar@9
|
5719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
alpar@9
|
5720 # Warning - without using the other run time loading flags,
|
alpar@9
|
5721 # -berok will link without error, but may produce a broken library.
|
alpar@9
|
5722 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
alpar@9
|
5723 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
alpar@9
|
5724 if test "$with_gnu_ld" = yes; then
|
alpar@9
|
5725 # We only use this code for GNU lds that support --whole-archive.
|
alpar@9
|
5726 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
alpar@9
|
5727 else
|
alpar@9
|
5728 # Exported symbols can be pulled into shared objects from archives
|
alpar@9
|
5729 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
alpar@9
|
5730 fi
|
alpar@9
|
5731 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
alpar@9
|
5732 # This is similar to how AIX traditionally builds its shared
|
alpar@9
|
5733 # libraries.
|
alpar@9
|
5734 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
alpar@9
|
5735 fi
|
alpar@9
|
5736 fi
|
alpar@9
|
5737 ;;
|
alpar@9
|
5738
|
alpar@9
|
5739 beos*)
|
alpar@9
|
5740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
alpar@9
|
5741 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
5742 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
alpar@9
|
5743 # support --undefined. This deserves some investigation. FIXME
|
alpar@9
|
5744 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
5745 else
|
alpar@9
|
5746 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5747 fi
|
alpar@9
|
5748 ;;
|
alpar@9
|
5749
|
alpar@9
|
5750 chorus*)
|
alpar@9
|
5751 case $cc_basename in
|
alpar@9
|
5752 *)
|
alpar@9
|
5753 # FIXME: insert proper C++ library support
|
alpar@9
|
5754 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5755 ;;
|
alpar@9
|
5756 esac
|
alpar@9
|
5757 ;;
|
alpar@9
|
5758
|
alpar@9
|
5759 cygwin* | mingw* | pw32* | cegcc*)
|
alpar@9
|
5760 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
alpar@9
|
5761 # as there is no search path for DLLs.
|
alpar@9
|
5762 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
alpar@9
|
5763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
alpar@9
|
5764 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
alpar@9
|
5765 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
5766 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
alpar@9
|
5767
|
alpar@9
|
5768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
alpar@9
|
5769 _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'
|
alpar@9
|
5770 # If the export-symbols file already is a .def file (1st line
|
alpar@9
|
5771 # is EXPORTS), use it as is; otherwise, prepend...
|
alpar@9
|
5772 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
alpar@9
|
5773 cp $export_symbols $output_objdir/$soname.def;
|
alpar@9
|
5774 else
|
alpar@9
|
5775 echo EXPORTS > $output_objdir/$soname.def;
|
alpar@9
|
5776 cat $export_symbols >> $output_objdir/$soname.def;
|
alpar@9
|
5777 fi~
|
alpar@9
|
5778 $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'
|
alpar@9
|
5779 else
|
alpar@9
|
5780 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5781 fi
|
alpar@9
|
5782 ;;
|
alpar@9
|
5783 darwin* | rhapsody*)
|
alpar@9
|
5784 _LT_DARWIN_LINKER_FEATURES($1)
|
alpar@9
|
5785 ;;
|
alpar@9
|
5786
|
alpar@9
|
5787 dgux*)
|
alpar@9
|
5788 case $cc_basename in
|
alpar@9
|
5789 ec++*)
|
alpar@9
|
5790 # FIXME: insert proper C++ library support
|
alpar@9
|
5791 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5792 ;;
|
alpar@9
|
5793 ghcx*)
|
alpar@9
|
5794 # Green Hills C++ Compiler
|
alpar@9
|
5795 # FIXME: insert proper C++ library support
|
alpar@9
|
5796 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5797 ;;
|
alpar@9
|
5798 *)
|
alpar@9
|
5799 # FIXME: insert proper C++ library support
|
alpar@9
|
5800 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5801 ;;
|
alpar@9
|
5802 esac
|
alpar@9
|
5803 ;;
|
alpar@9
|
5804
|
alpar@9
|
5805 freebsd[[12]]*)
|
alpar@9
|
5806 # C++ shared libraries reported to be fairly broken before
|
alpar@9
|
5807 # switch to ELF
|
alpar@9
|
5808 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5809 ;;
|
alpar@9
|
5810
|
alpar@9
|
5811 freebsd-elf*)
|
alpar@9
|
5812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
5813 ;;
|
alpar@9
|
5814
|
alpar@9
|
5815 freebsd* | dragonfly*)
|
alpar@9
|
5816 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
alpar@9
|
5817 # conventions
|
alpar@9
|
5818 _LT_TAGVAR(ld_shlibs, $1)=yes
|
alpar@9
|
5819 ;;
|
alpar@9
|
5820
|
alpar@9
|
5821 gnu*)
|
alpar@9
|
5822 ;;
|
alpar@9
|
5823
|
alpar@9
|
5824 haiku*)
|
alpar@9
|
5825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
5826 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
5827 ;;
|
alpar@9
|
5828
|
alpar@9
|
5829 hpux9*)
|
alpar@9
|
5830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
alpar@9
|
5831 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5832 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
5833 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5834 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
alpar@9
|
5835 # but as the default
|
alpar@9
|
5836 # location of the library.
|
alpar@9
|
5837
|
alpar@9
|
5838 case $cc_basename in
|
alpar@9
|
5839 CC*)
|
alpar@9
|
5840 # FIXME: insert proper C++ library support
|
alpar@9
|
5841 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5842 ;;
|
alpar@9
|
5843 aCC*)
|
alpar@9
|
5844 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
alpar@9
|
5845 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
5846 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
5847 # linking a shared library.
|
alpar@9
|
5848 #
|
alpar@9
|
5849 # There doesn't appear to be a way to prevent this compiler from
|
alpar@9
|
5850 # explicitly linking system object files so we need to strip them
|
alpar@9
|
5851 # from the output so that they don't get included in the library
|
alpar@9
|
5852 # dependencies.
|
alpar@9
|
5853 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"'
|
alpar@9
|
5854 ;;
|
alpar@9
|
5855 *)
|
alpar@9
|
5856 if test "$GXX" = yes; then
|
alpar@9
|
5857 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
alpar@9
|
5858 else
|
alpar@9
|
5859 # FIXME: insert proper C++ library support
|
alpar@9
|
5860 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5861 fi
|
alpar@9
|
5862 ;;
|
alpar@9
|
5863 esac
|
alpar@9
|
5864 ;;
|
alpar@9
|
5865
|
alpar@9
|
5866 hpux10*|hpux11*)
|
alpar@9
|
5867 if test $with_gnu_ld = no; then
|
alpar@9
|
5868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
alpar@9
|
5869 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5870
|
alpar@9
|
5871 case $host_cpu in
|
alpar@9
|
5872 hppa*64*|ia64*)
|
alpar@9
|
5873 ;;
|
alpar@9
|
5874 *)
|
alpar@9
|
5875 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
5876 ;;
|
alpar@9
|
5877 esac
|
alpar@9
|
5878 fi
|
alpar@9
|
5879 case $host_cpu in
|
alpar@9
|
5880 hppa*64*|ia64*)
|
alpar@9
|
5881 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
5882 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5883 ;;
|
alpar@9
|
5884 *)
|
alpar@9
|
5885 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
5886 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
5887 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
alpar@9
|
5888 # but as the default
|
alpar@9
|
5889 # location of the library.
|
alpar@9
|
5890 ;;
|
alpar@9
|
5891 esac
|
alpar@9
|
5892
|
alpar@9
|
5893 case $cc_basename in
|
alpar@9
|
5894 CC*)
|
alpar@9
|
5895 # FIXME: insert proper C++ library support
|
alpar@9
|
5896 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5897 ;;
|
alpar@9
|
5898 aCC*)
|
alpar@9
|
5899 case $host_cpu in
|
alpar@9
|
5900 hppa*64*)
|
alpar@9
|
5901 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
5902 ;;
|
alpar@9
|
5903 ia64*)
|
alpar@9
|
5904 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
5905 ;;
|
alpar@9
|
5906 *)
|
alpar@9
|
5907 _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'
|
alpar@9
|
5908 ;;
|
alpar@9
|
5909 esac
|
alpar@9
|
5910 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
5911 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
5912 # linking a shared library.
|
alpar@9
|
5913 #
|
alpar@9
|
5914 # There doesn't appear to be a way to prevent this compiler from
|
alpar@9
|
5915 # explicitly linking system object files so we need to strip them
|
alpar@9
|
5916 # from the output so that they don't get included in the library
|
alpar@9
|
5917 # dependencies.
|
alpar@9
|
5918 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"'
|
alpar@9
|
5919 ;;
|
alpar@9
|
5920 *)
|
alpar@9
|
5921 if test "$GXX" = yes; then
|
alpar@9
|
5922 if test $with_gnu_ld = no; then
|
alpar@9
|
5923 case $host_cpu in
|
alpar@9
|
5924 hppa*64*)
|
alpar@9
|
5925 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
5926 ;;
|
alpar@9
|
5927 ia64*)
|
alpar@9
|
5928 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
5929 ;;
|
alpar@9
|
5930 *)
|
alpar@9
|
5931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
5932 ;;
|
alpar@9
|
5933 esac
|
alpar@9
|
5934 fi
|
alpar@9
|
5935 else
|
alpar@9
|
5936 # FIXME: insert proper C++ library support
|
alpar@9
|
5937 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
5938 fi
|
alpar@9
|
5939 ;;
|
alpar@9
|
5940 esac
|
alpar@9
|
5941 ;;
|
alpar@9
|
5942
|
alpar@9
|
5943 interix[[3-9]]*)
|
alpar@9
|
5944 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
5945 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
5946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
5947 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
5948 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
alpar@9
|
5949 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
alpar@9
|
5950 # default) and relocated if they conflict, which is a slow very memory
|
alpar@9
|
5951 # consuming and fragmenting process. To avoid this, we pick a random,
|
alpar@9
|
5952 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
alpar@9
|
5953 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
alpar@9
|
5954 _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'
|
alpar@9
|
5955 _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'
|
alpar@9
|
5956 ;;
|
alpar@9
|
5957 irix5* | irix6*)
|
alpar@9
|
5958 case $cc_basename in
|
alpar@9
|
5959 CC*)
|
alpar@9
|
5960 # SGI C++
|
alpar@9
|
5961 _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'
|
alpar@9
|
5962
|
alpar@9
|
5963 # Archives containing C++ object files must be created using
|
alpar@9
|
5964 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
alpar@9
|
5965 # necessary to make sure instantiated templates are included
|
alpar@9
|
5966 # in the archive.
|
alpar@9
|
5967 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
alpar@9
|
5968 ;;
|
alpar@9
|
5969 *)
|
alpar@9
|
5970 if test "$GXX" = yes; then
|
alpar@9
|
5971 if test "$with_gnu_ld" = no; then
|
alpar@9
|
5972 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
alpar@9
|
5973 else
|
alpar@9
|
5974 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
alpar@9
|
5975 fi
|
alpar@9
|
5976 fi
|
alpar@9
|
5977 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
5978 ;;
|
alpar@9
|
5979 esac
|
alpar@9
|
5980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
5981 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
5982 _LT_TAGVAR(inherit_rpath, $1)=yes
|
alpar@9
|
5983 ;;
|
alpar@9
|
5984
|
alpar@9
|
5985 linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
alpar@9
|
5986 case $cc_basename in
|
alpar@9
|
5987 KCC*)
|
alpar@9
|
5988 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
alpar@9
|
5989
|
alpar@9
|
5990 # KCC will only create a shared library if the output file
|
alpar@9
|
5991 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
alpar@9
|
5992 # to its proper name (with version) after linking.
|
alpar@9
|
5993 _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'
|
alpar@9
|
5994 _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'
|
alpar@9
|
5995 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
5996 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
5997 # linking a shared library.
|
alpar@9
|
5998 #
|
alpar@9
|
5999 # There doesn't appear to be a way to prevent this compiler from
|
alpar@9
|
6000 # explicitly linking system object files so we need to strip them
|
alpar@9
|
6001 # from the output so that they don't get included in the library
|
alpar@9
|
6002 # dependencies.
|
alpar@9
|
6003 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"'
|
alpar@9
|
6004
|
alpar@9
|
6005 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
6006 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
6007
|
alpar@9
|
6008 # Archives containing C++ object files must be created using
|
alpar@9
|
6009 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
alpar@9
|
6010 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
alpar@9
|
6011 ;;
|
alpar@9
|
6012 icpc* | ecpc* )
|
alpar@9
|
6013 # Intel C++
|
alpar@9
|
6014 with_gnu_ld=yes
|
alpar@9
|
6015 # version 8.0 and above of icpc choke on multiply defined symbols
|
alpar@9
|
6016 # if we add $predep_objects and $postdep_objects, however 7.1 and
|
alpar@9
|
6017 # earlier do not add the objects themselves.
|
alpar@9
|
6018 case `$CC -V 2>&1` in
|
alpar@9
|
6019 *"Version 7."*)
|
alpar@9
|
6020 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
6021 _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'
|
alpar@9
|
6022 ;;
|
alpar@9
|
6023 *) # Version 8.0 or newer
|
alpar@9
|
6024 tmp_idyn=
|
alpar@9
|
6025 case $host_cpu in
|
alpar@9
|
6026 ia64*) tmp_idyn=' -i_dynamic';;
|
alpar@9
|
6027 esac
|
alpar@9
|
6028 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
6029 _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'
|
alpar@9
|
6030 ;;
|
alpar@9
|
6031 esac
|
alpar@9
|
6032 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
6033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
6034 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
6035 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
alpar@9
|
6036 ;;
|
alpar@9
|
6037 pgCC* | pgcpp*)
|
alpar@9
|
6038 # Portland Group C++ compiler
|
alpar@9
|
6039 case `$CC -V` in
|
alpar@9
|
6040 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
|
alpar@9
|
6041 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
alpar@9
|
6042 rm -rf $tpldir~
|
alpar@9
|
6043 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
alpar@9
|
6044 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
|
alpar@9
|
6045 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
alpar@9
|
6046 rm -rf $tpldir~
|
alpar@9
|
6047 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
alpar@9
|
6048 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
|
alpar@9
|
6049 $RANLIB $oldlib'
|
alpar@9
|
6050 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
alpar@9
|
6051 rm -rf $tpldir~
|
alpar@9
|
6052 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
alpar@9
|
6053 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
alpar@9
|
6054 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
alpar@9
|
6055 rm -rf $tpldir~
|
alpar@9
|
6056 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
alpar@9
|
6057 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
alpar@9
|
6058 ;;
|
alpar@9
|
6059 *) # Version 6 and above use weak symbols
|
alpar@9
|
6060 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
alpar@9
|
6061 _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'
|
alpar@9
|
6062 ;;
|
alpar@9
|
6063 esac
|
alpar@9
|
6064
|
alpar@9
|
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
alpar@9
|
6066 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
6067 _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'
|
alpar@9
|
6068 ;;
|
alpar@9
|
6069 cxx*)
|
alpar@9
|
6070 # Compaq C++
|
alpar@9
|
6071 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
6072 _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'
|
alpar@9
|
6073
|
alpar@9
|
6074 runpath_var=LD_RUN_PATH
|
alpar@9
|
6075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
alpar@9
|
6076 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
6077
|
alpar@9
|
6078 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
6079 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
6080 # linking a shared library.
|
alpar@9
|
6081 #
|
alpar@9
|
6082 # There doesn't appear to be a way to prevent this compiler from
|
alpar@9
|
6083 # explicitly linking system object files so we need to strip them
|
alpar@9
|
6084 # from the output so that they don't get included in the library
|
alpar@9
|
6085 # dependencies.
|
alpar@9
|
6086 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'
|
alpar@9
|
6087 ;;
|
alpar@9
|
6088 xl* | mpixl* | bgxl*)
|
alpar@9
|
6089 # IBM XL 8.0 on PPC, with GNU ld
|
alpar@9
|
6090 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
6091 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
alpar@9
|
6092 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
alpar@9
|
6093 if test "x$supports_anon_versioning" = xyes; then
|
alpar@9
|
6094 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
alpar@9
|
6095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
alpar@9
|
6096 echo "local: *; };" >> $output_objdir/$libname.ver~
|
alpar@9
|
6097 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
alpar@9
|
6098 fi
|
alpar@9
|
6099 ;;
|
alpar@9
|
6100 *)
|
alpar@9
|
6101 case `$CC -V 2>&1 | sed 5q` in
|
alpar@9
|
6102 *Sun\ C*)
|
alpar@9
|
6103 # Sun C++ 5.9
|
alpar@9
|
6104 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
alpar@9
|
6105 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
6106 _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'
|
alpar@9
|
6107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
6108 _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'
|
alpar@9
|
6109 _LT_TAGVAR(compiler_needs_object, $1)=yes
|
alpar@9
|
6110
|
alpar@9
|
6111 # Not sure whether something based on
|
alpar@9
|
6112 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
alpar@9
|
6113 # would be better.
|
alpar@9
|
6114 output_verbose_link_cmd='func_echo_all'
|
alpar@9
|
6115
|
alpar@9
|
6116 # Archives containing C++ object files must be created using
|
alpar@9
|
6117 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
alpar@9
|
6118 # necessary to make sure instantiated templates are included
|
alpar@9
|
6119 # in the archive.
|
alpar@9
|
6120 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
alpar@9
|
6121 ;;
|
alpar@9
|
6122 esac
|
alpar@9
|
6123 ;;
|
alpar@9
|
6124 esac
|
alpar@9
|
6125 ;;
|
alpar@9
|
6126
|
alpar@9
|
6127 lynxos*)
|
alpar@9
|
6128 # FIXME: insert proper C++ library support
|
alpar@9
|
6129 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6130 ;;
|
alpar@9
|
6131
|
alpar@9
|
6132 m88k*)
|
alpar@9
|
6133 # FIXME: insert proper C++ library support
|
alpar@9
|
6134 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6135 ;;
|
alpar@9
|
6136
|
alpar@9
|
6137 mvs*)
|
alpar@9
|
6138 case $cc_basename in
|
alpar@9
|
6139 cxx*)
|
alpar@9
|
6140 # FIXME: insert proper C++ library support
|
alpar@9
|
6141 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6142 ;;
|
alpar@9
|
6143 *)
|
alpar@9
|
6144 # FIXME: insert proper C++ library support
|
alpar@9
|
6145 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6146 ;;
|
alpar@9
|
6147 esac
|
alpar@9
|
6148 ;;
|
alpar@9
|
6149
|
alpar@9
|
6150 netbsd*)
|
alpar@9
|
6151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
alpar@9
|
6152 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
alpar@9
|
6153 wlarc=
|
alpar@9
|
6154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
6155 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
6156 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
6157 fi
|
alpar@9
|
6158 # Workaround some broken pre-1.5 toolchains
|
alpar@9
|
6159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
alpar@9
|
6160 ;;
|
alpar@9
|
6161
|
alpar@9
|
6162 *nto* | *qnx*)
|
alpar@9
|
6163 _LT_TAGVAR(ld_shlibs, $1)=yes
|
alpar@9
|
6164 ;;
|
alpar@9
|
6165
|
alpar@9
|
6166 openbsd2*)
|
alpar@9
|
6167 # C++ shared libraries are fairly broken
|
alpar@9
|
6168 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6169 ;;
|
alpar@9
|
6170
|
alpar@9
|
6171 openbsd*)
|
alpar@9
|
6172 if test -f /usr/libexec/ld.so; then
|
alpar@9
|
6173 _LT_TAGVAR(hardcode_direct, $1)=yes
|
alpar@9
|
6174 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
6175 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
alpar@9
|
6176 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
alpar@9
|
6177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
6178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
alpar@9
|
6179 _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'
|
alpar@9
|
6180 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
alpar@9
|
6181 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
alpar@9
|
6182 fi
|
alpar@9
|
6183 output_verbose_link_cmd=func_echo_all
|
alpar@9
|
6184 else
|
alpar@9
|
6185 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6186 fi
|
alpar@9
|
6187 ;;
|
alpar@9
|
6188
|
alpar@9
|
6189 osf3* | osf4* | osf5*)
|
alpar@9
|
6190 case $cc_basename in
|
alpar@9
|
6191 KCC*)
|
alpar@9
|
6192 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
alpar@9
|
6193
|
alpar@9
|
6194 # KCC will only create a shared library if the output file
|
alpar@9
|
6195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
alpar@9
|
6196 # to its proper name (with version) after linking.
|
alpar@9
|
6197 _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'
|
alpar@9
|
6198
|
alpar@9
|
6199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
alpar@9
|
6200 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
6201
|
alpar@9
|
6202 # Archives containing C++ object files must be created using
|
alpar@9
|
6203 # the KAI C++ compiler.
|
alpar@9
|
6204 case $host in
|
alpar@9
|
6205 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
|
alpar@9
|
6206 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
|
alpar@9
|
6207 esac
|
alpar@9
|
6208 ;;
|
alpar@9
|
6209 RCC*)
|
alpar@9
|
6210 # Rational C++ 2.4.1
|
alpar@9
|
6211 # FIXME: insert proper C++ library support
|
alpar@9
|
6212 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6213 ;;
|
alpar@9
|
6214 cxx*)
|
alpar@9
|
6215 case $host in
|
alpar@9
|
6216 osf3*)
|
alpar@9
|
6217 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
alpar@9
|
6218 _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'
|
alpar@9
|
6219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
6220 ;;
|
alpar@9
|
6221 *)
|
alpar@9
|
6222 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
alpar@9
|
6223 _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'
|
alpar@9
|
6224 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
alpar@9
|
6225 echo "-hidden">> $lib.exp~
|
alpar@9
|
6226 $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~
|
alpar@9
|
6227 $RM $lib.exp'
|
alpar@9
|
6228 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
alpar@9
|
6229 ;;
|
alpar@9
|
6230 esac
|
alpar@9
|
6231
|
alpar@9
|
6232 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
6233
|
alpar@9
|
6234 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
6235 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
6236 # linking a shared library.
|
alpar@9
|
6237 #
|
alpar@9
|
6238 # There doesn't appear to be a way to prevent this compiler from
|
alpar@9
|
6239 # explicitly linking system object files so we need to strip them
|
alpar@9
|
6240 # from the output so that they don't get included in the library
|
alpar@9
|
6241 # dependencies.
|
alpar@9
|
6242 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"'
|
alpar@9
|
6243 ;;
|
alpar@9
|
6244 *)
|
alpar@9
|
6245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
alpar@9
|
6246 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
alpar@9
|
6247 case $host in
|
alpar@9
|
6248 osf3*)
|
alpar@9
|
6249 _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'
|
alpar@9
|
6250 ;;
|
alpar@9
|
6251 *)
|
alpar@9
|
6252 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
alpar@9
|
6253 ;;
|
alpar@9
|
6254 esac
|
alpar@9
|
6255
|
alpar@9
|
6256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
alpar@9
|
6257 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
alpar@9
|
6258
|
alpar@9
|
6259 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
6260 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
6261 # linking a shared library.
|
alpar@9
|
6262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
alpar@9
|
6263
|
alpar@9
|
6264 else
|
alpar@9
|
6265 # FIXME: insert proper C++ library support
|
alpar@9
|
6266 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6267 fi
|
alpar@9
|
6268 ;;
|
alpar@9
|
6269 esac
|
alpar@9
|
6270 ;;
|
alpar@9
|
6271
|
alpar@9
|
6272 psos*)
|
alpar@9
|
6273 # FIXME: insert proper C++ library support
|
alpar@9
|
6274 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6275 ;;
|
alpar@9
|
6276
|
alpar@9
|
6277 sunos4*)
|
alpar@9
|
6278 case $cc_basename in
|
alpar@9
|
6279 CC*)
|
alpar@9
|
6280 # Sun C++ 4.x
|
alpar@9
|
6281 # FIXME: insert proper C++ library support
|
alpar@9
|
6282 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6283 ;;
|
alpar@9
|
6284 lcc*)
|
alpar@9
|
6285 # Lucid
|
alpar@9
|
6286 # FIXME: insert proper C++ library support
|
alpar@9
|
6287 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6288 ;;
|
alpar@9
|
6289 *)
|
alpar@9
|
6290 # FIXME: insert proper C++ library support
|
alpar@9
|
6291 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6292 ;;
|
alpar@9
|
6293 esac
|
alpar@9
|
6294 ;;
|
alpar@9
|
6295
|
alpar@9
|
6296 solaris*)
|
alpar@9
|
6297 case $cc_basename in
|
alpar@9
|
6298 CC*)
|
alpar@9
|
6299 # Sun C++ 4.2, 5.x and Centerline C++
|
alpar@9
|
6300 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
alpar@9
|
6301 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
alpar@9
|
6302 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
alpar@9
|
6303 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
6304 $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'
|
alpar@9
|
6305
|
alpar@9
|
6306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
alpar@9
|
6307 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
6308 case $host_os in
|
alpar@9
|
6309 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
alpar@9
|
6310 *)
|
alpar@9
|
6311 # The compiler driver will combine and reorder linker options,
|
alpar@9
|
6312 # but understands `-z linker_flag'.
|
alpar@9
|
6313 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
alpar@9
|
6314 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
alpar@9
|
6315 ;;
|
alpar@9
|
6316 esac
|
alpar@9
|
6317 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
6318
|
alpar@9
|
6319 output_verbose_link_cmd='func_echo_all'
|
alpar@9
|
6320
|
alpar@9
|
6321 # Archives containing C++ object files must be created using
|
alpar@9
|
6322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
alpar@9
|
6323 # necessary to make sure instantiated templates are included
|
alpar@9
|
6324 # in the archive.
|
alpar@9
|
6325 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
alpar@9
|
6326 ;;
|
alpar@9
|
6327 gcx*)
|
alpar@9
|
6328 # Green Hills C++ Compiler
|
alpar@9
|
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
alpar@9
|
6330
|
alpar@9
|
6331 # The C++ compiler must be used to create the archive.
|
alpar@9
|
6332 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
alpar@9
|
6333 ;;
|
alpar@9
|
6334 *)
|
alpar@9
|
6335 # GNU C++ compiler with Solaris linker
|
alpar@9
|
6336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
alpar@9
|
6337 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
alpar@9
|
6338 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
alpar@9
|
6339 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
alpar@9
|
6340 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
6341 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
alpar@9
|
6342
|
alpar@9
|
6343 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
6344 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
6345 # linking a shared library.
|
alpar@9
|
6346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
alpar@9
|
6347 else
|
alpar@9
|
6348 # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
alpar@9
|
6349 # platform.
|
alpar@9
|
6350 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
alpar@9
|
6351 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
alpar@9
|
6352 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
alpar@9
|
6353
|
alpar@9
|
6354 # Commands to make compiler produce verbose output that lists
|
alpar@9
|
6355 # what "hidden" libraries, object files and flags are used when
|
alpar@9
|
6356 # linking a shared library.
|
alpar@9
|
6357 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
|
alpar@9
|
6358 fi
|
alpar@9
|
6359
|
alpar@9
|
6360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
alpar@9
|
6361 case $host_os in
|
alpar@9
|
6362 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
alpar@9
|
6363 *)
|
alpar@9
|
6364 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
alpar@9
|
6365 ;;
|
alpar@9
|
6366 esac
|
alpar@9
|
6367 fi
|
alpar@9
|
6368 ;;
|
alpar@9
|
6369 esac
|
alpar@9
|
6370 ;;
|
alpar@9
|
6371
|
alpar@9
|
6372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
alpar@9
|
6373 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
alpar@9
|
6374 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
6375 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
6376 runpath_var='LD_RUN_PATH'
|
alpar@9
|
6377
|
alpar@9
|
6378 case $cc_basename in
|
alpar@9
|
6379 CC*)
|
alpar@9
|
6380 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6381 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6382 ;;
|
alpar@9
|
6383 *)
|
alpar@9
|
6384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6385 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6386 ;;
|
alpar@9
|
6387 esac
|
alpar@9
|
6388 ;;
|
alpar@9
|
6389
|
alpar@9
|
6390 sysv5* | sco3.2v5* | sco5v6*)
|
alpar@9
|
6391 # Note: We can NOT use -z defs as we might desire, because we do not
|
alpar@9
|
6392 # link with -lc, and that would cause any symbols used from libc to
|
alpar@9
|
6393 # always be unresolved, which means just about no library would
|
alpar@9
|
6394 # ever link correctly. If we're not using GNU ld we use -z text
|
alpar@9
|
6395 # though, which does catch some bad symbols but isn't as heavy-handed
|
alpar@9
|
6396 # as -z defs.
|
alpar@9
|
6397 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
alpar@9
|
6398 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
alpar@9
|
6399 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
6400 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
alpar@9
|
6401 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
alpar@9
|
6402 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
alpar@9
|
6403 _LT_TAGVAR(link_all_deplibs, $1)=yes
|
alpar@9
|
6404 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
alpar@9
|
6405 runpath_var='LD_RUN_PATH'
|
alpar@9
|
6406
|
alpar@9
|
6407 case $cc_basename in
|
alpar@9
|
6408 CC*)
|
alpar@9
|
6409 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6410 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6411 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
|
alpar@9
|
6412 '"$_LT_TAGVAR(old_archive_cmds, $1)"
|
alpar@9
|
6413 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
|
alpar@9
|
6414 '"$_LT_TAGVAR(reload_cmds, $1)"
|
alpar@9
|
6415 ;;
|
alpar@9
|
6416 *)
|
alpar@9
|
6417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6418 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
alpar@9
|
6419 ;;
|
alpar@9
|
6420 esac
|
alpar@9
|
6421 ;;
|
alpar@9
|
6422
|
alpar@9
|
6423 tandem*)
|
alpar@9
|
6424 case $cc_basename in
|
alpar@9
|
6425 NCC*)
|
alpar@9
|
6426 # NonStop-UX NCC 3.20
|
alpar@9
|
6427 # FIXME: insert proper C++ library support
|
alpar@9
|
6428 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6429 ;;
|
alpar@9
|
6430 *)
|
alpar@9
|
6431 # FIXME: insert proper C++ library support
|
alpar@9
|
6432 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6433 ;;
|
alpar@9
|
6434 esac
|
alpar@9
|
6435 ;;
|
alpar@9
|
6436
|
alpar@9
|
6437 vxworks*)
|
alpar@9
|
6438 # FIXME: insert proper C++ library support
|
alpar@9
|
6439 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6440 ;;
|
alpar@9
|
6441
|
alpar@9
|
6442 *)
|
alpar@9
|
6443 # FIXME: insert proper C++ library support
|
alpar@9
|
6444 _LT_TAGVAR(ld_shlibs, $1)=no
|
alpar@9
|
6445 ;;
|
alpar@9
|
6446 esac
|
alpar@9
|
6447
|
alpar@9
|
6448 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
alpar@9
|
6449 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
alpar@9
|
6450
|
alpar@9
|
6451 _LT_TAGVAR(GCC, $1)="$GXX"
|
alpar@9
|
6452 _LT_TAGVAR(LD, $1)="$LD"
|
alpar@9
|
6453
|
alpar@9
|
6454 ## CAVEAT EMPTOR:
|
alpar@9
|
6455 ## There is no encapsulation within the following macros, do not change
|
alpar@9
|
6456 ## the running order or otherwise move them around unless you know exactly
|
alpar@9
|
6457 ## what you are doing...
|
alpar@9
|
6458 _LT_SYS_HIDDEN_LIBDEPS($1)
|
alpar@9
|
6459 _LT_COMPILER_PIC($1)
|
alpar@9
|
6460 _LT_COMPILER_C_O($1)
|
alpar@9
|
6461 _LT_COMPILER_FILE_LOCKS($1)
|
alpar@9
|
6462 _LT_LINKER_SHLIBS($1)
|
alpar@9
|
6463 _LT_SYS_DYNAMIC_LINKER($1)
|
alpar@9
|
6464 _LT_LINKER_HARDCODE_LIBPATH($1)
|
alpar@9
|
6465
|
alpar@9
|
6466 _LT_CONFIG($1)
|
alpar@9
|
6467 fi # test -n "$compiler"
|
alpar@9
|
6468
|
alpar@9
|
6469 CC=$lt_save_CC
|
alpar@9
|
6470 LDCXX=$LD
|
alpar@9
|
6471 LD=$lt_save_LD
|
alpar@9
|
6472 GCC=$lt_save_GCC
|
alpar@9
|
6473 with_gnu_ld=$lt_save_with_gnu_ld
|
alpar@9
|
6474 lt_cv_path_LDCXX=$lt_cv_path_LD
|
alpar@9
|
6475 lt_cv_path_LD=$lt_save_path_LD
|
alpar@9
|
6476 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
alpar@9
|
6477 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
alpar@9
|
6478 fi # test "$_lt_caught_CXX_error" != yes
|
alpar@9
|
6479
|
alpar@9
|
6480 AC_LANG_POP
|
alpar@9
|
6481 ])# _LT_LANG_CXX_CONFIG
|
alpar@9
|
6482
|
alpar@9
|
6483
|
alpar@9
|
6484 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
alpar@9
|
6485 # ---------------------------------
|
alpar@9
|
6486 # Figure out "hidden" library dependencies from verbose
|
alpar@9
|
6487 # compiler output when linking a shared library.
|
alpar@9
|
6488 # Parse the compiler output and extract the necessary
|
alpar@9
|
6489 # objects, libraries and library flags.
|
alpar@9
|
6490 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
alpar@9
|
6491 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
alpar@9
|
6492 # Dependencies to place before and after the object being linked:
|
alpar@9
|
6493 _LT_TAGVAR(predep_objects, $1)=
|
alpar@9
|
6494 _LT_TAGVAR(postdep_objects, $1)=
|
alpar@9
|
6495 _LT_TAGVAR(predeps, $1)=
|
alpar@9
|
6496 _LT_TAGVAR(postdeps, $1)=
|
alpar@9
|
6497 _LT_TAGVAR(compiler_lib_search_path, $1)=
|
alpar@9
|
6498
|
alpar@9
|
6499 dnl we can't use the lt_simple_compile_test_code here,
|
alpar@9
|
6500 dnl because it contains code intended for an executable,
|
alpar@9
|
6501 dnl not a library. It's possible we should let each
|
alpar@9
|
6502 dnl tag define a new lt_????_link_test_code variable,
|
alpar@9
|
6503 dnl but it's only used here...
|
alpar@9
|
6504 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
6505 int a;
|
alpar@9
|
6506 void foo (void) { a = 0; }
|
alpar@9
|
6507 _LT_EOF
|
alpar@9
|
6508 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
6509 class Foo
|
alpar@9
|
6510 {
|
alpar@9
|
6511 public:
|
alpar@9
|
6512 Foo (void) { a = 0; }
|
alpar@9
|
6513 private:
|
alpar@9
|
6514 int a;
|
alpar@9
|
6515 };
|
alpar@9
|
6516 _LT_EOF
|
alpar@9
|
6517 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
6518 subroutine foo
|
alpar@9
|
6519 implicit none
|
alpar@9
|
6520 integer*4 a
|
alpar@9
|
6521 a=0
|
alpar@9
|
6522 return
|
alpar@9
|
6523 end
|
alpar@9
|
6524 _LT_EOF
|
alpar@9
|
6525 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
6526 subroutine foo
|
alpar@9
|
6527 implicit none
|
alpar@9
|
6528 integer a
|
alpar@9
|
6529 a=0
|
alpar@9
|
6530 return
|
alpar@9
|
6531 end
|
alpar@9
|
6532 _LT_EOF
|
alpar@9
|
6533 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
|
alpar@9
|
6534 public class foo {
|
alpar@9
|
6535 private int a;
|
alpar@9
|
6536 public void bar (void) {
|
alpar@9
|
6537 a = 0;
|
alpar@9
|
6538 }
|
alpar@9
|
6539 };
|
alpar@9
|
6540 _LT_EOF
|
alpar@9
|
6541 ])
|
alpar@9
|
6542 dnl Parse the compiler output and extract the necessary
|
alpar@9
|
6543 dnl objects, libraries and library flags.
|
alpar@9
|
6544 if AC_TRY_EVAL(ac_compile); then
|
alpar@9
|
6545 # Parse the compiler output and extract the necessary
|
alpar@9
|
6546 # objects, libraries and library flags.
|
alpar@9
|
6547
|
alpar@9
|
6548 # Sentinel used to keep track of whether or not we are before
|
alpar@9
|
6549 # the conftest object file.
|
alpar@9
|
6550 pre_test_object_deps_done=no
|
alpar@9
|
6551
|
alpar@9
|
6552 for p in `eval "$output_verbose_link_cmd"`; do
|
alpar@9
|
6553 case $p in
|
alpar@9
|
6554
|
alpar@9
|
6555 -L* | -R* | -l*)
|
alpar@9
|
6556 # Some compilers place space between "-{L,R}" and the path.
|
alpar@9
|
6557 # Remove the space.
|
alpar@9
|
6558 if test $p = "-L" ||
|
alpar@9
|
6559 test $p = "-R"; then
|
alpar@9
|
6560 prev=$p
|
alpar@9
|
6561 continue
|
alpar@9
|
6562 else
|
alpar@9
|
6563 prev=
|
alpar@9
|
6564 fi
|
alpar@9
|
6565
|
alpar@9
|
6566 if test "$pre_test_object_deps_done" = no; then
|
alpar@9
|
6567 case $p in
|
alpar@9
|
6568 -L* | -R*)
|
alpar@9
|
6569 # Internal compiler library paths should come after those
|
alpar@9
|
6570 # provided the user. The postdeps already come after the
|
alpar@9
|
6571 # user supplied libs so there is no need to process them.
|
alpar@9
|
6572 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
|
alpar@9
|
6573 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
alpar@9
|
6574 else
|
alpar@9
|
6575 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
alpar@9
|
6576 fi
|
alpar@9
|
6577 ;;
|
alpar@9
|
6578 # The "-l" case would never come before the object being
|
alpar@9
|
6579 # linked, so don't bother handling this case.
|
alpar@9
|
6580 esac
|
alpar@9
|
6581 else
|
alpar@9
|
6582 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
|
alpar@9
|
6583 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
|
alpar@9
|
6584 else
|
alpar@9
|
6585 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
|
alpar@9
|
6586 fi
|
alpar@9
|
6587 fi
|
alpar@9
|
6588 ;;
|
alpar@9
|
6589
|
alpar@9
|
6590 *.$objext)
|
alpar@9
|
6591 # This assumes that the test object file only shows up
|
alpar@9
|
6592 # once in the compiler output.
|
alpar@9
|
6593 if test "$p" = "conftest.$objext"; then
|
alpar@9
|
6594 pre_test_object_deps_done=yes
|
alpar@9
|
6595 continue
|
alpar@9
|
6596 fi
|
alpar@9
|
6597
|
alpar@9
|
6598 if test "$pre_test_object_deps_done" = no; then
|
alpar@9
|
6599 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
|
alpar@9
|
6600 _LT_TAGVAR(predep_objects, $1)="$p"
|
alpar@9
|
6601 else
|
alpar@9
|
6602 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
|
alpar@9
|
6603 fi
|
alpar@9
|
6604 else
|
alpar@9
|
6605 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
|
alpar@9
|
6606 _LT_TAGVAR(postdep_objects, $1)="$p"
|
alpar@9
|
6607 else
|
alpar@9
|
6608 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
|
alpar@9
|
6609 fi
|
alpar@9
|
6610 fi
|
alpar@9
|
6611 ;;
|
alpar@9
|
6612
|
alpar@9
|
6613 *) ;; # Ignore the rest.
|
alpar@9
|
6614
|
alpar@9
|
6615 esac
|
alpar@9
|
6616 done
|
alpar@9
|
6617
|
alpar@9
|
6618 # Clean up.
|
alpar@9
|
6619 rm -f a.out a.exe
|
alpar@9
|
6620 else
|
alpar@9
|
6621 echo "libtool.m4: error: problem compiling $1 test program"
|
alpar@9
|
6622 fi
|
alpar@9
|
6623
|
alpar@9
|
6624 $RM -f confest.$objext
|
alpar@9
|
6625
|
alpar@9
|
6626 # PORTME: override above test on systems where it is broken
|
alpar@9
|
6627 m4_if([$1], [CXX],
|
alpar@9
|
6628 [case $host_os in
|
alpar@9
|
6629 interix[[3-9]]*)
|
alpar@9
|
6630 # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
alpar@9
|
6631 # hack all around it, let's just trust "g++" to DTRT.
|
alpar@9
|
6632 _LT_TAGVAR(predep_objects,$1)=
|
alpar@9
|
6633 _LT_TAGVAR(postdep_objects,$1)=
|
alpar@9
|
6634 _LT_TAGVAR(postdeps,$1)=
|
alpar@9
|
6635 ;;
|
alpar@9
|
6636
|
alpar@9
|
6637 linux*)
|
alpar@9
|
6638 case `$CC -V 2>&1 | sed 5q` in
|
alpar@9
|
6639 *Sun\ C*)
|
alpar@9
|
6640 # Sun C++ 5.9
|
alpar@9
|
6641
|
alpar@9
|
6642 # The more standards-conforming stlport4 library is
|
alpar@9
|
6643 # incompatible with the Cstd library. Avoid specifying
|
alpar@9
|
6644 # it if it's in CXXFLAGS. Ignore libCrun as
|
alpar@9
|
6645 # -library=stlport4 depends on it.
|
alpar@9
|
6646 case " $CXX $CXXFLAGS " in
|
alpar@9
|
6647 *" -library=stlport4 "*)
|
alpar@9
|
6648 solaris_use_stlport4=yes
|
alpar@9
|
6649 ;;
|
alpar@9
|
6650 esac
|
alpar@9
|
6651
|
alpar@9
|
6652 if test "$solaris_use_stlport4" != yes; then
|
alpar@9
|
6653 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
alpar@9
|
6654 fi
|
alpar@9
|
6655 ;;
|
alpar@9
|
6656 esac
|
alpar@9
|
6657 ;;
|
alpar@9
|
6658
|
alpar@9
|
6659 solaris*)
|
alpar@9
|
6660 case $cc_basename in
|
alpar@9
|
6661 CC*)
|
alpar@9
|
6662 # The more standards-conforming stlport4 library is
|
alpar@9
|
6663 # incompatible with the Cstd library. Avoid specifying
|
alpar@9
|
6664 # it if it's in CXXFLAGS. Ignore libCrun as
|
alpar@9
|
6665 # -library=stlport4 depends on it.
|
alpar@9
|
6666 case " $CXX $CXXFLAGS " in
|
alpar@9
|
6667 *" -library=stlport4 "*)
|
alpar@9
|
6668 solaris_use_stlport4=yes
|
alpar@9
|
6669 ;;
|
alpar@9
|
6670 esac
|
alpar@9
|
6671
|
alpar@9
|
6672 # Adding this requires a known-good setup of shared libraries for
|
alpar@9
|
6673 # Sun compiler versions before 5.6, else PIC objects from an old
|
alpar@9
|
6674 # archive will be linked into the output, leading to subtle bugs.
|
alpar@9
|
6675 if test "$solaris_use_stlport4" != yes; then
|
alpar@9
|
6676 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
alpar@9
|
6677 fi
|
alpar@9
|
6678 ;;
|
alpar@9
|
6679 esac
|
alpar@9
|
6680 ;;
|
alpar@9
|
6681 esac
|
alpar@9
|
6682 ])
|
alpar@9
|
6683
|
alpar@9
|
6684 case " $_LT_TAGVAR(postdeps, $1) " in
|
alpar@9
|
6685 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
alpar@9
|
6686 esac
|
alpar@9
|
6687 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
|
alpar@9
|
6688 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
|
alpar@9
|
6689 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
|
alpar@9
|
6690 fi
|
alpar@9
|
6691 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
|
alpar@9
|
6692 [The directories searched by this compiler when creating a shared library])
|
alpar@9
|
6693 _LT_TAGDECL([], [predep_objects], [1],
|
alpar@9
|
6694 [Dependencies to place before and after the objects being linked to
|
alpar@9
|
6695 create a shared library])
|
alpar@9
|
6696 _LT_TAGDECL([], [postdep_objects], [1])
|
alpar@9
|
6697 _LT_TAGDECL([], [predeps], [1])
|
alpar@9
|
6698 _LT_TAGDECL([], [postdeps], [1])
|
alpar@9
|
6699 _LT_TAGDECL([], [compiler_lib_search_path], [1],
|
alpar@9
|
6700 [The library search path used internally by the compiler when linking
|
alpar@9
|
6701 a shared library])
|
alpar@9
|
6702 ])# _LT_SYS_HIDDEN_LIBDEPS
|
alpar@9
|
6703
|
alpar@9
|
6704
|
alpar@9
|
6705 # _LT_LANG_F77_CONFIG([TAG])
|
alpar@9
|
6706 # --------------------------
|
alpar@9
|
6707 # Ensure that the configuration variables for a Fortran 77 compiler are
|
alpar@9
|
6708 # suitably defined. These variables are subsequently used by _LT_CONFIG
|
alpar@9
|
6709 # to write the compiler configuration to `libtool'.
|
alpar@9
|
6710 m4_defun([_LT_LANG_F77_CONFIG],
|
alpar@9
|
6711 [AC_LANG_PUSH(Fortran 77)
|
alpar@9
|
6712 if test -z "$F77" || test "X$F77" = "Xno"; then
|
alpar@9
|
6713 _lt_disable_F77=yes
|
alpar@9
|
6714 fi
|
alpar@9
|
6715
|
alpar@9
|
6716 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
6717 _LT_TAGVAR(allow_undefined_flag, $1)=
|
alpar@9
|
6718 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
6719 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
alpar@9
|
6720 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
alpar@9
|
6721 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
6722 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
alpar@9
|
6723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
6724 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
alpar@9
|
6725 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
6726 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
alpar@9
|
6727 _LT_TAGVAR(hardcode_automatic, $1)=no
|
alpar@9
|
6728 _LT_TAGVAR(inherit_rpath, $1)=no
|
alpar@9
|
6729 _LT_TAGVAR(module_cmds, $1)=
|
alpar@9
|
6730 _LT_TAGVAR(module_expsym_cmds, $1)=
|
alpar@9
|
6731 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
alpar@9
|
6732 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
alpar@9
|
6733 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
alpar@9
|
6734 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
alpar@9
|
6735 _LT_TAGVAR(no_undefined_flag, $1)=
|
alpar@9
|
6736 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
6737 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
alpar@9
|
6738
|
alpar@9
|
6739 # Source file extension for f77 test sources.
|
alpar@9
|
6740 ac_ext=f
|
alpar@9
|
6741
|
alpar@9
|
6742 # Object file extension for compiled f77 test sources.
|
alpar@9
|
6743 objext=o
|
alpar@9
|
6744 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
6745
|
alpar@9
|
6746 # No sense in running all these tests if we already determined that
|
alpar@9
|
6747 # the F77 compiler isn't working. Some variables (like enable_shared)
|
alpar@9
|
6748 # are currently assumed to apply to all compilers on this platform,
|
alpar@9
|
6749 # and will be corrupted by setting them based on a non-working compiler.
|
alpar@9
|
6750 if test "$_lt_disable_F77" != yes; then
|
alpar@9
|
6751 # Code to be used in simple compile tests
|
alpar@9
|
6752 lt_simple_compile_test_code="\
|
alpar@9
|
6753 subroutine t
|
alpar@9
|
6754 return
|
alpar@9
|
6755 end
|
alpar@9
|
6756 "
|
alpar@9
|
6757
|
alpar@9
|
6758 # Code to be used in simple link tests
|
alpar@9
|
6759 lt_simple_link_test_code="\
|
alpar@9
|
6760 program t
|
alpar@9
|
6761 end
|
alpar@9
|
6762 "
|
alpar@9
|
6763
|
alpar@9
|
6764 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
alpar@9
|
6765 _LT_TAG_COMPILER
|
alpar@9
|
6766
|
alpar@9
|
6767 # save warnings/boilerplate of simple test code
|
alpar@9
|
6768 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
6769 _LT_LINKER_BOILERPLATE
|
alpar@9
|
6770
|
alpar@9
|
6771 # Allow CC to be a program name with arguments.
|
alpar@9
|
6772 lt_save_CC="$CC"
|
alpar@9
|
6773 lt_save_GCC=$GCC
|
alpar@9
|
6774 CC=${F77-"f77"}
|
alpar@9
|
6775 compiler=$CC
|
alpar@9
|
6776 _LT_TAGVAR(compiler, $1)=$CC
|
alpar@9
|
6777 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
6778 GCC=$G77
|
alpar@9
|
6779 if test -n "$compiler"; then
|
alpar@9
|
6780 AC_MSG_CHECKING([if libtool supports shared libraries])
|
alpar@9
|
6781 AC_MSG_RESULT([$can_build_shared])
|
alpar@9
|
6782
|
alpar@9
|
6783 AC_MSG_CHECKING([whether to build shared libraries])
|
alpar@9
|
6784 test "$can_build_shared" = "no" && enable_shared=no
|
alpar@9
|
6785
|
alpar@9
|
6786 # On AIX, shared libraries and static libraries use the same namespace, and
|
alpar@9
|
6787 # are all built from PIC.
|
alpar@9
|
6788 case $host_os in
|
alpar@9
|
6789 aix3*)
|
alpar@9
|
6790 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
6791 if test -n "$RANLIB"; then
|
alpar@9
|
6792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
alpar@9
|
6793 postinstall_cmds='$RANLIB $lib'
|
alpar@9
|
6794 fi
|
alpar@9
|
6795 ;;
|
alpar@9
|
6796 aix[[4-9]]*)
|
alpar@9
|
6797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
alpar@9
|
6798 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
6799 fi
|
alpar@9
|
6800 ;;
|
alpar@9
|
6801 esac
|
alpar@9
|
6802 AC_MSG_RESULT([$enable_shared])
|
alpar@9
|
6803
|
alpar@9
|
6804 AC_MSG_CHECKING([whether to build static libraries])
|
alpar@9
|
6805 # Make sure either enable_shared or enable_static is yes.
|
alpar@9
|
6806 test "$enable_shared" = yes || enable_static=yes
|
alpar@9
|
6807 AC_MSG_RESULT([$enable_static])
|
alpar@9
|
6808
|
alpar@9
|
6809 _LT_TAGVAR(GCC, $1)="$G77"
|
alpar@9
|
6810 _LT_TAGVAR(LD, $1)="$LD"
|
alpar@9
|
6811
|
alpar@9
|
6812 ## CAVEAT EMPTOR:
|
alpar@9
|
6813 ## There is no encapsulation within the following macros, do not change
|
alpar@9
|
6814 ## the running order or otherwise move them around unless you know exactly
|
alpar@9
|
6815 ## what you are doing...
|
alpar@9
|
6816 _LT_COMPILER_PIC($1)
|
alpar@9
|
6817 _LT_COMPILER_C_O($1)
|
alpar@9
|
6818 _LT_COMPILER_FILE_LOCKS($1)
|
alpar@9
|
6819 _LT_LINKER_SHLIBS($1)
|
alpar@9
|
6820 _LT_SYS_DYNAMIC_LINKER($1)
|
alpar@9
|
6821 _LT_LINKER_HARDCODE_LIBPATH($1)
|
alpar@9
|
6822
|
alpar@9
|
6823 _LT_CONFIG($1)
|
alpar@9
|
6824 fi # test -n "$compiler"
|
alpar@9
|
6825
|
alpar@9
|
6826 GCC=$lt_save_GCC
|
alpar@9
|
6827 CC="$lt_save_CC"
|
alpar@9
|
6828 fi # test "$_lt_disable_F77" != yes
|
alpar@9
|
6829
|
alpar@9
|
6830 AC_LANG_POP
|
alpar@9
|
6831 ])# _LT_LANG_F77_CONFIG
|
alpar@9
|
6832
|
alpar@9
|
6833
|
alpar@9
|
6834 # _LT_LANG_FC_CONFIG([TAG])
|
alpar@9
|
6835 # -------------------------
|
alpar@9
|
6836 # Ensure that the configuration variables for a Fortran compiler are
|
alpar@9
|
6837 # suitably defined. These variables are subsequently used by _LT_CONFIG
|
alpar@9
|
6838 # to write the compiler configuration to `libtool'.
|
alpar@9
|
6839 m4_defun([_LT_LANG_FC_CONFIG],
|
alpar@9
|
6840 [AC_LANG_PUSH(Fortran)
|
alpar@9
|
6841
|
alpar@9
|
6842 if test -z "$FC" || test "X$FC" = "Xno"; then
|
alpar@9
|
6843 _lt_disable_FC=yes
|
alpar@9
|
6844 fi
|
alpar@9
|
6845
|
alpar@9
|
6846 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
6847 _LT_TAGVAR(allow_undefined_flag, $1)=
|
alpar@9
|
6848 _LT_TAGVAR(always_export_symbols, $1)=no
|
alpar@9
|
6849 _LT_TAGVAR(archive_expsym_cmds, $1)=
|
alpar@9
|
6850 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
alpar@9
|
6851 _LT_TAGVAR(hardcode_direct, $1)=no
|
alpar@9
|
6852 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
alpar@9
|
6853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
alpar@9
|
6854 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
alpar@9
|
6855 _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
alpar@9
|
6856 _LT_TAGVAR(hardcode_minus_L, $1)=no
|
alpar@9
|
6857 _LT_TAGVAR(hardcode_automatic, $1)=no
|
alpar@9
|
6858 _LT_TAGVAR(inherit_rpath, $1)=no
|
alpar@9
|
6859 _LT_TAGVAR(module_cmds, $1)=
|
alpar@9
|
6860 _LT_TAGVAR(module_expsym_cmds, $1)=
|
alpar@9
|
6861 _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
alpar@9
|
6862 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
alpar@9
|
6863 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
alpar@9
|
6864 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
alpar@9
|
6865 _LT_TAGVAR(no_undefined_flag, $1)=
|
alpar@9
|
6866 _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
alpar@9
|
6867 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
alpar@9
|
6868
|
alpar@9
|
6869 # Source file extension for fc test sources.
|
alpar@9
|
6870 ac_ext=${ac_fc_srcext-f}
|
alpar@9
|
6871
|
alpar@9
|
6872 # Object file extension for compiled fc test sources.
|
alpar@9
|
6873 objext=o
|
alpar@9
|
6874 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
6875
|
alpar@9
|
6876 # No sense in running all these tests if we already determined that
|
alpar@9
|
6877 # the FC compiler isn't working. Some variables (like enable_shared)
|
alpar@9
|
6878 # are currently assumed to apply to all compilers on this platform,
|
alpar@9
|
6879 # and will be corrupted by setting them based on a non-working compiler.
|
alpar@9
|
6880 if test "$_lt_disable_FC" != yes; then
|
alpar@9
|
6881 # Code to be used in simple compile tests
|
alpar@9
|
6882 lt_simple_compile_test_code="\
|
alpar@9
|
6883 subroutine t
|
alpar@9
|
6884 return
|
alpar@9
|
6885 end
|
alpar@9
|
6886 "
|
alpar@9
|
6887
|
alpar@9
|
6888 # Code to be used in simple link tests
|
alpar@9
|
6889 lt_simple_link_test_code="\
|
alpar@9
|
6890 program t
|
alpar@9
|
6891 end
|
alpar@9
|
6892 "
|
alpar@9
|
6893
|
alpar@9
|
6894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
alpar@9
|
6895 _LT_TAG_COMPILER
|
alpar@9
|
6896
|
alpar@9
|
6897 # save warnings/boilerplate of simple test code
|
alpar@9
|
6898 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
6899 _LT_LINKER_BOILERPLATE
|
alpar@9
|
6900
|
alpar@9
|
6901 # Allow CC to be a program name with arguments.
|
alpar@9
|
6902 lt_save_CC="$CC"
|
alpar@9
|
6903 lt_save_GCC=$GCC
|
alpar@9
|
6904 CC=${FC-"f95"}
|
alpar@9
|
6905 compiler=$CC
|
alpar@9
|
6906 GCC=$ac_cv_fc_compiler_gnu
|
alpar@9
|
6907
|
alpar@9
|
6908 _LT_TAGVAR(compiler, $1)=$CC
|
alpar@9
|
6909 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
6910
|
alpar@9
|
6911 if test -n "$compiler"; then
|
alpar@9
|
6912 AC_MSG_CHECKING([if libtool supports shared libraries])
|
alpar@9
|
6913 AC_MSG_RESULT([$can_build_shared])
|
alpar@9
|
6914
|
alpar@9
|
6915 AC_MSG_CHECKING([whether to build shared libraries])
|
alpar@9
|
6916 test "$can_build_shared" = "no" && enable_shared=no
|
alpar@9
|
6917
|
alpar@9
|
6918 # On AIX, shared libraries and static libraries use the same namespace, and
|
alpar@9
|
6919 # are all built from PIC.
|
alpar@9
|
6920 case $host_os in
|
alpar@9
|
6921 aix3*)
|
alpar@9
|
6922 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
6923 if test -n "$RANLIB"; then
|
alpar@9
|
6924 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
alpar@9
|
6925 postinstall_cmds='$RANLIB $lib'
|
alpar@9
|
6926 fi
|
alpar@9
|
6927 ;;
|
alpar@9
|
6928 aix[[4-9]]*)
|
alpar@9
|
6929 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
alpar@9
|
6930 test "$enable_shared" = yes && enable_static=no
|
alpar@9
|
6931 fi
|
alpar@9
|
6932 ;;
|
alpar@9
|
6933 esac
|
alpar@9
|
6934 AC_MSG_RESULT([$enable_shared])
|
alpar@9
|
6935
|
alpar@9
|
6936 AC_MSG_CHECKING([whether to build static libraries])
|
alpar@9
|
6937 # Make sure either enable_shared or enable_static is yes.
|
alpar@9
|
6938 test "$enable_shared" = yes || enable_static=yes
|
alpar@9
|
6939 AC_MSG_RESULT([$enable_static])
|
alpar@9
|
6940
|
alpar@9
|
6941 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
|
alpar@9
|
6942 _LT_TAGVAR(LD, $1)="$LD"
|
alpar@9
|
6943
|
alpar@9
|
6944 ## CAVEAT EMPTOR:
|
alpar@9
|
6945 ## There is no encapsulation within the following macros, do not change
|
alpar@9
|
6946 ## the running order or otherwise move them around unless you know exactly
|
alpar@9
|
6947 ## what you are doing...
|
alpar@9
|
6948 _LT_SYS_HIDDEN_LIBDEPS($1)
|
alpar@9
|
6949 _LT_COMPILER_PIC($1)
|
alpar@9
|
6950 _LT_COMPILER_C_O($1)
|
alpar@9
|
6951 _LT_COMPILER_FILE_LOCKS($1)
|
alpar@9
|
6952 _LT_LINKER_SHLIBS($1)
|
alpar@9
|
6953 _LT_SYS_DYNAMIC_LINKER($1)
|
alpar@9
|
6954 _LT_LINKER_HARDCODE_LIBPATH($1)
|
alpar@9
|
6955
|
alpar@9
|
6956 _LT_CONFIG($1)
|
alpar@9
|
6957 fi # test -n "$compiler"
|
alpar@9
|
6958
|
alpar@9
|
6959 GCC=$lt_save_GCC
|
alpar@9
|
6960 CC="$lt_save_CC"
|
alpar@9
|
6961 fi # test "$_lt_disable_FC" != yes
|
alpar@9
|
6962
|
alpar@9
|
6963 AC_LANG_POP
|
alpar@9
|
6964 ])# _LT_LANG_FC_CONFIG
|
alpar@9
|
6965
|
alpar@9
|
6966
|
alpar@9
|
6967 # _LT_LANG_GCJ_CONFIG([TAG])
|
alpar@9
|
6968 # --------------------------
|
alpar@9
|
6969 # Ensure that the configuration variables for the GNU Java Compiler compiler
|
alpar@9
|
6970 # are suitably defined. These variables are subsequently used by _LT_CONFIG
|
alpar@9
|
6971 # to write the compiler configuration to `libtool'.
|
alpar@9
|
6972 m4_defun([_LT_LANG_GCJ_CONFIG],
|
alpar@9
|
6973 [AC_REQUIRE([LT_PROG_GCJ])dnl
|
alpar@9
|
6974 AC_LANG_SAVE
|
alpar@9
|
6975
|
alpar@9
|
6976 # Source file extension for Java test sources.
|
alpar@9
|
6977 ac_ext=java
|
alpar@9
|
6978
|
alpar@9
|
6979 # Object file extension for compiled Java test sources.
|
alpar@9
|
6980 objext=o
|
alpar@9
|
6981 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
6982
|
alpar@9
|
6983 # Code to be used in simple compile tests
|
alpar@9
|
6984 lt_simple_compile_test_code="class foo {}"
|
alpar@9
|
6985
|
alpar@9
|
6986 # Code to be used in simple link tests
|
alpar@9
|
6987 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
alpar@9
|
6988
|
alpar@9
|
6989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
alpar@9
|
6990 _LT_TAG_COMPILER
|
alpar@9
|
6991
|
alpar@9
|
6992 # save warnings/boilerplate of simple test code
|
alpar@9
|
6993 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
6994 _LT_LINKER_BOILERPLATE
|
alpar@9
|
6995
|
alpar@9
|
6996 # Allow CC to be a program name with arguments.
|
alpar@9
|
6997 lt_save_CC="$CC"
|
alpar@9
|
6998 lt_save_GCC=$GCC
|
alpar@9
|
6999 GCC=yes
|
alpar@9
|
7000 CC=${GCJ-"gcj"}
|
alpar@9
|
7001 compiler=$CC
|
alpar@9
|
7002 _LT_TAGVAR(compiler, $1)=$CC
|
alpar@9
|
7003 _LT_TAGVAR(LD, $1)="$LD"
|
alpar@9
|
7004 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
7005
|
alpar@9
|
7006 # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
alpar@9
|
7007 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
alpar@9
|
7008
|
alpar@9
|
7009 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
alpar@9
|
7010 _LT_TAGVAR(reload_flag, $1)=$reload_flag
|
alpar@9
|
7011 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
alpar@9
|
7012
|
alpar@9
|
7013 ## CAVEAT EMPTOR:
|
alpar@9
|
7014 ## There is no encapsulation within the following macros, do not change
|
alpar@9
|
7015 ## the running order or otherwise move them around unless you know exactly
|
alpar@9
|
7016 ## what you are doing...
|
alpar@9
|
7017 if test -n "$compiler"; then
|
alpar@9
|
7018 _LT_COMPILER_NO_RTTI($1)
|
alpar@9
|
7019 _LT_COMPILER_PIC($1)
|
alpar@9
|
7020 _LT_COMPILER_C_O($1)
|
alpar@9
|
7021 _LT_COMPILER_FILE_LOCKS($1)
|
alpar@9
|
7022 _LT_LINKER_SHLIBS($1)
|
alpar@9
|
7023 _LT_LINKER_HARDCODE_LIBPATH($1)
|
alpar@9
|
7024
|
alpar@9
|
7025 _LT_CONFIG($1)
|
alpar@9
|
7026 fi
|
alpar@9
|
7027
|
alpar@9
|
7028 AC_LANG_RESTORE
|
alpar@9
|
7029
|
alpar@9
|
7030 GCC=$lt_save_GCC
|
alpar@9
|
7031 CC="$lt_save_CC"
|
alpar@9
|
7032 ])# _LT_LANG_GCJ_CONFIG
|
alpar@9
|
7033
|
alpar@9
|
7034
|
alpar@9
|
7035 # _LT_LANG_RC_CONFIG([TAG])
|
alpar@9
|
7036 # -------------------------
|
alpar@9
|
7037 # Ensure that the configuration variables for the Windows resource compiler
|
alpar@9
|
7038 # are suitably defined. These variables are subsequently used by _LT_CONFIG
|
alpar@9
|
7039 # to write the compiler configuration to `libtool'.
|
alpar@9
|
7040 m4_defun([_LT_LANG_RC_CONFIG],
|
alpar@9
|
7041 [AC_REQUIRE([LT_PROG_RC])dnl
|
alpar@9
|
7042 AC_LANG_SAVE
|
alpar@9
|
7043
|
alpar@9
|
7044 # Source file extension for RC test sources.
|
alpar@9
|
7045 ac_ext=rc
|
alpar@9
|
7046
|
alpar@9
|
7047 # Object file extension for compiled RC test sources.
|
alpar@9
|
7048 objext=o
|
alpar@9
|
7049 _LT_TAGVAR(objext, $1)=$objext
|
alpar@9
|
7050
|
alpar@9
|
7051 # Code to be used in simple compile tests
|
alpar@9
|
7052 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
alpar@9
|
7053
|
alpar@9
|
7054 # Code to be used in simple link tests
|
alpar@9
|
7055 lt_simple_link_test_code="$lt_simple_compile_test_code"
|
alpar@9
|
7056
|
alpar@9
|
7057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
alpar@9
|
7058 _LT_TAG_COMPILER
|
alpar@9
|
7059
|
alpar@9
|
7060 # save warnings/boilerplate of simple test code
|
alpar@9
|
7061 _LT_COMPILER_BOILERPLATE
|
alpar@9
|
7062 _LT_LINKER_BOILERPLATE
|
alpar@9
|
7063
|
alpar@9
|
7064 # Allow CC to be a program name with arguments.
|
alpar@9
|
7065 lt_save_CC="$CC"
|
alpar@9
|
7066 lt_save_GCC=$GCC
|
alpar@9
|
7067 GCC=
|
alpar@9
|
7068 CC=${RC-"windres"}
|
alpar@9
|
7069 compiler=$CC
|
alpar@9
|
7070 _LT_TAGVAR(compiler, $1)=$CC
|
alpar@9
|
7071 _LT_CC_BASENAME([$compiler])
|
alpar@9
|
7072 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
alpar@9
|
7073
|
alpar@9
|
7074 if test -n "$compiler"; then
|
alpar@9
|
7075 :
|
alpar@9
|
7076 _LT_CONFIG($1)
|
alpar@9
|
7077 fi
|
alpar@9
|
7078
|
alpar@9
|
7079 GCC=$lt_save_GCC
|
alpar@9
|
7080 AC_LANG_RESTORE
|
alpar@9
|
7081 CC="$lt_save_CC"
|
alpar@9
|
7082 ])# _LT_LANG_RC_CONFIG
|
alpar@9
|
7083
|
alpar@9
|
7084
|
alpar@9
|
7085 # LT_PROG_GCJ
|
alpar@9
|
7086 # -----------
|
alpar@9
|
7087 AC_DEFUN([LT_PROG_GCJ],
|
alpar@9
|
7088 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
|
alpar@9
|
7089 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
|
alpar@9
|
7090 [AC_CHECK_TOOL(GCJ, gcj,)
|
alpar@9
|
7091 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
alpar@9
|
7092 AC_SUBST(GCJFLAGS)])])[]dnl
|
alpar@9
|
7093 ])
|
alpar@9
|
7094
|
alpar@9
|
7095 # Old name:
|
alpar@9
|
7096 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
|
alpar@9
|
7097 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
7098 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
alpar@9
|
7099
|
alpar@9
|
7100
|
alpar@9
|
7101 # LT_PROG_RC
|
alpar@9
|
7102 # ----------
|
alpar@9
|
7103 AC_DEFUN([LT_PROG_RC],
|
alpar@9
|
7104 [AC_CHECK_TOOL(RC, windres,)
|
alpar@9
|
7105 ])
|
alpar@9
|
7106
|
alpar@9
|
7107 # Old name:
|
alpar@9
|
7108 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
|
alpar@9
|
7109 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
7110 dnl AC_DEFUN([LT_AC_PROG_RC], [])
|
alpar@9
|
7111
|
alpar@9
|
7112
|
alpar@9
|
7113 # _LT_DECL_EGREP
|
alpar@9
|
7114 # --------------
|
alpar@9
|
7115 # If we don't have a new enough Autoconf to choose the best grep
|
alpar@9
|
7116 # available, choose the one first in the user's PATH.
|
alpar@9
|
7117 m4_defun([_LT_DECL_EGREP],
|
alpar@9
|
7118 [AC_REQUIRE([AC_PROG_EGREP])dnl
|
alpar@9
|
7119 AC_REQUIRE([AC_PROG_FGREP])dnl
|
alpar@9
|
7120 test -z "$GREP" && GREP=grep
|
alpar@9
|
7121 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
|
alpar@9
|
7122 _LT_DECL([], [EGREP], [1], [An ERE matcher])
|
alpar@9
|
7123 _LT_DECL([], [FGREP], [1], [A literal string matcher])
|
alpar@9
|
7124 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
|
alpar@9
|
7125 AC_SUBST([GREP])
|
alpar@9
|
7126 ])
|
alpar@9
|
7127
|
alpar@9
|
7128
|
alpar@9
|
7129 # _LT_DECL_OBJDUMP
|
alpar@9
|
7130 # --------------
|
alpar@9
|
7131 # If we don't have a new enough Autoconf to choose the best objdump
|
alpar@9
|
7132 # available, choose the one first in the user's PATH.
|
alpar@9
|
7133 m4_defun([_LT_DECL_OBJDUMP],
|
alpar@9
|
7134 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
alpar@9
|
7135 test -z "$OBJDUMP" && OBJDUMP=objdump
|
alpar@9
|
7136 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
alpar@9
|
7137 AC_SUBST([OBJDUMP])
|
alpar@9
|
7138 ])
|
alpar@9
|
7139
|
alpar@9
|
7140 # _LT_DECL_DLLTOOL
|
alpar@9
|
7141 # --------------
|
alpar@9
|
7142 # If we don't have a new enough Autoconf to choose the best dlltool
|
alpar@9
|
7143 # available, choose the one first in the user's PATH.
|
alpar@9
|
7144 m4_defun([_LT_DECL_DLLTOOL],
|
alpar@9
|
7145 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
alpar@9
|
7146 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
alpar@9
|
7147 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
|
alpar@9
|
7148 AC_SUBST([DLLTOOL])
|
alpar@9
|
7149 ])
|
alpar@9
|
7150
|
alpar@9
|
7151 # _LT_DECL_SED
|
alpar@9
|
7152 # ------------
|
alpar@9
|
7153 # Check for a fully-functional sed program, that truncates
|
alpar@9
|
7154 # as few characters as possible. Prefer GNU sed if found.
|
alpar@9
|
7155 m4_defun([_LT_DECL_SED],
|
alpar@9
|
7156 [AC_PROG_SED
|
alpar@9
|
7157 test -z "$SED" && SED=sed
|
alpar@9
|
7158 Xsed="$SED -e 1s/^X//"
|
alpar@9
|
7159 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
|
alpar@9
|
7160 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
alpar@9
|
7161 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
|
alpar@9
|
7162 ])# _LT_DECL_SED
|
alpar@9
|
7163
|
alpar@9
|
7164 m4_ifndef([AC_PROG_SED], [
|
alpar@9
|
7165 ############################################################
|
alpar@9
|
7166 # NOTE: This macro has been submitted for inclusion into #
|
alpar@9
|
7167 # GNU Autoconf as AC_PROG_SED. When it is available in #
|
alpar@9
|
7168 # a released version of Autoconf we should remove this #
|
alpar@9
|
7169 # macro and use it instead. #
|
alpar@9
|
7170 ############################################################
|
alpar@9
|
7171
|
alpar@9
|
7172 m4_defun([AC_PROG_SED],
|
alpar@9
|
7173 [AC_MSG_CHECKING([for a sed that does not truncate output])
|
alpar@9
|
7174 AC_CACHE_VAL(lt_cv_path_SED,
|
alpar@9
|
7175 [# Loop through the user's path and test for sed and gsed.
|
alpar@9
|
7176 # Then use that list of sed's as ones to test for truncation.
|
alpar@9
|
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
alpar@9
|
7178 for as_dir in $PATH
|
alpar@9
|
7179 do
|
alpar@9
|
7180 IFS=$as_save_IFS
|
alpar@9
|
7181 test -z "$as_dir" && as_dir=.
|
alpar@9
|
7182 for lt_ac_prog in sed gsed; do
|
alpar@9
|
7183 for ac_exec_ext in '' $ac_executable_extensions; do
|
alpar@9
|
7184 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
alpar@9
|
7185 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
alpar@9
|
7186 fi
|
alpar@9
|
7187 done
|
alpar@9
|
7188 done
|
alpar@9
|
7189 done
|
alpar@9
|
7190 IFS=$as_save_IFS
|
alpar@9
|
7191 lt_ac_max=0
|
alpar@9
|
7192 lt_ac_count=0
|
alpar@9
|
7193 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
alpar@9
|
7194 # along with /bin/sed that truncates output.
|
alpar@9
|
7195 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
alpar@9
|
7196 test ! -f $lt_ac_sed && continue
|
alpar@9
|
7197 cat /dev/null > conftest.in
|
alpar@9
|
7198 lt_ac_count=0
|
alpar@9
|
7199 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
alpar@9
|
7200 # Check for GNU sed and select it if it is found.
|
alpar@9
|
7201 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
alpar@9
|
7202 lt_cv_path_SED=$lt_ac_sed
|
alpar@9
|
7203 break
|
alpar@9
|
7204 fi
|
alpar@9
|
7205 while true; do
|
alpar@9
|
7206 cat conftest.in conftest.in >conftest.tmp
|
alpar@9
|
7207 mv conftest.tmp conftest.in
|
alpar@9
|
7208 cp conftest.in conftest.nl
|
alpar@9
|
7209 echo >>conftest.nl
|
alpar@9
|
7210 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
alpar@9
|
7211 cmp -s conftest.out conftest.nl || break
|
alpar@9
|
7212 # 10000 chars as input seems more than enough
|
alpar@9
|
7213 test $lt_ac_count -gt 10 && break
|
alpar@9
|
7214 lt_ac_count=`expr $lt_ac_count + 1`
|
alpar@9
|
7215 if test $lt_ac_count -gt $lt_ac_max; then
|
alpar@9
|
7216 lt_ac_max=$lt_ac_count
|
alpar@9
|
7217 lt_cv_path_SED=$lt_ac_sed
|
alpar@9
|
7218 fi
|
alpar@9
|
7219 done
|
alpar@9
|
7220 done
|
alpar@9
|
7221 ])
|
alpar@9
|
7222 SED=$lt_cv_path_SED
|
alpar@9
|
7223 AC_SUBST([SED])
|
alpar@9
|
7224 AC_MSG_RESULT([$SED])
|
alpar@9
|
7225 ])#AC_PROG_SED
|
alpar@9
|
7226 ])#m4_ifndef
|
alpar@9
|
7227
|
alpar@9
|
7228 # Old name:
|
alpar@9
|
7229 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
|
alpar@9
|
7230 dnl aclocal-1.4 backwards compatibility:
|
alpar@9
|
7231 dnl AC_DEFUN([LT_AC_PROG_SED], [])
|
alpar@9
|
7232
|
alpar@9
|
7233
|
alpar@9
|
7234 # _LT_CHECK_SHELL_FEATURES
|
alpar@9
|
7235 # ------------------------
|
alpar@9
|
7236 # Find out whether the shell is Bourne or XSI compatible,
|
alpar@9
|
7237 # or has some other useful features.
|
alpar@9
|
7238 m4_defun([_LT_CHECK_SHELL_FEATURES],
|
alpar@9
|
7239 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
|
alpar@9
|
7240 # Try some XSI features
|
alpar@9
|
7241 xsi_shell=no
|
alpar@9
|
7242 ( _lt_dummy="a/b/c"
|
alpar@9
|
7243 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
alpar@9
|
7244 = c,a/b,, \
|
alpar@9
|
7245 && eval 'test $(( 1 + 1 )) -eq 2 \
|
alpar@9
|
7246 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
alpar@9
|
7247 && xsi_shell=yes
|
alpar@9
|
7248 AC_MSG_RESULT([$xsi_shell])
|
alpar@9
|
7249 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
|
alpar@9
|
7250
|
alpar@9
|
7251 AC_MSG_CHECKING([whether the shell understands "+="])
|
alpar@9
|
7252 lt_shell_append=no
|
alpar@9
|
7253 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
|
alpar@9
|
7254 >/dev/null 2>&1 \
|
alpar@9
|
7255 && lt_shell_append=yes
|
alpar@9
|
7256 AC_MSG_RESULT([$lt_shell_append])
|
alpar@9
|
7257 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
|
alpar@9
|
7258
|
alpar@9
|
7259 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
alpar@9
|
7260 lt_unset=unset
|
alpar@9
|
7261 else
|
alpar@9
|
7262 lt_unset=false
|
alpar@9
|
7263 fi
|
alpar@9
|
7264 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
|
alpar@9
|
7265
|
alpar@9
|
7266 # test EBCDIC or ASCII
|
alpar@9
|
7267 case `echo X|tr X '\101'` in
|
alpar@9
|
7268 A) # ASCII based system
|
alpar@9
|
7269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
alpar@9
|
7270 lt_SP2NL='tr \040 \012'
|
alpar@9
|
7271 lt_NL2SP='tr \015\012 \040\040'
|
alpar@9
|
7272 ;;
|
alpar@9
|
7273 *) # EBCDIC based system
|
alpar@9
|
7274 lt_SP2NL='tr \100 \n'
|
alpar@9
|
7275 lt_NL2SP='tr \r\n \100\100'
|
alpar@9
|
7276 ;;
|
alpar@9
|
7277 esac
|
alpar@9
|
7278 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
|
alpar@9
|
7279 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
alpar@9
|
7280 ])# _LT_CHECK_SHELL_FEATURES
|
alpar@9
|
7281
|
alpar@9
|
7282
|
alpar@9
|
7283 # _LT_PROG_XSI_SHELLFNS
|
alpar@9
|
7284 # ---------------------
|
alpar@9
|
7285 # Bourne and XSI compatible variants of some useful shell functions.
|
alpar@9
|
7286 m4_defun([_LT_PROG_XSI_SHELLFNS],
|
alpar@9
|
7287 [case $xsi_shell in
|
alpar@9
|
7288 yes)
|
alpar@9
|
7289 cat << \_LT_EOF >> "$cfgfile"
|
alpar@9
|
7290
|
alpar@9
|
7291 # func_dirname file append nondir_replacement
|
alpar@9
|
7292 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
alpar@9
|
7293 # otherwise set result to NONDIR_REPLACEMENT.
|
alpar@9
|
7294 func_dirname ()
|
alpar@9
|
7295 {
|
alpar@9
|
7296 case ${1} in
|
alpar@9
|
7297 */*) func_dirname_result="${1%/*}${2}" ;;
|
alpar@9
|
7298 * ) func_dirname_result="${3}" ;;
|
alpar@9
|
7299 esac
|
alpar@9
|
7300 }
|
alpar@9
|
7301
|
alpar@9
|
7302 # func_basename file
|
alpar@9
|
7303 func_basename ()
|
alpar@9
|
7304 {
|
alpar@9
|
7305 func_basename_result="${1##*/}"
|
alpar@9
|
7306 }
|
alpar@9
|
7307
|
alpar@9
|
7308 # func_dirname_and_basename file append nondir_replacement
|
alpar@9
|
7309 # perform func_basename and func_dirname in a single function
|
alpar@9
|
7310 # call:
|
alpar@9
|
7311 # dirname: Compute the dirname of FILE. If nonempty,
|
alpar@9
|
7312 # add APPEND to the result, otherwise set result
|
alpar@9
|
7313 # to NONDIR_REPLACEMENT.
|
alpar@9
|
7314 # value returned in "$func_dirname_result"
|
alpar@9
|
7315 # basename: Compute filename of FILE.
|
alpar@9
|
7316 # value retuned in "$func_basename_result"
|
alpar@9
|
7317 # Implementation must be kept synchronized with func_dirname
|
alpar@9
|
7318 # and func_basename. For efficiency, we do not delegate to
|
alpar@9
|
7319 # those functions but instead duplicate the functionality here.
|
alpar@9
|
7320 func_dirname_and_basename ()
|
alpar@9
|
7321 {
|
alpar@9
|
7322 case ${1} in
|
alpar@9
|
7323 */*) func_dirname_result="${1%/*}${2}" ;;
|
alpar@9
|
7324 * ) func_dirname_result="${3}" ;;
|
alpar@9
|
7325 esac
|
alpar@9
|
7326 func_basename_result="${1##*/}"
|
alpar@9
|
7327 }
|
alpar@9
|
7328
|
alpar@9
|
7329 # func_stripname prefix suffix name
|
alpar@9
|
7330 # strip PREFIX and SUFFIX off of NAME.
|
alpar@9
|
7331 # PREFIX and SUFFIX must not contain globbing or regex special
|
alpar@9
|
7332 # characters, hashes, percent signs, but SUFFIX may contain a leading
|
alpar@9
|
7333 # dot (in which case that matches only a dot).
|
alpar@9
|
7334 func_stripname ()
|
alpar@9
|
7335 {
|
alpar@9
|
7336 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
alpar@9
|
7337 # positional parameters, so assign one to ordinary parameter first.
|
alpar@9
|
7338 func_stripname_result=${3}
|
alpar@9
|
7339 func_stripname_result=${func_stripname_result#"${1}"}
|
alpar@9
|
7340 func_stripname_result=${func_stripname_result%"${2}"}
|
alpar@9
|
7341 }
|
alpar@9
|
7342
|
alpar@9
|
7343 # func_opt_split
|
alpar@9
|
7344 func_opt_split ()
|
alpar@9
|
7345 {
|
alpar@9
|
7346 func_opt_split_opt=${1%%=*}
|
alpar@9
|
7347 func_opt_split_arg=${1#*=}
|
alpar@9
|
7348 }
|
alpar@9
|
7349
|
alpar@9
|
7350 # func_lo2o object
|
alpar@9
|
7351 func_lo2o ()
|
alpar@9
|
7352 {
|
alpar@9
|
7353 case ${1} in
|
alpar@9
|
7354 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
alpar@9
|
7355 *) func_lo2o_result=${1} ;;
|
alpar@9
|
7356 esac
|
alpar@9
|
7357 }
|
alpar@9
|
7358
|
alpar@9
|
7359 # func_xform libobj-or-source
|
alpar@9
|
7360 func_xform ()
|
alpar@9
|
7361 {
|
alpar@9
|
7362 func_xform_result=${1%.*}.lo
|
alpar@9
|
7363 }
|
alpar@9
|
7364
|
alpar@9
|
7365 # func_arith arithmetic-term...
|
alpar@9
|
7366 func_arith ()
|
alpar@9
|
7367 {
|
alpar@9
|
7368 func_arith_result=$(( $[*] ))
|
alpar@9
|
7369 }
|
alpar@9
|
7370
|
alpar@9
|
7371 # func_len string
|
alpar@9
|
7372 # STRING may not start with a hyphen.
|
alpar@9
|
7373 func_len ()
|
alpar@9
|
7374 {
|
alpar@9
|
7375 func_len_result=${#1}
|
alpar@9
|
7376 }
|
alpar@9
|
7377
|
alpar@9
|
7378 _LT_EOF
|
alpar@9
|
7379 ;;
|
alpar@9
|
7380 *) # Bourne compatible functions.
|
alpar@9
|
7381 cat << \_LT_EOF >> "$cfgfile"
|
alpar@9
|
7382
|
alpar@9
|
7383 # func_dirname file append nondir_replacement
|
alpar@9
|
7384 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
alpar@9
|
7385 # otherwise set result to NONDIR_REPLACEMENT.
|
alpar@9
|
7386 func_dirname ()
|
alpar@9
|
7387 {
|
alpar@9
|
7388 # Extract subdirectory from the argument.
|
alpar@9
|
7389 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
alpar@9
|
7390 if test "X$func_dirname_result" = "X${1}"; then
|
alpar@9
|
7391 func_dirname_result="${3}"
|
alpar@9
|
7392 else
|
alpar@9
|
7393 func_dirname_result="$func_dirname_result${2}"
|
alpar@9
|
7394 fi
|
alpar@9
|
7395 }
|
alpar@9
|
7396
|
alpar@9
|
7397 # func_basename file
|
alpar@9
|
7398 func_basename ()
|
alpar@9
|
7399 {
|
alpar@9
|
7400 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
alpar@9
|
7401 }
|
alpar@9
|
7402
|
alpar@9
|
7403 dnl func_dirname_and_basename
|
alpar@9
|
7404 dnl A portable version of this function is already defined in general.m4sh
|
alpar@9
|
7405 dnl so there is no need for it here.
|
alpar@9
|
7406
|
alpar@9
|
7407 # func_stripname prefix suffix name
|
alpar@9
|
7408 # strip PREFIX and SUFFIX off of NAME.
|
alpar@9
|
7409 # PREFIX and SUFFIX must not contain globbing or regex special
|
alpar@9
|
7410 # characters, hashes, percent signs, but SUFFIX may contain a leading
|
alpar@9
|
7411 # dot (in which case that matches only a dot).
|
alpar@9
|
7412 # func_strip_suffix prefix name
|
alpar@9
|
7413 func_stripname ()
|
alpar@9
|
7414 {
|
alpar@9
|
7415 case ${2} in
|
alpar@9
|
7416 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
alpar@9
|
7417 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
alpar@9
|
7418 esac
|
alpar@9
|
7419 }
|
alpar@9
|
7420
|
alpar@9
|
7421 # sed scripts:
|
alpar@9
|
7422 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
|
alpar@9
|
7423 my_sed_long_arg='1s/^-[[^=]]*=//'
|
alpar@9
|
7424
|
alpar@9
|
7425 # func_opt_split
|
alpar@9
|
7426 func_opt_split ()
|
alpar@9
|
7427 {
|
alpar@9
|
7428 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
alpar@9
|
7429 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
alpar@9
|
7430 }
|
alpar@9
|
7431
|
alpar@9
|
7432 # func_lo2o object
|
alpar@9
|
7433 func_lo2o ()
|
alpar@9
|
7434 {
|
alpar@9
|
7435 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
alpar@9
|
7436 }
|
alpar@9
|
7437
|
alpar@9
|
7438 # func_xform libobj-or-source
|
alpar@9
|
7439 func_xform ()
|
alpar@9
|
7440 {
|
alpar@9
|
7441 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
|
alpar@9
|
7442 }
|
alpar@9
|
7443
|
alpar@9
|
7444 # func_arith arithmetic-term...
|
alpar@9
|
7445 func_arith ()
|
alpar@9
|
7446 {
|
alpar@9
|
7447 func_arith_result=`expr "$[@]"`
|
alpar@9
|
7448 }
|
alpar@9
|
7449
|
alpar@9
|
7450 # func_len string
|
alpar@9
|
7451 # STRING may not start with a hyphen.
|
alpar@9
|
7452 func_len ()
|
alpar@9
|
7453 {
|
alpar@9
|
7454 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
|
alpar@9
|
7455 }
|
alpar@9
|
7456
|
alpar@9
|
7457 _LT_EOF
|
alpar@9
|
7458 esac
|
alpar@9
|
7459
|
alpar@9
|
7460 case $lt_shell_append in
|
alpar@9
|
7461 yes)
|
alpar@9
|
7462 cat << \_LT_EOF >> "$cfgfile"
|
alpar@9
|
7463
|
alpar@9
|
7464 # func_append var value
|
alpar@9
|
7465 # Append VALUE to the end of shell variable VAR.
|
alpar@9
|
7466 func_append ()
|
alpar@9
|
7467 {
|
alpar@9
|
7468 eval "$[1]+=\$[2]"
|
alpar@9
|
7469 }
|
alpar@9
|
7470 _LT_EOF
|
alpar@9
|
7471 ;;
|
alpar@9
|
7472 *)
|
alpar@9
|
7473 cat << \_LT_EOF >> "$cfgfile"
|
alpar@9
|
7474
|
alpar@9
|
7475 # func_append var value
|
alpar@9
|
7476 # Append VALUE to the end of shell variable VAR.
|
alpar@9
|
7477 func_append ()
|
alpar@9
|
7478 {
|
alpar@9
|
7479 eval "$[1]=\$$[1]\$[2]"
|
alpar@9
|
7480 }
|
alpar@9
|
7481
|
alpar@9
|
7482 _LT_EOF
|
alpar@9
|
7483 ;;
|
alpar@9
|
7484 esac
|
alpar@9
|
7485 ])
|
alpar@9
|
7486
|
alpar@9
|
7487 # _LT_PATH_CONVERSION_FUNCTIONS
|
alpar@9
|
7488 # -----------------------------
|
alpar@9
|
7489 # Determine which path conversion functions should be
|
alpar@9
|
7490 # used by func_to_host_path (and, implicitly, by
|
alpar@9
|
7491 # func_to_host_pathlist). These are needed for certain
|
alpar@9
|
7492 # cross-compile configurations and "native" mingw (which
|
alpar@9
|
7493 # is actually an msys->mingw cross).
|
alpar@9
|
7494 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
|
alpar@9
|
7495 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
alpar@9
|
7496 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
alpar@9
|
7497 AC_MSG_CHECKING([how to convert $build paths to $host format])
|
alpar@9
|
7498 AC_CACHE_VAL(lt_cv_to_host_path_cmd,
|
alpar@9
|
7499 [case $host in
|
alpar@9
|
7500 *mingw* )
|
alpar@9
|
7501 case $build in
|
alpar@9
|
7502 *mingw* ) # actually msys
|
alpar@9
|
7503 lt_cv_to_host_path_cmd=func_msys_to_mingw_path_convert
|
alpar@9
|
7504 ;;
|
alpar@9
|
7505 *cygwin* )
|
alpar@9
|
7506 lt_cv_to_host_path_cmd=func_cygwin_to_mingw_path_convert
|
alpar@9
|
7507 ;;
|
alpar@9
|
7508 * ) # otherwise, assume *nix
|
alpar@9
|
7509 lt_cv_to_host_path_cmd=func_nix_to_mingw_path_convert
|
alpar@9
|
7510 ;;
|
alpar@9
|
7511 esac
|
alpar@9
|
7512 ;;
|
alpar@9
|
7513 *cygwin* )
|
alpar@9
|
7514 case $build in
|
alpar@9
|
7515 *mingw* ) # actually msys
|
alpar@9
|
7516 lt_cv_to_host_path_cmd=func_msys_to_cygwin_path_convert
|
alpar@9
|
7517 ;;
|
alpar@9
|
7518 *cygwin* )
|
alpar@9
|
7519 lt_cv_to_host_path_cmd=func_noop_path_convert
|
alpar@9
|
7520 ;;
|
alpar@9
|
7521 * ) # otherwise, assume *nix
|
alpar@9
|
7522 lt_cv_to_host_path_cmd=func_nix_to_cygwin_path_convert
|
alpar@9
|
7523 ;;
|
alpar@9
|
7524 esac
|
alpar@9
|
7525 ;;
|
alpar@9
|
7526 * ) # unhandled hosts (and "normal" native builds)
|
alpar@9
|
7527 lt_cv_to_host_path_cmd=func_noop_path_convert
|
alpar@9
|
7528 ;;
|
alpar@9
|
7529 esac
|
alpar@9
|
7530 ])
|
alpar@9
|
7531 to_host_path_cmd=$lt_cv_to_host_path_cmd
|
alpar@9
|
7532 AC_MSG_RESULT([$lt_cv_to_host_path_cmd])
|
alpar@9
|
7533 _LT_DECL([to_host_path_cmd], [lt_cv_to_host_path_cmd],
|
alpar@9
|
7534 [0], [convert $build paths to $host format])dnl
|
alpar@9
|
7535 AC_SUBST([to_host_path_cmd])dnl
|
alpar@9
|
7536 ])# _LT_PATH_CONVERSION_FUNCTIONS
|
alpar@9
|
7537
|