|
0 |
Index: curl/m4/ltoptions.m4
|
|
1 |
===================================================================
|
|
2 |
--- curl.orig/m4/ltoptions.m4 2010-02-09 13:55:18.000000000 +0100
|
|
3 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
4 |
@@ -1,368 +0,0 @@
|
|
5 |
-# Helper functions for option handling. -*- Autoconf -*-
|
|
6 |
-#
|
|
7 |
-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
|
8 |
-# Written by Gary V. Vaughan, 2004
|
|
9 |
-#
|
|
10 |
-# This file is free software; the Free Software Foundation gives
|
|
11 |
-# unlimited permission to copy and/or distribute it, with or without
|
|
12 |
-# modifications, as long as this notice is preserved.
|
|
13 |
-
|
|
14 |
-# serial 6 ltoptions.m4
|
|
15 |
-
|
|
16 |
-# This is to help aclocal find these macros, as it can't see m4_define.
|
|
17 |
-AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
|
18 |
-
|
|
19 |
-
|
|
20 |
-# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
|
21 |
-# ------------------------------------------
|
|
22 |
-m4_define([_LT_MANGLE_OPTION],
|
|
23 |
-[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
|
24 |
-
|
|
25 |
-
|
|
26 |
-# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
|
27 |
-# ---------------------------------------
|
|
28 |
-# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
|
29 |
-# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
|
30 |
-# saved as a flag.
|
|
31 |
-m4_define([_LT_SET_OPTION],
|
|
32 |
-[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
|
33 |
-m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
|
34 |
- _LT_MANGLE_DEFUN([$1], [$2]),
|
|
35 |
- [m4_warning([Unknown $1 option `$2'])])[]dnl
|
|
36 |
-])
|
|
37 |
-
|
|
38 |
-
|
|
39 |
-# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
|
40 |
-# ------------------------------------------------------------
|
|
41 |
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
42 |
-m4_define([_LT_IF_OPTION],
|
|
43 |
-[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
|
44 |
-
|
|
45 |
-
|
|
46 |
-# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
|
47 |
-# -------------------------------------------------------
|
|
48 |
-# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
|
49 |
-# are set.
|
|
50 |
-m4_define([_LT_UNLESS_OPTIONS],
|
|
51 |
-[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
52 |
- [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
|
53 |
- [m4_define([$0_found])])])[]dnl
|
|
54 |
-m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
|
55 |
-])[]dnl
|
|
56 |
-])
|
|
57 |
-
|
|
58 |
-
|
|
59 |
-# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
|
60 |
-# ----------------------------------------
|
|
61 |
-# OPTION-LIST is a space-separated list of Libtool options associated
|
|
62 |
-# with MACRO-NAME. If any OPTION has a matching handler declared with
|
|
63 |
-# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
|
64 |
-# the unknown option and exit.
|
|
65 |
-m4_defun([_LT_SET_OPTIONS],
|
|
66 |
-[# Set options
|
|
67 |
-m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
68 |
- [_LT_SET_OPTION([$1], _LT_Option)])
|
|
69 |
-
|
|
70 |
-m4_if([$1],[LT_INIT],[
|
|
71 |
- dnl
|
|
72 |
- dnl Simply set some default values (i.e off) if boolean options were not
|
|
73 |
- dnl specified:
|
|
74 |
- _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
|
75 |
- ])
|
|
76 |
- _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
|
77 |
- ])
|
|
78 |
- dnl
|
|
79 |
- dnl If no reference was made to various pairs of opposing options, then
|
|
80 |
- dnl we run the default mode handler for the pair. For example, if neither
|
|
81 |
- dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
|
82 |
- dnl archives by default:
|
|
83 |
- _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
|
84 |
- _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
|
85 |
- _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
|
86 |
- _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
|
87 |
- [_LT_ENABLE_FAST_INSTALL])
|
|
88 |
- ])
|
|
89 |
-])# _LT_SET_OPTIONS
|
|
90 |
-
|
|
91 |
-
|
|
92 |
-## --------------------------------- ##
|
|
93 |
-## Macros to handle LT_INIT options. ##
|
|
94 |
-## --------------------------------- ##
|
|
95 |
-
|
|
96 |
-# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
|
97 |
-# -----------------------------------------
|
|
98 |
-m4_define([_LT_MANGLE_DEFUN],
|
|
99 |
-[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
|
100 |
-
|
|
101 |
-
|
|
102 |
-# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
|
103 |
-# -----------------------------------------------
|
|
104 |
-m4_define([LT_OPTION_DEFINE],
|
|
105 |
-[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
|
106 |
-])# LT_OPTION_DEFINE
|
|
107 |
-
|
|
108 |
-
|
|
109 |
-# dlopen
|
|
110 |
-# ------
|
|
111 |
-LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
|
112 |
-])
|
|
113 |
-
|
|
114 |
-AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
|
115 |
-[_LT_SET_OPTION([LT_INIT], [dlopen])
|
|
116 |
-AC_DIAGNOSE([obsolete],
|
|
117 |
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
118 |
-put the `dlopen' option into LT_INIT's first parameter.])
|
|
119 |
-])
|
|
120 |
-
|
|
121 |
-dnl aclocal-1.4 backwards compatibility:
|
|
122 |
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
|
123 |
-
|
|
124 |
-
|
|
125 |
-# win32-dll
|
|
126 |
-# ---------
|
|
127 |
-# Declare package support for building win32 dll's.
|
|
128 |
-LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
|
129 |
-[enable_win32_dll=yes
|
|
130 |
-
|
|
131 |
-case $host in
|
|
132 |
-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
|
|
133 |
- AC_CHECK_TOOL(AS, as, false)
|
|
134 |
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
135 |
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
136 |
- ;;
|
|
137 |
-esac
|
|
138 |
-
|
|
139 |
-test -z "$AS" && AS=as
|
|
140 |
-_LT_DECL([], [AS], [0], [Assembler program])dnl
|
|
141 |
-
|
|
142 |
-test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
143 |
-_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
|
|
144 |
-
|
|
145 |
-test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
146 |
-_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
|
|
147 |
-])# win32-dll
|
|
148 |
-
|
|
149 |
-AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
|
150 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
151 |
-_LT_SET_OPTION([LT_INIT], [win32-dll])
|
|
152 |
-AC_DIAGNOSE([obsolete],
|
|
153 |
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
154 |
-put the `win32-dll' option into LT_INIT's first parameter.])
|
|
155 |
-])
|
|
156 |
-
|
|
157 |
-dnl aclocal-1.4 backwards compatibility:
|
|
158 |
-dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
|
159 |
-
|
|
160 |
-
|
|
161 |
-# _LT_ENABLE_SHARED([DEFAULT])
|
|
162 |
-# ----------------------------
|
|
163 |
-# implement the --enable-shared flag, and supports the `shared' and
|
|
164 |
-# `disable-shared' LT_INIT options.
|
|
165 |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
166 |
-m4_define([_LT_ENABLE_SHARED],
|
|
167 |
-[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
168 |
-AC_ARG_ENABLE([shared],
|
|
169 |
- [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
|
170 |
- [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
|
171 |
- [p=${PACKAGE-default}
|
|
172 |
- case $enableval in
|
|
173 |
- yes) enable_shared=yes ;;
|
|
174 |
- no) enable_shared=no ;;
|
|
175 |
- *)
|
|
176 |
- enable_shared=no
|
|
177 |
- # Look at the argument we got. We use all the common list separators.
|
|
178 |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
179 |
- for pkg in $enableval; do
|
|
180 |
- IFS="$lt_save_ifs"
|
|
181 |
- if test "X$pkg" = "X$p"; then
|
|
182 |
- enable_shared=yes
|
|
183 |
- fi
|
|
184 |
- done
|
|
185 |
- IFS="$lt_save_ifs"
|
|
186 |
- ;;
|
|
187 |
- esac],
|
|
188 |
- [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
|
189 |
-
|
|
190 |
- _LT_DECL([build_libtool_libs], [enable_shared], [0],
|
|
191 |
- [Whether or not to build shared libraries])
|
|
192 |
-])# _LT_ENABLE_SHARED
|
|
193 |
-
|
|
194 |
-LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
|
195 |
-LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
|
196 |
-
|
|
197 |
-# Old names:
|
|
198 |
-AC_DEFUN([AC_ENABLE_SHARED],
|
|
199 |
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
|
200 |
-])
|
|
201 |
-
|
|
202 |
-AC_DEFUN([AC_DISABLE_SHARED],
|
|
203 |
-[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
|
204 |
-])
|
|
205 |
-
|
|
206 |
-AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
|
207 |
-AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
|
208 |
-
|
|
209 |
-dnl aclocal-1.4 backwards compatibility:
|
|
210 |
-dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
|
211 |
-dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
|
212 |
-
|
|
213 |
-
|
|
214 |
-
|
|
215 |
-# _LT_ENABLE_STATIC([DEFAULT])
|
|
216 |
-# ----------------------------
|
|
217 |
-# implement the --enable-static flag, and support the `static' and
|
|
218 |
-# `disable-static' LT_INIT options.
|
|
219 |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
220 |
-m4_define([_LT_ENABLE_STATIC],
|
|
221 |
-[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
222 |
-AC_ARG_ENABLE([static],
|
|
223 |
- [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
|
224 |
- [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
|
225 |
- [p=${PACKAGE-default}
|
|
226 |
- case $enableval in
|
|
227 |
- yes) enable_static=yes ;;
|
|
228 |
- no) enable_static=no ;;
|
|
229 |
- *)
|
|
230 |
- enable_static=no
|
|
231 |
- # Look at the argument we got. We use all the common list separators.
|
|
232 |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
233 |
- for pkg in $enableval; do
|
|
234 |
- IFS="$lt_save_ifs"
|
|
235 |
- if test "X$pkg" = "X$p"; then
|
|
236 |
- enable_static=yes
|
|
237 |
- fi
|
|
238 |
- done
|
|
239 |
- IFS="$lt_save_ifs"
|
|
240 |
- ;;
|
|
241 |
- esac],
|
|
242 |
- [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
|
243 |
-
|
|
244 |
- _LT_DECL([build_old_libs], [enable_static], [0],
|
|
245 |
- [Whether or not to build static libraries])
|
|
246 |
-])# _LT_ENABLE_STATIC
|
|
247 |
-
|
|
248 |
-LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
|
249 |
-LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
|
250 |
-
|
|
251 |
-# Old names:
|
|
252 |
-AC_DEFUN([AC_ENABLE_STATIC],
|
|
253 |
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
|
254 |
-])
|
|
255 |
-
|
|
256 |
-AC_DEFUN([AC_DISABLE_STATIC],
|
|
257 |
-[_LT_SET_OPTION([LT_INIT], [disable-static])
|
|
258 |
-])
|
|
259 |
-
|
|
260 |
-AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
|
261 |
-AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
|
262 |
-
|
|
263 |
-dnl aclocal-1.4 backwards compatibility:
|
|
264 |
-dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
|
265 |
-dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
|
266 |
-
|
|
267 |
-
|
|
268 |
-
|
|
269 |
-# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
|
270 |
-# ----------------------------------
|
|
271 |
-# implement the --enable-fast-install flag, and support the `fast-install'
|
|
272 |
-# and `disable-fast-install' LT_INIT options.
|
|
273 |
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
274 |
-m4_define([_LT_ENABLE_FAST_INSTALL],
|
|
275 |
-[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
276 |
-AC_ARG_ENABLE([fast-install],
|
|
277 |
- [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
|
278 |
- [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
|
279 |
- [p=${PACKAGE-default}
|
|
280 |
- case $enableval in
|
|
281 |
- yes) enable_fast_install=yes ;;
|
|
282 |
- no) enable_fast_install=no ;;
|
|
283 |
- *)
|
|
284 |
- enable_fast_install=no
|
|
285 |
- # Look at the argument we got. We use all the common list separators.
|
|
286 |
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
287 |
- for pkg in $enableval; do
|
|
288 |
- IFS="$lt_save_ifs"
|
|
289 |
- if test "X$pkg" = "X$p"; then
|
|
290 |
- enable_fast_install=yes
|
|
291 |
- fi
|
|
292 |
- done
|
|
293 |
- IFS="$lt_save_ifs"
|
|
294 |
- ;;
|
|
295 |
- esac],
|
|
296 |
- [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
|
297 |
-
|
|
298 |
-_LT_DECL([fast_install], [enable_fast_install], [0],
|
|
299 |
- [Whether or not to optimize for fast installation])dnl
|
|
300 |
-])# _LT_ENABLE_FAST_INSTALL
|
|
301 |
-
|
|
302 |
-LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
|
303 |
-LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
|
304 |
-
|
|
305 |
-# Old names:
|
|
306 |
-AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
|
307 |
-[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
|
308 |
-AC_DIAGNOSE([obsolete],
|
|
309 |
-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
310 |
-the `fast-install' option into LT_INIT's first parameter.])
|
|
311 |
-])
|
|
312 |
-
|
|
313 |
-AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
|
314 |
-[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
|
315 |
-AC_DIAGNOSE([obsolete],
|
|
316 |
-[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
317 |
-the `disable-fast-install' option into LT_INIT's first parameter.])
|
|
318 |
-])
|
|
319 |
-
|
|
320 |
-dnl aclocal-1.4 backwards compatibility:
|
|
321 |
-dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
|
322 |
-dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
|
323 |
-
|
|
324 |
-
|
|
325 |
-# _LT_WITH_PIC([MODE])
|
|
326 |
-# --------------------
|
|
327 |
-# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
|
328 |
-# LT_INIT options.
|
|
329 |
-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|
330 |
-m4_define([_LT_WITH_PIC],
|
|
331 |
-[AC_ARG_WITH([pic],
|
|
332 |
- [AS_HELP_STRING([--with-pic],
|
|
333 |
- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|
334 |
- [pic_mode="$withval"],
|
|
335 |
- [pic_mode=default])
|
|
336 |
-
|
|
337 |
-test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
|
338 |
-
|
|
339 |
-_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
|
340 |
-])# _LT_WITH_PIC
|
|
341 |
-
|
|
342 |
-LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
|
343 |
-LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
|
344 |
-
|
|
345 |
-# Old name:
|
|
346 |
-AU_DEFUN([AC_LIBTOOL_PICMODE],
|
|
347 |
-[_LT_SET_OPTION([LT_INIT], [pic-only])
|
|
348 |
-AC_DIAGNOSE([obsolete],
|
|
349 |
-[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
350 |
-put the `pic-only' option into LT_INIT's first parameter.])
|
|
351 |
-])
|
|
352 |
-
|
|
353 |
-dnl aclocal-1.4 backwards compatibility:
|
|
354 |
-dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
|
355 |
-
|
|
356 |
-## ----------------- ##
|
|
357 |
-## LTDL_INIT Options ##
|
|
358 |
-## ----------------- ##
|
|
359 |
-
|
|
360 |
-m4_define([_LTDL_MODE], [])
|
|
361 |
-LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
|
362 |
- [m4_define([_LTDL_MODE], [nonrecursive])])
|
|
363 |
-LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
|
364 |
- [m4_define([_LTDL_MODE], [recursive])])
|
|
365 |
-LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
|
366 |
- [m4_define([_LTDL_MODE], [subproject])])
|
|
367 |
-
|
|
368 |
-m4_define([_LTDL_TYPE], [])
|
|
369 |
-LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
|
370 |
- [m4_define([_LTDL_TYPE], [installable])])
|
|
371 |
-LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
|
372 |
- [m4_define([_LTDL_TYPE], [convenience])])
|
|
373 |
Index: curl/m4/ltsugar.m4
|
|
374 |
===================================================================
|
|
375 |
--- curl.orig/m4/ltsugar.m4 2010-02-09 13:55:18.000000000 +0100
|
|
376 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
377 |
@@ -1,123 +0,0 @@
|
|
378 |
-# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
|
379 |
-#
|
|
380 |
-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
|
381 |
-# Written by Gary V. Vaughan, 2004
|
|
382 |
-#
|
|
383 |
-# This file is free software; the Free Software Foundation gives
|
|
384 |
-# unlimited permission to copy and/or distribute it, with or without
|
|
385 |
-# modifications, as long as this notice is preserved.
|
|
386 |
-
|
|
387 |
-# serial 6 ltsugar.m4
|
|
388 |
-
|
|
389 |
-# This is to help aclocal find these macros, as it can't see m4_define.
|
|
390 |
-AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
|
391 |
-
|
|
392 |
-
|
|
393 |
-# lt_join(SEP, ARG1, [ARG2...])
|
|
394 |
-# -----------------------------
|
|
395 |
-# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
|
396 |
-# associated separator.
|
|
397 |
-# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
|
398 |
-# versions in m4sugar had bugs.
|
|
399 |
-m4_define([lt_join],
|
|
400 |
-[m4_if([$#], [1], [],
|
|
401 |
- [$#], [2], [[$2]],
|
|
402 |
- [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
|
403 |
-m4_define([_lt_join],
|
|
404 |
-[m4_if([$#$2], [2], [],
|
|
405 |
- [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
|
406 |
-
|
|
407 |
-
|
|
408 |
-# lt_car(LIST)
|
|
409 |
-# lt_cdr(LIST)
|
|
410 |
-# ------------
|
|
411 |
-# Manipulate m4 lists.
|
|
412 |
-# These macros are necessary as long as will still need to support
|
|
413 |
-# Autoconf-2.59 which quotes differently.
|
|
414 |
-m4_define([lt_car], [[$1]])
|
|
415 |
-m4_define([lt_cdr],
|
|
416 |
-[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
|
417 |
- [$#], 1, [],
|
|
418 |
- [m4_dquote(m4_shift($@))])])
|
|
419 |
-m4_define([lt_unquote], $1)
|
|
420 |
-
|
|
421 |
-
|
|
422 |
-# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
|
423 |
-# ------------------------------------------
|
|
424 |
-# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
|
425 |
-# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
|
426 |
-# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
|
427 |
-# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
|
428 |
-# than defined and empty).
|
|
429 |
-#
|
|
430 |
-# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
|
431 |
-# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
|
432 |
-m4_define([lt_append],
|
|
433 |
-[m4_define([$1],
|
|
434 |
- m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
|
435 |
-
|
|
436 |
-
|
|
437 |
-
|
|
438 |
-# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
|
439 |
-# ----------------------------------------------------------
|
|
440 |
-# Produce a SEP delimited list of all paired combinations of elements of
|
|
441 |
-# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
|
442 |
-# has the form PREFIXmINFIXSUFFIXn.
|
|
443 |
-# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
|
444 |
-m4_define([lt_combine],
|
|
445 |
-[m4_if(m4_eval([$# > 3]), [1],
|
|
446 |
- [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
|
447 |
-[[m4_foreach([_Lt_prefix], [$2],
|
|
448 |
- [m4_foreach([_Lt_suffix],
|
|
449 |
- ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
|
450 |
- [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
|
451 |
-
|
|
452 |
-
|
|
453 |
-# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
|
454 |
-# -----------------------------------------------------------------------
|
|
455 |
-# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
|
456 |
-# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
|
457 |
-m4_define([lt_if_append_uniq],
|
|
458 |
-[m4_ifdef([$1],
|
|
459 |
- [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
|
460 |
- [lt_append([$1], [$2], [$3])$4],
|
|
461 |
- [$5])],
|
|
462 |
- [lt_append([$1], [$2], [$3])$4])])
|
|
463 |
-
|
|
464 |
-
|
|
465 |
-# lt_dict_add(DICT, KEY, VALUE)
|
|
466 |
-# -----------------------------
|
|
467 |
-m4_define([lt_dict_add],
|
|
468 |
-[m4_define([$1($2)], [$3])])
|
|
469 |
-
|
|
470 |
-
|
|
471 |
-# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
|
472 |
-# --------------------------------------------
|
|
473 |
-m4_define([lt_dict_add_subkey],
|
|
474 |
-[m4_define([$1($2:$3)], [$4])])
|
|
475 |
-
|
|
476 |
-
|
|
477 |
-# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
|
478 |
-# ----------------------------------
|
|
479 |
-m4_define([lt_dict_fetch],
|
|
480 |
-[m4_ifval([$3],
|
|
481 |
- m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
|
482 |
- m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
|
483 |
-
|
|
484 |
-
|
|
485 |
-# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
|
486 |
-# -----------------------------------------------------------------
|
|
487 |
-m4_define([lt_if_dict_fetch],
|
|
488 |
-[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
|
489 |
- [$5],
|
|
490 |
- [$6])])
|
|
491 |
-
|
|
492 |
-
|
|
493 |
-# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
|
494 |
-# --------------------------------------------------------------
|
|
495 |
-m4_define([lt_dict_filter],
|
|
496 |
-[m4_if([$5], [], [],
|
|
497 |
- [lt_join(m4_quote(m4_default([$4], [[, ]])),
|
|
498 |
- lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
|
499 |
- [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
|
500 |
-])
|
|
501 |
Index: curl/m4/lt~obsolete.m4
|
|
502 |
===================================================================
|
|
503 |
--- curl.orig/m4/lt~obsolete.m4 2010-02-09 13:55:18.000000000 +0100
|
|
504 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
505 |
@@ -1,92 +0,0 @@
|
|
506 |
-# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
|
507 |
-#
|
|
508 |
-# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
|
|
509 |
-# Written by Scott James Remnant, 2004.
|
|
510 |
-#
|
|
511 |
-# This file is free software; the Free Software Foundation gives
|
|
512 |
-# unlimited permission to copy and/or distribute it, with or without
|
|
513 |
-# modifications, as long as this notice is preserved.
|
|
514 |
-
|
|
515 |
-# serial 4 lt~obsolete.m4
|
|
516 |
-
|
|
517 |
-# These exist entirely to fool aclocal when bootstrapping libtool.
|
|
518 |
-#
|
|
519 |
-# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
|
520 |
-# which have later been changed to m4_define as they aren't part of the
|
|
521 |
-# exported API, or moved to Autoconf or Automake where they belong.
|
|
522 |
-#
|
|
523 |
-# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
|
524 |
-# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
|
525 |
-# using a macro with the same name in our local m4/libtool.m4 it'll
|
|
526 |
-# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
|
527 |
-# and doesn't know about Autoconf macros at all.)
|
|
528 |
-#
|
|
529 |
-# So we provide this file, which has a silly filename so it's always
|
|
530 |
-# included after everything else. This provides aclocal with the
|
|
531 |
-# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
|
532 |
-# because those macros already exist, or will be overwritten later.
|
|
533 |
-# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
|
534 |
-#
|
|
535 |
-# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
|
536 |
-# Yes, that means every name once taken will need to remain here until
|
|
537 |
-# we give up compatibility with versions before 1.7, at which point
|
|
538 |
-# we need to keep only those names which we still refer to.
|
|
539 |
-
|
|
540 |
-# This is to help aclocal find these macros, as it can't see m4_define.
|
|
541 |
-AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
|
542 |
-
|
|
543 |
-m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
|
544 |
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
|
545 |
-m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
|
546 |
-m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
|
547 |
-m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
|
548 |
-m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
|
549 |
-m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
|
550 |
-m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
|
551 |
-m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
|
552 |
-m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
|
553 |
-m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
|
554 |
-m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
|
555 |
-m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
|
556 |
-m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
|
557 |
-m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
|
558 |
-m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
|
559 |
-m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
|
560 |
-m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
|
561 |
-m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
|
562 |
-m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
|
563 |
-m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
|
564 |
-m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
|
565 |
-m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
|
566 |
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
|
567 |
-m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
|
568 |
-m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
|
569 |
-m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
|
570 |
-m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
|
571 |
-m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
|
572 |
-m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
|
573 |
-m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
|
574 |
-m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
|
575 |
-m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
|
576 |
-m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
|
577 |
-m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
|
578 |
-m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
|
579 |
-m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
|
580 |
-m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
|
581 |
-m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
|
582 |
-m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
|
583 |
-m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
|
584 |
-m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
|
585 |
-m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
|
|
586 |
-m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
|
587 |
-m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
|
588 |
-m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
|
589 |
-m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
|
590 |
-m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
|
591 |
-m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
|
592 |
-m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
|
593 |
-m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
|
594 |
-m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
|
595 |
-m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
|
596 |
-m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
|
597 |
-m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
|
598 |
Index: curl/m4/libtool.m4
|
|
599 |
===================================================================
|
|
600 |
--- curl.orig/m4/libtool.m4 2010-02-09 13:55:18.000000000 +0100
|
|
601 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
602 |
@@ -1,7377 +0,0 @@
|
|
603 |
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
604 |
-#
|
|
605 |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
606 |
-# 2006, 2007, 2008 Free Software Foundation, Inc.
|
|
607 |
-# Written by Gordon Matzigkeit, 1996
|
|
608 |
-#
|
|
609 |
-# This file is free software; the Free Software Foundation gives
|
|
610 |
-# unlimited permission to copy and/or distribute it, with or without
|
|
611 |
-# modifications, as long as this notice is preserved.
|
|
612 |
-
|
|
613 |
-m4_define([_LT_COPYING], [dnl
|
|
614 |
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
615 |
-# 2006, 2007, 2008 Free Software Foundation, Inc.
|
|
616 |
-# Written by Gordon Matzigkeit, 1996
|
|
617 |
-#
|
|
618 |
-# This file is part of GNU Libtool.
|
|
619 |
-#
|
|
620 |
-# GNU Libtool is free software; you can redistribute it and/or
|
|
621 |
-# modify it under the terms of the GNU General Public License as
|
|
622 |
-# published by the Free Software Foundation; either version 2 of
|
|
623 |
-# the License, or (at your option) any later version.
|
|
624 |
-#
|
|
625 |
-# As a special exception to the GNU General Public License,
|
|
626 |
-# if you distribute this file as part of a program or library that
|
|
627 |
-# is built using GNU Libtool, you may include this file under the
|
|
628 |
-# same distribution terms that you use for the rest of that program.
|
|
629 |
-#
|
|
630 |
-# GNU Libtool is distributed in the hope that it will be useful,
|
|
631 |
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
632 |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
633 |
-# GNU General Public License for more details.
|
|
634 |
-#
|
|
635 |
-# You should have received a copy of the GNU General Public License
|
|
636 |
-# along with GNU Libtool; see the file COPYING. If not, a copy
|
|
637 |
-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
|
638 |
-# obtained by writing to the Free Software Foundation, Inc.,
|
|
639 |
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
640 |
-])
|
|
641 |
-
|
|
642 |
-# serial 56 LT_INIT
|
|
643 |
-
|
|
644 |
-
|
|
645 |
-# LT_PREREQ(VERSION)
|
|
646 |
-# ------------------
|
|
647 |
-# Complain and exit if this libtool version is less that VERSION.
|
|
648 |
-m4_defun([LT_PREREQ],
|
|
649 |
-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
|
|
650 |
- [m4_default([$3],
|
|
651 |
- [m4_fatal([Libtool version $1 or higher is required],
|
|
652 |
- 63)])],
|
|
653 |
- [$2])])
|
|
654 |
-
|
|
655 |
-
|
|
656 |
-# _LT_CHECK_BUILDDIR
|
|
657 |
-# ------------------
|
|
658 |
-# Complain if the absolute build directory name contains unusual characters
|
|
659 |
-m4_defun([_LT_CHECK_BUILDDIR],
|
|
660 |
-[case `pwd` in
|
|
661 |
- *\ * | *\ *)
|
|
662 |
- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
|
|
663 |
-esac
|
|
664 |
-])
|
|
665 |
-
|
|
666 |
-
|
|
667 |
-# LT_INIT([OPTIONS])
|
|
668 |
-# ------------------
|
|
669 |
-AC_DEFUN([LT_INIT],
|
|
670 |
-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
|
|
671 |
-AC_BEFORE([$0], [LT_LANG])dnl
|
|
672 |
-AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
673 |
-AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
674 |
-m4_require([_LT_CHECK_BUILDDIR])dnl
|
|
675 |
-
|
|
676 |
-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
|
|
677 |
-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
|
|
678 |
-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
|
|
679 |
-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
|
|
680 |
-dnl unless we require an AC_DEFUNed macro:
|
|
681 |
-AC_REQUIRE([LTOPTIONS_VERSION])dnl
|
|
682 |
-AC_REQUIRE([LTSUGAR_VERSION])dnl
|
|
683 |
-AC_REQUIRE([LTVERSION_VERSION])dnl
|
|
684 |
-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
|
|
685 |
-m4_require([_LT_PROG_LTMAIN])dnl
|
|
686 |
-
|
|
687 |
-dnl Parse OPTIONS
|
|
688 |
-_LT_SET_OPTIONS([$0], [$1])
|
|
689 |
-
|
|
690 |
-# This can be used to rebuild libtool when needed
|
|
691 |
-LIBTOOL_DEPS="$ltmain"
|
|
692 |
-
|
|
693 |
-# Always use our own libtool.
|
|
694 |
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
695 |
-AC_SUBST(LIBTOOL)dnl
|
|
696 |
-
|
|
697 |
-_LT_SETUP
|
|
698 |
-
|
|
699 |
-# Only expand once:
|
|
700 |
-m4_define([LT_INIT])
|
|
701 |
-])# LT_INIT
|
|
702 |
-
|
|
703 |
-# Old names:
|
|
704 |
-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
|
|
705 |
-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
|
|
706 |
-dnl aclocal-1.4 backwards compatibility:
|
|
707 |
-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
|
|
708 |
-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
|
|
709 |
-
|
|
710 |
-
|
|
711 |
-# _LT_CC_BASENAME(CC)
|
|
712 |
-# -------------------
|
|
713 |
-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
|
714 |
-m4_defun([_LT_CC_BASENAME],
|
|
715 |
-[for cc_temp in $1""; do
|
|
716 |
- case $cc_temp in
|
|
717 |
- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
|
718 |
- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
|
719 |
- \-*) ;;
|
|
720 |
- *) break;;
|
|
721 |
- esac
|
|
722 |
-done
|
|
723 |
-cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
724 |
-])
|
|
725 |
-
|
|
726 |
-
|
|
727 |
-# _LT_FILEUTILS_DEFAULTS
|
|
728 |
-# ----------------------
|
|
729 |
-# It is okay to use these file commands and assume they have been set
|
|
730 |
-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
|
|
731 |
-m4_defun([_LT_FILEUTILS_DEFAULTS],
|
|
732 |
-[: ${CP="cp -f"}
|
|
733 |
-: ${MV="mv -f"}
|
|
734 |
-: ${RM="rm -f"}
|
|
735 |
-])# _LT_FILEUTILS_DEFAULTS
|
|
736 |
-
|
|
737 |
-
|
|
738 |
-# _LT_SETUP
|
|
739 |
-# ---------
|
|
740 |
-m4_defun([_LT_SETUP],
|
|
741 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
742 |
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
743 |
-_LT_DECL([], [host_alias], [0], [The host system])dnl
|
|
744 |
-_LT_DECL([], [host], [0])dnl
|
|
745 |
-_LT_DECL([], [host_os], [0])dnl
|
|
746 |
-dnl
|
|
747 |
-_LT_DECL([], [build_alias], [0], [The build system])dnl
|
|
748 |
-_LT_DECL([], [build], [0])dnl
|
|
749 |
-_LT_DECL([], [build_os], [0])dnl
|
|
750 |
-dnl
|
|
751 |
-AC_REQUIRE([AC_PROG_CC])dnl
|
|
752 |
-AC_REQUIRE([LT_PATH_LD])dnl
|
|
753 |
-AC_REQUIRE([LT_PATH_NM])dnl
|
|
754 |
-dnl
|
|
755 |
-AC_REQUIRE([AC_PROG_LN_S])dnl
|
|
756 |
-test -z "$LN_S" && LN_S="ln -s"
|
|
757 |
-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
|
|
758 |
-dnl
|
|
759 |
-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
|
|
760 |
-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
|
|
761 |
-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
762 |
-dnl
|
|
763 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
764 |
-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
|
765 |
-m4_require([_LT_CMD_RELOAD])dnl
|
|
766 |
-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
|
767 |
-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
|
768 |
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
769 |
-
|
|
770 |
-_LT_CONFIG_LIBTOOL_INIT([
|
|
771 |
-# See if we are running on zsh, and set the options which allow our
|
|
772 |
-# commands through without removal of \ escapes INIT.
|
|
773 |
-if test -n "\${ZSH_VERSION+set}" ; then
|
|
774 |
- setopt NO_GLOB_SUBST
|
|
775 |
-fi
|
|
776 |
-])
|
|
777 |
-if test -n "${ZSH_VERSION+set}" ; then
|
|
778 |
- setopt NO_GLOB_SUBST
|
|
779 |
-fi
|
|
780 |
-
|
|
781 |
-_LT_CHECK_OBJDIR
|
|
782 |
-
|
|
783 |
-m4_require([_LT_TAG_COMPILER])dnl
|
|
784 |
-_LT_PROG_ECHO_BACKSLASH
|
|
785 |
-
|
|
786 |
-case $host_os in
|
|
787 |
-aix3*)
|
|
788 |
- # AIX sometimes has problems with the GCC collect2 program. For some
|
|
789 |
- # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
790 |
- # vanish in a puff of smoke.
|
|
791 |
- if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
792 |
- COLLECT_NAMES=
|
|
793 |
- export COLLECT_NAMES
|
|
794 |
- fi
|
|
795 |
- ;;
|
|
796 |
-esac
|
|
797 |
-
|
|
798 |
-# Sed substitution that helps us do robust quoting. It backslashifies
|
|
799 |
-# metacharacters that are still active within double-quoted strings.
|
|
800 |
-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
|
|
801 |
-
|
|
802 |
-# Same as above, but do not quote variable references.
|
|
803 |
-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
|
|
804 |
-
|
|
805 |
-# Sed substitution to delay expansion of an escaped shell variable in a
|
|
806 |
-# double_quote_subst'ed string.
|
|
807 |
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
808 |
-
|
|
809 |
-# Sed substitution to delay expansion of an escaped single quote.
|
|
810 |
-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
|
811 |
-
|
|
812 |
-# Sed substitution to avoid accidental globbing in evaled expressions
|
|
813 |
-no_glob_subst='s/\*/\\\*/g'
|
|
814 |
-
|
|
815 |
-# Global variables:
|
|
816 |
-ofile=libtool
|
|
817 |
-can_build_shared=yes
|
|
818 |
-
|
|
819 |
-# All known linkers require a `.a' archive for static linking (except MSVC,
|
|
820 |
-# which needs '.lib').
|
|
821 |
-libext=a
|
|
822 |
-
|
|
823 |
-with_gnu_ld="$lt_cv_prog_gnu_ld"
|
|
824 |
-
|
|
825 |
-old_CC="$CC"
|
|
826 |
-old_CFLAGS="$CFLAGS"
|
|
827 |
-
|
|
828 |
-# Set sane defaults for various variables
|
|
829 |
-test -z "$CC" && CC=cc
|
|
830 |
-test -z "$LTCC" && LTCC=$CC
|
|
831 |
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
832 |
-test -z "$LD" && LD=ld
|
|
833 |
-test -z "$ac_objext" && ac_objext=o
|
|
834 |
-
|
|
835 |
-_LT_CC_BASENAME([$compiler])
|
|
836 |
-
|
|
837 |
-# Only perform the check for file, if the check method requires it
|
|
838 |
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|
839 |
-case $deplibs_check_method in
|
|
840 |
-file_magic*)
|
|
841 |
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|
842 |
- _LT_PATH_MAGIC
|
|
843 |
- fi
|
|
844 |
- ;;
|
|
845 |
-esac
|
|
846 |
-
|
|
847 |
-# Use C for the default configuration in the libtool script
|
|
848 |
-LT_SUPPORTED_TAG([CC])
|
|
849 |
-_LT_LANG_C_CONFIG
|
|
850 |
-_LT_LANG_DEFAULT_CONFIG
|
|
851 |
-_LT_CONFIG_COMMANDS
|
|
852 |
-])# _LT_SETUP
|
|
853 |
-
|
|
854 |
-
|
|
855 |
-# _LT_PROG_LTMAIN
|
|
856 |
-# ---------------
|
|
857 |
-# Note that this code is called both from `configure', and `config.status'
|
|
858 |
-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
|
|
859 |
-# `config.status' has no value for ac_aux_dir unless we are using Automake,
|
|
860 |
-# so we pass a copy along to make sure it has a sensible value anyway.
|
|
861 |
-m4_defun([_LT_PROG_LTMAIN],
|
|
862 |
-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
|
|
863 |
-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
|
|
864 |
-ltmain="$ac_aux_dir/ltmain.sh"
|
|
865 |
-])# _LT_PROG_LTMAIN
|
|
866 |
-
|
|
867 |
-
|
|
868 |
-## ------------------------------------- ##
|
|
869 |
-## Accumulate code for creating libtool. ##
|
|
870 |
-## ------------------------------------- ##
|
|
871 |
-
|
|
872 |
-# So that we can recreate a full libtool script including additional
|
|
873 |
-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
|
874 |
-# in macros and then make a single call at the end using the `libtool'
|
|
875 |
-# label.
|
|
876 |
-
|
|
877 |
-
|
|
878 |
-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
|
|
879 |
-# ----------------------------------------
|
|
880 |
-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
881 |
-m4_define([_LT_CONFIG_LIBTOOL_INIT],
|
|
882 |
-[m4_ifval([$1],
|
|
883 |
- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
|
|
884 |
- [$1
|
|
885 |
-])])])
|
|
886 |
-
|
|
887 |
-# Initialize.
|
|
888 |
-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
|
|
889 |
-
|
|
890 |
-
|
|
891 |
-# _LT_CONFIG_LIBTOOL([COMMANDS])
|
|
892 |
-# ------------------------------
|
|
893 |
-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
|
|
894 |
-m4_define([_LT_CONFIG_LIBTOOL],
|
|
895 |
-[m4_ifval([$1],
|
|
896 |
- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
|
|
897 |
- [$1
|
|
898 |
-])])])
|
|
899 |
-
|
|
900 |
-# Initialize.
|
|
901 |
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
|
|
902 |
-
|
|
903 |
-
|
|
904 |
-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
|
|
905 |
-# -----------------------------------------------------
|
|
906 |
-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
|
|
907 |
-[_LT_CONFIG_LIBTOOL([$1])
|
|
908 |
-_LT_CONFIG_LIBTOOL_INIT([$2])
|
|
909 |
-])
|
|
910 |
-
|
|
911 |
-
|
|
912 |
-# _LT_FORMAT_COMMENT([COMMENT])
|
|
913 |
-# -----------------------------
|
|
914 |
-# Add leading comment marks to the start of each line, and a trailing
|
|
915 |
-# full-stop to the whole comment if one is not present already.
|
|
916 |
-m4_define([_LT_FORMAT_COMMENT],
|
|
917 |
-[m4_ifval([$1], [
|
|
918 |
-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
919 |
- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
|
|
920 |
-)])
|
|
921 |
-
|
|
922 |
-
|
|
923 |
-
|
|
924 |
-## ------------------------ ##
|
|
925 |
-## FIXME: Eliminate VARNAME ##
|
|
926 |
-## ------------------------ ##
|
|
927 |
-
|
|
928 |
-
|
|
929 |
-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
|
930 |
-# -------------------------------------------------------------------
|
|
931 |
-# CONFIGNAME is the name given to the value in the libtool script.
|
|
932 |
-# VARNAME is the (base) name used in the configure script.
|
|
933 |
-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
|
|
934 |
-# VARNAME. Any other value will be used directly.
|
|
935 |
-m4_define([_LT_DECL],
|
|
936 |
-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
|
|
937 |
- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
|
|
938 |
- [m4_ifval([$1], [$1], [$2])])
|
|
939 |
- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
|
|
940 |
- m4_ifval([$4],
|
|
941 |
- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
|
|
942 |
- lt_dict_add_subkey([lt_decl_dict], [$2],
|
|
943 |
- [tagged?], [m4_ifval([$5], [yes], [no])])])
|
|
944 |
-])
|
|
945 |
-
|
|
946 |
-
|
|
947 |
-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
|
|
948 |
-# --------------------------------------------------------
|
|
949 |
-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
|
|
950 |
-
|
|
951 |
-
|
|
952 |
-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
|
|
953 |
-# ------------------------------------------------
|
|
954 |
-m4_define([lt_decl_tag_varnames],
|
|
955 |
-[_lt_decl_filter([tagged?], [yes], $@)])
|
|
956 |
-
|
|
957 |
-
|
|
958 |
-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
|
|
959 |
-# ---------------------------------------------------------
|
|
960 |
-m4_define([_lt_decl_filter],
|
|
961 |
-[m4_case([$#],
|
|
962 |
- [0], [m4_fatal([$0: too few arguments: $#])],
|
|
963 |
- [1], [m4_fatal([$0: too few arguments: $#: $1])],
|
|
964 |
- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
|
|
965 |
- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
|
|
966 |
- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
|
|
967 |
-])
|
|
968 |
-
|
|
969 |
-
|
|
970 |
-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
|
|
971 |
-# --------------------------------------------------
|
|
972 |
-m4_define([lt_decl_quote_varnames],
|
|
973 |
-[_lt_decl_filter([value], [1], $@)])
|
|
974 |
-
|
|
975 |
-
|
|
976 |
-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
|
|
977 |
-# ---------------------------------------------------
|
|
978 |
-m4_define([lt_decl_dquote_varnames],
|
|
979 |
-[_lt_decl_filter([value], [2], $@)])
|
|
980 |
-
|
|
981 |
-
|
|
982 |
-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
|
|
983 |
-# ---------------------------------------------------
|
|
984 |
-m4_define([lt_decl_varnames_tagged],
|
|
985 |
-[m4_assert([$# <= 2])dnl
|
|
986 |
-_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
987 |
- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
|
|
988 |
- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
|
|
989 |
-m4_define([_lt_decl_varnames_tagged],
|
|
990 |
-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
|
|
991 |
-
|
|
992 |
-
|
|
993 |
-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
|
|
994 |
-# ------------------------------------------------
|
|
995 |
-m4_define([lt_decl_all_varnames],
|
|
996 |
-[_$0(m4_quote(m4_default([$1], [[, ]])),
|
|
997 |
- m4_if([$2], [],
|
|
998 |
- m4_quote(lt_decl_varnames),
|
|
999 |
- m4_quote(m4_shift($@))))[]dnl
|
|
1000 |
-])
|
|
1001 |
-m4_define([_lt_decl_all_varnames],
|
|
1002 |
-[lt_join($@, lt_decl_varnames_tagged([$1],
|
|
1003 |
- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
|
|
1004 |
-])
|
|
1005 |
-
|
|
1006 |
-
|
|
1007 |
-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
|
|
1008 |
-# ------------------------------------
|
|
1009 |
-# Quote a variable value, and forward it to `config.status' so that its
|
|
1010 |
-# declaration there will have the same value as in `configure'. VARNAME
|
|
1011 |
-# must have a single quote delimited value for this to work.
|
|
1012 |
-m4_define([_LT_CONFIG_STATUS_DECLARE],
|
|
1013 |
-[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
|
|
1014 |
-
|
|
1015 |
-
|
|
1016 |
-# _LT_CONFIG_STATUS_DECLARATIONS
|
|
1017 |
-# ------------------------------
|
|
1018 |
-# We delimit libtool config variables with single quotes, so when
|
|
1019 |
-# we write them to config.status, we have to be sure to quote all
|
|
1020 |
-# embedded single quotes properly. In configure, this macro expands
|
|
1021 |
-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
|
|
1022 |
-#
|
|
1023 |
-# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
|
|
1024 |
-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
|
|
1025 |
-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
|
|
1026 |
- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
|
|
1027 |
-
|
|
1028 |
-
|
|
1029 |
-# _LT_LIBTOOL_TAGS
|
|
1030 |
-# ----------------
|
|
1031 |
-# Output comment and list of tags supported by the script
|
|
1032 |
-m4_defun([_LT_LIBTOOL_TAGS],
|
|
1033 |
-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
|
|
1034 |
-available_tags="_LT_TAGS"dnl
|
|
1035 |
-])
|
|
1036 |
-
|
|
1037 |
-
|
|
1038 |
-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
|
|
1039 |
-# -----------------------------------
|
|
1040 |
-# Extract the dictionary values for VARNAME (optionally with TAG) and
|
|
1041 |
-# expand to a commented shell variable setting:
|
|
1042 |
-#
|
|
1043 |
-# # Some comment about what VAR is for.
|
|
1044 |
-# visible_name=$lt_internal_name
|
|
1045 |
-m4_define([_LT_LIBTOOL_DECLARE],
|
|
1046 |
-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
|
|
1047 |
- [description])))[]dnl
|
|
1048 |
-m4_pushdef([_libtool_name],
|
|
1049 |
- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
|
|
1050 |
-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
|
|
1051 |
- [0], [_libtool_name=[$]$1],
|
|
1052 |
- [1], [_libtool_name=$lt_[]$1],
|
|
1053 |
- [2], [_libtool_name=$lt_[]$1],
|
|
1054 |
- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
|
|
1055 |
-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
|
|
1056 |
-])
|
|
1057 |
-
|
|
1058 |
-
|
|
1059 |
-# _LT_LIBTOOL_CONFIG_VARS
|
|
1060 |
-# -----------------------
|
|
1061 |
-# Produce commented declarations of non-tagged libtool config variables
|
|
1062 |
-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
|
|
1063 |
-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
|
|
1064 |
-# section) are produced by _LT_LIBTOOL_TAG_VARS.
|
|
1065 |
-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
|
|
1066 |
-[m4_foreach([_lt_var],
|
|
1067 |
- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
|
|
1068 |
- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
|
|
1069 |
-
|
|
1070 |
-
|
|
1071 |
-# _LT_LIBTOOL_TAG_VARS(TAG)
|
|
1072 |
-# -------------------------
|
|
1073 |
-m4_define([_LT_LIBTOOL_TAG_VARS],
|
|
1074 |
-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
|
|
1075 |
- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
|
|
1076 |
-
|
|
1077 |
-
|
|
1078 |
-# _LT_TAGVAR(VARNAME, [TAGNAME])
|
|
1079 |
-# ------------------------------
|
|
1080 |
-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
|
|
1081 |
-
|
|
1082 |
-
|
|
1083 |
-# _LT_CONFIG_COMMANDS
|
|
1084 |
-# -------------------
|
|
1085 |
-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
|
|
1086 |
-# variables for single and double quote escaping we saved from calls
|
|
1087 |
-# to _LT_DECL, we can put quote escaped variables declarations
|
|
1088 |
-# into `config.status', and then the shell code to quote escape them in
|
|
1089 |
-# for loops in `config.status'. Finally, any additional code accumulated
|
|
1090 |
-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
|
|
1091 |
-m4_defun([_LT_CONFIG_COMMANDS],
|
|
1092 |
-[AC_PROVIDE_IFELSE([LT_OUTPUT],
|
|
1093 |
- dnl If the libtool generation code has been placed in $CONFIG_LT,
|
|
1094 |
- dnl instead of duplicating it all over again into config.status,
|
|
1095 |
- dnl then we will have config.status run $CONFIG_LT later, so it
|
|
1096 |
- dnl needs to know what name is stored there:
|
|
1097 |
- [AC_CONFIG_COMMANDS([libtool],
|
|
1098 |
- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
|
|
1099 |
- dnl If the libtool generation code is destined for config.status,
|
|
1100 |
- dnl expand the accumulated commands and init code now:
|
|
1101 |
- [AC_CONFIG_COMMANDS([libtool],
|
|
1102 |
- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
|
|
1103 |
-])#_LT_CONFIG_COMMANDS
|
|
1104 |
-
|
|
1105 |
-
|
|
1106 |
-# Initialize.
|
|
1107 |
-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
|
|
1108 |
-[
|
|
1109 |
-
|
|
1110 |
-# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
1111 |
-# if CDPATH is set.
|
|
1112 |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
1113 |
-
|
|
1114 |
-sed_quote_subst='$sed_quote_subst'
|
|
1115 |
-double_quote_subst='$double_quote_subst'
|
|
1116 |
-delay_variable_subst='$delay_variable_subst'
|
|
1117 |
-_LT_CONFIG_STATUS_DECLARATIONS
|
|
1118 |
-LTCC='$LTCC'
|
|
1119 |
-LTCFLAGS='$LTCFLAGS'
|
|
1120 |
-compiler='$compiler_DEFAULT'
|
|
1121 |
-
|
|
1122 |
-# Quote evaled strings.
|
|
1123 |
-for var in lt_decl_all_varnames([[ \
|
|
1124 |
-]], lt_decl_quote_varnames); do
|
|
1125 |
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
|
1126 |
- *[[\\\\\\\`\\"\\\$]]*)
|
|
1127 |
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
|
1128 |
- ;;
|
|
1129 |
- *)
|
|
1130 |
- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
1131 |
- ;;
|
|
1132 |
- esac
|
|
1133 |
-done
|
|
1134 |
-
|
|
1135 |
-# Double-quote double-evaled strings.
|
|
1136 |
-for var in lt_decl_all_varnames([[ \
|
|
1137 |
-]], lt_decl_dquote_varnames); do
|
|
1138 |
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
|
1139 |
- *[[\\\\\\\`\\"\\\$]]*)
|
|
1140 |
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
1141 |
- ;;
|
|
1142 |
- *)
|
|
1143 |
- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
|
1144 |
- ;;
|
|
1145 |
- esac
|
|
1146 |
-done
|
|
1147 |
-
|
|
1148 |
-# Fix-up fallback echo if it was mangled by the above quoting rules.
|
|
1149 |
-case \$lt_ECHO in
|
|
1150 |
-*'\\\[$]0 --fallback-echo"')dnl "
|
|
1151 |
- lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
|
|
1152 |
- ;;
|
|
1153 |
-esac
|
|
1154 |
-
|
|
1155 |
-_LT_OUTPUT_LIBTOOL_INIT
|
|
1156 |
-])
|
|
1157 |
-
|
|
1158 |
-
|
|
1159 |
-# LT_OUTPUT
|
|
1160 |
-# ---------
|
|
1161 |
-# This macro allows early generation of the libtool script (before
|
|
1162 |
-# AC_OUTPUT is called), incase it is used in configure for compilation
|
|
1163 |
-# tests.
|
|
1164 |
-AC_DEFUN([LT_OUTPUT],
|
|
1165 |
-[: ${CONFIG_LT=./config.lt}
|
|
1166 |
-AC_MSG_NOTICE([creating $CONFIG_LT])
|
|
1167 |
-cat >"$CONFIG_LT" <<_LTEOF
|
|
1168 |
-#! $SHELL
|
|
1169 |
-# Generated by $as_me.
|
|
1170 |
-# Run this file to recreate a libtool stub with the current configuration.
|
|
1171 |
-
|
|
1172 |
-lt_cl_silent=false
|
|
1173 |
-SHELL=\${CONFIG_SHELL-$SHELL}
|
|
1174 |
-_LTEOF
|
|
1175 |
-
|
|
1176 |
-cat >>"$CONFIG_LT" <<\_LTEOF
|
|
1177 |
-AS_SHELL_SANITIZE
|
|
1178 |
-_AS_PREPARE
|
|
1179 |
-
|
|
1180 |
-exec AS_MESSAGE_FD>&1
|
|
1181 |
-exec AS_MESSAGE_LOG_FD>>config.log
|
|
1182 |
-{
|
|
1183 |
- echo
|
|
1184 |
- AS_BOX([Running $as_me.])
|
|
1185 |
-} >&AS_MESSAGE_LOG_FD
|
|
1186 |
-
|
|
1187 |
-lt_cl_help="\
|
|
1188 |
-\`$as_me' creates a local libtool stub from the current configuration,
|
|
1189 |
-for use in further configure time tests before the real libtool is
|
|
1190 |
-generated.
|
|
1191 |
-
|
|
1192 |
-Usage: $[0] [[OPTIONS]]
|
|
1193 |
-
|
|
1194 |
- -h, --help print this help, then exit
|
|
1195 |
- -V, --version print version number, then exit
|
|
1196 |
- -q, --quiet do not print progress messages
|
|
1197 |
- -d, --debug don't remove temporary files
|
|
1198 |
-
|
|
1199 |
-Report bugs to <bug-libtool@gnu.org>."
|
|
1200 |
-
|
|
1201 |
-lt_cl_version="\
|
|
1202 |
-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
1203 |
-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
1204 |
-configured by $[0], generated by m4_PACKAGE_STRING.
|
|
1205 |
-
|
|
1206 |
-Copyright (C) 2008 Free Software Foundation, Inc.
|
|
1207 |
-This config.lt script is free software; the Free Software Foundation
|
|
1208 |
-gives unlimited permision to copy, distribute and modify it."
|
|
1209 |
-
|
|
1210 |
-while test $[#] != 0
|
|
1211 |
-do
|
|
1212 |
- case $[1] in
|
|
1213 |
- --version | --v* | -V )
|
|
1214 |
- echo "$lt_cl_version"; exit 0 ;;
|
|
1215 |
- --help | --h* | -h )
|
|
1216 |
- echo "$lt_cl_help"; exit 0 ;;
|
|
1217 |
- --debug | --d* | -d )
|
|
1218 |
- debug=: ;;
|
|
1219 |
- --quiet | --q* | --silent | --s* | -q )
|
|
1220 |
- lt_cl_silent=: ;;
|
|
1221 |
-
|
|
1222 |
- -*) AC_MSG_ERROR([unrecognized option: $[1]
|
|
1223 |
-Try \`$[0] --help' for more information.]) ;;
|
|
1224 |
-
|
|
1225 |
- *) AC_MSG_ERROR([unrecognized argument: $[1]
|
|
1226 |
-Try \`$[0] --help' for more information.]) ;;
|
|
1227 |
- esac
|
|
1228 |
- shift
|
|
1229 |
-done
|
|
1230 |
-
|
|
1231 |
-if $lt_cl_silent; then
|
|
1232 |
- exec AS_MESSAGE_FD>/dev/null
|
|
1233 |
-fi
|
|
1234 |
-_LTEOF
|
|
1235 |
-
|
|
1236 |
-cat >>"$CONFIG_LT" <<_LTEOF
|
|
1237 |
-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
|
|
1238 |
-_LTEOF
|
|
1239 |
-
|
|
1240 |
-cat >>"$CONFIG_LT" <<\_LTEOF
|
|
1241 |
-AC_MSG_NOTICE([creating $ofile])
|
|
1242 |
-_LT_OUTPUT_LIBTOOL_COMMANDS
|
|
1243 |
-AS_EXIT(0)
|
|
1244 |
-_LTEOF
|
|
1245 |
-chmod +x "$CONFIG_LT"
|
|
1246 |
-
|
|
1247 |
-# configure is writing to config.log, but config.lt does its own redirection,
|
|
1248 |
-# appending to config.log, which fails on DOS, as config.log is still kept
|
|
1249 |
-# open by configure. Here we exec the FD to /dev/null, effectively closing
|
|
1250 |
-# config.log, so it can be properly (re)opened and appended to by config.lt.
|
|
1251 |
-if test "$no_create" != yes; then
|
|
1252 |
- lt_cl_success=:
|
|
1253 |
- test "$silent" = yes &&
|
|
1254 |
- lt_config_lt_args="$lt_config_lt_args --quiet"
|
|
1255 |
- exec AS_MESSAGE_LOG_FD>/dev/null
|
|
1256 |
- $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
|
|
1257 |
- exec AS_MESSAGE_LOG_FD>>config.log
|
|
1258 |
- $lt_cl_success || AS_EXIT(1)
|
|
1259 |
-fi
|
|
1260 |
-])# LT_OUTPUT
|
|
1261 |
-
|
|
1262 |
-
|
|
1263 |
-# _LT_CONFIG(TAG)
|
|
1264 |
-# ---------------
|
|
1265 |
-# If TAG is the built-in tag, create an initial libtool script with a
|
|
1266 |
-# default configuration from the untagged config vars. Otherwise add code
|
|
1267 |
-# to config.status for appending the configuration named by TAG from the
|
|
1268 |
-# matching tagged config vars.
|
|
1269 |
-m4_defun([_LT_CONFIG],
|
|
1270 |
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
1271 |
-_LT_CONFIG_SAVE_COMMANDS([
|
|
1272 |
- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
|
|
1273 |
- m4_if(_LT_TAG, [C], [
|
|
1274 |
- # See if we are running on zsh, and set the options which allow our
|
|
1275 |
- # commands through without removal of \ escapes.
|
|
1276 |
- if test -n "${ZSH_VERSION+set}" ; then
|
|
1277 |
- setopt NO_GLOB_SUBST
|
|
1278 |
- fi
|
|
1279 |
-
|
|
1280 |
- cfgfile="${ofile}T"
|
|
1281 |
- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
|
1282 |
- $RM "$cfgfile"
|
|
1283 |
-
|
|
1284 |
- cat <<_LT_EOF >> "$cfgfile"
|
|
1285 |
-#! $SHELL
|
|
1286 |
-
|
|
1287 |
-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|
1288 |
-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
|
1289 |
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
1290 |
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
1291 |
-#
|
|
1292 |
-_LT_COPYING
|
|
1293 |
-_LT_LIBTOOL_TAGS
|
|
1294 |
-
|
|
1295 |
-# ### BEGIN LIBTOOL CONFIG
|
|
1296 |
-_LT_LIBTOOL_CONFIG_VARS
|
|
1297 |
-_LT_LIBTOOL_TAG_VARS
|
|
1298 |
-# ### END LIBTOOL CONFIG
|
|
1299 |
-
|
|
1300 |
-_LT_EOF
|
|
1301 |
-
|
|
1302 |
- case $host_os in
|
|
1303 |
- aix3*)
|
|
1304 |
- cat <<\_LT_EOF >> "$cfgfile"
|
|
1305 |
-# AIX sometimes has problems with the GCC collect2 program. For some
|
|
1306 |
-# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
1307 |
-# vanish in a puff of smoke.
|
|
1308 |
-if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
1309 |
- COLLECT_NAMES=
|
|
1310 |
- export COLLECT_NAMES
|
|
1311 |
-fi
|
|
1312 |
-_LT_EOF
|
|
1313 |
- ;;
|
|
1314 |
- esac
|
|
1315 |
-
|
|
1316 |
- _LT_PROG_LTMAIN
|
|
1317 |
-
|
|
1318 |
- # We use sed instead of cat because bash on DJGPP gets confused if
|
|
1319 |
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
1320 |
- # text mode, it properly converts lines to CR/LF. This bash problem
|
|
1321 |
- # is reportedly fixed, but why not run on old versions too?
|
|
1322 |
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
1323 |
- || (rm -f "$cfgfile"; exit 1)
|
|
1324 |
-
|
|
1325 |
- _LT_PROG_XSI_SHELLFNS
|
|
1326 |
-
|
|
1327 |
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
1328 |
- || (rm -f "$cfgfile"; exit 1)
|
|
1329 |
-
|
|
1330 |
- mv -f "$cfgfile" "$ofile" ||
|
|
1331 |
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
1332 |
- chmod +x "$ofile"
|
|
1333 |
-],
|
|
1334 |
-[cat <<_LT_EOF >> "$ofile"
|
|
1335 |
-
|
|
1336 |
-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
|
|
1337 |
-dnl in a comment (ie after a #).
|
|
1338 |
-# ### BEGIN LIBTOOL TAG CONFIG: $1
|
|
1339 |
-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
|
|
1340 |
-# ### END LIBTOOL TAG CONFIG: $1
|
|
1341 |
-_LT_EOF
|
|
1342 |
-])dnl /m4_if
|
|
1343 |
-],
|
|
1344 |
-[m4_if([$1], [], [
|
|
1345 |
- PACKAGE='$PACKAGE'
|
|
1346 |
- VERSION='$VERSION'
|
|
1347 |
- TIMESTAMP='$TIMESTAMP'
|
|
1348 |
- RM='$RM'
|
|
1349 |
- ofile='$ofile'], [])
|
|
1350 |
-])dnl /_LT_CONFIG_SAVE_COMMANDS
|
|
1351 |
-])# _LT_CONFIG
|
|
1352 |
-
|
|
1353 |
-
|
|
1354 |
-# LT_SUPPORTED_TAG(TAG)
|
|
1355 |
-# ---------------------
|
|
1356 |
-# Trace this macro to discover what tags are supported by the libtool
|
|
1357 |
-# --tag option, using:
|
|
1358 |
-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
|
|
1359 |
-AC_DEFUN([LT_SUPPORTED_TAG], [])
|
|
1360 |
-
|
|
1361 |
-
|
|
1362 |
-# C support is built-in for now
|
|
1363 |
-m4_define([_LT_LANG_C_enabled], [])
|
|
1364 |
-m4_define([_LT_TAGS], [])
|
|
1365 |
-
|
|
1366 |
-
|
|
1367 |
-# LT_LANG(LANG)
|
|
1368 |
-# -------------
|
|
1369 |
-# Enable libtool support for the given language if not already enabled.
|
|
1370 |
-AC_DEFUN([LT_LANG],
|
|
1371 |
-[AC_BEFORE([$0], [LT_OUTPUT])dnl
|
|
1372 |
-m4_case([$1],
|
|
1373 |
- [C], [_LT_LANG(C)],
|
|
1374 |
- [C++], [_LT_LANG(CXX)],
|
|
1375 |
- [Java], [_LT_LANG(GCJ)],
|
|
1376 |
- [Fortran 77], [_LT_LANG(F77)],
|
|
1377 |
- [Fortran], [_LT_LANG(FC)],
|
|
1378 |
- [Windows Resource], [_LT_LANG(RC)],
|
|
1379 |
- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
|
|
1380 |
- [_LT_LANG($1)],
|
|
1381 |
- [m4_fatal([$0: unsupported language: "$1"])])])dnl
|
|
1382 |
-])# LT_LANG
|
|
1383 |
-
|
|
1384 |
-
|
|
1385 |
-# _LT_LANG(LANGNAME)
|
|
1386 |
-# ------------------
|
|
1387 |
-m4_defun([_LT_LANG],
|
|
1388 |
-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
|
|
1389 |
- [LT_SUPPORTED_TAG([$1])dnl
|
|
1390 |
- m4_append([_LT_TAGS], [$1 ])dnl
|
|
1391 |
- m4_define([_LT_LANG_]$1[_enabled], [])dnl
|
|
1392 |
- _LT_LANG_$1_CONFIG($1)])dnl
|
|
1393 |
-])# _LT_LANG
|
|
1394 |
-
|
|
1395 |
-
|
|
1396 |
-# _LT_LANG_DEFAULT_CONFIG
|
|
1397 |
-# -----------------------
|
|
1398 |
-m4_defun([_LT_LANG_DEFAULT_CONFIG],
|
|
1399 |
-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
1400 |
- [LT_LANG(CXX)],
|
|
1401 |
- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
|
|
1402 |
-
|
|
1403 |
-AC_PROVIDE_IFELSE([AC_PROG_F77],
|
|
1404 |
- [LT_LANG(F77)],
|
|
1405 |
- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
|
|
1406 |
-
|
|
1407 |
-AC_PROVIDE_IFELSE([AC_PROG_FC],
|
|
1408 |
- [LT_LANG(FC)],
|
|
1409 |
- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
|
|
1410 |
-
|
|
1411 |
-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
|
|
1412 |
-dnl pulling things in needlessly.
|
|
1413 |
-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
|
1414 |
- [LT_LANG(GCJ)],
|
|
1415 |
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
|
1416 |
- [LT_LANG(GCJ)],
|
|
1417 |
- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
|
|
1418 |
- [LT_LANG(GCJ)],
|
|
1419 |
- [m4_ifdef([AC_PROG_GCJ],
|
|
1420 |
- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
1421 |
- m4_ifdef([A][M_PROG_GCJ],
|
|
1422 |
- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
|
|
1423 |
- m4_ifdef([LT_PROG_GCJ],
|
|
1424 |
- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
|
|
1425 |
-
|
|
1426 |
-AC_PROVIDE_IFELSE([LT_PROG_RC],
|
|
1427 |
- [LT_LANG(RC)],
|
|
1428 |
- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
|
|
1429 |
-])# _LT_LANG_DEFAULT_CONFIG
|
|
1430 |
-
|
|
1431 |
-# Obsolete macros:
|
|
1432 |
-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
|
|
1433 |
-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
|
|
1434 |
-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
|
|
1435 |
-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
|
|
1436 |
-dnl aclocal-1.4 backwards compatibility:
|
|
1437 |
-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
|
|
1438 |
-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
|
|
1439 |
-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
|
|
1440 |
-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
|
|
1441 |
-
|
|
1442 |
-
|
|
1443 |
-# _LT_TAG_COMPILER
|
|
1444 |
-# ----------------
|
|
1445 |
-m4_defun([_LT_TAG_COMPILER],
|
|
1446 |
-[AC_REQUIRE([AC_PROG_CC])dnl
|
|
1447 |
-
|
|
1448 |
-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
|
|
1449 |
-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
|
|
1450 |
-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
|
|
1451 |
-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
|
|
1452 |
-
|
|
1453 |
-# If no C compiler was specified, use CC.
|
|
1454 |
-LTCC=${LTCC-"$CC"}
|
|
1455 |
-
|
|
1456 |
-# If no C compiler flags were specified, use CFLAGS.
|
|
1457 |
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
1458 |
-
|
|
1459 |
-# Allow CC to be a program name with arguments.
|
|
1460 |
-compiler=$CC
|
|
1461 |
-])# _LT_TAG_COMPILER
|
|
1462 |
-
|
|
1463 |
-
|
|
1464 |
-# _LT_COMPILER_BOILERPLATE
|
|
1465 |
-# ------------------------
|
|
1466 |
-# Check for compiler boilerplate output or warnings with
|
|
1467 |
-# the simple compiler test code.
|
|
1468 |
-m4_defun([_LT_COMPILER_BOILERPLATE],
|
|
1469 |
-[m4_require([_LT_DECL_SED])dnl
|
|
1470 |
-ac_outfile=conftest.$ac_objext
|
|
1471 |
-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
1472 |
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1473 |
-_lt_compiler_boilerplate=`cat conftest.err`
|
|
1474 |
-$RM conftest*
|
|
1475 |
-])# _LT_COMPILER_BOILERPLATE
|
|
1476 |
-
|
|
1477 |
-
|
|
1478 |
-# _LT_LINKER_BOILERPLATE
|
|
1479 |
-# ----------------------
|
|
1480 |
-# Check for linker boilerplate output or warnings with
|
|
1481 |
-# the simple link test code.
|
|
1482 |
-m4_defun([_LT_LINKER_BOILERPLATE],
|
|
1483 |
-[m4_require([_LT_DECL_SED])dnl
|
|
1484 |
-ac_outfile=conftest.$ac_objext
|
|
1485 |
-echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
1486 |
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
1487 |
-_lt_linker_boilerplate=`cat conftest.err`
|
|
1488 |
-$RM -r conftest*
|
|
1489 |
-])# _LT_LINKER_BOILERPLATE
|
|
1490 |
-
|
|
1491 |
-# _LT_REQUIRED_DARWIN_CHECKS
|
|
1492 |
-# -------------------------
|
|
1493 |
-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
|
1494 |
- case $host_os in
|
|
1495 |
- rhapsody* | darwin*)
|
|
1496 |
- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
|
|
1497 |
- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
|
|
1498 |
- AC_CHECK_TOOL([LIPO], [lipo], [:])
|
|
1499 |
- AC_CHECK_TOOL([OTOOL], [otool], [:])
|
|
1500 |
- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
|
|
1501 |
- _LT_DECL([], [DSYMUTIL], [1],
|
|
1502 |
- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
|
|
1503 |
- _LT_DECL([], [NMEDIT], [1],
|
|
1504 |
- [Tool to change global to local symbols on Mac OS X])
|
|
1505 |
- _LT_DECL([], [LIPO], [1],
|
|
1506 |
- [Tool to manipulate fat objects and archives on Mac OS X])
|
|
1507 |
- _LT_DECL([], [OTOOL], [1],
|
|
1508 |
- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
|
|
1509 |
- _LT_DECL([], [OTOOL64], [1],
|
|
1510 |
- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
|
|
1511 |
-
|
|
1512 |
- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
|
|
1513 |
- [lt_cv_apple_cc_single_mod=no
|
|
1514 |
- if test -z "${LT_MULTI_MODULE}"; then
|
|
1515 |
- # By default we will add the -single_module flag. You can override
|
|
1516 |
- # by either setting the environment variable LT_MULTI_MODULE
|
|
1517 |
- # non-empty at configure time, or by adding -multi_module to the
|
|
1518 |
- # link flags.
|
|
1519 |
- rm -rf libconftest.dylib*
|
|
1520 |
- echo "int foo(void){return 1;}" > conftest.c
|
|
1521 |
- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
1522 |
--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
|
|
1523 |
- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
|
1524 |
- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
|
1525 |
- _lt_result=$?
|
|
1526 |
- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
|
1527 |
- lt_cv_apple_cc_single_mod=yes
|
|
1528 |
- else
|
|
1529 |
- cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
1530 |
- fi
|
|
1531 |
- rm -rf libconftest.dylib*
|
|
1532 |
- rm -f conftest.*
|
|
1533 |
- fi])
|
|
1534 |
- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
|
|
1535 |
- [lt_cv_ld_exported_symbols_list],
|
|
1536 |
- [lt_cv_ld_exported_symbols_list=no
|
|
1537 |
- save_LDFLAGS=$LDFLAGS
|
|
1538 |
- echo "_main" > conftest.sym
|
|
1539 |
- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
|
1540 |
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
1541 |
- [lt_cv_ld_exported_symbols_list=yes],
|
|
1542 |
- [lt_cv_ld_exported_symbols_list=no])
|
|
1543 |
- LDFLAGS="$save_LDFLAGS"
|
|
1544 |
- ])
|
|
1545 |
- case $host_os in
|
|
1546 |
- rhapsody* | darwin1.[[012]])
|
|
1547 |
- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
|
1548 |
- darwin1.*)
|
|
1549 |
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
1550 |
- darwin*) # darwin 5.x on
|
|
1551 |
- # if running on 10.5 or later, the deployment target defaults
|
|
1552 |
- # to the OS version, if on x86, and 10.4, the deployment
|
|
1553 |
- # target defaults to 10.4. Don't you love it?
|
|
1554 |
- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
|
1555 |
- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
|
|
1556 |
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
1557 |
- 10.[[012]]*)
|
|
1558 |
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
|
1559 |
- 10.*)
|
|
1560 |
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
|
1561 |
- esac
|
|
1562 |
- ;;
|
|
1563 |
- esac
|
|
1564 |
- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
|
1565 |
- _lt_dar_single_mod='$single_module'
|
|
1566 |
- fi
|
|
1567 |
- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
|
1568 |
- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
|
1569 |
- else
|
|
1570 |
- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
1571 |
- fi
|
|
1572 |
- if test "$DSYMUTIL" != ":"; then
|
|
1573 |
- _lt_dsymutil='~$DSYMUTIL $lib || :'
|
|
1574 |
- else
|
|
1575 |
- _lt_dsymutil=
|
|
1576 |
- fi
|
|
1577 |
- ;;
|
|
1578 |
- esac
|
|
1579 |
-])
|
|
1580 |
-
|
|
1581 |
-
|
|
1582 |
-# _LT_DARWIN_LINKER_FEATURES
|
|
1583 |
-# --------------------------
|
|
1584 |
-# Checks for linker and compiler features on darwin
|
|
1585 |
-m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
1586 |
-[
|
|
1587 |
- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
|
|
1588 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
1589 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
1590 |
- _LT_TAGVAR(hardcode_automatic, $1)=yes
|
|
1591 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
1592 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
|
|
1593 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
1594 |
- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
|
|
1595 |
- case $cc_basename in
|
|
1596 |
- ifort*) _lt_dar_can_shared=yes ;;
|
|
1597 |
- *) _lt_dar_can_shared=$GCC ;;
|
|
1598 |
- esac
|
|
1599 |
- if test "$_lt_dar_can_shared" = "yes"; then
|
|
1600 |
- output_verbose_link_cmd=echo
|
|
1601 |
- _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}"
|
|
1602 |
- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
|
1603 |
- _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}"
|
|
1604 |
- _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}"
|
|
1605 |
- m4_if([$1], [CXX],
|
|
1606 |
-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
|
|
1607 |
- _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}"
|
|
1608 |
- _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}"
|
|
1609 |
- fi
|
|
1610 |
-],[])
|
|
1611 |
- else
|
|
1612 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
1613 |
- fi
|
|
1614 |
-])
|
|
1615 |
-
|
|
1616 |
-# _LT_SYS_MODULE_PATH_AIX
|
|
1617 |
-# -----------------------
|
|
1618 |
-# Links a minimal program and checks the executable
|
|
1619 |
-# for the system default hardcoded library path. In most cases,
|
|
1620 |
-# this is /usr/lib:/lib, but when the MPI compilers are used
|
|
1621 |
-# the location of the communication and MPI libs are included too.
|
|
1622 |
-# If we don't find anything, use the default library path according
|
|
1623 |
-# to the aix ld manual.
|
|
1624 |
-m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
|
1625 |
-[m4_require([_LT_DECL_SED])dnl
|
|
1626 |
-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
|
1627 |
-lt_aix_libpath_sed='
|
|
1628 |
- /Import File Strings/,/^$/ {
|
|
1629 |
- /^0/ {
|
|
1630 |
- s/^0 *\(.*\)$/\1/
|
|
1631 |
- p
|
|
1632 |
- }
|
|
1633 |
- }'
|
|
1634 |
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1635 |
-# Check for a 64-bit object if we didn't find anything.
|
|
1636 |
-if test -z "$aix_libpath"; then
|
|
1637 |
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
1638 |
-fi],[])
|
|
1639 |
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
1640 |
-])# _LT_SYS_MODULE_PATH_AIX
|
|
1641 |
-
|
|
1642 |
-
|
|
1643 |
-# _LT_SHELL_INIT(ARG)
|
|
1644 |
-# -------------------
|
|
1645 |
-m4_define([_LT_SHELL_INIT],
|
|
1646 |
-[ifdef([AC_DIVERSION_NOTICE],
|
|
1647 |
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
|
1648 |
- [AC_DIVERT_PUSH(NOTICE)])
|
|
1649 |
-$1
|
|
1650 |
-AC_DIVERT_POP
|
|
1651 |
-])# _LT_SHELL_INIT
|
|
1652 |
-
|
|
1653 |
-
|
|
1654 |
-# _LT_PROG_ECHO_BACKSLASH
|
|
1655 |
-# -----------------------
|
|
1656 |
-# Add some code to the start of the generated configure script which
|
|
1657 |
-# will find an echo command which doesn't interpret backslashes.
|
|
1658 |
-m4_defun([_LT_PROG_ECHO_BACKSLASH],
|
|
1659 |
-[_LT_SHELL_INIT([
|
|
1660 |
-# Check that we are running under the correct shell.
|
|
1661 |
-SHELL=${CONFIG_SHELL-/bin/sh}
|
|
1662 |
-
|
|
1663 |
-case X$lt_ECHO in
|
|
1664 |
-X*--fallback-echo)
|
|
1665 |
- # Remove one level of quotation (which was required for Make).
|
|
1666 |
- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
|
1667 |
- ;;
|
|
1668 |
-esac
|
|
1669 |
-
|
|
1670 |
-ECHO=${lt_ECHO-echo}
|
|
1671 |
-if test "X[$]1" = X--no-reexec; then
|
|
1672 |
- # Discard the --no-reexec flag, and continue.
|
|
1673 |
- shift
|
|
1674 |
-elif test "X[$]1" = X--fallback-echo; then
|
|
1675 |
- # Avoid inline document here, it may be left over
|
|
1676 |
- :
|
|
1677 |
-elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
|
1678 |
- # Yippee, $ECHO works!
|
|
1679 |
- :
|
|
1680 |
-else
|
|
1681 |
- # Restart under the correct shell.
|
|
1682 |
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|
1683 |
-fi
|
|
1684 |
-
|
|
1685 |
-if test "X[$]1" = X--fallback-echo; then
|
|
1686 |
- # used as fallback echo
|
|
1687 |
- shift
|
|
1688 |
- cat <<_LT_EOF
|
|
1689 |
-[$]*
|
|
1690 |
-_LT_EOF
|
|
1691 |
- exit 0
|
|
1692 |
-fi
|
|
1693 |
-
|
|
1694 |
-# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
1695 |
-# if CDPATH is set.
|
|
1696 |
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
1697 |
-
|
|
1698 |
-if test -z "$lt_ECHO"; then
|
|
1699 |
- if test "X${echo_test_string+set}" != Xset; then
|
|
1700 |
- # find a string as large as possible, as long as the shell can cope with it
|
|
1701 |
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
|
1702 |
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|
1703 |
- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
|
1704 |
- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
|
1705 |
- then
|
|
1706 |
- break
|
|
1707 |
- fi
|
|
1708 |
- done
|
|
1709 |
- fi
|
|
1710 |
-
|
|
1711 |
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1712 |
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
|
1713 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1714 |
- :
|
|
1715 |
- else
|
|
1716 |
- # The Solaris, AIX, and Digital Unix default echo programs unquote
|
|
1717 |
- # backslashes. This makes it impossible to quote backslashes using
|
|
1718 |
- # echo "$something" | sed 's/\\/\\\\/g'
|
|
1719 |
- #
|
|
1720 |
- # So, first we look for a working echo in the user's PATH.
|
|
1721 |
-
|
|
1722 |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
1723 |
- for dir in $PATH /usr/ucb; do
|
|
1724 |
- IFS="$lt_save_ifs"
|
|
1725 |
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
|
1726 |
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
1727 |
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
|
1728 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1729 |
- ECHO="$dir/echo"
|
|
1730 |
- break
|
|
1731 |
- fi
|
|
1732 |
- done
|
|
1733 |
- IFS="$lt_save_ifs"
|
|
1734 |
-
|
|
1735 |
- if test "X$ECHO" = Xecho; then
|
|
1736 |
- # We didn't find a better echo, so look for alternatives.
|
|
1737 |
- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1738 |
- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
|
1739 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1740 |
- # This shell has a builtin print -r that does the trick.
|
|
1741 |
- ECHO='print -r'
|
|
1742 |
- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
|
1743 |
- test "X$CONFIG_SHELL" != X/bin/ksh; then
|
|
1744 |
- # If we have ksh, try running configure again with it.
|
|
1745 |
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
1746 |
- export ORIGINAL_CONFIG_SHELL
|
|
1747 |
- CONFIG_SHELL=/bin/ksh
|
|
1748 |
- export CONFIG_SHELL
|
|
1749 |
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
|
1750 |
- else
|
|
1751 |
- # Try using printf.
|
|
1752 |
- ECHO='printf %s\n'
|
|
1753 |
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
|
1754 |
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
|
1755 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1756 |
- # Cool, printf works
|
|
1757 |
- :
|
|
1758 |
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
1759 |
- test "X$echo_testing_string" = 'X\t' &&
|
|
1760 |
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
1761 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1762 |
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
|
1763 |
- export CONFIG_SHELL
|
|
1764 |
- SHELL="$CONFIG_SHELL"
|
|
1765 |
- export SHELL
|
|
1766 |
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
1767 |
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
|
1768 |
- test "X$echo_testing_string" = 'X\t' &&
|
|
1769 |
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
1770 |
- test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
1771 |
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
|
|
1772 |
- else
|
|
1773 |
- # maybe with a smaller string...
|
|
1774 |
- prev=:
|
|
1775 |
-
|
|
1776 |
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
|
1777 |
- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
|
1778 |
- then
|
|
1779 |
- break
|
|
1780 |
- fi
|
|
1781 |
- prev="$cmd"
|
|
1782 |
- done
|
|
1783 |
-
|
|
1784 |
- if test "$prev" != 'sed 50q "[$]0"'; then
|
|
1785 |
- echo_test_string=`eval $prev`
|
|
1786 |
- export echo_test_string
|
|
1787 |
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
|
1788 |
- else
|
|
1789 |
- # Oops. We lost completely, so just stick with echo.
|
|
1790 |
- ECHO=echo
|
|
1791 |
- fi
|
|
1792 |
- fi
|
|
1793 |
- fi
|
|
1794 |
- fi
|
|
1795 |
- fi
|
|
1796 |
-fi
|
|
1797 |
-
|
|
1798 |
-# Copy echo and quote the copy suitably for passing to libtool from
|
|
1799 |
-# the Makefile, instead of quoting the original, which is used later.
|
|
1800 |
-lt_ECHO=$ECHO
|
|
1801 |
-if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
|
1802 |
- lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
|
1803 |
-fi
|
|
1804 |
-
|
|
1805 |
-AC_SUBST(lt_ECHO)
|
|
1806 |
-])
|
|
1807 |
-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
|
|
1808 |
-_LT_DECL([], [ECHO], [1],
|
|
1809 |
- [An echo program that does not interpret backslashes])
|
|
1810 |
-])# _LT_PROG_ECHO_BACKSLASH
|
|
1811 |
-
|
|
1812 |
-
|
|
1813 |
-# _LT_ENABLE_LOCK
|
|
1814 |
-# ---------------
|
|
1815 |
-m4_defun([_LT_ENABLE_LOCK],
|
|
1816 |
-[AC_ARG_ENABLE([libtool-lock],
|
|
1817 |
- [AS_HELP_STRING([--disable-libtool-lock],
|
|
1818 |
- [avoid locking (might break parallel builds)])])
|
|
1819 |
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
1820 |
-
|
|
1821 |
-# Some flags need to be propagated to the compiler or linker for good
|
|
1822 |
-# libtool support.
|
|
1823 |
-case $host in
|
|
1824 |
-ia64-*-hpux*)
|
|
1825 |
- # Find out which ABI we are using.
|
|
1826 |
- echo 'int i;' > conftest.$ac_ext
|
|
1827 |
- if AC_TRY_EVAL(ac_compile); then
|
|
1828 |
- case `/usr/bin/file conftest.$ac_objext` in
|
|
1829 |
- *ELF-32*)
|
|
1830 |
- HPUX_IA64_MODE="32"
|
|
1831 |
- ;;
|
|
1832 |
- *ELF-64*)
|
|
1833 |
- HPUX_IA64_MODE="64"
|
|
1834 |
- ;;
|
|
1835 |
- esac
|
|
1836 |
- fi
|
|
1837 |
- rm -rf conftest*
|
|
1838 |
- ;;
|
|
1839 |
-*-*-irix6*)
|
|
1840 |
- # Find out which ABI we are using.
|
|
1841 |
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
|
1842 |
- if AC_TRY_EVAL(ac_compile); then
|
|
1843 |
- if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
1844 |
- case `/usr/bin/file conftest.$ac_objext` in
|
|
1845 |
- *32-bit*)
|
|
1846 |
- LD="${LD-ld} -melf32bsmip"
|
|
1847 |
- ;;
|
|
1848 |
- *N32*)
|
|
1849 |
- LD="${LD-ld} -melf32bmipn32"
|
|
1850 |
- ;;
|
|
1851 |
- *64-bit*)
|
|
1852 |
- LD="${LD-ld} -melf64bmip"
|
|
1853 |
- ;;
|
|
1854 |
- esac
|
|
1855 |
- else
|
|
1856 |
- case `/usr/bin/file conftest.$ac_objext` in
|
|
1857 |
- *32-bit*)
|
|
1858 |
- LD="${LD-ld} -32"
|
|
1859 |
- ;;
|
|
1860 |
- *N32*)
|
|
1861 |
- LD="${LD-ld} -n32"
|
|
1862 |
- ;;
|
|
1863 |
- *64-bit*)
|
|
1864 |
- LD="${LD-ld} -64"
|
|
1865 |
- ;;
|
|
1866 |
- esac
|
|
1867 |
- fi
|
|
1868 |
- fi
|
|
1869 |
- rm -rf conftest*
|
|
1870 |
- ;;
|
|
1871 |
-
|
|
1872 |
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
|
1873 |
-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
1874 |
- # Find out which ABI we are using.
|
|
1875 |
- echo 'int i;' > conftest.$ac_ext
|
|
1876 |
- if AC_TRY_EVAL(ac_compile); then
|
|
1877 |
- case `/usr/bin/file conftest.o` in
|
|
1878 |
- *32-bit*)
|
|
1879 |
- case $host in
|
|
1880 |
- x86_64-*kfreebsd*-gnu)
|
|
1881 |
- LD="${LD-ld} -m elf_i386_fbsd"
|
|
1882 |
- ;;
|
|
1883 |
- x86_64-*linux*)
|
|
1884 |
- LD="${LD-ld} -m elf_i386"
|
|
1885 |
- ;;
|
|
1886 |
- ppc64-*linux*|powerpc64-*linux*)
|
|
1887 |
- LD="${LD-ld} -m elf32ppclinux"
|
|
1888 |
- ;;
|
|
1889 |
- s390x-*linux*)
|
|
1890 |
- LD="${LD-ld} -m elf_s390"
|
|
1891 |
- ;;
|
|
1892 |
- sparc64-*linux*)
|
|
1893 |
- LD="${LD-ld} -m elf32_sparc"
|
|
1894 |
- ;;
|
|
1895 |
- esac
|
|
1896 |
- ;;
|
|
1897 |
- *64-bit*)
|
|
1898 |
- case $host in
|
|
1899 |
- x86_64-*kfreebsd*-gnu)
|
|
1900 |
- LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
1901 |
- ;;
|
|
1902 |
- x86_64-*linux*)
|
|
1903 |
- LD="${LD-ld} -m elf_x86_64"
|
|
1904 |
- ;;
|
|
1905 |
- ppc*-*linux*|powerpc*-*linux*)
|
|
1906 |
- LD="${LD-ld} -m elf64ppc"
|
|
1907 |
- ;;
|
|
1908 |
- s390*-*linux*|s390*-*tpf*)
|
|
1909 |
- LD="${LD-ld} -m elf64_s390"
|
|
1910 |
- ;;
|
|
1911 |
- sparc*-*linux*)
|
|
1912 |
- LD="${LD-ld} -m elf64_sparc"
|
|
1913 |
- ;;
|
|
1914 |
- esac
|
|
1915 |
- ;;
|
|
1916 |
- esac
|
|
1917 |
- fi
|
|
1918 |
- rm -rf conftest*
|
|
1919 |
- ;;
|
|
1920 |
-
|
|
1921 |
-*-*-sco3.2v5*)
|
|
1922 |
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
1923 |
- SAVE_CFLAGS="$CFLAGS"
|
|
1924 |
- CFLAGS="$CFLAGS -belf"
|
|
1925 |
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
|
1926 |
- [AC_LANG_PUSH(C)
|
|
1927 |
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
|
1928 |
- AC_LANG_POP])
|
|
1929 |
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
1930 |
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
1931 |
- CFLAGS="$SAVE_CFLAGS"
|
|
1932 |
- fi
|
|
1933 |
- ;;
|
|
1934 |
-sparc*-*solaris*)
|
|
1935 |
- # Find out which ABI we are using.
|
|
1936 |
- echo 'int i;' > conftest.$ac_ext
|
|
1937 |
- if AC_TRY_EVAL(ac_compile); then
|
|
1938 |
- case `/usr/bin/file conftest.o` in
|
|
1939 |
- *64-bit*)
|
|
1940 |
- case $lt_cv_prog_gnu_ld in
|
|
1941 |
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
1942 |
- *)
|
|
1943 |
- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
1944 |
- LD="${LD-ld} -64"
|
|
1945 |
- fi
|
|
1946 |
- ;;
|
|
1947 |
- esac
|
|
1948 |
- ;;
|
|
1949 |
- esac
|
|
1950 |
- fi
|
|
1951 |
- rm -rf conftest*
|
|
1952 |
- ;;
|
|
1953 |
-esac
|
|
1954 |
-
|
|
1955 |
-need_locks="$enable_libtool_lock"
|
|
1956 |
-])# _LT_ENABLE_LOCK
|
|
1957 |
-
|
|
1958 |
-
|
|
1959 |
-# _LT_CMD_OLD_ARCHIVE
|
|
1960 |
-# -------------------
|
|
1961 |
-m4_defun([_LT_CMD_OLD_ARCHIVE],
|
|
1962 |
-[AC_CHECK_TOOL(AR, ar, false)
|
|
1963 |
-test -z "$AR" && AR=ar
|
|
1964 |
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
1965 |
-_LT_DECL([], [AR], [1], [The archiver])
|
|
1966 |
-_LT_DECL([], [AR_FLAGS], [1])
|
|
1967 |
-
|
|
1968 |
-AC_CHECK_TOOL(STRIP, strip, :)
|
|
1969 |
-test -z "$STRIP" && STRIP=:
|
|
1970 |
-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
|
|
1971 |
-
|
|
1972 |
-AC_CHECK_TOOL(RANLIB, ranlib, :)
|
|
1973 |
-test -z "$RANLIB" && RANLIB=:
|
|
1974 |
-_LT_DECL([], [RANLIB], [1],
|
|
1975 |
- [Commands used to install an old-style archive])
|
|
1976 |
-
|
|
1977 |
-# Determine commands to create old-style static archives.
|
|
1978 |
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
1979 |
-old_postinstall_cmds='chmod 644 $oldlib'
|
|
1980 |
-old_postuninstall_cmds=
|
|
1981 |
-
|
|
1982 |
-if test -n "$RANLIB"; then
|
|
1983 |
- case $host_os in
|
|
1984 |
- openbsd*)
|
|
1985 |
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
1986 |
- ;;
|
|
1987 |
- *)
|
|
1988 |
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
1989 |
- ;;
|
|
1990 |
- esac
|
|
1991 |
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
1992 |
-fi
|
|
1993 |
-_LT_DECL([], [old_postinstall_cmds], [2])
|
|
1994 |
-_LT_DECL([], [old_postuninstall_cmds], [2])
|
|
1995 |
-_LT_TAGDECL([], [old_archive_cmds], [2],
|
|
1996 |
- [Commands used to build an old-style archive])
|
|
1997 |
-])# _LT_CMD_OLD_ARCHIVE
|
|
1998 |
-
|
|
1999 |
-
|
|
2000 |
-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
2001 |
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
|
2002 |
-# ----------------------------------------------------------------
|
|
2003 |
-# Check whether the given compiler option works
|
|
2004 |
-AC_DEFUN([_LT_COMPILER_OPTION],
|
|
2005 |
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2006 |
-m4_require([_LT_DECL_SED])dnl
|
|
2007 |
-AC_CACHE_CHECK([$1], [$2],
|
|
2008 |
- [$2=no
|
|
2009 |
- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
|
2010 |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2011 |
- lt_compiler_flag="$3"
|
|
2012 |
- # Insert the option either (1) after the last *FLAGS variable, or
|
|
2013 |
- # (2) before a word containing "conftest.", or (3) at the end.
|
|
2014 |
- # Note that $ac_compile itself does not contain backslashes and begins
|
|
2015 |
- # with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
2016 |
- # The option is referenced via a variable to avoid confusing sed.
|
|
2017 |
- lt_compile=`echo "$ac_compile" | $SED \
|
|
2018 |
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
2019 |
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
2020 |
- -e 's:$: $lt_compiler_flag:'`
|
|
2021 |
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
2022 |
- (eval "$lt_compile" 2>conftest.err)
|
|
2023 |
- ac_status=$?
|
|
2024 |
- cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
2025 |
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
2026 |
- if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
2027 |
- # The compiler can only warn and ignore the option if not recognized
|
|
2028 |
- # So say no if there are warnings other than the usual output.
|
|
2029 |
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
2030 |
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
2031 |
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
2032 |
- $2=yes
|
|
2033 |
- fi
|
|
2034 |
- fi
|
|
2035 |
- $RM conftest*
|
|
2036 |
-])
|
|
2037 |
-
|
|
2038 |
-if test x"[$]$2" = xyes; then
|
|
2039 |
- m4_if([$5], , :, [$5])
|
|
2040 |
-else
|
|
2041 |
- m4_if([$6], , :, [$6])
|
|
2042 |
-fi
|
|
2043 |
-])# _LT_COMPILER_OPTION
|
|
2044 |
-
|
|
2045 |
-# Old name:
|
|
2046 |
-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
|
|
2047 |
-dnl aclocal-1.4 backwards compatibility:
|
|
2048 |
-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
|
|
2049 |
-
|
|
2050 |
-
|
|
2051 |
-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
|
2052 |
-# [ACTION-SUCCESS], [ACTION-FAILURE])
|
|
2053 |
-# ----------------------------------------------------
|
|
2054 |
-# Check whether the given linker option works
|
|
2055 |
-AC_DEFUN([_LT_LINKER_OPTION],
|
|
2056 |
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2057 |
-m4_require([_LT_DECL_SED])dnl
|
|
2058 |
-AC_CACHE_CHECK([$1], [$2],
|
|
2059 |
- [$2=no
|
|
2060 |
- save_LDFLAGS="$LDFLAGS"
|
|
2061 |
- LDFLAGS="$LDFLAGS $3"
|
|
2062 |
- echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
2063 |
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
2064 |
- # The linker can only warn and ignore the option if not recognized
|
|
2065 |
- # So say no if there are warnings
|
|
2066 |
- if test -s conftest.err; then
|
|
2067 |
- # Append any errors to the config.log.
|
|
2068 |
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
|
2069 |
- $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
2070 |
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
2071 |
- if diff conftest.exp conftest.er2 >/dev/null; then
|
|
2072 |
- $2=yes
|
|
2073 |
- fi
|
|
2074 |
- else
|
|
2075 |
- $2=yes
|
|
2076 |
- fi
|
|
2077 |
- fi
|
|
2078 |
- $RM -r conftest*
|
|
2079 |
- LDFLAGS="$save_LDFLAGS"
|
|
2080 |
-])
|
|
2081 |
-
|
|
2082 |
-if test x"[$]$2" = xyes; then
|
|
2083 |
- m4_if([$4], , :, [$4])
|
|
2084 |
-else
|
|
2085 |
- m4_if([$5], , :, [$5])
|
|
2086 |
-fi
|
|
2087 |
-])# _LT_LINKER_OPTION
|
|
2088 |
-
|
|
2089 |
-# Old name:
|
|
2090 |
-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
|
|
2091 |
-dnl aclocal-1.4 backwards compatibility:
|
|
2092 |
-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
|
|
2093 |
-
|
|
2094 |
-
|
|
2095 |
-# LT_CMD_MAX_LEN
|
|
2096 |
-#---------------
|
|
2097 |
-AC_DEFUN([LT_CMD_MAX_LEN],
|
|
2098 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
2099 |
-# find the maximum length of command line arguments
|
|
2100 |
-AC_MSG_CHECKING([the maximum length of command line arguments])
|
|
2101 |
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
|
2102 |
- i=0
|
|
2103 |
- teststring="ABCD"
|
|
2104 |
-
|
|
2105 |
- case $build_os in
|
|
2106 |
- msdosdjgpp*)
|
|
2107 |
- # On DJGPP, this test can blow up pretty badly due to problems in libc
|
|
2108 |
- # (any single argument exceeding 2000 bytes causes a buffer overrun
|
|
2109 |
- # during glob expansion). Even if it were fixed, the result of this
|
|
2110 |
- # check would be larger than it should be.
|
|
2111 |
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
2112 |
- ;;
|
|
2113 |
-
|
|
2114 |
- gnu*)
|
|
2115 |
- # Under GNU Hurd, this test is not required because there is
|
|
2116 |
- # no limit to the length of command line arguments.
|
|
2117 |
- # Libtool will interpret -1 as no limit whatsoever
|
|
2118 |
- lt_cv_sys_max_cmd_len=-1;
|
|
2119 |
- ;;
|
|
2120 |
-
|
|
2121 |
- cygwin* | mingw* | cegcc*)
|
|
2122 |
- # On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
2123 |
- # about 5 minutes as the teststring grows exponentially.
|
|
2124 |
- # Worse, since 9x/ME are not pre-emptively multitasking,
|
|
2125 |
- # you end up with a "frozen" computer, even though with patience
|
|
2126 |
- # the test eventually succeeds (with a max line length of 256k).
|
|
2127 |
- # Instead, let's just punt: use the minimum linelength reported by
|
|
2128 |
- # all of the supported platforms: 8192 (on NT/2K/XP).
|
|
2129 |
- lt_cv_sys_max_cmd_len=8192;
|
|
2130 |
- ;;
|
|
2131 |
-
|
|
2132 |
- amigaos*)
|
|
2133 |
- # On AmigaOS with pdksh, this test takes hours, literally.
|
|
2134 |
- # So we just punt and use a minimum line length of 8192.
|
|
2135 |
- lt_cv_sys_max_cmd_len=8192;
|
|
2136 |
- ;;
|
|
2137 |
-
|
|
2138 |
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|
2139 |
- # This has been around since 386BSD, at least. Likely further.
|
|
2140 |
- if test -x /sbin/sysctl; then
|
|
2141 |
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
2142 |
- elif test -x /usr/sbin/sysctl; then
|
|
2143 |
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
2144 |
- else
|
|
2145 |
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
2146 |
- fi
|
|
2147 |
- # And add a safety zone
|
|
2148 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
2149 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
2150 |
- ;;
|
|
2151 |
-
|
|
2152 |
- interix*)
|
|
2153 |
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
2154 |
- lt_cv_sys_max_cmd_len=196608
|
|
2155 |
- ;;
|
|
2156 |
-
|
|
2157 |
- osf*)
|
|
2158 |
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
2159 |
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
2160 |
- # nice to cause kernel panics so lets avoid the loop below.
|
|
2161 |
- # First set a reasonable default.
|
|
2162 |
- lt_cv_sys_max_cmd_len=16384
|
|
2163 |
- #
|
|
2164 |
- if test -x /sbin/sysconfig; then
|
|
2165 |
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
2166 |
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
2167 |
- esac
|
|
2168 |
- fi
|
|
2169 |
- ;;
|
|
2170 |
- sco3.2v5*)
|
|
2171 |
- lt_cv_sys_max_cmd_len=102400
|
|
2172 |
- ;;
|
|
2173 |
- sysv5* | sco5v6* | sysv4.2uw2*)
|
|
2174 |
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
2175 |
- if test -n "$kargmax"; then
|
|
2176 |
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
|
2177 |
- else
|
|
2178 |
- lt_cv_sys_max_cmd_len=32768
|
|
2179 |
- fi
|
|
2180 |
- ;;
|
|
2181 |
- *)
|
|
2182 |
- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
2183 |
- if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
2184 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
2185 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
2186 |
- else
|
|
2187 |
- # Make teststring a little bigger before we do anything with it.
|
|
2188 |
- # a 1K string should be a reasonable start.
|
|
2189 |
- for i in 1 2 3 4 5 6 7 8 ; do
|
|
2190 |
- teststring=$teststring$teststring
|
|
2191 |
- done
|
|
2192 |
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
2193 |
- # If test is not a shell built-in, we'll probably end up computing a
|
|
2194 |
- # maximum length that is only half of the actual maximum length, but
|
|
2195 |
- # we can't tell.
|
|
2196 |
- while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
|
2197 |
- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
|
2198 |
- test $i != 17 # 1/2 MB should be enough
|
|
2199 |
- do
|
|
2200 |
- i=`expr $i + 1`
|
|
2201 |
- teststring=$teststring$teststring
|
|
2202 |
- done
|
|
2203 |
- # Only check the string length outside the loop.
|
|
2204 |
- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
|
2205 |
- teststring=
|
|
2206 |
- # Add a significant safety factor because C++ compilers can tack on
|
|
2207 |
- # massive amounts of additional arguments before passing them to the
|
|
2208 |
- # linker. It appears as though 1/2 is a usable value.
|
|
2209 |
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
2210 |
- fi
|
|
2211 |
- ;;
|
|
2212 |
- esac
|
|
2213 |
-])
|
|
2214 |
-if test -n $lt_cv_sys_max_cmd_len ; then
|
|
2215 |
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
|
2216 |
-else
|
|
2217 |
- AC_MSG_RESULT(none)
|
|
2218 |
-fi
|
|
2219 |
-max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
2220 |
-_LT_DECL([], [max_cmd_len], [0],
|
|
2221 |
- [What is the maximum length of a command?])
|
|
2222 |
-])# LT_CMD_MAX_LEN
|
|
2223 |
-
|
|
2224 |
-# Old name:
|
|
2225 |
-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
|
|
2226 |
-dnl aclocal-1.4 backwards compatibility:
|
|
2227 |
-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
|
|
2228 |
-
|
|
2229 |
-
|
|
2230 |
-# _LT_HEADER_DLFCN
|
|
2231 |
-# ----------------
|
|
2232 |
-m4_defun([_LT_HEADER_DLFCN],
|
|
2233 |
-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
|
|
2234 |
-])# _LT_HEADER_DLFCN
|
|
2235 |
-
|
|
2236 |
-
|
|
2237 |
-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|
2238 |
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|
2239 |
-# ----------------------------------------------------------------
|
|
2240 |
-m4_defun([_LT_TRY_DLOPEN_SELF],
|
|
2241 |
-[m4_require([_LT_HEADER_DLFCN])dnl
|
|
2242 |
-if test "$cross_compiling" = yes; then :
|
|
2243 |
- [$4]
|
|
2244 |
-else
|
|
2245 |
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
2246 |
- lt_status=$lt_dlunknown
|
|
2247 |
- cat > conftest.$ac_ext <<_LT_EOF
|
|
2248 |
-[#line __oline__ "configure"
|
|
2249 |
-#include "confdefs.h"
|
|
2250 |
-
|
|
2251 |
-#if HAVE_DLFCN_H
|
|
2252 |
-#include <dlfcn.h>
|
|
2253 |
-#endif
|
|
2254 |
-
|
|
2255 |
-#include <stdio.h>
|
|
2256 |
-
|
|
2257 |
-#ifdef RTLD_GLOBAL
|
|
2258 |
-# define LT_DLGLOBAL RTLD_GLOBAL
|
|
2259 |
-#else
|
|
2260 |
-# ifdef DL_GLOBAL
|
|
2261 |
-# define LT_DLGLOBAL DL_GLOBAL
|
|
2262 |
-# else
|
|
2263 |
-# define LT_DLGLOBAL 0
|
|
2264 |
-# endif
|
|
2265 |
-#endif
|
|
2266 |
-
|
|
2267 |
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
2268 |
- find out it does not work in some platform. */
|
|
2269 |
-#ifndef LT_DLLAZY_OR_NOW
|
|
2270 |
-# ifdef RTLD_LAZY
|
|
2271 |
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
2272 |
-# else
|
|
2273 |
-# ifdef DL_LAZY
|
|
2274 |
-# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
2275 |
-# else
|
|
2276 |
-# ifdef RTLD_NOW
|
|
2277 |
-# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
2278 |
-# else
|
|
2279 |
-# ifdef DL_NOW
|
|
2280 |
-# define LT_DLLAZY_OR_NOW DL_NOW
|
|
2281 |
-# else
|
|
2282 |
-# define LT_DLLAZY_OR_NOW 0
|
|
2283 |
-# endif
|
|
2284 |
-# endif
|
|
2285 |
-# endif
|
|
2286 |
-# endif
|
|
2287 |
-#endif
|
|
2288 |
-
|
|
2289 |
-void fnord() { int i=42;}
|
|
2290 |
-int main ()
|
|
2291 |
-{
|
|
2292 |
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
2293 |
- int status = $lt_dlunknown;
|
|
2294 |
-
|
|
2295 |
- if (self)
|
|
2296 |
- {
|
|
2297 |
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
2298 |
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
2299 |
- /* dlclose (self); */
|
|
2300 |
- }
|
|
2301 |
- else
|
|
2302 |
- puts (dlerror ());
|
|
2303 |
-
|
|
2304 |
- return status;
|
|
2305 |
-}]
|
|
2306 |
-_LT_EOF
|
|
2307 |
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
|
2308 |
- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
|
2309 |
- lt_status=$?
|
|
2310 |
- case x$lt_status in
|
|
2311 |
- x$lt_dlno_uscore) $1 ;;
|
|
2312 |
- x$lt_dlneed_uscore) $2 ;;
|
|
2313 |
- x$lt_dlunknown|x*) $3 ;;
|
|
2314 |
- esac
|
|
2315 |
- else :
|
|
2316 |
- # compilation failed
|
|
2317 |
- $3
|
|
2318 |
- fi
|
|
2319 |
-fi
|
|
2320 |
-rm -fr conftest*
|
|
2321 |
-])# _LT_TRY_DLOPEN_SELF
|
|
2322 |
-
|
|
2323 |
-
|
|
2324 |
-# LT_SYS_DLOPEN_SELF
|
|
2325 |
-# ------------------
|
|
2326 |
-AC_DEFUN([LT_SYS_DLOPEN_SELF],
|
|
2327 |
-[m4_require([_LT_HEADER_DLFCN])dnl
|
|
2328 |
-if test "x$enable_dlopen" != xyes; then
|
|
2329 |
- enable_dlopen=unknown
|
|
2330 |
- enable_dlopen_self=unknown
|
|
2331 |
- enable_dlopen_self_static=unknown
|
|
2332 |
-else
|
|
2333 |
- lt_cv_dlopen=no
|
|
2334 |
- lt_cv_dlopen_libs=
|
|
2335 |
-
|
|
2336 |
- case $host_os in
|
|
2337 |
- beos*)
|
|
2338 |
- lt_cv_dlopen="load_add_on"
|
|
2339 |
- lt_cv_dlopen_libs=
|
|
2340 |
- lt_cv_dlopen_self=yes
|
|
2341 |
- ;;
|
|
2342 |
-
|
|
2343 |
- mingw* | pw32* | cegcc*)
|
|
2344 |
- lt_cv_dlopen="LoadLibrary"
|
|
2345 |
- lt_cv_dlopen_libs=
|
|
2346 |
- ;;
|
|
2347 |
-
|
|
2348 |
- cygwin*)
|
|
2349 |
- lt_cv_dlopen="dlopen"
|
|
2350 |
- lt_cv_dlopen_libs=
|
|
2351 |
- ;;
|
|
2352 |
-
|
|
2353 |
- darwin*)
|
|
2354 |
- # if libdl is installed we need to link against it
|
|
2355 |
- AC_CHECK_LIB([dl], [dlopen],
|
|
2356 |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
|
2357 |
- lt_cv_dlopen="dyld"
|
|
2358 |
- lt_cv_dlopen_libs=
|
|
2359 |
- lt_cv_dlopen_self=yes
|
|
2360 |
- ])
|
|
2361 |
- ;;
|
|
2362 |
-
|
|
2363 |
- *)
|
|
2364 |
- AC_CHECK_FUNC([shl_load],
|
|
2365 |
- [lt_cv_dlopen="shl_load"],
|
|
2366 |
- [AC_CHECK_LIB([dld], [shl_load],
|
|
2367 |
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
|
|
2368 |
- [AC_CHECK_FUNC([dlopen],
|
|
2369 |
- [lt_cv_dlopen="dlopen"],
|
|
2370 |
- [AC_CHECK_LIB([dl], [dlopen],
|
|
2371 |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
|
2372 |
- [AC_CHECK_LIB([svld], [dlopen],
|
|
2373 |
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
|
2374 |
- [AC_CHECK_LIB([dld], [dld_link],
|
|
2375 |
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
|
|
2376 |
- ])
|
|
2377 |
- ])
|
|
2378 |
- ])
|
|
2379 |
- ])
|
|
2380 |
- ])
|
|
2381 |
- ;;
|
|
2382 |
- esac
|
|
2383 |
-
|
|
2384 |
- if test "x$lt_cv_dlopen" != xno; then
|
|
2385 |
- enable_dlopen=yes
|
|
2386 |
- else
|
|
2387 |
- enable_dlopen=no
|
|
2388 |
- fi
|
|
2389 |
-
|
|
2390 |
- case $lt_cv_dlopen in
|
|
2391 |
- dlopen)
|
|
2392 |
- save_CPPFLAGS="$CPPFLAGS"
|
|
2393 |
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
2394 |
-
|
|
2395 |
- save_LDFLAGS="$LDFLAGS"
|
|
2396 |
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
2397 |
-
|
|
2398 |
- save_LIBS="$LIBS"
|
|
2399 |
- LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
2400 |
-
|
|
2401 |
- AC_CACHE_CHECK([whether a program can dlopen itself],
|
|
2402 |
- lt_cv_dlopen_self, [dnl
|
|
2403 |
- _LT_TRY_DLOPEN_SELF(
|
|
2404 |
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
|
2405 |
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
|
2406 |
- ])
|
|
2407 |
-
|
|
2408 |
- if test "x$lt_cv_dlopen_self" = xyes; then
|
|
2409 |
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
|
2410 |
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
|
2411 |
- lt_cv_dlopen_self_static, [dnl
|
|
2412 |
- _LT_TRY_DLOPEN_SELF(
|
|
2413 |
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
|
2414 |
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
|
2415 |
- ])
|
|
2416 |
- fi
|
|
2417 |
-
|
|
2418 |
- CPPFLAGS="$save_CPPFLAGS"
|
|
2419 |
- LDFLAGS="$save_LDFLAGS"
|
|
2420 |
- LIBS="$save_LIBS"
|
|
2421 |
- ;;
|
|
2422 |
- esac
|
|
2423 |
-
|
|
2424 |
- case $lt_cv_dlopen_self in
|
|
2425 |
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|
2426 |
- *) enable_dlopen_self=unknown ;;
|
|
2427 |
- esac
|
|
2428 |
-
|
|
2429 |
- case $lt_cv_dlopen_self_static in
|
|
2430 |
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|
2431 |
- *) enable_dlopen_self_static=unknown ;;
|
|
2432 |
- esac
|
|
2433 |
-fi
|
|
2434 |
-_LT_DECL([dlopen_support], [enable_dlopen], [0],
|
|
2435 |
- [Whether dlopen is supported])
|
|
2436 |
-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
|
|
2437 |
- [Whether dlopen of programs is supported])
|
|
2438 |
-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
|
|
2439 |
- [Whether dlopen of statically linked programs is supported])
|
|
2440 |
-])# LT_SYS_DLOPEN_SELF
|
|
2441 |
-
|
|
2442 |
-# Old name:
|
|
2443 |
-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
|
|
2444 |
-dnl aclocal-1.4 backwards compatibility:
|
|
2445 |
-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
|
|
2446 |
-
|
|
2447 |
-
|
|
2448 |
-# _LT_COMPILER_C_O([TAGNAME])
|
|
2449 |
-# ---------------------------
|
|
2450 |
-# Check to see if options -c and -o are simultaneously supported by compiler.
|
|
2451 |
-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
|
|
2452 |
-m4_defun([_LT_COMPILER_C_O],
|
|
2453 |
-[m4_require([_LT_DECL_SED])dnl
|
|
2454 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2455 |
-m4_require([_LT_TAG_COMPILER])dnl
|
|
2456 |
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
|
2457 |
- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
|
2458 |
- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
|
2459 |
- $RM -r conftest 2>/dev/null
|
|
2460 |
- mkdir conftest
|
|
2461 |
- cd conftest
|
|
2462 |
- mkdir out
|
|
2463 |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
2464 |
-
|
|
2465 |
- lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
2466 |
- # Insert the option either (1) after the last *FLAGS variable, or
|
|
2467 |
- # (2) before a word containing "conftest.", or (3) at the end.
|
|
2468 |
- # Note that $ac_compile itself does not contain backslashes and begins
|
|
2469 |
- # with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
2470 |
- lt_compile=`echo "$ac_compile" | $SED \
|
|
2471 |
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
2472 |
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
2473 |
- -e 's:$: $lt_compiler_flag:'`
|
|
2474 |
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
2475 |
- (eval "$lt_compile" 2>out/conftest.err)
|
|
2476 |
- ac_status=$?
|
|
2477 |
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
|
2478 |
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
2479 |
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
2480 |
- then
|
|
2481 |
- # The compiler can only warn and ignore the option if not recognized
|
|
2482 |
- # So say no if there are warnings
|
|
2483 |
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
2484 |
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
2485 |
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
2486 |
- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
2487 |
- fi
|
|
2488 |
- fi
|
|
2489 |
- chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
|
2490 |
- $RM conftest*
|
|
2491 |
- # SGI C++ compiler will create directory out/ii_files/ for
|
|
2492 |
- # template instantiation
|
|
2493 |
- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
|
2494 |
- $RM out/* && rmdir out
|
|
2495 |
- cd ..
|
|
2496 |
- $RM -r conftest
|
|
2497 |
- $RM conftest*
|
|
2498 |
-])
|
|
2499 |
-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
|
|
2500 |
- [Does compiler simultaneously support -c and -o options?])
|
|
2501 |
-])# _LT_COMPILER_C_O
|
|
2502 |
-
|
|
2503 |
-
|
|
2504 |
-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
|
|
2505 |
-# ----------------------------------
|
|
2506 |
-# Check to see if we can do hard links to lock some files if needed
|
|
2507 |
-m4_defun([_LT_COMPILER_FILE_LOCKS],
|
|
2508 |
-[m4_require([_LT_ENABLE_LOCK])dnl
|
|
2509 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2510 |
-_LT_COMPILER_C_O([$1])
|
|
2511 |
-
|
|
2512 |
-hard_links="nottested"
|
|
2513 |
-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
|
2514 |
- # do not overwrite the value of need_locks provided by the user
|
|
2515 |
- AC_MSG_CHECKING([if we can lock with hard links])
|
|
2516 |
- hard_links=yes
|
|
2517 |
- $RM conftest*
|
|
2518 |
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
2519 |
- touch conftest.a
|
|
2520 |
- ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
2521 |
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
2522 |
- AC_MSG_RESULT([$hard_links])
|
|
2523 |
- if test "$hard_links" = no; then
|
|
2524 |
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
|
2525 |
- need_locks=warn
|
|
2526 |
- fi
|
|
2527 |
-else
|
|
2528 |
- need_locks=no
|
|
2529 |
-fi
|
|
2530 |
-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
|
|
2531 |
-])# _LT_COMPILER_FILE_LOCKS
|
|
2532 |
-
|
|
2533 |
-
|
|
2534 |
-# _LT_CHECK_OBJDIR
|
|
2535 |
-# ----------------
|
|
2536 |
-m4_defun([_LT_CHECK_OBJDIR],
|
|
2537 |
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
|
2538 |
-[rm -f .libs 2>/dev/null
|
|
2539 |
-mkdir .libs 2>/dev/null
|
|
2540 |
-if test -d .libs; then
|
|
2541 |
- lt_cv_objdir=.libs
|
|
2542 |
-else
|
|
2543 |
- # MS-DOS does not allow filenames that begin with a dot.
|
|
2544 |
- lt_cv_objdir=_libs
|
|
2545 |
-fi
|
|
2546 |
-rmdir .libs 2>/dev/null])
|
|
2547 |
-objdir=$lt_cv_objdir
|
|
2548 |
-_LT_DECL([], [objdir], [0],
|
|
2549 |
- [The name of the directory that contains temporary libtool files])dnl
|
|
2550 |
-m4_pattern_allow([LT_OBJDIR])dnl
|
|
2551 |
-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
|
|
2552 |
- [Define to the sub-directory in which libtool stores uninstalled libraries.])
|
|
2553 |
-])# _LT_CHECK_OBJDIR
|
|
2554 |
-
|
|
2555 |
-
|
|
2556 |
-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
|
|
2557 |
-# --------------------------------------
|
|
2558 |
-# Check hardcoding attributes.
|
|
2559 |
-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
|
|
2560 |
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
|
|
2561 |
-_LT_TAGVAR(hardcode_action, $1)=
|
|
2562 |
-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
|
|
2563 |
- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
|
|
2564 |
- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
|
2565 |
-
|
|
2566 |
- # We can hardcode non-existent directories.
|
|
2567 |
- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
|
|
2568 |
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
2569 |
- # have to relink, otherwise we might link with an installed library
|
|
2570 |
- # when we should be linking with a yet-to-be-installed one
|
|
2571 |
- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
|
2572 |
- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
|
|
2573 |
- # Linking always hardcodes the temporary library directory.
|
|
2574 |
- _LT_TAGVAR(hardcode_action, $1)=relink
|
|
2575 |
- else
|
|
2576 |
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
2577 |
- _LT_TAGVAR(hardcode_action, $1)=immediate
|
|
2578 |
- fi
|
|
2579 |
-else
|
|
2580 |
- # We cannot hardcode anything, or else we can only hardcode existing
|
|
2581 |
- # directories.
|
|
2582 |
- _LT_TAGVAR(hardcode_action, $1)=unsupported
|
|
2583 |
-fi
|
|
2584 |
-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
|
|
2585 |
-
|
|
2586 |
-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
|
|
2587 |
- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
|
|
2588 |
- # Fast installation is not supported
|
|
2589 |
- enable_fast_install=no
|
|
2590 |
-elif test "$shlibpath_overrides_runpath" = yes ||
|
|
2591 |
- test "$enable_shared" = no; then
|
|
2592 |
- # Fast installation is not necessary
|
|
2593 |
- enable_fast_install=needless
|
|
2594 |
-fi
|
|
2595 |
-_LT_TAGDECL([], [hardcode_action], [0],
|
|
2596 |
- [How to hardcode a shared library path into an executable])
|
|
2597 |
-])# _LT_LINKER_HARDCODE_LIBPATH
|
|
2598 |
-
|
|
2599 |
-
|
|
2600 |
-# _LT_CMD_STRIPLIB
|
|
2601 |
-# ----------------
|
|
2602 |
-m4_defun([_LT_CMD_STRIPLIB],
|
|
2603 |
-[m4_require([_LT_DECL_EGREP])
|
|
2604 |
-striplib=
|
|
2605 |
-old_striplib=
|
|
2606 |
-AC_MSG_CHECKING([whether stripping libraries is possible])
|
|
2607 |
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
|
2608 |
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|
2609 |
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|
2610 |
- AC_MSG_RESULT([yes])
|
|
2611 |
-else
|
|
2612 |
-# FIXME - insert some real tests, host_os isn't really good enough
|
|
2613 |
- case $host_os in
|
|
2614 |
- darwin*)
|
|
2615 |
- if test -n "$STRIP" ; then
|
|
2616 |
- striplib="$STRIP -x"
|
|
2617 |
- old_striplib="$STRIP -S"
|
|
2618 |
- AC_MSG_RESULT([yes])
|
|
2619 |
- else
|
|
2620 |
- AC_MSG_RESULT([no])
|
|
2621 |
- fi
|
|
2622 |
- ;;
|
|
2623 |
- *)
|
|
2624 |
- AC_MSG_RESULT([no])
|
|
2625 |
- ;;
|
|
2626 |
- esac
|
|
2627 |
-fi
|
|
2628 |
-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
|
|
2629 |
-_LT_DECL([], [striplib], [1])
|
|
2630 |
-])# _LT_CMD_STRIPLIB
|
|
2631 |
-
|
|
2632 |
-
|
|
2633 |
-# _LT_SYS_DYNAMIC_LINKER([TAG])
|
|
2634 |
-# -----------------------------
|
|
2635 |
-# PORTME Fill in your ld.so characteristics
|
|
2636 |
-m4_defun([_LT_SYS_DYNAMIC_LINKER],
|
|
2637 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
2638 |
-m4_require([_LT_DECL_EGREP])dnl
|
|
2639 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
2640 |
-m4_require([_LT_DECL_OBJDUMP])dnl
|
|
2641 |
-m4_require([_LT_DECL_SED])dnl
|
|
2642 |
-AC_MSG_CHECKING([dynamic linker characteristics])
|
|
2643 |
-m4_if([$1],
|
|
2644 |
- [], [
|
|
2645 |
-if test "$GCC" = yes; then
|
|
2646 |
- case $host_os in
|
|
2647 |
- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
|
2648 |
- *) lt_awk_arg="/^libraries:/" ;;
|
|
2649 |
- esac
|
|
2650 |
- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
2651 |
- if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
|
|
2652 |
- # if the path contains ";" then we assume it to be the separator
|
|
2653 |
- # otherwise default to the standard path separator (i.e. ":") - it is
|
|
2654 |
- # assumed that no part of a normal pathname contains ";" but that should
|
|
2655 |
- # okay in the real world where ";" in dirpaths is itself problematic.
|
|
2656 |
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2657 |
- else
|
|
2658 |
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2659 |
- fi
|
|
2660 |
- # Ok, now we have the path, separated by spaces, we can step through it
|
|
2661 |
- # and add multilib dir if necessary.
|
|
2662 |
- lt_tmp_lt_search_path_spec=
|
|
2663 |
- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
|
2664 |
- for lt_sys_path in $lt_search_path_spec; do
|
|
2665 |
- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
|
2666 |
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
|
2667 |
- else
|
|
2668 |
- test -d "$lt_sys_path" && \
|
|
2669 |
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
|
2670 |
- fi
|
|
2671 |
- done
|
|
2672 |
- lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
|
2673 |
-BEGIN {RS=" "; FS="/|\n";} {
|
|
2674 |
- lt_foo="";
|
|
2675 |
- lt_count=0;
|
|
2676 |
- for (lt_i = NF; lt_i > 0; lt_i--) {
|
|
2677 |
- if ($lt_i != "" && $lt_i != ".") {
|
|
2678 |
- if ($lt_i == "..") {
|
|
2679 |
- lt_count++;
|
|
2680 |
- } else {
|
|
2681 |
- if (lt_count == 0) {
|
|
2682 |
- lt_foo="/" $lt_i lt_foo;
|
|
2683 |
- } else {
|
|
2684 |
- lt_count--;
|
|
2685 |
- }
|
|
2686 |
- }
|
|
2687 |
- }
|
|
2688 |
- }
|
|
2689 |
- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
|
|
2690 |
- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
|
|
2691 |
-}'`
|
|
2692 |
- sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
|
|
2693 |
-else
|
|
2694 |
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
2695 |
-fi])
|
|
2696 |
-library_names_spec=
|
|
2697 |
-libname_spec='lib$name'
|
|
2698 |
-soname_spec=
|
|
2699 |
-shrext_cmds=".so"
|
|
2700 |
-postinstall_cmds=
|
|
2701 |
-postuninstall_cmds=
|
|
2702 |
-finish_cmds=
|
|
2703 |
-finish_eval=
|
|
2704 |
-shlibpath_var=
|
|
2705 |
-shlibpath_overrides_runpath=unknown
|
|
2706 |
-version_type=none
|
|
2707 |
-dynamic_linker="$host_os ld.so"
|
|
2708 |
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
2709 |
-need_lib_prefix=unknown
|
|
2710 |
-hardcode_into_libs=no
|
|
2711 |
-
|
|
2712 |
-# when you set need_version to no, make sure it does not cause -set_version
|
|
2713 |
-# flags to be left without arguments
|
|
2714 |
-need_version=unknown
|
|
2715 |
-
|
|
2716 |
-case $host_os in
|
|
2717 |
-aix3*)
|
|
2718 |
- version_type=linux
|
|
2719 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
2720 |
- shlibpath_var=LIBPATH
|
|
2721 |
-
|
|
2722 |
- # AIX 3 has no versioning support, so we append a major version to the name.
|
|
2723 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2724 |
- ;;
|
|
2725 |
-
|
|
2726 |
-aix[[4-9]]*)
|
|
2727 |
- version_type=linux
|
|
2728 |
- need_lib_prefix=no
|
|
2729 |
- need_version=no
|
|
2730 |
- hardcode_into_libs=yes
|
|
2731 |
- if test "$host_cpu" = ia64; then
|
|
2732 |
- # AIX 5 supports IA64
|
|
2733 |
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
2734 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2735 |
- else
|
|
2736 |
- # With GCC up to 2.95.x, collect2 would create an import file
|
|
2737 |
- # for dependence libraries. The import file would start with
|
|
2738 |
- # the line `#! .'. This would cause the generated library to
|
|
2739 |
- # depend on `.', always an invalid library. This was fixed in
|
|
2740 |
- # development snapshots of GCC prior to 3.0.
|
|
2741 |
- case $host_os in
|
|
2742 |
- aix4 | aix4.[[01]] | aix4.[[01]].*)
|
|
2743 |
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
2744 |
- echo ' yes '
|
|
2745 |
- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
|
2746 |
- :
|
|
2747 |
- else
|
|
2748 |
- can_build_shared=no
|
|
2749 |
- fi
|
|
2750 |
- ;;
|
|
2751 |
- esac
|
|
2752 |
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
2753 |
- # soname into executable. Probably we can add versioning support to
|
|
2754 |
- # collect2, so additional links can be useful in future.
|
|
2755 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
2756 |
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
2757 |
- # instead of lib<name>.a to let people know that these are not
|
|
2758 |
- # typical AIX shared libraries.
|
|
2759 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2760 |
- else
|
|
2761 |
- # We preserve .a as extension for shared libraries through AIX4.2
|
|
2762 |
- # and later when we are not doing run time linking.
|
|
2763 |
- library_names_spec='${libname}${release}.a $libname.a'
|
|
2764 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2765 |
- fi
|
|
2766 |
- shlibpath_var=LIBPATH
|
|
2767 |
- fi
|
|
2768 |
- ;;
|
|
2769 |
-
|
|
2770 |
-amigaos*)
|
|
2771 |
- case $host_cpu in
|
|
2772 |
- powerpc)
|
|
2773 |
- # Since July 2007 AmigaOS4 officially supports .so libraries.
|
|
2774 |
- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
|
2775 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2776 |
- ;;
|
|
2777 |
- m68k)
|
|
2778 |
- library_names_spec='$libname.ixlibrary $libname.a'
|
|
2779 |
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
2780 |
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
|
2781 |
- ;;
|
|
2782 |
- esac
|
|
2783 |
- ;;
|
|
2784 |
-
|
|
2785 |
-beos*)
|
|
2786 |
- library_names_spec='${libname}${shared_ext}'
|
|
2787 |
- dynamic_linker="$host_os ld.so"
|
|
2788 |
- shlibpath_var=LIBRARY_PATH
|
|
2789 |
- ;;
|
|
2790 |
-
|
|
2791 |
-bsdi[[45]]*)
|
|
2792 |
- version_type=linux
|
|
2793 |
- need_version=no
|
|
2794 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2795 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2796 |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
2797 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2798 |
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
2799 |
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
2800 |
- # the default ld.so.conf also contains /usr/contrib/lib and
|
|
2801 |
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
2802 |
- # libtool to hard-code these into programs
|
|
2803 |
- ;;
|
|
2804 |
-
|
|
2805 |
-cygwin* | mingw* | pw32* | cegcc*)
|
|
2806 |
- version_type=windows
|
|
2807 |
- shrext_cmds=".dll"
|
|
2808 |
- need_version=no
|
|
2809 |
- need_lib_prefix=no
|
|
2810 |
-
|
|
2811 |
- case $GCC,$host_os in
|
|
2812 |
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
2813 |
- library_names_spec='$libname.dll.a'
|
|
2814 |
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
2815 |
- postinstall_cmds='base_file=`basename \${file}`~
|
|
2816 |
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
2817 |
- dldir=$destdir/`dirname \$dlpath`~
|
|
2818 |
- test -d \$dldir || mkdir -p \$dldir~
|
|
2819 |
- $install_prog $dir/$dlname \$dldir/$dlname~
|
|
2820 |
- chmod a+x \$dldir/$dlname~
|
|
2821 |
- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
|
2822 |
- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
|
2823 |
- fi'
|
|
2824 |
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
2825 |
- dlpath=$dir/\$dldll~
|
|
2826 |
- $RM \$dlpath'
|
|
2827 |
- shlibpath_overrides_runpath=yes
|
|
2828 |
-
|
|
2829 |
- case $host_os in
|
|
2830 |
- cygwin*)
|
|
2831 |
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
2832 |
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
2833 |
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|
2834 |
- ;;
|
|
2835 |
- mingw* | cegcc*)
|
|
2836 |
- # MinGW DLLs use traditional 'lib' prefix
|
|
2837 |
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
2838 |
- sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
2839 |
- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
|
2840 |
- # It is most probably a Windows format PATH printed by
|
|
2841 |
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|
2842 |
- # path with ; separators, and with drive letters. We can handle the
|
|
2843 |
- # drive letters (cygwin fileutils understands them), so leave them,
|
|
2844 |
- # especially as we might pass files found there to a mingw objdump,
|
|
2845 |
- # which wouldn't understand a cygwinified path. Ahh.
|
|
2846 |
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
2847 |
- else
|
|
2848 |
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
2849 |
- fi
|
|
2850 |
- ;;
|
|
2851 |
- pw32*)
|
|
2852 |
- # pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
2853 |
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
2854 |
- ;;
|
|
2855 |
- esac
|
|
2856 |
- ;;
|
|
2857 |
-
|
|
2858 |
- *)
|
|
2859 |
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
2860 |
- ;;
|
|
2861 |
- esac
|
|
2862 |
- dynamic_linker='Win32 ld.exe'
|
|
2863 |
- # FIXME: first we should search . and the directory the executable is in
|
|
2864 |
- shlibpath_var=PATH
|
|
2865 |
- ;;
|
|
2866 |
-
|
|
2867 |
-darwin* | rhapsody*)
|
|
2868 |
- dynamic_linker="$host_os dyld"
|
|
2869 |
- version_type=darwin
|
|
2870 |
- need_lib_prefix=no
|
|
2871 |
- need_version=no
|
|
2872 |
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
2873 |
- soname_spec='${libname}${release}${major}$shared_ext'
|
|
2874 |
- shlibpath_overrides_runpath=yes
|
|
2875 |
- shlibpath_var=DYLD_LIBRARY_PATH
|
|
2876 |
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
2877 |
-m4_if([$1], [],[
|
|
2878 |
- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
|
|
2879 |
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
2880 |
- ;;
|
|
2881 |
-
|
|
2882 |
-dgux*)
|
|
2883 |
- version_type=linux
|
|
2884 |
- need_lib_prefix=no
|
|
2885 |
- need_version=no
|
|
2886 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
2887 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2888 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2889 |
- ;;
|
|
2890 |
-
|
|
2891 |
-freebsd1*)
|
|
2892 |
- dynamic_linker=no
|
|
2893 |
- ;;
|
|
2894 |
-
|
|
2895 |
-freebsd* | dragonfly*)
|
|
2896 |
- # DragonFly does not have aout. When/if they implement a new
|
|
2897 |
- # versioning mechanism, adjust this.
|
|
2898 |
- if test -x /usr/bin/objformat; then
|
|
2899 |
- objformat=`/usr/bin/objformat`
|
|
2900 |
- else
|
|
2901 |
- case $host_os in
|
|
2902 |
- freebsd[[123]]*) objformat=aout ;;
|
|
2903 |
- *) objformat=elf ;;
|
|
2904 |
- esac
|
|
2905 |
- fi
|
|
2906 |
- version_type=freebsd-$objformat
|
|
2907 |
- case $version_type in
|
|
2908 |
- freebsd-elf*)
|
|
2909 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
2910 |
- need_version=no
|
|
2911 |
- need_lib_prefix=no
|
|
2912 |
- ;;
|
|
2913 |
- freebsd-*)
|
|
2914 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
2915 |
- need_version=yes
|
|
2916 |
- ;;
|
|
2917 |
- esac
|
|
2918 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2919 |
- case $host_os in
|
|
2920 |
- freebsd2*)
|
|
2921 |
- shlibpath_overrides_runpath=yes
|
|
2922 |
- ;;
|
|
2923 |
- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
|
2924 |
- shlibpath_overrides_runpath=yes
|
|
2925 |
- hardcode_into_libs=yes
|
|
2926 |
- ;;
|
|
2927 |
- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
|
2928 |
- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
2929 |
- shlibpath_overrides_runpath=no
|
|
2930 |
- hardcode_into_libs=yes
|
|
2931 |
- ;;
|
|
2932 |
- *) # from 4.6 on, and DragonFly
|
|
2933 |
- shlibpath_overrides_runpath=yes
|
|
2934 |
- hardcode_into_libs=yes
|
|
2935 |
- ;;
|
|
2936 |
- esac
|
|
2937 |
- ;;
|
|
2938 |
-
|
|
2939 |
-gnu*)
|
|
2940 |
- version_type=linux
|
|
2941 |
- need_lib_prefix=no
|
|
2942 |
- need_version=no
|
|
2943 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
2944 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2945 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2946 |
- hardcode_into_libs=yes
|
|
2947 |
- ;;
|
|
2948 |
-
|
|
2949 |
-hpux9* | hpux10* | hpux11*)
|
|
2950 |
- # Give a soname corresponding to the major version so that dld.sl refuses to
|
|
2951 |
- # link against other versions.
|
|
2952 |
- version_type=sunos
|
|
2953 |
- need_lib_prefix=no
|
|
2954 |
- need_version=no
|
|
2955 |
- case $host_cpu in
|
|
2956 |
- ia64*)
|
|
2957 |
- shrext_cmds='.so'
|
|
2958 |
- hardcode_into_libs=yes
|
|
2959 |
- dynamic_linker="$host_os dld.so"
|
|
2960 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
2961 |
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
2962 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2963 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2964 |
- if test "X$HPUX_IA64_MODE" = X32; then
|
|
2965 |
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
2966 |
- else
|
|
2967 |
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
2968 |
- fi
|
|
2969 |
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
2970 |
- ;;
|
|
2971 |
- hppa*64*)
|
|
2972 |
- shrext_cmds='.sl'
|
|
2973 |
- hardcode_into_libs=yes
|
|
2974 |
- dynamic_linker="$host_os dld.sl"
|
|
2975 |
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
2976 |
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
2977 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2978 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2979 |
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
2980 |
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
2981 |
- ;;
|
|
2982 |
- *)
|
|
2983 |
- shrext_cmds='.sl'
|
|
2984 |
- dynamic_linker="$host_os dld.sl"
|
|
2985 |
- shlibpath_var=SHLIB_PATH
|
|
2986 |
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
2987 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
2988 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
2989 |
- ;;
|
|
2990 |
- esac
|
|
2991 |
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
2992 |
- postinstall_cmds='chmod 555 $lib'
|
|
2993 |
- ;;
|
|
2994 |
-
|
|
2995 |
-interix[[3-9]]*)
|
|
2996 |
- version_type=linux
|
|
2997 |
- need_lib_prefix=no
|
|
2998 |
- need_version=no
|
|
2999 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
3000 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3001 |
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
3002 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3003 |
- shlibpath_overrides_runpath=no
|
|
3004 |
- hardcode_into_libs=yes
|
|
3005 |
- ;;
|
|
3006 |
-
|
|
3007 |
-irix5* | irix6* | nonstopux*)
|
|
3008 |
- case $host_os in
|
|
3009 |
- nonstopux*) version_type=nonstopux ;;
|
|
3010 |
- *)
|
|
3011 |
- if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
3012 |
- version_type=linux
|
|
3013 |
- else
|
|
3014 |
- version_type=irix
|
|
3015 |
- fi ;;
|
|
3016 |
- esac
|
|
3017 |
- need_lib_prefix=no
|
|
3018 |
- need_version=no
|
|
3019 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3020 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
3021 |
- case $host_os in
|
|
3022 |
- irix5* | nonstopux*)
|
|
3023 |
- libsuff= shlibsuff=
|
|
3024 |
- ;;
|
|
3025 |
- *)
|
|
3026 |
- case $LD in # libtool.m4 will add one of these switches to LD
|
|
3027 |
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
3028 |
- libsuff= shlibsuff= libmagic=32-bit;;
|
|
3029 |
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
3030 |
- libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
3031 |
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
3032 |
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
3033 |
- *) libsuff= shlibsuff= libmagic=never-match;;
|
|
3034 |
- esac
|
|
3035 |
- ;;
|
|
3036 |
- esac
|
|
3037 |
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
3038 |
- shlibpath_overrides_runpath=no
|
|
3039 |
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
3040 |
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
3041 |
- hardcode_into_libs=yes
|
|
3042 |
- ;;
|
|
3043 |
-
|
|
3044 |
-# No shared lib support for Linux oldld, aout, or coff.
|
|
3045 |
-linux*oldld* | linux*aout* | linux*coff*)
|
|
3046 |
- dynamic_linker=no
|
|
3047 |
- ;;
|
|
3048 |
-
|
|
3049 |
-# This must be Linux ELF.
|
|
3050 |
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
3051 |
- version_type=linux
|
|
3052 |
- need_lib_prefix=no
|
|
3053 |
- need_version=no
|
|
3054 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3055 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3056 |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
3057 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3058 |
- shlibpath_overrides_runpath=no
|
|
3059 |
- # Some binutils ld are patched to set DT_RUNPATH
|
|
3060 |
- save_LDFLAGS=$LDFLAGS
|
|
3061 |
- save_libdir=$libdir
|
|
3062 |
- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
|
|
3063 |
- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
|
|
3064 |
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
|
|
3065 |
- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
|
|
3066 |
- [shlibpath_overrides_runpath=yes])])
|
|
3067 |
- LDFLAGS=$save_LDFLAGS
|
|
3068 |
- libdir=$save_libdir
|
|
3069 |
-
|
|
3070 |
- # This implies no fast_install, which is unacceptable.
|
|
3071 |
- # Some rework will be needed to allow for fast_install
|
|
3072 |
- # before this can be enabled.
|
|
3073 |
- hardcode_into_libs=yes
|
|
3074 |
-
|
|
3075 |
- # Append ld.so.conf contents to the search path
|
|
3076 |
- if test -f /etc/ld.so.conf; then
|
|
3077 |
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
|
3078 |
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
3079 |
- fi
|
|
3080 |
-
|
|
3081 |
- # We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
3082 |
- # powerpc, because MkLinux only supported shared libraries with the
|
|
3083 |
- # GNU dynamic linker. Since this was broken with cross compilers,
|
|
3084 |
- # most powerpc-linux boxes support dynamic linking these days and
|
|
3085 |
- # people can always --disable-shared, the test was removed, and we
|
|
3086 |
- # assume the GNU/Linux dynamic linker is in use.
|
|
3087 |
- dynamic_linker='GNU/Linux ld.so'
|
|
3088 |
- ;;
|
|
3089 |
-
|
|
3090 |
-netbsdelf*-gnu)
|
|
3091 |
- version_type=linux
|
|
3092 |
- need_lib_prefix=no
|
|
3093 |
- need_version=no
|
|
3094 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
3095 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3096 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3097 |
- shlibpath_overrides_runpath=no
|
|
3098 |
- hardcode_into_libs=yes
|
|
3099 |
- dynamic_linker='NetBSD ld.elf_so'
|
|
3100 |
- ;;
|
|
3101 |
-
|
|
3102 |
-netbsd*)
|
|
3103 |
- version_type=sunos
|
|
3104 |
- need_lib_prefix=no
|
|
3105 |
- need_version=no
|
|
3106 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
3107 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
3108 |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
3109 |
- dynamic_linker='NetBSD (a.out) ld.so'
|
|
3110 |
- else
|
|
3111 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
3112 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3113 |
- dynamic_linker='NetBSD ld.elf_so'
|
|
3114 |
- fi
|
|
3115 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3116 |
- shlibpath_overrides_runpath=yes
|
|
3117 |
- hardcode_into_libs=yes
|
|
3118 |
- ;;
|
|
3119 |
-
|
|
3120 |
-newsos6)
|
|
3121 |
- version_type=linux
|
|
3122 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3123 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3124 |
- shlibpath_overrides_runpath=yes
|
|
3125 |
- ;;
|
|
3126 |
-
|
|
3127 |
-*nto* | *qnx*)
|
|
3128 |
- version_type=qnx
|
|
3129 |
- need_lib_prefix=no
|
|
3130 |
- need_version=no
|
|
3131 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3132 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3133 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3134 |
- shlibpath_overrides_runpath=no
|
|
3135 |
- hardcode_into_libs=yes
|
|
3136 |
- dynamic_linker='ldqnx.so'
|
|
3137 |
- ;;
|
|
3138 |
-
|
|
3139 |
-openbsd*)
|
|
3140 |
- version_type=sunos
|
|
3141 |
- sys_lib_dlsearch_path_spec="/usr/lib"
|
|
3142 |
- need_lib_prefix=no
|
|
3143 |
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
3144 |
- case $host_os in
|
|
3145 |
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
3146 |
- *) need_version=no ;;
|
|
3147 |
- esac
|
|
3148 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
3149 |
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
3150 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3151 |
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
3152 |
- case $host_os in
|
|
3153 |
- openbsd2.[[89]] | openbsd2.[[89]].*)
|
|
3154 |
- shlibpath_overrides_runpath=no
|
|
3155 |
- ;;
|
|
3156 |
- *)
|
|
3157 |
- shlibpath_overrides_runpath=yes
|
|
3158 |
- ;;
|
|
3159 |
- esac
|
|
3160 |
- else
|
|
3161 |
- shlibpath_overrides_runpath=yes
|
|
3162 |
- fi
|
|
3163 |
- ;;
|
|
3164 |
-
|
|
3165 |
-os2*)
|
|
3166 |
- libname_spec='$name'
|
|
3167 |
- shrext_cmds=".dll"
|
|
3168 |
- need_lib_prefix=no
|
|
3169 |
- library_names_spec='$libname${shared_ext} $libname.a'
|
|
3170 |
- dynamic_linker='OS/2 ld.exe'
|
|
3171 |
- shlibpath_var=LIBPATH
|
|
3172 |
- ;;
|
|
3173 |
-
|
|
3174 |
-osf3* | osf4* | osf5*)
|
|
3175 |
- version_type=osf
|
|
3176 |
- need_lib_prefix=no
|
|
3177 |
- need_version=no
|
|
3178 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3179 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3180 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3181 |
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
3182 |
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
3183 |
- ;;
|
|
3184 |
-
|
|
3185 |
-rdos*)
|
|
3186 |
- dynamic_linker=no
|
|
3187 |
- ;;
|
|
3188 |
-
|
|
3189 |
-solaris*)
|
|
3190 |
- version_type=linux
|
|
3191 |
- need_lib_prefix=no
|
|
3192 |
- need_version=no
|
|
3193 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3194 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3195 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3196 |
- shlibpath_overrides_runpath=yes
|
|
3197 |
- hardcode_into_libs=yes
|
|
3198 |
- # ldd complains unless libraries are executable
|
|
3199 |
- postinstall_cmds='chmod +x $lib'
|
|
3200 |
- ;;
|
|
3201 |
-
|
|
3202 |
-sunos4*)
|
|
3203 |
- version_type=sunos
|
|
3204 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
3205 |
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
3206 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3207 |
- shlibpath_overrides_runpath=yes
|
|
3208 |
- if test "$with_gnu_ld" = yes; then
|
|
3209 |
- need_lib_prefix=no
|
|
3210 |
- fi
|
|
3211 |
- need_version=yes
|
|
3212 |
- ;;
|
|
3213 |
-
|
|
3214 |
-sysv4 | sysv4.3*)
|
|
3215 |
- version_type=linux
|
|
3216 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3217 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3218 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3219 |
- case $host_vendor in
|
|
3220 |
- sni)
|
|
3221 |
- shlibpath_overrides_runpath=no
|
|
3222 |
- need_lib_prefix=no
|
|
3223 |
- runpath_var=LD_RUN_PATH
|
|
3224 |
- ;;
|
|
3225 |
- siemens)
|
|
3226 |
- need_lib_prefix=no
|
|
3227 |
- ;;
|
|
3228 |
- motorola)
|
|
3229 |
- need_lib_prefix=no
|
|
3230 |
- need_version=no
|
|
3231 |
- shlibpath_overrides_runpath=no
|
|
3232 |
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
3233 |
- ;;
|
|
3234 |
- esac
|
|
3235 |
- ;;
|
|
3236 |
-
|
|
3237 |
-sysv4*MP*)
|
|
3238 |
- if test -d /usr/nec ;then
|
|
3239 |
- version_type=linux
|
|
3240 |
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
3241 |
- soname_spec='$libname${shared_ext}.$major'
|
|
3242 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3243 |
- fi
|
|
3244 |
- ;;
|
|
3245 |
-
|
|
3246 |
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
3247 |
- version_type=freebsd-elf
|
|
3248 |
- need_lib_prefix=no
|
|
3249 |
- need_version=no
|
|
3250 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
3251 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3252 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3253 |
- shlibpath_overrides_runpath=yes
|
|
3254 |
- hardcode_into_libs=yes
|
|
3255 |
- if test "$with_gnu_ld" = yes; then
|
|
3256 |
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
3257 |
- else
|
|
3258 |
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
3259 |
- case $host_os in
|
|
3260 |
- sco3.2v5*)
|
|
3261 |
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
3262 |
- ;;
|
|
3263 |
- esac
|
|
3264 |
- fi
|
|
3265 |
- sys_lib_dlsearch_path_spec='/usr/lib'
|
|
3266 |
- ;;
|
|
3267 |
-
|
|
3268 |
-tpf*)
|
|
3269 |
- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
|
3270 |
- version_type=linux
|
|
3271 |
- need_lib_prefix=no
|
|
3272 |
- need_version=no
|
|
3273 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3274 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3275 |
- shlibpath_overrides_runpath=no
|
|
3276 |
- hardcode_into_libs=yes
|
|
3277 |
- ;;
|
|
3278 |
-
|
|
3279 |
-uts4*)
|
|
3280 |
- version_type=linux
|
|
3281 |
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
3282 |
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
3283 |
- shlibpath_var=LD_LIBRARY_PATH
|
|
3284 |
- ;;
|
|
3285 |
-
|
|
3286 |
-*)
|
|
3287 |
- dynamic_linker=no
|
|
3288 |
- ;;
|
|
3289 |
-esac
|
|
3290 |
-AC_MSG_RESULT([$dynamic_linker])
|
|
3291 |
-test "$dynamic_linker" = no && can_build_shared=no
|
|
3292 |
-
|
|
3293 |
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
3294 |
-if test "$GCC" = yes; then
|
|
3295 |
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
3296 |
-fi
|
|
3297 |
-
|
|
3298 |
-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
|
3299 |
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
|
3300 |
-fi
|
|
3301 |
-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
|
3302 |
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
|
3303 |
-fi
|
|
3304 |
-
|
|
3305 |
-_LT_DECL([], [variables_saved_for_relink], [1],
|
|
3306 |
- [Variables whose values should be saved in libtool wrapper scripts and
|
|
3307 |
- restored at link time])
|
|
3308 |
-_LT_DECL([], [need_lib_prefix], [0],
|
|
3309 |
- [Do we need the "lib" prefix for modules?])
|
|
3310 |
-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
|
|
3311 |
-_LT_DECL([], [version_type], [0], [Library versioning type])
|
|
3312 |
-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
|
|
3313 |
-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
|
|
3314 |
-_LT_DECL([], [shlibpath_overrides_runpath], [0],
|
|
3315 |
- [Is shlibpath searched before the hard-coded library search path?])
|
|
3316 |
-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
|
|
3317 |
-_LT_DECL([], [library_names_spec], [1],
|
|
3318 |
- [[List of archive names. First name is the real one, the rest are links.
|
|
3319 |
- The last name is the one that the linker finds with -lNAME]])
|
|
3320 |
-_LT_DECL([], [soname_spec], [1],
|
|
3321 |
- [[The coded name of the library, if different from the real name]])
|
|
3322 |
-_LT_DECL([], [postinstall_cmds], [2],
|
|
3323 |
- [Command to use after installation of a shared archive])
|
|
3324 |
-_LT_DECL([], [postuninstall_cmds], [2],
|
|
3325 |
- [Command to use after uninstallation of a shared archive])
|
|
3326 |
-_LT_DECL([], [finish_cmds], [2],
|
|
3327 |
- [Commands used to finish a libtool library installation in a directory])
|
|
3328 |
-_LT_DECL([], [finish_eval], [1],
|
|
3329 |
- [[As "finish_cmds", except a single script fragment to be evaled but
|
|
3330 |
- not shown]])
|
|
3331 |
-_LT_DECL([], [hardcode_into_libs], [0],
|
|
3332 |
- [Whether we should hardcode library paths into libraries])
|
|
3333 |
-_LT_DECL([], [sys_lib_search_path_spec], [2],
|
|
3334 |
- [Compile-time system search path for libraries])
|
|
3335 |
-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
|
|
3336 |
- [Run-time system search path for libraries])
|
|
3337 |
-])# _LT_SYS_DYNAMIC_LINKER
|
|
3338 |
-
|
|
3339 |
-
|
|
3340 |
-# _LT_PATH_TOOL_PREFIX(TOOL)
|
|
3341 |
-# --------------------------
|
|
3342 |
-# find a file program which can recognize shared library
|
|
3343 |
-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
|
|
3344 |
-[m4_require([_LT_DECL_EGREP])dnl
|
|
3345 |
-AC_MSG_CHECKING([for $1])
|
|
3346 |
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
|
3347 |
-[case $MAGIC_CMD in
|
|
3348 |
-[[\\/*] | ?:[\\/]*])
|
|
3349 |
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|
3350 |
- ;;
|
|
3351 |
-*)
|
|
3352 |
- lt_save_MAGIC_CMD="$MAGIC_CMD"
|
|
3353 |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
3354 |
-dnl $ac_dummy forces splitting on constant user-supplied paths.
|
|
3355 |
-dnl POSIX.2 word splitting is done only on the output of word expansions,
|
|
3356 |
-dnl not every word. This closes a longstanding sh security hole.
|
|
3357 |
- ac_dummy="m4_if([$2], , $PATH, [$2])"
|
|
3358 |
- for ac_dir in $ac_dummy; do
|
|
3359 |
- IFS="$lt_save_ifs"
|
|
3360 |
- test -z "$ac_dir" && ac_dir=.
|
|
3361 |
- if test -f $ac_dir/$1; then
|
|
3362 |
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
|
3363 |
- if test -n "$file_magic_test_file"; then
|
|
3364 |
- case $deplibs_check_method in
|
|
3365 |
- "file_magic "*)
|
|
3366 |
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
3367 |
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
3368 |
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
3369 |
- $EGREP "$file_magic_regex" > /dev/null; then
|
|
3370 |
- :
|
|
3371 |
- else
|
|
3372 |
- cat <<_LT_EOF 1>&2
|
|
3373 |
-
|
|
3374 |
-*** Warning: the command libtool uses to detect shared libraries,
|
|
3375 |
-*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
3376 |
-*** The result is that libtool may fail to recognize shared libraries
|
|
3377 |
-*** as such. This will affect the creation of libtool libraries that
|
|
3378 |
-*** depend on shared libraries, but programs linked with such libtool
|
|
3379 |
-*** libraries will work regardless of this problem. Nevertheless, you
|
|
3380 |
-*** may want to report the problem to your system manager and/or to
|
|
3381 |
-*** bug-libtool@gnu.org
|
|
3382 |
-
|
|
3383 |
-_LT_EOF
|
|
3384 |
- fi ;;
|
|
3385 |
- esac
|
|
3386 |
- fi
|
|
3387 |
- break
|
|
3388 |
- fi
|
|
3389 |
- done
|
|
3390 |
- IFS="$lt_save_ifs"
|
|
3391 |
- MAGIC_CMD="$lt_save_MAGIC_CMD"
|
|
3392 |
- ;;
|
|
3393 |
-esac])
|
|
3394 |
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
3395 |
-if test -n "$MAGIC_CMD"; then
|
|
3396 |
- AC_MSG_RESULT($MAGIC_CMD)
|
|
3397 |
-else
|
|
3398 |
- AC_MSG_RESULT(no)
|
|
3399 |
-fi
|
|
3400 |
-_LT_DECL([], [MAGIC_CMD], [0],
|
|
3401 |
- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
|
|
3402 |
-])# _LT_PATH_TOOL_PREFIX
|
|
3403 |
-
|
|
3404 |
-# Old name:
|
|
3405 |
-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
|
|
3406 |
-dnl aclocal-1.4 backwards compatibility:
|
|
3407 |
-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
|
|
3408 |
-
|
|
3409 |
-
|
|
3410 |
-# _LT_PATH_MAGIC
|
|
3411 |
-# --------------
|
|
3412 |
-# find a file program which can recognize a shared library
|
|
3413 |
-m4_defun([_LT_PATH_MAGIC],
|
|
3414 |
-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
|
3415 |
-if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
3416 |
- if test -n "$ac_tool_prefix"; then
|
|
3417 |
- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
|
3418 |
- else
|
|
3419 |
- MAGIC_CMD=:
|
|
3420 |
- fi
|
|
3421 |
-fi
|
|
3422 |
-])# _LT_PATH_MAGIC
|
|
3423 |
-
|
|
3424 |
-
|
|
3425 |
-# LT_PATH_LD
|
|
3426 |
-# ----------
|
|
3427 |
-# find the pathname to the GNU or non-GNU linker
|
|
3428 |
-AC_DEFUN([LT_PATH_LD],
|
|
3429 |
-[AC_REQUIRE([AC_PROG_CC])dnl
|
|
3430 |
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
3431 |
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
3432 |
-m4_require([_LT_DECL_SED])dnl
|
|
3433 |
-m4_require([_LT_DECL_EGREP])dnl
|
|
3434 |
-
|
|
3435 |
-AC_ARG_WITH([gnu-ld],
|
|
3436 |
- [AS_HELP_STRING([--with-gnu-ld],
|
|
3437 |
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
|
3438 |
- [test "$withval" = no || with_gnu_ld=yes],
|
|
3439 |
- [with_gnu_ld=no])dnl
|
|
3440 |
-
|
|
3441 |
-ac_prog=ld
|
|
3442 |
-if test "$GCC" = yes; then
|
|
3443 |
- # Check if gcc -print-prog-name=ld gives a path.
|
|
3444 |
- AC_MSG_CHECKING([for ld used by $CC])
|
|
3445 |
- case $host in
|
|
3446 |
- *-*-mingw*)
|
|
3447 |
- # gcc leaves a trailing carriage return which upsets mingw
|
|
3448 |
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
3449 |
- *)
|
|
3450 |
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
3451 |
- esac
|
|
3452 |
- case $ac_prog in
|
|
3453 |
- # Accept absolute paths.
|
|
3454 |
- [[\\/]]* | ?:[[\\/]]*)
|
|
3455 |
- re_direlt='/[[^/]][[^/]]*/\.\./'
|
|
3456 |
- # Canonicalize the pathname of ld
|
|
3457 |
- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
|
3458 |
- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
|
3459 |
- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
|
3460 |
- done
|
|
3461 |
- test -z "$LD" && LD="$ac_prog"
|
|
3462 |
- ;;
|
|
3463 |
- "")
|
|
3464 |
- # If it fails, then pretend we aren't using GCC.
|
|
3465 |
- ac_prog=ld
|
|
3466 |
- ;;
|
|
3467 |
- *)
|
|
3468 |
- # If it is relative, then search for the first ld in PATH.
|
|
3469 |
- with_gnu_ld=unknown
|
|
3470 |
- ;;
|
|
3471 |
- esac
|
|
3472 |
-elif test "$with_gnu_ld" = yes; then
|
|
3473 |
- AC_MSG_CHECKING([for GNU ld])
|
|
3474 |
-else
|
|
3475 |
- AC_MSG_CHECKING([for non-GNU ld])
|
|
3476 |
-fi
|
|
3477 |
-AC_CACHE_VAL(lt_cv_path_LD,
|
|
3478 |
-[if test -z "$LD"; then
|
|
3479 |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
3480 |
- for ac_dir in $PATH; do
|
|
3481 |
- IFS="$lt_save_ifs"
|
|
3482 |
- test -z "$ac_dir" && ac_dir=.
|
|
3483 |
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
3484 |
- lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
3485 |
- # Check to see if the program is GNU ld. I'd rather use --version,
|
|
3486 |
- # but apparently some variants of GNU ld only accept -v.
|
|
3487 |
- # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
3488 |
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
3489 |
- *GNU* | *'with BFD'*)
|
|
3490 |
- test "$with_gnu_ld" != no && break
|
|
3491 |
- ;;
|
|
3492 |
- *)
|
|
3493 |
- test "$with_gnu_ld" != yes && break
|
|
3494 |
- ;;
|
|
3495 |
- esac
|
|
3496 |
- fi
|
|
3497 |
- done
|
|
3498 |
- IFS="$lt_save_ifs"
|
|
3499 |
-else
|
|
3500 |
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
3501 |
-fi])
|
|
3502 |
-LD="$lt_cv_path_LD"
|
|
3503 |
-if test -n "$LD"; then
|
|
3504 |
- AC_MSG_RESULT($LD)
|
|
3505 |
-else
|
|
3506 |
- AC_MSG_RESULT(no)
|
|
3507 |
-fi
|
|
3508 |
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
|
3509 |
-_LT_PATH_LD_GNU
|
|
3510 |
-AC_SUBST([LD])
|
|
3511 |
-
|
|
3512 |
-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
|
|
3513 |
-])# LT_PATH_LD
|
|
3514 |
-
|
|
3515 |
-# Old names:
|
|
3516 |
-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
|
|
3517 |
-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
|
|
3518 |
-dnl aclocal-1.4 backwards compatibility:
|
|
3519 |
-dnl AC_DEFUN([AM_PROG_LD], [])
|
|
3520 |
-dnl AC_DEFUN([AC_PROG_LD], [])
|
|
3521 |
-
|
|
3522 |
-
|
|
3523 |
-# _LT_PATH_LD_GNU
|
|
3524 |
-#- --------------
|
|
3525 |
-m4_defun([_LT_PATH_LD_GNU],
|
|
3526 |
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
|
3527 |
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
3528 |
-case `$LD -v 2>&1 </dev/null` in
|
|
3529 |
-*GNU* | *'with BFD'*)
|
|
3530 |
- lt_cv_prog_gnu_ld=yes
|
|
3531 |
- ;;
|
|
3532 |
-*)
|
|
3533 |
- lt_cv_prog_gnu_ld=no
|
|
3534 |
- ;;
|
|
3535 |
-esac])
|
|
3536 |
-with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
3537 |
-])# _LT_PATH_LD_GNU
|
|
3538 |
-
|
|
3539 |
-
|
|
3540 |
-# _LT_CMD_RELOAD
|
|
3541 |
-# --------------
|
|
3542 |
-# find reload flag for linker
|
|
3543 |
-# -- PORTME Some linkers may need a different reload flag.
|
|
3544 |
-m4_defun([_LT_CMD_RELOAD],
|
|
3545 |
-[AC_CACHE_CHECK([for $LD option to reload object files],
|
|
3546 |
- lt_cv_ld_reload_flag,
|
|
3547 |
- [lt_cv_ld_reload_flag='-r'])
|
|
3548 |
-reload_flag=$lt_cv_ld_reload_flag
|
|
3549 |
-case $reload_flag in
|
|
3550 |
-"" | " "*) ;;
|
|
3551 |
-*) reload_flag=" $reload_flag" ;;
|
|
3552 |
-esac
|
|
3553 |
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
3554 |
-case $host_os in
|
|
3555 |
- darwin*)
|
|
3556 |
- if test "$GCC" = yes; then
|
|
3557 |
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
3558 |
- else
|
|
3559 |
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
3560 |
- fi
|
|
3561 |
- ;;
|
|
3562 |
-esac
|
|
3563 |
-_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
|
|
3564 |
-_LT_DECL([], [reload_cmds], [2])dnl
|
|
3565 |
-])# _LT_CMD_RELOAD
|
|
3566 |
-
|
|
3567 |
-
|
|
3568 |
-# _LT_CHECK_MAGIC_METHOD
|
|
3569 |
-# ----------------------
|
|
3570 |
-# how to check for library dependencies
|
|
3571 |
-# -- PORTME fill in with the dynamic library characteristics
|
|
3572 |
-m4_defun([_LT_CHECK_MAGIC_METHOD],
|
|
3573 |
-[m4_require([_LT_DECL_EGREP])
|
|
3574 |
-m4_require([_LT_DECL_OBJDUMP])
|
|
3575 |
-AC_CACHE_CHECK([how to recognize dependent libraries],
|
|
3576 |
-lt_cv_deplibs_check_method,
|
|
3577 |
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
3578 |
-lt_cv_file_magic_test_file=
|
|
3579 |
-lt_cv_deplibs_check_method='unknown'
|
|
3580 |
-# Need to set the preceding variable on all platforms that support
|
|
3581 |
-# interlibrary dependencies.
|
|
3582 |
-# 'none' -- dependencies not supported.
|
|
3583 |
-# `unknown' -- same as none, but documents that we really don't know.
|
|
3584 |
-# 'pass_all' -- all dependencies passed with no checks.
|
|
3585 |
-# 'test_compile' -- check by making test program.
|
|
3586 |
-# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
3587 |
-# which responds to the $file_magic_cmd with a given extended regex.
|
|
3588 |
-# If you have `file' or equivalent on your system and you're not sure
|
|
3589 |
-# whether `pass_all' will *always* work, you probably want this one.
|
|
3590 |
-
|
|
3591 |
-case $host_os in
|
|
3592 |
-aix[[4-9]]*)
|
|
3593 |
- lt_cv_deplibs_check_method=pass_all
|
|
3594 |
- ;;
|
|
3595 |
-
|
|
3596 |
-beos*)
|
|
3597 |
- lt_cv_deplibs_check_method=pass_all
|
|
3598 |
- ;;
|
|
3599 |
-
|
|
3600 |
-bsdi[[45]]*)
|
|
3601 |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
|
3602 |
- lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
3603 |
- lt_cv_file_magic_test_file=/shlib/libc.so
|
|
3604 |
- ;;
|
|
3605 |
-
|
|
3606 |
-cygwin*)
|
|
3607 |
- # func_win32_libid is a shell function defined in ltmain.sh
|
|
3608 |
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
3609 |
- lt_cv_file_magic_cmd='func_win32_libid'
|
|
3610 |
- ;;
|
|
3611 |
-
|
|
3612 |
-mingw* | pw32*)
|
|
3613 |
- # Base MSYS/MinGW do not provide the 'file' command needed by
|
|
3614 |
- # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
3615 |
- # unless we find 'file', for example because we are cross-compiling.
|
|
3616 |
- if ( file / ) >/dev/null 2>&1; then
|
|
3617 |
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
3618 |
- lt_cv_file_magic_cmd='func_win32_libid'
|
|
3619 |
- else
|
|
3620 |
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
3621 |
- lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
3622 |
- fi
|
|
3623 |
- ;;
|
|
3624 |
-
|
|
3625 |
-cegcc)
|
|
3626 |
- # use the weaker test based on 'objdump'. See mingw*.
|
|
3627 |
- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
|
3628 |
- lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
3629 |
- ;;
|
|
3630 |
-
|
|
3631 |
-darwin* | rhapsody*)
|
|
3632 |
- lt_cv_deplibs_check_method=pass_all
|
|
3633 |
- ;;
|
|
3634 |
-
|
|
3635 |
-freebsd* | dragonfly*)
|
|
3636 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
3637 |
- case $host_cpu in
|
|
3638 |
- i*86 )
|
|
3639 |
- # Not sure whether the presence of OpenBSD here was a mistake.
|
|
3640 |
- # Let's accept both of them until this is cleared up.
|
|
3641 |
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
|
3642 |
- lt_cv_file_magic_cmd=/usr/bin/file
|
|
3643 |
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
3644 |
- ;;
|
|
3645 |
- esac
|
|
3646 |
- else
|
|
3647 |
- lt_cv_deplibs_check_method=pass_all
|
|
3648 |
- fi
|
|
3649 |
- ;;
|
|
3650 |
-
|
|
3651 |
-gnu*)
|
|
3652 |
- lt_cv_deplibs_check_method=pass_all
|
|
3653 |
- ;;
|
|
3654 |
-
|
|
3655 |
-hpux10.20* | hpux11*)
|
|
3656 |
- lt_cv_file_magic_cmd=/usr/bin/file
|
|
3657 |
- case $host_cpu in
|
|
3658 |
- ia64*)
|
|
3659 |
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
|
3660 |
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
3661 |
- ;;
|
|
3662 |
- hppa*64*)
|
|
3663 |
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
|
|
3664 |
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
3665 |
- ;;
|
|
3666 |
- *)
|
|
3667 |
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
|
3668 |
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
3669 |
- ;;
|
|
3670 |
- esac
|
|
3671 |
- ;;
|
|
3672 |
-
|
|
3673 |
-interix[[3-9]]*)
|
|
3674 |
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
3675 |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
|
3676 |
- ;;
|
|
3677 |
-
|
|
3678 |
-irix5* | irix6* | nonstopux*)
|
|
3679 |
- case $LD in
|
|
3680 |
- *-32|*"-32 ") libmagic=32-bit;;
|
|
3681 |
- *-n32|*"-n32 ") libmagic=N32;;
|
|
3682 |
- *-64|*"-64 ") libmagic=64-bit;;
|
|
3683 |
- *) libmagic=never-match;;
|
|
3684 |
- esac
|
|
3685 |
- lt_cv_deplibs_check_method=pass_all
|
|
3686 |
- ;;
|
|
3687 |
-
|
|
3688 |
-# This must be Linux ELF.
|
|
3689 |
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
3690 |
- lt_cv_deplibs_check_method=pass_all
|
|
3691 |
- ;;
|
|
3692 |
-
|
|
3693 |
-netbsd* | netbsdelf*-gnu)
|
|
3694 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
3695 |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
3696 |
- else
|
|
3697 |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
|
3698 |
- fi
|
|
3699 |
- ;;
|
|
3700 |
-
|
|
3701 |
-newos6*)
|
|
3702 |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
|
3703 |
- lt_cv_file_magic_cmd=/usr/bin/file
|
|
3704 |
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
3705 |
- ;;
|
|
3706 |
-
|
|
3707 |
-*nto* | *qnx*)
|
|
3708 |
- lt_cv_deplibs_check_method=pass_all
|
|
3709 |
- ;;
|
|
3710 |
-
|
|
3711 |
-openbsd*)
|
|
3712 |
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
3713 |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
|
3714 |
- else
|
|
3715 |
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
3716 |
- fi
|
|
3717 |
- ;;
|
|
3718 |
-
|
|
3719 |
-osf3* | osf4* | osf5*)
|
|
3720 |
- lt_cv_deplibs_check_method=pass_all
|
|
3721 |
- ;;
|
|
3722 |
-
|
|
3723 |
-rdos*)
|
|
3724 |
- lt_cv_deplibs_check_method=pass_all
|
|
3725 |
- ;;
|
|
3726 |
-
|
|
3727 |
-solaris*)
|
|
3728 |
- lt_cv_deplibs_check_method=pass_all
|
|
3729 |
- ;;
|
|
3730 |
-
|
|
3731 |
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
3732 |
- lt_cv_deplibs_check_method=pass_all
|
|
3733 |
- ;;
|
|
3734 |
-
|
|
3735 |
-sysv4 | sysv4.3*)
|
|
3736 |
- case $host_vendor in
|
|
3737 |
- motorola)
|
|
3738 |
- 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]]'
|
|
3739 |
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|
3740 |
- ;;
|
|
3741 |
- ncr)
|
|
3742 |
- lt_cv_deplibs_check_method=pass_all
|
|
3743 |
- ;;
|
|
3744 |
- sequent)
|
|
3745 |
- lt_cv_file_magic_cmd='/bin/file'
|
|
3746 |
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
|
3747 |
- ;;
|
|
3748 |
- sni)
|
|
3749 |
- lt_cv_file_magic_cmd='/bin/file'
|
|
3750 |
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
|
3751 |
- lt_cv_file_magic_test_file=/lib/libc.so
|
|
3752 |
- ;;
|
|
3753 |
- siemens)
|
|
3754 |
- lt_cv_deplibs_check_method=pass_all
|
|
3755 |
- ;;
|
|
3756 |
- pc)
|
|
3757 |
- lt_cv_deplibs_check_method=pass_all
|
|
3758 |
- ;;
|
|
3759 |
- esac
|
|
3760 |
- ;;
|
|
3761 |
-
|
|
3762 |
-tpf*)
|
|
3763 |
- lt_cv_deplibs_check_method=pass_all
|
|
3764 |
- ;;
|
|
3765 |
-esac
|
|
3766 |
-])
|
|
3767 |
-file_magic_cmd=$lt_cv_file_magic_cmd
|
|
3768 |
-deplibs_check_method=$lt_cv_deplibs_check_method
|
|
3769 |
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
3770 |
-
|
|
3771 |
-_LT_DECL([], [deplibs_check_method], [1],
|
|
3772 |
- [Method to check whether dependent libraries are shared objects])
|
|
3773 |
-_LT_DECL([], [file_magic_cmd], [1],
|
|
3774 |
- [Command to use when deplibs_check_method == "file_magic"])
|
|
3775 |
-])# _LT_CHECK_MAGIC_METHOD
|
|
3776 |
-
|
|
3777 |
-
|
|
3778 |
-# LT_PATH_NM
|
|
3779 |
-# ----------
|
|
3780 |
-# find the pathname to a BSD- or MS-compatible name lister
|
|
3781 |
-AC_DEFUN([LT_PATH_NM],
|
|
3782 |
-[AC_REQUIRE([AC_PROG_CC])dnl
|
|
3783 |
-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
|
|
3784 |
-[if test -n "$NM"; then
|
|
3785 |
- # Let the user override the test.
|
|
3786 |
- lt_cv_path_NM="$NM"
|
|
3787 |
-else
|
|
3788 |
- lt_nm_to_check="${ac_tool_prefix}nm"
|
|
3789 |
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
3790 |
- lt_nm_to_check="$lt_nm_to_check nm"
|
|
3791 |
- fi
|
|
3792 |
- for lt_tmp_nm in $lt_nm_to_check; do
|
|
3793 |
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
3794 |
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
3795 |
- IFS="$lt_save_ifs"
|
|
3796 |
- test -z "$ac_dir" && ac_dir=.
|
|
3797 |
- tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
3798 |
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
3799 |
- # Check to see if the nm accepts a BSD-compat flag.
|
|
3800 |
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
3801 |
- # nm: unknown option "B" ignored
|
|
3802 |
- # Tru64's nm complains that /dev/null is an invalid object file
|
|
3803 |
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
3804 |
- */dev/null* | *'Invalid file or object type'*)
|
|
3805 |
- lt_cv_path_NM="$tmp_nm -B"
|
|
3806 |
- break
|
|
3807 |
- ;;
|
|
3808 |
- *)
|
|
3809 |
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
3810 |
- */dev/null*)
|
|
3811 |
- lt_cv_path_NM="$tmp_nm -p"
|
|
3812 |
- break
|
|
3813 |
- ;;
|
|
3814 |
- *)
|
|
3815 |
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
3816 |
- continue # so that we can try to find one that supports BSD flags
|
|
3817 |
- ;;
|
|
3818 |
- esac
|
|
3819 |
- ;;
|
|
3820 |
- esac
|
|
3821 |
- fi
|
|
3822 |
- done
|
|
3823 |
- IFS="$lt_save_ifs"
|
|
3824 |
- done
|
|
3825 |
- : ${lt_cv_path_NM=no}
|
|
3826 |
-fi])
|
|
3827 |
-if test "$lt_cv_path_NM" != "no"; then
|
|
3828 |
- NM="$lt_cv_path_NM"
|
|
3829 |
-else
|
|
3830 |
- # Didn't find any BSD compatible name lister, look for dumpbin.
|
|
3831 |
- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
|
|
3832 |
- AC_SUBST([DUMPBIN])
|
|
3833 |
- if test "$DUMPBIN" != ":"; then
|
|
3834 |
- NM="$DUMPBIN"
|
|
3835 |
- fi
|
|
3836 |
-fi
|
|
3837 |
-test -z "$NM" && NM=nm
|
|
3838 |
-AC_SUBST([NM])
|
|
3839 |
-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
|
|
3840 |
-
|
|
3841 |
-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
|
|
3842 |
- [lt_cv_nm_interface="BSD nm"
|
|
3843 |
- echo "int some_variable = 0;" > conftest.$ac_ext
|
|
3844 |
- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
3845 |
- (eval "$ac_compile" 2>conftest.err)
|
|
3846 |
- cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
3847 |
- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
|
|
3848 |
- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
|
3849 |
- cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
3850 |
- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
|
|
3851 |
- cat conftest.out >&AS_MESSAGE_LOG_FD
|
|
3852 |
- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
|
3853 |
- lt_cv_nm_interface="MS dumpbin"
|
|
3854 |
- fi
|
|
3855 |
- rm -f conftest*])
|
|
3856 |
-])# LT_PATH_NM
|
|
3857 |
-
|
|
3858 |
-# Old names:
|
|
3859 |
-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
|
|
3860 |
-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
|
|
3861 |
-dnl aclocal-1.4 backwards compatibility:
|
|
3862 |
-dnl AC_DEFUN([AM_PROG_NM], [])
|
|
3863 |
-dnl AC_DEFUN([AC_PROG_NM], [])
|
|
3864 |
-
|
|
3865 |
-
|
|
3866 |
-# LT_LIB_M
|
|
3867 |
-# --------
|
|
3868 |
-# check for math library
|
|
3869 |
-AC_DEFUN([LT_LIB_M],
|
|
3870 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
3871 |
-LIBM=
|
|
3872 |
-case $host in
|
|
3873 |
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
|
3874 |
- # These system don't have libm, or don't need it
|
|
3875 |
- ;;
|
|
3876 |
-*-ncr-sysv4.3*)
|
|
3877 |
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
|
3878 |
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
|
3879 |
- ;;
|
|
3880 |
-*)
|
|
3881 |
- AC_CHECK_LIB(m, cos, LIBM="-lm")
|
|
3882 |
- ;;
|
|
3883 |
-esac
|
|
3884 |
-AC_SUBST([LIBM])
|
|
3885 |
-])# LT_LIB_M
|
|
3886 |
-
|
|
3887 |
-# Old name:
|
|
3888 |
-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
|
|
3889 |
-dnl aclocal-1.4 backwards compatibility:
|
|
3890 |
-dnl AC_DEFUN([AC_CHECK_LIBM], [])
|
|
3891 |
-
|
|
3892 |
-
|
|
3893 |
-# _LT_COMPILER_NO_RTTI([TAGNAME])
|
|
3894 |
-# -------------------------------
|
|
3895 |
-m4_defun([_LT_COMPILER_NO_RTTI],
|
|
3896 |
-[m4_require([_LT_TAG_COMPILER])dnl
|
|
3897 |
-
|
|
3898 |
-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|
3899 |
-
|
|
3900 |
-if test "$GCC" = yes; then
|
|
3901 |
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
|
3902 |
-
|
|
3903 |
- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
|
3904 |
- lt_cv_prog_compiler_rtti_exceptions,
|
|
3905 |
- [-fno-rtti -fno-exceptions], [],
|
|
3906 |
- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
|
3907 |
-fi
|
|
3908 |
-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
|
|
3909 |
- [Compiler flag to turn off builtin functions])
|
|
3910 |
-])# _LT_COMPILER_NO_RTTI
|
|
3911 |
-
|
|
3912 |
-
|
|
3913 |
-# _LT_CMD_GLOBAL_SYMBOLS
|
|
3914 |
-# ----------------------
|
|
3915 |
-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
|
|
3916 |
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
3917 |
-AC_REQUIRE([AC_PROG_CC])dnl
|
|
3918 |
-AC_REQUIRE([LT_PATH_NM])dnl
|
|
3919 |
-AC_REQUIRE([LT_PATH_LD])dnl
|
|
3920 |
-m4_require([_LT_DECL_SED])dnl
|
|
3921 |
-m4_require([_LT_DECL_EGREP])dnl
|
|
3922 |
-m4_require([_LT_TAG_COMPILER])dnl
|
|
3923 |
-
|
|
3924 |
-# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
3925 |
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
|
3926 |
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
|
3927 |
-[
|
|
3928 |
-# These are sane defaults that work on at least a few old systems.
|
|
3929 |
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|
3930 |
-
|
|
3931 |
-# Character class describing NM global symbol codes.
|
|
3932 |
-symcode='[[BCDEGRST]]'
|
|
3933 |
-
|
|
3934 |
-# Regexp to match symbols that can be accessed directly from C.
|
|
3935 |
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
|
3936 |
-
|
|
3937 |
-# Define system-specific variables.
|
|
3938 |
-case $host_os in
|
|
3939 |
-aix*)
|
|
3940 |
- symcode='[[BCDT]]'
|
|
3941 |
- ;;
|
|
3942 |
-cygwin* | mingw* | pw32* | cegcc*)
|
|
3943 |
- symcode='[[ABCDGISTW]]'
|
|
3944 |
- ;;
|
|
3945 |
-hpux*)
|
|
3946 |
- if test "$host_cpu" = ia64; then
|
|
3947 |
- symcode='[[ABCDEGRST]]'
|
|
3948 |
- fi
|
|
3949 |
- ;;
|
|
3950 |
-irix* | nonstopux*)
|
|
3951 |
- symcode='[[BCDEGRST]]'
|
|
3952 |
- ;;
|
|
3953 |
-osf*)
|
|
3954 |
- symcode='[[BCDEGQRST]]'
|
|
3955 |
- ;;
|
|
3956 |
-solaris*)
|
|
3957 |
- symcode='[[BDRT]]'
|
|
3958 |
- ;;
|
|
3959 |
-sco3.2v5*)
|
|
3960 |
- symcode='[[DT]]'
|
|
3961 |
- ;;
|
|
3962 |
-sysv4.2uw2*)
|
|
3963 |
- symcode='[[DT]]'
|
|
3964 |
- ;;
|
|
3965 |
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
3966 |
- symcode='[[ABDT]]'
|
|
3967 |
- ;;
|
|
3968 |
-sysv4)
|
|
3969 |
- symcode='[[DFNSTU]]'
|
|
3970 |
- ;;
|
|
3971 |
-esac
|
|
3972 |
-
|
|
3973 |
-# If we're using GNU nm, then use its standard symbol codes.
|
|
3974 |
-case `$NM -V 2>&1` in
|
|
3975 |
-*GNU* | *'with BFD'*)
|
|
3976 |
- symcode='[[ABCDGIRSTW]]' ;;
|
|
3977 |
-esac
|
|
3978 |
-
|
|
3979 |
-# Transform an extracted symbol line into a proper C declaration.
|
|
3980 |
-# Some systems (esp. on ia64) link data and code symbols differently,
|
|
3981 |
-# so use this general approach.
|
|
3982 |
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
3983 |
-
|
|
3984 |
-# Transform an extracted symbol line into symbol name and symbol address
|
|
3985 |
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
3986 |
-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'"
|
|
3987 |
-
|
|
3988 |
-# Handle CRLF in mingw tool chain
|
|
3989 |
-opt_cr=
|
|
3990 |
-case $build_os in
|
|
3991 |
-mingw*)
|
|
3992 |
- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
3993 |
- ;;
|
|
3994 |
-esac
|
|
3995 |
-
|
|
3996 |
-# Try without a prefix underscore, then with it.
|
|
3997 |
-for ac_symprfx in "" "_"; do
|
|
3998 |
-
|
|
3999 |
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
4000 |
- symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
4001 |
-
|
|
4002 |
- # Write the raw and C identifiers.
|
|
4003 |
- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
4004 |
- # Fake it for dumpbin and say T for any non-static function
|
|
4005 |
- # and D for any global variable.
|
|
4006 |
- # Also find C++ and __fastcall symbols from MSVC++,
|
|
4007 |
- # which start with @ or ?.
|
|
4008 |
- lt_cv_sys_global_symbol_pipe="$AWK ['"\
|
|
4009 |
-" {last_section=section; section=\$ 3};"\
|
|
4010 |
-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
|
4011 |
-" \$ 0!~/External *\|/{next};"\
|
|
4012 |
-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
|
4013 |
-" {if(hide[section]) next};"\
|
|
4014 |
-" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
|
4015 |
-" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
|
4016 |
-" s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
|
4017 |
-" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
|
4018 |
-" ' prfx=^$ac_symprfx]"
|
|
4019 |
- else
|
|
4020 |
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
4021 |
- fi
|
|
4022 |
-
|
|
4023 |
- # Check to see that the pipe works correctly.
|
|
4024 |
- pipe_works=no
|
|
4025 |
-
|
|
4026 |
- rm -f conftest*
|
|
4027 |
- cat > conftest.$ac_ext <<_LT_EOF
|
|
4028 |
-#ifdef __cplusplus
|
|
4029 |
-extern "C" {
|
|
4030 |
-#endif
|
|
4031 |
-char nm_test_var;
|
|
4032 |
-void nm_test_func(void);
|
|
4033 |
-void nm_test_func(void){}
|
|
4034 |
-#ifdef __cplusplus
|
|
4035 |
-}
|
|
4036 |
-#endif
|
|
4037 |
-int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
4038 |
-_LT_EOF
|
|
4039 |
-
|
|
4040 |
- if AC_TRY_EVAL(ac_compile); then
|
|
4041 |
- # Now try to grab the symbols.
|
|
4042 |
- nlist=conftest.nm
|
|
4043 |
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
|
4044 |
- # Try sorting and uniquifying the output.
|
|
4045 |
- if sort "$nlist" | uniq > "$nlist"T; then
|
|
4046 |
- mv -f "$nlist"T "$nlist"
|
|
4047 |
- else
|
|
4048 |
- rm -f "$nlist"T
|
|
4049 |
- fi
|
|
4050 |
-
|
|
4051 |
- # Make sure that we snagged all the symbols we need.
|
|
4052 |
- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
4053 |
- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
4054 |
- cat <<_LT_EOF > conftest.$ac_ext
|
|
4055 |
-#ifdef __cplusplus
|
|
4056 |
-extern "C" {
|
|
4057 |
-#endif
|
|
4058 |
-
|
|
4059 |
-_LT_EOF
|
|
4060 |
- # Now generate the symbol file.
|
|
4061 |
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
|
4062 |
-
|
|
4063 |
- cat <<_LT_EOF >> conftest.$ac_ext
|
|
4064 |
-
|
|
4065 |
-/* The mapping between symbol names and symbols. */
|
|
4066 |
-const struct {
|
|
4067 |
- const char *name;
|
|
4068 |
- void *address;
|
|
4069 |
-}
|
|
4070 |
-lt__PROGRAM__LTX_preloaded_symbols[[]] =
|
|
4071 |
-{
|
|
4072 |
- { "@PROGRAM@", (void *) 0 },
|
|
4073 |
-_LT_EOF
|
|
4074 |
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
|
4075 |
- cat <<\_LT_EOF >> conftest.$ac_ext
|
|
4076 |
- {0, (void *) 0}
|
|
4077 |
-};
|
|
4078 |
-
|
|
4079 |
-/* This works around a problem in FreeBSD linker */
|
|
4080 |
-#ifdef FREEBSD_WORKAROUND
|
|
4081 |
-static const void *lt_preloaded_setup() {
|
|
4082 |
- return lt__PROGRAM__LTX_preloaded_symbols;
|
|
4083 |
-}
|
|
4084 |
-#endif
|
|
4085 |
-
|
|
4086 |
-#ifdef __cplusplus
|
|
4087 |
-}
|
|
4088 |
-#endif
|
|
4089 |
-_LT_EOF
|
|
4090 |
- # Now try linking the two files.
|
|
4091 |
- mv conftest.$ac_objext conftstm.$ac_objext
|
|
4092 |
- lt_save_LIBS="$LIBS"
|
|
4093 |
- lt_save_CFLAGS="$CFLAGS"
|
|
4094 |
- LIBS="conftstm.$ac_objext"
|
|
4095 |
- CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
|
4096 |
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
|
4097 |
- pipe_works=yes
|
|
4098 |
- fi
|
|
4099 |
- LIBS="$lt_save_LIBS"
|
|
4100 |
- CFLAGS="$lt_save_CFLAGS"
|
|
4101 |
- else
|
|
4102 |
- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
|
4103 |
- fi
|
|
4104 |
- else
|
|
4105 |
- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
|
4106 |
- fi
|
|
4107 |
- else
|
|
4108 |
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
|
4109 |
- fi
|
|
4110 |
- else
|
|
4111 |
- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
|
4112 |
- cat conftest.$ac_ext >&5
|
|
4113 |
- fi
|
|
4114 |
- rm -rf conftest* conftst*
|
|
4115 |
-
|
|
4116 |
- # Do not use the global_symbol_pipe unless it works.
|
|
4117 |
- if test "$pipe_works" = yes; then
|
|
4118 |
- break
|
|
4119 |
- else
|
|
4120 |
- lt_cv_sys_global_symbol_pipe=
|
|
4121 |
- fi
|
|
4122 |
-done
|
|
4123 |
-])
|
|
4124 |
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
4125 |
- lt_cv_sys_global_symbol_to_cdecl=
|
|
4126 |
-fi
|
|
4127 |
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|
4128 |
- AC_MSG_RESULT(failed)
|
|
4129 |
-else
|
|
4130 |
- AC_MSG_RESULT(ok)
|
|
4131 |
-fi
|
|
4132 |
-
|
|
4133 |
-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
|
4134 |
- [Take the output of nm and produce a listing of raw symbols and C names])
|
|
4135 |
-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
|
4136 |
- [Transform the output of nm in a proper C declaration])
|
|
4137 |
-_LT_DECL([global_symbol_to_c_name_address],
|
|
4138 |
- [lt_cv_sys_global_symbol_to_c_name_address], [1],
|
|
4139 |
- [Transform the output of nm in a C name address pair])
|
|
4140 |
-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
|
4141 |
- [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
|
4142 |
- [Transform the output of nm in a C name address pair when lib prefix is needed])
|
|
4143 |
-]) # _LT_CMD_GLOBAL_SYMBOLS
|
|
4144 |
-
|
|
4145 |
-
|
|
4146 |
-# _LT_COMPILER_PIC([TAGNAME])
|
|
4147 |
-# ---------------------------
|
|
4148 |
-m4_defun([_LT_COMPILER_PIC],
|
|
4149 |
-[m4_require([_LT_TAG_COMPILER])dnl
|
|
4150 |
-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
|
4151 |
-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4152 |
-_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
|
4153 |
-
|
|
4154 |
-AC_MSG_CHECKING([for $compiler option to produce PIC])
|
|
4155 |
-m4_if([$1], [CXX], [
|
|
4156 |
- # C++ specific cases for pic, static, wl, etc.
|
|
4157 |
- if test "$GXX" = yes; then
|
|
4158 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4159 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4160 |
-
|
|
4161 |
- case $host_os in
|
|
4162 |
- aix*)
|
|
4163 |
- # All AIX code is PIC.
|
|
4164 |
- if test "$host_cpu" = ia64; then
|
|
4165 |
- # AIX 5 now supports IA64 processor
|
|
4166 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4167 |
- fi
|
|
4168 |
- ;;
|
|
4169 |
-
|
|
4170 |
- amigaos*)
|
|
4171 |
- case $host_cpu in
|
|
4172 |
- powerpc)
|
|
4173 |
- # see comment about AmigaOS4 .so support
|
|
4174 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4175 |
- ;;
|
|
4176 |
- m68k)
|
|
4177 |
- # FIXME: we need at least 68020 code to build shared libraries, but
|
|
4178 |
- # adding the `-m68020' flag to GCC prevents building anything better,
|
|
4179 |
- # like `-m68040'.
|
|
4180 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
4181 |
- ;;
|
|
4182 |
- esac
|
|
4183 |
- ;;
|
|
4184 |
-
|
|
4185 |
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
4186 |
- # PIC is the default for these OSes.
|
|
4187 |
- ;;
|
|
4188 |
- mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
4189 |
- # This hack is so that the source file can tell whether it is being
|
|
4190 |
- # built for inclusion in a dll (and should export symbols for example).
|
|
4191 |
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
4192 |
- # (--disable-auto-import) libraries
|
|
4193 |
- m4_if([$1], [GCJ], [],
|
|
4194 |
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
4195 |
- ;;
|
|
4196 |
- darwin* | rhapsody*)
|
|
4197 |
- # PIC is the default on this platform
|
|
4198 |
- # Common symbols not allowed in MH_DYLIB files
|
|
4199 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
4200 |
- ;;
|
|
4201 |
- *djgpp*)
|
|
4202 |
- # DJGPP does not support shared libraries at all
|
|
4203 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4204 |
- ;;
|
|
4205 |
- interix[[3-9]]*)
|
|
4206 |
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
4207 |
- # Instead, we relocate shared libraries at runtime.
|
|
4208 |
- ;;
|
|
4209 |
- sysv4*MP*)
|
|
4210 |
- if test -d /usr/nec; then
|
|
4211 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|
4212 |
- fi
|
|
4213 |
- ;;
|
|
4214 |
- hpux*)
|
|
4215 |
- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
|
4216 |
- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
|
4217 |
- # sets the default TLS model and affects inlining.
|
|
4218 |
- case $host_cpu in
|
|
4219 |
- hppa*64*)
|
|
4220 |
- ;;
|
|
4221 |
- *)
|
|
4222 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4223 |
- ;;
|
|
4224 |
- esac
|
|
4225 |
- ;;
|
|
4226 |
- *qnx* | *nto*)
|
|
4227 |
- # QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
4228 |
- # it will coredump.
|
|
4229 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
4230 |
- ;;
|
|
4231 |
- *)
|
|
4232 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4233 |
- ;;
|
|
4234 |
- esac
|
|
4235 |
- else
|
|
4236 |
- case $host_os in
|
|
4237 |
- aix[[4-9]]*)
|
|
4238 |
- # All AIX code is PIC.
|
|
4239 |
- if test "$host_cpu" = ia64; then
|
|
4240 |
- # AIX 5 now supports IA64 processor
|
|
4241 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4242 |
- else
|
|
4243 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|
4244 |
- fi
|
|
4245 |
- ;;
|
|
4246 |
- chorus*)
|
|
4247 |
- case $cc_basename in
|
|
4248 |
- cxch68*)
|
|
4249 |
- # Green Hills C++ Compiler
|
|
4250 |
- # _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"
|
|
4251 |
- ;;
|
|
4252 |
- esac
|
|
4253 |
- ;;
|
|
4254 |
- dgux*)
|
|
4255 |
- case $cc_basename in
|
|
4256 |
- ec++*)
|
|
4257 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4258 |
- ;;
|
|
4259 |
- ghcx*)
|
|
4260 |
- # Green Hills C++ Compiler
|
|
4261 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
4262 |
- ;;
|
|
4263 |
- *)
|
|
4264 |
- ;;
|
|
4265 |
- esac
|
|
4266 |
- ;;
|
|
4267 |
- freebsd* | dragonfly*)
|
|
4268 |
- # FreeBSD uses GNU C++
|
|
4269 |
- ;;
|
|
4270 |
- hpux9* | hpux10* | hpux11*)
|
|
4271 |
- case $cc_basename in
|
|
4272 |
- CC*)
|
|
4273 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4274 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
4275 |
- if test "$host_cpu" != ia64; then
|
|
4276 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
4277 |
- fi
|
|
4278 |
- ;;
|
|
4279 |
- aCC*)
|
|
4280 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4281 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
4282 |
- case $host_cpu in
|
|
4283 |
- hppa*64*|ia64*)
|
|
4284 |
- # +Z the default
|
|
4285 |
- ;;
|
|
4286 |
- *)
|
|
4287 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
4288 |
- ;;
|
|
4289 |
- esac
|
|
4290 |
- ;;
|
|
4291 |
- *)
|
|
4292 |
- ;;
|
|
4293 |
- esac
|
|
4294 |
- ;;
|
|
4295 |
- interix*)
|
|
4296 |
- # This is c89, which is MS Visual C++ (no shared libs)
|
|
4297 |
- # Anyone wants to do a port?
|
|
4298 |
- ;;
|
|
4299 |
- irix5* | irix6* | nonstopux*)
|
|
4300 |
- case $cc_basename in
|
|
4301 |
- CC*)
|
|
4302 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4303 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4304 |
- # CC pic flag -KPIC is the default.
|
|
4305 |
- ;;
|
|
4306 |
- *)
|
|
4307 |
- ;;
|
|
4308 |
- esac
|
|
4309 |
- ;;
|
|
4310 |
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
4311 |
- case $cc_basename in
|
|
4312 |
- KCC*)
|
|
4313 |
- # KAI C++ Compiler
|
|
4314 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|
4315 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4316 |
- ;;
|
|
4317 |
- ecpc* )
|
|
4318 |
- # old Intel C++ for x86_64 which still supported -KPIC.
|
|
4319 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4320 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4321 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4322 |
- ;;
|
|
4323 |
- icpc* )
|
|
4324 |
- # Intel C++, used to be incompatible with GCC.
|
|
4325 |
- # ICC 10 doesn't accept -KPIC any more.
|
|
4326 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4327 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4328 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4329 |
- ;;
|
|
4330 |
- pgCC* | pgcpp*)
|
|
4331 |
- # Portland Group C++ compiler
|
|
4332 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4333 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
4334 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4335 |
- ;;
|
|
4336 |
- cxx*)
|
|
4337 |
- # Compaq C++
|
|
4338 |
- # Make sure the PIC flag is empty. It appears that all Alpha
|
|
4339 |
- # Linux and Compaq Tru64 Unix objects are PIC.
|
|
4340 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4341 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4342 |
- ;;
|
|
4343 |
- xlc* | xlC*)
|
|
4344 |
- # IBM XL 8.0 on PPC
|
|
4345 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4346 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
|
4347 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
|
4348 |
- ;;
|
|
4349 |
- *)
|
|
4350 |
- case `$CC -V 2>&1 | sed 5q` in
|
|
4351 |
- *Sun\ C*)
|
|
4352 |
- # Sun C++ 5.9
|
|
4353 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4354 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4355 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
4356 |
- ;;
|
|
4357 |
- esac
|
|
4358 |
- ;;
|
|
4359 |
- esac
|
|
4360 |
- ;;
|
|
4361 |
- lynxos*)
|
|
4362 |
- ;;
|
|
4363 |
- m88k*)
|
|
4364 |
- ;;
|
|
4365 |
- mvs*)
|
|
4366 |
- case $cc_basename in
|
|
4367 |
- cxx*)
|
|
4368 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
|
4369 |
- ;;
|
|
4370 |
- *)
|
|
4371 |
- ;;
|
|
4372 |
- esac
|
|
4373 |
- ;;
|
|
4374 |
- netbsd* | netbsdelf*-gnu)
|
|
4375 |
- ;;
|
|
4376 |
- *qnx* | *nto*)
|
|
4377 |
- # QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
4378 |
- # it will coredump.
|
|
4379 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
4380 |
- ;;
|
|
4381 |
- osf3* | osf4* | osf5*)
|
|
4382 |
- case $cc_basename in
|
|
4383 |
- KCC*)
|
|
4384 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
|
4385 |
- ;;
|
|
4386 |
- RCC*)
|
|
4387 |
- # Rational C++ 2.4.1
|
|
4388 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
4389 |
- ;;
|
|
4390 |
- cxx*)
|
|
4391 |
- # Digital/Compaq C++
|
|
4392 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4393 |
- # Make sure the PIC flag is empty. It appears that all Alpha
|
|
4394 |
- # Linux and Compaq Tru64 Unix objects are PIC.
|
|
4395 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4396 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4397 |
- ;;
|
|
4398 |
- *)
|
|
4399 |
- ;;
|
|
4400 |
- esac
|
|
4401 |
- ;;
|
|
4402 |
- psos*)
|
|
4403 |
- ;;
|
|
4404 |
- solaris*)
|
|
4405 |
- case $cc_basename in
|
|
4406 |
- CC*)
|
|
4407 |
- # Sun C++ 4.2, 5.x and Centerline C++
|
|
4408 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4409 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4410 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
4411 |
- ;;
|
|
4412 |
- gcx*)
|
|
4413 |
- # Green Hills C++ Compiler
|
|
4414 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
4415 |
- ;;
|
|
4416 |
- *)
|
|
4417 |
- ;;
|
|
4418 |
- esac
|
|
4419 |
- ;;
|
|
4420 |
- sunos4*)
|
|
4421 |
- case $cc_basename in
|
|
4422 |
- CC*)
|
|
4423 |
- # Sun C++ 4.x
|
|
4424 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
4425 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4426 |
- ;;
|
|
4427 |
- lcc*)
|
|
4428 |
- # Lucid
|
|
4429 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
4430 |
- ;;
|
|
4431 |
- *)
|
|
4432 |
- ;;
|
|
4433 |
- esac
|
|
4434 |
- ;;
|
|
4435 |
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
4436 |
- case $cc_basename in
|
|
4437 |
- CC*)
|
|
4438 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4439 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4440 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4441 |
- ;;
|
|
4442 |
- esac
|
|
4443 |
- ;;
|
|
4444 |
- tandem*)
|
|
4445 |
- case $cc_basename in
|
|
4446 |
- NCC*)
|
|
4447 |
- # NonStop-UX NCC 3.20
|
|
4448 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4449 |
- ;;
|
|
4450 |
- *)
|
|
4451 |
- ;;
|
|
4452 |
- esac
|
|
4453 |
- ;;
|
|
4454 |
- vxworks*)
|
|
4455 |
- ;;
|
|
4456 |
- *)
|
|
4457 |
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
4458 |
- ;;
|
|
4459 |
- esac
|
|
4460 |
- fi
|
|
4461 |
-],
|
|
4462 |
-[
|
|
4463 |
- if test "$GCC" = yes; then
|
|
4464 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4465 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4466 |
-
|
|
4467 |
- case $host_os in
|
|
4468 |
- aix*)
|
|
4469 |
- # All AIX code is PIC.
|
|
4470 |
- if test "$host_cpu" = ia64; then
|
|
4471 |
- # AIX 5 now supports IA64 processor
|
|
4472 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4473 |
- fi
|
|
4474 |
- ;;
|
|
4475 |
-
|
|
4476 |
- amigaos*)
|
|
4477 |
- case $host_cpu in
|
|
4478 |
- powerpc)
|
|
4479 |
- # see comment about AmigaOS4 .so support
|
|
4480 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4481 |
- ;;
|
|
4482 |
- m68k)
|
|
4483 |
- # FIXME: we need at least 68020 code to build shared libraries, but
|
|
4484 |
- # adding the `-m68020' flag to GCC prevents building anything better,
|
|
4485 |
- # like `-m68040'.
|
|
4486 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
|
4487 |
- ;;
|
|
4488 |
- esac
|
|
4489 |
- ;;
|
|
4490 |
-
|
|
4491 |
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
4492 |
- # PIC is the default for these OSes.
|
|
4493 |
- ;;
|
|
4494 |
-
|
|
4495 |
- mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
4496 |
- # This hack is so that the source file can tell whether it is being
|
|
4497 |
- # built for inclusion in a dll (and should export symbols for example).
|
|
4498 |
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
4499 |
- # (--disable-auto-import) libraries
|
|
4500 |
- m4_if([$1], [GCJ], [],
|
|
4501 |
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
4502 |
- ;;
|
|
4503 |
-
|
|
4504 |
- darwin* | rhapsody*)
|
|
4505 |
- # PIC is the default on this platform
|
|
4506 |
- # Common symbols not allowed in MH_DYLIB files
|
|
4507 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
4508 |
- ;;
|
|
4509 |
-
|
|
4510 |
- hpux*)
|
|
4511 |
- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
|
4512 |
- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
|
4513 |
- # sets the default TLS model and affects inlining.
|
|
4514 |
- case $host_cpu in
|
|
4515 |
- hppa*64*)
|
|
4516 |
- # +Z the default
|
|
4517 |
- ;;
|
|
4518 |
- *)
|
|
4519 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4520 |
- ;;
|
|
4521 |
- esac
|
|
4522 |
- ;;
|
|
4523 |
-
|
|
4524 |
- interix[[3-9]]*)
|
|
4525 |
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
4526 |
- # Instead, we relocate shared libraries at runtime.
|
|
4527 |
- ;;
|
|
4528 |
-
|
|
4529 |
- msdosdjgpp*)
|
|
4530 |
- # Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
4531 |
- # on systems that don't support them.
|
|
4532 |
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
4533 |
- enable_shared=no
|
|
4534 |
- ;;
|
|
4535 |
-
|
|
4536 |
- *nto* | *qnx*)
|
|
4537 |
- # QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
4538 |
- # it will coredump.
|
|
4539 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
4540 |
- ;;
|
|
4541 |
-
|
|
4542 |
- sysv4*MP*)
|
|
4543 |
- if test -d /usr/nec; then
|
|
4544 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|
4545 |
- fi
|
|
4546 |
- ;;
|
|
4547 |
-
|
|
4548 |
- *)
|
|
4549 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4550 |
- ;;
|
|
4551 |
- esac
|
|
4552 |
- else
|
|
4553 |
- # PORTME Check for flag to pass linker flags through the system compiler.
|
|
4554 |
- case $host_os in
|
|
4555 |
- aix*)
|
|
4556 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4557 |
- if test "$host_cpu" = ia64; then
|
|
4558 |
- # AIX 5 now supports IA64 processor
|
|
4559 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4560 |
- else
|
|
4561 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
|
4562 |
- fi
|
|
4563 |
- ;;
|
|
4564 |
-
|
|
4565 |
- mingw* | cygwin* | pw32* | os2* | cegcc*)
|
|
4566 |
- # This hack is so that the source file can tell whether it is being
|
|
4567 |
- # built for inclusion in a dll (and should export symbols for example).
|
|
4568 |
- m4_if([$1], [GCJ], [],
|
|
4569 |
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
4570 |
- ;;
|
|
4571 |
-
|
|
4572 |
- hpux9* | hpux10* | hpux11*)
|
|
4573 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4574 |
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
4575 |
- # not for PA HP-UX.
|
|
4576 |
- case $host_cpu in
|
|
4577 |
- hppa*64*|ia64*)
|
|
4578 |
- # +Z the default
|
|
4579 |
- ;;
|
|
4580 |
- *)
|
|
4581 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
4582 |
- ;;
|
|
4583 |
- esac
|
|
4584 |
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
4585 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
4586 |
- ;;
|
|
4587 |
-
|
|
4588 |
- irix5* | irix6* | nonstopux*)
|
|
4589 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4590 |
- # PIC (with -KPIC) is the default.
|
|
4591 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4592 |
- ;;
|
|
4593 |
-
|
|
4594 |
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
4595 |
- case $cc_basename in
|
|
4596 |
- # old Intel for x86_64 which still supported -KPIC.
|
|
4597 |
- ecc*)
|
|
4598 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4599 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4600 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4601 |
- ;;
|
|
4602 |
- # icc used to be incompatible with GCC.
|
|
4603 |
- # ICC 10 doesn't accept -KPIC any more.
|
|
4604 |
- icc* | ifort*)
|
|
4605 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4606 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
4607 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
4608 |
- ;;
|
|
4609 |
- # Lahey Fortran 8.1.
|
|
4610 |
- lf95*)
|
|
4611 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4612 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
|
4613 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
|
4614 |
- ;;
|
|
4615 |
- pgcc* | pgf77* | pgf90* | pgf95*)
|
|
4616 |
- # Portland Group compilers (*not* the Pentium gcc compiler,
|
|
4617 |
- # which looks to be a dead project)
|
|
4618 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4619 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
4620 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4621 |
- ;;
|
|
4622 |
- ccc*)
|
|
4623 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4624 |
- # All Alpha code is PIC.
|
|
4625 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4626 |
- ;;
|
|
4627 |
- xl*)
|
|
4628 |
- # IBM XL C 8.0/Fortran 10.1 on PPC
|
|
4629 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4630 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
|
|
4631 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
|
|
4632 |
- ;;
|
|
4633 |
- *)
|
|
4634 |
- case `$CC -V 2>&1 | sed 5q` in
|
|
4635 |
- *Sun\ C*)
|
|
4636 |
- # Sun C 5.9
|
|
4637 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4638 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4639 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4640 |
- ;;
|
|
4641 |
- *Sun\ F*)
|
|
4642 |
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
4643 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4644 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4645 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
|
4646 |
- ;;
|
|
4647 |
- esac
|
|
4648 |
- ;;
|
|
4649 |
- esac
|
|
4650 |
- ;;
|
|
4651 |
-
|
|
4652 |
- newsos6)
|
|
4653 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4654 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4655 |
- ;;
|
|
4656 |
-
|
|
4657 |
- *nto* | *qnx*)
|
|
4658 |
- # QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
4659 |
- # it will coredump.
|
|
4660 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
|
|
4661 |
- ;;
|
|
4662 |
-
|
|
4663 |
- osf3* | osf4* | osf5*)
|
|
4664 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4665 |
- # All OSF/1 code is PIC.
|
|
4666 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4667 |
- ;;
|
|
4668 |
-
|
|
4669 |
- rdos*)
|
|
4670 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
4671 |
- ;;
|
|
4672 |
-
|
|
4673 |
- solaris*)
|
|
4674 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4675 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4676 |
- case $cc_basename in
|
|
4677 |
- f77* | f90* | f95*)
|
|
4678 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
|
4679 |
- *)
|
|
4680 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
|
4681 |
- esac
|
|
4682 |
- ;;
|
|
4683 |
-
|
|
4684 |
- sunos4*)
|
|
4685 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
|
4686 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
4687 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4688 |
- ;;
|
|
4689 |
-
|
|
4690 |
- sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
4691 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4692 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4693 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4694 |
- ;;
|
|
4695 |
-
|
|
4696 |
- sysv4*MP*)
|
|
4697 |
- if test -d /usr/nec ;then
|
|
4698 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
|
4699 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4700 |
- fi
|
|
4701 |
- ;;
|
|
4702 |
-
|
|
4703 |
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
4704 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4705 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
4706 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4707 |
- ;;
|
|
4708 |
-
|
|
4709 |
- unicos*)
|
|
4710 |
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
4711 |
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
4712 |
- ;;
|
|
4713 |
-
|
|
4714 |
- uts4*)
|
|
4715 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
|
4716 |
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
4717 |
- ;;
|
|
4718 |
-
|
|
4719 |
- *)
|
|
4720 |
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
4721 |
- ;;
|
|
4722 |
- esac
|
|
4723 |
- fi
|
|
4724 |
-])
|
|
4725 |
-case $host_os in
|
|
4726 |
- # For platforms which do not support PIC, -DPIC is meaningless:
|
|
4727 |
- *djgpp*)
|
|
4728 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4729 |
- ;;
|
|
4730 |
- *)
|
|
4731 |
- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
|
4732 |
- ;;
|
|
4733 |
-esac
|
|
4734 |
-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
|
4735 |
-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
|
4736 |
- [How to pass a linker flag through the compiler])
|
|
4737 |
-
|
|
4738 |
-#
|
|
4739 |
-# Check to make sure the PIC flag actually works.
|
|
4740 |
-#
|
|
4741 |
-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
|
4742 |
- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
|
|
4743 |
- [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
|
|
4744 |
- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
|
|
4745 |
- [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
|
|
4746 |
- "" | " "*) ;;
|
|
4747 |
- *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
|
4748 |
- esac],
|
|
4749 |
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
4750 |
- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
|
4751 |
-fi
|
|
4752 |
-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
|
4753 |
- [Additional compiler flags for building library objects])
|
|
4754 |
-
|
|
4755 |
-#
|
|
4756 |
-# Check to make sure the static flag actually works.
|
|
4757 |
-#
|
|
4758 |
-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
|
|
4759 |
-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
|
4760 |
- _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
|
|
4761 |
- $lt_tmp_static_flag,
|
|
4762 |
- [],
|
|
4763 |
- [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
|
|
4764 |
-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
|
4765 |
- [Compiler flag to prevent dynamic linking])
|
|
4766 |
-])# _LT_COMPILER_PIC
|
|
4767 |
-
|
|
4768 |
-
|
|
4769 |
-# _LT_LINKER_SHLIBS([TAGNAME])
|
|
4770 |
-# ----------------------------
|
|
4771 |
-# See if the linker supports building shared libraries.
|
|
4772 |
-m4_defun([_LT_LINKER_SHLIBS],
|
|
4773 |
-[AC_REQUIRE([LT_PATH_LD])dnl
|
|
4774 |
-AC_REQUIRE([LT_PATH_NM])dnl
|
|
4775 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
4776 |
-m4_require([_LT_DECL_EGREP])dnl
|
|
4777 |
-m4_require([_LT_DECL_SED])dnl
|
|
4778 |
-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
4779 |
-m4_require([_LT_TAG_COMPILER])dnl
|
|
4780 |
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|
4781 |
-m4_if([$1], [CXX], [
|
|
4782 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
4783 |
- case $host_os in
|
|
4784 |
- aix[[4-9]]*)
|
|
4785 |
- # If we're using GNU nm, then we don't want the "-C" option.
|
|
4786 |
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
4787 |
- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
|
4788 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
4789 |
- else
|
|
4790 |
- _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'
|
|
4791 |
- fi
|
|
4792 |
- ;;
|
|
4793 |
- pw32*)
|
|
4794 |
- _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
|
4795 |
- ;;
|
|
4796 |
- cygwin* | mingw* | cegcc*)
|
|
4797 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
4798 |
- ;;
|
|
4799 |
- linux* | k*bsd*-gnu)
|
|
4800 |
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
4801 |
- ;;
|
|
4802 |
- *)
|
|
4803 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
4804 |
- ;;
|
|
4805 |
- esac
|
|
4806 |
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
4807 |
-], [
|
|
4808 |
- runpath_var=
|
|
4809 |
- _LT_TAGVAR(allow_undefined_flag, $1)=
|
|
4810 |
- _LT_TAGVAR(always_export_symbols, $1)=no
|
|
4811 |
- _LT_TAGVAR(archive_cmds, $1)=
|
|
4812 |
- _LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
4813 |
- _LT_TAGVAR(compiler_needs_object, $1)=no
|
|
4814 |
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
4815 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
4816 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
4817 |
- _LT_TAGVAR(hardcode_automatic, $1)=no
|
|
4818 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
4819 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
4820 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
4821 |
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
4822 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
4823 |
- _LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
4824 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
4825 |
- _LT_TAGVAR(inherit_rpath, $1)=no
|
|
4826 |
- _LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
4827 |
- _LT_TAGVAR(module_cmds, $1)=
|
|
4828 |
- _LT_TAGVAR(module_expsym_cmds, $1)=
|
|
4829 |
- _LT_TAGVAR(old_archive_from_new_cmds, $1)=
|
|
4830 |
- _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
|
4831 |
- _LT_TAGVAR(thread_safe_flag_spec, $1)=
|
|
4832 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
4833 |
- # include_expsyms should be a list of space-separated symbols to be *always*
|
|
4834 |
- # included in the symbol list
|
|
4835 |
- _LT_TAGVAR(include_expsyms, $1)=
|
|
4836 |
- # exclude_expsyms can be an extended regexp of symbols to exclude
|
|
4837 |
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
4838 |
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
4839 |
- # as well as any symbol that contains `d'.
|
|
4840 |
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
4841 |
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
4842 |
- # platforms (ab)use it in PIC code, but their linkers get confused if
|
|
4843 |
- # the symbol is explicitly referenced. Since portable code cannot
|
|
4844 |
- # rely on this symbol name, it's probably fine to never include it in
|
|
4845 |
- # preloaded symbol tables.
|
|
4846 |
- # Exclude shared library initialization/finalization symbols.
|
|
4847 |
-dnl Note also adjust exclude_expsyms for C++ above.
|
|
4848 |
- extract_expsyms_cmds=
|
|
4849 |
-
|
|
4850 |
- case $host_os in
|
|
4851 |
- cygwin* | mingw* | pw32* | cegcc*)
|
|
4852 |
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
4853 |
- # When not using gcc, we currently assume that we are using
|
|
4854 |
- # Microsoft Visual C++.
|
|
4855 |
- if test "$GCC" != yes; then
|
|
4856 |
- with_gnu_ld=no
|
|
4857 |
- fi
|
|
4858 |
- ;;
|
|
4859 |
- interix*)
|
|
4860 |
- # we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
4861 |
- with_gnu_ld=yes
|
|
4862 |
- ;;
|
|
4863 |
- openbsd*)
|
|
4864 |
- with_gnu_ld=no
|
|
4865 |
- ;;
|
|
4866 |
- linux* | k*bsd*-gnu)
|
|
4867 |
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
4868 |
- ;;
|
|
4869 |
- esac
|
|
4870 |
-
|
|
4871 |
- _LT_TAGVAR(ld_shlibs, $1)=yes
|
|
4872 |
- if test "$with_gnu_ld" = yes; then
|
|
4873 |
- # If archive_cmds runs LD, not CC, wlarc should be empty
|
|
4874 |
- wlarc='${wl}'
|
|
4875 |
-
|
|
4876 |
- # Set some defaults for GNU ld with shared library support. These
|
|
4877 |
- # are reset later if shared libraries are not supported. Putting them
|
|
4878 |
- # here allows them to be overridden if necessary.
|
|
4879 |
- runpath_var=LD_RUN_PATH
|
|
4880 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
4881 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
4882 |
- # ancient GNU ld didn't support --whole-archive et. al.
|
|
4883 |
- if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
|
4884 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
4885 |
- else
|
|
4886 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
4887 |
- fi
|
|
4888 |
- supports_anon_versioning=no
|
|
4889 |
- case `$LD -v 2>&1` in
|
|
4890 |
- *GNU\ gold*) supports_anon_versioning=yes ;;
|
|
4891 |
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
4892 |
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
4893 |
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
4894 |
- *\ 2.11.*) ;; # other 2.11 versions
|
|
4895 |
- *) supports_anon_versioning=yes ;;
|
|
4896 |
- esac
|
|
4897 |
-
|
|
4898 |
- # See if GNU ld supports shared libraries.
|
|
4899 |
- case $host_os in
|
|
4900 |
- aix[[3-9]]*)
|
|
4901 |
- # On AIX/PPC, the GNU linker is very broken
|
|
4902 |
- if test "$host_cpu" != ia64; then
|
|
4903 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
4904 |
- cat <<_LT_EOF 1>&2
|
|
4905 |
-
|
|
4906 |
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|
4907 |
-*** to be unable to reliably create shared libraries on AIX.
|
|
4908 |
-*** Therefore, libtool is disabling shared libraries support. If you
|
|
4909 |
-*** really care for shared libraries, you may want to modify your PATH
|
|
4910 |
-*** so that a non-GNU linker is found, and then restart.
|
|
4911 |
-
|
|
4912 |
-_LT_EOF
|
|
4913 |
- fi
|
|
4914 |
- ;;
|
|
4915 |
-
|
|
4916 |
- amigaos*)
|
|
4917 |
- case $host_cpu in
|
|
4918 |
- powerpc)
|
|
4919 |
- # see comment about AmigaOS4 .so support
|
|
4920 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
4921 |
- _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
|
4922 |
- ;;
|
|
4923 |
- m68k)
|
|
4924 |
- _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)'
|
|
4925 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
4926 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
4927 |
- ;;
|
|
4928 |
- esac
|
|
4929 |
- ;;
|
|
4930 |
-
|
|
4931 |
- beos*)
|
|
4932 |
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
4933 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
4934 |
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
4935 |
- # support --undefined. This deserves some investigation. FIXME
|
|
4936 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
4937 |
- else
|
|
4938 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
4939 |
- fi
|
|
4940 |
- ;;
|
|
4941 |
-
|
|
4942 |
- cygwin* | mingw* | pw32* | cegcc*)
|
|
4943 |
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
4944 |
- # as there is no search path for DLLs.
|
|
4945 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
4946 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
4947 |
- _LT_TAGVAR(always_export_symbols, $1)=no
|
|
4948 |
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
4949 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
|
4950 |
-
|
|
4951 |
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
4952 |
- _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'
|
|
4953 |
- # If the export-symbols file already is a .def file (1st line
|
|
4954 |
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
4955 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
4956 |
- cp $export_symbols $output_objdir/$soname.def;
|
|
4957 |
- else
|
|
4958 |
- echo EXPORTS > $output_objdir/$soname.def;
|
|
4959 |
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
4960 |
- fi~
|
|
4961 |
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
4962 |
- else
|
|
4963 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
4964 |
- fi
|
|
4965 |
- ;;
|
|
4966 |
-
|
|
4967 |
- interix[[3-9]]*)
|
|
4968 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
4969 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
4970 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
4971 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
4972 |
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
4973 |
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
4974 |
- # default) and relocated if they conflict, which is a slow very memory
|
|
4975 |
- # consuming and fragmenting process. To avoid this, we pick a random,
|
|
4976 |
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
4977 |
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
4978 |
- _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'
|
|
4979 |
- _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'
|
|
4980 |
- ;;
|
|
4981 |
-
|
|
4982 |
- gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
4983 |
- tmp_diet=no
|
|
4984 |
- if test "$host_os" = linux-dietlibc; then
|
|
4985 |
- case $cc_basename in
|
|
4986 |
- diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
|
4987 |
- esac
|
|
4988 |
- fi
|
|
4989 |
- if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
|
4990 |
- && test "$tmp_diet" = no
|
|
4991 |
- then
|
|
4992 |
- tmp_addflag=
|
|
4993 |
- tmp_sharedflag='-shared'
|
|
4994 |
- case $cc_basename,$host_cpu in
|
|
4995 |
- pgcc*) # Portland Group C compiler
|
|
4996 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
4997 |
- tmp_addflag=' $pic_flag'
|
|
4998 |
- ;;
|
|
4999 |
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
|
5000 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
5001 |
- tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
5002 |
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
5003 |
- tmp_addflag=' -i_dynamic' ;;
|
|
5004 |
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
5005 |
- tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
5006 |
- ifc* | ifort*) # Intel Fortran compiler
|
|
5007 |
- tmp_addflag=' -nofor_main' ;;
|
|
5008 |
- lf95*) # Lahey Fortran 8.1
|
|
5009 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
5010 |
- tmp_sharedflag='--shared' ;;
|
|
5011 |
- xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
|
5012 |
- tmp_sharedflag='-qmkshrobj'
|
|
5013 |
- tmp_addflag= ;;
|
|
5014 |
- esac
|
|
5015 |
- case `$CC -V 2>&1 | sed 5q` in
|
|
5016 |
- *Sun\ C*) # Sun C 5.9
|
|
5017 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
5018 |
- _LT_TAGVAR(compiler_needs_object, $1)=yes
|
|
5019 |
- tmp_sharedflag='-G' ;;
|
|
5020 |
- *Sun\ F*) # Sun Fortran 8.3
|
|
5021 |
- tmp_sharedflag='-G' ;;
|
|
5022 |
- esac
|
|
5023 |
- _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5024 |
-
|
|
5025 |
- if test "x$supports_anon_versioning" = xyes; then
|
|
5026 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
5027 |
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
5028 |
- echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
5029 |
- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
5030 |
- fi
|
|
5031 |
-
|
|
5032 |
- case $cc_basename in
|
|
5033 |
- xlf*)
|
|
5034 |
- # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
|
5035 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
|
5036 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
5037 |
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
|
5038 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
5039 |
- if test "x$supports_anon_versioning" = xyes; then
|
|
5040 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
5041 |
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
5042 |
- echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
5043 |
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
5044 |
- fi
|
|
5045 |
- ;;
|
|
5046 |
- esac
|
|
5047 |
- else
|
|
5048 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5049 |
- fi
|
|
5050 |
- ;;
|
|
5051 |
-
|
|
5052 |
- netbsd* | netbsdelf*-gnu)
|
|
5053 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
5054 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
5055 |
- wlarc=
|
|
5056 |
- else
|
|
5057 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5058 |
- _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'
|
|
5059 |
- fi
|
|
5060 |
- ;;
|
|
5061 |
-
|
|
5062 |
- solaris*)
|
|
5063 |
- if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
|
5064 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5065 |
- cat <<_LT_EOF 1>&2
|
|
5066 |
-
|
|
5067 |
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
5068 |
-*** create shared libraries on Solaris systems. Therefore, libtool
|
|
5069 |
-*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
5070 |
-*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
5071 |
-*** your PATH or compiler configuration so that the native linker is
|
|
5072 |
-*** used, and then restart.
|
|
5073 |
-
|
|
5074 |
-_LT_EOF
|
|
5075 |
- elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
5076 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5077 |
- _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'
|
|
5078 |
- else
|
|
5079 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5080 |
- fi
|
|
5081 |
- ;;
|
|
5082 |
-
|
|
5083 |
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
5084 |
- case `$LD -v 2>&1` in
|
|
5085 |
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
|
5086 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5087 |
- cat <<_LT_EOF 1>&2
|
|
5088 |
-
|
|
5089 |
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
5090 |
-*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
5091 |
-*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
5092 |
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
5093 |
-*** your PATH or compiler configuration so that the native linker is
|
|
5094 |
-*** used, and then restart.
|
|
5095 |
-
|
|
5096 |
-_LT_EOF
|
|
5097 |
- ;;
|
|
5098 |
- *)
|
|
5099 |
- # For security reasons, it is highly recommended that you always
|
|
5100 |
- # use absolute paths for naming shared libraries, and exclude the
|
|
5101 |
- # DT_RUNPATH tag from executables and libraries. But doing so
|
|
5102 |
- # requires that you compile everything twice, which is a pain.
|
|
5103 |
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
5104 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
5105 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5106 |
- _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'
|
|
5107 |
- else
|
|
5108 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5109 |
- fi
|
|
5110 |
- ;;
|
|
5111 |
- esac
|
|
5112 |
- ;;
|
|
5113 |
-
|
|
5114 |
- sunos4*)
|
|
5115 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
5116 |
- wlarc=
|
|
5117 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5118 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5119 |
- ;;
|
|
5120 |
-
|
|
5121 |
- *)
|
|
5122 |
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
5123 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5124 |
- _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'
|
|
5125 |
- else
|
|
5126 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5127 |
- fi
|
|
5128 |
- ;;
|
|
5129 |
- esac
|
|
5130 |
-
|
|
5131 |
- if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
|
|
5132 |
- runpath_var=
|
|
5133 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
5134 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
5135 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
5136 |
- fi
|
|
5137 |
- else
|
|
5138 |
- # PORTME fill in a description of your system's linker (not GNU ld)
|
|
5139 |
- case $host_os in
|
|
5140 |
- aix3*)
|
|
5141 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
5142 |
- _LT_TAGVAR(always_export_symbols, $1)=yes
|
|
5143 |
- _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'
|
|
5144 |
- # Note: this linker hardcodes the directories in LIBPATH if there
|
|
5145 |
- # are no directories specified by -L.
|
|
5146 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5147 |
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
5148 |
- # Neither direct hardcoding nor static linking is supported with a
|
|
5149 |
- # broken collect2.
|
|
5150 |
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
5151 |
- fi
|
|
5152 |
- ;;
|
|
5153 |
-
|
|
5154 |
- aix[[4-9]]*)
|
|
5155 |
- if test "$host_cpu" = ia64; then
|
|
5156 |
- # On IA64, the linker does run time linking by default, so we don't
|
|
5157 |
- # have to do anything special.
|
|
5158 |
- aix_use_runtimelinking=no
|
|
5159 |
- exp_sym_flag='-Bexport'
|
|
5160 |
- no_entry_flag=""
|
|
5161 |
- else
|
|
5162 |
- # If we're using GNU nm, then we don't want the "-C" option.
|
|
5163 |
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
5164 |
- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
|
5165 |
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
|
5166 |
- else
|
|
5167 |
- _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'
|
|
5168 |
- fi
|
|
5169 |
- aix_use_runtimelinking=no
|
|
5170 |
-
|
|
5171 |
- # Test if we are trying to use run time linking or normal
|
|
5172 |
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
5173 |
- # need to do runtime linking.
|
|
5174 |
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
|
5175 |
- for ld_flag in $LDFLAGS; do
|
|
5176 |
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
5177 |
- aix_use_runtimelinking=yes
|
|
5178 |
- break
|
|
5179 |
- fi
|
|
5180 |
- done
|
|
5181 |
- ;;
|
|
5182 |
- esac
|
|
5183 |
-
|
|
5184 |
- exp_sym_flag='-bexport'
|
|
5185 |
- no_entry_flag='-bnoentry'
|
|
5186 |
- fi
|
|
5187 |
-
|
|
5188 |
- # When large executables or shared objects are built, AIX ld can
|
|
5189 |
- # have problems creating the table of contents. If linking a library
|
|
5190 |
- # or program results in "error TOC overflow" add -mminimal-toc to
|
|
5191 |
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
5192 |
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
5193 |
-
|
|
5194 |
- _LT_TAGVAR(archive_cmds, $1)=''
|
|
5195 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5196 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
5197 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
5198 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
5199 |
- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
|
5200 |
-
|
|
5201 |
- if test "$GCC" = yes; then
|
|
5202 |
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|
5203 |
- # We only want to do this on AIX 4.2 and lower, the check
|
|
5204 |
- # below for broken collect2 doesn't work under 4.3+
|
|
5205 |
- collect2name=`${CC} -print-prog-name=collect2`
|
|
5206 |
- if test -f "$collect2name" &&
|
|
5207 |
- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
|
5208 |
- then
|
|
5209 |
- # We have reworked collect2
|
|
5210 |
- :
|
|
5211 |
- else
|
|
5212 |
- # We have old collect2
|
|
5213 |
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
5214 |
- # It fails to find uninstalled libraries when the uninstalled
|
|
5215 |
- # path is not listed in the libpath. Setting hardcode_minus_L
|
|
5216 |
- # to unsupported forces relinking
|
|
5217 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5218 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5219 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
5220 |
- fi
|
|
5221 |
- ;;
|
|
5222 |
- esac
|
|
5223 |
- shared_flag='-shared'
|
|
5224 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
5225 |
- shared_flag="$shared_flag "'${wl}-G'
|
|
5226 |
- fi
|
|
5227 |
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
5228 |
- else
|
|
5229 |
- # not using gcc
|
|
5230 |
- if test "$host_cpu" = ia64; then
|
|
5231 |
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
5232 |
- # chokes on -Wl,-G. The following line is correct:
|
|
5233 |
- shared_flag='-G'
|
|
5234 |
- else
|
|
5235 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
5236 |
- shared_flag='${wl}-G'
|
|
5237 |
- else
|
|
5238 |
- shared_flag='${wl}-bM:SRE'
|
|
5239 |
- fi
|
|
5240 |
- fi
|
|
5241 |
- fi
|
|
5242 |
-
|
|
5243 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
|
5244 |
- # It seems that -bexpall does not export symbols beginning with
|
|
5245 |
- # underscore (_), so it is better to generate a list of symbols to export.
|
|
5246 |
- _LT_TAGVAR(always_export_symbols, $1)=yes
|
|
5247 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
5248 |
- # Warning - without using the other runtime loading flags (-brtl),
|
|
5249 |
- # -berok will link without error, but may produce a broken library.
|
|
5250 |
- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
5251 |
- # Determine the default libpath from the value encoded in an
|
|
5252 |
- # empty executable.
|
|
5253 |
- _LT_SYS_MODULE_PATH_AIX
|
|
5254 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
5255 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
5256 |
- else
|
|
5257 |
- if test "$host_cpu" = ia64; then
|
|
5258 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
5259 |
- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
5260 |
- _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"
|
|
5261 |
- else
|
|
5262 |
- # Determine the default libpath from the value encoded in an
|
|
5263 |
- # empty executable.
|
|
5264 |
- _LT_SYS_MODULE_PATH_AIX
|
|
5265 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
5266 |
- # Warning - without using the other run time loading flags,
|
|
5267 |
- # -berok will link without error, but may produce a broken library.
|
|
5268 |
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
5269 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
5270 |
- # Exported symbols can be pulled into shared objects from archives
|
|
5271 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
5272 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
5273 |
- # This is similar to how AIX traditionally builds its shared libraries.
|
|
5274 |
- _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'
|
|
5275 |
- fi
|
|
5276 |
- fi
|
|
5277 |
- ;;
|
|
5278 |
-
|
|
5279 |
- amigaos*)
|
|
5280 |
- case $host_cpu in
|
|
5281 |
- powerpc)
|
|
5282 |
- # see comment about AmigaOS4 .so support
|
|
5283 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
5284 |
- _LT_TAGVAR(archive_expsym_cmds, $1)=''
|
|
5285 |
- ;;
|
|
5286 |
- m68k)
|
|
5287 |
- _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)'
|
|
5288 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5289 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5290 |
- ;;
|
|
5291 |
- esac
|
|
5292 |
- ;;
|
|
5293 |
-
|
|
5294 |
- bsdi[[45]]*)
|
|
5295 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
|
5296 |
- ;;
|
|
5297 |
-
|
|
5298 |
- cygwin* | mingw* | pw32* | cegcc*)
|
|
5299 |
- # When not using gcc, we currently assume that we are using
|
|
5300 |
- # Microsoft Visual C++.
|
|
5301 |
- # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
5302 |
- # no search path for DLLs.
|
|
5303 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
5304 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
5305 |
- # Tell ltmain to make .lib files, not .a files.
|
|
5306 |
- libext=lib
|
|
5307 |
- # Tell ltmain to make .dll files, not .so files.
|
|
5308 |
- shrext_cmds=".dll"
|
|
5309 |
- # FIXME: Setting linknames here is a bad hack.
|
|
5310 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
5311 |
- # The linker will automatically build a .lib file if we build a DLL.
|
|
5312 |
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
5313 |
- # FIXME: Should let the user specify the lib program.
|
|
5314 |
- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
5315 |
- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
|
5316 |
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
5317 |
- ;;
|
|
5318 |
-
|
|
5319 |
- darwin* | rhapsody*)
|
|
5320 |
- _LT_DARWIN_LINKER_FEATURES($1)
|
|
5321 |
- ;;
|
|
5322 |
-
|
|
5323 |
- dgux*)
|
|
5324 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5325 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5326 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5327 |
- ;;
|
|
5328 |
-
|
|
5329 |
- freebsd1*)
|
|
5330 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5331 |
- ;;
|
|
5332 |
-
|
|
5333 |
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
5334 |
- # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
5335 |
- # does not break anything, and helps significantly (at the cost of a little
|
|
5336 |
- # extra space).
|
|
5337 |
- freebsd2.2*)
|
|
5338 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
5339 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
5340 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5341 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5342 |
- ;;
|
|
5343 |
-
|
|
5344 |
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
5345 |
- freebsd2*)
|
|
5346 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
5347 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5348 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5349 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5350 |
- ;;
|
|
5351 |
-
|
|
5352 |
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
5353 |
- freebsd* | dragonfly*)
|
|
5354 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
5355 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
5356 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5357 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5358 |
- ;;
|
|
5359 |
-
|
|
5360 |
- hpux9*)
|
|
5361 |
- if test "$GCC" = yes; then
|
|
5362 |
- _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'
|
|
5363 |
- else
|
|
5364 |
- _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'
|
|
5365 |
- fi
|
|
5366 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
5367 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5368 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5369 |
-
|
|
5370 |
- # hardcode_minus_L: Not really in the search PATH,
|
|
5371 |
- # but as the default location of the library.
|
|
5372 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5373 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
5374 |
- ;;
|
|
5375 |
-
|
|
5376 |
- hpux10*)
|
|
5377 |
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
5378 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
5379 |
- else
|
|
5380 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
5381 |
- fi
|
|
5382 |
- if test "$with_gnu_ld" = no; then
|
|
5383 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
5384 |
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|
5385 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5386 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5387 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
5388 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
5389 |
- # hardcode_minus_L: Not really in the search PATH,
|
|
5390 |
- # but as the default location of the library.
|
|
5391 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5392 |
- fi
|
|
5393 |
- ;;
|
|
5394 |
-
|
|
5395 |
- hpux11*)
|
|
5396 |
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
5397 |
- case $host_cpu in
|
|
5398 |
- hppa*64*)
|
|
5399 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5400 |
- ;;
|
|
5401 |
- ia64*)
|
|
5402 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
5403 |
- ;;
|
|
5404 |
- *)
|
|
5405 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
5406 |
- ;;
|
|
5407 |
- esac
|
|
5408 |
- else
|
|
5409 |
- case $host_cpu in
|
|
5410 |
- hppa*64*)
|
|
5411 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5412 |
- ;;
|
|
5413 |
- ia64*)
|
|
5414 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
5415 |
- ;;
|
|
5416 |
- *)
|
|
5417 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
5418 |
- ;;
|
|
5419 |
- esac
|
|
5420 |
- fi
|
|
5421 |
- if test "$with_gnu_ld" = no; then
|
|
5422 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
5423 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5424 |
-
|
|
5425 |
- case $host_cpu in
|
|
5426 |
- hppa*64*|ia64*)
|
|
5427 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
5428 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5429 |
- ;;
|
|
5430 |
- *)
|
|
5431 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5432 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
5433 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
5434 |
-
|
|
5435 |
- # hardcode_minus_L: Not really in the search PATH,
|
|
5436 |
- # but as the default location of the library.
|
|
5437 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5438 |
- ;;
|
|
5439 |
- esac
|
|
5440 |
- fi
|
|
5441 |
- ;;
|
|
5442 |
-
|
|
5443 |
- irix5* | irix6* | nonstopux*)
|
|
5444 |
- if test "$GCC" = yes; then
|
|
5445 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
5446 |
- # Try to use the -exported_symbol ld option, if it does not
|
|
5447 |
- # work, assume that -exports_file does not work either and
|
|
5448 |
- # implicitly export all symbols.
|
|
5449 |
- save_LDFLAGS="$LDFLAGS"
|
|
5450 |
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
5451 |
- AC_LINK_IFELSE(int foo(void) {},
|
|
5452 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
5453 |
- )
|
|
5454 |
- LDFLAGS="$save_LDFLAGS"
|
|
5455 |
- else
|
|
5456 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
5457 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
5458 |
- fi
|
|
5459 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
5460 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
5461 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5462 |
- _LT_TAGVAR(inherit_rpath, $1)=yes
|
|
5463 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
5464 |
- ;;
|
|
5465 |
-
|
|
5466 |
- netbsd* | netbsdelf*-gnu)
|
|
5467 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
5468 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
5469 |
- else
|
|
5470 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
5471 |
- fi
|
|
5472 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
5473 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5474 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5475 |
- ;;
|
|
5476 |
-
|
|
5477 |
- newsos6)
|
|
5478 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5479 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5480 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
5481 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5482 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5483 |
- ;;
|
|
5484 |
-
|
|
5485 |
- *nto* | *qnx*)
|
|
5486 |
- ;;
|
|
5487 |
-
|
|
5488 |
- openbsd*)
|
|
5489 |
- if test -f /usr/libexec/ld.so; then
|
|
5490 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5491 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5492 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
5493 |
- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
5494 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
5495 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
5496 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
5497 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
5498 |
- else
|
|
5499 |
- case $host_os in
|
|
5500 |
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
|
5501 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
5502 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
5503 |
- ;;
|
|
5504 |
- *)
|
|
5505 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
5506 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
5507 |
- ;;
|
|
5508 |
- esac
|
|
5509 |
- fi
|
|
5510 |
- else
|
|
5511 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5512 |
- fi
|
|
5513 |
- ;;
|
|
5514 |
-
|
|
5515 |
- os2*)
|
|
5516 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5517 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5518 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
5519 |
- _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'
|
|
5520 |
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
5521 |
- ;;
|
|
5522 |
-
|
|
5523 |
- osf3*)
|
|
5524 |
- if test "$GCC" = yes; then
|
|
5525 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
5526 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
5527 |
- else
|
|
5528 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
5529 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
5530 |
- fi
|
|
5531 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
5532 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
5533 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5534 |
- ;;
|
|
5535 |
-
|
|
5536 |
- osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
5537 |
- if test "$GCC" = yes; then
|
|
5538 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
5539 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
5540 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
5541 |
- else
|
|
5542 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
5543 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
5544 |
- _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~
|
|
5545 |
- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
|
|
5546 |
-
|
|
5547 |
- # Both c and cxx compiler support -rpath directly
|
|
5548 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
5549 |
- fi
|
|
5550 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
|
|
5551 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
5552 |
- ;;
|
|
5553 |
-
|
|
5554 |
- solaris*)
|
|
5555 |
- _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
|
5556 |
- if test "$GCC" = yes; then
|
|
5557 |
- wlarc='${wl}'
|
|
5558 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5559 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
5560 |
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
5561 |
- else
|
|
5562 |
- case `$CC -V 2>&1` in
|
|
5563 |
- *"Compilers 5.0"*)
|
|
5564 |
- wlarc=''
|
|
5565 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5566 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
5567 |
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
|
5568 |
- ;;
|
|
5569 |
- *)
|
|
5570 |
- wlarc='${wl}'
|
|
5571 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5572 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
5573 |
- $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
5574 |
- ;;
|
|
5575 |
- esac
|
|
5576 |
- fi
|
|
5577 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
5578 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5579 |
- case $host_os in
|
|
5580 |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
5581 |
- *)
|
|
5582 |
- # The compiler driver will combine and reorder linker options,
|
|
5583 |
- # but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
5584 |
- # but is careful enough not to reorder.
|
|
5585 |
- # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
5586 |
- if test "$GCC" = yes; then
|
|
5587 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
5588 |
- else
|
|
5589 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
|
5590 |
- fi
|
|
5591 |
- ;;
|
|
5592 |
- esac
|
|
5593 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
5594 |
- ;;
|
|
5595 |
-
|
|
5596 |
- sunos4*)
|
|
5597 |
- if test "x$host_vendor" = xsequent; then
|
|
5598 |
- # Use $CC to link under sequent, because it throws in some extra .o
|
|
5599 |
- # files that make .init and .fini sections work.
|
|
5600 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5601 |
- else
|
|
5602 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
5603 |
- fi
|
|
5604 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5605 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
5606 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
5607 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5608 |
- ;;
|
|
5609 |
-
|
|
5610 |
- sysv4)
|
|
5611 |
- case $host_vendor in
|
|
5612 |
- sni)
|
|
5613 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5614 |
- _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
|
5615 |
- ;;
|
|
5616 |
- siemens)
|
|
5617 |
- ## LD is ld it makes a PLAMLIB
|
|
5618 |
- ## CC just makes a GrossModule.
|
|
5619 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
5620 |
- _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
|
5621 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
5622 |
- ;;
|
|
5623 |
- motorola)
|
|
5624 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5625 |
- _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
|
5626 |
- ;;
|
|
5627 |
- esac
|
|
5628 |
- runpath_var='LD_RUN_PATH'
|
|
5629 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5630 |
- ;;
|
|
5631 |
-
|
|
5632 |
- sysv4.3*)
|
|
5633 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5634 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5635 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
|
5636 |
- ;;
|
|
5637 |
-
|
|
5638 |
- sysv4*MP*)
|
|
5639 |
- if test -d /usr/nec; then
|
|
5640 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5641 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5642 |
- runpath_var=LD_RUN_PATH
|
|
5643 |
- hardcode_runpath_var=yes
|
|
5644 |
- _LT_TAGVAR(ld_shlibs, $1)=yes
|
|
5645 |
- fi
|
|
5646 |
- ;;
|
|
5647 |
-
|
|
5648 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
|
5649 |
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
5650 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
5651 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5652 |
- runpath_var='LD_RUN_PATH'
|
|
5653 |
-
|
|
5654 |
- if test "$GCC" = yes; then
|
|
5655 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5656 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5657 |
- else
|
|
5658 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5659 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5660 |
- fi
|
|
5661 |
- ;;
|
|
5662 |
-
|
|
5663 |
- sysv5* | sco3.2v5* | sco5v6*)
|
|
5664 |
- # Note: We can NOT use -z defs as we might desire, because we do not
|
|
5665 |
- # link with -lc, and that would cause any symbols used from libc to
|
|
5666 |
- # always be unresolved, which means just about no library would
|
|
5667 |
- # ever link correctly. If we're not using GNU ld we use -z text
|
|
5668 |
- # though, which does catch some bad symbols but isn't as heavy-handed
|
|
5669 |
- # as -z defs.
|
|
5670 |
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
5671 |
- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
5672 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
5673 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5674 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
|
5675 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
5676 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
5677 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
5678 |
- runpath_var='LD_RUN_PATH'
|
|
5679 |
-
|
|
5680 |
- if test "$GCC" = yes; then
|
|
5681 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5682 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5683 |
- else
|
|
5684 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5685 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
5686 |
- fi
|
|
5687 |
- ;;
|
|
5688 |
-
|
|
5689 |
- uts4*)
|
|
5690 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
5691 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
5692 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
5693 |
- ;;
|
|
5694 |
-
|
|
5695 |
- *)
|
|
5696 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
5697 |
- ;;
|
|
5698 |
- esac
|
|
5699 |
-
|
|
5700 |
- if test x$host_vendor = xsni; then
|
|
5701 |
- case $host in
|
|
5702 |
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
5703 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
|
|
5704 |
- ;;
|
|
5705 |
- esac
|
|
5706 |
- fi
|
|
5707 |
- fi
|
|
5708 |
-])
|
|
5709 |
-AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
|
5710 |
-test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
5711 |
-
|
|
5712 |
-_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
|
|
5713 |
-
|
|
5714 |
-_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
|
|
5715 |
-_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
|
|
5716 |
-_LT_DECL([], [extract_expsyms_cmds], [2],
|
|
5717 |
- [The commands to extract the exported symbol list from a shared archive])
|
|
5718 |
-
|
|
5719 |
-#
|
|
5720 |
-# Do we need to explicitly link libc?
|
|
5721 |
-#
|
|
5722 |
-case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
|
|
5723 |
-x|xyes)
|
|
5724 |
- # Assume -lc should be added
|
|
5725 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
5726 |
-
|
|
5727 |
- if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
5728 |
- case $_LT_TAGVAR(archive_cmds, $1) in
|
|
5729 |
- *'~'*)
|
|
5730 |
- # FIXME: we may have to deal with multi-command sequences.
|
|
5731 |
- ;;
|
|
5732 |
- '$CC '*)
|
|
5733 |
- # Test whether the compiler implicitly links with -lc since on some
|
|
5734 |
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
5735 |
- # to ld, don't add -lc before -lgcc.
|
|
5736 |
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
|
5737 |
- $RM conftest*
|
|
5738 |
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
5739 |
-
|
|
5740 |
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
|
5741 |
- soname=conftest
|
|
5742 |
- lib=conftest
|
|
5743 |
- libobjs=conftest.$ac_objext
|
|
5744 |
- deplibs=
|
|
5745 |
- wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
|
|
5746 |
- pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
|
|
5747 |
- compiler_flags=-v
|
|
5748 |
- linker_flags=-v
|
|
5749 |
- verstring=
|
|
5750 |
- output_objdir=.
|
|
5751 |
- libname=conftest
|
|
5752 |
- lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
|
|
5753 |
- _LT_TAGVAR(allow_undefined_flag, $1)=
|
|
5754 |
- if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
|
|
5755 |
- then
|
|
5756 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
5757 |
- else
|
|
5758 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
5759 |
- fi
|
|
5760 |
- _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
|
5761 |
- else
|
|
5762 |
- cat conftest.err 1>&5
|
|
5763 |
- fi
|
|
5764 |
- $RM conftest*
|
|
5765 |
- AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
|
|
5766 |
- ;;
|
|
5767 |
- esac
|
|
5768 |
- fi
|
|
5769 |
- ;;
|
|
5770 |
-esac
|
|
5771 |
-
|
|
5772 |
-_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
|
|
5773 |
- [Whether or not to add -lc for building shared libraries])
|
|
5774 |
-_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
|
|
5775 |
- [enable_shared_with_static_runtimes], [0],
|
|
5776 |
- [Whether or not to disallow shared libs when runtime libs are static])
|
|
5777 |
-_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
|
|
5778 |
- [Compiler flag to allow reflexive dlopens])
|
|
5779 |
-_LT_TAGDECL([], [whole_archive_flag_spec], [1],
|
|
5780 |
- [Compiler flag to generate shared objects directly from archives])
|
|
5781 |
-_LT_TAGDECL([], [compiler_needs_object], [1],
|
|
5782 |
- [Whether the compiler copes with passing no objects directly])
|
|
5783 |
-_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
|
|
5784 |
- [Create an old-style archive from a shared archive])
|
|
5785 |
-_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
|
|
5786 |
- [Create a temporary old-style archive to link instead of a shared archive])
|
|
5787 |
-_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
|
|
5788 |
-_LT_TAGDECL([], [archive_expsym_cmds], [2])
|
|
5789 |
-_LT_TAGDECL([], [module_cmds], [2],
|
|
5790 |
- [Commands used to build a loadable module if different from building
|
|
5791 |
- a shared archive.])
|
|
5792 |
-_LT_TAGDECL([], [module_expsym_cmds], [2])
|
|
5793 |
-_LT_TAGDECL([], [with_gnu_ld], [1],
|
|
5794 |
- [Whether we are building with GNU ld or not])
|
|
5795 |
-_LT_TAGDECL([], [allow_undefined_flag], [1],
|
|
5796 |
- [Flag that allows shared libraries with undefined symbols to be built])
|
|
5797 |
-_LT_TAGDECL([], [no_undefined_flag], [1],
|
|
5798 |
- [Flag that enforces no undefined symbols])
|
|
5799 |
-_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
|
|
5800 |
- [Flag to hardcode $libdir into a binary during linking.
|
|
5801 |
- This must work even if $libdir does not exist])
|
|
5802 |
-_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
|
|
5803 |
- [[If ld is used when linking, flag to hardcode $libdir into a binary
|
|
5804 |
- during linking. This must work even if $libdir does not exist]])
|
|
5805 |
-_LT_TAGDECL([], [hardcode_libdir_separator], [1],
|
|
5806 |
- [Whether we need a single "-rpath" flag with a separated argument])
|
|
5807 |
-_LT_TAGDECL([], [hardcode_direct], [0],
|
|
5808 |
- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
|
5809 |
- DIR into the resulting binary])
|
|
5810 |
-_LT_TAGDECL([], [hardcode_direct_absolute], [0],
|
|
5811 |
- [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
|
|
5812 |
- DIR into the resulting binary and the resulting library dependency is
|
|
5813 |
- "absolute", i.e impossible to change by setting ${shlibpath_var} if the
|
|
5814 |
- library is relocated])
|
|
5815 |
-_LT_TAGDECL([], [hardcode_minus_L], [0],
|
|
5816 |
- [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
|
5817 |
- into the resulting binary])
|
|
5818 |
-_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
|
|
5819 |
- [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
|
5820 |
- into the resulting binary])
|
|
5821 |
-_LT_TAGDECL([], [hardcode_automatic], [0],
|
|
5822 |
- [Set to "yes" if building a shared library automatically hardcodes DIR
|
|
5823 |
- into the library and all subsequent libraries and executables linked
|
|
5824 |
- against it])
|
|
5825 |
-_LT_TAGDECL([], [inherit_rpath], [0],
|
|
5826 |
- [Set to yes if linker adds runtime paths of dependent libraries
|
|
5827 |
- to runtime path list])
|
|
5828 |
-_LT_TAGDECL([], [link_all_deplibs], [0],
|
|
5829 |
- [Whether libtool must link a program against all its dependency libraries])
|
|
5830 |
-_LT_TAGDECL([], [fix_srcfile_path], [1],
|
|
5831 |
- [Fix the shell variable $srcfile for the compiler])
|
|
5832 |
-_LT_TAGDECL([], [always_export_symbols], [0],
|
|
5833 |
- [Set to "yes" if exported symbols are required])
|
|
5834 |
-_LT_TAGDECL([], [export_symbols_cmds], [2],
|
|
5835 |
- [The commands to list exported symbols])
|
|
5836 |
-_LT_TAGDECL([], [exclude_expsyms], [1],
|
|
5837 |
- [Symbols that should not be listed in the preloaded symbols])
|
|
5838 |
-_LT_TAGDECL([], [include_expsyms], [1],
|
|
5839 |
- [Symbols that must always be exported])
|
|
5840 |
-_LT_TAGDECL([], [prelink_cmds], [2],
|
|
5841 |
- [Commands necessary for linking programs (against libraries) with templates])
|
|
5842 |
-_LT_TAGDECL([], [file_list_spec], [1],
|
|
5843 |
- [Specify filename containing input files])
|
|
5844 |
-dnl FIXME: Not yet implemented
|
|
5845 |
-dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
|
|
5846 |
-dnl [Compiler flag to generate thread safe objects])
|
|
5847 |
-])# _LT_LINKER_SHLIBS
|
|
5848 |
-
|
|
5849 |
-
|
|
5850 |
-# _LT_LANG_C_CONFIG([TAG])
|
|
5851 |
-# ------------------------
|
|
5852 |
-# Ensure that the configuration variables for a C compiler are suitably
|
|
5853 |
-# defined. These variables are subsequently used by _LT_CONFIG to write
|
|
5854 |
-# the compiler configuration to `libtool'.
|
|
5855 |
-m4_defun([_LT_LANG_C_CONFIG],
|
|
5856 |
-[m4_require([_LT_DECL_EGREP])dnl
|
|
5857 |
-lt_save_CC="$CC"
|
|
5858 |
-AC_LANG_PUSH(C)
|
|
5859 |
-
|
|
5860 |
-# Source file extension for C test sources.
|
|
5861 |
-ac_ext=c
|
|
5862 |
-
|
|
5863 |
-# Object file extension for compiled C test sources.
|
|
5864 |
-objext=o
|
|
5865 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
5866 |
-
|
|
5867 |
-# Code to be used in simple compile tests
|
|
5868 |
-lt_simple_compile_test_code="int some_variable = 0;"
|
|
5869 |
-
|
|
5870 |
-# Code to be used in simple link tests
|
|
5871 |
-lt_simple_link_test_code='int main(){return(0);}'
|
|
5872 |
-
|
|
5873 |
-_LT_TAG_COMPILER
|
|
5874 |
-# Save the default compiler, since it gets overwritten when the other
|
|
5875 |
-# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
|
5876 |
-compiler_DEFAULT=$CC
|
|
5877 |
-
|
|
5878 |
-# save warnings/boilerplate of simple test code
|
|
5879 |
-_LT_COMPILER_BOILERPLATE
|
|
5880 |
-_LT_LINKER_BOILERPLATE
|
|
5881 |
-
|
|
5882 |
-## CAVEAT EMPTOR:
|
|
5883 |
-## There is no encapsulation within the following macros, do not change
|
|
5884 |
-## the running order or otherwise move them around unless you know exactly
|
|
5885 |
-## what you are doing...
|
|
5886 |
-if test -n "$compiler"; then
|
|
5887 |
- _LT_COMPILER_NO_RTTI($1)
|
|
5888 |
- _LT_COMPILER_PIC($1)
|
|
5889 |
- _LT_COMPILER_C_O($1)
|
|
5890 |
- _LT_COMPILER_FILE_LOCKS($1)
|
|
5891 |
- _LT_LINKER_SHLIBS($1)
|
|
5892 |
- _LT_SYS_DYNAMIC_LINKER($1)
|
|
5893 |
- _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
5894 |
- LT_SYS_DLOPEN_SELF
|
|
5895 |
- _LT_CMD_STRIPLIB
|
|
5896 |
-
|
|
5897 |
- # Report which library types will actually be built
|
|
5898 |
- AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
5899 |
- AC_MSG_RESULT([$can_build_shared])
|
|
5900 |
-
|
|
5901 |
- AC_MSG_CHECKING([whether to build shared libraries])
|
|
5902 |
- test "$can_build_shared" = "no" && enable_shared=no
|
|
5903 |
-
|
|
5904 |
- # On AIX, shared libraries and static libraries use the same namespace, and
|
|
5905 |
- # are all built from PIC.
|
|
5906 |
- case $host_os in
|
|
5907 |
- aix3*)
|
|
5908 |
- test "$enable_shared" = yes && enable_static=no
|
|
5909 |
- if test -n "$RANLIB"; then
|
|
5910 |
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
5911 |
- postinstall_cmds='$RANLIB $lib'
|
|
5912 |
- fi
|
|
5913 |
- ;;
|
|
5914 |
-
|
|
5915 |
- aix[[4-9]]*)
|
|
5916 |
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
5917 |
- test "$enable_shared" = yes && enable_static=no
|
|
5918 |
- fi
|
|
5919 |
- ;;
|
|
5920 |
- esac
|
|
5921 |
- AC_MSG_RESULT([$enable_shared])
|
|
5922 |
-
|
|
5923 |
- AC_MSG_CHECKING([whether to build static libraries])
|
|
5924 |
- # Make sure either enable_shared or enable_static is yes.
|
|
5925 |
- test "$enable_shared" = yes || enable_static=yes
|
|
5926 |
- AC_MSG_RESULT([$enable_static])
|
|
5927 |
-
|
|
5928 |
- _LT_CONFIG($1)
|
|
5929 |
-fi
|
|
5930 |
-AC_LANG_POP
|
|
5931 |
-CC="$lt_save_CC"
|
|
5932 |
-])# _LT_LANG_C_CONFIG
|
|
5933 |
-
|
|
5934 |
-
|
|
5935 |
-# _LT_PROG_CXX
|
|
5936 |
-# ------------
|
|
5937 |
-# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
|
|
5938 |
-# compiler, we have our own version here.
|
|
5939 |
-m4_defun([_LT_PROG_CXX],
|
|
5940 |
-[
|
|
5941 |
-pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
|
|
5942 |
-AC_PROG_CXX
|
|
5943 |
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|
5944 |
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|
5945 |
- (test "X$CXX" != "Xg++"))) ; then
|
|
5946 |
- AC_PROG_CXXCPP
|
|
5947 |
-else
|
|
5948 |
- _lt_caught_CXX_error=yes
|
|
5949 |
-fi
|
|
5950 |
-popdef([AC_MSG_ERROR])
|
|
5951 |
-])# _LT_PROG_CXX
|
|
5952 |
-
|
|
5953 |
-dnl aclocal-1.4 backwards compatibility:
|
|
5954 |
-dnl AC_DEFUN([_LT_PROG_CXX], [])
|
|
5955 |
-
|
|
5956 |
-
|
|
5957 |
-# _LT_LANG_CXX_CONFIG([TAG])
|
|
5958 |
-# --------------------------
|
|
5959 |
-# Ensure that the configuration variables for a C++ compiler are suitably
|
|
5960 |
-# defined. These variables are subsequently used by _LT_CONFIG to write
|
|
5961 |
-# the compiler configuration to `libtool'.
|
|
5962 |
-m4_defun([_LT_LANG_CXX_CONFIG],
|
|
5963 |
-[AC_REQUIRE([_LT_PROG_CXX])dnl
|
|
5964 |
-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
5965 |
-m4_require([_LT_DECL_EGREP])dnl
|
|
5966 |
-
|
|
5967 |
-AC_LANG_PUSH(C++)
|
|
5968 |
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
5969 |
-_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
5970 |
-_LT_TAGVAR(always_export_symbols, $1)=no
|
|
5971 |
-_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
5972 |
-_LT_TAGVAR(compiler_needs_object, $1)=no
|
|
5973 |
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
5974 |
-_LT_TAGVAR(hardcode_direct, $1)=no
|
|
5975 |
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
5976 |
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
5977 |
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
5978 |
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
5979 |
-_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
5980 |
-_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
5981 |
-_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
5982 |
-_LT_TAGVAR(inherit_rpath, $1)=no
|
|
5983 |
-_LT_TAGVAR(module_cmds, $1)=
|
|
5984 |
-_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
5985 |
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
5986 |
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
5987 |
-_LT_TAGVAR(no_undefined_flag, $1)=
|
|
5988 |
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
5989 |
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
5990 |
-
|
|
5991 |
-# Source file extension for C++ test sources.
|
|
5992 |
-ac_ext=cpp
|
|
5993 |
-
|
|
5994 |
-# Object file extension for compiled C++ test sources.
|
|
5995 |
-objext=o
|
|
5996 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
5997 |
-
|
|
5998 |
-# No sense in running all these tests if we already determined that
|
|
5999 |
-# the CXX compiler isn't working. Some variables (like enable_shared)
|
|
6000 |
-# are currently assumed to apply to all compilers on this platform,
|
|
6001 |
-# and will be corrupted by setting them based on a non-working compiler.
|
|
6002 |
-if test "$_lt_caught_CXX_error" != yes; then
|
|
6003 |
- # Code to be used in simple compile tests
|
|
6004 |
- lt_simple_compile_test_code="int some_variable = 0;"
|
|
6005 |
-
|
|
6006 |
- # Code to be used in simple link tests
|
|
6007 |
- lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
|
|
6008 |
-
|
|
6009 |
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
6010 |
- _LT_TAG_COMPILER
|
|
6011 |
-
|
|
6012 |
- # save warnings/boilerplate of simple test code
|
|
6013 |
- _LT_COMPILER_BOILERPLATE
|
|
6014 |
- _LT_LINKER_BOILERPLATE
|
|
6015 |
-
|
|
6016 |
- # Allow CC to be a program name with arguments.
|
|
6017 |
- lt_save_CC=$CC
|
|
6018 |
- lt_save_LD=$LD
|
|
6019 |
- lt_save_GCC=$GCC
|
|
6020 |
- GCC=$GXX
|
|
6021 |
- lt_save_with_gnu_ld=$with_gnu_ld
|
|
6022 |
- lt_save_path_LD=$lt_cv_path_LD
|
|
6023 |
- if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
|
6024 |
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
|
6025 |
- else
|
|
6026 |
- $as_unset lt_cv_prog_gnu_ld
|
|
6027 |
- fi
|
|
6028 |
- if test -n "${lt_cv_path_LDCXX+set}"; then
|
|
6029 |
- lt_cv_path_LD=$lt_cv_path_LDCXX
|
|
6030 |
- else
|
|
6031 |
- $as_unset lt_cv_path_LD
|
|
6032 |
- fi
|
|
6033 |
- test -z "${LDCXX+set}" || LD=$LDCXX
|
|
6034 |
- CC=${CXX-"c++"}
|
|
6035 |
- compiler=$CC
|
|
6036 |
- _LT_TAGVAR(compiler, $1)=$CC
|
|
6037 |
- _LT_CC_BASENAME([$compiler])
|
|
6038 |
-
|
|
6039 |
- if test -n "$compiler"; then
|
|
6040 |
- # We don't want -fno-exception when compiling C++ code, so set the
|
|
6041 |
- # no_builtin_flag separately
|
|
6042 |
- if test "$GXX" = yes; then
|
|
6043 |
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
|
6044 |
- else
|
|
6045 |
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
|
6046 |
- fi
|
|
6047 |
-
|
|
6048 |
- if test "$GXX" = yes; then
|
|
6049 |
- # Set up default GNU C++ configuration
|
|
6050 |
-
|
|
6051 |
- LT_PATH_LD
|
|
6052 |
-
|
|
6053 |
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
|
6054 |
- # archiving commands below assume that GNU ld is being used.
|
|
6055 |
- if test "$with_gnu_ld" = yes; then
|
|
6056 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6057 |
- _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'
|
|
6058 |
-
|
|
6059 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
6060 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
6061 |
-
|
|
6062 |
- # If archive_cmds runs LD, not CC, wlarc should be empty
|
|
6063 |
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
|
6064 |
- # investigate it a little bit more. (MM)
|
|
6065 |
- wlarc='${wl}'
|
|
6066 |
-
|
|
6067 |
- # ancient GNU ld didn't support --whole-archive et. al.
|
|
6068 |
- if eval "`$CC -print-prog-name=ld` --help 2>&1" |
|
|
6069 |
- $GREP 'no-whole-archive' > /dev/null; then
|
|
6070 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
6071 |
- else
|
|
6072 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
6073 |
- fi
|
|
6074 |
- else
|
|
6075 |
- with_gnu_ld=no
|
|
6076 |
- wlarc=
|
|
6077 |
-
|
|
6078 |
- # A generic and very simple default shared library creation
|
|
6079 |
- # command for GNU C++ for the case where it uses the native
|
|
6080 |
- # linker, instead of GNU ld. If possible, this setting should
|
|
6081 |
- # overridden to take advantage of the native linker features on
|
|
6082 |
- # the platform it is being used on.
|
|
6083 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
6084 |
- fi
|
|
6085 |
-
|
|
6086 |
- # Commands to make compiler produce verbose output that lists
|
|
6087 |
- # what "hidden" libraries, object files and flags are used when
|
|
6088 |
- # linking a shared library.
|
|
6089 |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
|
6090 |
-
|
|
6091 |
- else
|
|
6092 |
- GXX=no
|
|
6093 |
- with_gnu_ld=no
|
|
6094 |
- wlarc=
|
|
6095 |
- fi
|
|
6096 |
-
|
|
6097 |
- # PORTME: fill in a description of your system's C++ link characteristics
|
|
6098 |
- AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|
6099 |
- _LT_TAGVAR(ld_shlibs, $1)=yes
|
|
6100 |
- case $host_os in
|
|
6101 |
- aix3*)
|
|
6102 |
- # FIXME: insert proper C++ library support
|
|
6103 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6104 |
- ;;
|
|
6105 |
- aix[[4-9]]*)
|
|
6106 |
- if test "$host_cpu" = ia64; then
|
|
6107 |
- # On IA64, the linker does run time linking by default, so we don't
|
|
6108 |
- # have to do anything special.
|
|
6109 |
- aix_use_runtimelinking=no
|
|
6110 |
- exp_sym_flag='-Bexport'
|
|
6111 |
- no_entry_flag=""
|
|
6112 |
- else
|
|
6113 |
- aix_use_runtimelinking=no
|
|
6114 |
-
|
|
6115 |
- # Test if we are trying to use run time linking or normal
|
|
6116 |
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
6117 |
- # need to do runtime linking.
|
|
6118 |
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
|
|
6119 |
- for ld_flag in $LDFLAGS; do
|
|
6120 |
- case $ld_flag in
|
|
6121 |
- *-brtl*)
|
|
6122 |
- aix_use_runtimelinking=yes
|
|
6123 |
- break
|
|
6124 |
- ;;
|
|
6125 |
- esac
|
|
6126 |
- done
|
|
6127 |
- ;;
|
|
6128 |
- esac
|
|
6129 |
-
|
|
6130 |
- exp_sym_flag='-bexport'
|
|
6131 |
- no_entry_flag='-bnoentry'
|
|
6132 |
- fi
|
|
6133 |
-
|
|
6134 |
- # When large executables or shared objects are built, AIX ld can
|
|
6135 |
- # have problems creating the table of contents. If linking a library
|
|
6136 |
- # or program results in "error TOC overflow" add -mminimal-toc to
|
|
6137 |
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
6138 |
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
6139 |
-
|
|
6140 |
- _LT_TAGVAR(archive_cmds, $1)=''
|
|
6141 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
6142 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
6143 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
6144 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
6145 |
- _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
|
|
6146 |
-
|
|
6147 |
- if test "$GXX" = yes; then
|
|
6148 |
- case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
|
6149 |
- # We only want to do this on AIX 4.2 and lower, the check
|
|
6150 |
- # below for broken collect2 doesn't work under 4.3+
|
|
6151 |
- collect2name=`${CC} -print-prog-name=collect2`
|
|
6152 |
- if test -f "$collect2name" &&
|
|
6153 |
- strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
|
6154 |
- then
|
|
6155 |
- # We have reworked collect2
|
|
6156 |
- :
|
|
6157 |
- else
|
|
6158 |
- # We have old collect2
|
|
6159 |
- _LT_TAGVAR(hardcode_direct, $1)=unsupported
|
|
6160 |
- # It fails to find uninstalled libraries when the uninstalled
|
|
6161 |
- # path is not listed in the libpath. Setting hardcode_minus_L
|
|
6162 |
- # to unsupported forces relinking
|
|
6163 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes
|
|
6164 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
6165 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
6166 |
- fi
|
|
6167 |
- esac
|
|
6168 |
- shared_flag='-shared'
|
|
6169 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
6170 |
- shared_flag="$shared_flag "'${wl}-G'
|
|
6171 |
- fi
|
|
6172 |
- else
|
|
6173 |
- # not using gcc
|
|
6174 |
- if test "$host_cpu" = ia64; then
|
|
6175 |
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
6176 |
- # chokes on -Wl,-G. The following line is correct:
|
|
6177 |
- shared_flag='-G'
|
|
6178 |
- else
|
|
6179 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
6180 |
- shared_flag='${wl}-G'
|
|
6181 |
- else
|
|
6182 |
- shared_flag='${wl}-bM:SRE'
|
|
6183 |
- fi
|
|
6184 |
- fi
|
|
6185 |
- fi
|
|
6186 |
-
|
|
6187 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
|
|
6188 |
- # It seems that -bexpall does not export symbols beginning with
|
|
6189 |
- # underscore (_), so it is better to generate a list of symbols to
|
|
6190 |
- # export.
|
|
6191 |
- _LT_TAGVAR(always_export_symbols, $1)=yes
|
|
6192 |
- if test "$aix_use_runtimelinking" = yes; then
|
|
6193 |
- # Warning - without using the other runtime loading flags (-brtl),
|
|
6194 |
- # -berok will link without error, but may produce a broken library.
|
|
6195 |
- _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
6196 |
- # Determine the default libpath from the value encoded in an empty
|
|
6197 |
- # executable.
|
|
6198 |
- _LT_SYS_MODULE_PATH_AIX
|
|
6199 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
6200 |
-
|
|
6201 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
6202 |
- else
|
|
6203 |
- if test "$host_cpu" = ia64; then
|
|
6204 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
6205 |
- _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
6206 |
- _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"
|
|
6207 |
- else
|
|
6208 |
- # Determine the default libpath from the value encoded in an
|
|
6209 |
- # empty executable.
|
|
6210 |
- _LT_SYS_MODULE_PATH_AIX
|
|
6211 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
6212 |
- # Warning - without using the other run time loading flags,
|
|
6213 |
- # -berok will link without error, but may produce a broken library.
|
|
6214 |
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
6215 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
6216 |
- # Exported symbols can be pulled into shared objects from archives
|
|
6217 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
6218 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
6219 |
- # This is similar to how AIX traditionally builds its shared
|
|
6220 |
- # libraries.
|
|
6221 |
- _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'
|
|
6222 |
- fi
|
|
6223 |
- fi
|
|
6224 |
- ;;
|
|
6225 |
-
|
|
6226 |
- beos*)
|
|
6227 |
- if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
6228 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
6229 |
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
6230 |
- # support --undefined. This deserves some investigation. FIXME
|
|
6231 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6232 |
- else
|
|
6233 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6234 |
- fi
|
|
6235 |
- ;;
|
|
6236 |
-
|
|
6237 |
- chorus*)
|
|
6238 |
- case $cc_basename in
|
|
6239 |
- *)
|
|
6240 |
- # FIXME: insert proper C++ library support
|
|
6241 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6242 |
- ;;
|
|
6243 |
- esac
|
|
6244 |
- ;;
|
|
6245 |
-
|
|
6246 |
- cygwin* | mingw* | pw32* | cegcc*)
|
|
6247 |
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
6248 |
- # as there is no search path for DLLs.
|
|
6249 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
6250 |
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
6251 |
- _LT_TAGVAR(always_export_symbols, $1)=no
|
|
6252 |
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
6253 |
-
|
|
6254 |
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
6255 |
- _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'
|
|
6256 |
- # If the export-symbols file already is a .def file (1st line
|
|
6257 |
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
6258 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
6259 |
- cp $export_symbols $output_objdir/$soname.def;
|
|
6260 |
- else
|
|
6261 |
- echo EXPORTS > $output_objdir/$soname.def;
|
|
6262 |
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
6263 |
- fi~
|
|
6264 |
- $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'
|
|
6265 |
- else
|
|
6266 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6267 |
- fi
|
|
6268 |
- ;;
|
|
6269 |
- darwin* | rhapsody*)
|
|
6270 |
- _LT_DARWIN_LINKER_FEATURES($1)
|
|
6271 |
- ;;
|
|
6272 |
-
|
|
6273 |
- dgux*)
|
|
6274 |
- case $cc_basename in
|
|
6275 |
- ec++*)
|
|
6276 |
- # FIXME: insert proper C++ library support
|
|
6277 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6278 |
- ;;
|
|
6279 |
- ghcx*)
|
|
6280 |
- # Green Hills C++ Compiler
|
|
6281 |
- # FIXME: insert proper C++ library support
|
|
6282 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6283 |
- ;;
|
|
6284 |
- *)
|
|
6285 |
- # FIXME: insert proper C++ library support
|
|
6286 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6287 |
- ;;
|
|
6288 |
- esac
|
|
6289 |
- ;;
|
|
6290 |
-
|
|
6291 |
- freebsd[[12]]*)
|
|
6292 |
- # C++ shared libraries reported to be fairly broken before
|
|
6293 |
- # switch to ELF
|
|
6294 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6295 |
- ;;
|
|
6296 |
-
|
|
6297 |
- freebsd-elf*)
|
|
6298 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
6299 |
- ;;
|
|
6300 |
-
|
|
6301 |
- freebsd* | dragonfly*)
|
|
6302 |
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
|
6303 |
- # conventions
|
|
6304 |
- _LT_TAGVAR(ld_shlibs, $1)=yes
|
|
6305 |
- ;;
|
|
6306 |
-
|
|
6307 |
- gnu*)
|
|
6308 |
- ;;
|
|
6309 |
-
|
|
6310 |
- hpux9*)
|
|
6311 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
6312 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6313 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
6314 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
6315 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
6316 |
- # but as the default
|
|
6317 |
- # location of the library.
|
|
6318 |
-
|
|
6319 |
- case $cc_basename in
|
|
6320 |
- CC*)
|
|
6321 |
- # FIXME: insert proper C++ library support
|
|
6322 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6323 |
- ;;
|
|
6324 |
- aCC*)
|
|
6325 |
- _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'
|
|
6326 |
- # Commands to make compiler produce verbose output that lists
|
|
6327 |
- # what "hidden" libraries, object files and flags are used when
|
|
6328 |
- # linking a shared library.
|
|
6329 |
- #
|
|
6330 |
- # There doesn't appear to be a way to prevent this compiler from
|
|
6331 |
- # explicitly linking system object files so we need to strip them
|
|
6332 |
- # from the output so that they don't get included in the library
|
|
6333 |
- # dependencies.
|
|
6334 |
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
|
|
6335 |
- ;;
|
|
6336 |
- *)
|
|
6337 |
- if test "$GXX" = yes; then
|
|
6338 |
- _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'
|
|
6339 |
- else
|
|
6340 |
- # FIXME: insert proper C++ library support
|
|
6341 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6342 |
- fi
|
|
6343 |
- ;;
|
|
6344 |
- esac
|
|
6345 |
- ;;
|
|
6346 |
-
|
|
6347 |
- hpux10*|hpux11*)
|
|
6348 |
- if test $with_gnu_ld = no; then
|
|
6349 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
6350 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6351 |
-
|
|
6352 |
- case $host_cpu in
|
|
6353 |
- hppa*64*|ia64*)
|
|
6354 |
- ;;
|
|
6355 |
- *)
|
|
6356 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
6357 |
- ;;
|
|
6358 |
- esac
|
|
6359 |
- fi
|
|
6360 |
- case $host_cpu in
|
|
6361 |
- hppa*64*|ia64*)
|
|
6362 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
6363 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6364 |
- ;;
|
|
6365 |
- *)
|
|
6366 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
6367 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
6368 |
- _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
6369 |
- # but as the default
|
|
6370 |
- # location of the library.
|
|
6371 |
- ;;
|
|
6372 |
- esac
|
|
6373 |
-
|
|
6374 |
- case $cc_basename in
|
|
6375 |
- CC*)
|
|
6376 |
- # FIXME: insert proper C++ library support
|
|
6377 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6378 |
- ;;
|
|
6379 |
- aCC*)
|
|
6380 |
- case $host_cpu in
|
|
6381 |
- hppa*64*)
|
|
6382 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
6383 |
- ;;
|
|
6384 |
- ia64*)
|
|
6385 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
6386 |
- ;;
|
|
6387 |
- *)
|
|
6388 |
- _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'
|
|
6389 |
- ;;
|
|
6390 |
- esac
|
|
6391 |
- # Commands to make compiler produce verbose output that lists
|
|
6392 |
- # what "hidden" libraries, object files and flags are used when
|
|
6393 |
- # linking a shared library.
|
|
6394 |
- #
|
|
6395 |
- # There doesn't appear to be a way to prevent this compiler from
|
|
6396 |
- # explicitly linking system object files so we need to strip them
|
|
6397 |
- # from the output so that they don't get included in the library
|
|
6398 |
- # dependencies.
|
|
6399 |
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
|
|
6400 |
- ;;
|
|
6401 |
- *)
|
|
6402 |
- if test "$GXX" = yes; then
|
|
6403 |
- if test $with_gnu_ld = no; then
|
|
6404 |
- case $host_cpu in
|
|
6405 |
- hppa*64*)
|
|
6406 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
6407 |
- ;;
|
|
6408 |
- ia64*)
|
|
6409 |
- _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'
|
|
6410 |
- ;;
|
|
6411 |
- *)
|
|
6412 |
- _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'
|
|
6413 |
- ;;
|
|
6414 |
- esac
|
|
6415 |
- fi
|
|
6416 |
- else
|
|
6417 |
- # FIXME: insert proper C++ library support
|
|
6418 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6419 |
- fi
|
|
6420 |
- ;;
|
|
6421 |
- esac
|
|
6422 |
- ;;
|
|
6423 |
-
|
|
6424 |
- interix[[3-9]]*)
|
|
6425 |
- _LT_TAGVAR(hardcode_direct, $1)=no
|
|
6426 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6427 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
6428 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
6429 |
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
6430 |
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
6431 |
- # default) and relocated if they conflict, which is a slow very memory
|
|
6432 |
- # consuming and fragmenting process. To avoid this, we pick a random,
|
|
6433 |
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
6434 |
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
6435 |
- _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'
|
|
6436 |
- _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'
|
|
6437 |
- ;;
|
|
6438 |
- irix5* | irix6*)
|
|
6439 |
- case $cc_basename in
|
|
6440 |
- CC*)
|
|
6441 |
- # SGI C++
|
|
6442 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
6443 |
-
|
|
6444 |
- # Archives containing C++ object files must be created using
|
|
6445 |
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
|
6446 |
- # necessary to make sure instantiated templates are included
|
|
6447 |
- # in the archive.
|
|
6448 |
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
|
6449 |
- ;;
|
|
6450 |
- *)
|
|
6451 |
- if test "$GXX" = yes; then
|
|
6452 |
- if test "$with_gnu_ld" = no; then
|
|
6453 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
6454 |
- else
|
|
6455 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
|
|
6456 |
- fi
|
|
6457 |
- fi
|
|
6458 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
6459 |
- ;;
|
|
6460 |
- esac
|
|
6461 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
6462 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6463 |
- _LT_TAGVAR(inherit_rpath, $1)=yes
|
|
6464 |
- ;;
|
|
6465 |
-
|
|
6466 |
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
6467 |
- case $cc_basename in
|
|
6468 |
- KCC*)
|
|
6469 |
- # Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
6470 |
-
|
|
6471 |
- # KCC will only create a shared library if the output file
|
|
6472 |
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
6473 |
- # to its proper name (with version) after linking.
|
|
6474 |
- _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'
|
|
6475 |
- _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'
|
|
6476 |
- # Commands to make compiler produce verbose output that lists
|
|
6477 |
- # what "hidden" libraries, object files and flags are used when
|
|
6478 |
- # linking a shared library.
|
|
6479 |
- #
|
|
6480 |
- # There doesn't appear to be a way to prevent this compiler from
|
|
6481 |
- # explicitly linking system object files so we need to strip them
|
|
6482 |
- # from the output so that they don't get included in the library
|
|
6483 |
- # dependencies.
|
|
6484 |
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
|
|
6485 |
-
|
|
6486 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
6487 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
6488 |
-
|
|
6489 |
- # Archives containing C++ object files must be created using
|
|
6490 |
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|
6491 |
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
|
6492 |
- ;;
|
|
6493 |
- icpc* | ecpc* )
|
|
6494 |
- # Intel C++
|
|
6495 |
- with_gnu_ld=yes
|
|
6496 |
- # version 8.0 and above of icpc choke on multiply defined symbols
|
|
6497 |
- # if we add $predep_objects and $postdep_objects, however 7.1 and
|
|
6498 |
- # earlier do not add the objects themselves.
|
|
6499 |
- case `$CC -V 2>&1` in
|
|
6500 |
- *"Version 7."*)
|
|
6501 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6502 |
- _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'
|
|
6503 |
- ;;
|
|
6504 |
- *) # Version 8.0 or newer
|
|
6505 |
- tmp_idyn=
|
|
6506 |
- case $host_cpu in
|
|
6507 |
- ia64*) tmp_idyn=' -i_dynamic';;
|
|
6508 |
- esac
|
|
6509 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6510 |
- _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'
|
|
6511 |
- ;;
|
|
6512 |
- esac
|
|
6513 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
6514 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
6515 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
6516 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|
6517 |
- ;;
|
|
6518 |
- pgCC* | pgcpp*)
|
|
6519 |
- # Portland Group C++ compiler
|
|
6520 |
- case `$CC -V` in
|
|
6521 |
- *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
|
|
6522 |
- _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
|
6523 |
- rm -rf $tpldir~
|
|
6524 |
- $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
|
6525 |
- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
|
|
6526 |
- _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
|
6527 |
- rm -rf $tpldir~
|
|
6528 |
- $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
|
6529 |
- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
|
|
6530 |
- $RANLIB $oldlib'
|
|
6531 |
- _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
|
6532 |
- rm -rf $tpldir~
|
|
6533 |
- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
|
6534 |
- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|
6535 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
|
6536 |
- rm -rf $tpldir~
|
|
6537 |
- $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
|
6538 |
- $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'
|
|
6539 |
- ;;
|
|
6540 |
- *) # Version 6 will use weak symbols
|
|
6541 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|
6542 |
- _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'
|
|
6543 |
- ;;
|
|
6544 |
- esac
|
|
6545 |
-
|
|
6546 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|
6547 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
6548 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
6549 |
- ;;
|
|
6550 |
- cxx*)
|
|
6551 |
- # Compaq C++
|
|
6552 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6553 |
- _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'
|
|
6554 |
-
|
|
6555 |
- runpath_var=LD_RUN_PATH
|
|
6556 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
6557 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6558 |
-
|
|
6559 |
- # Commands to make compiler produce verbose output that lists
|
|
6560 |
- # what "hidden" libraries, object files and flags are used when
|
|
6561 |
- # linking a shared library.
|
|
6562 |
- #
|
|
6563 |
- # There doesn't appear to be a way to prevent this compiler from
|
|
6564 |
- # explicitly linking system object files so we need to strip them
|
|
6565 |
- # from the output so that they don't get included in the library
|
|
6566 |
- # dependencies.
|
|
6567 |
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
|
|
6568 |
- ;;
|
|
6569 |
- xl*)
|
|
6570 |
- # IBM XL 8.0 on PPC, with GNU ld
|
|
6571 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
6572 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
6573 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
6574 |
- if test "x$supports_anon_versioning" = xyes; then
|
|
6575 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
6576 |
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
6577 |
- echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
6578 |
- $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
6579 |
- fi
|
|
6580 |
- ;;
|
|
6581 |
- *)
|
|
6582 |
- case `$CC -V 2>&1 | sed 5q` in
|
|
6583 |
- *Sun\ C*)
|
|
6584 |
- # Sun C++ 5.9
|
|
6585 |
- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
6586 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
6587 |
- _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'
|
|
6588 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
6589 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
6590 |
- _LT_TAGVAR(compiler_needs_object, $1)=yes
|
|
6591 |
-
|
|
6592 |
- # Not sure whether something based on
|
|
6593 |
- # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
|
6594 |
- # would be better.
|
|
6595 |
- output_verbose_link_cmd='echo'
|
|
6596 |
-
|
|
6597 |
- # Archives containing C++ object files must be created using
|
|
6598 |
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
6599 |
- # necessary to make sure instantiated templates are included
|
|
6600 |
- # in the archive.
|
|
6601 |
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
|
6602 |
- ;;
|
|
6603 |
- esac
|
|
6604 |
- ;;
|
|
6605 |
- esac
|
|
6606 |
- ;;
|
|
6607 |
-
|
|
6608 |
- lynxos*)
|
|
6609 |
- # FIXME: insert proper C++ library support
|
|
6610 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6611 |
- ;;
|
|
6612 |
-
|
|
6613 |
- m88k*)
|
|
6614 |
- # FIXME: insert proper C++ library support
|
|
6615 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6616 |
- ;;
|
|
6617 |
-
|
|
6618 |
- mvs*)
|
|
6619 |
- case $cc_basename in
|
|
6620 |
- cxx*)
|
|
6621 |
- # FIXME: insert proper C++ library support
|
|
6622 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6623 |
- ;;
|
|
6624 |
- *)
|
|
6625 |
- # FIXME: insert proper C++ library support
|
|
6626 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6627 |
- ;;
|
|
6628 |
- esac
|
|
6629 |
- ;;
|
|
6630 |
-
|
|
6631 |
- netbsd*)
|
|
6632 |
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
6633 |
- _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
|
6634 |
- wlarc=
|
|
6635 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
6636 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
6637 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6638 |
- fi
|
|
6639 |
- # Workaround some broken pre-1.5 toolchains
|
|
6640 |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
|
6641 |
- ;;
|
|
6642 |
-
|
|
6643 |
- *nto* | *qnx*)
|
|
6644 |
- _LT_TAGVAR(ld_shlibs, $1)=yes
|
|
6645 |
- ;;
|
|
6646 |
-
|
|
6647 |
- openbsd2*)
|
|
6648 |
- # C++ shared libraries are fairly broken
|
|
6649 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6650 |
- ;;
|
|
6651 |
-
|
|
6652 |
- openbsd*)
|
|
6653 |
- if test -f /usr/libexec/ld.so; then
|
|
6654 |
- _LT_TAGVAR(hardcode_direct, $1)=yes
|
|
6655 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6656 |
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
|
|
6657 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
6658 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
6659 |
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
6660 |
- _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'
|
|
6661 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
6662 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
6663 |
- fi
|
|
6664 |
- output_verbose_link_cmd=echo
|
|
6665 |
- else
|
|
6666 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6667 |
- fi
|
|
6668 |
- ;;
|
|
6669 |
-
|
|
6670 |
- osf3* | osf4* | osf5*)
|
|
6671 |
- case $cc_basename in
|
|
6672 |
- KCC*)
|
|
6673 |
- # Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
6674 |
-
|
|
6675 |
- # KCC will only create a shared library if the output file
|
|
6676 |
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
6677 |
- # to its proper name (with version) after linking.
|
|
6678 |
- _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'
|
|
6679 |
-
|
|
6680 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
6681 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6682 |
-
|
|
6683 |
- # Archives containing C++ object files must be created using
|
|
6684 |
- # the KAI C++ compiler.
|
|
6685 |
- case $host in
|
|
6686 |
- osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
|
|
6687 |
- *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
|
|
6688 |
- esac
|
|
6689 |
- ;;
|
|
6690 |
- RCC*)
|
|
6691 |
- # Rational C++ 2.4.1
|
|
6692 |
- # FIXME: insert proper C++ library support
|
|
6693 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6694 |
- ;;
|
|
6695 |
- cxx*)
|
|
6696 |
- case $host in
|
|
6697 |
- osf3*)
|
|
6698 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
6699 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
6700 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
6701 |
- ;;
|
|
6702 |
- *)
|
|
6703 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
6704 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
6705 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
|
6706 |
- echo "-hidden">> $lib.exp~
|
|
6707 |
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
|
|
6708 |
- $RM $lib.exp'
|
|
6709 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
|
6710 |
- ;;
|
|
6711 |
- esac
|
|
6712 |
-
|
|
6713 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6714 |
-
|
|
6715 |
- # Commands to make compiler produce verbose output that lists
|
|
6716 |
- # what "hidden" libraries, object files and flags are used when
|
|
6717 |
- # linking a shared library.
|
|
6718 |
- #
|
|
6719 |
- # There doesn't appear to be a way to prevent this compiler from
|
|
6720 |
- # explicitly linking system object files so we need to strip them
|
|
6721 |
- # from the output so that they don't get included in the library
|
|
6722 |
- # dependencies.
|
|
6723 |
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
|
|
6724 |
- ;;
|
|
6725 |
- *)
|
|
6726 |
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
6727 |
- _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
6728 |
- case $host in
|
|
6729 |
- osf3*)
|
|
6730 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
6731 |
- ;;
|
|
6732 |
- *)
|
|
6733 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
6734 |
- ;;
|
|
6735 |
- esac
|
|
6736 |
-
|
|
6737 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
6738 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
6739 |
-
|
|
6740 |
- # Commands to make compiler produce verbose output that lists
|
|
6741 |
- # what "hidden" libraries, object files and flags are used when
|
|
6742 |
- # linking a shared library.
|
|
6743 |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
|
6744 |
-
|
|
6745 |
- else
|
|
6746 |
- # FIXME: insert proper C++ library support
|
|
6747 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6748 |
- fi
|
|
6749 |
- ;;
|
|
6750 |
- esac
|
|
6751 |
- ;;
|
|
6752 |
-
|
|
6753 |
- psos*)
|
|
6754 |
- # FIXME: insert proper C++ library support
|
|
6755 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6756 |
- ;;
|
|
6757 |
-
|
|
6758 |
- sunos4*)
|
|
6759 |
- case $cc_basename in
|
|
6760 |
- CC*)
|
|
6761 |
- # Sun C++ 4.x
|
|
6762 |
- # FIXME: insert proper C++ library support
|
|
6763 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6764 |
- ;;
|
|
6765 |
- lcc*)
|
|
6766 |
- # Lucid
|
|
6767 |
- # FIXME: insert proper C++ library support
|
|
6768 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6769 |
- ;;
|
|
6770 |
- *)
|
|
6771 |
- # FIXME: insert proper C++ library support
|
|
6772 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6773 |
- ;;
|
|
6774 |
- esac
|
|
6775 |
- ;;
|
|
6776 |
-
|
|
6777 |
- solaris*)
|
|
6778 |
- case $cc_basename in
|
|
6779 |
- CC*)
|
|
6780 |
- # Sun C++ 4.2, 5.x and Centerline C++
|
|
6781 |
- _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
|
6782 |
- _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
6783 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
6784 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
6785 |
- $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'
|
|
6786 |
-
|
|
6787 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
6788 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6789 |
- case $host_os in
|
|
6790 |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
6791 |
- *)
|
|
6792 |
- # The compiler driver will combine and reorder linker options,
|
|
6793 |
- # but understands `-z linker_flag'.
|
|
6794 |
- # Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
6795 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
|
|
6796 |
- ;;
|
|
6797 |
- esac
|
|
6798 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
6799 |
-
|
|
6800 |
- output_verbose_link_cmd='echo'
|
|
6801 |
-
|
|
6802 |
- # Archives containing C++ object files must be created using
|
|
6803 |
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
6804 |
- # necessary to make sure instantiated templates are included
|
|
6805 |
- # in the archive.
|
|
6806 |
- _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
|
6807 |
- ;;
|
|
6808 |
- gcx*)
|
|
6809 |
- # Green Hills C++ Compiler
|
|
6810 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
6811 |
-
|
|
6812 |
- # The C++ compiler must be used to create the archive.
|
|
6813 |
- _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
|
6814 |
- ;;
|
|
6815 |
- *)
|
|
6816 |
- # GNU C++ compiler with Solaris linker
|
|
6817 |
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
6818 |
- _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
|
6819 |
- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
6820 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
6821 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
6822 |
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
6823 |
-
|
|
6824 |
- # Commands to make compiler produce verbose output that lists
|
|
6825 |
- # what "hidden" libraries, object files and flags are used when
|
|
6826 |
- # linking a shared library.
|
|
6827 |
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
|
6828 |
- else
|
|
6829 |
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
|
6830 |
- # platform.
|
|
6831 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
6832 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
6833 |
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
6834 |
-
|
|
6835 |
- # Commands to make compiler produce verbose output that lists
|
|
6836 |
- # what "hidden" libraries, object files and flags are used when
|
|
6837 |
- # linking a shared library.
|
|
6838 |
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
|
|
6839 |
- fi
|
|
6840 |
-
|
|
6841 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
|
6842 |
- case $host_os in
|
|
6843 |
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
|
6844 |
- *)
|
|
6845 |
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
6846 |
- ;;
|
|
6847 |
- esac
|
|
6848 |
- fi
|
|
6849 |
- ;;
|
|
6850 |
- esac
|
|
6851 |
- ;;
|
|
6852 |
-
|
|
6853 |
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
|
6854 |
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
6855 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
6856 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6857 |
- runpath_var='LD_RUN_PATH'
|
|
6858 |
-
|
|
6859 |
- case $cc_basename in
|
|
6860 |
- CC*)
|
|
6861 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6862 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6863 |
- ;;
|
|
6864 |
- *)
|
|
6865 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6866 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6867 |
- ;;
|
|
6868 |
- esac
|
|
6869 |
- ;;
|
|
6870 |
-
|
|
6871 |
- sysv5* | sco3.2v5* | sco5v6*)
|
|
6872 |
- # Note: We can NOT use -z defs as we might desire, because we do not
|
|
6873 |
- # link with -lc, and that would cause any symbols used from libc to
|
|
6874 |
- # always be unresolved, which means just about no library would
|
|
6875 |
- # ever link correctly. If we're not using GNU ld we use -z text
|
|
6876 |
- # though, which does catch some bad symbols but isn't as heavy-handed
|
|
6877 |
- # as -z defs.
|
|
6878 |
- _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
6879 |
- _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
6880 |
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
6881 |
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
6882 |
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
|
|
6883 |
- _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
6884 |
- _LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
6885 |
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
6886 |
- runpath_var='LD_RUN_PATH'
|
|
6887 |
-
|
|
6888 |
- case $cc_basename in
|
|
6889 |
- CC*)
|
|
6890 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6891 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6892 |
- ;;
|
|
6893 |
- *)
|
|
6894 |
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6895 |
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
6896 |
- ;;
|
|
6897 |
- esac
|
|
6898 |
- ;;
|
|
6899 |
-
|
|
6900 |
- tandem*)
|
|
6901 |
- case $cc_basename in
|
|
6902 |
- NCC*)
|
|
6903 |
- # NonStop-UX NCC 3.20
|
|
6904 |
- # FIXME: insert proper C++ library support
|
|
6905 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6906 |
- ;;
|
|
6907 |
- *)
|
|
6908 |
- # FIXME: insert proper C++ library support
|
|
6909 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6910 |
- ;;
|
|
6911 |
- esac
|
|
6912 |
- ;;
|
|
6913 |
-
|
|
6914 |
- vxworks*)
|
|
6915 |
- # FIXME: insert proper C++ library support
|
|
6916 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6917 |
- ;;
|
|
6918 |
-
|
|
6919 |
- *)
|
|
6920 |
- # FIXME: insert proper C++ library support
|
|
6921 |
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
6922 |
- ;;
|
|
6923 |
- esac
|
|
6924 |
-
|
|
6925 |
- AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
|
|
6926 |
- test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
6927 |
-
|
|
6928 |
- _LT_TAGVAR(GCC, $1)="$GXX"
|
|
6929 |
- _LT_TAGVAR(LD, $1)="$LD"
|
|
6930 |
-
|
|
6931 |
- ## CAVEAT EMPTOR:
|
|
6932 |
- ## There is no encapsulation within the following macros, do not change
|
|
6933 |
- ## the running order or otherwise move them around unless you know exactly
|
|
6934 |
- ## what you are doing...
|
|
6935 |
- _LT_SYS_HIDDEN_LIBDEPS($1)
|
|
6936 |
- _LT_COMPILER_PIC($1)
|
|
6937 |
- _LT_COMPILER_C_O($1)
|
|
6938 |
- _LT_COMPILER_FILE_LOCKS($1)
|
|
6939 |
- _LT_LINKER_SHLIBS($1)
|
|
6940 |
- _LT_SYS_DYNAMIC_LINKER($1)
|
|
6941 |
- _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
6942 |
-
|
|
6943 |
- _LT_CONFIG($1)
|
|
6944 |
- fi # test -n "$compiler"
|
|
6945 |
-
|
|
6946 |
- CC=$lt_save_CC
|
|
6947 |
- LDCXX=$LD
|
|
6948 |
- LD=$lt_save_LD
|
|
6949 |
- GCC=$lt_save_GCC
|
|
6950 |
- with_gnu_ld=$lt_save_with_gnu_ld
|
|
6951 |
- lt_cv_path_LDCXX=$lt_cv_path_LD
|
|
6952 |
- lt_cv_path_LD=$lt_save_path_LD
|
|
6953 |
- lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
|
6954 |
- lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
|
6955 |
-fi # test "$_lt_caught_CXX_error" != yes
|
|
6956 |
-
|
|
6957 |
-AC_LANG_POP
|
|
6958 |
-])# _LT_LANG_CXX_CONFIG
|
|
6959 |
-
|
|
6960 |
-
|
|
6961 |
-# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
|
6962 |
-# ---------------------------------
|
|
6963 |
-# Figure out "hidden" library dependencies from verbose
|
|
6964 |
-# compiler output when linking a shared library.
|
|
6965 |
-# Parse the compiler output and extract the necessary
|
|
6966 |
-# objects, libraries and library flags.
|
|
6967 |
-m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
|
6968 |
-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
6969 |
-# Dependencies to place before and after the object being linked:
|
|
6970 |
-_LT_TAGVAR(predep_objects, $1)=
|
|
6971 |
-_LT_TAGVAR(postdep_objects, $1)=
|
|
6972 |
-_LT_TAGVAR(predeps, $1)=
|
|
6973 |
-_LT_TAGVAR(postdeps, $1)=
|
|
6974 |
-_LT_TAGVAR(compiler_lib_search_path, $1)=
|
|
6975 |
-
|
|
6976 |
-dnl we can't use the lt_simple_compile_test_code here,
|
|
6977 |
-dnl because it contains code intended for an executable,
|
|
6978 |
-dnl not a library. It's possible we should let each
|
|
6979 |
-dnl tag define a new lt_????_link_test_code variable,
|
|
6980 |
-dnl but it's only used here...
|
|
6981 |
-m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
|
|
6982 |
-int a;
|
|
6983 |
-void foo (void) { a = 0; }
|
|
6984 |
-_LT_EOF
|
|
6985 |
-], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
|
|
6986 |
-class Foo
|
|
6987 |
-{
|
|
6988 |
-public:
|
|
6989 |
- Foo (void) { a = 0; }
|
|
6990 |
-private:
|
|
6991 |
- int a;
|
|
6992 |
-};
|
|
6993 |
-_LT_EOF
|
|
6994 |
-], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
|
|
6995 |
- subroutine foo
|
|
6996 |
- implicit none
|
|
6997 |
- integer*4 a
|
|
6998 |
- a=0
|
|
6999 |
- return
|
|
7000 |
- end
|
|
7001 |
-_LT_EOF
|
|
7002 |
-], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
|
|
7003 |
- subroutine foo
|
|
7004 |
- implicit none
|
|
7005 |
- integer a
|
|
7006 |
- a=0
|
|
7007 |
- return
|
|
7008 |
- end
|
|
7009 |
-_LT_EOF
|
|
7010 |
-], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
|
|
7011 |
-public class foo {
|
|
7012 |
- private int a;
|
|
7013 |
- public void bar (void) {
|
|
7014 |
- a = 0;
|
|
7015 |
- }
|
|
7016 |
-};
|
|
7017 |
-_LT_EOF
|
|
7018 |
-])
|
|
7019 |
-dnl Parse the compiler output and extract the necessary
|
|
7020 |
-dnl objects, libraries and library flags.
|
|
7021 |
-if AC_TRY_EVAL(ac_compile); then
|
|
7022 |
- # Parse the compiler output and extract the necessary
|
|
7023 |
- # objects, libraries and library flags.
|
|
7024 |
-
|
|
7025 |
- # Sentinel used to keep track of whether or not we are before
|
|
7026 |
- # the conftest object file.
|
|
7027 |
- pre_test_object_deps_done=no
|
|
7028 |
-
|
|
7029 |
- for p in `eval "$output_verbose_link_cmd"`; do
|
|
7030 |
- case $p in
|
|
7031 |
-
|
|
7032 |
- -L* | -R* | -l*)
|
|
7033 |
- # Some compilers place space between "-{L,R}" and the path.
|
|
7034 |
- # Remove the space.
|
|
7035 |
- if test $p = "-L" ||
|
|
7036 |
- test $p = "-R"; then
|
|
7037 |
- prev=$p
|
|
7038 |
- continue
|
|
7039 |
- else
|
|
7040 |
- prev=
|
|
7041 |
- fi
|
|
7042 |
-
|
|
7043 |
- if test "$pre_test_object_deps_done" = no; then
|
|
7044 |
- case $p in
|
|
7045 |
- -L* | -R*)
|
|
7046 |
- # Internal compiler library paths should come after those
|
|
7047 |
- # provided the user. The postdeps already come after the
|
|
7048 |
- # user supplied libs so there is no need to process them.
|
|
7049 |
- if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
|
|
7050 |
- _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
|
7051 |
- else
|
|
7052 |
- _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
|
7053 |
- fi
|
|
7054 |
- ;;
|
|
7055 |
- # The "-l" case would never come before the object being
|
|
7056 |
- # linked, so don't bother handling this case.
|
|
7057 |
- esac
|
|
7058 |
- else
|
|
7059 |
- if test -z "$_LT_TAGVAR(postdeps, $1)"; then
|
|
7060 |
- _LT_TAGVAR(postdeps, $1)="${prev}${p}"
|
|
7061 |
- else
|
|
7062 |
- _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
|
|
7063 |
- fi
|
|
7064 |
- fi
|
|
7065 |
- ;;
|
|
7066 |
-
|
|
7067 |
- *.$objext)
|
|
7068 |
- # This assumes that the test object file only shows up
|
|
7069 |
- # once in the compiler output.
|
|
7070 |
- if test "$p" = "conftest.$objext"; then
|
|
7071 |
- pre_test_object_deps_done=yes
|
|
7072 |
- continue
|
|
7073 |
- fi
|
|
7074 |
-
|
|
7075 |
- if test "$pre_test_object_deps_done" = no; then
|
|
7076 |
- if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
|
|
7077 |
- _LT_TAGVAR(predep_objects, $1)="$p"
|
|
7078 |
- else
|
|
7079 |
- _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
|
|
7080 |
- fi
|
|
7081 |
- else
|
|
7082 |
- if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
|
|
7083 |
- _LT_TAGVAR(postdep_objects, $1)="$p"
|
|
7084 |
- else
|
|
7085 |
- _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
|
|
7086 |
- fi
|
|
7087 |
- fi
|
|
7088 |
- ;;
|
|
7089 |
-
|
|
7090 |
- *) ;; # Ignore the rest.
|
|
7091 |
-
|
|
7092 |
- esac
|
|
7093 |
- done
|
|
7094 |
-
|
|
7095 |
- # Clean up.
|
|
7096 |
- rm -f a.out a.exe
|
|
7097 |
-else
|
|
7098 |
- echo "libtool.m4: error: problem compiling $1 test program"
|
|
7099 |
-fi
|
|
7100 |
-
|
|
7101 |
-$RM -f confest.$objext
|
|
7102 |
-
|
|
7103 |
-# PORTME: override above test on systems where it is broken
|
|
7104 |
-m4_if([$1], [CXX],
|
|
7105 |
-[case $host_os in
|
|
7106 |
-interix[[3-9]]*)
|
|
7107 |
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
7108 |
- # hack all around it, let's just trust "g++" to DTRT.
|
|
7109 |
- _LT_TAGVAR(predep_objects,$1)=
|
|
7110 |
- _LT_TAGVAR(postdep_objects,$1)=
|
|
7111 |
- _LT_TAGVAR(postdeps,$1)=
|
|
7112 |
- ;;
|
|
7113 |
-
|
|
7114 |
-linux*)
|
|
7115 |
- case `$CC -V 2>&1 | sed 5q` in
|
|
7116 |
- *Sun\ C*)
|
|
7117 |
- # Sun C++ 5.9
|
|
7118 |
-
|
|
7119 |
- # The more standards-conforming stlport4 library is
|
|
7120 |
- # incompatible with the Cstd library. Avoid specifying
|
|
7121 |
- # it if it's in CXXFLAGS. Ignore libCrun as
|
|
7122 |
- # -library=stlport4 depends on it.
|
|
7123 |
- case " $CXX $CXXFLAGS " in
|
|
7124 |
- *" -library=stlport4 "*)
|
|
7125 |
- solaris_use_stlport4=yes
|
|
7126 |
- ;;
|
|
7127 |
- esac
|
|
7128 |
-
|
|
7129 |
- if test "$solaris_use_stlport4" != yes; then
|
|
7130 |
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
|
7131 |
- fi
|
|
7132 |
- ;;
|
|
7133 |
- esac
|
|
7134 |
- ;;
|
|
7135 |
-
|
|
7136 |
-solaris*)
|
|
7137 |
- case $cc_basename in
|
|
7138 |
- CC*)
|
|
7139 |
- # The more standards-conforming stlport4 library is
|
|
7140 |
- # incompatible with the Cstd library. Avoid specifying
|
|
7141 |
- # it if it's in CXXFLAGS. Ignore libCrun as
|
|
7142 |
- # -library=stlport4 depends on it.
|
|
7143 |
- case " $CXX $CXXFLAGS " in
|
|
7144 |
- *" -library=stlport4 "*)
|
|
7145 |
- solaris_use_stlport4=yes
|
|
7146 |
- ;;
|
|
7147 |
- esac
|
|
7148 |
-
|
|
7149 |
- # Adding this requires a known-good setup of shared libraries for
|
|
7150 |
- # Sun compiler versions before 5.6, else PIC objects from an old
|
|
7151 |
- # archive will be linked into the output, leading to subtle bugs.
|
|
7152 |
- if test "$solaris_use_stlport4" != yes; then
|
|
7153 |
- _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
|
|
7154 |
- fi
|
|
7155 |
- ;;
|
|
7156 |
- esac
|
|
7157 |
- ;;
|
|
7158 |
-esac
|
|
7159 |
-])
|
|
7160 |
-
|
|
7161 |
-case " $_LT_TAGVAR(postdeps, $1) " in
|
|
7162 |
-*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
|
7163 |
-esac
|
|
7164 |
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=
|
|
7165 |
-if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
|
|
7166 |
- _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
|
|
7167 |
-fi
|
|
7168 |
-_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
|
|
7169 |
- [The directories searched by this compiler when creating a shared library])
|
|
7170 |
-_LT_TAGDECL([], [predep_objects], [1],
|
|
7171 |
- [Dependencies to place before and after the objects being linked to
|
|
7172 |
- create a shared library])
|
|
7173 |
-_LT_TAGDECL([], [postdep_objects], [1])
|
|
7174 |
-_LT_TAGDECL([], [predeps], [1])
|
|
7175 |
-_LT_TAGDECL([], [postdeps], [1])
|
|
7176 |
-_LT_TAGDECL([], [compiler_lib_search_path], [1],
|
|
7177 |
- [The library search path used internally by the compiler when linking
|
|
7178 |
- a shared library])
|
|
7179 |
-])# _LT_SYS_HIDDEN_LIBDEPS
|
|
7180 |
-
|
|
7181 |
-
|
|
7182 |
-# _LT_PROG_F77
|
|
7183 |
-# ------------
|
|
7184 |
-# Since AC_PROG_F77 is broken, in that it returns the empty string
|
|
7185 |
-# if there is no fortran compiler, we have our own version here.
|
|
7186 |
-m4_defun([_LT_PROG_F77],
|
|
7187 |
-[
|
|
7188 |
-pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
|
|
7189 |
-AC_PROG_F77
|
|
7190 |
-if test -z "$F77" || test "X$F77" = "Xno"; then
|
|
7191 |
- _lt_disable_F77=yes
|
|
7192 |
-fi
|
|
7193 |
-popdef([AC_MSG_ERROR])
|
|
7194 |
-])# _LT_PROG_F77
|
|
7195 |
-
|
|
7196 |
-dnl aclocal-1.4 backwards compatibility:
|
|
7197 |
-dnl AC_DEFUN([_LT_PROG_F77], [])
|
|
7198 |
-
|
|
7199 |
-
|
|
7200 |
-# _LT_LANG_F77_CONFIG([TAG])
|
|
7201 |
-# --------------------------
|
|
7202 |
-# Ensure that the configuration variables for a Fortran 77 compiler are
|
|
7203 |
-# suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
7204 |
-# to write the compiler configuration to `libtool'.
|
|
7205 |
-m4_defun([_LT_LANG_F77_CONFIG],
|
|
7206 |
-[AC_REQUIRE([_LT_PROG_F77])dnl
|
|
7207 |
-AC_LANG_PUSH(Fortran 77)
|
|
7208 |
-
|
|
7209 |
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
7210 |
-_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
7211 |
-_LT_TAGVAR(always_export_symbols, $1)=no
|
|
7212 |
-_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
7213 |
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
7214 |
-_LT_TAGVAR(hardcode_direct, $1)=no
|
|
7215 |
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
7216 |
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
7217 |
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
7218 |
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
7219 |
-_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
7220 |
-_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
7221 |
-_LT_TAGVAR(inherit_rpath, $1)=no
|
|
7222 |
-_LT_TAGVAR(module_cmds, $1)=
|
|
7223 |
-_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
7224 |
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
7225 |
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
7226 |
-_LT_TAGVAR(no_undefined_flag, $1)=
|
|
7227 |
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
7228 |
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
7229 |
-
|
|
7230 |
-# Source file extension for f77 test sources.
|
|
7231 |
-ac_ext=f
|
|
7232 |
-
|
|
7233 |
-# Object file extension for compiled f77 test sources.
|
|
7234 |
-objext=o
|
|
7235 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
7236 |
-
|
|
7237 |
-# No sense in running all these tests if we already determined that
|
|
7238 |
-# the F77 compiler isn't working. Some variables (like enable_shared)
|
|
7239 |
-# are currently assumed to apply to all compilers on this platform,
|
|
7240 |
-# and will be corrupted by setting them based on a non-working compiler.
|
|
7241 |
-if test "$_lt_disable_F77" != yes; then
|
|
7242 |
- # Code to be used in simple compile tests
|
|
7243 |
- lt_simple_compile_test_code="\
|
|
7244 |
- subroutine t
|
|
7245 |
- return
|
|
7246 |
- end
|
|
7247 |
-"
|
|
7248 |
-
|
|
7249 |
- # Code to be used in simple link tests
|
|
7250 |
- lt_simple_link_test_code="\
|
|
7251 |
- program t
|
|
7252 |
- end
|
|
7253 |
-"
|
|
7254 |
-
|
|
7255 |
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
7256 |
- _LT_TAG_COMPILER
|
|
7257 |
-
|
|
7258 |
- # save warnings/boilerplate of simple test code
|
|
7259 |
- _LT_COMPILER_BOILERPLATE
|
|
7260 |
- _LT_LINKER_BOILERPLATE
|
|
7261 |
-
|
|
7262 |
- # Allow CC to be a program name with arguments.
|
|
7263 |
- lt_save_CC="$CC"
|
|
7264 |
- lt_save_GCC=$GCC
|
|
7265 |
- CC=${F77-"f77"}
|
|
7266 |
- compiler=$CC
|
|
7267 |
- _LT_TAGVAR(compiler, $1)=$CC
|
|
7268 |
- _LT_CC_BASENAME([$compiler])
|
|
7269 |
- GCC=$G77
|
|
7270 |
- if test -n "$compiler"; then
|
|
7271 |
- AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
7272 |
- AC_MSG_RESULT([$can_build_shared])
|
|
7273 |
-
|
|
7274 |
- AC_MSG_CHECKING([whether to build shared libraries])
|
|
7275 |
- test "$can_build_shared" = "no" && enable_shared=no
|
|
7276 |
-
|
|
7277 |
- # On AIX, shared libraries and static libraries use the same namespace, and
|
|
7278 |
- # are all built from PIC.
|
|
7279 |
- case $host_os in
|
|
7280 |
- aix3*)
|
|
7281 |
- test "$enable_shared" = yes && enable_static=no
|
|
7282 |
- if test -n "$RANLIB"; then
|
|
7283 |
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
7284 |
- postinstall_cmds='$RANLIB $lib'
|
|
7285 |
- fi
|
|
7286 |
- ;;
|
|
7287 |
- aix[[4-9]]*)
|
|
7288 |
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
7289 |
- test "$enable_shared" = yes && enable_static=no
|
|
7290 |
- fi
|
|
7291 |
- ;;
|
|
7292 |
- esac
|
|
7293 |
- AC_MSG_RESULT([$enable_shared])
|
|
7294 |
-
|
|
7295 |
- AC_MSG_CHECKING([whether to build static libraries])
|
|
7296 |
- # Make sure either enable_shared or enable_static is yes.
|
|
7297 |
- test "$enable_shared" = yes || enable_static=yes
|
|
7298 |
- AC_MSG_RESULT([$enable_static])
|
|
7299 |
-
|
|
7300 |
- _LT_TAGVAR(GCC, $1)="$G77"
|
|
7301 |
- _LT_TAGVAR(LD, $1)="$LD"
|
|
7302 |
-
|
|
7303 |
- ## CAVEAT EMPTOR:
|
|
7304 |
- ## There is no encapsulation within the following macros, do not change
|
|
7305 |
- ## the running order or otherwise move them around unless you know exactly
|
|
7306 |
- ## what you are doing...
|
|
7307 |
- _LT_COMPILER_PIC($1)
|
|
7308 |
- _LT_COMPILER_C_O($1)
|
|
7309 |
- _LT_COMPILER_FILE_LOCKS($1)
|
|
7310 |
- _LT_LINKER_SHLIBS($1)
|
|
7311 |
- _LT_SYS_DYNAMIC_LINKER($1)
|
|
7312 |
- _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
7313 |
-
|
|
7314 |
- _LT_CONFIG($1)
|
|
7315 |
- fi # test -n "$compiler"
|
|
7316 |
-
|
|
7317 |
- GCC=$lt_save_GCC
|
|
7318 |
- CC="$lt_save_CC"
|
|
7319 |
-fi # test "$_lt_disable_F77" != yes
|
|
7320 |
-
|
|
7321 |
-AC_LANG_POP
|
|
7322 |
-])# _LT_LANG_F77_CONFIG
|
|
7323 |
-
|
|
7324 |
-
|
|
7325 |
-# _LT_PROG_FC
|
|
7326 |
-# -----------
|
|
7327 |
-# Since AC_PROG_FC is broken, in that it returns the empty string
|
|
7328 |
-# if there is no fortran compiler, we have our own version here.
|
|
7329 |
-m4_defun([_LT_PROG_FC],
|
|
7330 |
-[
|
|
7331 |
-pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
|
|
7332 |
-AC_PROG_FC
|
|
7333 |
-if test -z "$FC" || test "X$FC" = "Xno"; then
|
|
7334 |
- _lt_disable_FC=yes
|
|
7335 |
-fi
|
|
7336 |
-popdef([AC_MSG_ERROR])
|
|
7337 |
-])# _LT_PROG_FC
|
|
7338 |
-
|
|
7339 |
-dnl aclocal-1.4 backwards compatibility:
|
|
7340 |
-dnl AC_DEFUN([_LT_PROG_FC], [])
|
|
7341 |
-
|
|
7342 |
-
|
|
7343 |
-# _LT_LANG_FC_CONFIG([TAG])
|
|
7344 |
-# -------------------------
|
|
7345 |
-# Ensure that the configuration variables for a Fortran compiler are
|
|
7346 |
-# suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
7347 |
-# to write the compiler configuration to `libtool'.
|
|
7348 |
-m4_defun([_LT_LANG_FC_CONFIG],
|
|
7349 |
-[AC_REQUIRE([_LT_PROG_FC])dnl
|
|
7350 |
-AC_LANG_PUSH(Fortran)
|
|
7351 |
-
|
|
7352 |
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
7353 |
-_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
7354 |
-_LT_TAGVAR(always_export_symbols, $1)=no
|
|
7355 |
-_LT_TAGVAR(archive_expsym_cmds, $1)=
|
|
7356 |
-_LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
|
7357 |
-_LT_TAGVAR(hardcode_direct, $1)=no
|
|
7358 |
-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
|
|
7359 |
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
7360 |
-_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
7361 |
-_LT_TAGVAR(hardcode_libdir_separator, $1)=
|
|
7362 |
-_LT_TAGVAR(hardcode_minus_L, $1)=no
|
|
7363 |
-_LT_TAGVAR(hardcode_automatic, $1)=no
|
|
7364 |
-_LT_TAGVAR(inherit_rpath, $1)=no
|
|
7365 |
-_LT_TAGVAR(module_cmds, $1)=
|
|
7366 |
-_LT_TAGVAR(module_expsym_cmds, $1)=
|
|
7367 |
-_LT_TAGVAR(link_all_deplibs, $1)=unknown
|
|
7368 |
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
7369 |
-_LT_TAGVAR(no_undefined_flag, $1)=
|
|
7370 |
-_LT_TAGVAR(whole_archive_flag_spec, $1)=
|
|
7371 |
-_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
|
7372 |
-
|
|
7373 |
-# Source file extension for fc test sources.
|
|
7374 |
-ac_ext=${ac_fc_srcext-f}
|
|
7375 |
-
|
|
7376 |
-# Object file extension for compiled fc test sources.
|
|
7377 |
-objext=o
|
|
7378 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
7379 |
-
|
|
7380 |
-# No sense in running all these tests if we already determined that
|
|
7381 |
-# the FC compiler isn't working. Some variables (like enable_shared)
|
|
7382 |
-# are currently assumed to apply to all compilers on this platform,
|
|
7383 |
-# and will be corrupted by setting them based on a non-working compiler.
|
|
7384 |
-if test "$_lt_disable_FC" != yes; then
|
|
7385 |
- # Code to be used in simple compile tests
|
|
7386 |
- lt_simple_compile_test_code="\
|
|
7387 |
- subroutine t
|
|
7388 |
- return
|
|
7389 |
- end
|
|
7390 |
-"
|
|
7391 |
-
|
|
7392 |
- # Code to be used in simple link tests
|
|
7393 |
- lt_simple_link_test_code="\
|
|
7394 |
- program t
|
|
7395 |
- end
|
|
7396 |
-"
|
|
7397 |
-
|
|
7398 |
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
7399 |
- _LT_TAG_COMPILER
|
|
7400 |
-
|
|
7401 |
- # save warnings/boilerplate of simple test code
|
|
7402 |
- _LT_COMPILER_BOILERPLATE
|
|
7403 |
- _LT_LINKER_BOILERPLATE
|
|
7404 |
-
|
|
7405 |
- # Allow CC to be a program name with arguments.
|
|
7406 |
- lt_save_CC="$CC"
|
|
7407 |
- lt_save_GCC=$GCC
|
|
7408 |
- CC=${FC-"f95"}
|
|
7409 |
- compiler=$CC
|
|
7410 |
- GCC=$ac_cv_fc_compiler_gnu
|
|
7411 |
-
|
|
7412 |
- _LT_TAGVAR(compiler, $1)=$CC
|
|
7413 |
- _LT_CC_BASENAME([$compiler])
|
|
7414 |
-
|
|
7415 |
- if test -n "$compiler"; then
|
|
7416 |
- AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
7417 |
- AC_MSG_RESULT([$can_build_shared])
|
|
7418 |
-
|
|
7419 |
- AC_MSG_CHECKING([whether to build shared libraries])
|
|
7420 |
- test "$can_build_shared" = "no" && enable_shared=no
|
|
7421 |
-
|
|
7422 |
- # On AIX, shared libraries and static libraries use the same namespace, and
|
|
7423 |
- # are all built from PIC.
|
|
7424 |
- case $host_os in
|
|
7425 |
- aix3*)
|
|
7426 |
- test "$enable_shared" = yes && enable_static=no
|
|
7427 |
- if test -n "$RANLIB"; then
|
|
7428 |
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
7429 |
- postinstall_cmds='$RANLIB $lib'
|
|
7430 |
- fi
|
|
7431 |
- ;;
|
|
7432 |
- aix[[4-9]]*)
|
|
7433 |
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
7434 |
- test "$enable_shared" = yes && enable_static=no
|
|
7435 |
- fi
|
|
7436 |
- ;;
|
|
7437 |
- esac
|
|
7438 |
- AC_MSG_RESULT([$enable_shared])
|
|
7439 |
-
|
|
7440 |
- AC_MSG_CHECKING([whether to build static libraries])
|
|
7441 |
- # Make sure either enable_shared or enable_static is yes.
|
|
7442 |
- test "$enable_shared" = yes || enable_static=yes
|
|
7443 |
- AC_MSG_RESULT([$enable_static])
|
|
7444 |
-
|
|
7445 |
- _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
|
|
7446 |
- _LT_TAGVAR(LD, $1)="$LD"
|
|
7447 |
-
|
|
7448 |
- ## CAVEAT EMPTOR:
|
|
7449 |
- ## There is no encapsulation within the following macros, do not change
|
|
7450 |
- ## the running order or otherwise move them around unless you know exactly
|
|
7451 |
- ## what you are doing...
|
|
7452 |
- _LT_SYS_HIDDEN_LIBDEPS($1)
|
|
7453 |
- _LT_COMPILER_PIC($1)
|
|
7454 |
- _LT_COMPILER_C_O($1)
|
|
7455 |
- _LT_COMPILER_FILE_LOCKS($1)
|
|
7456 |
- _LT_LINKER_SHLIBS($1)
|
|
7457 |
- _LT_SYS_DYNAMIC_LINKER($1)
|
|
7458 |
- _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
7459 |
-
|
|
7460 |
- _LT_CONFIG($1)
|
|
7461 |
- fi # test -n "$compiler"
|
|
7462 |
-
|
|
7463 |
- GCC=$lt_save_GCC
|
|
7464 |
- CC="$lt_save_CC"
|
|
7465 |
-fi # test "$_lt_disable_FC" != yes
|
|
7466 |
-
|
|
7467 |
-AC_LANG_POP
|
|
7468 |
-])# _LT_LANG_FC_CONFIG
|
|
7469 |
-
|
|
7470 |
-
|
|
7471 |
-# _LT_LANG_GCJ_CONFIG([TAG])
|
|
7472 |
-# --------------------------
|
|
7473 |
-# Ensure that the configuration variables for the GNU Java Compiler compiler
|
|
7474 |
-# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
7475 |
-# to write the compiler configuration to `libtool'.
|
|
7476 |
-m4_defun([_LT_LANG_GCJ_CONFIG],
|
|
7477 |
-[AC_REQUIRE([LT_PROG_GCJ])dnl
|
|
7478 |
-AC_LANG_SAVE
|
|
7479 |
-
|
|
7480 |
-# Source file extension for Java test sources.
|
|
7481 |
-ac_ext=java
|
|
7482 |
-
|
|
7483 |
-# Object file extension for compiled Java test sources.
|
|
7484 |
-objext=o
|
|
7485 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
7486 |
-
|
|
7487 |
-# Code to be used in simple compile tests
|
|
7488 |
-lt_simple_compile_test_code="class foo {}"
|
|
7489 |
-
|
|
7490 |
-# Code to be used in simple link tests
|
|
7491 |
-lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
|
|
7492 |
-
|
|
7493 |
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
7494 |
-_LT_TAG_COMPILER
|
|
7495 |
-
|
|
7496 |
-# save warnings/boilerplate of simple test code
|
|
7497 |
-_LT_COMPILER_BOILERPLATE
|
|
7498 |
-_LT_LINKER_BOILERPLATE
|
|
7499 |
-
|
|
7500 |
-# Allow CC to be a program name with arguments.
|
|
7501 |
-lt_save_CC="$CC"
|
|
7502 |
-lt_save_GCC=$GCC
|
|
7503 |
-GCC=yes
|
|
7504 |
-CC=${GCJ-"gcj"}
|
|
7505 |
-compiler=$CC
|
|
7506 |
-_LT_TAGVAR(compiler, $1)=$CC
|
|
7507 |
-_LT_TAGVAR(LD, $1)="$LD"
|
|
7508 |
-_LT_CC_BASENAME([$compiler])
|
|
7509 |
-
|
|
7510 |
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
|
7511 |
-_LT_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
7512 |
-
|
|
7513 |
-_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
7514 |
-
|
|
7515 |
-## CAVEAT EMPTOR:
|
|
7516 |
-## There is no encapsulation within the following macros, do not change
|
|
7517 |
-## the running order or otherwise move them around unless you know exactly
|
|
7518 |
-## what you are doing...
|
|
7519 |
-if test -n "$compiler"; then
|
|
7520 |
- _LT_COMPILER_NO_RTTI($1)
|
|
7521 |
- _LT_COMPILER_PIC($1)
|
|
7522 |
- _LT_COMPILER_C_O($1)
|
|
7523 |
- _LT_COMPILER_FILE_LOCKS($1)
|
|
7524 |
- _LT_LINKER_SHLIBS($1)
|
|
7525 |
- _LT_LINKER_HARDCODE_LIBPATH($1)
|
|
7526 |
-
|
|
7527 |
- _LT_CONFIG($1)
|
|
7528 |
-fi
|
|
7529 |
-
|
|
7530 |
-AC_LANG_RESTORE
|
|
7531 |
-
|
|
7532 |
-GCC=$lt_save_GCC
|
|
7533 |
-CC="$lt_save_CC"
|
|
7534 |
-])# _LT_LANG_GCJ_CONFIG
|
|
7535 |
-
|
|
7536 |
-
|
|
7537 |
-# _LT_LANG_RC_CONFIG([TAG])
|
|
7538 |
-# -------------------------
|
|
7539 |
-# Ensure that the configuration variables for the Windows resource compiler
|
|
7540 |
-# are suitably defined. These variables are subsequently used by _LT_CONFIG
|
|
7541 |
-# to write the compiler configuration to `libtool'.
|
|
7542 |
-m4_defun([_LT_LANG_RC_CONFIG],
|
|
7543 |
-[AC_REQUIRE([LT_PROG_RC])dnl
|
|
7544 |
-AC_LANG_SAVE
|
|
7545 |
-
|
|
7546 |
-# Source file extension for RC test sources.
|
|
7547 |
-ac_ext=rc
|
|
7548 |
-
|
|
7549 |
-# Object file extension for compiled RC test sources.
|
|
7550 |
-objext=o
|
|
7551 |
-_LT_TAGVAR(objext, $1)=$objext
|
|
7552 |
-
|
|
7553 |
-# Code to be used in simple compile tests
|
|
7554 |
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
|
7555 |
-
|
|
7556 |
-# Code to be used in simple link tests
|
|
7557 |
-lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|
7558 |
-
|
|
7559 |
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
7560 |
-_LT_TAG_COMPILER
|
|
7561 |
-
|
|
7562 |
-# save warnings/boilerplate of simple test code
|
|
7563 |
-_LT_COMPILER_BOILERPLATE
|
|
7564 |
-_LT_LINKER_BOILERPLATE
|
|
7565 |
-
|
|
7566 |
-# Allow CC to be a program name with arguments.
|
|
7567 |
-lt_save_CC="$CC"
|
|
7568 |
-lt_save_GCC=$GCC
|
|
7569 |
-GCC=
|
|
7570 |
-CC=${RC-"windres"}
|
|
7571 |
-compiler=$CC
|
|
7572 |
-_LT_TAGVAR(compiler, $1)=$CC
|
|
7573 |
-_LT_CC_BASENAME([$compiler])
|
|
7574 |
-_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
7575 |
-
|
|
7576 |
-if test -n "$compiler"; then
|
|
7577 |
- :
|
|
7578 |
- _LT_CONFIG($1)
|
|
7579 |
-fi
|
|
7580 |
-
|
|
7581 |
-GCC=$lt_save_GCC
|
|
7582 |
-AC_LANG_RESTORE
|
|
7583 |
-CC="$lt_save_CC"
|
|
7584 |
-])# _LT_LANG_RC_CONFIG
|
|
7585 |
-
|
|
7586 |
-
|
|
7587 |
-# LT_PROG_GCJ
|
|
7588 |
-# -----------
|
|
7589 |
-AC_DEFUN([LT_PROG_GCJ],
|
|
7590 |
-[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
|
|
7591 |
- [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
|
|
7592 |
- [AC_CHECK_TOOL(GCJ, gcj,)
|
|
7593 |
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
|
7594 |
- AC_SUBST(GCJFLAGS)])])[]dnl
|
|
7595 |
-])
|
|
7596 |
-
|
|
7597 |
-# Old name:
|
|
7598 |
-AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
|
|
7599 |
-dnl aclocal-1.4 backwards compatibility:
|
|
7600 |
-dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
|
|
7601 |
-
|
|
7602 |
-
|
|
7603 |
-# LT_PROG_RC
|
|
7604 |
-# ----------
|
|
7605 |
-AC_DEFUN([LT_PROG_RC],
|
|
7606 |
-[AC_CHECK_TOOL(RC, windres,)
|
|
7607 |
-])
|
|
7608 |
-
|
|
7609 |
-# Old name:
|
|
7610 |
-AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
|
|
7611 |
-dnl aclocal-1.4 backwards compatibility:
|
|
7612 |
-dnl AC_DEFUN([LT_AC_PROG_RC], [])
|
|
7613 |
-
|
|
7614 |
-
|
|
7615 |
-# _LT_DECL_EGREP
|
|
7616 |
-# --------------
|
|
7617 |
-# If we don't have a new enough Autoconf to choose the best grep
|
|
7618 |
-# available, choose the one first in the user's PATH.
|
|
7619 |
-m4_defun([_LT_DECL_EGREP],
|
|
7620 |
-[AC_REQUIRE([AC_PROG_EGREP])dnl
|
|
7621 |
-AC_REQUIRE([AC_PROG_FGREP])dnl
|
|
7622 |
-test -z "$GREP" && GREP=grep
|
|
7623 |
-_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
|
|
7624 |
-_LT_DECL([], [EGREP], [1], [An ERE matcher])
|
|
7625 |
-_LT_DECL([], [FGREP], [1], [A literal string matcher])
|
|
7626 |
-dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
|
|
7627 |
-AC_SUBST([GREP])
|
|
7628 |
-])
|
|
7629 |
-
|
|
7630 |
-
|
|
7631 |
-# _LT_DECL_OBJDUMP
|
|
7632 |
-# --------------
|
|
7633 |
-# If we don't have a new enough Autoconf to choose the best objdump
|
|
7634 |
-# available, choose the one first in the user's PATH.
|
|
7635 |
-m4_defun([_LT_DECL_OBJDUMP],
|
|
7636 |
-[AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
7637 |
-test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
7638 |
-_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
|
7639 |
-AC_SUBST([OBJDUMP])
|
|
7640 |
-])
|
|
7641 |
-
|
|
7642 |
-
|
|
7643 |
-# _LT_DECL_SED
|
|
7644 |
-# ------------
|
|
7645 |
-# Check for a fully-functional sed program, that truncates
|
|
7646 |
-# as few characters as possible. Prefer GNU sed if found.
|
|
7647 |
-m4_defun([_LT_DECL_SED],
|
|
7648 |
-[AC_PROG_SED
|
|
7649 |
-test -z "$SED" && SED=sed
|
|
7650 |
-Xsed="$SED -e 1s/^X//"
|
|
7651 |
-_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
|
|
7652 |
-_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
|
7653 |
- [Sed that helps us avoid accidentally triggering echo(1) options like -n])
|
|
7654 |
-])# _LT_DECL_SED
|
|
7655 |
-
|
|
7656 |
-m4_ifndef([AC_PROG_SED], [
|
|
7657 |
-############################################################
|
|
7658 |
-# NOTE: This macro has been submitted for inclusion into #
|
|
7659 |
-# GNU Autoconf as AC_PROG_SED. When it is available in #
|
|
7660 |
-# a released version of Autoconf we should remove this #
|
|
7661 |
-# macro and use it instead. #
|
|
7662 |
-############################################################
|
|
7663 |
-
|
|
7664 |
-m4_defun([AC_PROG_SED],
|
|
7665 |
-[AC_MSG_CHECKING([for a sed that does not truncate output])
|
|
7666 |
-AC_CACHE_VAL(lt_cv_path_SED,
|
|
7667 |
-[# Loop through the user's path and test for sed and gsed.
|
|
7668 |
-# Then use that list of sed's as ones to test for truncation.
|
|
7669 |
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
7670 |
-for as_dir in $PATH
|
|
7671 |
-do
|
|
7672 |
- IFS=$as_save_IFS
|
|
7673 |
- test -z "$as_dir" && as_dir=.
|
|
7674 |
- for lt_ac_prog in sed gsed; do
|
|
7675 |
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
7676 |
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
|
7677 |
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|
7678 |
- fi
|
|
7679 |
- done
|
|
7680 |
- done
|
|
7681 |
-done
|
|
7682 |
-IFS=$as_save_IFS
|
|
7683 |
-lt_ac_max=0
|
|
7684 |
-lt_ac_count=0
|
|
7685 |
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
7686 |
-# along with /bin/sed that truncates output.
|
|
7687 |
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
|
7688 |
- test ! -f $lt_ac_sed && continue
|
|
7689 |
- cat /dev/null > conftest.in
|
|
7690 |
- lt_ac_count=0
|
|
7691 |
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
|
7692 |
- # Check for GNU sed and select it if it is found.
|
|
7693 |
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
|
7694 |
- lt_cv_path_SED=$lt_ac_sed
|
|
7695 |
- break
|
|
7696 |
- fi
|
|
7697 |
- while true; do
|
|
7698 |
- cat conftest.in conftest.in >conftest.tmp
|
|
7699 |
- mv conftest.tmp conftest.in
|
|
7700 |
- cp conftest.in conftest.nl
|
|
7701 |
- echo >>conftest.nl
|
|
7702 |
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
|
7703 |
- cmp -s conftest.out conftest.nl || break
|
|
7704 |
- # 10000 chars as input seems more than enough
|
|
7705 |
- test $lt_ac_count -gt 10 && break
|
|
7706 |
- lt_ac_count=`expr $lt_ac_count + 1`
|
|
7707 |
- if test $lt_ac_count -gt $lt_ac_max; then
|
|
7708 |
- lt_ac_max=$lt_ac_count
|
|
7709 |
- lt_cv_path_SED=$lt_ac_sed
|
|
7710 |
- fi
|
|
7711 |
- done
|
|
7712 |
-done
|
|
7713 |
-])
|
|
7714 |
-SED=$lt_cv_path_SED
|
|
7715 |
-AC_SUBST([SED])
|
|
7716 |
-AC_MSG_RESULT([$SED])
|
|
7717 |
-])#AC_PROG_SED
|
|
7718 |
-])#m4_ifndef
|
|
7719 |
-
|
|
7720 |
-# Old name:
|
|
7721 |
-AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
|
|
7722 |
-dnl aclocal-1.4 backwards compatibility:
|
|
7723 |
-dnl AC_DEFUN([LT_AC_PROG_SED], [])
|
|
7724 |
-
|
|
7725 |
-
|
|
7726 |
-# _LT_CHECK_SHELL_FEATURES
|
|
7727 |
-# ------------------------
|
|
7728 |
-# Find out whether the shell is Bourne or XSI compatible,
|
|
7729 |
-# or has some other useful features.
|
|
7730 |
-m4_defun([_LT_CHECK_SHELL_FEATURES],
|
|
7731 |
-[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
|
|
7732 |
-# Try some XSI features
|
|
7733 |
-xsi_shell=no
|
|
7734 |
-( _lt_dummy="a/b/c"
|
|
7735 |
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
7736 |
- = c,a/b,, \
|
|
7737 |
- && eval 'test $(( 1 + 1 )) -eq 2 \
|
|
7738 |
- && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
7739 |
- && xsi_shell=yes
|
|
7740 |
-AC_MSG_RESULT([$xsi_shell])
|
|
7741 |
-_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
|
|
7742 |
-
|
|
7743 |
-AC_MSG_CHECKING([whether the shell understands "+="])
|
|
7744 |
-lt_shell_append=no
|
|
7745 |
-( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
|
|
7746 |
- >/dev/null 2>&1 \
|
|
7747 |
- && lt_shell_append=yes
|
|
7748 |
-AC_MSG_RESULT([$lt_shell_append])
|
|
7749 |
-_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
|
|
7750 |
-
|
|
7751 |
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
7752 |
- lt_unset=unset
|
|
7753 |
-else
|
|
7754 |
- lt_unset=false
|
|
7755 |
-fi
|
|
7756 |
-_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
|
|
7757 |
-
|
|
7758 |
-# test EBCDIC or ASCII
|
|
7759 |
-case `echo X|tr X '\101'` in
|
|
7760 |
- A) # ASCII based system
|
|
7761 |
- # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
|
7762 |
- lt_SP2NL='tr \040 \012'
|
|
7763 |
- lt_NL2SP='tr \015\012 \040\040'
|
|
7764 |
- ;;
|
|
7765 |
- *) # EBCDIC based system
|
|
7766 |
- lt_SP2NL='tr \100 \n'
|
|
7767 |
- lt_NL2SP='tr \r\n \100\100'
|
|
7768 |
- ;;
|
|
7769 |
-esac
|
|
7770 |
-_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
|
|
7771 |
-_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
|
7772 |
-])# _LT_CHECK_SHELL_FEATURES
|
|
7773 |
-
|
|
7774 |
-
|
|
7775 |
-# _LT_PROG_XSI_SHELLFNS
|
|
7776 |
-# ---------------------
|
|
7777 |
-# Bourne and XSI compatible variants of some useful shell functions.
|
|
7778 |
-m4_defun([_LT_PROG_XSI_SHELLFNS],
|
|
7779 |
-[case $xsi_shell in
|
|
7780 |
- yes)
|
|
7781 |
- cat << \_LT_EOF >> "$cfgfile"
|
|
7782 |
-
|
|
7783 |
-# func_dirname file append nondir_replacement
|
|
7784 |
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
7785 |
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
7786 |
-func_dirname ()
|
|
7787 |
-{
|
|
7788 |
- case ${1} in
|
|
7789 |
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
7790 |
- * ) func_dirname_result="${3}" ;;
|
|
7791 |
- esac
|
|
7792 |
-}
|
|
7793 |
-
|
|
7794 |
-# func_basename file
|
|
7795 |
-func_basename ()
|
|
7796 |
-{
|
|
7797 |
- func_basename_result="${1##*/}"
|
|
7798 |
-}
|
|
7799 |
-
|
|
7800 |
-# func_dirname_and_basename file append nondir_replacement
|
|
7801 |
-# perform func_basename and func_dirname in a single function
|
|
7802 |
-# call:
|
|
7803 |
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
7804 |
-# add APPEND to the result, otherwise set result
|
|
7805 |
-# to NONDIR_REPLACEMENT.
|
|
7806 |
-# value returned in "$func_dirname_result"
|
|
7807 |
-# basename: Compute filename of FILE.
|
|
7808 |
-# value retuned in "$func_basename_result"
|
|
7809 |
-# Implementation must be kept synchronized with func_dirname
|
|
7810 |
-# and func_basename. For efficiency, we do not delegate to
|
|
7811 |
-# those functions but instead duplicate the functionality here.
|
|
7812 |
-func_dirname_and_basename ()
|
|
7813 |
-{
|
|
7814 |
- case ${1} in
|
|
7815 |
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
7816 |
- * ) func_dirname_result="${3}" ;;
|
|
7817 |
- esac
|
|
7818 |
- func_basename_result="${1##*/}"
|
|
7819 |
-}
|
|
7820 |
-
|
|
7821 |
-# func_stripname prefix suffix name
|
|
7822 |
-# strip PREFIX and SUFFIX off of NAME.
|
|
7823 |
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
7824 |
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
7825 |
-# dot (in which case that matches only a dot).
|
|
7826 |
-func_stripname ()
|
|
7827 |
-{
|
|
7828 |
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
7829 |
- # positional parameters, so assign one to ordinary parameter first.
|
|
7830 |
- func_stripname_result=${3}
|
|
7831 |
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
7832 |
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
7833 |
-}
|
|
7834 |
-
|
|
7835 |
-# func_opt_split
|
|
7836 |
-func_opt_split ()
|
|
7837 |
-{
|
|
7838 |
- func_opt_split_opt=${1%%=*}
|
|
7839 |
- func_opt_split_arg=${1#*=}
|
|
7840 |
-}
|
|
7841 |
-
|
|
7842 |
-# func_lo2o object
|
|
7843 |
-func_lo2o ()
|
|
7844 |
-{
|
|
7845 |
- case ${1} in
|
|
7846 |
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
7847 |
- *) func_lo2o_result=${1} ;;
|
|
7848 |
- esac
|
|
7849 |
-}
|
|
7850 |
-
|
|
7851 |
-# func_xform libobj-or-source
|
|
7852 |
-func_xform ()
|
|
7853 |
-{
|
|
7854 |
- func_xform_result=${1%.*}.lo
|
|
7855 |
-}
|
|
7856 |
-
|
|
7857 |
-# func_arith arithmetic-term...
|
|
7858 |
-func_arith ()
|
|
7859 |
-{
|
|
7860 |
- func_arith_result=$(( $[*] ))
|
|
7861 |
-}
|
|
7862 |
-
|
|
7863 |
-# func_len string
|
|
7864 |
-# STRING may not start with a hyphen.
|
|
7865 |
-func_len ()
|
|
7866 |
-{
|
|
7867 |
- func_len_result=${#1}
|
|
7868 |
-}
|
|
7869 |
-
|
|
7870 |
-_LT_EOF
|
|
7871 |
- ;;
|
|
7872 |
- *) # Bourne compatible functions.
|
|
7873 |
- cat << \_LT_EOF >> "$cfgfile"
|
|
7874 |
-
|
|
7875 |
-# func_dirname file append nondir_replacement
|
|
7876 |
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
7877 |
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
7878 |
-func_dirname ()
|
|
7879 |
-{
|
|
7880 |
- # Extract subdirectory from the argument.
|
|
7881 |
- func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
|
|
7882 |
- if test "X$func_dirname_result" = "X${1}"; then
|
|
7883 |
- func_dirname_result="${3}"
|
|
7884 |
- else
|
|
7885 |
- func_dirname_result="$func_dirname_result${2}"
|
|
7886 |
- fi
|
|
7887 |
-}
|
|
7888 |
-
|
|
7889 |
-# func_basename file
|
|
7890 |
-func_basename ()
|
|
7891 |
-{
|
|
7892 |
- func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
|
|
7893 |
-}
|
|
7894 |
-
|
|
7895 |
-dnl func_dirname_and_basename
|
|
7896 |
-dnl A portable version of this function is already defined in general.m4sh
|
|
7897 |
-dnl so there is no need for it here.
|
|
7898 |
-
|
|
7899 |
-# func_stripname prefix suffix name
|
|
7900 |
-# strip PREFIX and SUFFIX off of NAME.
|
|
7901 |
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
7902 |
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
7903 |
-# dot (in which case that matches only a dot).
|
|
7904 |
-# func_strip_suffix prefix name
|
|
7905 |
-func_stripname ()
|
|
7906 |
-{
|
|
7907 |
- case ${2} in
|
|
7908 |
- .*) func_stripname_result=`$ECHO "X${3}" \
|
|
7909 |
- | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
|
|
7910 |
- *) func_stripname_result=`$ECHO "X${3}" \
|
|
7911 |
- | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
|
|
7912 |
- esac
|
|
7913 |
-}
|
|
7914 |
-
|
|
7915 |
-# sed scripts:
|
|
7916 |
-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
|
|
7917 |
-my_sed_long_arg='1s/^-[[^=]]*=//'
|
|
7918 |
-
|
|
7919 |
-# func_opt_split
|
|
7920 |
-func_opt_split ()
|
|
7921 |
-{
|
|
7922 |
- func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
|
|
7923 |
- func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
|
|
7924 |
-}
|
|
7925 |
-
|
|
7926 |
-# func_lo2o object
|
|
7927 |
-func_lo2o ()
|
|
7928 |
-{
|
|
7929 |
- func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
|
|
7930 |
-}
|
|
7931 |
-
|
|
7932 |
-# func_xform libobj-or-source
|
|
7933 |
-func_xform ()
|
|
7934 |
-{
|
|
7935 |
- func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
|
|
7936 |
-}
|
|
7937 |
-
|
|
7938 |
-# func_arith arithmetic-term...
|
|
7939 |
-func_arith ()
|
|
7940 |
-{
|
|
7941 |
- func_arith_result=`expr "$[@]"`
|
|
7942 |
-}
|
|
7943 |
-
|
|
7944 |
-# func_len string
|
|
7945 |
-# STRING may not start with a hyphen.
|
|
7946 |
-func_len ()
|
|
7947 |
-{
|
|
7948 |
- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
7949 |
-}
|
|
7950 |
-
|
|
7951 |
-_LT_EOF
|
|
7952 |
-esac
|
|
7953 |
-
|
|
7954 |
-case $lt_shell_append in
|
|
7955 |
- yes)
|
|
7956 |
- cat << \_LT_EOF >> "$cfgfile"
|
|
7957 |
-
|
|
7958 |
-# func_append var value
|
|
7959 |
-# Append VALUE to the end of shell variable VAR.
|
|
7960 |
-func_append ()
|
|
7961 |
-{
|
|
7962 |
- eval "$[1]+=\$[2]"
|
|
7963 |
-}
|
|
7964 |
-_LT_EOF
|
|
7965 |
- ;;
|
|
7966 |
- *)
|
|
7967 |
- cat << \_LT_EOF >> "$cfgfile"
|
|
7968 |
-
|
|
7969 |
-# func_append var value
|
|
7970 |
-# Append VALUE to the end of shell variable VAR.
|
|
7971 |
-func_append ()
|
|
7972 |
-{
|
|
7973 |
- eval "$[1]=\$$[1]\$[2]"
|
|
7974 |
-}
|
|
7975 |
-
|
|
7976 |
-_LT_EOF
|
|
7977 |
- ;;
|
|
7978 |
- esac
|
|
7979 |
-])
|
|
7980 |
Index: curl/m4/ltversion.m4
|
|
7981 |
===================================================================
|
|
7982 |
--- curl.orig/m4/ltversion.m4 2010-02-09 13:56:02.000000000 +0100
|
|
7983 |
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
|
|
7984 |
@@ -1,23 +0,0 @@
|
|
7985 |
-# ltversion.m4 -- version numbers -*- Autoconf -*-
|
|
7986 |
-#
|
|
7987 |
-# Copyright (C) 2004 Free Software Foundation, Inc.
|
|
7988 |
-# Written by Scott James Remnant, 2004
|
|
7989 |
-#
|
|
7990 |
-# This file is free software; the Free Software Foundation gives
|
|
7991 |
-# unlimited permission to copy and/or distribute it, with or without
|
|
7992 |
-# modifications, as long as this notice is preserved.
|
|
7993 |
-
|
|
7994 |
-# Generated from ltversion.in.
|
|
7995 |
-
|
|
7996 |
-# serial 3017 ltversion.m4
|
|
7997 |
-# This file is part of GNU Libtool
|
|
7998 |
-
|
|
7999 |
-m4_define([LT_PACKAGE_VERSION], [2.2.6b])
|
|
8000 |
-m4_define([LT_PACKAGE_REVISION], [1.3017])
|
|
8001 |
-
|
|
8002 |
-AC_DEFUN([LTVERSION_VERSION],
|
|
8003 |
-[macro_version='2.2.6b'
|
|
8004 |
-macro_revision='1.3017'
|
|
8005 |
-_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
8006 |
-_LT_DECL(, macro_revision, 0)
|
|
8007 |
-])
|