Update automatically managed build utilities.
[sod] / aclocal.m4
1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23 # ===========================================================================
24 # http://www.gnu.org/software/autoconf-archive/ax_append_flag.html
25 # ===========================================================================
26 #
27 # SYNOPSIS
28 #
29 # AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])
30 #
31 # DESCRIPTION
32 #
33 # FLAG is appended to the FLAGS-VARIABLE shell variable, with a space
34 # added in between.
35 #
36 # If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
37 # CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains
38 # FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly
39 # FLAG.
40 #
41 # NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.
42 #
43 # LICENSE
44 #
45 # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
46 # Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
47 #
48 # This program is free software: you can redistribute it and/or modify it
49 # under the terms of the GNU General Public License as published by the
50 # Free Software Foundation, either version 3 of the License, or (at your
51 # option) any later version.
52 #
53 # This program is distributed in the hope that it will be useful, but
54 # WITHOUT ANY WARRANTY; without even the implied warranty of
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
56 # Public License for more details.
57 #
58 # You should have received a copy of the GNU General Public License along
59 # with this program. If not, see <http://www.gnu.org/licenses/>.
60 #
61 # As a special exception, the respective Autoconf Macro's copyright owner
62 # gives unlimited permission to copy, distribute and modify the configure
63 # scripts that are the output of Autoconf when processing the Macro. You
64 # need not follow the terms of the GNU General Public License when using
65 # or distributing such scripts, even though portions of the text of the
66 # Macro appear in them. The GNU General Public License (GPL) does govern
67 # all other use of the material that constitutes the Autoconf Macro.
68 #
69 # This special exception to the GPL applies to versions of the Autoconf
70 # Macro released by the Autoconf Archive. When you make and distribute a
71 # modified version of the Autoconf Macro, you may extend this special
72 # exception to the GPL to apply to your modified version as well.
73
74 #serial 2
75
76 AC_DEFUN([AX_APPEND_FLAG],
77 [AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
78 AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl
79 AS_VAR_SET_IF(FLAGS,
80 [case " AS_VAR_GET(FLAGS) " in
81 *" $1 "*)
82 AC_RUN_LOG([: FLAGS already contains $1])
83 ;;
84 *)
85 AC_RUN_LOG([: FLAGS="$FLAGS $1"])
86 AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"])
87 ;;
88 esac],
89 [AS_VAR_SET(FLAGS,["$1"])])
90 AS_VAR_POPDEF([FLAGS])dnl
91 ])dnl AX_APPEND_FLAG
92
93 # ===========================================================================
94 # http://www.gnu.org/software/autoconf-archive/ax_cflags_warn_all.html
95 # ===========================================================================
96 #
97 # SYNOPSIS
98 #
99 # AX_CFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
100 # AX_CXXFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
101 # AX_FCFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
102 #
103 # DESCRIPTION
104 #
105 # Try to find a compiler option that enables most reasonable warnings.
106 #
107 # For the GNU compiler it will be -Wall (and -ansi -pedantic) The result
108 # is added to the shellvar being CFLAGS, CXXFLAGS, or FCFLAGS by default.
109 #
110 # Currently this macro knows about the GCC, Solaris, Digital Unix, AIX,
111 # HP-UX, IRIX, NEC SX-5 (Super-UX 10), Cray J90 (Unicos 10.0.0.8), and
112 # Intel compilers. For a given compiler, the Fortran flags are much more
113 # experimental than their C equivalents.
114 #
115 # - $1 shell-variable-to-add-to : CFLAGS, CXXFLAGS, or FCFLAGS
116 # - $2 add-value-if-not-found : nothing
117 # - $3 action-if-found : add value to shellvariable
118 # - $4 action-if-not-found : nothing
119 #
120 # NOTE: These macros depend on AX_APPEND_FLAG.
121 #
122 # LICENSE
123 #
124 # Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
125 # Copyright (c) 2010 Rhys Ulerich <rhys.ulerich@gmail.com>
126 #
127 # This program is free software; you can redistribute it and/or modify it
128 # under the terms of the GNU General Public License as published by the
129 # Free Software Foundation; either version 3 of the License, or (at your
130 # option) any later version.
131 #
132 # This program is distributed in the hope that it will be useful, but
133 # WITHOUT ANY WARRANTY; without even the implied warranty of
134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
135 # Public License for more details.
136 #
137 # You should have received a copy of the GNU General Public License along
138 # with this program. If not, see <http://www.gnu.org/licenses/>.
139 #
140 # As a special exception, the respective Autoconf Macro's copyright owner
141 # gives unlimited permission to copy, distribute and modify the configure
142 # scripts that are the output of Autoconf when processing the Macro. You
143 # need not follow the terms of the GNU General Public License when using
144 # or distributing such scripts, even though portions of the text of the
145 # Macro appear in them. The GNU General Public License (GPL) does govern
146 # all other use of the material that constitutes the Autoconf Macro.
147 #
148 # This special exception to the GPL applies to versions of the Autoconf
149 # Macro released by the Autoconf Archive. When you make and distribute a
150 # modified version of the Autoconf Macro, you may extend this special
151 # exception to the GPL to apply to your modified version as well.
152
153 #serial 13
154
155 AC_DEFUN([AX_FLAGS_WARN_ALL],[dnl
156 AS_VAR_PUSHDEF([FLAGS],[_AC_LANG_PREFIX[]FLAGS])dnl
157 AS_VAR_PUSHDEF([VAR],[ac_cv_[]_AC_LANG_ABBREV[]flags_warn_all])dnl
158 AC_CACHE_CHECK([m4_ifval($1,$1,FLAGS) for maximum warnings],
159 VAR,[VAR="no, unknown"
160 ac_save_[]FLAGS="$[]FLAGS"
161 for ac_arg dnl
162 in "-warn all % -warn all" dnl Intel
163 "-pedantic % -Wall" dnl GCC
164 "-xstrconst % -v" dnl Solaris C
165 "-std1 % -verbose -w0 -warnprotos" dnl Digital Unix
166 "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" dnl AIX
167 "-ansi -ansiE % -fullwarn" dnl IRIX
168 "+ESlit % +w1" dnl HP-UX C
169 "-Xc % -pvctl[,]fullmsg" dnl NEC SX-5 (Super-UX 10)
170 "-h conform % -h msglevel 2" dnl Cray C (Unicos)
171 #
172 do FLAGS="$ac_save_[]FLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
173 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
174 [VAR=`echo $ac_arg | sed -e 's,.*% *,,'` ; break])
175 done
176 FLAGS="$ac_save_[]FLAGS"
177 ])
178 AS_VAR_POPDEF([FLAGS])dnl
179 case ".$VAR" in
180 .ok|.ok,*) m4_ifvaln($3,$3) ;;
181 .|.no|.no,*) m4_default($4,[m4_ifval($2,[AX_APPEND_FLAG([$2], [$1])])]) ;;
182 *) m4_default($3,[AX_APPEND_FLAG([$VAR], [$1])]) ;;
183 esac
184 AS_VAR_POPDEF([VAR])dnl
185 ])dnl AX_FLAGS_WARN_ALL
186 dnl implementation tactics:
187 dnl the for-argument contains a list of options. The first part of
188 dnl these does only exist to detect the compiler - usually it is
189 dnl a global option to enable -ansi or -extrawarnings. All other
190 dnl compilers will fail about it. That was needed since a lot of
191 dnl compilers will give false positives for some option-syntax
192 dnl like -Woption or -Xoption as they think of it is a pass-through
193 dnl to later compile stages or something. The "%" is used as a
194 dnl delimiter. A non-option comment can be given after "%%" marks
195 dnl which will be shown but not added to the respective C/CXXFLAGS.
196
197 AC_DEFUN([AX_CFLAGS_WARN_ALL],[dnl
198 AC_LANG_PUSH([C])
199 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
200 AC_LANG_POP([C])
201 ])
202
203 AC_DEFUN([AX_CXXFLAGS_WARN_ALL],[dnl
204 AC_LANG_PUSH([C++])
205 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
206 AC_LANG_POP([C++])
207 ])
208
209 AC_DEFUN([AX_FCFLAGS_WARN_ALL],[dnl
210 AC_LANG_PUSH([Fortran])
211 AX_FLAGS_WARN_ALL([$1], [$2], [$3], [$4])
212 AC_LANG_POP([Fortran])
213 ])
214
215 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
216 #
217 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
218 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
219 # Foundation, Inc.
220 # Written by Gordon Matzigkeit, 1996
221 #
222 # This file is free software; the Free Software Foundation gives
223 # unlimited permission to copy and/or distribute it, with or without
224 # modifications, as long as this notice is preserved.
225
226 m4_define([_LT_COPYING], [dnl
227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
228 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
229 # Foundation, Inc.
230 # Written by Gordon Matzigkeit, 1996
231 #
232 # This file is part of GNU Libtool.
233 #
234 # GNU Libtool is free software; you can redistribute it and/or
235 # modify it under the terms of the GNU General Public License as
236 # published by the Free Software Foundation; either version 2 of
237 # the License, or (at your option) any later version.
238 #
239 # As a special exception to the GNU General Public License,
240 # if you distribute this file as part of a program or library that
241 # is built using GNU Libtool, you may include this file under the
242 # same distribution terms that you use for the rest of that program.
243 #
244 # GNU Libtool is distributed in the hope that it will be useful,
245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
247 # GNU General Public License for more details.
248 #
249 # You should have received a copy of the GNU General Public License
250 # along with GNU Libtool; see the file COPYING. If not, a copy
251 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
252 # obtained by writing to the Free Software Foundation, Inc.,
253 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
254 ])
255
256 # serial 57 LT_INIT
257
258
259 # LT_PREREQ(VERSION)
260 # ------------------
261 # Complain and exit if this libtool version is less that VERSION.
262 m4_defun([LT_PREREQ],
263 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
264 [m4_default([$3],
265 [m4_fatal([Libtool version $1 or higher is required],
266 63)])],
267 [$2])])
268
269
270 # _LT_CHECK_BUILDDIR
271 # ------------------
272 # Complain if the absolute build directory name contains unusual characters
273 m4_defun([_LT_CHECK_BUILDDIR],
274 [case `pwd` in
275 *\ * | *\ *)
276 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
277 esac
278 ])
279
280
281 # LT_INIT([OPTIONS])
282 # ------------------
283 AC_DEFUN([LT_INIT],
284 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
285 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
286 AC_BEFORE([$0], [LT_LANG])dnl
287 AC_BEFORE([$0], [LT_OUTPUT])dnl
288 AC_BEFORE([$0], [LTDL_INIT])dnl
289 m4_require([_LT_CHECK_BUILDDIR])dnl
290
291 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
292 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
293 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
294 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
295 dnl unless we require an AC_DEFUNed macro:
296 AC_REQUIRE([LTOPTIONS_VERSION])dnl
297 AC_REQUIRE([LTSUGAR_VERSION])dnl
298 AC_REQUIRE([LTVERSION_VERSION])dnl
299 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
300 m4_require([_LT_PROG_LTMAIN])dnl
301
302 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
303
304 dnl Parse OPTIONS
305 _LT_SET_OPTIONS([$0], [$1])
306
307 # This can be used to rebuild libtool when needed
308 LIBTOOL_DEPS="$ltmain"
309
310 # Always use our own libtool.
311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
312 AC_SUBST(LIBTOOL)dnl
313
314 _LT_SETUP
315
316 # Only expand once:
317 m4_define([LT_INIT])
318 ])# LT_INIT
319
320 # Old names:
321 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
322 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
323 dnl aclocal-1.4 backwards compatibility:
324 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
325 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
326
327
328 # _LT_CC_BASENAME(CC)
329 # -------------------
330 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
331 m4_defun([_LT_CC_BASENAME],
332 [for cc_temp in $1""; do
333 case $cc_temp in
334 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
335 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
336 \-*) ;;
337 *) break;;
338 esac
339 done
340 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
341 ])
342
343
344 # _LT_FILEUTILS_DEFAULTS
345 # ----------------------
346 # It is okay to use these file commands and assume they have been set
347 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
348 m4_defun([_LT_FILEUTILS_DEFAULTS],
349 [: ${CP="cp -f"}
350 : ${MV="mv -f"}
351 : ${RM="rm -f"}
352 ])# _LT_FILEUTILS_DEFAULTS
353
354
355 # _LT_SETUP
356 # ---------
357 m4_defun([_LT_SETUP],
358 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
359 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
360 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
361 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
362
363 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
364 dnl
365 _LT_DECL([], [host_alias], [0], [The host system])dnl
366 _LT_DECL([], [host], [0])dnl
367 _LT_DECL([], [host_os], [0])dnl
368 dnl
369 _LT_DECL([], [build_alias], [0], [The build system])dnl
370 _LT_DECL([], [build], [0])dnl
371 _LT_DECL([], [build_os], [0])dnl
372 dnl
373 AC_REQUIRE([AC_PROG_CC])dnl
374 AC_REQUIRE([LT_PATH_LD])dnl
375 AC_REQUIRE([LT_PATH_NM])dnl
376 dnl
377 AC_REQUIRE([AC_PROG_LN_S])dnl
378 test -z "$LN_S" && LN_S="ln -s"
379 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
380 dnl
381 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
382 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
383 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
384 dnl
385 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
386 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
387 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
388 m4_require([_LT_CMD_RELOAD])dnl
389 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
390 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
391 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
392 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
393 m4_require([_LT_WITH_SYSROOT])dnl
394
395 _LT_CONFIG_LIBTOOL_INIT([
396 # See if we are running on zsh, and set the options which allow our
397 # commands through without removal of \ escapes INIT.
398 if test -n "\${ZSH_VERSION+set}" ; then
399 setopt NO_GLOB_SUBST
400 fi
401 ])
402 if test -n "${ZSH_VERSION+set}" ; then
403 setopt NO_GLOB_SUBST
404 fi
405
406 _LT_CHECK_OBJDIR
407
408 m4_require([_LT_TAG_COMPILER])dnl
409
410 case $host_os in
411 aix3*)
412 # AIX sometimes has problems with the GCC collect2 program. For some
413 # reason, if we set the COLLECT_NAMES environment variable, the problems
414 # vanish in a puff of smoke.
415 if test "X${COLLECT_NAMES+set}" != Xset; then
416 COLLECT_NAMES=
417 export COLLECT_NAMES
418 fi
419 ;;
420 esac
421
422 # Global variables:
423 ofile=libtool
424 can_build_shared=yes
425
426 # All known linkers require a `.a' archive for static linking (except MSVC,
427 # which needs '.lib').
428 libext=a
429
430 with_gnu_ld="$lt_cv_prog_gnu_ld"
431
432 old_CC="$CC"
433 old_CFLAGS="$CFLAGS"
434
435 # Set sane defaults for various variables
436 test -z "$CC" && CC=cc
437 test -z "$LTCC" && LTCC=$CC
438 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
439 test -z "$LD" && LD=ld
440 test -z "$ac_objext" && ac_objext=o
441
442 _LT_CC_BASENAME([$compiler])
443
444 # Only perform the check for file, if the check method requires it
445 test -z "$MAGIC_CMD" && MAGIC_CMD=file
446 case $deplibs_check_method in
447 file_magic*)
448 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
449 _LT_PATH_MAGIC
450 fi
451 ;;
452 esac
453
454 # Use C for the default configuration in the libtool script
455 LT_SUPPORTED_TAG([CC])
456 _LT_LANG_C_CONFIG
457 _LT_LANG_DEFAULT_CONFIG
458 _LT_CONFIG_COMMANDS
459 ])# _LT_SETUP
460
461
462 # _LT_PREPARE_SED_QUOTE_VARS
463 # --------------------------
464 # Define a few sed substitution that help us do robust quoting.
465 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
466 [# Backslashify metacharacters that are still active within
467 # double-quoted strings.
468 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
469
470 # Same as above, but do not quote variable references.
471 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
472
473 # Sed substitution to delay expansion of an escaped shell variable in a
474 # double_quote_subst'ed string.
475 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
476
477 # Sed substitution to delay expansion of an escaped single quote.
478 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
479
480 # Sed substitution to avoid accidental globbing in evaled expressions
481 no_glob_subst='s/\*/\\\*/g'
482 ])
483
484 # _LT_PROG_LTMAIN
485 # ---------------
486 # Note that this code is called both from `configure', and `config.status'
487 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
488 # `config.status' has no value for ac_aux_dir unless we are using Automake,
489 # so we pass a copy along to make sure it has a sensible value anyway.
490 m4_defun([_LT_PROG_LTMAIN],
491 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
492 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
493 ltmain="$ac_aux_dir/ltmain.sh"
494 ])# _LT_PROG_LTMAIN
495
496
497
498 # So that we can recreate a full libtool script including additional
499 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
500 # in macros and then make a single call at the end using the `libtool'
501 # label.
502
503
504 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
505 # ----------------------------------------
506 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
507 m4_define([_LT_CONFIG_LIBTOOL_INIT],
508 [m4_ifval([$1],
509 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
510 [$1
511 ])])])
512
513 # Initialize.
514 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
515
516
517 # _LT_CONFIG_LIBTOOL([COMMANDS])
518 # ------------------------------
519 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
520 m4_define([_LT_CONFIG_LIBTOOL],
521 [m4_ifval([$1],
522 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
523 [$1
524 ])])])
525
526 # Initialize.
527 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
528
529
530 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
531 # -----------------------------------------------------
532 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
533 [_LT_CONFIG_LIBTOOL([$1])
534 _LT_CONFIG_LIBTOOL_INIT([$2])
535 ])
536
537
538 # _LT_FORMAT_COMMENT([COMMENT])
539 # -----------------------------
540 # Add leading comment marks to the start of each line, and a trailing
541 # full-stop to the whole comment if one is not present already.
542 m4_define([_LT_FORMAT_COMMENT],
543 [m4_ifval([$1], [
544 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
545 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
546 )])
547
548
549
550
551
552 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
553 # -------------------------------------------------------------------
554 # CONFIGNAME is the name given to the value in the libtool script.
555 # VARNAME is the (base) name used in the configure script.
556 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
557 # VARNAME. Any other value will be used directly.
558 m4_define([_LT_DECL],
559 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
560 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
561 [m4_ifval([$1], [$1], [$2])])
562 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
563 m4_ifval([$4],
564 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
565 lt_dict_add_subkey([lt_decl_dict], [$2],
566 [tagged?], [m4_ifval([$5], [yes], [no])])])
567 ])
568
569
570 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
571 # --------------------------------------------------------
572 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
573
574
575 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
576 # ------------------------------------------------
577 m4_define([lt_decl_tag_varnames],
578 [_lt_decl_filter([tagged?], [yes], $@)])
579
580
581 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
582 # ---------------------------------------------------------
583 m4_define([_lt_decl_filter],
584 [m4_case([$#],
585 [0], [m4_fatal([$0: too few arguments: $#])],
586 [1], [m4_fatal([$0: too few arguments: $#: $1])],
587 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
588 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
589 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
590 ])
591
592
593 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
594 # --------------------------------------------------
595 m4_define([lt_decl_quote_varnames],
596 [_lt_decl_filter([value], [1], $@)])
597
598
599 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
600 # ---------------------------------------------------
601 m4_define([lt_decl_dquote_varnames],
602 [_lt_decl_filter([value], [2], $@)])
603
604
605 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
606 # ---------------------------------------------------
607 m4_define([lt_decl_varnames_tagged],
608 [m4_assert([$# <= 2])dnl
609 _$0(m4_quote(m4_default([$1], [[, ]])),
610 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
611 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
612 m4_define([_lt_decl_varnames_tagged],
613 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
614
615
616 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
617 # ------------------------------------------------
618 m4_define([lt_decl_all_varnames],
619 [_$0(m4_quote(m4_default([$1], [[, ]])),
620 m4_if([$2], [],
621 m4_quote(lt_decl_varnames),
622 m4_quote(m4_shift($@))))[]dnl
623 ])
624 m4_define([_lt_decl_all_varnames],
625 [lt_join($@, lt_decl_varnames_tagged([$1],
626 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
627 ])
628
629
630 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
631 # ------------------------------------
632 # Quote a variable value, and forward it to `config.status' so that its
633 # declaration there will have the same value as in `configure'. VARNAME
634 # must have a single quote delimited value for this to work.
635 m4_define([_LT_CONFIG_STATUS_DECLARE],
636 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
637
638
639 # _LT_CONFIG_STATUS_DECLARATIONS
640 # ------------------------------
641 # We delimit libtool config variables with single quotes, so when
642 # we write them to config.status, we have to be sure to quote all
643 # embedded single quotes properly. In configure, this macro expands
644 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
645 #
646 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
647 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
648 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
649 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
650
651
652 # _LT_LIBTOOL_TAGS
653 # ----------------
654 # Output comment and list of tags supported by the script
655 m4_defun([_LT_LIBTOOL_TAGS],
656 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
657 available_tags="_LT_TAGS"dnl
658 ])
659
660
661 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
662 # -----------------------------------
663 # Extract the dictionary values for VARNAME (optionally with TAG) and
664 # expand to a commented shell variable setting:
665 #
666 # # Some comment about what VAR is for.
667 # visible_name=$lt_internal_name
668 m4_define([_LT_LIBTOOL_DECLARE],
669 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
670 [description])))[]dnl
671 m4_pushdef([_libtool_name],
672 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
673 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
674 [0], [_libtool_name=[$]$1],
675 [1], [_libtool_name=$lt_[]$1],
676 [2], [_libtool_name=$lt_[]$1],
677 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
678 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
679 ])
680
681
682 # _LT_LIBTOOL_CONFIG_VARS
683 # -----------------------
684 # Produce commented declarations of non-tagged libtool config variables
685 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
686 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
687 # section) are produced by _LT_LIBTOOL_TAG_VARS.
688 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
689 [m4_foreach([_lt_var],
690 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
691 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
692
693
694 # _LT_LIBTOOL_TAG_VARS(TAG)
695 # -------------------------
696 m4_define([_LT_LIBTOOL_TAG_VARS],
697 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
698 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
699
700
701 # _LT_TAGVAR(VARNAME, [TAGNAME])
702 # ------------------------------
703 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
704
705
706 # _LT_CONFIG_COMMANDS
707 # -------------------
708 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
709 # variables for single and double quote escaping we saved from calls
710 # to _LT_DECL, we can put quote escaped variables declarations
711 # into `config.status', and then the shell code to quote escape them in
712 # for loops in `config.status'. Finally, any additional code accumulated
713 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
714 m4_defun([_LT_CONFIG_COMMANDS],
715 [AC_PROVIDE_IFELSE([LT_OUTPUT],
716 dnl If the libtool generation code has been placed in $CONFIG_LT,
717 dnl instead of duplicating it all over again into config.status,
718 dnl then we will have config.status run $CONFIG_LT later, so it
719 dnl needs to know what name is stored there:
720 [AC_CONFIG_COMMANDS([libtool],
721 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
722 dnl If the libtool generation code is destined for config.status,
723 dnl expand the accumulated commands and init code now:
724 [AC_CONFIG_COMMANDS([libtool],
725 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
726 ])#_LT_CONFIG_COMMANDS
727
728
729 # Initialize.
730 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
731 [
732
733 # The HP-UX ksh and POSIX shell print the target directory to stdout
734 # if CDPATH is set.
735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
736
737 sed_quote_subst='$sed_quote_subst'
738 double_quote_subst='$double_quote_subst'
739 delay_variable_subst='$delay_variable_subst'
740 _LT_CONFIG_STATUS_DECLARATIONS
741 LTCC='$LTCC'
742 LTCFLAGS='$LTCFLAGS'
743 compiler='$compiler_DEFAULT'
744
745 # A function that is used when there is no print builtin or printf.
746 func_fallback_echo ()
747 {
748 eval 'cat <<_LTECHO_EOF
749 \$[]1
750 _LTECHO_EOF'
751 }
752
753 # Quote evaled strings.
754 for var in lt_decl_all_varnames([[ \
755 ]], lt_decl_quote_varnames); do
756 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
757 *[[\\\\\\\`\\"\\\$]]*)
758 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
759 ;;
760 *)
761 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
762 ;;
763 esac
764 done
765
766 # Double-quote double-evaled strings.
767 for var in lt_decl_all_varnames([[ \
768 ]], lt_decl_dquote_varnames); do
769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
770 *[[\\\\\\\`\\"\\\$]]*)
771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
772 ;;
773 *)
774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
775 ;;
776 esac
777 done
778
779 _LT_OUTPUT_LIBTOOL_INIT
780 ])
781
782 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
783 # ------------------------------------
784 # Generate a child script FILE with all initialization necessary to
785 # reuse the environment learned by the parent script, and make the
786 # file executable. If COMMENT is supplied, it is inserted after the
787 # `#!' sequence but before initialization text begins. After this
788 # macro, additional text can be appended to FILE to form the body of
789 # the child script. The macro ends with non-zero status if the
790 # file could not be fully written (such as if the disk is full).
791 m4_ifdef([AS_INIT_GENERATED],
792 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
793 [m4_defun([_LT_GENERATED_FILE_INIT],
794 [m4_require([AS_PREPARE])]dnl
795 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
796 [lt_write_fail=0
797 cat >$1 <<_ASEOF || lt_write_fail=1
798 #! $SHELL
799 # Generated by $as_me.
800 $2
801 SHELL=\${CONFIG_SHELL-$SHELL}
802 export SHELL
803 _ASEOF
804 cat >>$1 <<\_ASEOF || lt_write_fail=1
805 AS_SHELL_SANITIZE
806 _AS_PREPARE
807 exec AS_MESSAGE_FD>&1
808 _ASEOF
809 test $lt_write_fail = 0 && chmod +x $1[]dnl
810 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
811
812 # LT_OUTPUT
813 # ---------
814 # This macro allows early generation of the libtool script (before
815 # AC_OUTPUT is called), incase it is used in configure for compilation
816 # tests.
817 AC_DEFUN([LT_OUTPUT],
818 [: ${CONFIG_LT=./config.lt}
819 AC_MSG_NOTICE([creating $CONFIG_LT])
820 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
821 [# Run this file to recreate a libtool stub with the current configuration.])
822
823 cat >>"$CONFIG_LT" <<\_LTEOF
824 lt_cl_silent=false
825 exec AS_MESSAGE_LOG_FD>>config.log
826 {
827 echo
828 AS_BOX([Running $as_me.])
829 } >&AS_MESSAGE_LOG_FD
830
831 lt_cl_help="\
832 \`$as_me' creates a local libtool stub from the current configuration,
833 for use in further configure time tests before the real libtool is
834 generated.
835
836 Usage: $[0] [[OPTIONS]]
837
838 -h, --help print this help, then exit
839 -V, --version print version number, then exit
840 -q, --quiet do not print progress messages
841 -d, --debug don't remove temporary files
842
843 Report bugs to <bug-libtool@gnu.org>."
844
845 lt_cl_version="\
846 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
847 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
848 configured by $[0], generated by m4_PACKAGE_STRING.
849
850 Copyright (C) 2011 Free Software Foundation, Inc.
851 This config.lt script is free software; the Free Software Foundation
852 gives unlimited permision to copy, distribute and modify it."
853
854 while test $[#] != 0
855 do
856 case $[1] in
857 --version | --v* | -V )
858 echo "$lt_cl_version"; exit 0 ;;
859 --help | --h* | -h )
860 echo "$lt_cl_help"; exit 0 ;;
861 --debug | --d* | -d )
862 debug=: ;;
863 --quiet | --q* | --silent | --s* | -q )
864 lt_cl_silent=: ;;
865
866 -*) AC_MSG_ERROR([unrecognized option: $[1]
867 Try \`$[0] --help' for more information.]) ;;
868
869 *) AC_MSG_ERROR([unrecognized argument: $[1]
870 Try \`$[0] --help' for more information.]) ;;
871 esac
872 shift
873 done
874
875 if $lt_cl_silent; then
876 exec AS_MESSAGE_FD>/dev/null
877 fi
878 _LTEOF
879
880 cat >>"$CONFIG_LT" <<_LTEOF
881 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
882 _LTEOF
883
884 cat >>"$CONFIG_LT" <<\_LTEOF
885 AC_MSG_NOTICE([creating $ofile])
886 _LT_OUTPUT_LIBTOOL_COMMANDS
887 AS_EXIT(0)
888 _LTEOF
889 chmod +x "$CONFIG_LT"
890
891 # configure is writing to config.log, but config.lt does its own redirection,
892 # appending to config.log, which fails on DOS, as config.log is still kept
893 # open by configure. Here we exec the FD to /dev/null, effectively closing
894 # config.log, so it can be properly (re)opened and appended to by config.lt.
895 lt_cl_success=:
896 test "$silent" = yes &&
897 lt_config_lt_args="$lt_config_lt_args --quiet"
898 exec AS_MESSAGE_LOG_FD>/dev/null
899 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
900 exec AS_MESSAGE_LOG_FD>>config.log
901 $lt_cl_success || AS_EXIT(1)
902 ])# LT_OUTPUT
903
904
905 # _LT_CONFIG(TAG)
906 # ---------------
907 # If TAG is the built-in tag, create an initial libtool script with a
908 # default configuration from the untagged config vars. Otherwise add code
909 # to config.status for appending the configuration named by TAG from the
910 # matching tagged config vars.
911 m4_defun([_LT_CONFIG],
912 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
913 _LT_CONFIG_SAVE_COMMANDS([
914 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
915 m4_if(_LT_TAG, [C], [
916 # See if we are running on zsh, and set the options which allow our
917 # commands through without removal of \ escapes.
918 if test -n "${ZSH_VERSION+set}" ; then
919 setopt NO_GLOB_SUBST
920 fi
921
922 cfgfile="${ofile}T"
923 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
924 $RM "$cfgfile"
925
926 cat <<_LT_EOF >> "$cfgfile"
927 #! $SHELL
928
929 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
930 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
932 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
933 #
934 _LT_COPYING
935 _LT_LIBTOOL_TAGS
936
937 # ### BEGIN LIBTOOL CONFIG
938 _LT_LIBTOOL_CONFIG_VARS
939 _LT_LIBTOOL_TAG_VARS
940 # ### END LIBTOOL CONFIG
941
942 _LT_EOF
943
944 case $host_os in
945 aix3*)
946 cat <<\_LT_EOF >> "$cfgfile"
947 # AIX sometimes has problems with the GCC collect2 program. For some
948 # reason, if we set the COLLECT_NAMES environment variable, the problems
949 # vanish in a puff of smoke.
950 if test "X${COLLECT_NAMES+set}" != Xset; then
951 COLLECT_NAMES=
952 export COLLECT_NAMES
953 fi
954 _LT_EOF
955 ;;
956 esac
957
958 _LT_PROG_LTMAIN
959
960 # We use sed instead of cat because bash on DJGPP gets confused if
961 # if finds mixed CR/LF and LF-only lines. Since sed operates in
962 # text mode, it properly converts lines to CR/LF. This bash problem
963 # is reportedly fixed, but why not run on old versions too?
964 sed '$q' "$ltmain" >> "$cfgfile" \
965 || (rm -f "$cfgfile"; exit 1)
966
967 _LT_PROG_REPLACE_SHELLFNS
968
969 mv -f "$cfgfile" "$ofile" ||
970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
971 chmod +x "$ofile"
972 ],
973 [cat <<_LT_EOF >> "$ofile"
974
975 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
976 dnl in a comment (ie after a #).
977 # ### BEGIN LIBTOOL TAG CONFIG: $1
978 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
979 # ### END LIBTOOL TAG CONFIG: $1
980 _LT_EOF
981 ])dnl /m4_if
982 ],
983 [m4_if([$1], [], [
984 PACKAGE='$PACKAGE'
985 VERSION='$VERSION'
986 TIMESTAMP='$TIMESTAMP'
987 RM='$RM'
988 ofile='$ofile'], [])
989 ])dnl /_LT_CONFIG_SAVE_COMMANDS
990 ])# _LT_CONFIG
991
992
993 # LT_SUPPORTED_TAG(TAG)
994 # ---------------------
995 # Trace this macro to discover what tags are supported by the libtool
996 # --tag option, using:
997 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
998 AC_DEFUN([LT_SUPPORTED_TAG], [])
999
1000
1001 # C support is built-in for now
1002 m4_define([_LT_LANG_C_enabled], [])
1003 m4_define([_LT_TAGS], [])
1004
1005
1006 # LT_LANG(LANG)
1007 # -------------
1008 # Enable libtool support for the given language if not already enabled.
1009 AC_DEFUN([LT_LANG],
1010 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1011 m4_case([$1],
1012 [C], [_LT_LANG(C)],
1013 [C++], [_LT_LANG(CXX)],
1014 [Go], [_LT_LANG(GO)],
1015 [Java], [_LT_LANG(GCJ)],
1016 [Fortran 77], [_LT_LANG(F77)],
1017 [Fortran], [_LT_LANG(FC)],
1018 [Windows Resource], [_LT_LANG(RC)],
1019 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1020 [_LT_LANG($1)],
1021 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1022 ])# LT_LANG
1023
1024
1025 # _LT_LANG(LANGNAME)
1026 # ------------------
1027 m4_defun([_LT_LANG],
1028 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1029 [LT_SUPPORTED_TAG([$1])dnl
1030 m4_append([_LT_TAGS], [$1 ])dnl
1031 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1032 _LT_LANG_$1_CONFIG($1)])dnl
1033 ])# _LT_LANG
1034
1035
1036 m4_ifndef([AC_PROG_GO], [
1037 # NOTE: This macro has been submitted for inclusion into #
1038 # GNU Autoconf as AC_PROG_GO. When it is available in #
1039 # a released version of Autoconf we should remove this #
1040 # macro and use it instead. #
1041 m4_defun([AC_PROG_GO],
1042 [AC_LANG_PUSH(Go)dnl
1043 AC_ARG_VAR([GOC], [Go compiler command])dnl
1044 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1045 _AC_ARG_VAR_LDFLAGS()dnl
1046 AC_CHECK_TOOL(GOC, gccgo)
1047 if test -z "$GOC"; then
1048 if test -n "$ac_tool_prefix"; then
1049 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1050 fi
1051 fi
1052 if test -z "$GOC"; then
1053 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1054 fi
1055 ])#m4_defun
1056 ])#m4_ifndef
1057
1058
1059 # _LT_LANG_DEFAULT_CONFIG
1060 # -----------------------
1061 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1062 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1063 [LT_LANG(CXX)],
1064 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1065
1066 AC_PROVIDE_IFELSE([AC_PROG_F77],
1067 [LT_LANG(F77)],
1068 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1069
1070 AC_PROVIDE_IFELSE([AC_PROG_FC],
1071 [LT_LANG(FC)],
1072 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1073
1074 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1075 dnl pulling things in needlessly.
1076 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1077 [LT_LANG(GCJ)],
1078 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1079 [LT_LANG(GCJ)],
1080 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1081 [LT_LANG(GCJ)],
1082 [m4_ifdef([AC_PROG_GCJ],
1083 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1084 m4_ifdef([A][M_PROG_GCJ],
1085 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1086 m4_ifdef([LT_PROG_GCJ],
1087 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1088
1089 AC_PROVIDE_IFELSE([AC_PROG_GO],
1090 [LT_LANG(GO)],
1091 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1092
1093 AC_PROVIDE_IFELSE([LT_PROG_RC],
1094 [LT_LANG(RC)],
1095 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1096 ])# _LT_LANG_DEFAULT_CONFIG
1097
1098 # Obsolete macros:
1099 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1100 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1101 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1102 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1103 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1104 dnl aclocal-1.4 backwards compatibility:
1105 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1106 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1107 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1108 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1109 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1110
1111
1112 # _LT_TAG_COMPILER
1113 # ----------------
1114 m4_defun([_LT_TAG_COMPILER],
1115 [AC_REQUIRE([AC_PROG_CC])dnl
1116
1117 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1118 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1119 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1120 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1121
1122 # If no C compiler was specified, use CC.
1123 LTCC=${LTCC-"$CC"}
1124
1125 # If no C compiler flags were specified, use CFLAGS.
1126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1127
1128 # Allow CC to be a program name with arguments.
1129 compiler=$CC
1130 ])# _LT_TAG_COMPILER
1131
1132
1133 # _LT_COMPILER_BOILERPLATE
1134 # ------------------------
1135 # Check for compiler boilerplate output or warnings with
1136 # the simple compiler test code.
1137 m4_defun([_LT_COMPILER_BOILERPLATE],
1138 [m4_require([_LT_DECL_SED])dnl
1139 ac_outfile=conftest.$ac_objext
1140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1142 _lt_compiler_boilerplate=`cat conftest.err`
1143 $RM conftest*
1144 ])# _LT_COMPILER_BOILERPLATE
1145
1146
1147 # _LT_LINKER_BOILERPLATE
1148 # ----------------------
1149 # Check for linker boilerplate output or warnings with
1150 # the simple link test code.
1151 m4_defun([_LT_LINKER_BOILERPLATE],
1152 [m4_require([_LT_DECL_SED])dnl
1153 ac_outfile=conftest.$ac_objext
1154 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1156 _lt_linker_boilerplate=`cat conftest.err`
1157 $RM -r conftest*
1158 ])# _LT_LINKER_BOILERPLATE
1159
1160 # _LT_REQUIRED_DARWIN_CHECKS
1161 # -------------------------
1162 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1163 case $host_os in
1164 rhapsody* | darwin*)
1165 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1166 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1167 AC_CHECK_TOOL([LIPO], [lipo], [:])
1168 AC_CHECK_TOOL([OTOOL], [otool], [:])
1169 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1170 _LT_DECL([], [DSYMUTIL], [1],
1171 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1172 _LT_DECL([], [NMEDIT], [1],
1173 [Tool to change global to local symbols on Mac OS X])
1174 _LT_DECL([], [LIPO], [1],
1175 [Tool to manipulate fat objects and archives on Mac OS X])
1176 _LT_DECL([], [OTOOL], [1],
1177 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1178 _LT_DECL([], [OTOOL64], [1],
1179 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1180
1181 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1182 [lt_cv_apple_cc_single_mod=no
1183 if test -z "${LT_MULTI_MODULE}"; then
1184 # By default we will add the -single_module flag. You can override
1185 # by either setting the environment variable LT_MULTI_MODULE
1186 # non-empty at configure time, or by adding -multi_module to the
1187 # link flags.
1188 rm -rf libconftest.dylib*
1189 echo "int foo(void){return 1;}" > conftest.c
1190 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1191 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1192 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1193 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1194 _lt_result=$?
1195 # If there is a non-empty error log, and "single_module"
1196 # appears in it, assume the flag caused a linker warning
1197 if test -s conftest.err && $GREP single_module conftest.err; then
1198 cat conftest.err >&AS_MESSAGE_LOG_FD
1199 # Otherwise, if the output was created with a 0 exit code from
1200 # the compiler, it worked.
1201 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1202 lt_cv_apple_cc_single_mod=yes
1203 else
1204 cat conftest.err >&AS_MESSAGE_LOG_FD
1205 fi
1206 rm -rf libconftest.dylib*
1207 rm -f conftest.*
1208 fi])
1209
1210 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1211 [lt_cv_ld_exported_symbols_list],
1212 [lt_cv_ld_exported_symbols_list=no
1213 save_LDFLAGS=$LDFLAGS
1214 echo "_main" > conftest.sym
1215 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1216 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1217 [lt_cv_ld_exported_symbols_list=yes],
1218 [lt_cv_ld_exported_symbols_list=no])
1219 LDFLAGS="$save_LDFLAGS"
1220 ])
1221
1222 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1223 [lt_cv_ld_force_load=no
1224 cat > conftest.c << _LT_EOF
1225 int forced_loaded() { return 2;}
1226 _LT_EOF
1227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1229 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1230 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1231 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1232 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1233 cat > conftest.c << _LT_EOF
1234 int main() { return 0;}
1235 _LT_EOF
1236 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1237 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1238 _lt_result=$?
1239 if test -s conftest.err && $GREP force_load conftest.err; then
1240 cat conftest.err >&AS_MESSAGE_LOG_FD
1241 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1242 lt_cv_ld_force_load=yes
1243 else
1244 cat conftest.err >&AS_MESSAGE_LOG_FD
1245 fi
1246 rm -f conftest.err libconftest.a conftest conftest.c
1247 rm -rf conftest.dSYM
1248 ])
1249 case $host_os in
1250 rhapsody* | darwin1.[[012]])
1251 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1252 darwin1.*)
1253 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1254 darwin*) # darwin 5.x on
1255 # if running on 10.5 or later, the deployment target defaults
1256 # to the OS version, if on x86, and 10.4, the deployment
1257 # target defaults to 10.4. Don't you love it?
1258 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1259 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1260 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1261 10.[[012]]*)
1262 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1263 10.*)
1264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1265 esac
1266 ;;
1267 esac
1268 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1269 _lt_dar_single_mod='$single_module'
1270 fi
1271 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1272 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1273 else
1274 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1275 fi
1276 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1277 _lt_dsymutil='~$DSYMUTIL $lib || :'
1278 else
1279 _lt_dsymutil=
1280 fi
1281 ;;
1282 esac
1283 ])
1284
1285
1286 # _LT_DARWIN_LINKER_FEATURES([TAG])
1287 # ---------------------------------
1288 # Checks for linker and compiler features on darwin
1289 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1290 [
1291 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1292 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1293 _LT_TAGVAR(hardcode_direct, $1)=no
1294 _LT_TAGVAR(hardcode_automatic, $1)=yes
1295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1296 if test "$lt_cv_ld_force_load" = "yes"; then
1297 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1298 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1299 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1300 else
1301 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1302 fi
1303 _LT_TAGVAR(link_all_deplibs, $1)=yes
1304 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1305 case $cc_basename in
1306 ifort*) _lt_dar_can_shared=yes ;;
1307 *) _lt_dar_can_shared=$GCC ;;
1308 esac
1309 if test "$_lt_dar_can_shared" = "yes"; then
1310 output_verbose_link_cmd=func_echo_all
1311 _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}"
1312 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1313 _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}"
1314 _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}"
1315 m4_if([$1], [CXX],
1316 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1317 _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}"
1318 _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}"
1319 fi
1320 ],[])
1321 else
1322 _LT_TAGVAR(ld_shlibs, $1)=no
1323 fi
1324 ])
1325
1326 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1327 # ----------------------------------
1328 # Links a minimal program and checks the executable
1329 # for the system default hardcoded library path. In most cases,
1330 # this is /usr/lib:/lib, but when the MPI compilers are used
1331 # the location of the communication and MPI libs are included too.
1332 # If we don't find anything, use the default library path according
1333 # to the aix ld manual.
1334 # Store the results from the different compilers for each TAGNAME.
1335 # Allow to override them for all tags through lt_cv_aix_libpath.
1336 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1337 [m4_require([_LT_DECL_SED])dnl
1338 if test "${lt_cv_aix_libpath+set}" = set; then
1339 aix_libpath=$lt_cv_aix_libpath
1340 else
1341 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1342 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1343 lt_aix_libpath_sed='[
1344 /Import File Strings/,/^$/ {
1345 /^0/ {
1346 s/^0 *\([^ ]*\) *$/\1/
1347 p
1348 }
1349 }]'
1350 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1351 # Check for a 64-bit object if we didn't find anything.
1352 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1353 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1354 fi],[])
1355 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1356 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1357 fi
1358 ])
1359 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1360 fi
1361 ])# _LT_SYS_MODULE_PATH_AIX
1362
1363
1364 # _LT_SHELL_INIT(ARG)
1365 # -------------------
1366 m4_define([_LT_SHELL_INIT],
1367 [m4_divert_text([M4SH-INIT], [$1
1368 ])])# _LT_SHELL_INIT
1369
1370
1371
1372 # _LT_PROG_ECHO_BACKSLASH
1373 # -----------------------
1374 # Find how we can fake an echo command that does not interpret backslash.
1375 # In particular, with Autoconf 2.60 or later we add some code to the start
1376 # of the generated configure script which will find a shell with a builtin
1377 # printf (which we can use as an echo command).
1378 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1379 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1380 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1381 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1382
1383 AC_MSG_CHECKING([how to print strings])
1384 # Test print first, because it will be a builtin if present.
1385 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1386 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1387 ECHO='print -r --'
1388 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1389 ECHO='printf %s\n'
1390 else
1391 # Use this function as a fallback that always works.
1392 func_fallback_echo ()
1393 {
1394 eval 'cat <<_LTECHO_EOF
1395 $[]1
1396 _LTECHO_EOF'
1397 }
1398 ECHO='func_fallback_echo'
1399 fi
1400
1401 # func_echo_all arg...
1402 # Invoke $ECHO with all args, space-separated.
1403 func_echo_all ()
1404 {
1405 $ECHO "$*"
1406 }
1407
1408 case "$ECHO" in
1409 printf*) AC_MSG_RESULT([printf]) ;;
1410 print*) AC_MSG_RESULT([print -r]) ;;
1411 *) AC_MSG_RESULT([cat]) ;;
1412 esac
1413
1414 m4_ifdef([_AS_DETECT_SUGGESTED],
1415 [_AS_DETECT_SUGGESTED([
1416 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1417 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1418 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1419 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1420 PATH=/empty FPATH=/empty; export PATH FPATH
1421 test "X`printf %s $ECHO`" = "X$ECHO" \
1422 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1423
1424 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1425 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1426 ])# _LT_PROG_ECHO_BACKSLASH
1427
1428
1429 # _LT_WITH_SYSROOT
1430 # ----------------
1431 AC_DEFUN([_LT_WITH_SYSROOT],
1432 [AC_MSG_CHECKING([for sysroot])
1433 AC_ARG_WITH([sysroot],
1434 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1435 (or the compiler's sysroot if not specified).],
1436 [], [with_sysroot=no])
1437
1438 dnl lt_sysroot will always be passed unquoted. We quote it here
1439 dnl in case the user passed a directory name.
1440 lt_sysroot=
1441 case ${with_sysroot} in #(
1442 yes)
1443 if test "$GCC" = yes; then
1444 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1445 fi
1446 ;; #(
1447 /*)
1448 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1449 ;; #(
1450 no|'')
1451 ;; #(
1452 *)
1453 AC_MSG_RESULT([${with_sysroot}])
1454 AC_MSG_ERROR([The sysroot must be an absolute path.])
1455 ;;
1456 esac
1457
1458 AC_MSG_RESULT([${lt_sysroot:-no}])
1459 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1460 [dependent libraries, and in which our libraries should be installed.])])
1461
1462 # _LT_ENABLE_LOCK
1463 # ---------------
1464 m4_defun([_LT_ENABLE_LOCK],
1465 [AC_ARG_ENABLE([libtool-lock],
1466 [AS_HELP_STRING([--disable-libtool-lock],
1467 [avoid locking (might break parallel builds)])])
1468 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1469
1470 # Some flags need to be propagated to the compiler or linker for good
1471 # libtool support.
1472 case $host in
1473 ia64-*-hpux*)
1474 # Find out which ABI we are using.
1475 echo 'int i;' > conftest.$ac_ext
1476 if AC_TRY_EVAL(ac_compile); then
1477 case `/usr/bin/file conftest.$ac_objext` in
1478 *ELF-32*)
1479 HPUX_IA64_MODE="32"
1480 ;;
1481 *ELF-64*)
1482 HPUX_IA64_MODE="64"
1483 ;;
1484 esac
1485 fi
1486 rm -rf conftest*
1487 ;;
1488 *-*-irix6*)
1489 # Find out which ABI we are using.
1490 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1491 if AC_TRY_EVAL(ac_compile); then
1492 if test "$lt_cv_prog_gnu_ld" = yes; then
1493 case `/usr/bin/file conftest.$ac_objext` in
1494 *32-bit*)
1495 LD="${LD-ld} -melf32bsmip"
1496 ;;
1497 *N32*)
1498 LD="${LD-ld} -melf32bmipn32"
1499 ;;
1500 *64-bit*)
1501 LD="${LD-ld} -melf64bmip"
1502 ;;
1503 esac
1504 else
1505 case `/usr/bin/file conftest.$ac_objext` in
1506 *32-bit*)
1507 LD="${LD-ld} -32"
1508 ;;
1509 *N32*)
1510 LD="${LD-ld} -n32"
1511 ;;
1512 *64-bit*)
1513 LD="${LD-ld} -64"
1514 ;;
1515 esac
1516 fi
1517 fi
1518 rm -rf conftest*
1519 ;;
1520
1521 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1522 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1523 # Find out which ABI we are using.
1524 echo 'int i;' > conftest.$ac_ext
1525 if AC_TRY_EVAL(ac_compile); then
1526 case `/usr/bin/file conftest.o` in
1527 *32-bit*)
1528 case $host in
1529 x86_64-*kfreebsd*-gnu)
1530 LD="${LD-ld} -m elf_i386_fbsd"
1531 ;;
1532 x86_64-*linux*)
1533 LD="${LD-ld} -m elf_i386"
1534 ;;
1535 ppc64-*linux*|powerpc64-*linux*)
1536 LD="${LD-ld} -m elf32ppclinux"
1537 ;;
1538 s390x-*linux*)
1539 LD="${LD-ld} -m elf_s390"
1540 ;;
1541 sparc64-*linux*)
1542 LD="${LD-ld} -m elf32_sparc"
1543 ;;
1544 esac
1545 ;;
1546 *64-bit*)
1547 case $host in
1548 x86_64-*kfreebsd*-gnu)
1549 LD="${LD-ld} -m elf_x86_64_fbsd"
1550 ;;
1551 x86_64-*linux*)
1552 LD="${LD-ld} -m elf_x86_64"
1553 ;;
1554 ppc*-*linux*|powerpc*-*linux*)
1555 LD="${LD-ld} -m elf64ppc"
1556 ;;
1557 s390*-*linux*|s390*-*tpf*)
1558 LD="${LD-ld} -m elf64_s390"
1559 ;;
1560 sparc*-*linux*)
1561 LD="${LD-ld} -m elf64_sparc"
1562 ;;
1563 esac
1564 ;;
1565 esac
1566 fi
1567 rm -rf conftest*
1568 ;;
1569
1570 *-*-sco3.2v5*)
1571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1572 SAVE_CFLAGS="$CFLAGS"
1573 CFLAGS="$CFLAGS -belf"
1574 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1575 [AC_LANG_PUSH(C)
1576 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1577 AC_LANG_POP])
1578 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1579 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1580 CFLAGS="$SAVE_CFLAGS"
1581 fi
1582 ;;
1583 *-*solaris*)
1584 # Find out which ABI we are using.
1585 echo 'int i;' > conftest.$ac_ext
1586 if AC_TRY_EVAL(ac_compile); then
1587 case `/usr/bin/file conftest.o` in
1588 *64-bit*)
1589 case $lt_cv_prog_gnu_ld in
1590 yes*)
1591 case $host in
1592 i?86-*-solaris*)
1593 LD="${LD-ld} -m elf_x86_64"
1594 ;;
1595 sparc*-*-solaris*)
1596 LD="${LD-ld} -m elf64_sparc"
1597 ;;
1598 esac
1599 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1600 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1601 LD="${LD-ld}_sol2"
1602 fi
1603 ;;
1604 *)
1605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1606 LD="${LD-ld} -64"
1607 fi
1608 ;;
1609 esac
1610 ;;
1611 esac
1612 fi
1613 rm -rf conftest*
1614 ;;
1615 esac
1616
1617 need_locks="$enable_libtool_lock"
1618 ])# _LT_ENABLE_LOCK
1619
1620
1621 # _LT_PROG_AR
1622 # -----------
1623 m4_defun([_LT_PROG_AR],
1624 [AC_CHECK_TOOLS(AR, [ar], false)
1625 : ${AR=ar}
1626 : ${AR_FLAGS=cru}
1627 _LT_DECL([], [AR], [1], [The archiver])
1628 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1629
1630 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1631 [lt_cv_ar_at_file=no
1632 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1633 [echo conftest.$ac_objext > conftest.lst
1634 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1635 AC_TRY_EVAL([lt_ar_try])
1636 if test "$ac_status" -eq 0; then
1637 # Ensure the archiver fails upon bogus file names.
1638 rm -f conftest.$ac_objext libconftest.a
1639 AC_TRY_EVAL([lt_ar_try])
1640 if test "$ac_status" -ne 0; then
1641 lt_cv_ar_at_file=@
1642 fi
1643 fi
1644 rm -f conftest.* libconftest.a
1645 ])
1646 ])
1647
1648 if test "x$lt_cv_ar_at_file" = xno; then
1649 archiver_list_spec=
1650 else
1651 archiver_list_spec=$lt_cv_ar_at_file
1652 fi
1653 _LT_DECL([], [archiver_list_spec], [1],
1654 [How to feed a file listing to the archiver])
1655 ])# _LT_PROG_AR
1656
1657
1658 # _LT_CMD_OLD_ARCHIVE
1659 # -------------------
1660 m4_defun([_LT_CMD_OLD_ARCHIVE],
1661 [_LT_PROG_AR
1662
1663 AC_CHECK_TOOL(STRIP, strip, :)
1664 test -z "$STRIP" && STRIP=:
1665 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1666
1667 AC_CHECK_TOOL(RANLIB, ranlib, :)
1668 test -z "$RANLIB" && RANLIB=:
1669 _LT_DECL([], [RANLIB], [1],
1670 [Commands used to install an old-style archive])
1671
1672 # Determine commands to create old-style static archives.
1673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1674 old_postinstall_cmds='chmod 644 $oldlib'
1675 old_postuninstall_cmds=
1676
1677 if test -n "$RANLIB"; then
1678 case $host_os in
1679 openbsd*)
1680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1681 ;;
1682 *)
1683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1684 ;;
1685 esac
1686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1687 fi
1688
1689 case $host_os in
1690 darwin*)
1691 lock_old_archive_extraction=yes ;;
1692 *)
1693 lock_old_archive_extraction=no ;;
1694 esac
1695 _LT_DECL([], [old_postinstall_cmds], [2])
1696 _LT_DECL([], [old_postuninstall_cmds], [2])
1697 _LT_TAGDECL([], [old_archive_cmds], [2],
1698 [Commands used to build an old-style archive])
1699 _LT_DECL([], [lock_old_archive_extraction], [0],
1700 [Whether to use a lock for old archive extraction])
1701 ])# _LT_CMD_OLD_ARCHIVE
1702
1703
1704 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1705 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1706 # ----------------------------------------------------------------
1707 # Check whether the given compiler option works
1708 AC_DEFUN([_LT_COMPILER_OPTION],
1709 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1710 m4_require([_LT_DECL_SED])dnl
1711 AC_CACHE_CHECK([$1], [$2],
1712 [$2=no
1713 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1715 lt_compiler_flag="$3"
1716 # Insert the option either (1) after the last *FLAGS variable, or
1717 # (2) before a word containing "conftest.", or (3) at the end.
1718 # Note that $ac_compile itself does not contain backslashes and begins
1719 # with a dollar sign (not a hyphen), so the echo should work correctly.
1720 # The option is referenced via a variable to avoid confusing sed.
1721 lt_compile=`echo "$ac_compile" | $SED \
1722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1723 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1724 -e 's:$: $lt_compiler_flag:'`
1725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1726 (eval "$lt_compile" 2>conftest.err)
1727 ac_status=$?
1728 cat conftest.err >&AS_MESSAGE_LOG_FD
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1730 if (exit $ac_status) && test -s "$ac_outfile"; then
1731 # The compiler can only warn and ignore the option if not recognized
1732 # So say no if there are warnings other than the usual output.
1733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1736 $2=yes
1737 fi
1738 fi
1739 $RM conftest*
1740 ])
1741
1742 if test x"[$]$2" = xyes; then
1743 m4_if([$5], , :, [$5])
1744 else
1745 m4_if([$6], , :, [$6])
1746 fi
1747 ])# _LT_COMPILER_OPTION
1748
1749 # Old name:
1750 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1751 dnl aclocal-1.4 backwards compatibility:
1752 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1753
1754
1755 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1756 # [ACTION-SUCCESS], [ACTION-FAILURE])
1757 # ----------------------------------------------------
1758 # Check whether the given linker option works
1759 AC_DEFUN([_LT_LINKER_OPTION],
1760 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1761 m4_require([_LT_DECL_SED])dnl
1762 AC_CACHE_CHECK([$1], [$2],
1763 [$2=no
1764 save_LDFLAGS="$LDFLAGS"
1765 LDFLAGS="$LDFLAGS $3"
1766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1768 # The linker can only warn and ignore the option if not recognized
1769 # So say no if there are warnings
1770 if test -s conftest.err; then
1771 # Append any errors to the config.log.
1772 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1773 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1775 if diff conftest.exp conftest.er2 >/dev/null; then
1776 $2=yes
1777 fi
1778 else
1779 $2=yes
1780 fi
1781 fi
1782 $RM -r conftest*
1783 LDFLAGS="$save_LDFLAGS"
1784 ])
1785
1786 if test x"[$]$2" = xyes; then
1787 m4_if([$4], , :, [$4])
1788 else
1789 m4_if([$5], , :, [$5])
1790 fi
1791 ])# _LT_LINKER_OPTION
1792
1793 # Old name:
1794 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1795 dnl aclocal-1.4 backwards compatibility:
1796 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1797
1798
1799 # LT_CMD_MAX_LEN
1800 #---------------
1801 AC_DEFUN([LT_CMD_MAX_LEN],
1802 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1803 # find the maximum length of command line arguments
1804 AC_MSG_CHECKING([the maximum length of command line arguments])
1805 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1806 i=0
1807 teststring="ABCD"
1808
1809 case $build_os in
1810 msdosdjgpp*)
1811 # On DJGPP, this test can blow up pretty badly due to problems in libc
1812 # (any single argument exceeding 2000 bytes causes a buffer overrun
1813 # during glob expansion). Even if it were fixed, the result of this
1814 # check would be larger than it should be.
1815 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1816 ;;
1817
1818 gnu*)
1819 # Under GNU Hurd, this test is not required because there is
1820 # no limit to the length of command line arguments.
1821 # Libtool will interpret -1 as no limit whatsoever
1822 lt_cv_sys_max_cmd_len=-1;
1823 ;;
1824
1825 cygwin* | mingw* | cegcc*)
1826 # On Win9x/ME, this test blows up -- it succeeds, but takes
1827 # about 5 minutes as the teststring grows exponentially.
1828 # Worse, since 9x/ME are not pre-emptively multitasking,
1829 # you end up with a "frozen" computer, even though with patience
1830 # the test eventually succeeds (with a max line length of 256k).
1831 # Instead, let's just punt: use the minimum linelength reported by
1832 # all of the supported platforms: 8192 (on NT/2K/XP).
1833 lt_cv_sys_max_cmd_len=8192;
1834 ;;
1835
1836 mint*)
1837 # On MiNT this can take a long time and run out of memory.
1838 lt_cv_sys_max_cmd_len=8192;
1839 ;;
1840
1841 amigaos*)
1842 # On AmigaOS with pdksh, this test takes hours, literally.
1843 # So we just punt and use a minimum line length of 8192.
1844 lt_cv_sys_max_cmd_len=8192;
1845 ;;
1846
1847 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1848 # This has been around since 386BSD, at least. Likely further.
1849 if test -x /sbin/sysctl; then
1850 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1851 elif test -x /usr/sbin/sysctl; then
1852 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1853 else
1854 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1855 fi
1856 # And add a safety zone
1857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1859 ;;
1860
1861 interix*)
1862 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1863 lt_cv_sys_max_cmd_len=196608
1864 ;;
1865
1866 os2*)
1867 # The test takes a long time on OS/2.
1868 lt_cv_sys_max_cmd_len=8192
1869 ;;
1870
1871 osf*)
1872 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1873 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1874 # nice to cause kernel panics so lets avoid the loop below.
1875 # First set a reasonable default.
1876 lt_cv_sys_max_cmd_len=16384
1877 #
1878 if test -x /sbin/sysconfig; then
1879 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1880 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1881 esac
1882 fi
1883 ;;
1884 sco3.2v5*)
1885 lt_cv_sys_max_cmd_len=102400
1886 ;;
1887 sysv5* | sco5v6* | sysv4.2uw2*)
1888 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1889 if test -n "$kargmax"; then
1890 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1891 else
1892 lt_cv_sys_max_cmd_len=32768
1893 fi
1894 ;;
1895 *)
1896 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1897 if test -n "$lt_cv_sys_max_cmd_len"; then
1898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1900 else
1901 # Make teststring a little bigger before we do anything with it.
1902 # a 1K string should be a reasonable start.
1903 for i in 1 2 3 4 5 6 7 8 ; do
1904 teststring=$teststring$teststring
1905 done
1906 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1907 # If test is not a shell built-in, we'll probably end up computing a
1908 # maximum length that is only half of the actual maximum length, but
1909 # we can't tell.
1910 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1911 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1912 test $i != 17 # 1/2 MB should be enough
1913 do
1914 i=`expr $i + 1`
1915 teststring=$teststring$teststring
1916 done
1917 # Only check the string length outside the loop.
1918 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1919 teststring=
1920 # Add a significant safety factor because C++ compilers can tack on
1921 # massive amounts of additional arguments before passing them to the
1922 # linker. It appears as though 1/2 is a usable value.
1923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1924 fi
1925 ;;
1926 esac
1927 ])
1928 if test -n $lt_cv_sys_max_cmd_len ; then
1929 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1930 else
1931 AC_MSG_RESULT(none)
1932 fi
1933 max_cmd_len=$lt_cv_sys_max_cmd_len
1934 _LT_DECL([], [max_cmd_len], [0],
1935 [What is the maximum length of a command?])
1936 ])# LT_CMD_MAX_LEN
1937
1938 # Old name:
1939 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1940 dnl aclocal-1.4 backwards compatibility:
1941 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1942
1943
1944 # _LT_HEADER_DLFCN
1945 # ----------------
1946 m4_defun([_LT_HEADER_DLFCN],
1947 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1948 ])# _LT_HEADER_DLFCN
1949
1950
1951 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1952 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1953 # ----------------------------------------------------------------
1954 m4_defun([_LT_TRY_DLOPEN_SELF],
1955 [m4_require([_LT_HEADER_DLFCN])dnl
1956 if test "$cross_compiling" = yes; then :
1957 [$4]
1958 else
1959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1960 lt_status=$lt_dlunknown
1961 cat > conftest.$ac_ext <<_LT_EOF
1962 [#line $LINENO "configure"
1963 #include "confdefs.h"
1964
1965 #if HAVE_DLFCN_H
1966 #include <dlfcn.h>
1967 #endif
1968
1969 #include <stdio.h>
1970
1971 #ifdef RTLD_GLOBAL
1972 # define LT_DLGLOBAL RTLD_GLOBAL
1973 #else
1974 # ifdef DL_GLOBAL
1975 # define LT_DLGLOBAL DL_GLOBAL
1976 # else
1977 # define LT_DLGLOBAL 0
1978 # endif
1979 #endif
1980
1981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1982 find out it does not work in some platform. */
1983 #ifndef LT_DLLAZY_OR_NOW
1984 # ifdef RTLD_LAZY
1985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1986 # else
1987 # ifdef DL_LAZY
1988 # define LT_DLLAZY_OR_NOW DL_LAZY
1989 # else
1990 # ifdef RTLD_NOW
1991 # define LT_DLLAZY_OR_NOW RTLD_NOW
1992 # else
1993 # ifdef DL_NOW
1994 # define LT_DLLAZY_OR_NOW DL_NOW
1995 # else
1996 # define LT_DLLAZY_OR_NOW 0
1997 # endif
1998 # endif
1999 # endif
2000 # endif
2001 #endif
2002
2003 /* When -fvisbility=hidden is used, assume the code has been annotated
2004 correspondingly for the symbols needed. */
2005 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2006 int fnord () __attribute__((visibility("default")));
2007 #endif
2008
2009 int fnord () { return 42; }
2010 int main ()
2011 {
2012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2013 int status = $lt_dlunknown;
2014
2015 if (self)
2016 {
2017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2018 else
2019 {
2020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2021 else puts (dlerror ());
2022 }
2023 /* dlclose (self); */
2024 }
2025 else
2026 puts (dlerror ());
2027
2028 return status;
2029 }]
2030 _LT_EOF
2031 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2032 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2033 lt_status=$?
2034 case x$lt_status in
2035 x$lt_dlno_uscore) $1 ;;
2036 x$lt_dlneed_uscore) $2 ;;
2037 x$lt_dlunknown|x*) $3 ;;
2038 esac
2039 else :
2040 # compilation failed
2041 $3
2042 fi
2043 fi
2044 rm -fr conftest*
2045 ])# _LT_TRY_DLOPEN_SELF
2046
2047
2048 # LT_SYS_DLOPEN_SELF
2049 # ------------------
2050 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2051 [m4_require([_LT_HEADER_DLFCN])dnl
2052 if test "x$enable_dlopen" != xyes; then
2053 enable_dlopen=unknown
2054 enable_dlopen_self=unknown
2055 enable_dlopen_self_static=unknown
2056 else
2057 lt_cv_dlopen=no
2058 lt_cv_dlopen_libs=
2059
2060 case $host_os in
2061 beos*)
2062 lt_cv_dlopen="load_add_on"
2063 lt_cv_dlopen_libs=
2064 lt_cv_dlopen_self=yes
2065 ;;
2066
2067 mingw* | pw32* | cegcc*)
2068 lt_cv_dlopen="LoadLibrary"
2069 lt_cv_dlopen_libs=
2070 ;;
2071
2072 cygwin*)
2073 lt_cv_dlopen="dlopen"
2074 lt_cv_dlopen_libs=
2075 ;;
2076
2077 darwin*)
2078 # if libdl is installed we need to link against it
2079 AC_CHECK_LIB([dl], [dlopen],
2080 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2081 lt_cv_dlopen="dyld"
2082 lt_cv_dlopen_libs=
2083 lt_cv_dlopen_self=yes
2084 ])
2085 ;;
2086
2087 *)
2088 AC_CHECK_FUNC([shl_load],
2089 [lt_cv_dlopen="shl_load"],
2090 [AC_CHECK_LIB([dld], [shl_load],
2091 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2092 [AC_CHECK_FUNC([dlopen],
2093 [lt_cv_dlopen="dlopen"],
2094 [AC_CHECK_LIB([dl], [dlopen],
2095 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2096 [AC_CHECK_LIB([svld], [dlopen],
2097 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2098 [AC_CHECK_LIB([dld], [dld_link],
2099 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2100 ])
2101 ])
2102 ])
2103 ])
2104 ])
2105 ;;
2106 esac
2107
2108 if test "x$lt_cv_dlopen" != xno; then
2109 enable_dlopen=yes
2110 else
2111 enable_dlopen=no
2112 fi
2113
2114 case $lt_cv_dlopen in
2115 dlopen)
2116 save_CPPFLAGS="$CPPFLAGS"
2117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2118
2119 save_LDFLAGS="$LDFLAGS"
2120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2121
2122 save_LIBS="$LIBS"
2123 LIBS="$lt_cv_dlopen_libs $LIBS"
2124
2125 AC_CACHE_CHECK([whether a program can dlopen itself],
2126 lt_cv_dlopen_self, [dnl
2127 _LT_TRY_DLOPEN_SELF(
2128 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2129 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2130 ])
2131
2132 if test "x$lt_cv_dlopen_self" = xyes; then
2133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2134 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2135 lt_cv_dlopen_self_static, [dnl
2136 _LT_TRY_DLOPEN_SELF(
2137 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2138 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2139 ])
2140 fi
2141
2142 CPPFLAGS="$save_CPPFLAGS"
2143 LDFLAGS="$save_LDFLAGS"
2144 LIBS="$save_LIBS"
2145 ;;
2146 esac
2147
2148 case $lt_cv_dlopen_self in
2149 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2150 *) enable_dlopen_self=unknown ;;
2151 esac
2152
2153 case $lt_cv_dlopen_self_static in
2154 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2155 *) enable_dlopen_self_static=unknown ;;
2156 esac
2157 fi
2158 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2159 [Whether dlopen is supported])
2160 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2161 [Whether dlopen of programs is supported])
2162 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2163 [Whether dlopen of statically linked programs is supported])
2164 ])# LT_SYS_DLOPEN_SELF
2165
2166 # Old name:
2167 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2168 dnl aclocal-1.4 backwards compatibility:
2169 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2170
2171
2172 # _LT_COMPILER_C_O([TAGNAME])
2173 # ---------------------------
2174 # Check to see if options -c and -o are simultaneously supported by compiler.
2175 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2176 m4_defun([_LT_COMPILER_C_O],
2177 [m4_require([_LT_DECL_SED])dnl
2178 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2179 m4_require([_LT_TAG_COMPILER])dnl
2180 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2181 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2182 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2183 $RM -r conftest 2>/dev/null
2184 mkdir conftest
2185 cd conftest
2186 mkdir out
2187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2188
2189 lt_compiler_flag="-o out/conftest2.$ac_objext"
2190 # Insert the option either (1) after the last *FLAGS variable, or
2191 # (2) before a word containing "conftest.", or (3) at the end.
2192 # Note that $ac_compile itself does not contain backslashes and begins
2193 # with a dollar sign (not a hyphen), so the echo should work correctly.
2194 lt_compile=`echo "$ac_compile" | $SED \
2195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2196 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2197 -e 's:$: $lt_compiler_flag:'`
2198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2199 (eval "$lt_compile" 2>out/conftest.err)
2200 ac_status=$?
2201 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2204 then
2205 # The compiler can only warn and ignore the option if not recognized
2206 # So say no if there are warnings
2207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2210 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2211 fi
2212 fi
2213 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2214 $RM conftest*
2215 # SGI C++ compiler will create directory out/ii_files/ for
2216 # template instantiation
2217 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2218 $RM out/* && rmdir out
2219 cd ..
2220 $RM -r conftest
2221 $RM conftest*
2222 ])
2223 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2224 [Does compiler simultaneously support -c and -o options?])
2225 ])# _LT_COMPILER_C_O
2226
2227
2228 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2229 # ----------------------------------
2230 # Check to see if we can do hard links to lock some files if needed
2231 m4_defun([_LT_COMPILER_FILE_LOCKS],
2232 [m4_require([_LT_ENABLE_LOCK])dnl
2233 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2234 _LT_COMPILER_C_O([$1])
2235
2236 hard_links="nottested"
2237 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2238 # do not overwrite the value of need_locks provided by the user
2239 AC_MSG_CHECKING([if we can lock with hard links])
2240 hard_links=yes
2241 $RM conftest*
2242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2243 touch conftest.a
2244 ln conftest.a conftest.b 2>&5 || hard_links=no
2245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2246 AC_MSG_RESULT([$hard_links])
2247 if test "$hard_links" = no; then
2248 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2249 need_locks=warn
2250 fi
2251 else
2252 need_locks=no
2253 fi
2254 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2255 ])# _LT_COMPILER_FILE_LOCKS
2256
2257
2258 # _LT_CHECK_OBJDIR
2259 # ----------------
2260 m4_defun([_LT_CHECK_OBJDIR],
2261 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2262 [rm -f .libs 2>/dev/null
2263 mkdir .libs 2>/dev/null
2264 if test -d .libs; then
2265 lt_cv_objdir=.libs
2266 else
2267 # MS-DOS does not allow filenames that begin with a dot.
2268 lt_cv_objdir=_libs
2269 fi
2270 rmdir .libs 2>/dev/null])
2271 objdir=$lt_cv_objdir
2272 _LT_DECL([], [objdir], [0],
2273 [The name of the directory that contains temporary libtool files])dnl
2274 m4_pattern_allow([LT_OBJDIR])dnl
2275 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2276 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2277 ])# _LT_CHECK_OBJDIR
2278
2279
2280 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2281 # --------------------------------------
2282 # Check hardcoding attributes.
2283 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2284 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2285 _LT_TAGVAR(hardcode_action, $1)=
2286 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2287 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2288 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2289
2290 # We can hardcode non-existent directories.
2291 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2293 # have to relink, otherwise we might link with an installed library
2294 # when we should be linking with a yet-to-be-installed one
2295 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2296 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2297 # Linking always hardcodes the temporary library directory.
2298 _LT_TAGVAR(hardcode_action, $1)=relink
2299 else
2300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2301 _LT_TAGVAR(hardcode_action, $1)=immediate
2302 fi
2303 else
2304 # We cannot hardcode anything, or else we can only hardcode existing
2305 # directories.
2306 _LT_TAGVAR(hardcode_action, $1)=unsupported
2307 fi
2308 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2309
2310 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2311 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2312 # Fast installation is not supported
2313 enable_fast_install=no
2314 elif test "$shlibpath_overrides_runpath" = yes ||
2315 test "$enable_shared" = no; then
2316 # Fast installation is not necessary
2317 enable_fast_install=needless
2318 fi
2319 _LT_TAGDECL([], [hardcode_action], [0],
2320 [How to hardcode a shared library path into an executable])
2321 ])# _LT_LINKER_HARDCODE_LIBPATH
2322
2323
2324 # _LT_CMD_STRIPLIB
2325 # ----------------
2326 m4_defun([_LT_CMD_STRIPLIB],
2327 [m4_require([_LT_DECL_EGREP])
2328 striplib=
2329 old_striplib=
2330 AC_MSG_CHECKING([whether stripping libraries is possible])
2331 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2332 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2333 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2334 AC_MSG_RESULT([yes])
2335 else
2336 # FIXME - insert some real tests, host_os isn't really good enough
2337 case $host_os in
2338 darwin*)
2339 if test -n "$STRIP" ; then
2340 striplib="$STRIP -x"
2341 old_striplib="$STRIP -S"
2342 AC_MSG_RESULT([yes])
2343 else
2344 AC_MSG_RESULT([no])
2345 fi
2346 ;;
2347 *)
2348 AC_MSG_RESULT([no])
2349 ;;
2350 esac
2351 fi
2352 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2353 _LT_DECL([], [striplib], [1])
2354 ])# _LT_CMD_STRIPLIB
2355
2356
2357 # _LT_SYS_DYNAMIC_LINKER([TAG])
2358 # -----------------------------
2359 # PORTME Fill in your ld.so characteristics
2360 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2361 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2362 m4_require([_LT_DECL_EGREP])dnl
2363 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2364 m4_require([_LT_DECL_OBJDUMP])dnl
2365 m4_require([_LT_DECL_SED])dnl
2366 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2367 AC_MSG_CHECKING([dynamic linker characteristics])
2368 m4_if([$1],
2369 [], [
2370 if test "$GCC" = yes; then
2371 case $host_os in
2372 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2373 *) lt_awk_arg="/^libraries:/" ;;
2374 esac
2375 case $host_os in
2376 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2377 *) lt_sed_strip_eq="s,=/,/,g" ;;
2378 esac
2379 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2380 case $lt_search_path_spec in
2381 *\;*)
2382 # if the path contains ";" then we assume it to be the separator
2383 # otherwise default to the standard path separator (i.e. ":") - it is
2384 # assumed that no part of a normal pathname contains ";" but that should
2385 # okay in the real world where ";" in dirpaths is itself problematic.
2386 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2387 ;;
2388 *)
2389 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2390 ;;
2391 esac
2392 # Ok, now we have the path, separated by spaces, we can step through it
2393 # and add multilib dir if necessary.
2394 lt_tmp_lt_search_path_spec=
2395 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2396 for lt_sys_path in $lt_search_path_spec; do
2397 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2398 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2399 else
2400 test -d "$lt_sys_path" && \
2401 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2402 fi
2403 done
2404 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2405 BEGIN {RS=" "; FS="/|\n";} {
2406 lt_foo="";
2407 lt_count=0;
2408 for (lt_i = NF; lt_i > 0; lt_i--) {
2409 if ($lt_i != "" && $lt_i != ".") {
2410 if ($lt_i == "..") {
2411 lt_count++;
2412 } else {
2413 if (lt_count == 0) {
2414 lt_foo="/" $lt_i lt_foo;
2415 } else {
2416 lt_count--;
2417 }
2418 }
2419 }
2420 }
2421 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2422 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2423 }'`
2424 # AWK program above erroneously prepends '/' to C:/dos/paths
2425 # for these hosts.
2426 case $host_os in
2427 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2428 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2429 esac
2430 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2431 else
2432 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2433 fi])
2434 library_names_spec=
2435 libname_spec='lib$name'
2436 soname_spec=
2437 shrext_cmds=".so"
2438 postinstall_cmds=
2439 postuninstall_cmds=
2440 finish_cmds=
2441 finish_eval=
2442 shlibpath_var=
2443 shlibpath_overrides_runpath=unknown
2444 version_type=none
2445 dynamic_linker="$host_os ld.so"
2446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2447 need_lib_prefix=unknown
2448 hardcode_into_libs=no
2449
2450 # when you set need_version to no, make sure it does not cause -set_version
2451 # flags to be left without arguments
2452 need_version=unknown
2453
2454 case $host_os in
2455 aix3*)
2456 version_type=linux # correct to gnu/linux during the next big refactor
2457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2458 shlibpath_var=LIBPATH
2459
2460 # AIX 3 has no versioning support, so we append a major version to the name.
2461 soname_spec='${libname}${release}${shared_ext}$major'
2462 ;;
2463
2464 aix[[4-9]]*)
2465 version_type=linux # correct to gnu/linux during the next big refactor
2466 need_lib_prefix=no
2467 need_version=no
2468 hardcode_into_libs=yes
2469 if test "$host_cpu" = ia64; then
2470 # AIX 5 supports IA64
2471 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2472 shlibpath_var=LD_LIBRARY_PATH
2473 else
2474 # With GCC up to 2.95.x, collect2 would create an import file
2475 # for dependence libraries. The import file would start with
2476 # the line `#! .'. This would cause the generated library to
2477 # depend on `.', always an invalid library. This was fixed in
2478 # development snapshots of GCC prior to 3.0.
2479 case $host_os in
2480 aix4 | aix4.[[01]] | aix4.[[01]].*)
2481 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2482 echo ' yes '
2483 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2484 :
2485 else
2486 can_build_shared=no
2487 fi
2488 ;;
2489 esac
2490 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2491 # soname into executable. Probably we can add versioning support to
2492 # collect2, so additional links can be useful in future.
2493 if test "$aix_use_runtimelinking" = yes; then
2494 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2495 # instead of lib<name>.a to let people know that these are not
2496 # typical AIX shared libraries.
2497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2498 else
2499 # We preserve .a as extension for shared libraries through AIX4.2
2500 # and later when we are not doing run time linking.
2501 library_names_spec='${libname}${release}.a $libname.a'
2502 soname_spec='${libname}${release}${shared_ext}$major'
2503 fi
2504 shlibpath_var=LIBPATH
2505 fi
2506 ;;
2507
2508 amigaos*)
2509 case $host_cpu in
2510 powerpc)
2511 # Since July 2007 AmigaOS4 officially supports .so libraries.
2512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2514 ;;
2515 m68k)
2516 library_names_spec='$libname.ixlibrary $libname.a'
2517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2518 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2519 ;;
2520 esac
2521 ;;
2522
2523 beos*)
2524 library_names_spec='${libname}${shared_ext}'
2525 dynamic_linker="$host_os ld.so"
2526 shlibpath_var=LIBRARY_PATH
2527 ;;
2528
2529 bsdi[[45]]*)
2530 version_type=linux # correct to gnu/linux during the next big refactor
2531 need_version=no
2532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2533 soname_spec='${libname}${release}${shared_ext}$major'
2534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2535 shlibpath_var=LD_LIBRARY_PATH
2536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2538 # the default ld.so.conf also contains /usr/contrib/lib and
2539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2540 # libtool to hard-code these into programs
2541 ;;
2542
2543 cygwin* | mingw* | pw32* | cegcc*)
2544 version_type=windows
2545 shrext_cmds=".dll"
2546 need_version=no
2547 need_lib_prefix=no
2548
2549 case $GCC,$cc_basename in
2550 yes,*)
2551 # gcc
2552 library_names_spec='$libname.dll.a'
2553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2554 postinstall_cmds='base_file=`basename \${file}`~
2555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2556 dldir=$destdir/`dirname \$dlpath`~
2557 test -d \$dldir || mkdir -p \$dldir~
2558 $install_prog $dir/$dlname \$dldir/$dlname~
2559 chmod a+x \$dldir/$dlname~
2560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2562 fi'
2563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2564 dlpath=$dir/\$dldll~
2565 $RM \$dlpath'
2566 shlibpath_overrides_runpath=yes
2567
2568 case $host_os in
2569 cygwin*)
2570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2572 m4_if([$1], [],[
2573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2574 ;;
2575 mingw* | cegcc*)
2576 # MinGW DLLs use traditional 'lib' prefix
2577 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2578 ;;
2579 pw32*)
2580 # pw32 DLLs use 'pw' prefix rather than 'lib'
2581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2582 ;;
2583 esac
2584 dynamic_linker='Win32 ld.exe'
2585 ;;
2586
2587 *,cl*)
2588 # Native MSVC
2589 libname_spec='$name'
2590 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2591 library_names_spec='${libname}.dll.lib'
2592
2593 case $build_os in
2594 mingw*)
2595 sys_lib_search_path_spec=
2596 lt_save_ifs=$IFS
2597 IFS=';'
2598 for lt_path in $LIB
2599 do
2600 IFS=$lt_save_ifs
2601 # Let DOS variable expansion print the short 8.3 style file name.
2602 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2603 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2604 done
2605 IFS=$lt_save_ifs
2606 # Convert to MSYS style.
2607 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2608 ;;
2609 cygwin*)
2610 # Convert to unix form, then to dos form, then back to unix form
2611 # but this time dos style (no spaces!) so that the unix form looks
2612 # like /cygdrive/c/PROGRA~1:/cygdr...
2613 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2614 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2615 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2616 ;;
2617 *)
2618 sys_lib_search_path_spec="$LIB"
2619 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2620 # It is most probably a Windows format PATH.
2621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2622 else
2623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2624 fi
2625 # FIXME: find the short name or the path components, as spaces are
2626 # common. (e.g. "Program Files" -> "PROGRA~1")
2627 ;;
2628 esac
2629
2630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2631 postinstall_cmds='base_file=`basename \${file}`~
2632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2633 dldir=$destdir/`dirname \$dlpath`~
2634 test -d \$dldir || mkdir -p \$dldir~
2635 $install_prog $dir/$dlname \$dldir/$dlname'
2636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2637 dlpath=$dir/\$dldll~
2638 $RM \$dlpath'
2639 shlibpath_overrides_runpath=yes
2640 dynamic_linker='Win32 link.exe'
2641 ;;
2642
2643 *)
2644 # Assume MSVC wrapper
2645 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2646 dynamic_linker='Win32 ld.exe'
2647 ;;
2648 esac
2649 # FIXME: first we should search . and the directory the executable is in
2650 shlibpath_var=PATH
2651 ;;
2652
2653 darwin* | rhapsody*)
2654 dynamic_linker="$host_os dyld"
2655 version_type=darwin
2656 need_lib_prefix=no
2657 need_version=no
2658 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2659 soname_spec='${libname}${release}${major}$shared_ext'
2660 shlibpath_overrides_runpath=yes
2661 shlibpath_var=DYLD_LIBRARY_PATH
2662 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2663 m4_if([$1], [],[
2664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2666 ;;
2667
2668 dgux*)
2669 version_type=linux # correct to gnu/linux during the next big refactor
2670 need_lib_prefix=no
2671 need_version=no
2672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2673 soname_spec='${libname}${release}${shared_ext}$major'
2674 shlibpath_var=LD_LIBRARY_PATH
2675 ;;
2676
2677 freebsd* | dragonfly*)
2678 # DragonFly does not have aout. When/if they implement a new
2679 # versioning mechanism, adjust this.
2680 if test -x /usr/bin/objformat; then
2681 objformat=`/usr/bin/objformat`
2682 else
2683 case $host_os in
2684 freebsd[[23]].*) objformat=aout ;;
2685 *) objformat=elf ;;
2686 esac
2687 fi
2688 version_type=freebsd-$objformat
2689 case $version_type in
2690 freebsd-elf*)
2691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2692 need_version=no
2693 need_lib_prefix=no
2694 ;;
2695 freebsd-*)
2696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2697 need_version=yes
2698 ;;
2699 esac
2700 shlibpath_var=LD_LIBRARY_PATH
2701 case $host_os in
2702 freebsd2.*)
2703 shlibpath_overrides_runpath=yes
2704 ;;
2705 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2706 shlibpath_overrides_runpath=yes
2707 hardcode_into_libs=yes
2708 ;;
2709 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2710 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2711 shlibpath_overrides_runpath=no
2712 hardcode_into_libs=yes
2713 ;;
2714 *) # from 4.6 on, and DragonFly
2715 shlibpath_overrides_runpath=yes
2716 hardcode_into_libs=yes
2717 ;;
2718 esac
2719 ;;
2720
2721 haiku*)
2722 version_type=linux # correct to gnu/linux during the next big refactor
2723 need_lib_prefix=no
2724 need_version=no
2725 dynamic_linker="$host_os runtime_loader"
2726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2727 soname_spec='${libname}${release}${shared_ext}$major'
2728 shlibpath_var=LIBRARY_PATH
2729 shlibpath_overrides_runpath=yes
2730 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2731 hardcode_into_libs=yes
2732 ;;
2733
2734 hpux9* | hpux10* | hpux11*)
2735 # Give a soname corresponding to the major version so that dld.sl refuses to
2736 # link against other versions.
2737 version_type=sunos
2738 need_lib_prefix=no
2739 need_version=no
2740 case $host_cpu in
2741 ia64*)
2742 shrext_cmds='.so'
2743 hardcode_into_libs=yes
2744 dynamic_linker="$host_os dld.so"
2745 shlibpath_var=LD_LIBRARY_PATH
2746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2748 soname_spec='${libname}${release}${shared_ext}$major'
2749 if test "X$HPUX_IA64_MODE" = X32; then
2750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2751 else
2752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2753 fi
2754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2755 ;;
2756 hppa*64*)
2757 shrext_cmds='.sl'
2758 hardcode_into_libs=yes
2759 dynamic_linker="$host_os dld.sl"
2760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2763 soname_spec='${libname}${release}${shared_ext}$major'
2764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2766 ;;
2767 *)
2768 shrext_cmds='.sl'
2769 dynamic_linker="$host_os dld.sl"
2770 shlibpath_var=SHLIB_PATH
2771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2773 soname_spec='${libname}${release}${shared_ext}$major'
2774 ;;
2775 esac
2776 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2777 postinstall_cmds='chmod 555 $lib'
2778 # or fails outright, so override atomically:
2779 install_override_mode=555
2780 ;;
2781
2782 interix[[3-9]]*)
2783 version_type=linux # correct to gnu/linux during the next big refactor
2784 need_lib_prefix=no
2785 need_version=no
2786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2787 soname_spec='${libname}${release}${shared_ext}$major'
2788 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2789 shlibpath_var=LD_LIBRARY_PATH
2790 shlibpath_overrides_runpath=no
2791 hardcode_into_libs=yes
2792 ;;
2793
2794 irix5* | irix6* | nonstopux*)
2795 case $host_os in
2796 nonstopux*) version_type=nonstopux ;;
2797 *)
2798 if test "$lt_cv_prog_gnu_ld" = yes; then
2799 version_type=linux # correct to gnu/linux during the next big refactor
2800 else
2801 version_type=irix
2802 fi ;;
2803 esac
2804 need_lib_prefix=no
2805 need_version=no
2806 soname_spec='${libname}${release}${shared_ext}$major'
2807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2808 case $host_os in
2809 irix5* | nonstopux*)
2810 libsuff= shlibsuff=
2811 ;;
2812 *)
2813 case $LD in # libtool.m4 will add one of these switches to LD
2814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2815 libsuff= shlibsuff= libmagic=32-bit;;
2816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2817 libsuff=32 shlibsuff=N32 libmagic=N32;;
2818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2820 *) libsuff= shlibsuff= libmagic=never-match;;
2821 esac
2822 ;;
2823 esac
2824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2825 shlibpath_overrides_runpath=no
2826 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2827 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2828 hardcode_into_libs=yes
2829 ;;
2830
2831 # No shared lib support for Linux oldld, aout, or coff.
2832 linux*oldld* | linux*aout* | linux*coff*)
2833 dynamic_linker=no
2834 ;;
2835
2836 # This must be glibc/ELF.
2837 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2838 version_type=linux # correct to gnu/linux during the next big refactor
2839 need_lib_prefix=no
2840 need_version=no
2841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2842 soname_spec='${libname}${release}${shared_ext}$major'
2843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2844 shlibpath_var=LD_LIBRARY_PATH
2845 shlibpath_overrides_runpath=no
2846
2847 # Some binutils ld are patched to set DT_RUNPATH
2848 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2849 [lt_cv_shlibpath_overrides_runpath=no
2850 save_LDFLAGS=$LDFLAGS
2851 save_libdir=$libdir
2852 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2853 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2854 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2855 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2856 [lt_cv_shlibpath_overrides_runpath=yes])])
2857 LDFLAGS=$save_LDFLAGS
2858 libdir=$save_libdir
2859 ])
2860 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2861
2862 # This implies no fast_install, which is unacceptable.
2863 # Some rework will be needed to allow for fast_install
2864 # before this can be enabled.
2865 hardcode_into_libs=yes
2866
2867 # Append ld.so.conf contents to the search path
2868 if test -f /etc/ld.so.conf; then
2869 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2871 fi
2872
2873 # We used to test for /lib/ld.so.1 and disable shared libraries on
2874 # powerpc, because MkLinux only supported shared libraries with the
2875 # GNU dynamic linker. Since this was broken with cross compilers,
2876 # most powerpc-linux boxes support dynamic linking these days and
2877 # people can always --disable-shared, the test was removed, and we
2878 # assume the GNU/Linux dynamic linker is in use.
2879 dynamic_linker='GNU/Linux ld.so'
2880 ;;
2881
2882 netbsdelf*-gnu)
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 shlibpath_overrides_runpath=no
2890 hardcode_into_libs=yes
2891 dynamic_linker='NetBSD ld.elf_so'
2892 ;;
2893
2894 netbsd*)
2895 version_type=sunos
2896 need_lib_prefix=no
2897 need_version=no
2898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2901 dynamic_linker='NetBSD (a.out) ld.so'
2902 else
2903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2904 soname_spec='${libname}${release}${shared_ext}$major'
2905 dynamic_linker='NetBSD ld.elf_so'
2906 fi
2907 shlibpath_var=LD_LIBRARY_PATH
2908 shlibpath_overrides_runpath=yes
2909 hardcode_into_libs=yes
2910 ;;
2911
2912 newsos6)
2913 version_type=linux # correct to gnu/linux during the next big refactor
2914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2915 shlibpath_var=LD_LIBRARY_PATH
2916 shlibpath_overrides_runpath=yes
2917 ;;
2918
2919 *nto* | *qnx*)
2920 version_type=qnx
2921 need_lib_prefix=no
2922 need_version=no
2923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2924 soname_spec='${libname}${release}${shared_ext}$major'
2925 shlibpath_var=LD_LIBRARY_PATH
2926 shlibpath_overrides_runpath=no
2927 hardcode_into_libs=yes
2928 dynamic_linker='ldqnx.so'
2929 ;;
2930
2931 openbsd*)
2932 version_type=sunos
2933 sys_lib_dlsearch_path_spec="/usr/lib"
2934 need_lib_prefix=no
2935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2936 case $host_os in
2937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2938 *) need_version=no ;;
2939 esac
2940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2942 shlibpath_var=LD_LIBRARY_PATH
2943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2944 case $host_os in
2945 openbsd2.[[89]] | openbsd2.[[89]].*)
2946 shlibpath_overrides_runpath=no
2947 ;;
2948 *)
2949 shlibpath_overrides_runpath=yes
2950 ;;
2951 esac
2952 else
2953 shlibpath_overrides_runpath=yes
2954 fi
2955 ;;
2956
2957 os2*)
2958 libname_spec='$name'
2959 shrext_cmds=".dll"
2960 need_lib_prefix=no
2961 library_names_spec='$libname${shared_ext} $libname.a'
2962 dynamic_linker='OS/2 ld.exe'
2963 shlibpath_var=LIBPATH
2964 ;;
2965
2966 osf3* | osf4* | osf5*)
2967 version_type=osf
2968 need_lib_prefix=no
2969 need_version=no
2970 soname_spec='${libname}${release}${shared_ext}$major'
2971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2972 shlibpath_var=LD_LIBRARY_PATH
2973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2975 ;;
2976
2977 rdos*)
2978 dynamic_linker=no
2979 ;;
2980
2981 solaris*)
2982 version_type=linux # correct to gnu/linux during the next big refactor
2983 need_lib_prefix=no
2984 need_version=no
2985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2986 soname_spec='${libname}${release}${shared_ext}$major'
2987 shlibpath_var=LD_LIBRARY_PATH
2988 shlibpath_overrides_runpath=yes
2989 hardcode_into_libs=yes
2990 # ldd complains unless libraries are executable
2991 postinstall_cmds='chmod +x $lib'
2992 ;;
2993
2994 sunos4*)
2995 version_type=sunos
2996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2998 shlibpath_var=LD_LIBRARY_PATH
2999 shlibpath_overrides_runpath=yes
3000 if test "$with_gnu_ld" = yes; then
3001 need_lib_prefix=no
3002 fi
3003 need_version=yes
3004 ;;
3005
3006 sysv4 | sysv4.3*)
3007 version_type=linux # correct to gnu/linux during the next big refactor
3008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3009 soname_spec='${libname}${release}${shared_ext}$major'
3010 shlibpath_var=LD_LIBRARY_PATH
3011 case $host_vendor in
3012 sni)
3013 shlibpath_overrides_runpath=no
3014 need_lib_prefix=no
3015 runpath_var=LD_RUN_PATH
3016 ;;
3017 siemens)
3018 need_lib_prefix=no
3019 ;;
3020 motorola)
3021 need_lib_prefix=no
3022 need_version=no
3023 shlibpath_overrides_runpath=no
3024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3025 ;;
3026 esac
3027 ;;
3028
3029 sysv4*MP*)
3030 if test -d /usr/nec ;then
3031 version_type=linux # correct to gnu/linux during the next big refactor
3032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3033 soname_spec='$libname${shared_ext}.$major'
3034 shlibpath_var=LD_LIBRARY_PATH
3035 fi
3036 ;;
3037
3038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3039 version_type=freebsd-elf
3040 need_lib_prefix=no
3041 need_version=no
3042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3043 soname_spec='${libname}${release}${shared_ext}$major'
3044 shlibpath_var=LD_LIBRARY_PATH
3045 shlibpath_overrides_runpath=yes
3046 hardcode_into_libs=yes
3047 if test "$with_gnu_ld" = yes; then
3048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3049 else
3050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3051 case $host_os in
3052 sco3.2v5*)
3053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3054 ;;
3055 esac
3056 fi
3057 sys_lib_dlsearch_path_spec='/usr/lib'
3058 ;;
3059
3060 tpf*)
3061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3062 version_type=linux # correct to gnu/linux during the next big refactor
3063 need_lib_prefix=no
3064 need_version=no
3065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3066 shlibpath_var=LD_LIBRARY_PATH
3067 shlibpath_overrides_runpath=no
3068 hardcode_into_libs=yes
3069 ;;
3070
3071 uts4*)
3072 version_type=linux # correct to gnu/linux during the next big refactor
3073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3074 soname_spec='${libname}${release}${shared_ext}$major'
3075 shlibpath_var=LD_LIBRARY_PATH
3076 ;;
3077
3078 *)
3079 dynamic_linker=no
3080 ;;
3081 esac
3082 AC_MSG_RESULT([$dynamic_linker])
3083 test "$dynamic_linker" = no && can_build_shared=no
3084
3085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3086 if test "$GCC" = yes; then
3087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3088 fi
3089
3090 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3091 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3092 fi
3093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3094 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3095 fi
3096
3097 _LT_DECL([], [variables_saved_for_relink], [1],
3098 [Variables whose values should be saved in libtool wrapper scripts and
3099 restored at link time])
3100 _LT_DECL([], [need_lib_prefix], [0],
3101 [Do we need the "lib" prefix for modules?])
3102 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3103 _LT_DECL([], [version_type], [0], [Library versioning type])
3104 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3105 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3106 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3107 [Is shlibpath searched before the hard-coded library search path?])
3108 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3109 _LT_DECL([], [library_names_spec], [1],
3110 [[List of archive names. First name is the real one, the rest are links.
3111 The last name is the one that the linker finds with -lNAME]])
3112 _LT_DECL([], [soname_spec], [1],
3113 [[The coded name of the library, if different from the real name]])
3114 _LT_DECL([], [install_override_mode], [1],
3115 [Permission mode override for installation of shared libraries])
3116 _LT_DECL([], [postinstall_cmds], [2],
3117 [Command to use after installation of a shared archive])
3118 _LT_DECL([], [postuninstall_cmds], [2],
3119 [Command to use after uninstallation of a shared archive])
3120 _LT_DECL([], [finish_cmds], [2],
3121 [Commands used to finish a libtool library installation in a directory])
3122 _LT_DECL([], [finish_eval], [1],
3123 [[As "finish_cmds", except a single script fragment to be evaled but
3124 not shown]])
3125 _LT_DECL([], [hardcode_into_libs], [0],
3126 [Whether we should hardcode library paths into libraries])
3127 _LT_DECL([], [sys_lib_search_path_spec], [2],
3128 [Compile-time system search path for libraries])
3129 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3130 [Run-time system search path for libraries])
3131 ])# _LT_SYS_DYNAMIC_LINKER
3132
3133
3134 # _LT_PATH_TOOL_PREFIX(TOOL)
3135 # --------------------------
3136 # find a file program which can recognize shared library
3137 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3138 [m4_require([_LT_DECL_EGREP])dnl
3139 AC_MSG_CHECKING([for $1])
3140 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3141 [case $MAGIC_CMD in
3142 [[\\/*] | ?:[\\/]*])
3143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3144 ;;
3145 *)
3146 lt_save_MAGIC_CMD="$MAGIC_CMD"
3147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3148 dnl $ac_dummy forces splitting on constant user-supplied paths.
3149 dnl POSIX.2 word splitting is done only on the output of word expansions,
3150 dnl not every word. This closes a longstanding sh security hole.
3151 ac_dummy="m4_if([$2], , $PATH, [$2])"
3152 for ac_dir in $ac_dummy; do
3153 IFS="$lt_save_ifs"
3154 test -z "$ac_dir" && ac_dir=.
3155 if test -f $ac_dir/$1; then
3156 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3157 if test -n "$file_magic_test_file"; then
3158 case $deplibs_check_method in
3159 "file_magic "*)
3160 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3162 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3163 $EGREP "$file_magic_regex" > /dev/null; then
3164 :
3165 else
3166 cat <<_LT_EOF 1>&2
3167
3168 *** Warning: the command libtool uses to detect shared libraries,
3169 *** $file_magic_cmd, produces output that libtool cannot recognize.
3170 *** The result is that libtool may fail to recognize shared libraries
3171 *** as such. This will affect the creation of libtool libraries that
3172 *** depend on shared libraries, but programs linked with such libtool
3173 *** libraries will work regardless of this problem. Nevertheless, you
3174 *** may want to report the problem to your system manager and/or to
3175 *** bug-libtool@gnu.org
3176
3177 _LT_EOF
3178 fi ;;
3179 esac
3180 fi
3181 break
3182 fi
3183 done
3184 IFS="$lt_save_ifs"
3185 MAGIC_CMD="$lt_save_MAGIC_CMD"
3186 ;;
3187 esac])
3188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3189 if test -n "$MAGIC_CMD"; then
3190 AC_MSG_RESULT($MAGIC_CMD)
3191 else
3192 AC_MSG_RESULT(no)
3193 fi
3194 _LT_DECL([], [MAGIC_CMD], [0],
3195 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3196 ])# _LT_PATH_TOOL_PREFIX
3197
3198 # Old name:
3199 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3200 dnl aclocal-1.4 backwards compatibility:
3201 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3202
3203
3204 # _LT_PATH_MAGIC
3205 # --------------
3206 # find a file program which can recognize a shared library
3207 m4_defun([_LT_PATH_MAGIC],
3208 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3209 if test -z "$lt_cv_path_MAGIC_CMD"; then
3210 if test -n "$ac_tool_prefix"; then
3211 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3212 else
3213 MAGIC_CMD=:
3214 fi
3215 fi
3216 ])# _LT_PATH_MAGIC
3217
3218
3219 # LT_PATH_LD
3220 # ----------
3221 # find the pathname to the GNU or non-GNU linker
3222 AC_DEFUN([LT_PATH_LD],
3223 [AC_REQUIRE([AC_PROG_CC])dnl
3224 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3225 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3226 m4_require([_LT_DECL_SED])dnl
3227 m4_require([_LT_DECL_EGREP])dnl
3228 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3229
3230 AC_ARG_WITH([gnu-ld],
3231 [AS_HELP_STRING([--with-gnu-ld],
3232 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3233 [test "$withval" = no || with_gnu_ld=yes],
3234 [with_gnu_ld=no])dnl
3235
3236 ac_prog=ld
3237 if test "$GCC" = yes; then
3238 # Check if gcc -print-prog-name=ld gives a path.
3239 AC_MSG_CHECKING([for ld used by $CC])
3240 case $host in
3241 *-*-mingw*)
3242 # gcc leaves a trailing carriage return which upsets mingw
3243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3244 *)
3245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3246 esac
3247 case $ac_prog in
3248 # Accept absolute paths.
3249 [[\\/]]* | ?:[[\\/]]*)
3250 re_direlt='/[[^/]][[^/]]*/\.\./'
3251 # Canonicalize the pathname of ld
3252 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3253 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3254 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3255 done
3256 test -z "$LD" && LD="$ac_prog"
3257 ;;
3258 "")
3259 # If it fails, then pretend we aren't using GCC.
3260 ac_prog=ld
3261 ;;
3262 *)
3263 # If it is relative, then search for the first ld in PATH.
3264 with_gnu_ld=unknown
3265 ;;
3266 esac
3267 elif test "$with_gnu_ld" = yes; then
3268 AC_MSG_CHECKING([for GNU ld])
3269 else
3270 AC_MSG_CHECKING([for non-GNU ld])
3271 fi
3272 AC_CACHE_VAL(lt_cv_path_LD,
3273 [if test -z "$LD"; then
3274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3275 for ac_dir in $PATH; do
3276 IFS="$lt_save_ifs"
3277 test -z "$ac_dir" && ac_dir=.
3278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3279 lt_cv_path_LD="$ac_dir/$ac_prog"
3280 # Check to see if the program is GNU ld. I'd rather use --version,
3281 # but apparently some variants of GNU ld only accept -v.
3282 # Break only if it was the GNU/non-GNU ld that we prefer.
3283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3284 *GNU* | *'with BFD'*)
3285 test "$with_gnu_ld" != no && break
3286 ;;
3287 *)
3288 test "$with_gnu_ld" != yes && break
3289 ;;
3290 esac
3291 fi
3292 done
3293 IFS="$lt_save_ifs"
3294 else
3295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3296 fi])
3297 LD="$lt_cv_path_LD"
3298 if test -n "$LD"; then
3299 AC_MSG_RESULT($LD)
3300 else
3301 AC_MSG_RESULT(no)
3302 fi
3303 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3304 _LT_PATH_LD_GNU
3305 AC_SUBST([LD])
3306
3307 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3308 ])# LT_PATH_LD
3309
3310 # Old names:
3311 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3312 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3313 dnl aclocal-1.4 backwards compatibility:
3314 dnl AC_DEFUN([AM_PROG_LD], [])
3315 dnl AC_DEFUN([AC_PROG_LD], [])
3316
3317
3318 # _LT_PATH_LD_GNU
3319 #- --------------
3320 m4_defun([_LT_PATH_LD_GNU],
3321 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3322 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3323 case `$LD -v 2>&1 </dev/null` in
3324 *GNU* | *'with BFD'*)
3325 lt_cv_prog_gnu_ld=yes
3326 ;;
3327 *)
3328 lt_cv_prog_gnu_ld=no
3329 ;;
3330 esac])
3331 with_gnu_ld=$lt_cv_prog_gnu_ld
3332 ])# _LT_PATH_LD_GNU
3333
3334
3335 # _LT_CMD_RELOAD
3336 # --------------
3337 # find reload flag for linker
3338 # -- PORTME Some linkers may need a different reload flag.
3339 m4_defun([_LT_CMD_RELOAD],
3340 [AC_CACHE_CHECK([for $LD option to reload object files],
3341 lt_cv_ld_reload_flag,
3342 [lt_cv_ld_reload_flag='-r'])
3343 reload_flag=$lt_cv_ld_reload_flag
3344 case $reload_flag in
3345 "" | " "*) ;;
3346 *) reload_flag=" $reload_flag" ;;
3347 esac
3348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3349 case $host_os in
3350 cygwin* | mingw* | pw32* | cegcc*)
3351 if test "$GCC" != yes; then
3352 reload_cmds=false
3353 fi
3354 ;;
3355 darwin*)
3356 if test "$GCC" = yes; then
3357 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3358 else
3359 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3360 fi
3361 ;;
3362 esac
3363 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3364 _LT_TAGDECL([], [reload_cmds], [2])dnl
3365 ])# _LT_CMD_RELOAD
3366
3367
3368 # _LT_CHECK_MAGIC_METHOD
3369 # ----------------------
3370 # how to check for library dependencies
3371 # -- PORTME fill in with the dynamic library characteristics
3372 m4_defun([_LT_CHECK_MAGIC_METHOD],
3373 [m4_require([_LT_DECL_EGREP])
3374 m4_require([_LT_DECL_OBJDUMP])
3375 AC_CACHE_CHECK([how to recognize dependent libraries],
3376 lt_cv_deplibs_check_method,
3377 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3378 lt_cv_file_magic_test_file=
3379 lt_cv_deplibs_check_method='unknown'
3380 # Need to set the preceding variable on all platforms that support
3381 # interlibrary dependencies.
3382 # 'none' -- dependencies not supported.
3383 # `unknown' -- same as none, but documents that we really don't know.
3384 # 'pass_all' -- all dependencies passed with no checks.
3385 # 'test_compile' -- check by making test program.
3386 # 'file_magic [[regex]]' -- check by looking for files in library path
3387 # which responds to the $file_magic_cmd with a given extended regex.
3388 # If you have `file' or equivalent on your system and you're not sure
3389 # whether `pass_all' will *always* work, you probably want this one.
3390
3391 case $host_os in
3392 aix[[4-9]]*)
3393 lt_cv_deplibs_check_method=pass_all
3394 ;;
3395
3396 beos*)
3397 lt_cv_deplibs_check_method=pass_all
3398 ;;
3399
3400 bsdi[[45]]*)
3401 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3402 lt_cv_file_magic_cmd='/usr/bin/file -L'
3403 lt_cv_file_magic_test_file=/shlib/libc.so
3404 ;;
3405
3406 cygwin*)
3407 # func_win32_libid is a shell function defined in ltmain.sh
3408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3409 lt_cv_file_magic_cmd='func_win32_libid'
3410 ;;
3411
3412 mingw* | pw32*)
3413 # Base MSYS/MinGW do not provide the 'file' command needed by
3414 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3415 # unless we find 'file', for example because we are cross-compiling.
3416 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3417 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3418 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3419 lt_cv_file_magic_cmd='func_win32_libid'
3420 else
3421 # Keep this pattern in sync with the one in func_win32_libid.
3422 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3423 lt_cv_file_magic_cmd='$OBJDUMP -f'
3424 fi
3425 ;;
3426
3427 cegcc*)
3428 # use the weaker test based on 'objdump'. See mingw*.
3429 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3430 lt_cv_file_magic_cmd='$OBJDUMP -f'
3431 ;;
3432
3433 darwin* | rhapsody*)
3434 lt_cv_deplibs_check_method=pass_all
3435 ;;
3436
3437 freebsd* | dragonfly*)
3438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3439 case $host_cpu in
3440 i*86 )
3441 # Not sure whether the presence of OpenBSD here was a mistake.
3442 # Let's accept both of them until this is cleared up.
3443 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3444 lt_cv_file_magic_cmd=/usr/bin/file
3445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3446 ;;
3447 esac
3448 else
3449 lt_cv_deplibs_check_method=pass_all
3450 fi
3451 ;;
3452
3453 haiku*)
3454 lt_cv_deplibs_check_method=pass_all
3455 ;;
3456
3457 hpux10.20* | hpux11*)
3458 lt_cv_file_magic_cmd=/usr/bin/file
3459 case $host_cpu in
3460 ia64*)
3461 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3463 ;;
3464 hppa*64*)
3465 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3467 ;;
3468 *)
3469 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3471 ;;
3472 esac
3473 ;;
3474
3475 interix[[3-9]]*)
3476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3477 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3478 ;;
3479
3480 irix5* | irix6* | nonstopux*)
3481 case $LD in
3482 *-32|*"-32 ") libmagic=32-bit;;
3483 *-n32|*"-n32 ") libmagic=N32;;
3484 *-64|*"-64 ") libmagic=64-bit;;
3485 *) libmagic=never-match;;
3486 esac
3487 lt_cv_deplibs_check_method=pass_all
3488 ;;
3489
3490 # This must be glibc/ELF.
3491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495 netbsd* | netbsdelf*-gnu)
3496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3497 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3498 else
3499 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3500 fi
3501 ;;
3502
3503 newos6*)
3504 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3505 lt_cv_file_magic_cmd=/usr/bin/file
3506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3507 ;;
3508
3509 *nto* | *qnx*)
3510 lt_cv_deplibs_check_method=pass_all
3511 ;;
3512
3513 openbsd*)
3514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3515 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3516 else
3517 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3518 fi
3519 ;;
3520
3521 osf3* | osf4* | osf5*)
3522 lt_cv_deplibs_check_method=pass_all
3523 ;;
3524
3525 rdos*)
3526 lt_cv_deplibs_check_method=pass_all
3527 ;;
3528
3529 solaris*)
3530 lt_cv_deplibs_check_method=pass_all
3531 ;;
3532
3533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3534 lt_cv_deplibs_check_method=pass_all
3535 ;;
3536
3537 sysv4 | sysv4.3*)
3538 case $host_vendor in
3539 motorola)
3540 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]]'
3541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3542 ;;
3543 ncr)
3544 lt_cv_deplibs_check_method=pass_all
3545 ;;
3546 sequent)
3547 lt_cv_file_magic_cmd='/bin/file'
3548 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3549 ;;
3550 sni)
3551 lt_cv_file_magic_cmd='/bin/file'
3552 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3553 lt_cv_file_magic_test_file=/lib/libc.so
3554 ;;
3555 siemens)
3556 lt_cv_deplibs_check_method=pass_all
3557 ;;
3558 pc)
3559 lt_cv_deplibs_check_method=pass_all
3560 ;;
3561 esac
3562 ;;
3563
3564 tpf*)
3565 lt_cv_deplibs_check_method=pass_all
3566 ;;
3567 esac
3568 ])
3569
3570 file_magic_glob=
3571 want_nocaseglob=no
3572 if test "$build" = "$host"; then
3573 case $host_os in
3574 mingw* | pw32*)
3575 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3576 want_nocaseglob=yes
3577 else
3578 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3579 fi
3580 ;;
3581 esac
3582 fi
3583
3584 file_magic_cmd=$lt_cv_file_magic_cmd
3585 deplibs_check_method=$lt_cv_deplibs_check_method
3586 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3587
3588 _LT_DECL([], [deplibs_check_method], [1],
3589 [Method to check whether dependent libraries are shared objects])
3590 _LT_DECL([], [file_magic_cmd], [1],
3591 [Command to use when deplibs_check_method = "file_magic"])
3592 _LT_DECL([], [file_magic_glob], [1],
3593 [How to find potential files when deplibs_check_method = "file_magic"])
3594 _LT_DECL([], [want_nocaseglob], [1],
3595 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3596 ])# _LT_CHECK_MAGIC_METHOD
3597
3598
3599 # LT_PATH_NM
3600 # ----------
3601 # find the pathname to a BSD- or MS-compatible name lister
3602 AC_DEFUN([LT_PATH_NM],
3603 [AC_REQUIRE([AC_PROG_CC])dnl
3604 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3605 [if test -n "$NM"; then
3606 # Let the user override the test.
3607 lt_cv_path_NM="$NM"
3608 else
3609 lt_nm_to_check="${ac_tool_prefix}nm"
3610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3611 lt_nm_to_check="$lt_nm_to_check nm"
3612 fi
3613 for lt_tmp_nm in $lt_nm_to_check; do
3614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3616 IFS="$lt_save_ifs"
3617 test -z "$ac_dir" && ac_dir=.
3618 tmp_nm="$ac_dir/$lt_tmp_nm"
3619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620 # Check to see if the nm accepts a BSD-compat flag.
3621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622 # nm: unknown option "B" ignored
3623 # Tru64's nm complains that /dev/null is an invalid object file
3624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625 */dev/null* | *'Invalid file or object type'*)
3626 lt_cv_path_NM="$tmp_nm -B"
3627 break
3628 ;;
3629 *)
3630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631 */dev/null*)
3632 lt_cv_path_NM="$tmp_nm -p"
3633 break
3634 ;;
3635 *)
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3638 ;;
3639 esac
3640 ;;
3641 esac
3642 fi
3643 done
3644 IFS="$lt_save_ifs"
3645 done
3646 : ${lt_cv_path_NM=no}
3647 fi])
3648 if test "$lt_cv_path_NM" != "no"; then
3649 NM="$lt_cv_path_NM"
3650 else
3651 # Didn't find any BSD compatible name lister, look for dumpbin.
3652 if test -n "$DUMPBIN"; then :
3653 # Let the user override the test.
3654 else
3655 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3656 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3657 *COFF*)
3658 DUMPBIN="$DUMPBIN -symbols"
3659 ;;
3660 *)
3661 DUMPBIN=:
3662 ;;
3663 esac
3664 fi
3665 AC_SUBST([DUMPBIN])
3666 if test "$DUMPBIN" != ":"; then
3667 NM="$DUMPBIN"
3668 fi
3669 fi
3670 test -z "$NM" && NM=nm
3671 AC_SUBST([NM])
3672 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3673
3674 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3675 [lt_cv_nm_interface="BSD nm"
3676 echo "int some_variable = 0;" > conftest.$ac_ext
3677 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3678 (eval "$ac_compile" 2>conftest.err)
3679 cat conftest.err >&AS_MESSAGE_LOG_FD
3680 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3681 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3682 cat conftest.err >&AS_MESSAGE_LOG_FD
3683 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3684 cat conftest.out >&AS_MESSAGE_LOG_FD
3685 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3686 lt_cv_nm_interface="MS dumpbin"
3687 fi
3688 rm -f conftest*])
3689 ])# LT_PATH_NM
3690
3691 # Old names:
3692 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3693 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3694 dnl aclocal-1.4 backwards compatibility:
3695 dnl AC_DEFUN([AM_PROG_NM], [])
3696 dnl AC_DEFUN([AC_PROG_NM], [])
3697
3698 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3699 # --------------------------------
3700 # how to determine the name of the shared library
3701 # associated with a specific link library.
3702 # -- PORTME fill in with the dynamic library characteristics
3703 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3704 [m4_require([_LT_DECL_EGREP])
3705 m4_require([_LT_DECL_OBJDUMP])
3706 m4_require([_LT_DECL_DLLTOOL])
3707 AC_CACHE_CHECK([how to associate runtime and link libraries],
3708 lt_cv_sharedlib_from_linklib_cmd,
3709 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3710
3711 case $host_os in
3712 cygwin* | mingw* | pw32* | cegcc*)
3713 # two different shell functions defined in ltmain.sh
3714 # decide which to use based on capabilities of $DLLTOOL
3715 case `$DLLTOOL --help 2>&1` in
3716 *--identify-strict*)
3717 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3718 ;;
3719 *)
3720 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3721 ;;
3722 esac
3723 ;;
3724 *)
3725 # fallback: assume linklib IS sharedlib
3726 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3727 ;;
3728 esac
3729 ])
3730 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3731 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3732
3733 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3734 [Command to associate shared and link libraries])
3735 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3736
3737
3738 # _LT_PATH_MANIFEST_TOOL
3739 # ----------------------
3740 # locate the manifest tool
3741 m4_defun([_LT_PATH_MANIFEST_TOOL],
3742 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3743 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3744 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3745 [lt_cv_path_mainfest_tool=no
3746 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3747 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3748 cat conftest.err >&AS_MESSAGE_LOG_FD
3749 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3750 lt_cv_path_mainfest_tool=yes
3751 fi
3752 rm -f conftest*])
3753 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3754 MANIFEST_TOOL=:
3755 fi
3756 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3757 ])# _LT_PATH_MANIFEST_TOOL
3758
3759
3760 # LT_LIB_M
3761 # --------
3762 # check for math library
3763 AC_DEFUN([LT_LIB_M],
3764 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3765 LIBM=
3766 case $host in
3767 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3768 # These system don't have libm, or don't need it
3769 ;;
3770 *-ncr-sysv4.3*)
3771 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3772 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3773 ;;
3774 *)
3775 AC_CHECK_LIB(m, cos, LIBM="-lm")
3776 ;;
3777 esac
3778 AC_SUBST([LIBM])
3779 ])# LT_LIB_M
3780
3781 # Old name:
3782 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3783 dnl aclocal-1.4 backwards compatibility:
3784 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3785
3786
3787 # _LT_COMPILER_NO_RTTI([TAGNAME])
3788 # -------------------------------
3789 m4_defun([_LT_COMPILER_NO_RTTI],
3790 [m4_require([_LT_TAG_COMPILER])dnl
3791
3792 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3793
3794 if test "$GCC" = yes; then
3795 case $cc_basename in
3796 nvcc*)
3797 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3798 *)
3799 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3800 esac
3801
3802 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3803 lt_cv_prog_compiler_rtti_exceptions,
3804 [-fno-rtti -fno-exceptions], [],
3805 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3806 fi
3807 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3808 [Compiler flag to turn off builtin functions])
3809 ])# _LT_COMPILER_NO_RTTI
3810
3811
3812 # _LT_CMD_GLOBAL_SYMBOLS
3813 # ----------------------
3814 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3815 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3816 AC_REQUIRE([AC_PROG_CC])dnl
3817 AC_REQUIRE([AC_PROG_AWK])dnl
3818 AC_REQUIRE([LT_PATH_NM])dnl
3819 AC_REQUIRE([LT_PATH_LD])dnl
3820 m4_require([_LT_DECL_SED])dnl
3821 m4_require([_LT_DECL_EGREP])dnl
3822 m4_require([_LT_TAG_COMPILER])dnl
3823
3824 # Check for command to grab the raw symbol name followed by C symbol from nm.
3825 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3826 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3827 [
3828 # These are sane defaults that work on at least a few old systems.
3829 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3830
3831 # Character class describing NM global symbol codes.
3832 symcode='[[BCDEGRST]]'
3833
3834 # Regexp to match symbols that can be accessed directly from C.
3835 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3836
3837 # Define system-specific variables.
3838 case $host_os in
3839 aix*)
3840 symcode='[[BCDT]]'
3841 ;;
3842 cygwin* | mingw* | pw32* | cegcc*)
3843 symcode='[[ABCDGISTW]]'
3844 ;;
3845 hpux*)
3846 if test "$host_cpu" = ia64; then
3847 symcode='[[ABCDEGRST]]'
3848 fi
3849 ;;
3850 irix* | nonstopux*)
3851 symcode='[[BCDEGRST]]'
3852 ;;
3853 osf*)
3854 symcode='[[BCDEGQRST]]'
3855 ;;
3856 solaris*)
3857 symcode='[[BDRT]]'
3858 ;;
3859 sco3.2v5*)
3860 symcode='[[DT]]'
3861 ;;
3862 sysv4.2uw2*)
3863 symcode='[[DT]]'
3864 ;;
3865 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3866 symcode='[[ABDT]]'
3867 ;;
3868 sysv4)
3869 symcode='[[DFNSTU]]'
3870 ;;
3871 esac
3872
3873 # If we're using GNU nm, then use its standard symbol codes.
3874 case `$NM -V 2>&1` in
3875 *GNU* | *'with BFD'*)
3876 symcode='[[ABCDGIRSTW]]' ;;
3877 esac
3878
3879 # Transform an extracted symbol line into a proper C declaration.
3880 # Some systems (esp. on ia64) link data and code symbols differently,
3881 # so use this general approach.
3882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3883
3884 # Transform an extracted symbol line into symbol name and symbol address
3885 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3886 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'"
3887
3888 # Handle CRLF in mingw tool chain
3889 opt_cr=
3890 case $build_os in
3891 mingw*)
3892 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3893 ;;
3894 esac
3895
3896 # Try without a prefix underscore, then with it.
3897 for ac_symprfx in "" "_"; do
3898
3899 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3900 symxfrm="\\1 $ac_symprfx\\2 \\2"
3901
3902 # Write the raw and C identifiers.
3903 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3904 # Fake it for dumpbin and say T for any non-static function
3905 # and D for any global variable.
3906 # Also find C++ and __fastcall symbols from MSVC++,
3907 # which start with @ or ?.
3908 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3909 " {last_section=section; section=\$ 3};"\
3910 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3911 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3912 " \$ 0!~/External *\|/{next};"\
3913 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3914 " {if(hide[section]) next};"\
3915 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3916 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3917 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3918 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3919 " ' prfx=^$ac_symprfx]"
3920 else
3921 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3922 fi
3923 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3924
3925 # Check to see that the pipe works correctly.
3926 pipe_works=no
3927
3928 rm -f conftest*
3929 cat > conftest.$ac_ext <<_LT_EOF
3930 #ifdef __cplusplus
3931 extern "C" {
3932 #endif
3933 char nm_test_var;
3934 void nm_test_func(void);
3935 void nm_test_func(void){}
3936 #ifdef __cplusplus
3937 }
3938 #endif
3939 int main(){nm_test_var='a';nm_test_func();return(0);}
3940 _LT_EOF
3941
3942 if AC_TRY_EVAL(ac_compile); then
3943 # Now try to grab the symbols.
3944 nlist=conftest.nm
3945 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3946 # Try sorting and uniquifying the output.
3947 if sort "$nlist" | uniq > "$nlist"T; then
3948 mv -f "$nlist"T "$nlist"
3949 else
3950 rm -f "$nlist"T
3951 fi
3952
3953 # Make sure that we snagged all the symbols we need.
3954 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3955 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3956 cat <<_LT_EOF > conftest.$ac_ext
3957 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3958 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3959 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3960 relocations are performed -- see ld's documentation on pseudo-relocs. */
3961 # define LT@&t@_DLSYM_CONST
3962 #elif defined(__osf__)
3963 /* This system does not cope well with relocations in const data. */
3964 # define LT@&t@_DLSYM_CONST
3965 #else
3966 # define LT@&t@_DLSYM_CONST const
3967 #endif
3968
3969 #ifdef __cplusplus
3970 extern "C" {
3971 #endif
3972
3973 _LT_EOF
3974 # Now generate the symbol file.
3975 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3976
3977 cat <<_LT_EOF >> conftest.$ac_ext
3978
3979 /* The mapping between symbol names and symbols. */
3980 LT@&t@_DLSYM_CONST struct {
3981 const char *name;
3982 void *address;
3983 }
3984 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3985 {
3986 { "@PROGRAM@", (void *) 0 },
3987 _LT_EOF
3988 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3989 cat <<\_LT_EOF >> conftest.$ac_ext
3990 {0, (void *) 0}
3991 };
3992
3993 /* This works around a problem in FreeBSD linker */
3994 #ifdef FREEBSD_WORKAROUND
3995 static const void *lt_preloaded_setup() {
3996 return lt__PROGRAM__LTX_preloaded_symbols;
3997 }
3998 #endif
3999
4000 #ifdef __cplusplus
4001 }
4002 #endif
4003 _LT_EOF
4004 # Now try linking the two files.
4005 mv conftest.$ac_objext conftstm.$ac_objext
4006 lt_globsym_save_LIBS=$LIBS
4007 lt_globsym_save_CFLAGS=$CFLAGS
4008 LIBS="conftstm.$ac_objext"
4009 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4010 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4011 pipe_works=yes
4012 fi
4013 LIBS=$lt_globsym_save_LIBS
4014 CFLAGS=$lt_globsym_save_CFLAGS
4015 else
4016 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4017 fi
4018 else
4019 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4020 fi
4021 else
4022 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4023 fi
4024 else
4025 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4026 cat conftest.$ac_ext >&5
4027 fi
4028 rm -rf conftest* conftst*
4029
4030 # Do not use the global_symbol_pipe unless it works.
4031 if test "$pipe_works" = yes; then
4032 break
4033 else
4034 lt_cv_sys_global_symbol_pipe=
4035 fi
4036 done
4037 ])
4038 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4039 lt_cv_sys_global_symbol_to_cdecl=
4040 fi
4041 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4042 AC_MSG_RESULT(failed)
4043 else
4044 AC_MSG_RESULT(ok)
4045 fi
4046
4047 # Response file support.
4048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4049 nm_file_list_spec='@'
4050 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4051 nm_file_list_spec='@'
4052 fi
4053
4054 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4055 [Take the output of nm and produce a listing of raw symbols and C names])
4056 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4057 [Transform the output of nm in a proper C declaration])
4058 _LT_DECL([global_symbol_to_c_name_address],
4059 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4060 [Transform the output of nm in a C name address pair])
4061 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4062 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4063 [Transform the output of nm in a C name address pair when lib prefix is needed])
4064 _LT_DECL([], [nm_file_list_spec], [1],
4065 [Specify filename containing input files for $NM])
4066 ]) # _LT_CMD_GLOBAL_SYMBOLS
4067
4068
4069 # _LT_COMPILER_PIC([TAGNAME])
4070 # ---------------------------
4071 m4_defun([_LT_COMPILER_PIC],
4072 [m4_require([_LT_TAG_COMPILER])dnl
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4074 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4075 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4076
4077 m4_if([$1], [CXX], [
4078 # C++ specific cases for pic, static, wl, etc.
4079 if test "$GXX" = yes; then
4080 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4082
4083 case $host_os in
4084 aix*)
4085 # All AIX code is PIC.
4086 if test "$host_cpu" = ia64; then
4087 # AIX 5 now supports IA64 processor
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089 fi
4090 ;;
4091
4092 amigaos*)
4093 case $host_cpu in
4094 powerpc)
4095 # see comment about AmigaOS4 .so support
4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4097 ;;
4098 m68k)
4099 # FIXME: we need at least 68020 code to build shared libraries, but
4100 # adding the `-m68020' flag to GCC prevents building anything better,
4101 # like `-m68040'.
4102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4103 ;;
4104 esac
4105 ;;
4106
4107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4108 # PIC is the default for these OSes.
4109 ;;
4110 mingw* | cygwin* | os2* | pw32* | cegcc*)
4111 # This hack is so that the source file can tell whether it is being
4112 # built for inclusion in a dll (and should export symbols for example).
4113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4114 # (--disable-auto-import) libraries
4115 m4_if([$1], [GCJ], [],
4116 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4117 ;;
4118 darwin* | rhapsody*)
4119 # PIC is the default on this platform
4120 # Common symbols not allowed in MH_DYLIB files
4121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4122 ;;
4123 *djgpp*)
4124 # DJGPP does not support shared libraries at all
4125 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4126 ;;
4127 haiku*)
4128 # PIC is the default for Haiku.
4129 # The "-static" flag exists, but is broken.
4130 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4131 ;;
4132 interix[[3-9]]*)
4133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4134 # Instead, we relocate shared libraries at runtime.
4135 ;;
4136 sysv4*MP*)
4137 if test -d /usr/nec; then
4138 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4139 fi
4140 ;;
4141 hpux*)
4142 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4143 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4144 # sets the default TLS model and affects inlining.
4145 case $host_cpu in
4146 hppa*64*)
4147 ;;
4148 *)
4149 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4150 ;;
4151 esac
4152 ;;
4153 *qnx* | *nto*)
4154 # QNX uses GNU C++, but need to define -shared option too, otherwise
4155 # it will coredump.
4156 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4157 ;;
4158 *)
4159 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4160 ;;
4161 esac
4162 else
4163 case $host_os in
4164 aix[[4-9]]*)
4165 # All AIX code is PIC.
4166 if test "$host_cpu" = ia64; then
4167 # AIX 5 now supports IA64 processor
4168 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4169 else
4170 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4171 fi
4172 ;;
4173 chorus*)
4174 case $cc_basename in
4175 cxch68*)
4176 # Green Hills C++ Compiler
4177 # _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"
4178 ;;
4179 esac
4180 ;;
4181 mingw* | cygwin* | os2* | pw32* | cegcc*)
4182 # This hack is so that the source file can tell whether it is being
4183 # built for inclusion in a dll (and should export symbols for example).
4184 m4_if([$1], [GCJ], [],
4185 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4186 ;;
4187 dgux*)
4188 case $cc_basename in
4189 ec++*)
4190 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4191 ;;
4192 ghcx*)
4193 # Green Hills C++ Compiler
4194 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4195 ;;
4196 *)
4197 ;;
4198 esac
4199 ;;
4200 freebsd* | dragonfly*)
4201 # FreeBSD uses GNU C++
4202 ;;
4203 hpux9* | hpux10* | hpux11*)
4204 case $cc_basename in
4205 CC*)
4206 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4207 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4208 if test "$host_cpu" != ia64; then
4209 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4210 fi
4211 ;;
4212 aCC*)
4213 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4214 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4215 case $host_cpu in
4216 hppa*64*|ia64*)
4217 # +Z the default
4218 ;;
4219 *)
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4221 ;;
4222 esac
4223 ;;
4224 *)
4225 ;;
4226 esac
4227 ;;
4228 interix*)
4229 # This is c89, which is MS Visual C++ (no shared libs)
4230 # Anyone wants to do a port?
4231 ;;
4232 irix5* | irix6* | nonstopux*)
4233 case $cc_basename in
4234 CC*)
4235 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4236 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4237 # CC pic flag -KPIC is the default.
4238 ;;
4239 *)
4240 ;;
4241 esac
4242 ;;
4243 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4244 case $cc_basename in
4245 KCC*)
4246 # KAI C++ Compiler
4247 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4249 ;;
4250 ecpc* )
4251 # old Intel C++ for x86_64 which still supported -KPIC.
4252 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4253 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4255 ;;
4256 icpc* )
4257 # Intel C++, used to be incompatible with GCC.
4258 # ICC 10 doesn't accept -KPIC any more.
4259 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4260 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4261 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4262 ;;
4263 pgCC* | pgcpp*)
4264 # Portland Group C++ compiler
4265 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4266 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4267 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4268 ;;
4269 cxx*)
4270 # Compaq C++
4271 # Make sure the PIC flag is empty. It appears that all Alpha
4272 # Linux and Compaq Tru64 Unix objects are PIC.
4273 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4274 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4275 ;;
4276 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4277 # IBM XL 8.0, 9.0 on PPC and BlueGene
4278 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4280 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4281 ;;
4282 *)
4283 case `$CC -V 2>&1 | sed 5q` in
4284 *Sun\ C*)
4285 # Sun C++ 5.9
4286 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4287 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4288 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4289 ;;
4290 esac
4291 ;;
4292 esac
4293 ;;
4294 lynxos*)
4295 ;;
4296 m88k*)
4297 ;;
4298 mvs*)
4299 case $cc_basename in
4300 cxx*)
4301 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4302 ;;
4303 *)
4304 ;;
4305 esac
4306 ;;
4307 netbsd* | netbsdelf*-gnu)
4308 ;;
4309 *qnx* | *nto*)
4310 # QNX uses GNU C++, but need to define -shared option too, otherwise
4311 # it will coredump.
4312 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4313 ;;
4314 osf3* | osf4* | osf5*)
4315 case $cc_basename in
4316 KCC*)
4317 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4318 ;;
4319 RCC*)
4320 # Rational C++ 2.4.1
4321 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4322 ;;
4323 cxx*)
4324 # Digital/Compaq C++
4325 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4326 # Make sure the PIC flag is empty. It appears that all Alpha
4327 # Linux and Compaq Tru64 Unix objects are PIC.
4328 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4329 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4330 ;;
4331 *)
4332 ;;
4333 esac
4334 ;;
4335 psos*)
4336 ;;
4337 solaris*)
4338 case $cc_basename in
4339 CC* | sunCC*)
4340 # Sun C++ 4.2, 5.x and Centerline C++
4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4342 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4344 ;;
4345 gcx*)
4346 # Green Hills C++ Compiler
4347 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4348 ;;
4349 *)
4350 ;;
4351 esac
4352 ;;
4353 sunos4*)
4354 case $cc_basename in
4355 CC*)
4356 # Sun C++ 4.x
4357 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4359 ;;
4360 lcc*)
4361 # Lucid
4362 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4363 ;;
4364 *)
4365 ;;
4366 esac
4367 ;;
4368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4369 case $cc_basename in
4370 CC*)
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4372 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4374 ;;
4375 esac
4376 ;;
4377 tandem*)
4378 case $cc_basename in
4379 NCC*)
4380 # NonStop-UX NCC 3.20
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4382 ;;
4383 *)
4384 ;;
4385 esac
4386 ;;
4387 vxworks*)
4388 ;;
4389 *)
4390 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4391 ;;
4392 esac
4393 fi
4394 ],
4395 [
4396 if test "$GCC" = yes; then
4397 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4399
4400 case $host_os in
4401 aix*)
4402 # All AIX code is PIC.
4403 if test "$host_cpu" = ia64; then
4404 # AIX 5 now supports IA64 processor
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4406 fi
4407 ;;
4408
4409 amigaos*)
4410 case $host_cpu in
4411 powerpc)
4412 # see comment about AmigaOS4 .so support
4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4414 ;;
4415 m68k)
4416 # FIXME: we need at least 68020 code to build shared libraries, but
4417 # adding the `-m68020' flag to GCC prevents building anything better,
4418 # like `-m68040'.
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4420 ;;
4421 esac
4422 ;;
4423
4424 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4425 # PIC is the default for these OSes.
4426 ;;
4427
4428 mingw* | cygwin* | pw32* | os2* | cegcc*)
4429 # This hack is so that the source file can tell whether it is being
4430 # built for inclusion in a dll (and should export symbols for example).
4431 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4432 # (--disable-auto-import) libraries
4433 m4_if([$1], [GCJ], [],
4434 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4435 ;;
4436
4437 darwin* | rhapsody*)
4438 # PIC is the default on this platform
4439 # Common symbols not allowed in MH_DYLIB files
4440 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4441 ;;
4442
4443 haiku*)
4444 # PIC is the default for Haiku.
4445 # The "-static" flag exists, but is broken.
4446 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4447 ;;
4448
4449 hpux*)
4450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4452 # sets the default TLS model and affects inlining.
4453 case $host_cpu in
4454 hppa*64*)
4455 # +Z the default
4456 ;;
4457 *)
4458 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4459 ;;
4460 esac
4461 ;;
4462
4463 interix[[3-9]]*)
4464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4465 # Instead, we relocate shared libraries at runtime.
4466 ;;
4467
4468 msdosdjgpp*)
4469 # Just because we use GCC doesn't mean we suddenly get shared libraries
4470 # on systems that don't support them.
4471 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4472 enable_shared=no
4473 ;;
4474
4475 *nto* | *qnx*)
4476 # QNX uses GNU C++, but need to define -shared option too, otherwise
4477 # it will coredump.
4478 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4479 ;;
4480
4481 sysv4*MP*)
4482 if test -d /usr/nec; then
4483 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4484 fi
4485 ;;
4486
4487 *)
4488 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4489 ;;
4490 esac
4491
4492 case $cc_basename in
4493 nvcc*) # Cuda Compiler Driver 2.2
4494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4495 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4496 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4497 fi
4498 ;;
4499 esac
4500 else
4501 # PORTME Check for flag to pass linker flags through the system compiler.
4502 case $host_os in
4503 aix*)
4504 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4505 if test "$host_cpu" = ia64; then
4506 # AIX 5 now supports IA64 processor
4507 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4508 else
4509 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4510 fi
4511 ;;
4512
4513 mingw* | cygwin* | pw32* | os2* | cegcc*)
4514 # This hack is so that the source file can tell whether it is being
4515 # built for inclusion in a dll (and should export symbols for example).
4516 m4_if([$1], [GCJ], [],
4517 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4518 ;;
4519
4520 hpux9* | hpux10* | hpux11*)
4521 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4522 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4523 # not for PA HP-UX.
4524 case $host_cpu in
4525 hppa*64*|ia64*)
4526 # +Z the default
4527 ;;
4528 *)
4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4530 ;;
4531 esac
4532 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4533 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4534 ;;
4535
4536 irix5* | irix6* | nonstopux*)
4537 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4538 # PIC (with -KPIC) is the default.
4539 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4540 ;;
4541
4542 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4543 case $cc_basename in
4544 # old Intel for x86_64 which still supported -KPIC.
4545 ecc*)
4546 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4547 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4548 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4549 ;;
4550 # icc used to be incompatible with GCC.
4551 # ICC 10 doesn't accept -KPIC any more.
4552 icc* | ifort*)
4553 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4554 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4555 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4556 ;;
4557 # Lahey Fortran 8.1.
4558 lf95*)
4559 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4560 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4561 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4562 ;;
4563 nagfor*)
4564 # NAG Fortran compiler
4565 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4567 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4568 ;;
4569 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4570 # Portland Group compilers (*not* the Pentium gcc compiler,
4571 # which looks to be a dead project)
4572 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4573 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4574 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4575 ;;
4576 ccc*)
4577 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4578 # All Alpha code is PIC.
4579 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4580 ;;
4581 xl* | bgxl* | bgf* | mpixl*)
4582 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4583 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4584 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4585 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4586 ;;
4587 *)
4588 case `$CC -V 2>&1 | sed 5q` in
4589 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4590 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4591 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4592 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4593 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4594 ;;
4595 *Sun\ F* | *Sun*Fortran*)
4596 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4597 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4598 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4599 ;;
4600 *Sun\ C*)
4601 # Sun C 5.9
4602 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4603 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4604 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4605 ;;
4606 *Intel*\ [[CF]]*Compiler*)
4607 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4609 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4610 ;;
4611 *Portland\ Group*)
4612 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4613 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4614 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4615 ;;
4616 esac
4617 ;;
4618 esac
4619 ;;
4620
4621 newsos6)
4622 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4623 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4624 ;;
4625
4626 *nto* | *qnx*)
4627 # QNX uses GNU C++, but need to define -shared option too, otherwise
4628 # it will coredump.
4629 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4630 ;;
4631
4632 osf3* | osf4* | osf5*)
4633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4634 # All OSF/1 code is PIC.
4635 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4636 ;;
4637
4638 rdos*)
4639 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4640 ;;
4641
4642 solaris*)
4643 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4645 case $cc_basename in
4646 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4647 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4648 *)
4649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4650 esac
4651 ;;
4652
4653 sunos4*)
4654 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4655 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4656 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4657 ;;
4658
4659 sysv4 | sysv4.2uw2* | sysv4.3*)
4660 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4662 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4663 ;;
4664
4665 sysv4*MP*)
4666 if test -d /usr/nec ;then
4667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4668 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4669 fi
4670 ;;
4671
4672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4673 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4675 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4676 ;;
4677
4678 unicos*)
4679 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4680 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4681 ;;
4682
4683 uts4*)
4684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4685 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4686 ;;
4687
4688 *)
4689 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4690 ;;
4691 esac
4692 fi
4693 ])
4694 case $host_os in
4695 # For platforms which do not support PIC, -DPIC is meaningless:
4696 *djgpp*)
4697 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4698 ;;
4699 *)
4700 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4701 ;;
4702 esac
4703
4704 AC_CACHE_CHECK([for $compiler option to produce PIC],
4705 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4706 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4707 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4708
4709 #
4710 # Check to make sure the PIC flag actually works.
4711 #
4712 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4713 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4714 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4715 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4716 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4717 "" | " "*) ;;
4718 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4719 esac],
4720 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4721 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4722 fi
4723 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4724 [Additional compiler flags for building library objects])
4725
4726 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4727 [How to pass a linker flag through the compiler])
4728 #
4729 # Check to make sure the static flag actually works.
4730 #
4731 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4732 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4733 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4734 $lt_tmp_static_flag,
4735 [],
4736 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4737 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4738 [Compiler flag to prevent dynamic linking])
4739 ])# _LT_COMPILER_PIC
4740
4741
4742 # _LT_LINKER_SHLIBS([TAGNAME])
4743 # ----------------------------
4744 # See if the linker supports building shared libraries.
4745 m4_defun([_LT_LINKER_SHLIBS],
4746 [AC_REQUIRE([LT_PATH_LD])dnl
4747 AC_REQUIRE([LT_PATH_NM])dnl
4748 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4749 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4750 m4_require([_LT_DECL_EGREP])dnl
4751 m4_require([_LT_DECL_SED])dnl
4752 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4753 m4_require([_LT_TAG_COMPILER])dnl
4754 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4755 m4_if([$1], [CXX], [
4756 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4757 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4758 case $host_os in
4759 aix[[4-9]]*)
4760 # If we're using GNU nm, then we don't want the "-C" option.
4761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4762 # Also, AIX nm treats weak defined symbols like other global defined
4763 # symbols, whereas GNU nm marks them as "W".
4764 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4765 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4766 else
4767 _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'
4768 fi
4769 ;;
4770 pw32*)
4771 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4772 ;;
4773 cygwin* | mingw* | cegcc*)
4774 case $cc_basename in
4775 cl*)
4776 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4777 ;;
4778 *)
4779 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4780 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4781 ;;
4782 esac
4783 ;;
4784 linux* | k*bsd*-gnu | gnu*)
4785 _LT_TAGVAR(link_all_deplibs, $1)=no
4786 ;;
4787 *)
4788 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4789 ;;
4790 esac
4791 ], [
4792 runpath_var=
4793 _LT_TAGVAR(allow_undefined_flag, $1)=
4794 _LT_TAGVAR(always_export_symbols, $1)=no
4795 _LT_TAGVAR(archive_cmds, $1)=
4796 _LT_TAGVAR(archive_expsym_cmds, $1)=
4797 _LT_TAGVAR(compiler_needs_object, $1)=no
4798 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4799 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4800 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4801 _LT_TAGVAR(hardcode_automatic, $1)=no
4802 _LT_TAGVAR(hardcode_direct, $1)=no
4803 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4804 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4805 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4806 _LT_TAGVAR(hardcode_minus_L, $1)=no
4807 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4808 _LT_TAGVAR(inherit_rpath, $1)=no
4809 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4810 _LT_TAGVAR(module_cmds, $1)=
4811 _LT_TAGVAR(module_expsym_cmds, $1)=
4812 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4813 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4814 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4815 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4816 # include_expsyms should be a list of space-separated symbols to be *always*
4817 # included in the symbol list
4818 _LT_TAGVAR(include_expsyms, $1)=
4819 # exclude_expsyms can be an extended regexp of symbols to exclude
4820 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4821 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4822 # as well as any symbol that contains `d'.
4823 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4824 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4825 # platforms (ab)use it in PIC code, but their linkers get confused if
4826 # the symbol is explicitly referenced. Since portable code cannot
4827 # rely on this symbol name, it's probably fine to never include it in
4828 # preloaded symbol tables.
4829 # Exclude shared library initialization/finalization symbols.
4830 dnl Note also adjust exclude_expsyms for C++ above.
4831 extract_expsyms_cmds=
4832
4833 case $host_os in
4834 cygwin* | mingw* | pw32* | cegcc*)
4835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4836 # When not using gcc, we currently assume that we are using
4837 # Microsoft Visual C++.
4838 if test "$GCC" != yes; then
4839 with_gnu_ld=no
4840 fi
4841 ;;
4842 interix*)
4843 # we just hope/assume this is gcc and not c89 (= MSVC++)
4844 with_gnu_ld=yes
4845 ;;
4846 openbsd*)
4847 with_gnu_ld=no
4848 ;;
4849 linux* | k*bsd*-gnu | gnu*)
4850 _LT_TAGVAR(link_all_deplibs, $1)=no
4851 ;;
4852 esac
4853
4854 _LT_TAGVAR(ld_shlibs, $1)=yes
4855
4856 # On some targets, GNU ld is compatible enough with the native linker
4857 # that we're better off using the native interface for both.
4858 lt_use_gnu_ld_interface=no
4859 if test "$with_gnu_ld" = yes; then
4860 case $host_os in
4861 aix*)
4862 # The AIX port of GNU ld has always aspired to compatibility
4863 # with the native linker. However, as the warning in the GNU ld
4864 # block says, versions before 2.19.5* couldn't really create working
4865 # shared libraries, regardless of the interface used.
4866 case `$LD -v 2>&1` in
4867 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4868 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4869 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4870 *)
4871 lt_use_gnu_ld_interface=yes
4872 ;;
4873 esac
4874 ;;
4875 *)
4876 lt_use_gnu_ld_interface=yes
4877 ;;
4878 esac
4879 fi
4880
4881 if test "$lt_use_gnu_ld_interface" = yes; then
4882 # If archive_cmds runs LD, not CC, wlarc should be empty
4883 wlarc='${wl}'
4884
4885 # Set some defaults for GNU ld with shared library support. These
4886 # are reset later if shared libraries are not supported. Putting them
4887 # here allows them to be overridden if necessary.
4888 runpath_var=LD_RUN_PATH
4889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4890 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4891 # ancient GNU ld didn't support --whole-archive et. al.
4892 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4893 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4894 else
4895 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4896 fi
4897 supports_anon_versioning=no
4898 case `$LD -v 2>&1` in
4899 *GNU\ gold*) supports_anon_versioning=yes ;;
4900 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4903 *\ 2.11.*) ;; # other 2.11 versions
4904 *) supports_anon_versioning=yes ;;
4905 esac
4906
4907 # See if GNU ld supports shared libraries.
4908 case $host_os in
4909 aix[[3-9]]*)
4910 # On AIX/PPC, the GNU linker is very broken
4911 if test "$host_cpu" != ia64; then
4912 _LT_TAGVAR(ld_shlibs, $1)=no
4913 cat <<_LT_EOF 1>&2
4914
4915 *** Warning: the GNU linker, at least up to release 2.19, is reported
4916 *** to be unable to reliably create shared libraries on AIX.
4917 *** Therefore, libtool is disabling shared libraries support. If you
4918 *** really care for shared libraries, you may want to install binutils
4919 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4920 *** You will then need to restart the configuration process.
4921
4922 _LT_EOF
4923 fi
4924 ;;
4925
4926 amigaos*)
4927 case $host_cpu in
4928 powerpc)
4929 # see comment about AmigaOS4 .so support
4930 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4931 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4932 ;;
4933 m68k)
4934 _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)'
4935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4936 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4937 ;;
4938 esac
4939 ;;
4940
4941 beos*)
4942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4943 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4945 # support --undefined. This deserves some investigation. FIXME
4946 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4947 else
4948 _LT_TAGVAR(ld_shlibs, $1)=no
4949 fi
4950 ;;
4951
4952 cygwin* | mingw* | pw32* | cegcc*)
4953 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4954 # as there is no search path for DLLs.
4955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4956 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4957 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4958 _LT_TAGVAR(always_export_symbols, $1)=no
4959 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4960 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4961 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4962
4963 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4964 _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'
4965 # If the export-symbols file already is a .def file (1st line
4966 # is EXPORTS), use it as is; otherwise, prepend...
4967 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4968 cp $export_symbols $output_objdir/$soname.def;
4969 else
4970 echo EXPORTS > $output_objdir/$soname.def;
4971 cat $export_symbols >> $output_objdir/$soname.def;
4972 fi~
4973 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4974 else
4975 _LT_TAGVAR(ld_shlibs, $1)=no
4976 fi
4977 ;;
4978
4979 haiku*)
4980 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4981 _LT_TAGVAR(link_all_deplibs, $1)=yes
4982 ;;
4983
4984 interix[[3-9]]*)
4985 _LT_TAGVAR(hardcode_direct, $1)=no
4986 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4987 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4988 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4989 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4990 # Instead, shared libraries are loaded at an image base (0x10000000 by
4991 # default) and relocated if they conflict, which is a slow very memory
4992 # consuming and fragmenting process. To avoid this, we pick a random,
4993 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4994 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4995 _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'
4996 _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'
4997 ;;
4998
4999 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5000 tmp_diet=no
5001 if test "$host_os" = linux-dietlibc; then
5002 case $cc_basename in
5003 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5004 esac
5005 fi
5006 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5007 && test "$tmp_diet" = no
5008 then
5009 tmp_addflag=' $pic_flag'
5010 tmp_sharedflag='-shared'
5011 case $cc_basename,$host_cpu in
5012 pgcc*) # Portland Group C compiler
5013 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5014 tmp_addflag=' $pic_flag'
5015 ;;
5016 pgf77* | pgf90* | pgf95* | pgfortran*)
5017 # Portland Group f77 and f90 compilers
5018 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5019 tmp_addflag=' $pic_flag -Mnomain' ;;
5020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5021 tmp_addflag=' -i_dynamic' ;;
5022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5023 tmp_addflag=' -i_dynamic -nofor_main' ;;
5024 ifc* | ifort*) # Intel Fortran compiler
5025 tmp_addflag=' -nofor_main' ;;
5026 lf95*) # Lahey Fortran 8.1
5027 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5028 tmp_sharedflag='--shared' ;;
5029 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5030 tmp_sharedflag='-qmkshrobj'
5031 tmp_addflag= ;;
5032 nvcc*) # Cuda Compiler Driver 2.2
5033 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5034 _LT_TAGVAR(compiler_needs_object, $1)=yes
5035 ;;
5036 esac
5037 case `$CC -V 2>&1 | sed 5q` in
5038 *Sun\ C*) # Sun C 5.9
5039 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5040 _LT_TAGVAR(compiler_needs_object, $1)=yes
5041 tmp_sharedflag='-G' ;;
5042 *Sun\ F*) # Sun Fortran 8.3
5043 tmp_sharedflag='-G' ;;
5044 esac
5045 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5046
5047 if test "x$supports_anon_versioning" = xyes; then
5048 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5050 echo "local: *; };" >> $output_objdir/$libname.ver~
5051 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5052 fi
5053
5054 case $cc_basename in
5055 xlf* | bgf* | bgxlf* | mpixlf*)
5056 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5057 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5059 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5060 if test "x$supports_anon_versioning" = xyes; then
5061 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5063 echo "local: *; };" >> $output_objdir/$libname.ver~
5064 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5065 fi
5066 ;;
5067 esac
5068 else
5069 _LT_TAGVAR(ld_shlibs, $1)=no
5070 fi
5071 ;;
5072
5073 netbsd* | netbsdelf*-gnu)
5074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5075 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5076 wlarc=
5077 else
5078 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5079 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5080 fi
5081 ;;
5082
5083 solaris*)
5084 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5085 _LT_TAGVAR(ld_shlibs, $1)=no
5086 cat <<_LT_EOF 1>&2
5087
5088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5089 *** create shared libraries on Solaris systems. Therefore, libtool
5090 *** is disabling shared libraries support. We urge you to upgrade GNU
5091 *** binutils to release 2.9.1 or newer. Another option is to modify
5092 *** your PATH or compiler configuration so that the native linker is
5093 *** used, and then restart.
5094
5095 _LT_EOF
5096 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5097 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5098 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5099 else
5100 _LT_TAGVAR(ld_shlibs, $1)=no
5101 fi
5102 ;;
5103
5104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5105 case `$LD -v 2>&1` in
5106 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5107 _LT_TAGVAR(ld_shlibs, $1)=no
5108 cat <<_LT_EOF 1>&2
5109
5110 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5111 *** reliably create shared libraries on SCO systems. Therefore, libtool
5112 *** is disabling shared libraries support. We urge you to upgrade GNU
5113 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5114 *** your PATH or compiler configuration so that the native linker is
5115 *** used, and then restart.
5116
5117 _LT_EOF
5118 ;;
5119 *)
5120 # For security reasons, it is highly recommended that you always
5121 # use absolute paths for naming shared libraries, and exclude the
5122 # DT_RUNPATH tag from executables and libraries. But doing so
5123 # requires that you compile everything twice, which is a pain.
5124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5125 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5126 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5127 _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'
5128 else
5129 _LT_TAGVAR(ld_shlibs, $1)=no
5130 fi
5131 ;;
5132 esac
5133 ;;
5134
5135 sunos4*)
5136 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5137 wlarc=
5138 _LT_TAGVAR(hardcode_direct, $1)=yes
5139 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5140 ;;
5141
5142 *)
5143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5144 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5145 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5146 else
5147 _LT_TAGVAR(ld_shlibs, $1)=no
5148 fi
5149 ;;
5150 esac
5151
5152 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5153 runpath_var=
5154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5155 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5156 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5157 fi
5158 else
5159 # PORTME fill in a description of your system's linker (not GNU ld)
5160 case $host_os in
5161 aix3*)
5162 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5163 _LT_TAGVAR(always_export_symbols, $1)=yes
5164 _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'
5165 # Note: this linker hardcodes the directories in LIBPATH if there
5166 # are no directories specified by -L.
5167 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5169 # Neither direct hardcoding nor static linking is supported with a
5170 # broken collect2.
5171 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5172 fi
5173 ;;
5174
5175 aix[[4-9]]*)
5176 if test "$host_cpu" = ia64; then
5177 # On IA64, the linker does run time linking by default, so we don't
5178 # have to do anything special.
5179 aix_use_runtimelinking=no
5180 exp_sym_flag='-Bexport'
5181 no_entry_flag=""
5182 else
5183 # If we're using GNU nm, then we don't want the "-C" option.
5184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5185 # Also, AIX nm treats weak defined symbols like other global
5186 # defined symbols, whereas GNU nm marks them as "W".
5187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5188 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5189 else
5190 _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'
5191 fi
5192 aix_use_runtimelinking=no
5193
5194 # Test if we are trying to use run time linking or normal
5195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5196 # need to do runtime linking.
5197 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5198 for ld_flag in $LDFLAGS; do
5199 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5200 aix_use_runtimelinking=yes
5201 break
5202 fi
5203 done
5204 ;;
5205 esac
5206
5207 exp_sym_flag='-bexport'
5208 no_entry_flag='-bnoentry'
5209 fi
5210
5211 # When large executables or shared objects are built, AIX ld can
5212 # have problems creating the table of contents. If linking a library
5213 # or program results in "error TOC overflow" add -mminimal-toc to
5214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5216
5217 _LT_TAGVAR(archive_cmds, $1)=''
5218 _LT_TAGVAR(hardcode_direct, $1)=yes
5219 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5220 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5221 _LT_TAGVAR(link_all_deplibs, $1)=yes
5222 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5223
5224 if test "$GCC" = yes; then
5225 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5226 # We only want to do this on AIX 4.2 and lower, the check
5227 # below for broken collect2 doesn't work under 4.3+
5228 collect2name=`${CC} -print-prog-name=collect2`
5229 if test -f "$collect2name" &&
5230 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5231 then
5232 # We have reworked collect2
5233 :
5234 else
5235 # We have old collect2
5236 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5237 # It fails to find uninstalled libraries when the uninstalled
5238 # path is not listed in the libpath. Setting hardcode_minus_L
5239 # to unsupported forces relinking
5240 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5242 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5243 fi
5244 ;;
5245 esac
5246 shared_flag='-shared'
5247 if test "$aix_use_runtimelinking" = yes; then
5248 shared_flag="$shared_flag "'${wl}-G'
5249 fi
5250 _LT_TAGVAR(link_all_deplibs, $1)=no
5251 else
5252 # not using gcc
5253 if test "$host_cpu" = ia64; then
5254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5255 # chokes on -Wl,-G. The following line is correct:
5256 shared_flag='-G'
5257 else
5258 if test "$aix_use_runtimelinking" = yes; then
5259 shared_flag='${wl}-G'
5260 else
5261 shared_flag='${wl}-bM:SRE'
5262 fi
5263 fi
5264 fi
5265
5266 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5267 # It seems that -bexpall does not export symbols beginning with
5268 # underscore (_), so it is better to generate a list of symbols to export.
5269 _LT_TAGVAR(always_export_symbols, $1)=yes
5270 if test "$aix_use_runtimelinking" = yes; then
5271 # Warning - without using the other runtime loading flags (-brtl),
5272 # -berok will link without error, but may produce a broken library.
5273 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5274 # Determine the default libpath from the value encoded in an
5275 # empty executable.
5276 _LT_SYS_MODULE_PATH_AIX([$1])
5277 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5278 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5279 else
5280 if test "$host_cpu" = ia64; then
5281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5282 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5283 _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"
5284 else
5285 # Determine the default libpath from the value encoded in an
5286 # empty executable.
5287 _LT_SYS_MODULE_PATH_AIX([$1])
5288 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5289 # Warning - without using the other run time loading flags,
5290 # -berok will link without error, but may produce a broken library.
5291 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5292 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5293 if test "$with_gnu_ld" = yes; then
5294 # We only use this code for GNU lds that support --whole-archive.
5295 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5296 else
5297 # Exported symbols can be pulled into shared objects from archives
5298 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5299 fi
5300 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5301 # This is similar to how AIX traditionally builds its shared libraries.
5302 _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'
5303 fi
5304 fi
5305 ;;
5306
5307 amigaos*)
5308 case $host_cpu in
5309 powerpc)
5310 # see comment about AmigaOS4 .so support
5311 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5312 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5313 ;;
5314 m68k)
5315 _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)'
5316 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5317 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5318 ;;
5319 esac
5320 ;;
5321
5322 bsdi[[45]]*)
5323 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5324 ;;
5325
5326 cygwin* | mingw* | pw32* | cegcc*)
5327 # When not using gcc, we currently assume that we are using
5328 # Microsoft Visual C++.
5329 # hardcode_libdir_flag_spec is actually meaningless, as there is
5330 # no search path for DLLs.
5331 case $cc_basename in
5332 cl*)
5333 # Native MSVC
5334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5335 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5336 _LT_TAGVAR(always_export_symbols, $1)=yes
5337 _LT_TAGVAR(file_list_spec, $1)='@'
5338 # Tell ltmain to make .lib files, not .a files.
5339 libext=lib
5340 # Tell ltmain to make .dll files, not .so files.
5341 shrext_cmds=".dll"
5342 # FIXME: Setting linknames here is a bad hack.
5343 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5344 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5345 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5346 else
5347 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5348 fi~
5349 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5350 linknames='
5351 # The linker will not automatically build a static lib if we build a DLL.
5352 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5354 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5355 _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'
5356 # Don't use ranlib
5357 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5358 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5359 lt_tool_outputfile="@TOOL_OUTPUT@"~
5360 case $lt_outputfile in
5361 *.exe|*.EXE) ;;
5362 *)
5363 lt_outputfile="$lt_outputfile.exe"
5364 lt_tool_outputfile="$lt_tool_outputfile.exe"
5365 ;;
5366 esac~
5367 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5369 $RM "$lt_outputfile.manifest";
5370 fi'
5371 ;;
5372 *)
5373 # Assume MSVC wrapper
5374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5375 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5376 # Tell ltmain to make .lib files, not .a files.
5377 libext=lib
5378 # Tell ltmain to make .dll files, not .so files.
5379 shrext_cmds=".dll"
5380 # FIXME: Setting linknames here is a bad hack.
5381 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5382 # The linker will automatically build a .lib file if we build a DLL.
5383 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5384 # FIXME: Should let the user specify the lib program.
5385 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5386 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5387 ;;
5388 esac
5389 ;;
5390
5391 darwin* | rhapsody*)
5392 _LT_DARWIN_LINKER_FEATURES($1)
5393 ;;
5394
5395 dgux*)
5396 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5397 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5398 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5399 ;;
5400
5401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5402 # support. Future versions do this automatically, but an explicit c++rt0.o
5403 # does not break anything, and helps significantly (at the cost of a little
5404 # extra space).
5405 freebsd2.2*)
5406 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5408 _LT_TAGVAR(hardcode_direct, $1)=yes
5409 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5410 ;;
5411
5412 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5413 freebsd2.*)
5414 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5415 _LT_TAGVAR(hardcode_direct, $1)=yes
5416 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5417 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5418 ;;
5419
5420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5421 freebsd* | dragonfly*)
5422 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5424 _LT_TAGVAR(hardcode_direct, $1)=yes
5425 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5426 ;;
5427
5428 hpux9*)
5429 if test "$GCC" = yes; then
5430 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5431 else
5432 _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'
5433 fi
5434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5435 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5436 _LT_TAGVAR(hardcode_direct, $1)=yes
5437
5438 # hardcode_minus_L: Not really in the search PATH,
5439 # but as the default location of the library.
5440 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5441 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5442 ;;
5443
5444 hpux10*)
5445 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5447 else
5448 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5449 fi
5450 if test "$with_gnu_ld" = no; then
5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5452 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5453 _LT_TAGVAR(hardcode_direct, $1)=yes
5454 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5455 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5456 # hardcode_minus_L: Not really in the search PATH,
5457 # but as the default location of the library.
5458 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5459 fi
5460 ;;
5461
5462 hpux11*)
5463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5464 case $host_cpu in
5465 hppa*64*)
5466 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5467 ;;
5468 ia64*)
5469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5470 ;;
5471 *)
5472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5473 ;;
5474 esac
5475 else
5476 case $host_cpu in
5477 hppa*64*)
5478 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5479 ;;
5480 ia64*)
5481 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5482 ;;
5483 *)
5484 m4_if($1, [], [
5485 # Older versions of the 11.00 compiler do not understand -b yet
5486 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5487 _LT_LINKER_OPTION([if $CC understands -b],
5488 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5489 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5490 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5491 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5492 ;;
5493 esac
5494 fi
5495 if test "$with_gnu_ld" = no; then
5496 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5497 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5498
5499 case $host_cpu in
5500 hppa*64*|ia64*)
5501 _LT_TAGVAR(hardcode_direct, $1)=no
5502 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5503 ;;
5504 *)
5505 _LT_TAGVAR(hardcode_direct, $1)=yes
5506 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5507 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5508
5509 # hardcode_minus_L: Not really in the search PATH,
5510 # but as the default location of the library.
5511 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5512 ;;
5513 esac
5514 fi
5515 ;;
5516
5517 irix5* | irix6* | nonstopux*)
5518 if test "$GCC" = yes; then
5519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5520 # Try to use the -exported_symbol ld option, if it does not
5521 # work, assume that -exports_file does not work either and
5522 # implicitly export all symbols.
5523 # This should be the same for all languages, so no per-tag cache variable.
5524 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5525 [lt_cv_irix_exported_symbol],
5526 [save_LDFLAGS="$LDFLAGS"
5527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5528 AC_LINK_IFELSE(
5529 [AC_LANG_SOURCE(
5530 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5531 [C++], [[int foo (void) { return 0; }]],
5532 [Fortran 77], [[
5533 subroutine foo
5534 end]],
5535 [Fortran], [[
5536 subroutine foo
5537 end]])])],
5538 [lt_cv_irix_exported_symbol=yes],
5539 [lt_cv_irix_exported_symbol=no])
5540 LDFLAGS="$save_LDFLAGS"])
5541 if test "$lt_cv_irix_exported_symbol" = yes; then
5542 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5543 fi
5544 else
5545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5546 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5547 fi
5548 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5549 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5550 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5551 _LT_TAGVAR(inherit_rpath, $1)=yes
5552 _LT_TAGVAR(link_all_deplibs, $1)=yes
5553 ;;
5554
5555 netbsd* | netbsdelf*-gnu)
5556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5557 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5558 else
5559 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5560 fi
5561 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5562 _LT_TAGVAR(hardcode_direct, $1)=yes
5563 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5564 ;;
5565
5566 newsos6)
5567 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5568 _LT_TAGVAR(hardcode_direct, $1)=yes
5569 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5570 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5571 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5572 ;;
5573
5574 *nto* | *qnx*)
5575 ;;
5576
5577 openbsd*)
5578 if test -f /usr/libexec/ld.so; then
5579 _LT_TAGVAR(hardcode_direct, $1)=yes
5580 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5581 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5583 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5584 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5586 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5587 else
5588 case $host_os in
5589 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5590 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5592 ;;
5593 *)
5594 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5596 ;;
5597 esac
5598 fi
5599 else
5600 _LT_TAGVAR(ld_shlibs, $1)=no
5601 fi
5602 ;;
5603
5604 os2*)
5605 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5606 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5607 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5608 _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'
5609 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5610 ;;
5611
5612 osf3*)
5613 if test "$GCC" = yes; then
5614 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5615 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5616 else
5617 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5618 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5619 fi
5620 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5622 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5623 ;;
5624
5625 osf4* | osf5*) # as osf3* with the addition of -msym flag
5626 if test "$GCC" = yes; then
5627 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5628 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5629 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5630 else
5631 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5632 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5633 _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~
5634 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5635
5636 # Both c and cxx compiler support -rpath directly
5637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5638 fi
5639 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5640 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5641 ;;
5642
5643 solaris*)
5644 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5645 if test "$GCC" = yes; then
5646 wlarc='${wl}'
5647 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5648 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5649 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5650 else
5651 case `$CC -V 2>&1` in
5652 *"Compilers 5.0"*)
5653 wlarc=''
5654 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5655 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5657 ;;
5658 *)
5659 wlarc='${wl}'
5660 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5661 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5662 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5663 ;;
5664 esac
5665 fi
5666 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5667 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5668 case $host_os in
5669 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5670 *)
5671 # The compiler driver will combine and reorder linker options,
5672 # but understands `-z linker_flag'. GCC discards it without `$wl',
5673 # but is careful enough not to reorder.
5674 # Supported since Solaris 2.6 (maybe 2.5.1?)
5675 if test "$GCC" = yes; then
5676 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5677 else
5678 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5679 fi
5680 ;;
5681 esac
5682 _LT_TAGVAR(link_all_deplibs, $1)=yes
5683 ;;
5684
5685 sunos4*)
5686 if test "x$host_vendor" = xsequent; then
5687 # Use $CC to link under sequent, because it throws in some extra .o
5688 # files that make .init and .fini sections work.
5689 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5690 else
5691 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5692 fi
5693 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5694 _LT_TAGVAR(hardcode_direct, $1)=yes
5695 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5696 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5697 ;;
5698
5699 sysv4)
5700 case $host_vendor in
5701 sni)
5702 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5704 ;;
5705 siemens)
5706 ## LD is ld it makes a PLAMLIB
5707 ## CC just makes a GrossModule.
5708 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5709 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5710 _LT_TAGVAR(hardcode_direct, $1)=no
5711 ;;
5712 motorola)
5713 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5714 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5715 ;;
5716 esac
5717 runpath_var='LD_RUN_PATH'
5718 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5719 ;;
5720
5721 sysv4.3*)
5722 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5724 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5725 ;;
5726
5727 sysv4*MP*)
5728 if test -d /usr/nec; then
5729 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5730 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5731 runpath_var=LD_RUN_PATH
5732 hardcode_runpath_var=yes
5733 _LT_TAGVAR(ld_shlibs, $1)=yes
5734 fi
5735 ;;
5736
5737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5738 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5739 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5740 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5741 runpath_var='LD_RUN_PATH'
5742
5743 if test "$GCC" = yes; then
5744 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5745 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5746 else
5747 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5748 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5749 fi
5750 ;;
5751
5752 sysv5* | sco3.2v5* | sco5v6*)
5753 # Note: We can NOT use -z defs as we might desire, because we do not
5754 # link with -lc, and that would cause any symbols used from libc to
5755 # always be unresolved, which means just about no library would
5756 # ever link correctly. If we're not using GNU ld we use -z text
5757 # though, which does catch some bad symbols but isn't as heavy-handed
5758 # as -z defs.
5759 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5760 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5761 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5762 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5764 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5765 _LT_TAGVAR(link_all_deplibs, $1)=yes
5766 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5767 runpath_var='LD_RUN_PATH'
5768
5769 if test "$GCC" = yes; then
5770 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5771 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5772 else
5773 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5774 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5775 fi
5776 ;;
5777
5778 uts4*)
5779 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5781 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5782 ;;
5783
5784 *)
5785 _LT_TAGVAR(ld_shlibs, $1)=no
5786 ;;
5787 esac
5788
5789 if test x$host_vendor = xsni; then
5790 case $host in
5791 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5792 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5793 ;;
5794 esac
5795 fi
5796 fi
5797 ])
5798 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5799 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5800
5801 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5802
5803 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5804 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5805 _LT_DECL([], [extract_expsyms_cmds], [2],
5806 [The commands to extract the exported symbol list from a shared archive])
5807
5808 #
5809 # Do we need to explicitly link libc?
5810 #
5811 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5812 x|xyes)
5813 # Assume -lc should be added
5814 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5815
5816 if test "$enable_shared" = yes && test "$GCC" = yes; then
5817 case $_LT_TAGVAR(archive_cmds, $1) in
5818 *'~'*)
5819 # FIXME: we may have to deal with multi-command sequences.
5820 ;;
5821 '$CC '*)
5822 # Test whether the compiler implicitly links with -lc since on some
5823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5824 # to ld, don't add -lc before -lgcc.
5825 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5826 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5827 [$RM conftest*
5828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5829
5830 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5831 soname=conftest
5832 lib=conftest
5833 libobjs=conftest.$ac_objext
5834 deplibs=
5835 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5836 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5837 compiler_flags=-v
5838 linker_flags=-v
5839 verstring=
5840 output_objdir=.
5841 libname=conftest
5842 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5843 _LT_TAGVAR(allow_undefined_flag, $1)=
5844 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5845 then
5846 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5847 else
5848 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5849 fi
5850 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5851 else
5852 cat conftest.err 1>&5
5853 fi
5854 $RM conftest*
5855 ])
5856 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5857 ;;
5858 esac
5859 fi
5860 ;;
5861 esac
5862
5863 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5864 [Whether or not to add -lc for building shared libraries])
5865 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5866 [enable_shared_with_static_runtimes], [0],
5867 [Whether or not to disallow shared libs when runtime libs are static])
5868 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5869 [Compiler flag to allow reflexive dlopens])
5870 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5871 [Compiler flag to generate shared objects directly from archives])
5872 _LT_TAGDECL([], [compiler_needs_object], [1],
5873 [Whether the compiler copes with passing no objects directly])
5874 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5875 [Create an old-style archive from a shared archive])
5876 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5877 [Create a temporary old-style archive to link instead of a shared archive])
5878 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5879 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5880 _LT_TAGDECL([], [module_cmds], [2],
5881 [Commands used to build a loadable module if different from building
5882 a shared archive.])
5883 _LT_TAGDECL([], [module_expsym_cmds], [2])
5884 _LT_TAGDECL([], [with_gnu_ld], [1],
5885 [Whether we are building with GNU ld or not])
5886 _LT_TAGDECL([], [allow_undefined_flag], [1],
5887 [Flag that allows shared libraries with undefined symbols to be built])
5888 _LT_TAGDECL([], [no_undefined_flag], [1],
5889 [Flag that enforces no undefined symbols])
5890 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5891 [Flag to hardcode $libdir into a binary during linking.
5892 This must work even if $libdir does not exist])
5893 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5894 [Whether we need a single "-rpath" flag with a separated argument])
5895 _LT_TAGDECL([], [hardcode_direct], [0],
5896 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5897 DIR into the resulting binary])
5898 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5899 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5900 DIR into the resulting binary and the resulting library dependency is
5901 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5902 library is relocated])
5903 _LT_TAGDECL([], [hardcode_minus_L], [0],
5904 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5905 into the resulting binary])
5906 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5907 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5908 into the resulting binary])
5909 _LT_TAGDECL([], [hardcode_automatic], [0],
5910 [Set to "yes" if building a shared library automatically hardcodes DIR
5911 into the library and all subsequent libraries and executables linked
5912 against it])
5913 _LT_TAGDECL([], [inherit_rpath], [0],
5914 [Set to yes if linker adds runtime paths of dependent libraries
5915 to runtime path list])
5916 _LT_TAGDECL([], [link_all_deplibs], [0],
5917 [Whether libtool must link a program against all its dependency libraries])
5918 _LT_TAGDECL([], [always_export_symbols], [0],
5919 [Set to "yes" if exported symbols are required])
5920 _LT_TAGDECL([], [export_symbols_cmds], [2],
5921 [The commands to list exported symbols])
5922 _LT_TAGDECL([], [exclude_expsyms], [1],
5923 [Symbols that should not be listed in the preloaded symbols])
5924 _LT_TAGDECL([], [include_expsyms], [1],
5925 [Symbols that must always be exported])
5926 _LT_TAGDECL([], [prelink_cmds], [2],
5927 [Commands necessary for linking programs (against libraries) with templates])
5928 _LT_TAGDECL([], [postlink_cmds], [2],
5929 [Commands necessary for finishing linking programs])
5930 _LT_TAGDECL([], [file_list_spec], [1],
5931 [Specify filename containing input files])
5932 dnl FIXME: Not yet implemented
5933 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5934 dnl [Compiler flag to generate thread safe objects])
5935 ])# _LT_LINKER_SHLIBS
5936
5937
5938 # _LT_LANG_C_CONFIG([TAG])
5939 # ------------------------
5940 # Ensure that the configuration variables for a C compiler are suitably
5941 # defined. These variables are subsequently used by _LT_CONFIG to write
5942 # the compiler configuration to `libtool'.
5943 m4_defun([_LT_LANG_C_CONFIG],
5944 [m4_require([_LT_DECL_EGREP])dnl
5945 lt_save_CC="$CC"
5946 AC_LANG_PUSH(C)
5947
5948 # Source file extension for C test sources.
5949 ac_ext=c
5950
5951 # Object file extension for compiled C test sources.
5952 objext=o
5953 _LT_TAGVAR(objext, $1)=$objext
5954
5955 # Code to be used in simple compile tests
5956 lt_simple_compile_test_code="int some_variable = 0;"
5957
5958 # Code to be used in simple link tests
5959 lt_simple_link_test_code='int main(){return(0);}'
5960
5961 _LT_TAG_COMPILER
5962 # Save the default compiler, since it gets overwritten when the other
5963 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5964 compiler_DEFAULT=$CC
5965
5966 # save warnings/boilerplate of simple test code
5967 _LT_COMPILER_BOILERPLATE
5968 _LT_LINKER_BOILERPLATE
5969
5970 if test -n "$compiler"; then
5971 _LT_COMPILER_NO_RTTI($1)
5972 _LT_COMPILER_PIC($1)
5973 _LT_COMPILER_C_O($1)
5974 _LT_COMPILER_FILE_LOCKS($1)
5975 _LT_LINKER_SHLIBS($1)
5976 _LT_SYS_DYNAMIC_LINKER($1)
5977 _LT_LINKER_HARDCODE_LIBPATH($1)
5978 LT_SYS_DLOPEN_SELF
5979 _LT_CMD_STRIPLIB
5980
5981 # Report which library types will actually be built
5982 AC_MSG_CHECKING([if libtool supports shared libraries])
5983 AC_MSG_RESULT([$can_build_shared])
5984
5985 AC_MSG_CHECKING([whether to build shared libraries])
5986 test "$can_build_shared" = "no" && enable_shared=no
5987
5988 # On AIX, shared libraries and static libraries use the same namespace, and
5989 # are all built from PIC.
5990 case $host_os in
5991 aix3*)
5992 test "$enable_shared" = yes && enable_static=no
5993 if test -n "$RANLIB"; then
5994 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5995 postinstall_cmds='$RANLIB $lib'
5996 fi
5997 ;;
5998
5999 aix[[4-9]]*)
6000 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6001 test "$enable_shared" = yes && enable_static=no
6002 fi
6003 ;;
6004 esac
6005 AC_MSG_RESULT([$enable_shared])
6006
6007 AC_MSG_CHECKING([whether to build static libraries])
6008 # Make sure either enable_shared or enable_static is yes.
6009 test "$enable_shared" = yes || enable_static=yes
6010 AC_MSG_RESULT([$enable_static])
6011
6012 _LT_CONFIG($1)
6013 fi
6014 AC_LANG_POP
6015 CC="$lt_save_CC"
6016 ])# _LT_LANG_C_CONFIG
6017
6018
6019 # _LT_LANG_CXX_CONFIG([TAG])
6020 # --------------------------
6021 # Ensure that the configuration variables for a C++ compiler are suitably
6022 # defined. These variables are subsequently used by _LT_CONFIG to write
6023 # the compiler configuration to `libtool'.
6024 m4_defun([_LT_LANG_CXX_CONFIG],
6025 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6026 m4_require([_LT_DECL_EGREP])dnl
6027 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6028 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6030 (test "X$CXX" != "Xg++"))) ; then
6031 AC_PROG_CXXCPP
6032 else
6033 _lt_caught_CXX_error=yes
6034 fi
6035
6036 AC_LANG_PUSH(C++)
6037 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6038 _LT_TAGVAR(allow_undefined_flag, $1)=
6039 _LT_TAGVAR(always_export_symbols, $1)=no
6040 _LT_TAGVAR(archive_expsym_cmds, $1)=
6041 _LT_TAGVAR(compiler_needs_object, $1)=no
6042 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6043 _LT_TAGVAR(hardcode_direct, $1)=no
6044 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6045 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6046 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6047 _LT_TAGVAR(hardcode_minus_L, $1)=no
6048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6049 _LT_TAGVAR(hardcode_automatic, $1)=no
6050 _LT_TAGVAR(inherit_rpath, $1)=no
6051 _LT_TAGVAR(module_cmds, $1)=
6052 _LT_TAGVAR(module_expsym_cmds, $1)=
6053 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6054 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6055 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6056 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6057 _LT_TAGVAR(no_undefined_flag, $1)=
6058 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6059 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6060
6061 # Source file extension for C++ test sources.
6062 ac_ext=cpp
6063
6064 # Object file extension for compiled C++ test sources.
6065 objext=o
6066 _LT_TAGVAR(objext, $1)=$objext
6067
6068 # No sense in running all these tests if we already determined that
6069 # the CXX compiler isn't working. Some variables (like enable_shared)
6070 # are currently assumed to apply to all compilers on this platform,
6071 # and will be corrupted by setting them based on a non-working compiler.
6072 if test "$_lt_caught_CXX_error" != yes; then
6073 # Code to be used in simple compile tests
6074 lt_simple_compile_test_code="int some_variable = 0;"
6075
6076 # Code to be used in simple link tests
6077 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6078
6079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6080 _LT_TAG_COMPILER
6081
6082 # save warnings/boilerplate of simple test code
6083 _LT_COMPILER_BOILERPLATE
6084 _LT_LINKER_BOILERPLATE
6085
6086 # Allow CC to be a program name with arguments.
6087 lt_save_CC=$CC
6088 lt_save_CFLAGS=$CFLAGS
6089 lt_save_LD=$LD
6090 lt_save_GCC=$GCC
6091 GCC=$GXX
6092 lt_save_with_gnu_ld=$with_gnu_ld
6093 lt_save_path_LD=$lt_cv_path_LD
6094 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6095 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6096 else
6097 $as_unset lt_cv_prog_gnu_ld
6098 fi
6099 if test -n "${lt_cv_path_LDCXX+set}"; then
6100 lt_cv_path_LD=$lt_cv_path_LDCXX
6101 else
6102 $as_unset lt_cv_path_LD
6103 fi
6104 test -z "${LDCXX+set}" || LD=$LDCXX
6105 CC=${CXX-"c++"}
6106 CFLAGS=$CXXFLAGS
6107 compiler=$CC
6108 _LT_TAGVAR(compiler, $1)=$CC
6109 _LT_CC_BASENAME([$compiler])
6110
6111 if test -n "$compiler"; then
6112 # We don't want -fno-exception when compiling C++ code, so set the
6113 # no_builtin_flag separately
6114 if test "$GXX" = yes; then
6115 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6116 else
6117 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6118 fi
6119
6120 if test "$GXX" = yes; then
6121 # Set up default GNU C++ configuration
6122
6123 LT_PATH_LD
6124
6125 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6126 # archiving commands below assume that GNU ld is being used.
6127 if test "$with_gnu_ld" = yes; then
6128 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6129 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6130
6131 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6132 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6133
6134 # If archive_cmds runs LD, not CC, wlarc should be empty
6135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6136 # investigate it a little bit more. (MM)
6137 wlarc='${wl}'
6138
6139 # ancient GNU ld didn't support --whole-archive et. al.
6140 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6141 $GREP 'no-whole-archive' > /dev/null; then
6142 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6143 else
6144 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6145 fi
6146 else
6147 with_gnu_ld=no
6148 wlarc=
6149
6150 # A generic and very simple default shared library creation
6151 # command for GNU C++ for the case where it uses the native
6152 # linker, instead of GNU ld. If possible, this setting should
6153 # overridden to take advantage of the native linker features on
6154 # the platform it is being used on.
6155 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6156 fi
6157
6158 # Commands to make compiler produce verbose output that lists
6159 # what "hidden" libraries, object files and flags are used when
6160 # linking a shared library.
6161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6162
6163 else
6164 GXX=no
6165 with_gnu_ld=no
6166 wlarc=
6167 fi
6168
6169 # PORTME: fill in a description of your system's C++ link characteristics
6170 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6171 _LT_TAGVAR(ld_shlibs, $1)=yes
6172 case $host_os in
6173 aix3*)
6174 # FIXME: insert proper C++ library support
6175 _LT_TAGVAR(ld_shlibs, $1)=no
6176 ;;
6177 aix[[4-9]]*)
6178 if test "$host_cpu" = ia64; then
6179 # On IA64, the linker does run time linking by default, so we don't
6180 # have to do anything special.
6181 aix_use_runtimelinking=no
6182 exp_sym_flag='-Bexport'
6183 no_entry_flag=""
6184 else
6185 aix_use_runtimelinking=no
6186
6187 # Test if we are trying to use run time linking or normal
6188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6189 # need to do runtime linking.
6190 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6191 for ld_flag in $LDFLAGS; do
6192 case $ld_flag in
6193 *-brtl*)
6194 aix_use_runtimelinking=yes
6195 break
6196 ;;
6197 esac
6198 done
6199 ;;
6200 esac
6201
6202 exp_sym_flag='-bexport'
6203 no_entry_flag='-bnoentry'
6204 fi
6205
6206 # When large executables or shared objects are built, AIX ld can
6207 # have problems creating the table of contents. If linking a library
6208 # or program results in "error TOC overflow" add -mminimal-toc to
6209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6211
6212 _LT_TAGVAR(archive_cmds, $1)=''
6213 _LT_TAGVAR(hardcode_direct, $1)=yes
6214 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6215 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6216 _LT_TAGVAR(link_all_deplibs, $1)=yes
6217 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6218
6219 if test "$GXX" = yes; then
6220 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6221 # We only want to do this on AIX 4.2 and lower, the check
6222 # below for broken collect2 doesn't work under 4.3+
6223 collect2name=`${CC} -print-prog-name=collect2`
6224 if test -f "$collect2name" &&
6225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6226 then
6227 # We have reworked collect2
6228 :
6229 else
6230 # We have old collect2
6231 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6232 # It fails to find uninstalled libraries when the uninstalled
6233 # path is not listed in the libpath. Setting hardcode_minus_L
6234 # to unsupported forces relinking
6235 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6236 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6237 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6238 fi
6239 esac
6240 shared_flag='-shared'
6241 if test "$aix_use_runtimelinking" = yes; then
6242 shared_flag="$shared_flag "'${wl}-G'
6243 fi
6244 else
6245 # not using gcc
6246 if test "$host_cpu" = ia64; then
6247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6248 # chokes on -Wl,-G. The following line is correct:
6249 shared_flag='-G'
6250 else
6251 if test "$aix_use_runtimelinking" = yes; then
6252 shared_flag='${wl}-G'
6253 else
6254 shared_flag='${wl}-bM:SRE'
6255 fi
6256 fi
6257 fi
6258
6259 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6260 # It seems that -bexpall does not export symbols beginning with
6261 # underscore (_), so it is better to generate a list of symbols to
6262 # export.
6263 _LT_TAGVAR(always_export_symbols, $1)=yes
6264 if test "$aix_use_runtimelinking" = yes; then
6265 # Warning - without using the other runtime loading flags (-brtl),
6266 # -berok will link without error, but may produce a broken library.
6267 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6268 # Determine the default libpath from the value encoded in an empty
6269 # executable.
6270 _LT_SYS_MODULE_PATH_AIX([$1])
6271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6272
6273 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6274 else
6275 if test "$host_cpu" = ia64; then
6276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6277 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6278 _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"
6279 else
6280 # Determine the default libpath from the value encoded in an
6281 # empty executable.
6282 _LT_SYS_MODULE_PATH_AIX([$1])
6283 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6284 # Warning - without using the other run time loading flags,
6285 # -berok will link without error, but may produce a broken library.
6286 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6287 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6288 if test "$with_gnu_ld" = yes; then
6289 # We only use this code for GNU lds that support --whole-archive.
6290 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6291 else
6292 # Exported symbols can be pulled into shared objects from archives
6293 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6294 fi
6295 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6296 # This is similar to how AIX traditionally builds its shared
6297 # libraries.
6298 _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'
6299 fi
6300 fi
6301 ;;
6302
6303 beos*)
6304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6305 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6307 # support --undefined. This deserves some investigation. FIXME
6308 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6309 else
6310 _LT_TAGVAR(ld_shlibs, $1)=no
6311 fi
6312 ;;
6313
6314 chorus*)
6315 case $cc_basename in
6316 *)
6317 # FIXME: insert proper C++ library support
6318 _LT_TAGVAR(ld_shlibs, $1)=no
6319 ;;
6320 esac
6321 ;;
6322
6323 cygwin* | mingw* | pw32* | cegcc*)
6324 case $GXX,$cc_basename in
6325 ,cl* | no,cl*)
6326 # Native MSVC
6327 # hardcode_libdir_flag_spec is actually meaningless, as there is
6328 # no search path for DLLs.
6329 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6330 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6331 _LT_TAGVAR(always_export_symbols, $1)=yes
6332 _LT_TAGVAR(file_list_spec, $1)='@'
6333 # Tell ltmain to make .lib files, not .a files.
6334 libext=lib
6335 # Tell ltmain to make .dll files, not .so files.
6336 shrext_cmds=".dll"
6337 # FIXME: Setting linknames here is a bad hack.
6338 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6339 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6340 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6341 else
6342 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6343 fi~
6344 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6345 linknames='
6346 # The linker will not automatically build a static lib if we build a DLL.
6347 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6348 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6349 # Don't use ranlib
6350 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6351 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6352 lt_tool_outputfile="@TOOL_OUTPUT@"~
6353 case $lt_outputfile in
6354 *.exe|*.EXE) ;;
6355 *)
6356 lt_outputfile="$lt_outputfile.exe"
6357 lt_tool_outputfile="$lt_tool_outputfile.exe"
6358 ;;
6359 esac~
6360 func_to_tool_file "$lt_outputfile"~
6361 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6362 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6363 $RM "$lt_outputfile.manifest";
6364 fi'
6365 ;;
6366 *)
6367 # g++
6368 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6369 # as there is no search path for DLLs.
6370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6371 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6372 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6373 _LT_TAGVAR(always_export_symbols, $1)=no
6374 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6375
6376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6377 _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'
6378 # If the export-symbols file already is a .def file (1st line
6379 # is EXPORTS), use it as is; otherwise, prepend...
6380 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6381 cp $export_symbols $output_objdir/$soname.def;
6382 else
6383 echo EXPORTS > $output_objdir/$soname.def;
6384 cat $export_symbols >> $output_objdir/$soname.def;
6385 fi~
6386 $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'
6387 else
6388 _LT_TAGVAR(ld_shlibs, $1)=no
6389 fi
6390 ;;
6391 esac
6392 ;;
6393 darwin* | rhapsody*)
6394 _LT_DARWIN_LINKER_FEATURES($1)
6395 ;;
6396
6397 dgux*)
6398 case $cc_basename in
6399 ec++*)
6400 # FIXME: insert proper C++ library support
6401 _LT_TAGVAR(ld_shlibs, $1)=no
6402 ;;
6403 ghcx*)
6404 # Green Hills C++ Compiler
6405 # FIXME: insert proper C++ library support
6406 _LT_TAGVAR(ld_shlibs, $1)=no
6407 ;;
6408 *)
6409 # FIXME: insert proper C++ library support
6410 _LT_TAGVAR(ld_shlibs, $1)=no
6411 ;;
6412 esac
6413 ;;
6414
6415 freebsd2.*)
6416 # C++ shared libraries reported to be fairly broken before
6417 # switch to ELF
6418 _LT_TAGVAR(ld_shlibs, $1)=no
6419 ;;
6420
6421 freebsd-elf*)
6422 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6423 ;;
6424
6425 freebsd* | dragonfly*)
6426 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6427 # conventions
6428 _LT_TAGVAR(ld_shlibs, $1)=yes
6429 ;;
6430
6431 haiku*)
6432 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6433 _LT_TAGVAR(link_all_deplibs, $1)=yes
6434 ;;
6435
6436 hpux9*)
6437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6438 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6439 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6440 _LT_TAGVAR(hardcode_direct, $1)=yes
6441 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6442 # but as the default
6443 # location of the library.
6444
6445 case $cc_basename in
6446 CC*)
6447 # FIXME: insert proper C++ library support
6448 _LT_TAGVAR(ld_shlibs, $1)=no
6449 ;;
6450 aCC*)
6451 _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'
6452 # Commands to make compiler produce verbose output that lists
6453 # what "hidden" libraries, object files and flags are used when
6454 # linking a shared library.
6455 #
6456 # There doesn't appear to be a way to prevent this compiler from
6457 # explicitly linking system object files so we need to strip them
6458 # from the output so that they don't get included in the library
6459 # dependencies.
6460 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6461 ;;
6462 *)
6463 if test "$GXX" = yes; then
6464 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6465 else
6466 # FIXME: insert proper C++ library support
6467 _LT_TAGVAR(ld_shlibs, $1)=no
6468 fi
6469 ;;
6470 esac
6471 ;;
6472
6473 hpux10*|hpux11*)
6474 if test $with_gnu_ld = no; then
6475 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6476 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6477
6478 case $host_cpu in
6479 hppa*64*|ia64*)
6480 ;;
6481 *)
6482 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6483 ;;
6484 esac
6485 fi
6486 case $host_cpu in
6487 hppa*64*|ia64*)
6488 _LT_TAGVAR(hardcode_direct, $1)=no
6489 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6490 ;;
6491 *)
6492 _LT_TAGVAR(hardcode_direct, $1)=yes
6493 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6494 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6495 # but as the default
6496 # location of the library.
6497 ;;
6498 esac
6499
6500 case $cc_basename in
6501 CC*)
6502 # FIXME: insert proper C++ library support
6503 _LT_TAGVAR(ld_shlibs, $1)=no
6504 ;;
6505 aCC*)
6506 case $host_cpu in
6507 hppa*64*)
6508 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6509 ;;
6510 ia64*)
6511 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6512 ;;
6513 *)
6514 _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'
6515 ;;
6516 esac
6517 # Commands to make compiler produce verbose output that lists
6518 # what "hidden" libraries, object files and flags are used when
6519 # linking a shared library.
6520 #
6521 # There doesn't appear to be a way to prevent this compiler from
6522 # explicitly linking system object files so we need to strip them
6523 # from the output so that they don't get included in the library
6524 # dependencies.
6525 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6526 ;;
6527 *)
6528 if test "$GXX" = yes; then
6529 if test $with_gnu_ld = no; then
6530 case $host_cpu in
6531 hppa*64*)
6532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6533 ;;
6534 ia64*)
6535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6536 ;;
6537 *)
6538 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6539 ;;
6540 esac
6541 fi
6542 else
6543 # FIXME: insert proper C++ library support
6544 _LT_TAGVAR(ld_shlibs, $1)=no
6545 fi
6546 ;;
6547 esac
6548 ;;
6549
6550 interix[[3-9]]*)
6551 _LT_TAGVAR(hardcode_direct, $1)=no
6552 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6553 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6554 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6556 # Instead, shared libraries are loaded at an image base (0x10000000 by
6557 # default) and relocated if they conflict, which is a slow very memory
6558 # consuming and fragmenting process. To avoid this, we pick a random,
6559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6561 _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'
6562 _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'
6563 ;;
6564 irix5* | irix6*)
6565 case $cc_basename in
6566 CC*)
6567 # SGI C++
6568 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6569
6570 # Archives containing C++ object files must be created using
6571 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6572 # necessary to make sure instantiated templates are included
6573 # in the archive.
6574 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6575 ;;
6576 *)
6577 if test "$GXX" = yes; then
6578 if test "$with_gnu_ld" = no; then
6579 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6580 else
6581 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6582 fi
6583 fi
6584 _LT_TAGVAR(link_all_deplibs, $1)=yes
6585 ;;
6586 esac
6587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6588 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6589 _LT_TAGVAR(inherit_rpath, $1)=yes
6590 ;;
6591
6592 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6593 case $cc_basename in
6594 KCC*)
6595 # Kuck and Associates, Inc. (KAI) C++ Compiler
6596
6597 # KCC will only create a shared library if the output file
6598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6599 # to its proper name (with version) after linking.
6600 _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'
6601 _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'
6602 # Commands to make compiler produce verbose output that lists
6603 # what "hidden" libraries, object files and flags are used when
6604 # linking a shared library.
6605 #
6606 # There doesn't appear to be a way to prevent this compiler from
6607 # explicitly linking system object files so we need to strip them
6608 # from the output so that they don't get included in the library
6609 # dependencies.
6610 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6611
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6613 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6614
6615 # Archives containing C++ object files must be created using
6616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6617 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6618 ;;
6619 icpc* | ecpc* )
6620 # Intel C++
6621 with_gnu_ld=yes
6622 # version 8.0 and above of icpc choke on multiply defined symbols
6623 # if we add $predep_objects and $postdep_objects, however 7.1 and
6624 # earlier do not add the objects themselves.
6625 case `$CC -V 2>&1` in
6626 *"Version 7."*)
6627 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628 _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'
6629 ;;
6630 *) # Version 8.0 or newer
6631 tmp_idyn=
6632 case $host_cpu in
6633 ia64*) tmp_idyn=' -i_dynamic';;
6634 esac
6635 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6636 _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'
6637 ;;
6638 esac
6639 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6640 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6641 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6642 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6643 ;;
6644 pgCC* | pgcpp*)
6645 # Portland Group C++ compiler
6646 case `$CC -V` in
6647 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6648 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6649 rm -rf $tpldir~
6650 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6651 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6652 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6653 rm -rf $tpldir~
6654 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6655 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6656 $RANLIB $oldlib'
6657 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6658 rm -rf $tpldir~
6659 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6660 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6661 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6662 rm -rf $tpldir~
6663 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6664 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6665 ;;
6666 *) # Version 6 and above use weak symbols
6667 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6668 _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'
6669 ;;
6670 esac
6671
6672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6673 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6674 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6675 ;;
6676 cxx*)
6677 # Compaq C++
6678 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6679 _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'
6680
6681 runpath_var=LD_RUN_PATH
6682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6683 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6684
6685 # Commands to make compiler produce verbose output that lists
6686 # what "hidden" libraries, object files and flags are used when
6687 # linking a shared library.
6688 #
6689 # There doesn't appear to be a way to prevent this compiler from
6690 # explicitly linking system object files so we need to strip them
6691 # from the output so that they don't get included in the library
6692 # dependencies.
6693 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6694 ;;
6695 xl* | mpixl* | bgxl*)
6696 # IBM XL 8.0 on PPC, with GNU ld
6697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6699 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6700 if test "x$supports_anon_versioning" = xyes; then
6701 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6703 echo "local: *; };" >> $output_objdir/$libname.ver~
6704 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6705 fi
6706 ;;
6707 *)
6708 case `$CC -V 2>&1 | sed 5q` in
6709 *Sun\ C*)
6710 # Sun C++ 5.9
6711 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6712 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6713 _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'
6714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6715 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6716 _LT_TAGVAR(compiler_needs_object, $1)=yes
6717
6718 # Not sure whether something based on
6719 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6720 # would be better.
6721 output_verbose_link_cmd='func_echo_all'
6722
6723 # Archives containing C++ object files must be created using
6724 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6725 # necessary to make sure instantiated templates are included
6726 # in the archive.
6727 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6728 ;;
6729 esac
6730 ;;
6731 esac
6732 ;;
6733
6734 lynxos*)
6735 # FIXME: insert proper C++ library support
6736 _LT_TAGVAR(ld_shlibs, $1)=no
6737 ;;
6738
6739 m88k*)
6740 # FIXME: insert proper C++ library support
6741 _LT_TAGVAR(ld_shlibs, $1)=no
6742 ;;
6743
6744 mvs*)
6745 case $cc_basename in
6746 cxx*)
6747 # FIXME: insert proper C++ library support
6748 _LT_TAGVAR(ld_shlibs, $1)=no
6749 ;;
6750 *)
6751 # FIXME: insert proper C++ library support
6752 _LT_TAGVAR(ld_shlibs, $1)=no
6753 ;;
6754 esac
6755 ;;
6756
6757 netbsd*)
6758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6759 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6760 wlarc=
6761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6762 _LT_TAGVAR(hardcode_direct, $1)=yes
6763 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6764 fi
6765 # Workaround some broken pre-1.5 toolchains
6766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6767 ;;
6768
6769 *nto* | *qnx*)
6770 _LT_TAGVAR(ld_shlibs, $1)=yes
6771 ;;
6772
6773 openbsd2*)
6774 # C++ shared libraries are fairly broken
6775 _LT_TAGVAR(ld_shlibs, $1)=no
6776 ;;
6777
6778 openbsd*)
6779 if test -f /usr/libexec/ld.so; then
6780 _LT_TAGVAR(hardcode_direct, $1)=yes
6781 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6782 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6783 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6786 _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'
6787 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6788 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6789 fi
6790 output_verbose_link_cmd=func_echo_all
6791 else
6792 _LT_TAGVAR(ld_shlibs, $1)=no
6793 fi
6794 ;;
6795
6796 osf3* | osf4* | osf5*)
6797 case $cc_basename in
6798 KCC*)
6799 # Kuck and Associates, Inc. (KAI) C++ Compiler
6800
6801 # KCC will only create a shared library if the output file
6802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6803 # to its proper name (with version) after linking.
6804 _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'
6805
6806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6807 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6808
6809 # Archives containing C++ object files must be created using
6810 # the KAI C++ compiler.
6811 case $host in
6812 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6813 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6814 esac
6815 ;;
6816 RCC*)
6817 # Rational C++ 2.4.1
6818 # FIXME: insert proper C++ library support
6819 _LT_TAGVAR(ld_shlibs, $1)=no
6820 ;;
6821 cxx*)
6822 case $host in
6823 osf3*)
6824 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6826 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6827 ;;
6828 *)
6829 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6831 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6832 echo "-hidden">> $lib.exp~
6833 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6834 $RM $lib.exp'
6835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6836 ;;
6837 esac
6838
6839 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6840
6841 # Commands to make compiler produce verbose output that lists
6842 # what "hidden" libraries, object files and flags are used when
6843 # linking a shared library.
6844 #
6845 # There doesn't appear to be a way to prevent this compiler from
6846 # explicitly linking system object files so we need to strip them
6847 # from the output so that they don't get included in the library
6848 # dependencies.
6849 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6850 ;;
6851 *)
6852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6853 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6854 case $host in
6855 osf3*)
6856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6857 ;;
6858 *)
6859 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6860 ;;
6861 esac
6862
6863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6864 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6865
6866 # Commands to make compiler produce verbose output that lists
6867 # what "hidden" libraries, object files and flags are used when
6868 # linking a shared library.
6869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6870
6871 else
6872 # FIXME: insert proper C++ library support
6873 _LT_TAGVAR(ld_shlibs, $1)=no
6874 fi
6875 ;;
6876 esac
6877 ;;
6878
6879 psos*)
6880 # FIXME: insert proper C++ library support
6881 _LT_TAGVAR(ld_shlibs, $1)=no
6882 ;;
6883
6884 sunos4*)
6885 case $cc_basename in
6886 CC*)
6887 # Sun C++ 4.x
6888 # FIXME: insert proper C++ library support
6889 _LT_TAGVAR(ld_shlibs, $1)=no
6890 ;;
6891 lcc*)
6892 # Lucid
6893 # FIXME: insert proper C++ library support
6894 _LT_TAGVAR(ld_shlibs, $1)=no
6895 ;;
6896 *)
6897 # FIXME: insert proper C++ library support
6898 _LT_TAGVAR(ld_shlibs, $1)=no
6899 ;;
6900 esac
6901 ;;
6902
6903 solaris*)
6904 case $cc_basename in
6905 CC* | sunCC*)
6906 # Sun C++ 4.2, 5.x and Centerline C++
6907 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6908 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6909 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6910 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6911 $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'
6912
6913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6914 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6915 case $host_os in
6916 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6917 *)
6918 # The compiler driver will combine and reorder linker options,
6919 # but understands `-z linker_flag'.
6920 # Supported since Solaris 2.6 (maybe 2.5.1?)
6921 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6922 ;;
6923 esac
6924 _LT_TAGVAR(link_all_deplibs, $1)=yes
6925
6926 output_verbose_link_cmd='func_echo_all'
6927
6928 # Archives containing C++ object files must be created using
6929 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6930 # necessary to make sure instantiated templates are included
6931 # in the archive.
6932 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6933 ;;
6934 gcx*)
6935 # Green Hills C++ Compiler
6936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6937
6938 # The C++ compiler must be used to create the archive.
6939 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6940 ;;
6941 *)
6942 # GNU C++ compiler with Solaris linker
6943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6944 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6945 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6947 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6948 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6949
6950 # Commands to make compiler produce verbose output that lists
6951 # what "hidden" libraries, object files and flags are used when
6952 # linking a shared library.
6953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6954 else
6955 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6956 # platform.
6957 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6958 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6959 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6960
6961 # Commands to make compiler produce verbose output that lists
6962 # what "hidden" libraries, object files and flags are used when
6963 # linking a shared library.
6964 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6965 fi
6966
6967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6968 case $host_os in
6969 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6970 *)
6971 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6972 ;;
6973 esac
6974 fi
6975 ;;
6976 esac
6977 ;;
6978
6979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6980 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6981 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6982 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6983 runpath_var='LD_RUN_PATH'
6984
6985 case $cc_basename in
6986 CC*)
6987 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6988 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6989 ;;
6990 *)
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6992 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6993 ;;
6994 esac
6995 ;;
6996
6997 sysv5* | sco3.2v5* | sco5v6*)
6998 # Note: We can NOT use -z defs as we might desire, because we do not
6999 # link with -lc, and that would cause any symbols used from libc to
7000 # always be unresolved, which means just about no library would
7001 # ever link correctly. If we're not using GNU ld we use -z text
7002 # though, which does catch some bad symbols but isn't as heavy-handed
7003 # as -z defs.
7004 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7005 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7006 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7007 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7008 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7009 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7010 _LT_TAGVAR(link_all_deplibs, $1)=yes
7011 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7012 runpath_var='LD_RUN_PATH'
7013
7014 case $cc_basename in
7015 CC*)
7016 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7017 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7018 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7019 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7020 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7021 '"$_LT_TAGVAR(reload_cmds, $1)"
7022 ;;
7023 *)
7024 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7025 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7026 ;;
7027 esac
7028 ;;
7029
7030 tandem*)
7031 case $cc_basename in
7032 NCC*)
7033 # NonStop-UX NCC 3.20
7034 # FIXME: insert proper C++ library support
7035 _LT_TAGVAR(ld_shlibs, $1)=no
7036 ;;
7037 *)
7038 # FIXME: insert proper C++ library support
7039 _LT_TAGVAR(ld_shlibs, $1)=no
7040 ;;
7041 esac
7042 ;;
7043
7044 vxworks*)
7045 # FIXME: insert proper C++ library support
7046 _LT_TAGVAR(ld_shlibs, $1)=no
7047 ;;
7048
7049 *)
7050 # FIXME: insert proper C++ library support
7051 _LT_TAGVAR(ld_shlibs, $1)=no
7052 ;;
7053 esac
7054
7055 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7056 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7057
7058 _LT_TAGVAR(GCC, $1)="$GXX"
7059 _LT_TAGVAR(LD, $1)="$LD"
7060
7061 ## CAVEAT EMPTOR:
7062 ## There is no encapsulation within the following macros, do not change
7063 ## the running order or otherwise move them around unless you know exactly
7064 ## what you are doing...
7065 _LT_SYS_HIDDEN_LIBDEPS($1)
7066 _LT_COMPILER_PIC($1)
7067 _LT_COMPILER_C_O($1)
7068 _LT_COMPILER_FILE_LOCKS($1)
7069 _LT_LINKER_SHLIBS($1)
7070 _LT_SYS_DYNAMIC_LINKER($1)
7071 _LT_LINKER_HARDCODE_LIBPATH($1)
7072
7073 _LT_CONFIG($1)
7074 fi # test -n "$compiler"
7075
7076 CC=$lt_save_CC
7077 CFLAGS=$lt_save_CFLAGS
7078 LDCXX=$LD
7079 LD=$lt_save_LD
7080 GCC=$lt_save_GCC
7081 with_gnu_ld=$lt_save_with_gnu_ld
7082 lt_cv_path_LDCXX=$lt_cv_path_LD
7083 lt_cv_path_LD=$lt_save_path_LD
7084 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7085 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7086 fi # test "$_lt_caught_CXX_error" != yes
7087
7088 AC_LANG_POP
7089 ])# _LT_LANG_CXX_CONFIG
7090
7091
7092 # _LT_FUNC_STRIPNAME_CNF
7093 # ----------------------
7094 # func_stripname_cnf prefix suffix name
7095 # strip PREFIX and SUFFIX off of NAME.
7096 # PREFIX and SUFFIX must not contain globbing or regex special
7097 # characters, hashes, percent signs, but SUFFIX may contain a leading
7098 # dot (in which case that matches only a dot).
7099 #
7100 # This function is identical to the (non-XSI) version of func_stripname,
7101 # except this one can be used by m4 code that may be executed by configure,
7102 # rather than the libtool script.
7103 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7104 AC_REQUIRE([_LT_DECL_SED])
7105 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7106 func_stripname_cnf ()
7107 {
7108 case ${2} in
7109 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7110 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7111 esac
7112 } # func_stripname_cnf
7113 ])# _LT_FUNC_STRIPNAME_CNF
7114
7115 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7116 # ---------------------------------
7117 # Figure out "hidden" library dependencies from verbose
7118 # compiler output when linking a shared library.
7119 # Parse the compiler output and extract the necessary
7120 # objects, libraries and library flags.
7121 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7122 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7123 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7124 # Dependencies to place before and after the object being linked:
7125 _LT_TAGVAR(predep_objects, $1)=
7126 _LT_TAGVAR(postdep_objects, $1)=
7127 _LT_TAGVAR(predeps, $1)=
7128 _LT_TAGVAR(postdeps, $1)=
7129 _LT_TAGVAR(compiler_lib_search_path, $1)=
7130
7131 dnl we can't use the lt_simple_compile_test_code here,
7132 dnl because it contains code intended for an executable,
7133 dnl not a library. It's possible we should let each
7134 dnl tag define a new lt_????_link_test_code variable,
7135 dnl but it's only used here...
7136 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7137 int a;
7138 void foo (void) { a = 0; }
7139 _LT_EOF
7140 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7141 class Foo
7142 {
7143 public:
7144 Foo (void) { a = 0; }
7145 private:
7146 int a;
7147 };
7148 _LT_EOF
7149 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7150 subroutine foo
7151 implicit none
7152 integer*4 a
7153 a=0
7154 return
7155 end
7156 _LT_EOF
7157 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7158 subroutine foo
7159 implicit none
7160 integer a
7161 a=0
7162 return
7163 end
7164 _LT_EOF
7165 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7166 public class foo {
7167 private int a;
7168 public void bar (void) {
7169 a = 0;
7170 }
7171 };
7172 _LT_EOF
7173 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7174 package foo
7175 func foo() {
7176 }
7177 _LT_EOF
7178 ])
7179
7180 _lt_libdeps_save_CFLAGS=$CFLAGS
7181 case "$CC $CFLAGS " in #(
7182 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7183 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7184 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7185 esac
7186
7187 dnl Parse the compiler output and extract the necessary
7188 dnl objects, libraries and library flags.
7189 if AC_TRY_EVAL(ac_compile); then
7190 # Parse the compiler output and extract the necessary
7191 # objects, libraries and library flags.
7192
7193 # Sentinel used to keep track of whether or not we are before
7194 # the conftest object file.
7195 pre_test_object_deps_done=no
7196
7197 for p in `eval "$output_verbose_link_cmd"`; do
7198 case ${prev}${p} in
7199
7200 -L* | -R* | -l*)
7201 # Some compilers place space between "-{L,R}" and the path.
7202 # Remove the space.
7203 if test $p = "-L" ||
7204 test $p = "-R"; then
7205 prev=$p
7206 continue
7207 fi
7208
7209 # Expand the sysroot to ease extracting the directories later.
7210 if test -z "$prev"; then
7211 case $p in
7212 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7213 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7214 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7215 esac
7216 fi
7217 case $p in
7218 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7219 esac
7220 if test "$pre_test_object_deps_done" = no; then
7221 case ${prev} in
7222 -L | -R)
7223 # Internal compiler library paths should come after those
7224 # provided the user. The postdeps already come after the
7225 # user supplied libs so there is no need to process them.
7226 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7227 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7228 else
7229 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7230 fi
7231 ;;
7232 # The "-l" case would never come before the object being
7233 # linked, so don't bother handling this case.
7234 esac
7235 else
7236 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7237 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7238 else
7239 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7240 fi
7241 fi
7242 prev=
7243 ;;
7244
7245 *.lto.$objext) ;; # Ignore GCC LTO objects
7246 *.$objext)
7247 # This assumes that the test object file only shows up
7248 # once in the compiler output.
7249 if test "$p" = "conftest.$objext"; then
7250 pre_test_object_deps_done=yes
7251 continue
7252 fi
7253
7254 if test "$pre_test_object_deps_done" = no; then
7255 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7256 _LT_TAGVAR(predep_objects, $1)="$p"
7257 else
7258 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7259 fi
7260 else
7261 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7262 _LT_TAGVAR(postdep_objects, $1)="$p"
7263 else
7264 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7265 fi
7266 fi
7267 ;;
7268
7269 *) ;; # Ignore the rest.
7270
7271 esac
7272 done
7273
7274 # Clean up.
7275 rm -f a.out a.exe
7276 else
7277 echo "libtool.m4: error: problem compiling $1 test program"
7278 fi
7279
7280 $RM -f confest.$objext
7281 CFLAGS=$_lt_libdeps_save_CFLAGS
7282
7283 # PORTME: override above test on systems where it is broken
7284 m4_if([$1], [CXX],
7285 [case $host_os in
7286 interix[[3-9]]*)
7287 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7288 # hack all around it, let's just trust "g++" to DTRT.
7289 _LT_TAGVAR(predep_objects,$1)=
7290 _LT_TAGVAR(postdep_objects,$1)=
7291 _LT_TAGVAR(postdeps,$1)=
7292 ;;
7293
7294 linux*)
7295 case `$CC -V 2>&1 | sed 5q` in
7296 *Sun\ C*)
7297 # Sun C++ 5.9
7298
7299 # The more standards-conforming stlport4 library is
7300 # incompatible with the Cstd library. Avoid specifying
7301 # it if it's in CXXFLAGS. Ignore libCrun as
7302 # -library=stlport4 depends on it.
7303 case " $CXX $CXXFLAGS " in
7304 *" -library=stlport4 "*)
7305 solaris_use_stlport4=yes
7306 ;;
7307 esac
7308
7309 if test "$solaris_use_stlport4" != yes; then
7310 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7311 fi
7312 ;;
7313 esac
7314 ;;
7315
7316 solaris*)
7317 case $cc_basename in
7318 CC* | sunCC*)
7319 # The more standards-conforming stlport4 library is
7320 # incompatible with the Cstd library. Avoid specifying
7321 # it if it's in CXXFLAGS. Ignore libCrun as
7322 # -library=stlport4 depends on it.
7323 case " $CXX $CXXFLAGS " in
7324 *" -library=stlport4 "*)
7325 solaris_use_stlport4=yes
7326 ;;
7327 esac
7328
7329 # Adding this requires a known-good setup of shared libraries for
7330 # Sun compiler versions before 5.6, else PIC objects from an old
7331 # archive will be linked into the output, leading to subtle bugs.
7332 if test "$solaris_use_stlport4" != yes; then
7333 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7334 fi
7335 ;;
7336 esac
7337 ;;
7338 esac
7339 ])
7340
7341 case " $_LT_TAGVAR(postdeps, $1) " in
7342 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7343 esac
7344 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7345 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7346 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7347 fi
7348 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7349 [The directories searched by this compiler when creating a shared library])
7350 _LT_TAGDECL([], [predep_objects], [1],
7351 [Dependencies to place before and after the objects being linked to
7352 create a shared library])
7353 _LT_TAGDECL([], [postdep_objects], [1])
7354 _LT_TAGDECL([], [predeps], [1])
7355 _LT_TAGDECL([], [postdeps], [1])
7356 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7357 [The library search path used internally by the compiler when linking
7358 a shared library])
7359 ])# _LT_SYS_HIDDEN_LIBDEPS
7360
7361
7362 # _LT_LANG_F77_CONFIG([TAG])
7363 # --------------------------
7364 # Ensure that the configuration variables for a Fortran 77 compiler are
7365 # suitably defined. These variables are subsequently used by _LT_CONFIG
7366 # to write the compiler configuration to `libtool'.
7367 m4_defun([_LT_LANG_F77_CONFIG],
7368 [AC_LANG_PUSH(Fortran 77)
7369 if test -z "$F77" || test "X$F77" = "Xno"; then
7370 _lt_disable_F77=yes
7371 fi
7372
7373 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7374 _LT_TAGVAR(allow_undefined_flag, $1)=
7375 _LT_TAGVAR(always_export_symbols, $1)=no
7376 _LT_TAGVAR(archive_expsym_cmds, $1)=
7377 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7378 _LT_TAGVAR(hardcode_direct, $1)=no
7379 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7380 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7381 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7382 _LT_TAGVAR(hardcode_minus_L, $1)=no
7383 _LT_TAGVAR(hardcode_automatic, $1)=no
7384 _LT_TAGVAR(inherit_rpath, $1)=no
7385 _LT_TAGVAR(module_cmds, $1)=
7386 _LT_TAGVAR(module_expsym_cmds, $1)=
7387 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7388 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7389 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7390 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7391 _LT_TAGVAR(no_undefined_flag, $1)=
7392 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7393 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7394
7395 # Source file extension for f77 test sources.
7396 ac_ext=f
7397
7398 # Object file extension for compiled f77 test sources.
7399 objext=o
7400 _LT_TAGVAR(objext, $1)=$objext
7401
7402 # No sense in running all these tests if we already determined that
7403 # the F77 compiler isn't working. Some variables (like enable_shared)
7404 # are currently assumed to apply to all compilers on this platform,
7405 # and will be corrupted by setting them based on a non-working compiler.
7406 if test "$_lt_disable_F77" != yes; then
7407 # Code to be used in simple compile tests
7408 lt_simple_compile_test_code="\
7409 subroutine t
7410 return
7411 end
7412 "
7413
7414 # Code to be used in simple link tests
7415 lt_simple_link_test_code="\
7416 program t
7417 end
7418 "
7419
7420 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7421 _LT_TAG_COMPILER
7422
7423 # save warnings/boilerplate of simple test code
7424 _LT_COMPILER_BOILERPLATE
7425 _LT_LINKER_BOILERPLATE
7426
7427 # Allow CC to be a program name with arguments.
7428 lt_save_CC="$CC"
7429 lt_save_GCC=$GCC
7430 lt_save_CFLAGS=$CFLAGS
7431 CC=${F77-"f77"}
7432 CFLAGS=$FFLAGS
7433 compiler=$CC
7434 _LT_TAGVAR(compiler, $1)=$CC
7435 _LT_CC_BASENAME([$compiler])
7436 GCC=$G77
7437 if test -n "$compiler"; then
7438 AC_MSG_CHECKING([if libtool supports shared libraries])
7439 AC_MSG_RESULT([$can_build_shared])
7440
7441 AC_MSG_CHECKING([whether to build shared libraries])
7442 test "$can_build_shared" = "no" && enable_shared=no
7443
7444 # On AIX, shared libraries and static libraries use the same namespace, and
7445 # are all built from PIC.
7446 case $host_os in
7447 aix3*)
7448 test "$enable_shared" = yes && enable_static=no
7449 if test -n "$RANLIB"; then
7450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7451 postinstall_cmds='$RANLIB $lib'
7452 fi
7453 ;;
7454 aix[[4-9]]*)
7455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7456 test "$enable_shared" = yes && enable_static=no
7457 fi
7458 ;;
7459 esac
7460 AC_MSG_RESULT([$enable_shared])
7461
7462 AC_MSG_CHECKING([whether to build static libraries])
7463 # Make sure either enable_shared or enable_static is yes.
7464 test "$enable_shared" = yes || enable_static=yes
7465 AC_MSG_RESULT([$enable_static])
7466
7467 _LT_TAGVAR(GCC, $1)="$G77"
7468 _LT_TAGVAR(LD, $1)="$LD"
7469
7470 ## CAVEAT EMPTOR:
7471 ## There is no encapsulation within the following macros, do not change
7472 ## the running order or otherwise move them around unless you know exactly
7473 ## what you are doing...
7474 _LT_COMPILER_PIC($1)
7475 _LT_COMPILER_C_O($1)
7476 _LT_COMPILER_FILE_LOCKS($1)
7477 _LT_LINKER_SHLIBS($1)
7478 _LT_SYS_DYNAMIC_LINKER($1)
7479 _LT_LINKER_HARDCODE_LIBPATH($1)
7480
7481 _LT_CONFIG($1)
7482 fi # test -n "$compiler"
7483
7484 GCC=$lt_save_GCC
7485 CC="$lt_save_CC"
7486 CFLAGS="$lt_save_CFLAGS"
7487 fi # test "$_lt_disable_F77" != yes
7488
7489 AC_LANG_POP
7490 ])# _LT_LANG_F77_CONFIG
7491
7492
7493 # _LT_LANG_FC_CONFIG([TAG])
7494 # -------------------------
7495 # Ensure that the configuration variables for a Fortran compiler are
7496 # suitably defined. These variables are subsequently used by _LT_CONFIG
7497 # to write the compiler configuration to `libtool'.
7498 m4_defun([_LT_LANG_FC_CONFIG],
7499 [AC_LANG_PUSH(Fortran)
7500
7501 if test -z "$FC" || test "X$FC" = "Xno"; then
7502 _lt_disable_FC=yes
7503 fi
7504
7505 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7506 _LT_TAGVAR(allow_undefined_flag, $1)=
7507 _LT_TAGVAR(always_export_symbols, $1)=no
7508 _LT_TAGVAR(archive_expsym_cmds, $1)=
7509 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7510 _LT_TAGVAR(hardcode_direct, $1)=no
7511 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7513 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7514 _LT_TAGVAR(hardcode_minus_L, $1)=no
7515 _LT_TAGVAR(hardcode_automatic, $1)=no
7516 _LT_TAGVAR(inherit_rpath, $1)=no
7517 _LT_TAGVAR(module_cmds, $1)=
7518 _LT_TAGVAR(module_expsym_cmds, $1)=
7519 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7520 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7521 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7522 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7523 _LT_TAGVAR(no_undefined_flag, $1)=
7524 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7525 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7526
7527 # Source file extension for fc test sources.
7528 ac_ext=${ac_fc_srcext-f}
7529
7530 # Object file extension for compiled fc test sources.
7531 objext=o
7532 _LT_TAGVAR(objext, $1)=$objext
7533
7534 # No sense in running all these tests if we already determined that
7535 # the FC compiler isn't working. Some variables (like enable_shared)
7536 # are currently assumed to apply to all compilers on this platform,
7537 # and will be corrupted by setting them based on a non-working compiler.
7538 if test "$_lt_disable_FC" != yes; then
7539 # Code to be used in simple compile tests
7540 lt_simple_compile_test_code="\
7541 subroutine t
7542 return
7543 end
7544 "
7545
7546 # Code to be used in simple link tests
7547 lt_simple_link_test_code="\
7548 program t
7549 end
7550 "
7551
7552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7553 _LT_TAG_COMPILER
7554
7555 # save warnings/boilerplate of simple test code
7556 _LT_COMPILER_BOILERPLATE
7557 _LT_LINKER_BOILERPLATE
7558
7559 # Allow CC to be a program name with arguments.
7560 lt_save_CC="$CC"
7561 lt_save_GCC=$GCC
7562 lt_save_CFLAGS=$CFLAGS
7563 CC=${FC-"f95"}
7564 CFLAGS=$FCFLAGS
7565 compiler=$CC
7566 GCC=$ac_cv_fc_compiler_gnu
7567
7568 _LT_TAGVAR(compiler, $1)=$CC
7569 _LT_CC_BASENAME([$compiler])
7570
7571 if test -n "$compiler"; then
7572 AC_MSG_CHECKING([if libtool supports shared libraries])
7573 AC_MSG_RESULT([$can_build_shared])
7574
7575 AC_MSG_CHECKING([whether to build shared libraries])
7576 test "$can_build_shared" = "no" && enable_shared=no
7577
7578 # On AIX, shared libraries and static libraries use the same namespace, and
7579 # are all built from PIC.
7580 case $host_os in
7581 aix3*)
7582 test "$enable_shared" = yes && enable_static=no
7583 if test -n "$RANLIB"; then
7584 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7585 postinstall_cmds='$RANLIB $lib'
7586 fi
7587 ;;
7588 aix[[4-9]]*)
7589 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7590 test "$enable_shared" = yes && enable_static=no
7591 fi
7592 ;;
7593 esac
7594 AC_MSG_RESULT([$enable_shared])
7595
7596 AC_MSG_CHECKING([whether to build static libraries])
7597 # Make sure either enable_shared or enable_static is yes.
7598 test "$enable_shared" = yes || enable_static=yes
7599 AC_MSG_RESULT([$enable_static])
7600
7601 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7602 _LT_TAGVAR(LD, $1)="$LD"
7603
7604 ## CAVEAT EMPTOR:
7605 ## There is no encapsulation within the following macros, do not change
7606 ## the running order or otherwise move them around unless you know exactly
7607 ## what you are doing...
7608 _LT_SYS_HIDDEN_LIBDEPS($1)
7609 _LT_COMPILER_PIC($1)
7610 _LT_COMPILER_C_O($1)
7611 _LT_COMPILER_FILE_LOCKS($1)
7612 _LT_LINKER_SHLIBS($1)
7613 _LT_SYS_DYNAMIC_LINKER($1)
7614 _LT_LINKER_HARDCODE_LIBPATH($1)
7615
7616 _LT_CONFIG($1)
7617 fi # test -n "$compiler"
7618
7619 GCC=$lt_save_GCC
7620 CC=$lt_save_CC
7621 CFLAGS=$lt_save_CFLAGS
7622 fi # test "$_lt_disable_FC" != yes
7623
7624 AC_LANG_POP
7625 ])# _LT_LANG_FC_CONFIG
7626
7627
7628 # _LT_LANG_GCJ_CONFIG([TAG])
7629 # --------------------------
7630 # Ensure that the configuration variables for the GNU Java Compiler compiler
7631 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7632 # to write the compiler configuration to `libtool'.
7633 m4_defun([_LT_LANG_GCJ_CONFIG],
7634 [AC_REQUIRE([LT_PROG_GCJ])dnl
7635 AC_LANG_SAVE
7636
7637 # Source file extension for Java test sources.
7638 ac_ext=java
7639
7640 # Object file extension for compiled Java test sources.
7641 objext=o
7642 _LT_TAGVAR(objext, $1)=$objext
7643
7644 # Code to be used in simple compile tests
7645 lt_simple_compile_test_code="class foo {}"
7646
7647 # Code to be used in simple link tests
7648 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7649
7650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7651 _LT_TAG_COMPILER
7652
7653 # save warnings/boilerplate of simple test code
7654 _LT_COMPILER_BOILERPLATE
7655 _LT_LINKER_BOILERPLATE
7656
7657 # Allow CC to be a program name with arguments.
7658 lt_save_CC=$CC
7659 lt_save_CFLAGS=$CFLAGS
7660 lt_save_GCC=$GCC
7661 GCC=yes
7662 CC=${GCJ-"gcj"}
7663 CFLAGS=$GCJFLAGS
7664 compiler=$CC
7665 _LT_TAGVAR(compiler, $1)=$CC
7666 _LT_TAGVAR(LD, $1)="$LD"
7667 _LT_CC_BASENAME([$compiler])
7668
7669 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7670 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7671
7672 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7673 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7674 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7675
7676 if test -n "$compiler"; then
7677 _LT_COMPILER_NO_RTTI($1)
7678 _LT_COMPILER_PIC($1)
7679 _LT_COMPILER_C_O($1)
7680 _LT_COMPILER_FILE_LOCKS($1)
7681 _LT_LINKER_SHLIBS($1)
7682 _LT_LINKER_HARDCODE_LIBPATH($1)
7683
7684 _LT_CONFIG($1)
7685 fi
7686
7687 AC_LANG_RESTORE
7688
7689 GCC=$lt_save_GCC
7690 CC=$lt_save_CC
7691 CFLAGS=$lt_save_CFLAGS
7692 ])# _LT_LANG_GCJ_CONFIG
7693
7694
7695 # _LT_LANG_GO_CONFIG([TAG])
7696 # --------------------------
7697 # Ensure that the configuration variables for the GNU Go compiler
7698 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7699 # to write the compiler configuration to `libtool'.
7700 m4_defun([_LT_LANG_GO_CONFIG],
7701 [AC_REQUIRE([LT_PROG_GO])dnl
7702 AC_LANG_SAVE
7703
7704 # Source file extension for Go test sources.
7705 ac_ext=go
7706
7707 # Object file extension for compiled Go test sources.
7708 objext=o
7709 _LT_TAGVAR(objext, $1)=$objext
7710
7711 # Code to be used in simple compile tests
7712 lt_simple_compile_test_code="package main; func main() { }"
7713
7714 # Code to be used in simple link tests
7715 lt_simple_link_test_code='package main; func main() { }'
7716
7717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7718 _LT_TAG_COMPILER
7719
7720 # save warnings/boilerplate of simple test code
7721 _LT_COMPILER_BOILERPLATE
7722 _LT_LINKER_BOILERPLATE
7723
7724 # Allow CC to be a program name with arguments.
7725 lt_save_CC=$CC
7726 lt_save_CFLAGS=$CFLAGS
7727 lt_save_GCC=$GCC
7728 GCC=yes
7729 CC=${GOC-"gccgo"}
7730 CFLAGS=$GOFLAGS
7731 compiler=$CC
7732 _LT_TAGVAR(compiler, $1)=$CC
7733 _LT_TAGVAR(LD, $1)="$LD"
7734 _LT_CC_BASENAME([$compiler])
7735
7736 # Go did not exist at the time GCC didn't implicitly link libc in.
7737 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7738
7739 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7740 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7741 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7742
7743 if test -n "$compiler"; then
7744 _LT_COMPILER_NO_RTTI($1)
7745 _LT_COMPILER_PIC($1)
7746 _LT_COMPILER_C_O($1)
7747 _LT_COMPILER_FILE_LOCKS($1)
7748 _LT_LINKER_SHLIBS($1)
7749 _LT_LINKER_HARDCODE_LIBPATH($1)
7750
7751 _LT_CONFIG($1)
7752 fi
7753
7754 AC_LANG_RESTORE
7755
7756 GCC=$lt_save_GCC
7757 CC=$lt_save_CC
7758 CFLAGS=$lt_save_CFLAGS
7759 ])# _LT_LANG_GO_CONFIG
7760
7761
7762 # _LT_LANG_RC_CONFIG([TAG])
7763 # -------------------------
7764 # Ensure that the configuration variables for the Windows resource compiler
7765 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7766 # to write the compiler configuration to `libtool'.
7767 m4_defun([_LT_LANG_RC_CONFIG],
7768 [AC_REQUIRE([LT_PROG_RC])dnl
7769 AC_LANG_SAVE
7770
7771 # Source file extension for RC test sources.
7772 ac_ext=rc
7773
7774 # Object file extension for compiled RC test sources.
7775 objext=o
7776 _LT_TAGVAR(objext, $1)=$objext
7777
7778 # Code to be used in simple compile tests
7779 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7780
7781 # Code to be used in simple link tests
7782 lt_simple_link_test_code="$lt_simple_compile_test_code"
7783
7784 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7785 _LT_TAG_COMPILER
7786
7787 # save warnings/boilerplate of simple test code
7788 _LT_COMPILER_BOILERPLATE
7789 _LT_LINKER_BOILERPLATE
7790
7791 # Allow CC to be a program name with arguments.
7792 lt_save_CC="$CC"
7793 lt_save_CFLAGS=$CFLAGS
7794 lt_save_GCC=$GCC
7795 GCC=
7796 CC=${RC-"windres"}
7797 CFLAGS=
7798 compiler=$CC
7799 _LT_TAGVAR(compiler, $1)=$CC
7800 _LT_CC_BASENAME([$compiler])
7801 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7802
7803 if test -n "$compiler"; then
7804 :
7805 _LT_CONFIG($1)
7806 fi
7807
7808 GCC=$lt_save_GCC
7809 AC_LANG_RESTORE
7810 CC=$lt_save_CC
7811 CFLAGS=$lt_save_CFLAGS
7812 ])# _LT_LANG_RC_CONFIG
7813
7814
7815 # LT_PROG_GCJ
7816 # -----------
7817 AC_DEFUN([LT_PROG_GCJ],
7818 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7819 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7820 [AC_CHECK_TOOL(GCJ, gcj,)
7821 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7822 AC_SUBST(GCJFLAGS)])])[]dnl
7823 ])
7824
7825 # Old name:
7826 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7827 dnl aclocal-1.4 backwards compatibility:
7828 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7829
7830
7831 # LT_PROG_GO
7832 # ----------
7833 AC_DEFUN([LT_PROG_GO],
7834 [AC_CHECK_TOOL(GOC, gccgo,)
7835 ])
7836
7837
7838 # LT_PROG_RC
7839 # ----------
7840 AC_DEFUN([LT_PROG_RC],
7841 [AC_CHECK_TOOL(RC, windres,)
7842 ])
7843
7844 # Old name:
7845 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7846 dnl aclocal-1.4 backwards compatibility:
7847 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7848
7849
7850 # _LT_DECL_EGREP
7851 # --------------
7852 # If we don't have a new enough Autoconf to choose the best grep
7853 # available, choose the one first in the user's PATH.
7854 m4_defun([_LT_DECL_EGREP],
7855 [AC_REQUIRE([AC_PROG_EGREP])dnl
7856 AC_REQUIRE([AC_PROG_FGREP])dnl
7857 test -z "$GREP" && GREP=grep
7858 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7859 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7860 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7861 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7862 AC_SUBST([GREP])
7863 ])
7864
7865
7866 # _LT_DECL_OBJDUMP
7867 # --------------
7868 # If we don't have a new enough Autoconf to choose the best objdump
7869 # available, choose the one first in the user's PATH.
7870 m4_defun([_LT_DECL_OBJDUMP],
7871 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7872 test -z "$OBJDUMP" && OBJDUMP=objdump
7873 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7874 AC_SUBST([OBJDUMP])
7875 ])
7876
7877 # _LT_DECL_DLLTOOL
7878 # ----------------
7879 # Ensure DLLTOOL variable is set.
7880 m4_defun([_LT_DECL_DLLTOOL],
7881 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7882 test -z "$DLLTOOL" && DLLTOOL=dlltool
7883 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7884 AC_SUBST([DLLTOOL])
7885 ])
7886
7887 # _LT_DECL_SED
7888 # ------------
7889 # Check for a fully-functional sed program, that truncates
7890 # as few characters as possible. Prefer GNU sed if found.
7891 m4_defun([_LT_DECL_SED],
7892 [AC_PROG_SED
7893 test -z "$SED" && SED=sed
7894 Xsed="$SED -e 1s/^X//"
7895 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7896 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7897 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7898 ])# _LT_DECL_SED
7899
7900 m4_ifndef([AC_PROG_SED], [
7901 # NOTE: This macro has been submitted for inclusion into #
7902 # GNU Autoconf as AC_PROG_SED. When it is available in #
7903 # a released version of Autoconf we should remove this #
7904 # macro and use it instead. #
7905
7906 m4_defun([AC_PROG_SED],
7907 [AC_MSG_CHECKING([for a sed that does not truncate output])
7908 AC_CACHE_VAL(lt_cv_path_SED,
7909 [# Loop through the user's path and test for sed and gsed.
7910 # Then use that list of sed's as ones to test for truncation.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for lt_ac_prog in sed gsed; do
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7919 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7920 fi
7921 done
7922 done
7923 done
7924 IFS=$as_save_IFS
7925 lt_ac_max=0
7926 lt_ac_count=0
7927 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7928 # along with /bin/sed that truncates output.
7929 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7930 test ! -f $lt_ac_sed && continue
7931 cat /dev/null > conftest.in
7932 lt_ac_count=0
7933 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7934 # Check for GNU sed and select it if it is found.
7935 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7936 lt_cv_path_SED=$lt_ac_sed
7937 break
7938 fi
7939 while true; do
7940 cat conftest.in conftest.in >conftest.tmp
7941 mv conftest.tmp conftest.in
7942 cp conftest.in conftest.nl
7943 echo >>conftest.nl
7944 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7945 cmp -s conftest.out conftest.nl || break
7946 # 10000 chars as input seems more than enough
7947 test $lt_ac_count -gt 10 && break
7948 lt_ac_count=`expr $lt_ac_count + 1`
7949 if test $lt_ac_count -gt $lt_ac_max; then
7950 lt_ac_max=$lt_ac_count
7951 lt_cv_path_SED=$lt_ac_sed
7952 fi
7953 done
7954 done
7955 ])
7956 SED=$lt_cv_path_SED
7957 AC_SUBST([SED])
7958 AC_MSG_RESULT([$SED])
7959 ])#AC_PROG_SED
7960 ])#m4_ifndef
7961
7962 # Old name:
7963 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7964 dnl aclocal-1.4 backwards compatibility:
7965 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7966
7967
7968 # _LT_CHECK_SHELL_FEATURES
7969 # ------------------------
7970 # Find out whether the shell is Bourne or XSI compatible,
7971 # or has some other useful features.
7972 m4_defun([_LT_CHECK_SHELL_FEATURES],
7973 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7974 # Try some XSI features
7975 xsi_shell=no
7976 ( _lt_dummy="a/b/c"
7977 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7978 = c,a/b,b/c, \
7979 && eval 'test $(( 1 + 1 )) -eq 2 \
7980 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7981 && xsi_shell=yes
7982 AC_MSG_RESULT([$xsi_shell])
7983 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7984
7985 AC_MSG_CHECKING([whether the shell understands "+="])
7986 lt_shell_append=no
7987 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7988 >/dev/null 2>&1 \
7989 && lt_shell_append=yes
7990 AC_MSG_RESULT([$lt_shell_append])
7991 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7992
7993 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7994 lt_unset=unset
7995 else
7996 lt_unset=false
7997 fi
7998 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7999
8000 # test EBCDIC or ASCII
8001 case `echo X|tr X '\101'` in
8002 A) # ASCII based system
8003 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8004 lt_SP2NL='tr \040 \012'
8005 lt_NL2SP='tr \015\012 \040\040'
8006 ;;
8007 *) # EBCDIC based system
8008 lt_SP2NL='tr \100 \n'
8009 lt_NL2SP='tr \r\n \100\100'
8010 ;;
8011 esac
8012 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8013 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8014 ])# _LT_CHECK_SHELL_FEATURES
8015
8016
8017 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8018 # ------------------------------------------------------
8019 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8020 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8021 m4_defun([_LT_PROG_FUNCTION_REPLACE],
8022 [dnl {
8023 sed -e '/^$1 ()$/,/^} # $1 /c\
8024 $1 ()\
8025 {\
8026 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8027 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8028 && mv -f "$cfgfile.tmp" "$cfgfile" \
8029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8030 test 0 -eq $? || _lt_function_replace_fail=:
8031 ])
8032
8033
8034 # _LT_PROG_REPLACE_SHELLFNS
8035 # -------------------------
8036 # Replace existing portable implementations of several shell functions with
8037 # equivalent extended shell implementations where those features are available..
8038 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8039 [if test x"$xsi_shell" = xyes; then
8040 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8041 case ${1} in
8042 */*) func_dirname_result="${1%/*}${2}" ;;
8043 * ) func_dirname_result="${3}" ;;
8044 esac])
8045
8046 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8047 func_basename_result="${1##*/}"])
8048
8049 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8050 case ${1} in
8051 */*) func_dirname_result="${1%/*}${2}" ;;
8052 * ) func_dirname_result="${3}" ;;
8053 esac
8054 func_basename_result="${1##*/}"])
8055
8056 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8057 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8058 # positional parameters, so assign one to ordinary parameter first.
8059 func_stripname_result=${3}
8060 func_stripname_result=${func_stripname_result#"${1}"}
8061 func_stripname_result=${func_stripname_result%"${2}"}])
8062
8063 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8064 func_split_long_opt_name=${1%%=*}
8065 func_split_long_opt_arg=${1#*=}])
8066
8067 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8068 func_split_short_opt_arg=${1#??}
8069 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8070
8071 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8072 case ${1} in
8073 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8074 *) func_lo2o_result=${1} ;;
8075 esac])
8076
8077 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8078
8079 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8080
8081 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8082 fi
8083
8084 if test x"$lt_shell_append" = xyes; then
8085 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8086
8087 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8088 func_quote_for_eval "${2}"
8089 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8090 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8091
8092 # Save a `func_append' function call where possible by direct use of '+='
8093 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8094 && mv -f "$cfgfile.tmp" "$cfgfile" \
8095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8096 test 0 -eq $? || _lt_function_replace_fail=:
8097 else
8098 # Save a `func_append' function call even when '+=' is not available
8099 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8100 && mv -f "$cfgfile.tmp" "$cfgfile" \
8101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8102 test 0 -eq $? || _lt_function_replace_fail=:
8103 fi
8104
8105 if test x"$_lt_function_replace_fail" = x":"; then
8106 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8107 fi
8108 ])
8109
8110 # _LT_PATH_CONVERSION_FUNCTIONS
8111 # -----------------------------
8112 # Determine which file name conversion functions should be used by
8113 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8114 # for certain cross-compile configurations and native mingw.
8115 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8116 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8117 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8118 AC_MSG_CHECKING([how to convert $build file names to $host format])
8119 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8120 [case $host in
8121 *-*-mingw* )
8122 case $build in
8123 *-*-mingw* ) # actually msys
8124 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8125 ;;
8126 *-*-cygwin* )
8127 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8128 ;;
8129 * ) # otherwise, assume *nix
8130 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8131 ;;
8132 esac
8133 ;;
8134 *-*-cygwin* )
8135 case $build in
8136 *-*-mingw* ) # actually msys
8137 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8138 ;;
8139 *-*-cygwin* )
8140 lt_cv_to_host_file_cmd=func_convert_file_noop
8141 ;;
8142 * ) # otherwise, assume *nix
8143 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8144 ;;
8145 esac
8146 ;;
8147 * ) # unhandled hosts (and "normal" native builds)
8148 lt_cv_to_host_file_cmd=func_convert_file_noop
8149 ;;
8150 esac
8151 ])
8152 to_host_file_cmd=$lt_cv_to_host_file_cmd
8153 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8154 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8155 [0], [convert $build file names to $host format])dnl
8156
8157 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8158 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8159 [#assume ordinary cross tools, or native build.
8160 lt_cv_to_tool_file_cmd=func_convert_file_noop
8161 case $host in
8162 *-*-mingw* )
8163 case $build in
8164 *-*-mingw* ) # actually msys
8165 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8166 ;;
8167 esac
8168 ;;
8169 esac
8170 ])
8171 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8172 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8173 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8174 [0], [convert $build files to toolchain format])dnl
8175 ])# _LT_PATH_CONVERSION_FUNCTIONS
8176
8177 # Helper functions for option handling. -*- Autoconf -*-
8178 #
8179 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8180 # Inc.
8181 # Written by Gary V. Vaughan, 2004
8182 #
8183 # This file is free software; the Free Software Foundation gives
8184 # unlimited permission to copy and/or distribute it, with or without
8185 # modifications, as long as this notice is preserved.
8186
8187 # serial 7 ltoptions.m4
8188
8189 # This is to help aclocal find these macros, as it can't see m4_define.
8190 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8191
8192
8193 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8194 # ------------------------------------------
8195 m4_define([_LT_MANGLE_OPTION],
8196 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8197
8198
8199 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8200 # ---------------------------------------
8201 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8202 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8203 # saved as a flag.
8204 m4_define([_LT_SET_OPTION],
8205 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8206 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8207 _LT_MANGLE_DEFUN([$1], [$2]),
8208 [m4_warning([Unknown $1 option `$2'])])[]dnl
8209 ])
8210
8211
8212 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8213 # ------------------------------------------------------------
8214 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8215 m4_define([_LT_IF_OPTION],
8216 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8217
8218
8219 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8220 # -------------------------------------------------------
8221 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8222 # are set.
8223 m4_define([_LT_UNLESS_OPTIONS],
8224 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8225 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8226 [m4_define([$0_found])])])[]dnl
8227 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8228 ])[]dnl
8229 ])
8230
8231
8232 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8233 # ----------------------------------------
8234 # OPTION-LIST is a space-separated list of Libtool options associated
8235 # with MACRO-NAME. If any OPTION has a matching handler declared with
8236 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8237 # the unknown option and exit.
8238 m4_defun([_LT_SET_OPTIONS],
8239 [# Set options
8240 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8241 [_LT_SET_OPTION([$1], _LT_Option)])
8242
8243 m4_if([$1],[LT_INIT],[
8244 dnl
8245 dnl Simply set some default values (i.e off) if boolean options were not
8246 dnl specified:
8247 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8248 ])
8249 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8250 ])
8251 dnl
8252 dnl If no reference was made to various pairs of opposing options, then
8253 dnl we run the default mode handler for the pair. For example, if neither
8254 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8255 dnl archives by default:
8256 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8257 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8258 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8259 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8260 [_LT_ENABLE_FAST_INSTALL])
8261 ])
8262 ])# _LT_SET_OPTIONS
8263
8264
8265
8266 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8267 # -----------------------------------------
8268 m4_define([_LT_MANGLE_DEFUN],
8269 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8270
8271
8272 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8273 # -----------------------------------------------
8274 m4_define([LT_OPTION_DEFINE],
8275 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8276 ])# LT_OPTION_DEFINE
8277
8278
8279 # dlopen
8280 # ------
8281 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8282 ])
8283
8284 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8285 [_LT_SET_OPTION([LT_INIT], [dlopen])
8286 AC_DIAGNOSE([obsolete],
8287 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8288 put the `dlopen' option into LT_INIT's first parameter.])
8289 ])
8290
8291 dnl aclocal-1.4 backwards compatibility:
8292 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8293
8294
8295 # win32-dll
8296 # ---------
8297 # Declare package support for building win32 dll's.
8298 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8299 [enable_win32_dll=yes
8300
8301 case $host in
8302 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8303 AC_CHECK_TOOL(AS, as, false)
8304 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8305 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8306 ;;
8307 esac
8308
8309 test -z "$AS" && AS=as
8310 _LT_DECL([], [AS], [1], [Assembler program])dnl
8311
8312 test -z "$DLLTOOL" && DLLTOOL=dlltool
8313 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8314
8315 test -z "$OBJDUMP" && OBJDUMP=objdump
8316 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8317 ])# win32-dll
8318
8319 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8320 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8321 _LT_SET_OPTION([LT_INIT], [win32-dll])
8322 AC_DIAGNOSE([obsolete],
8323 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8324 put the `win32-dll' option into LT_INIT's first parameter.])
8325 ])
8326
8327 dnl aclocal-1.4 backwards compatibility:
8328 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8329
8330
8331 # _LT_ENABLE_SHARED([DEFAULT])
8332 # ----------------------------
8333 # implement the --enable-shared flag, and supports the `shared' and
8334 # `disable-shared' LT_INIT options.
8335 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8336 m4_define([_LT_ENABLE_SHARED],
8337 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8338 AC_ARG_ENABLE([shared],
8339 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8340 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8341 [p=${PACKAGE-default}
8342 case $enableval in
8343 yes) enable_shared=yes ;;
8344 no) enable_shared=no ;;
8345 *)
8346 enable_shared=no
8347 # Look at the argument we got. We use all the common list separators.
8348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349 for pkg in $enableval; do
8350 IFS="$lt_save_ifs"
8351 if test "X$pkg" = "X$p"; then
8352 enable_shared=yes
8353 fi
8354 done
8355 IFS="$lt_save_ifs"
8356 ;;
8357 esac],
8358 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8359
8360 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8361 [Whether or not to build shared libraries])
8362 ])# _LT_ENABLE_SHARED
8363
8364 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8365 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8366
8367 # Old names:
8368 AC_DEFUN([AC_ENABLE_SHARED],
8369 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8370 ])
8371
8372 AC_DEFUN([AC_DISABLE_SHARED],
8373 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8374 ])
8375
8376 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8377 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8378
8379 dnl aclocal-1.4 backwards compatibility:
8380 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8381 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8382
8383
8384
8385 # _LT_ENABLE_STATIC([DEFAULT])
8386 # ----------------------------
8387 # implement the --enable-static flag, and support the `static' and
8388 # `disable-static' LT_INIT options.
8389 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8390 m4_define([_LT_ENABLE_STATIC],
8391 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8392 AC_ARG_ENABLE([static],
8393 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8394 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8395 [p=${PACKAGE-default}
8396 case $enableval in
8397 yes) enable_static=yes ;;
8398 no) enable_static=no ;;
8399 *)
8400 enable_static=no
8401 # Look at the argument we got. We use all the common list separators.
8402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403 for pkg in $enableval; do
8404 IFS="$lt_save_ifs"
8405 if test "X$pkg" = "X$p"; then
8406 enable_static=yes
8407 fi
8408 done
8409 IFS="$lt_save_ifs"
8410 ;;
8411 esac],
8412 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8413
8414 _LT_DECL([build_old_libs], [enable_static], [0],
8415 [Whether or not to build static libraries])
8416 ])# _LT_ENABLE_STATIC
8417
8418 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8419 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8420
8421 # Old names:
8422 AC_DEFUN([AC_ENABLE_STATIC],
8423 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8424 ])
8425
8426 AC_DEFUN([AC_DISABLE_STATIC],
8427 [_LT_SET_OPTION([LT_INIT], [disable-static])
8428 ])
8429
8430 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8431 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8432
8433 dnl aclocal-1.4 backwards compatibility:
8434 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8435 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8436
8437
8438
8439 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8440 # ----------------------------------
8441 # implement the --enable-fast-install flag, and support the `fast-install'
8442 # and `disable-fast-install' LT_INIT options.
8443 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8444 m4_define([_LT_ENABLE_FAST_INSTALL],
8445 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8446 AC_ARG_ENABLE([fast-install],
8447 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8448 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8449 [p=${PACKAGE-default}
8450 case $enableval in
8451 yes) enable_fast_install=yes ;;
8452 no) enable_fast_install=no ;;
8453 *)
8454 enable_fast_install=no
8455 # Look at the argument we got. We use all the common list separators.
8456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8457 for pkg in $enableval; do
8458 IFS="$lt_save_ifs"
8459 if test "X$pkg" = "X$p"; then
8460 enable_fast_install=yes
8461 fi
8462 done
8463 IFS="$lt_save_ifs"
8464 ;;
8465 esac],
8466 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8467
8468 _LT_DECL([fast_install], [enable_fast_install], [0],
8469 [Whether or not to optimize for fast installation])dnl
8470 ])# _LT_ENABLE_FAST_INSTALL
8471
8472 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8473 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8474
8475 # Old names:
8476 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8477 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8478 AC_DIAGNOSE([obsolete],
8479 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8480 the `fast-install' option into LT_INIT's first parameter.])
8481 ])
8482
8483 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8484 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8485 AC_DIAGNOSE([obsolete],
8486 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8487 the `disable-fast-install' option into LT_INIT's first parameter.])
8488 ])
8489
8490 dnl aclocal-1.4 backwards compatibility:
8491 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8492 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8493
8494
8495 # _LT_WITH_PIC([MODE])
8496 # --------------------
8497 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8498 # LT_INIT options.
8499 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8500 m4_define([_LT_WITH_PIC],
8501 [AC_ARG_WITH([pic],
8502 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8503 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8504 [lt_p=${PACKAGE-default}
8505 case $withval in
8506 yes|no) pic_mode=$withval ;;
8507 *)
8508 pic_mode=default
8509 # Look at the argument we got. We use all the common list separators.
8510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511 for lt_pkg in $withval; do
8512 IFS="$lt_save_ifs"
8513 if test "X$lt_pkg" = "X$lt_p"; then
8514 pic_mode=yes
8515 fi
8516 done
8517 IFS="$lt_save_ifs"
8518 ;;
8519 esac],
8520 [pic_mode=default])
8521
8522 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8523
8524 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8525 ])# _LT_WITH_PIC
8526
8527 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8528 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8529
8530 # Old name:
8531 AU_DEFUN([AC_LIBTOOL_PICMODE],
8532 [_LT_SET_OPTION([LT_INIT], [pic-only])
8533 AC_DIAGNOSE([obsolete],
8534 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8535 put the `pic-only' option into LT_INIT's first parameter.])
8536 ])
8537
8538 dnl aclocal-1.4 backwards compatibility:
8539 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8540
8541
8542 m4_define([_LTDL_MODE], [])
8543 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8544 [m4_define([_LTDL_MODE], [nonrecursive])])
8545 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8546 [m4_define([_LTDL_MODE], [recursive])])
8547 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8548 [m4_define([_LTDL_MODE], [subproject])])
8549
8550 m4_define([_LTDL_TYPE], [])
8551 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8552 [m4_define([_LTDL_TYPE], [installable])])
8553 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8554 [m4_define([_LTDL_TYPE], [convenience])])
8555
8556 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8557 #
8558 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8559 # Written by Gary V. Vaughan, 2004
8560 #
8561 # This file is free software; the Free Software Foundation gives
8562 # unlimited permission to copy and/or distribute it, with or without
8563 # modifications, as long as this notice is preserved.
8564
8565 # serial 6 ltsugar.m4
8566
8567 # This is to help aclocal find these macros, as it can't see m4_define.
8568 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8569
8570
8571 # lt_join(SEP, ARG1, [ARG2...])
8572 # -----------------------------
8573 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8574 # associated separator.
8575 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8576 # versions in m4sugar had bugs.
8577 m4_define([lt_join],
8578 [m4_if([$#], [1], [],
8579 [$#], [2], [[$2]],
8580 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8581 m4_define([_lt_join],
8582 [m4_if([$#$2], [2], [],
8583 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8584
8585
8586 # lt_car(LIST)
8587 # lt_cdr(LIST)
8588 # ------------
8589 # Manipulate m4 lists.
8590 # These macros are necessary as long as will still need to support
8591 # Autoconf-2.59 which quotes differently.
8592 m4_define([lt_car], [[$1]])
8593 m4_define([lt_cdr],
8594 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8595 [$#], 1, [],
8596 [m4_dquote(m4_shift($@))])])
8597 m4_define([lt_unquote], $1)
8598
8599
8600 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8601 # ------------------------------------------
8602 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8603 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8604 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8605 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8606 # than defined and empty).
8607 #
8608 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8609 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8610 m4_define([lt_append],
8611 [m4_define([$1],
8612 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8613
8614
8615
8616 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8617 # ----------------------------------------------------------
8618 # Produce a SEP delimited list of all paired combinations of elements of
8619 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8620 # has the form PREFIXmINFIXSUFFIXn.
8621 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8622 m4_define([lt_combine],
8623 [m4_if(m4_eval([$# > 3]), [1],
8624 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8625 [[m4_foreach([_Lt_prefix], [$2],
8626 [m4_foreach([_Lt_suffix],
8627 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8628 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8629
8630
8631 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8632 # -----------------------------------------------------------------------
8633 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8634 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8635 m4_define([lt_if_append_uniq],
8636 [m4_ifdef([$1],
8637 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8638 [lt_append([$1], [$2], [$3])$4],
8639 [$5])],
8640 [lt_append([$1], [$2], [$3])$4])])
8641
8642
8643 # lt_dict_add(DICT, KEY, VALUE)
8644 # -----------------------------
8645 m4_define([lt_dict_add],
8646 [m4_define([$1($2)], [$3])])
8647
8648
8649 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8650 # --------------------------------------------
8651 m4_define([lt_dict_add_subkey],
8652 [m4_define([$1($2:$3)], [$4])])
8653
8654
8655 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8656 # ----------------------------------
8657 m4_define([lt_dict_fetch],
8658 [m4_ifval([$3],
8659 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8660 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8661
8662
8663 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8664 # -----------------------------------------------------------------
8665 m4_define([lt_if_dict_fetch],
8666 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8667 [$5],
8668 [$6])])
8669
8670
8671 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8672 # --------------------------------------------------------------
8673 m4_define([lt_dict_filter],
8674 [m4_if([$5], [], [],
8675 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8676 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8677 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8678 ])
8679
8680 # ltversion.m4 -- version numbers -*- Autoconf -*-
8681 #
8682 # Copyright (C) 2004 Free Software Foundation, Inc.
8683 # Written by Scott James Remnant, 2004
8684 #
8685 # This file is free software; the Free Software Foundation gives
8686 # unlimited permission to copy and/or distribute it, with or without
8687 # modifications, as long as this notice is preserved.
8688
8689 # @configure_input@
8690
8691 # serial 3337 ltversion.m4
8692 # This file is part of GNU Libtool
8693
8694 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8695 m4_define([LT_PACKAGE_REVISION], [1.3337])
8696
8697 AC_DEFUN([LTVERSION_VERSION],
8698 [macro_version='2.4.2'
8699 macro_revision='1.3337'
8700 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8701 _LT_DECL(, macro_revision, 0)
8702 ])
8703
8704 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8705 #
8706 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8707 # Written by Scott James Remnant, 2004.
8708 #
8709 # This file is free software; the Free Software Foundation gives
8710 # unlimited permission to copy and/or distribute it, with or without
8711 # modifications, as long as this notice is preserved.
8712
8713 # serial 5 lt~obsolete.m4
8714
8715 # These exist entirely to fool aclocal when bootstrapping libtool.
8716 #
8717 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8718 # which have later been changed to m4_define as they aren't part of the
8719 # exported API, or moved to Autoconf or Automake where they belong.
8720 #
8721 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8722 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8723 # using a macro with the same name in our local m4/libtool.m4 it'll
8724 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8725 # and doesn't know about Autoconf macros at all.)
8726 #
8727 # So we provide this file, which has a silly filename so it's always
8728 # included after everything else. This provides aclocal with the
8729 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8730 # because those macros already exist, or will be overwritten later.
8731 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8732 #
8733 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8734 # Yes, that means every name once taken will need to remain here until
8735 # we give up compatibility with versions before 1.7, at which point
8736 # we need to keep only those names which we still refer to.
8737
8738 # This is to help aclocal find these macros, as it can't see m4_define.
8739 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8740
8741 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8742 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8743 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8744 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8745 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8746 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8747 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8748 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8749 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8750 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8751 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8752 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8753 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8754 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8755 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8756 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8757 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8758 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8759 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8760 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8761 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8762 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8763 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8764 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8765 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8766 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8767 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8768 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8769 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8770 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8771 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8772 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8773 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8774 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8775 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8776 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8777 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8778 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8779 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8780 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8781 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8782 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8783 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8784 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8785 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8786 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8787 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8788 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8789 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8790 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8791 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8792 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8793 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8794 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8795 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8796 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8797 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8798 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8799 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8800 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8801 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8802
8803 dnl *@--NOTICE--@* Common File Distribution
8804
8805 dnl --- *@-mdw_AUTO_VERSION-@* ---
8806 dnl
8807 dnl Author: Mark Wooding
8808 dnl
8809 dnl Synopsis: mdw_AUTO_VERSION
8810 dnl
8811 dnl Arguments: ---
8812 dnl
8813 dnl Use: Defines an m4 macro AUTO_VERSION which contains the current
8814 dnl version number, worked out in some clever way.
8815
8816 AC_DEFUN([mdw_AUTO_VERSION], [nobody cares...])
8817 m4_define([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([
8818 ver=UNKNOWN
8819 for pre in ./ config/; do
8820 for post in "" .in; do
8821 try=${pre}auto-version${post}
8822 if test -x $try; then ver=$("$try"); break; fi
8823 done
8824 done
8825 echo -n "$ver"
8826 ]))])
8827
8828
8829 dnl *@--NOTICE--@* Common File Distribution
8830
8831 dnl --- *@-mdw_LIBTOOL_VERSION_INFO-@* ---
8832 dnl
8833 dnl Author: Mark Wooding
8834 dnl
8835 dnl Synopsis: mdw_LIBTOOL_VERSION
8836 dnl
8837 dnl Arguments: ---
8838 dnl
8839 dnl Use: Decodes the PACKAGE_VERSION variable as a libtool
8840 dnl version-info string. Strictly speaking, this is very
8841 dnl naughty.
8842
8843 AC_DEFUN([mdw_LIBTOOL_VERSION_INFO], [
8844 set -- $(echo $PACKAGE_VERSION |
8845 sed 's:[^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$]:\1 \2 \3:'
8846 )
8847 LIBTOOL_VERSION_INFO="$(expr $[]1 + $[]2):$[]3:$[]2"
8848 AC_SUBST([LIBTOOL_VERSION_INFO])
8849 ])
8850
8851
8852 dnl *@--NOTICE--@* Common File Distribution
8853
8854 dnl --- *@-mdw_SILENT_RULES-@* ---
8855 dnl
8856 dnl Author: Mark Wooding
8857 dnl
8858 dnl Synopsis: mdw_SILENT_RULES
8859 dnl
8860 dnl Arguments: ---
8861 dnl
8862 dnl Use: Enables the Automake `silent-rules' feature, if available.
8863
8864 AC_DEFUN([mdw_SILENT_RULES], [
8865 m4_ifdef([AM_SILENT_RULES], [
8866 AM_SILENT_RULES([yes])
8867 ], [
8868 AC_SUBST([AM_DEFAULT_VERBOSITY], [1])
8869 ])
8870 ])
8871
8872
8873 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8874 # Foundation, Inc.
8875 #
8876 # This file is free software; the Free Software Foundation
8877 # gives unlimited permission to copy and/or distribute it,
8878 # with or without modifications, as long as this notice is preserved.
8879
8880 # serial 1
8881
8882 # AM_AUTOMAKE_VERSION(VERSION)
8883 # ----------------------------
8884 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8885 # generated from the m4 files accompanying Automake X.Y.
8886 # (This private macro should not be called outside this file.)
8887 AC_DEFUN([AM_AUTOMAKE_VERSION],
8888 [am__api_version='1.11'
8889 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8890 dnl require some minimum version. Point them to the right macro.
8891 m4_if([$1], [1.11.6], [],
8892 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8893 ])
8894
8895 # _AM_AUTOCONF_VERSION(VERSION)
8896 # -----------------------------
8897 # aclocal traces this macro to find the Autoconf version.
8898 # This is a private macro too. Using m4_define simplifies
8899 # the logic in aclocal, which can simply ignore this definition.
8900 m4_define([_AM_AUTOCONF_VERSION], [])
8901
8902 # AM_SET_CURRENT_AUTOMAKE_VERSION
8903 # -------------------------------
8904 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8905 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8906 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8907 [AM_AUTOMAKE_VERSION([1.11.6])dnl
8908 m4_ifndef([AC_AUTOCONF_VERSION],
8909 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8910 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8911
8912 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8913
8914 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8915 #
8916 # This file is free software; the Free Software Foundation
8917 # gives unlimited permission to copy and/or distribute it,
8918 # with or without modifications, as long as this notice is preserved.
8919
8920 # serial 1
8921
8922 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8923 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8924 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8925 #
8926 # Of course, Automake must honor this variable whenever it calls a
8927 # tool from the auxiliary directory. The problem is that $srcdir (and
8928 # therefore $ac_aux_dir as well) can be either absolute or relative,
8929 # depending on how configure is run. This is pretty annoying, since
8930 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8931 # source directory, any form will work fine, but in subdirectories a
8932 # relative path needs to be adjusted first.
8933 #
8934 # $ac_aux_dir/missing
8935 # fails when called from a subdirectory if $ac_aux_dir is relative
8936 # $top_srcdir/$ac_aux_dir/missing
8937 # fails if $ac_aux_dir is absolute,
8938 # fails when called from a subdirectory in a VPATH build with
8939 # a relative $ac_aux_dir
8940 #
8941 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8942 # are both prefixed by $srcdir. In an in-source build this is usually
8943 # harmless because $srcdir is `.', but things will broke when you
8944 # start a VPATH build or use an absolute $srcdir.
8945 #
8946 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8947 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8948 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8949 # and then we would define $MISSING as
8950 # MISSING="\${SHELL} $am_aux_dir/missing"
8951 # This will work as long as MISSING is not called from configure, because
8952 # unfortunately $(top_srcdir) has no meaning in configure.
8953 # However there are other variables, like CC, which are often used in
8954 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8955 #
8956 # Another solution, used here, is to always expand $ac_aux_dir to an
8957 # absolute PATH. The drawback is that using absolute paths prevent a
8958 # configured tree to be moved without reconfiguration.
8959
8960 AC_DEFUN([AM_AUX_DIR_EXPAND],
8961 [dnl Rely on autoconf to set up CDPATH properly.
8962 AC_PREREQ([2.50])dnl
8963 # expand $ac_aux_dir to an absolute path
8964 am_aux_dir=`cd $ac_aux_dir && pwd`
8965 ])
8966
8967 # AM_CONDITIONAL -*- Autoconf -*-
8968
8969 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8970 # Free Software Foundation, Inc.
8971 #
8972 # This file is free software; the Free Software Foundation
8973 # gives unlimited permission to copy and/or distribute it,
8974 # with or without modifications, as long as this notice is preserved.
8975
8976 # serial 9
8977
8978 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8979 # -------------------------------------
8980 # Define a conditional.
8981 AC_DEFUN([AM_CONDITIONAL],
8982 [AC_PREREQ(2.52)dnl
8983 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8984 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8985 AC_SUBST([$1_TRUE])dnl
8986 AC_SUBST([$1_FALSE])dnl
8987 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8988 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8989 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8990 if $2; then
8991 $1_TRUE=
8992 $1_FALSE='#'
8993 else
8994 $1_TRUE='#'
8995 $1_FALSE=
8996 fi
8997 AC_CONFIG_COMMANDS_PRE(
8998 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8999 AC_MSG_ERROR([[conditional "$1" was never defined.
9000 Usually this means the macro was only invoked conditionally.]])
9001 fi])])
9002
9003 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
9004 # 2010, 2011 Free Software Foundation, Inc.
9005 #
9006 # This file is free software; the Free Software Foundation
9007 # gives unlimited permission to copy and/or distribute it,
9008 # with or without modifications, as long as this notice is preserved.
9009
9010 # serial 12
9011
9012 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9013 # written in clear, in which case automake, when reading aclocal.m4,
9014 # will think it sees a *use*, and therefore will trigger all it's
9015 # C support machinery. Also note that it means that autoscan, seeing
9016 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9017
9018
9019 # _AM_DEPENDENCIES(NAME)
9020 # ----------------------
9021 # See how the compiler implements dependency checking.
9022 # NAME is "CC", "CXX", "GCJ", or "OBJC".
9023 # We try a few techniques and use that to set a single cache variable.
9024 #
9025 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9026 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9027 # dependency, and given that the user is not expected to run this macro,
9028 # just rely on AC_PROG_CC.
9029 AC_DEFUN([_AM_DEPENDENCIES],
9030 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9031 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9032 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9033 AC_REQUIRE([AM_DEP_TRACK])dnl
9034
9035 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9036 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9037 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9038 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9039 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9040 [depcc="$$1" am_compiler_list=])
9041
9042 AC_CACHE_CHECK([dependency style of $depcc],
9043 [am_cv_$1_dependencies_compiler_type],
9044 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9045 # We make a subdir and do the tests there. Otherwise we can end up
9046 # making bogus files that we don't know about and never remove. For
9047 # instance it was reported that on HP-UX the gcc test will end up
9048 # making a dummy file named `D' -- because `-MD' means `put the output
9049 # in D'.
9050 rm -rf conftest.dir
9051 mkdir conftest.dir
9052 # Copy depcomp to subdir because otherwise we won't find it if we're
9053 # using a relative directory.
9054 cp "$am_depcomp" conftest.dir
9055 cd conftest.dir
9056 # We will build objects and dependencies in a subdirectory because
9057 # it helps to detect inapplicable dependency modes. For instance
9058 # both Tru64's cc and ICC support -MD to output dependencies as a
9059 # side effect of compilation, but ICC will put the dependencies in
9060 # the current directory while Tru64 will put them in the object
9061 # directory.
9062 mkdir sub
9063
9064 am_cv_$1_dependencies_compiler_type=none
9065 if test "$am_compiler_list" = ""; then
9066 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9067 fi
9068 am__universal=false
9069 m4_case([$1], [CC],
9070 [case " $depcc " in #(
9071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9072 esac],
9073 [CXX],
9074 [case " $depcc " in #(
9075 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9076 esac])
9077
9078 for depmode in $am_compiler_list; do
9079 # Setup a source with many dependencies, because some compilers
9080 # like to wrap large dependency lists on column 80 (with \), and
9081 # we should not choose a depcomp mode which is confused by this.
9082 #
9083 # We need to recreate these files for each test, as the compiler may
9084 # overwrite some of them when testing with obscure command lines.
9085 # This happens at least with the AIX C compiler.
9086 : > sub/conftest.c
9087 for i in 1 2 3 4 5 6; do
9088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9090 # Solaris 8's {/usr,}/bin/sh.
9091 touch sub/conftst$i.h
9092 done
9093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9094
9095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9096 # mode. It turns out that the SunPro C++ compiler does not properly
9097 # handle `-M -o', and we need to detect this. Also, some Intel
9098 # versions had trouble with output in subdirs
9099 am__obj=sub/conftest.${OBJEXT-o}
9100 am__minus_obj="-o $am__obj"
9101 case $depmode in
9102 gcc)
9103 # This depmode causes a compiler race in universal mode.
9104 test "$am__universal" = false || continue
9105 ;;
9106 nosideeffect)
9107 # after this tag, mechanisms are not by side-effect, so they'll
9108 # only be used when explicitly requested
9109 if test "x$enable_dependency_tracking" = xyes; then
9110 continue
9111 else
9112 break
9113 fi
9114 ;;
9115 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9116 # This compiler won't grok `-c -o', but also, the minuso test has
9117 # not run yet. These depmodes are late enough in the game, and
9118 # so weak that their functioning should not be impacted.
9119 am__obj=conftest.${OBJEXT-o}
9120 am__minus_obj=
9121 ;;
9122 none) break ;;
9123 esac
9124 if depmode=$depmode \
9125 source=sub/conftest.c object=$am__obj \
9126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9127 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9128 >/dev/null 2>conftest.err &&
9129 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9131 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9133 # icc doesn't choke on unknown options, it will just issue warnings
9134 # or remarks (even with -Werror). So we grep stderr for any message
9135 # that says an option was ignored or not supported.
9136 # When given -MP, icc 7.0 and 7.1 complain thusly:
9137 # icc: Command line warning: ignoring option '-M'; no argument required
9138 # The diagnosis changed in icc 8.0:
9139 # icc: Command line remark: option '-MP' not supported
9140 if (grep 'ignoring option' conftest.err ||
9141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9142 am_cv_$1_dependencies_compiler_type=$depmode
9143 break
9144 fi
9145 fi
9146 done
9147
9148 cd ..
9149 rm -rf conftest.dir
9150 else
9151 am_cv_$1_dependencies_compiler_type=none
9152 fi
9153 ])
9154 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9155 AM_CONDITIONAL([am__fastdep$1], [
9156 test "x$enable_dependency_tracking" != xno \
9157 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9158 ])
9159
9160
9161 # AM_SET_DEPDIR
9162 # -------------
9163 # Choose a directory name for dependency files.
9164 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9165 AC_DEFUN([AM_SET_DEPDIR],
9166 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9167 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9168 ])
9169
9170
9171 # AM_DEP_TRACK
9172 # ------------
9173 AC_DEFUN([AM_DEP_TRACK],
9174 [AC_ARG_ENABLE(dependency-tracking,
9175 [ --disable-dependency-tracking speeds up one-time build
9176 --enable-dependency-tracking do not reject slow dependency extractors])
9177 if test "x$enable_dependency_tracking" != xno; then
9178 am_depcomp="$ac_aux_dir/depcomp"
9179 AMDEPBACKSLASH='\'
9180 am__nodep='_no'
9181 fi
9182 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9183 AC_SUBST([AMDEPBACKSLASH])dnl
9184 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9185 AC_SUBST([am__nodep])dnl
9186 _AM_SUBST_NOTMAKE([am__nodep])dnl
9187 ])
9188
9189 # Generate code to set up dependency tracking. -*- Autoconf -*-
9190
9191 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9192 # Free Software Foundation, Inc.
9193 #
9194 # This file is free software; the Free Software Foundation
9195 # gives unlimited permission to copy and/or distribute it,
9196 # with or without modifications, as long as this notice is preserved.
9197
9198 #serial 5
9199
9200 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9201 # ------------------------------
9202 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9203 [{
9204 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9205 # are listed without --file. Let's play safe and only enable the eval
9206 # if we detect the quoting.
9207 case $CONFIG_FILES in
9208 *\'*) eval set x "$CONFIG_FILES" ;;
9209 *) set x $CONFIG_FILES ;;
9210 esac
9211 shift
9212 for mf
9213 do
9214 # Strip MF so we end up with the name of the file.
9215 mf=`echo "$mf" | sed -e 's/:.*$//'`
9216 # Check whether this is an Automake generated Makefile or not.
9217 # We used to match only the files named `Makefile.in', but
9218 # some people rename them; so instead we look at the file content.
9219 # Grep'ing the first line is not enough: some people post-process
9220 # each Makefile.in and add a new line on top of each file to say so.
9221 # Grep'ing the whole file is not good either: AIX grep has a line
9222 # limit of 2048, but all sed's we know have understand at least 4000.
9223 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9224 dirpart=`AS_DIRNAME("$mf")`
9225 else
9226 continue
9227 fi
9228 # Extract the definition of DEPDIR, am__include, and am__quote
9229 # from the Makefile without running `make'.
9230 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9231 test -z "$DEPDIR" && continue
9232 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9233 test -z "am__include" && continue
9234 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9235 # When using ansi2knr, U may be empty or an underscore; expand it
9236 U=`sed -n 's/^U = //p' < "$mf"`
9237 # Find all dependency output files, they are included files with
9238 # $(DEPDIR) in their names. We invoke sed twice because it is the
9239 # simplest approach to changing $(DEPDIR) to its actual value in the
9240 # expansion.
9241 for file in `sed -n "
9242 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9244 # Make sure the directory exists.
9245 test -f "$dirpart/$file" && continue
9246 fdir=`AS_DIRNAME(["$file"])`
9247 AS_MKDIR_P([$dirpart/$fdir])
9248 # echo "creating $dirpart/$file"
9249 echo '# dummy' > "$dirpart/$file"
9250 done
9251 done
9252 }
9253 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9254
9255
9256 # AM_OUTPUT_DEPENDENCY_COMMANDS
9257 # -----------------------------
9258 # This macro should only be invoked once -- use via AC_REQUIRE.
9259 #
9260 # This code is only required when automatic dependency tracking
9261 # is enabled. FIXME. This creates each `.P' file that we will
9262 # need in order to bootstrap the dependency handling code.
9263 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9264 [AC_CONFIG_COMMANDS([depfiles],
9265 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9266 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9267 ])
9268
9269 # Do all the work for Automake. -*- Autoconf -*-
9270
9271 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9272 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9273 #
9274 # This file is free software; the Free Software Foundation
9275 # gives unlimited permission to copy and/or distribute it,
9276 # with or without modifications, as long as this notice is preserved.
9277
9278 # serial 16
9279
9280 # This macro actually does too much. Some checks are only needed if
9281 # your package does certain things. But this isn't really a big deal.
9282
9283 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9284 # AM_INIT_AUTOMAKE([OPTIONS])
9285 # -----------------------------------------------
9286 # The call with PACKAGE and VERSION arguments is the old style
9287 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9288 # and VERSION should now be passed to AC_INIT and removed from
9289 # the call to AM_INIT_AUTOMAKE.
9290 # We support both call styles for the transition. After
9291 # the next Automake release, Autoconf can make the AC_INIT
9292 # arguments mandatory, and then we can depend on a new Autoconf
9293 # release and drop the old call support.
9294 AC_DEFUN([AM_INIT_AUTOMAKE],
9295 [AC_PREREQ([2.62])dnl
9296 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9297 dnl the ones we care about.
9298 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9299 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9300 AC_REQUIRE([AC_PROG_INSTALL])dnl
9301 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9302 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9303 # is not polluted with repeated "-I."
9304 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9305 # test to see if srcdir already configured
9306 if test -f $srcdir/config.status; then
9307 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9308 fi
9309 fi
9310
9311 # test whether we have cygpath
9312 if test -z "$CYGPATH_W"; then
9313 if (cygpath --version) >/dev/null 2>/dev/null; then
9314 CYGPATH_W='cygpath -w'
9315 else
9316 CYGPATH_W=echo
9317 fi
9318 fi
9319 AC_SUBST([CYGPATH_W])
9320
9321 # Define the identity of the package.
9322 dnl Distinguish between old-style and new-style calls.
9323 m4_ifval([$2],
9324 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9325 AC_SUBST([PACKAGE], [$1])dnl
9326 AC_SUBST([VERSION], [$2])],
9327 [_AM_SET_OPTIONS([$1])dnl
9328 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9329 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9330 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9331 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9332 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9333
9334 _AM_IF_OPTION([no-define],,
9335 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9336 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9337
9338 # Some tools Automake needs.
9339 AC_REQUIRE([AM_SANITY_CHECK])dnl
9340 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9341 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9342 AM_MISSING_PROG(AUTOCONF, autoconf)
9343 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9344 AM_MISSING_PROG(AUTOHEADER, autoheader)
9345 AM_MISSING_PROG(MAKEINFO, makeinfo)
9346 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9347 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9348 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9349 # We need awk for the "check" target. The system "awk" is bad on
9350 # some platforms.
9351 AC_REQUIRE([AC_PROG_AWK])dnl
9352 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9353 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9354 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9355 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9356 [_AM_PROG_TAR([v7])])])
9357 _AM_IF_OPTION([no-dependencies],,
9358 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9359 [_AM_DEPENDENCIES(CC)],
9360 [define([AC_PROG_CC],
9361 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9362 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9363 [_AM_DEPENDENCIES(CXX)],
9364 [define([AC_PROG_CXX],
9365 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9366 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9367 [_AM_DEPENDENCIES(OBJC)],
9368 [define([AC_PROG_OBJC],
9369 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9370 ])
9371 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9372 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9373 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9374 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9375 AC_CONFIG_COMMANDS_PRE(dnl
9376 [m4_provide_if([_AM_COMPILER_EXEEXT],
9377 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9378 ])
9379
9380 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9381 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9382 dnl mangled by Autoconf and run in a shell conditional statement.
9383 m4_define([_AC_COMPILER_EXEEXT],
9384 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9385
9386
9387 # When config.status generates a header, we must update the stamp-h file.
9388 # This file resides in the same directory as the config header
9389 # that is generated. The stamp files are numbered to have different names.
9390
9391 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9392 # loop where config.status creates the headers, so we can generate
9393 # our stamp files there.
9394 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9395 [# Compute $1's index in $config_headers.
9396 _am_arg=$1
9397 _am_stamp_count=1
9398 for _am_header in $config_headers :; do
9399 case $_am_header in
9400 $_am_arg | $_am_arg:* )
9401 break ;;
9402 * )
9403 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9404 esac
9405 done
9406 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9407
9408 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9409 # Inc.
9410 #
9411 # This file is free software; the Free Software Foundation
9412 # gives unlimited permission to copy and/or distribute it,
9413 # with or without modifications, as long as this notice is preserved.
9414
9415 # serial 1
9416
9417 # AM_PROG_INSTALL_SH
9418 # ------------------
9419 # Define $install_sh.
9420 AC_DEFUN([AM_PROG_INSTALL_SH],
9421 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9422 if test x"${install_sh}" != xset; then
9423 case $am_aux_dir in
9424 *\ * | *\ *)
9425 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9426 *)
9427 install_sh="\${SHELL} $am_aux_dir/install-sh"
9428 esac
9429 fi
9430 AC_SUBST(install_sh)])
9431
9432 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9433 #
9434 # This file is free software; the Free Software Foundation
9435 # gives unlimited permission to copy and/or distribute it,
9436 # with or without modifications, as long as this notice is preserved.
9437
9438 # serial 2
9439
9440 # Check whether the underlying file-system supports filenames
9441 # with a leading dot. For instance MS-DOS doesn't.
9442 AC_DEFUN([AM_SET_LEADING_DOT],
9443 [rm -rf .tst 2>/dev/null
9444 mkdir .tst 2>/dev/null
9445 if test -d .tst; then
9446 am__leading_dot=.
9447 else
9448 am__leading_dot=_
9449 fi
9450 rmdir .tst 2>/dev/null
9451 AC_SUBST([am__leading_dot])])
9452
9453 # Check to see how 'make' treats includes. -*- Autoconf -*-
9454
9455 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9456 #
9457 # This file is free software; the Free Software Foundation
9458 # gives unlimited permission to copy and/or distribute it,
9459 # with or without modifications, as long as this notice is preserved.
9460
9461 # serial 4
9462
9463 # AM_MAKE_INCLUDE()
9464 # -----------------
9465 # Check to see how make treats includes.
9466 AC_DEFUN([AM_MAKE_INCLUDE],
9467 [am_make=${MAKE-make}
9468 cat > confinc << 'END'
9469 am__doit:
9470 @echo this is the am__doit target
9471 .PHONY: am__doit
9472 END
9473 # If we don't find an include directive, just comment out the code.
9474 AC_MSG_CHECKING([for style of include used by $am_make])
9475 am__include="#"
9476 am__quote=
9477 _am_result=none
9478 # First try GNU make style include.
9479 echo "include confinc" > confmf
9480 # Ignore all kinds of additional output from `make'.
9481 case `$am_make -s -f confmf 2> /dev/null` in #(
9482 *the\ am__doit\ target*)
9483 am__include=include
9484 am__quote=
9485 _am_result=GNU
9486 ;;
9487 esac
9488 # Now try BSD make style include.
9489 if test "$am__include" = "#"; then
9490 echo '.include "confinc"' > confmf
9491 case `$am_make -s -f confmf 2> /dev/null` in #(
9492 *the\ am__doit\ target*)
9493 am__include=.include
9494 am__quote="\""
9495 _am_result=BSD
9496 ;;
9497 esac
9498 fi
9499 AC_SUBST([am__include])
9500 AC_SUBST([am__quote])
9501 AC_MSG_RESULT([$_am_result])
9502 rm -f confinc confmf
9503 ])
9504
9505 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9506
9507 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9508 # Free Software Foundation, Inc.
9509 #
9510 # This file is free software; the Free Software Foundation
9511 # gives unlimited permission to copy and/or distribute it,
9512 # with or without modifications, as long as this notice is preserved.
9513
9514 # serial 6
9515
9516 # AM_MISSING_PROG(NAME, PROGRAM)
9517 # ------------------------------
9518 AC_DEFUN([AM_MISSING_PROG],
9519 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9520 $1=${$1-"${am_missing_run}$2"}
9521 AC_SUBST($1)])
9522
9523
9524 # AM_MISSING_HAS_RUN
9525 # ------------------
9526 # Define MISSING if not defined so far and test if it supports --run.
9527 # If it does, set am_missing_run to use it, otherwise, to nothing.
9528 AC_DEFUN([AM_MISSING_HAS_RUN],
9529 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9530 AC_REQUIRE_AUX_FILE([missing])dnl
9531 if test x"${MISSING+set}" != xset; then
9532 case $am_aux_dir in
9533 *\ * | *\ *)
9534 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9535 *)
9536 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9537 esac
9538 fi
9539 # Use eval to expand $SHELL
9540 if eval "$MISSING --run true"; then
9541 am_missing_run="$MISSING --run "
9542 else
9543 am_missing_run=
9544 AC_MSG_WARN([`missing' script is too old or missing])
9545 fi
9546 ])
9547
9548 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9549 # Inc.
9550 #
9551 # This file is free software; the Free Software Foundation
9552 # gives unlimited permission to copy and/or distribute it,
9553 # with or without modifications, as long as this notice is preserved.
9554
9555 # serial 1
9556
9557 # AM_PROG_MKDIR_P
9558 # ---------------
9559 # Check for `mkdir -p'.
9560 AC_DEFUN([AM_PROG_MKDIR_P],
9561 [AC_PREREQ([2.60])dnl
9562 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9563 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9564 dnl while keeping a definition of mkdir_p for backward compatibility.
9565 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9566 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9567 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9568 dnl adjustment using top_builddir (which is defined more often than
9569 dnl MKDIR_P).
9570 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9571 case $mkdir_p in
9572 [[\\/$]]* | ?:[[\\/]]*) ;;
9573 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9574 esac
9575 ])
9576
9577 # Helper functions for option handling. -*- Autoconf -*-
9578
9579 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9580 # Foundation, Inc.
9581 #
9582 # This file is free software; the Free Software Foundation
9583 # gives unlimited permission to copy and/or distribute it,
9584 # with or without modifications, as long as this notice is preserved.
9585
9586 # serial 5
9587
9588 # _AM_MANGLE_OPTION(NAME)
9589 # -----------------------
9590 AC_DEFUN([_AM_MANGLE_OPTION],
9591 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9592
9593 # _AM_SET_OPTION(NAME)
9594 # --------------------
9595 # Set option NAME. Presently that only means defining a flag for this option.
9596 AC_DEFUN([_AM_SET_OPTION],
9597 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9598
9599 # _AM_SET_OPTIONS(OPTIONS)
9600 # ------------------------
9601 # OPTIONS is a space-separated list of Automake options.
9602 AC_DEFUN([_AM_SET_OPTIONS],
9603 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9604
9605 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9606 # -------------------------------------------
9607 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9608 AC_DEFUN([_AM_IF_OPTION],
9609 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9610
9611 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9612
9613 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9614 # Free Software Foundation, Inc.
9615 #
9616 # This file is free software; the Free Software Foundation
9617 # gives unlimited permission to copy and/or distribute it,
9618 # with or without modifications, as long as this notice is preserved.
9619
9620 # serial 5
9621
9622 # AM_SANITY_CHECK
9623 # ---------------
9624 AC_DEFUN([AM_SANITY_CHECK],
9625 [AC_MSG_CHECKING([whether build environment is sane])
9626 # Just in case
9627 sleep 1
9628 echo timestamp > conftest.file
9629 # Reject unsafe characters in $srcdir or the absolute working directory
9630 # name. Accept space and tab only in the latter.
9631 am_lf='
9632 '
9633 case `pwd` in
9634 *[[\\\"\#\$\&\'\`$am_lf]]*)
9635 AC_MSG_ERROR([unsafe absolute working directory name]);;
9636 esac
9637 case $srcdir in
9638 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9639 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9640 esac
9641
9642 # Do `set' in a subshell so we don't clobber the current shell's
9643 # arguments. Must try -L first in case configure is actually a
9644 # symlink; some systems play weird games with the mod time of symlinks
9645 # (eg FreeBSD returns the mod time of the symlink's containing
9646 # directory).
9647 if (
9648 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9649 if test "$[*]" = "X"; then
9650 # -L didn't work.
9651 set X `ls -t "$srcdir/configure" conftest.file`
9652 fi
9653 rm -f conftest.file
9654 if test "$[*]" != "X $srcdir/configure conftest.file" \
9655 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9656
9657 # If neither matched, then we have a broken ls. This can happen
9658 # if, for instance, CONFIG_SHELL is bash and it inherits a
9659 # broken ls alias from the environment. This has actually
9660 # happened. Such a system could not be considered "sane".
9661 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9662 alias in your environment])
9663 fi
9664
9665 test "$[2]" = conftest.file
9666 )
9667 then
9668 # Ok.
9669 :
9670 else
9671 AC_MSG_ERROR([newly created file is older than distributed files!
9672 Check your system clock])
9673 fi
9674 AC_MSG_RESULT(yes)])
9675
9676 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
9677 #
9678 # This file is free software; the Free Software Foundation
9679 # gives unlimited permission to copy and/or distribute it,
9680 # with or without modifications, as long as this notice is preserved.
9681
9682 # serial 2
9683
9684 # AM_SILENT_RULES([DEFAULT])
9685 # --------------------------
9686 # Enable less verbose build rules; with the default set to DEFAULT
9687 # (`yes' being less verbose, `no' or empty being verbose).
9688 AC_DEFUN([AM_SILENT_RULES],
9689 [AC_ARG_ENABLE([silent-rules],
9690 [ --enable-silent-rules less verbose build output (undo: `make V=1')
9691 --disable-silent-rules verbose build output (undo: `make V=0')])
9692 case $enable_silent_rules in
9693 yes) AM_DEFAULT_VERBOSITY=0;;
9694 no) AM_DEFAULT_VERBOSITY=1;;
9695 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9696 esac
9697 dnl
9698 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
9699 dnl do not support nested variable expansions.
9700 dnl See automake bug#9928 and bug#10237.
9701 am_make=${MAKE-make}
9702 AC_CACHE_CHECK([whether $am_make supports nested variables],
9703 [am_cv_make_support_nested_variables],
9704 [if AS_ECHO([['TRUE=$(BAR$(V))
9705 BAR0=false
9706 BAR1=true
9707 V=1
9708 am__doit:
9709 @$(TRUE)
9710 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9711 am_cv_make_support_nested_variables=yes
9712 else
9713 am_cv_make_support_nested_variables=no
9714 fi])
9715 if test $am_cv_make_support_nested_variables = yes; then
9716 dnl Using `$V' instead of `$(V)' breaks IRIX make.
9717 AM_V='$(V)'
9718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9719 else
9720 AM_V=$AM_DEFAULT_VERBOSITY
9721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9722 fi
9723 AC_SUBST([AM_V])dnl
9724 AM_SUBST_NOTMAKE([AM_V])dnl
9725 AC_SUBST([AM_DEFAULT_V])dnl
9726 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9727 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9728 AM_BACKSLASH='\'
9729 AC_SUBST([AM_BACKSLASH])dnl
9730 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9731 ])
9732
9733 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9734 #
9735 # This file is free software; the Free Software Foundation
9736 # gives unlimited permission to copy and/or distribute it,
9737 # with or without modifications, as long as this notice is preserved.
9738
9739 # serial 1
9740
9741 # AM_PROG_INSTALL_STRIP
9742 # ---------------------
9743 # One issue with vendor `install' (even GNU) is that you can't
9744 # specify the program used to strip binaries. This is especially
9745 # annoying in cross-compiling environments, where the build's strip
9746 # is unlikely to handle the host's binaries.
9747 # Fortunately install-sh will honor a STRIPPROG variable, so we
9748 # always use install-sh in `make install-strip', and initialize
9749 # STRIPPROG with the value of the STRIP variable (set by the user).
9750 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9751 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9752 # Installed binaries are usually stripped using `strip' when the user
9753 # run `make install-strip'. However `strip' might not be the right
9754 # tool to use in cross-compilation environments, therefore Automake
9755 # will honor the `STRIP' environment variable to overrule this program.
9756 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9757 if test "$cross_compiling" != no; then
9758 AC_CHECK_TOOL([STRIP], [strip], :)
9759 fi
9760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9761 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9762
9763 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
9764 #
9765 # This file is free software; the Free Software Foundation
9766 # gives unlimited permission to copy and/or distribute it,
9767 # with or without modifications, as long as this notice is preserved.
9768
9769 # serial 3
9770
9771 # _AM_SUBST_NOTMAKE(VARIABLE)
9772 # ---------------------------
9773 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9774 # This macro is traced by Automake.
9775 AC_DEFUN([_AM_SUBST_NOTMAKE])
9776
9777 # AM_SUBST_NOTMAKE(VARIABLE)
9778 # --------------------------
9779 # Public sister of _AM_SUBST_NOTMAKE.
9780 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9781
9782 # Check how to create a tarball. -*- Autoconf -*-
9783
9784 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9785 #
9786 # This file is free software; the Free Software Foundation
9787 # gives unlimited permission to copy and/or distribute it,
9788 # with or without modifications, as long as this notice is preserved.
9789
9790 # serial 2
9791
9792 # _AM_PROG_TAR(FORMAT)
9793 # --------------------
9794 # Check how to create a tarball in format FORMAT.
9795 # FORMAT should be one of `v7', `ustar', or `pax'.
9796 #
9797 # Substitute a variable $(am__tar) that is a command
9798 # writing to stdout a FORMAT-tarball containing the directory
9799 # $tardir.
9800 # tardir=directory && $(am__tar) > result.tar
9801 #
9802 # Substitute a variable $(am__untar) that extract such
9803 # a tarball read from stdin.
9804 # $(am__untar) < result.tar
9805 AC_DEFUN([_AM_PROG_TAR],
9806 [# Always define AMTAR for backward compatibility. Yes, it's still used
9807 # in the wild :-( We should find a proper way to deprecate it ...
9808 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9809 m4_if([$1], [v7],
9810 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9811 [m4_case([$1], [ustar],, [pax],,
9812 [m4_fatal([Unknown tar format])])
9813 AC_MSG_CHECKING([how to create a $1 tar archive])
9814 # Loop over all known methods to create a tar archive until one works.
9815 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9816 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9817 # Do not fold the above two line into one, because Tru64 sh and
9818 # Solaris sh will not grok spaces in the rhs of `-'.
9819 for _am_tool in $_am_tools
9820 do
9821 case $_am_tool in
9822 gnutar)
9823 for _am_tar in tar gnutar gtar;
9824 do
9825 AM_RUN_LOG([$_am_tar --version]) && break
9826 done
9827 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9828 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9829 am__untar="$_am_tar -xf -"
9830 ;;
9831 plaintar)
9832 # Must skip GNU tar: if it does not support --format= it doesn't create
9833 # ustar tarball either.
9834 (tar --version) >/dev/null 2>&1 && continue
9835 am__tar='tar chf - "$$tardir"'
9836 am__tar_='tar chf - "$tardir"'
9837 am__untar='tar xf -'
9838 ;;
9839 pax)
9840 am__tar='pax -L -x $1 -w "$$tardir"'
9841 am__tar_='pax -L -x $1 -w "$tardir"'
9842 am__untar='pax -r'
9843 ;;
9844 cpio)
9845 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9846 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9847 am__untar='cpio -i -H $1 -d'
9848 ;;
9849 none)
9850 am__tar=false
9851 am__tar_=false
9852 am__untar=false
9853 ;;
9854 esac
9855
9856 # If the value was cached, stop now. We just wanted to have am__tar
9857 # and am__untar set.
9858 test -n "${am_cv_prog_tar_$1}" && break
9859
9860 # tar/untar a dummy directory, and stop if the command works
9861 rm -rf conftest.dir
9862 mkdir conftest.dir
9863 echo GrepMe > conftest.dir/file
9864 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9865 rm -rf conftest.dir
9866 if test -s conftest.tar; then
9867 AM_RUN_LOG([$am__untar <conftest.tar])
9868 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9869 fi
9870 done
9871 rm -rf conftest.dir
9872
9873 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9874 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9875 AC_SUBST([am__tar])
9876 AC_SUBST([am__untar])
9877 ]) # _AM_PROG_TAR
9878