117
196
# Sed substitution that helps us do robust quoting. It backslashifies
118
197
# metacharacters that are still active within double-quoted strings.
119
Xsed='sed -e 1s/^X//'
120
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
198
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
122
200
# Same as above, but do not quote variable references.
123
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
201
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
125
203
# Sed substitution to delay expansion of an escaped shell variable in a
126
204
# double_quote_subst'ed string.
127
205
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
207
# Sed substitution to delay expansion of an escaped single quote.
208
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
129
210
# Sed substitution to avoid accidental globbing in evaled expressions
130
211
no_glob_subst='s/\*/\\\*/g'
135
213
# Global variables:
136
default_ofile=libtool
137
215
can_build_shared=yes
139
217
# All known linkers require a `.a' archive for static linking (except MSVC,
140
218
# which needs '.lib').
142
ltmain="$ac_aux_dir/ltmain.sh"
143
ofile="$default_ofile"
144
221
with_gnu_ld="$lt_cv_prog_gnu_ld"
146
AC_CHECK_TOOL(AR, ar, false)
147
AC_CHECK_TOOL(RANLIB, ranlib, :)
148
AC_CHECK_TOOL(STRIP, strip, :)
151
224
old_CFLAGS="$CFLAGS"
153
226
# Set sane defaults for various variables
154
test -z "$AR" && AR=ar
155
test -z "$AR_FLAGS" && AR_FLAGS=cru
156
test -z "$AS" && AS=as
157
227
test -z "$CC" && CC=cc
158
228
test -z "$LTCC" && LTCC=$CC
159
229
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
160
test -z "$DLLTOOL" && DLLTOOL=dlltool
161
230
test -z "$LD" && LD=ld
162
test -z "$LN_S" && LN_S="ln -s"
163
test -z "$MAGIC_CMD" && MAGIC_CMD=file
164
test -z "$NM" && NM=nm
165
test -z "$SED" && SED=sed
166
test -z "$OBJDUMP" && OBJDUMP=objdump
167
test -z "$RANLIB" && RANLIB=:
168
test -z "$STRIP" && STRIP=:
169
231
test -z "$ac_objext" && ac_objext=o
171
# Determine commands to create old-style static archives.
172
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
173
old_postinstall_cmds='chmod 644 $oldlib'
174
old_postuninstall_cmds=
176
if test -n "$RANLIB"; then
179
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
182
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
185
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
188
233
_LT_CC_BASENAME([$compiler])
190
235
# Only perform the check for file, if the check method requires it
236
test -z "$MAGIC_CMD" && MAGIC_CMD=file
191
237
case $deplibs_check_method in
193
239
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
199
_LT_REQUIRED_DARWIN_CHECKS
201
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
202
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
203
enable_win32_dll=yes, enable_win32_dll=no)
205
AC_ARG_ENABLE([libtool-lock],
206
[AC_HELP_STRING([--disable-libtool-lock],
207
[avoid locking (might break parallel builds)])])
208
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
211
[AC_HELP_STRING([--with-pic],
212
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
213
[pic_mode="$withval"],
215
test -z "$pic_mode" && pic_mode=default
217
245
# Use C for the default configuration in the libtool script
219
AC_LIBTOOL_LANG_C_CONFIG
224
# _LT_AC_SYS_COMPILER
246
LT_SUPPORTED_TAG([CC])
248
_LT_LANG_DEFAULT_CONFIG
255
# Note that this code is called both from `configure', and `config.status'
256
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
257
# `config.status' has no value for ac_aux_dir unless we are using Automake,
258
# so we pass a copy along to make sure it has a sensible value anyway.
259
m4_defun([_LT_PROG_LTMAIN],
260
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
261
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
262
ltmain="$ac_aux_dir/ltmain.sh"
266
## ------------------------------------- ##
267
## Accumulate code for creating libtool. ##
268
## ------------------------------------- ##
270
# So that we can recreate a full libtool script including additional
271
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
272
# in macros and then make a single call at the end using the `libtool'
276
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
277
# ----------------------------------------
278
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
279
m4_define([_LT_CONFIG_LIBTOOL_INIT],
281
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
286
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
289
# _LT_CONFIG_LIBTOOL([COMMANDS])
290
# ------------------------------
291
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
292
m4_define([_LT_CONFIG_LIBTOOL],
294
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
299
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
302
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
303
# -----------------------------------------------------
304
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
305
[_LT_CONFIG_LIBTOOL([$1])
306
_LT_CONFIG_LIBTOOL_INIT([$2])
310
# _LT_FORMAT_COMMENT([COMMENT])
311
# -----------------------------
312
# Add leading comment marks to the start of each line, and a trailing
313
# full-stop to the whole comment if one is not present already.
314
m4_define([_LT_FORMAT_COMMENT],
316
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
317
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
322
## ------------------------ ##
323
## FIXME: Eliminate VARNAME ##
324
## ------------------------ ##
327
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
328
# -------------------------------------------------------------------
329
# CONFIGNAME is the name given to the value in the libtool script.
330
# VARNAME is the (base) name used in the configure script.
331
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
332
# VARNAME. Any other value will be used directly.
333
m4_define([_LT_DECL],
334
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
335
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
336
[m4_ifval([$1], [$1], [$2])])
337
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
339
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
340
lt_dict_add_subkey([lt_decl_dict], [$2],
341
[tagged?], [m4_ifval([$5], [yes], [no])])])
345
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
346
# --------------------------------------------------------
347
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
350
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
351
# ------------------------------------------------
352
m4_define([lt_decl_tag_varnames],
353
[_lt_decl_filter([tagged?], [yes], $@)])
356
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
357
# ---------------------------------------------------------
358
m4_define([_lt_decl_filter],
360
[0], [m4_fatal([$0: too few arguments: $#])],
361
[1], [m4_fatal([$0: too few arguments: $#: $1])],
362
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
363
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
364
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
368
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
369
# --------------------------------------------------
370
m4_define([lt_decl_quote_varnames],
371
[_lt_decl_filter([value], [1], $@)])
374
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
375
# ---------------------------------------------------
376
m4_define([lt_decl_dquote_varnames],
377
[_lt_decl_filter([value], [2], $@)])
380
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
381
# ---------------------------------------------------
382
m4_define([lt_decl_varnames_tagged],
383
[_$0(m4_quote(m4_default([$1], [[, ]])),
384
m4_quote(m4_if([$2], [],
385
m4_quote(lt_decl_tag_varnames),
386
m4_quote(m4_shift($@)))),
387
m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
388
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
391
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
392
# ------------------------------------------------
393
m4_define([lt_decl_all_varnames],
394
[_$0(m4_quote(m4_default([$1], [[, ]])),
396
m4_quote(lt_decl_varnames),
397
m4_quote(m4_shift($@))))[]dnl
399
m4_define([_lt_decl_all_varnames],
400
[lt_join($@, lt_decl_varnames_tagged([$1],
401
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
405
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
406
# ------------------------------------
407
# Quote a variable value, and forward it to `config.status' so that its
408
# declaration there will have the same value as in `configure'. VARNAME
409
# must have a single quote delimited value for this to work.
410
m4_define([_LT_CONFIG_STATUS_DECLARE],
411
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
414
# _LT_CONFIG_STATUS_DECLARATIONS
415
# ------------------------------
416
# We delimit libtool config variables with single quotes, so when
417
# we write them to config.status, we have to be sure to quote all
418
# embedded single quotes properly. In configure, this macro expands
419
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
421
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
422
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
423
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
424
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
429
# Output comment and list of tags supported by the script
430
m4_defun([_LT_LIBTOOL_TAGS],
431
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
432
available_tags="_LT_TAGS"dnl
436
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
437
# -----------------------------------
438
# Extract the dictionary values for VARNAME (optionally with TAG) and
439
# expand to a commented shell variable setting:
441
# # Some comment about what VAR is for.
442
# visible_name=$lt_internal_name
443
m4_define([_LT_LIBTOOL_DECLARE],
444
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
445
[description])))[]dnl
446
m4_pushdef([_libtool_name],
447
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
448
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
449
[0], [_libtool_name=[$]$1],
450
[1], [_libtool_name=$lt_[]$1],
451
[2], [_libtool_name=$lt_[]$1],
452
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
453
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
457
# _LT_LIBTOOL_CONFIG_VARS
458
# -----------------------
459
# Produce commented declarations of non-tagged libtool config variables
460
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
461
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
462
# section) are produced by _LT_LIBTOOL_TAG_VARS.
463
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
464
[m4_foreach([_lt_var],
465
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
466
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
469
# _LT_LIBTOOL_TAG_VARS(TAG)
470
# -------------------------
471
m4_define([_LT_LIBTOOL_TAG_VARS],
472
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
473
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
476
# _LT_TAGVAR(VARNAME, [TAGNAME])
477
# ------------------------------
478
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
481
# _LT_CONFIG_COMMANDS
225
482
# -------------------
226
AC_DEFUN([_LT_AC_SYS_COMPILER],
483
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
484
# variables for single and double quote escaping we saved from calls
485
# to _LT_DECL, we can put quote escaped variables declarations
486
# into `config.status', and then the shell code to quote escape them in
487
# for loops in `config.status'. Finally, any additional code accumulated
488
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
489
m4_defun([_LT_CONFIG_COMMANDS],
490
[AC_PROVIDE_IFELSE([LT_OUTPUT],
491
dnl If the libtool generation code has been placed in $CONFIG_LT,
492
dnl instead of duplicating it all over again into config.status,
493
dnl then we will have config.status run $CONFIG_LT later, so it
494
dnl needs to know what name is stored there:
495
[AC_CONFIG_COMMANDS([libtool],
496
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
497
dnl If the libtool generation code is destined for config.status,
498
dnl expand the accumulated commands and init code now:
499
[AC_CONFIG_COMMANDS([libtool],
500
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
501
])#_LT_CONFIG_COMMANDS
505
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
508
# The HP-UX ksh and POSIX shell print the target directory to stdout
510
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
512
sed_quote_subst='$sed_quote_subst'
513
double_quote_subst='$double_quote_subst'
514
delay_variable_subst='$delay_variable_subst'
515
_LT_CONFIG_STATUS_DECLARATIONS
518
compiler='$compiler_DEFAULT'
520
# Quote evaled strings.
521
for var in lt_decl_all_varnames([[ \
522
]], lt_decl_quote_varnames); do
523
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
524
*[[\\\\\\\`\\"\\\$]]*)
525
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
528
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
533
# Double-quote double-evaled strings.
534
for var in lt_decl_all_varnames([[ \
535
]], lt_decl_dquote_varnames); do
536
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
537
*[[\\\\\\\`\\"\\\$]]*)
538
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
541
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
546
# Fix-up fallback echo if it was mangled by the above quoting rules.
548
*'\\\[$]0 --fallback-echo"')dnl "
549
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
553
_LT_OUTPUT_LIBTOOL_INIT
559
# This macro allows early generation of the libtool script (before
560
# AC_OUTPUT is called), incase it is used in configure for compilation
562
AC_DEFUN([LT_OUTPUT],
563
[: ${CONFIG_LT=./config.lt}
564
AC_MSG_NOTICE([creating $CONFIG_LT])
565
cat >"$CONFIG_LT" <<_LTEOF
567
# Generated by $as_me.
568
# Run this file to recreate a libtool stub with the current configuration.
571
SHELL=\${CONFIG_SHELL-$SHELL}
574
cat >>"$CONFIG_LT" <<\_LTEOF
578
exec AS_MESSAGE_FD>&1
579
exec AS_MESSAGE_LOG_FD>>config.log
582
AS_BOX([Running $as_me.])
583
} >&AS_MESSAGE_LOG_FD
586
\`$as_me' creates a local libtool stub from the current configuration,
587
for use in further configure time tests before the real libtool is
590
Usage: $[0] [[OPTIONS]]
592
-h, --help print this help, then exit
593
-V, --version print version number, then exit
594
-q, --quiet do not print progress messages
595
-d, --debug don't remove temporary files
597
Report bugs to <bug-libtool@gnu.org>."
600
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
601
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
602
configured by $[0], generated by m4_PACKAGE_STRING.
604
Copyright (C) 2008 Free Software Foundation, Inc.
605
This config.lt script is free software; the Free Software Foundation
606
gives unlimited permision to copy, distribute and modify it."
611
--version | --v* | -V )
612
echo "$lt_cl_version"; exit 0 ;;
614
echo "$lt_cl_help"; exit 0 ;;
615
--debug | --d* | -d )
617
--quiet | --q* | --silent | --s* | -q )
620
-*) AC_MSG_ERROR([unrecognized option: $[1]
621
Try \`$[0] --help' for more information.]) ;;
623
*) AC_MSG_ERROR([unrecognized argument: $[1]
624
Try \`$[0] --help' for more information.]) ;;
629
if $lt_cl_silent; then
630
exec AS_MESSAGE_FD>/dev/null
634
cat >>"$CONFIG_LT" <<_LTEOF
635
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
638
cat >>"$CONFIG_LT" <<\_LTEOF
639
AC_MSG_NOTICE([creating $ofile])
640
_LT_OUTPUT_LIBTOOL_COMMANDS
643
chmod +x "$CONFIG_LT"
645
# configure is writing to config.log, but config.lt does its own redirection,
646
# appending to config.log, which fails on DOS, as config.log is still kept
647
# open by configure. Here we exec the FD to /dev/null, effectively closing
648
# config.log, so it can be properly (re)opened and appended to by config.lt.
649
if test "$no_create" != yes; then
651
test "$silent" = yes &&
652
lt_config_lt_args="$lt_config_lt_args --quiet"
653
exec AS_MESSAGE_LOG_FD>/dev/null
654
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
655
exec AS_MESSAGE_LOG_FD>>config.log
656
$lt_cl_success || AS_EXIT(1)
663
# If TAG is the built-in tag, create an initial libtool script with a
664
# default configuration from the untagged config vars. Otherwise add code
665
# to config.status for appending the configuration named by TAG from the
666
# matching tagged config vars.
667
m4_defun([_LT_CONFIG],
668
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
669
_LT_CONFIG_SAVE_COMMANDS([
670
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
671
m4_if(_LT_TAG, [C], [
672
# See if we are running on zsh, and set the options which allow our
673
# commands through without removal of \ escapes.
674
if test -n "${ZSH_VERSION+set}" ; then
679
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
682
cat <<_LT_EOF >> "$cfgfile"
685
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
686
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
687
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
688
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
693
# ### BEGIN LIBTOOL CONFIG
694
_LT_LIBTOOL_CONFIG_VARS
696
# ### END LIBTOOL CONFIG
702
cat <<\_LT_EOF >> "$cfgfile"
703
# AIX sometimes has problems with the GCC collect2 program. For some
704
# reason, if we set the COLLECT_NAMES environment variable, the problems
705
# vanish in a puff of smoke.
706
if test "X${COLLECT_NAMES+set}" != Xset; then
716
# We use sed instead of cat because bash on DJGPP gets confused if
717
# if finds mixed CR/LF and LF-only lines. Since sed operates in
718
# text mode, it properly converts lines to CR/LF. This bash problem
719
# is reportedly fixed, but why not run on old versions too?
720
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
721
|| (rm -f "$cfgfile"; exit 1)
723
_LT_PROG_XSI_SHELLFNS
725
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
726
|| (rm -f "$cfgfile"; exit 1)
728
mv -f "$cfgfile" "$ofile" ||
729
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
732
[cat <<_LT_EOF >> "$ofile"
734
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
735
dnl in a comment (ie after a #).
736
# ### BEGIN LIBTOOL TAG CONFIG: $1
737
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
738
# ### END LIBTOOL TAG CONFIG: $1
745
TIMESTAMP='$TIMESTAMP'
748
])dnl /_LT_CONFIG_SAVE_COMMANDS
752
# LT_SUPPORTED_TAG(TAG)
753
# ---------------------
754
# Trace this macro to discover what tags are supported by the libtool
755
# --tag option, using:
756
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
757
AC_DEFUN([LT_SUPPORTED_TAG], [])
760
# C support is built-in for now
761
m4_define([_LT_LANG_C_enabled], [])
762
m4_define([_LT_TAGS], [])
767
# Enable libtool support for the given language if not already enabled.
769
[AC_BEFORE([$0], [LT_OUTPUT])dnl
772
[C++], [_LT_LANG(CXX)],
773
[Java], [_LT_LANG(GCJ)],
774
[Fortran 77], [_LT_LANG(F77)],
775
[Fortran], [_LT_LANG(FC)],
776
[Windows Resource], [_LT_LANG(RC)],
777
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
779
[m4_fatal([$0: unsupported language: "$1"])])])dnl
786
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
787
[LT_SUPPORTED_TAG([$1])dnl
788
m4_append([_LT_TAGS], [$1 ])dnl
789
m4_define([_LT_LANG_]$1[_enabled], [])dnl
790
_LT_LANG_$1_CONFIG($1)])dnl
794
# _LT_LANG_DEFAULT_CONFIG
795
# -----------------------
796
m4_defun([_LT_LANG_DEFAULT_CONFIG],
797
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
799
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
801
AC_PROVIDE_IFELSE([AC_PROG_F77],
803
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
805
AC_PROVIDE_IFELSE([AC_PROG_FC],
807
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
809
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
810
dnl pulling things in needlessly.
811
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
813
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
815
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
817
[m4_ifdef([AC_PROG_GCJ],
818
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
819
m4_ifdef([A][M_PROG_GCJ],
820
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
821
m4_ifdef([LT_PROG_GCJ],
822
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
824
AC_PROVIDE_IFELSE([LT_PROG_RC],
826
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
827
])# _LT_LANG_DEFAULT_CONFIG
830
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
831
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
832
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
833
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
834
dnl aclocal-1.4 backwards compatibility:
835
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
836
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
837
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
838
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
843
m4_defun([_LT_TAG_COMPILER],
227
844
[AC_REQUIRE([AC_PROG_CC])dnl
846
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
847
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
848
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
849
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
229
851
# If no C compiler was specified, use CC.
230
852
LTCC=${LTCC-"$CC"}
2648
3271
AC_CHECK_LIB(m, cos, LIBM="-lm")
2654
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2655
# -----------------------------------
2656
# sets LIBLTDL to the link flags for the libltdl convenience library and
2657
# LTDLINCL to the include flags for the libltdl header and adds
2658
# --enable-ltdl-convenience to the configure arguments. Note that
2659
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2660
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2661
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2662
# (note the single quotes!). If your package is not flat and you're not
2663
# using automake, define top_builddir and top_srcdir appropriately in
2665
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2666
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2667
case $enable_ltdl_convenience in
2668
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2669
"") enable_ltdl_convenience=yes
2670
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2672
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2673
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2674
# For backwards non-gettext consistent compatibility...
2676
])# AC_LIBLTDL_CONVENIENCE
2679
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2680
# -----------------------------------
2681
# sets LIBLTDL to the link flags for the libltdl installable library and
2682
# LTDLINCL to the include flags for the libltdl header and adds
2683
# --enable-ltdl-install to the configure arguments. Note that
2684
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2685
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2686
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2687
# '${top_srcdir}/' (note the single quotes!). If your package is not
2688
# flat and you're not using automake, define top_builddir and top_srcdir
2689
# appropriately in the Makefiles.
2690
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2691
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2692
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2693
AC_CHECK_LIB(ltdl, lt_dlinit,
2694
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2695
[if test x"$enable_ltdl_install" = xno; then
2696
AC_MSG_WARN([libltdl not installed, but installation disabled])
2698
enable_ltdl_install=yes
2701
if test x"$enable_ltdl_install" = x"yes"; then
2702
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2703
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2704
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2706
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2710
# For backwards non-gettext consistent compatibility...
2712
])# AC_LIBLTDL_INSTALLABLE
2717
# enable support for C++ libraries
2718
AC_DEFUN([AC_LIBTOOL_CXX],
2719
[AC_REQUIRE([_LT_AC_LANG_CXX])
2725
AC_DEFUN([_LT_AC_LANG_CXX],
2726
[AC_REQUIRE([AC_PROG_CXX])
2727
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2728
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2731
# _LT_AC_PROG_CXXCPP
2732
# ------------------
2733
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2735
AC_REQUIRE([AC_PROG_CXX])
2736
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2737
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2738
(test "X$CXX" != "Xg++"))) ; then
2741
])# _LT_AC_PROG_CXXCPP
2745
# enable support for Fortran 77 libraries
2746
AC_DEFUN([AC_LIBTOOL_F77],
2747
[AC_REQUIRE([_LT_AC_LANG_F77])
2753
AC_DEFUN([_LT_AC_LANG_F77],
2754
[AC_REQUIRE([AC_PROG_F77])
2755
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2761
# enable support for GCJ libraries
2762
AC_DEFUN([AC_LIBTOOL_GCJ],
2763
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2769
AC_DEFUN([_LT_AC_LANG_GCJ],
2770
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2771
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2772
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2773
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2774
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2775
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2776
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2782
# enable support for Windows resource files
2783
AC_DEFUN([AC_LIBTOOL_RC],
2784
[AC_REQUIRE([LT_AC_PROG_RC])
2785
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2789
# AC_LIBTOOL_LANG_C_CONFIG
2790
# ------------------------
2791
# Ensure that the configuration vars for the C compiler are
2792
# suitably defined. Those variables are subsequently used by
2793
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2794
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2795
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2799
# Source file extension for C test sources.
2802
# Object file extension for compiled C test sources.
2804
_LT_AC_TAGVAR(objext, $1)=$objext
2806
# Code to be used in simple compile tests
2807
lt_simple_compile_test_code="int some_variable = 0;"
2809
# Code to be used in simple link tests
2810
lt_simple_link_test_code='int main(){return(0);}'
2814
# save warnings/boilerplate of simple test code
2815
_LT_COMPILER_BOILERPLATE
2816
_LT_LINKER_BOILERPLATE
2819
## There is no encapsulation within the following macros, do not change
2820
## the running order or otherwise move them around unless you know exactly
2821
## what you are doing...
2822
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2823
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2824
AC_LIBTOOL_PROG_CC_C_O($1)
2825
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2826
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2827
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2828
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2829
AC_LIBTOOL_SYS_LIB_STRIP
2830
AC_LIBTOOL_DLOPEN_SELF
2832
# Report which library types will actually be built
2833
AC_MSG_CHECKING([if libtool supports shared libraries])
2834
AC_MSG_RESULT([$can_build_shared])
2836
AC_MSG_CHECKING([whether to build shared libraries])
2837
test "$can_build_shared" = "no" && enable_shared=no
2839
# On AIX, shared libraries and static libraries use the same namespace, and
2840
# are all built from PIC.
2843
test "$enable_shared" = yes && enable_static=no
2844
if test -n "$RANLIB"; then
2845
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2846
postinstall_cmds='$RANLIB $lib'
2851
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2852
test "$enable_shared" = yes && enable_static=no
2856
AC_MSG_RESULT([$enable_shared])
2858
AC_MSG_CHECKING([whether to build static libraries])
2859
# Make sure either enable_shared or enable_static is yes.
2860
test "$enable_shared" = yes || enable_static=yes
2861
AC_MSG_RESULT([$enable_static])
2863
AC_LIBTOOL_CONFIG($1)
2867
])# AC_LIBTOOL_LANG_C_CONFIG
2870
# AC_LIBTOOL_LANG_CXX_CONFIG
2871
# --------------------------
2872
# Ensure that the configuration vars for the C compiler are
2873
# suitably defined. Those variables are subsequently used by
2874
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2875
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2876
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2878
AC_REQUIRE([AC_PROG_CXX])
2879
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2881
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2882
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2883
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2884
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2885
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2886
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2887
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2888
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2889
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2890
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2891
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2892
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2893
_LT_AC_TAGVAR(module_cmds, $1)=
2894
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2895
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2896
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2897
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2898
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2899
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2901
# Dependencies to place before and after the object being linked:
2902
_LT_AC_TAGVAR(predep_objects, $1)=
2903
_LT_AC_TAGVAR(postdep_objects, $1)=
2904
_LT_AC_TAGVAR(predeps, $1)=
2905
_LT_AC_TAGVAR(postdeps, $1)=
2906
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2907
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2909
# Source file extension for C++ test sources.
2912
# Object file extension for compiled C++ test sources.
2914
_LT_AC_TAGVAR(objext, $1)=$objext
2916
# Code to be used in simple compile tests
2917
lt_simple_compile_test_code="int some_variable = 0;"
2919
# Code to be used in simple link tests
2920
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2922
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2925
# save warnings/boilerplate of simple test code
2926
_LT_COMPILER_BOILERPLATE
2927
_LT_LINKER_BOILERPLATE
2929
# Allow CC to be a program name with arguments.
2934
lt_save_with_gnu_ld=$with_gnu_ld
2935
lt_save_path_LD=$lt_cv_path_LD
2936
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2937
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2939
$as_unset lt_cv_prog_gnu_ld
2941
if test -n "${lt_cv_path_LDCXX+set}"; then
2942
lt_cv_path_LD=$lt_cv_path_LDCXX
2944
$as_unset lt_cv_path_LD
2946
test -z "${LDCXX+set}" || LD=$LDCXX
2949
_LT_AC_TAGVAR(compiler, $1)=$CC
2950
_LT_CC_BASENAME([$compiler])
2952
# We don't want -fno-exception wen compiling C++ code, so set the
2953
# no_builtin_flag separately
2954
if test "$GXX" = yes; then
2955
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2957
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2960
if test "$GXX" = yes; then
2961
# Set up default GNU C++ configuration
2965
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2966
# archiving commands below assume that GNU ld is being used.
2967
if test "$with_gnu_ld" = yes; then
2968
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2969
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2972
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2974
# If archive_cmds runs LD, not CC, wlarc should be empty
2975
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2976
# investigate it a little bit more. (MM)
2979
# ancient GNU ld didn't support --whole-archive et. al.
2980
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2981
grep 'no-whole-archive' > /dev/null; then
2982
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2984
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2990
# A generic and very simple default shared library creation
2991
# command for GNU C++ for the case where it uses the native
2992
# linker, instead of GNU ld. If possible, this setting should
2993
# overridden to take advantage of the native linker features on
2994
# the platform it is being used on.
2995
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2998
# Commands to make compiler produce verbose output that lists
2999
# what "hidden" libraries, object files and flags are used when
3000
# linking a shared library.
3001
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3009
# PORTME: fill in a description of your system's C++ link characteristics
3010
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3011
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3014
# FIXME: insert proper C++ library support
3015
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3018
if test "$host_cpu" = ia64; then
3019
# On IA64, the linker does run time linking by default, so we don't
3020
# have to do anything special.
3021
aix_use_runtimelinking=no
3022
exp_sym_flag='-Bexport'
3025
aix_use_runtimelinking=no
3027
# Test if we are trying to use run time linking or normal
3028
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3029
# need to do runtime linking.
3030
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3031
for ld_flag in $LDFLAGS; do
3034
aix_use_runtimelinking=yes
3042
exp_sym_flag='-bexport'
3043
no_entry_flag='-bnoentry'
3046
# When large executables or shared objects are built, AIX ld can
3047
# have problems creating the table of contents. If linking a library
3048
# or program results in "error TOC overflow" add -mminimal-toc to
3049
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3050
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3052
_LT_AC_TAGVAR(archive_cmds, $1)=''
3053
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3054
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3055
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3057
if test "$GXX" = yes; then
3058
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3059
# We only want to do this on AIX 4.2 and lower, the check
3060
# below for broken collect2 doesn't work under 4.3+
3061
collect2name=`${CC} -print-prog-name=collect2`
3062
if test -f "$collect2name" && \
3063
strings "$collect2name" | grep resolve_lib_name >/dev/null
3065
# We have reworked collect2
3068
# We have old collect2
3069
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3070
# It fails to find uninstalled libraries when the uninstalled
3071
# path is not listed in the libpath. Setting hardcode_minus_L
3072
# to unsupported forces relinking
3073
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3074
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3075
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3079
shared_flag='-shared'
3080
if test "$aix_use_runtimelinking" = yes; then
3081
shared_flag="$shared_flag "'${wl}-G'
3085
if test "$host_cpu" = ia64; then
3086
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3087
# chokes on -Wl,-G. The following line is correct:
3090
if test "$aix_use_runtimelinking" = yes; then
3091
shared_flag='${wl}-G'
3093
shared_flag='${wl}-bM:SRE'
3098
# It seems that -bexpall does not export symbols beginning with
3099
# underscore (_), so it is better to generate a list of symbols to export.
3100
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3101
if test "$aix_use_runtimelinking" = yes; then
3102
# Warning - without using the other runtime loading flags (-brtl),
3103
# -berok will link without error, but may produce a broken library.
3104
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3105
# Determine the default libpath from the value encoded in an empty executable.
3106
_LT_AC_SYS_LIBPATH_AIX
3107
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3109
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3111
if test "$host_cpu" = ia64; then
3112
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3113
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3114
_LT_AC_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"
3116
# Determine the default libpath from the value encoded in an empty executable.
3117
_LT_AC_SYS_LIBPATH_AIX
3118
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3119
# Warning - without using the other run time loading flags,
3120
# -berok will link without error, but may produce a broken library.
3121
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3122
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3123
# Exported symbols can be pulled into shared objects from archives
3124
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3125
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3126
# This is similar to how AIX traditionally builds its shared libraries.
3127
_LT_AC_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'
3133
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3134
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3135
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3136
# support --undefined. This deserves some investigation. FIXME
3137
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3139
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3144
case $cc_basename in
3146
# FIXME: insert proper C++ library support
3147
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3152
cygwin* | mingw* | pw32*)
3153
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3154
# as there is no search path for DLLs.
3155
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3156
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3157
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3158
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3160
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3161
_LT_AC_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'
3162
# If the export-symbols file already is a .def file (1st line
3163
# is EXPORTS), use it as is; otherwise, prepend...
3164
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3165
cp $export_symbols $output_objdir/$soname.def;
3167
echo EXPORTS > $output_objdir/$soname.def;
3168
cat $export_symbols >> $output_objdir/$soname.def;
3170
$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'
3172
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3175
darwin* | rhapsody*)
3176
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3177
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3178
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3179
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3180
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3181
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3182
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3183
if test "$GXX" = yes ; then
3184
output_verbose_link_cmd='echo'
3185
_LT_AC_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}"
3186
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3187
_LT_AC_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}"
3188
_LT_AC_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}"
3189
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3190
_LT_AC_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}"
3191
_LT_AC_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}"
3194
case $cc_basename in
3196
output_verbose_link_cmd='echo'
3197
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3198
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3199
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3200
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3201
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3204
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3211
case $cc_basename in
3213
# FIXME: insert proper C++ library support
3214
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3217
# Green Hills C++ Compiler
3218
# FIXME: insert proper C++ library support
3219
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3222
# FIXME: insert proper C++ library support
3223
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3228
# C++ shared libraries reported to be fairly broken before switch to ELF
3229
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3232
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3234
freebsd* | dragonfly*)
3235
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3237
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3242
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3243
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3244
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3245
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3246
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3247
# but as the default
3248
# location of the library.
3250
case $cc_basename in
3252
# FIXME: insert proper C++ library support
3253
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3256
_LT_AC_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'
3257
# Commands to make compiler produce verbose output that lists
3258
# what "hidden" libraries, object files and flags are used when
3259
# linking a shared library.
3261
# There doesn't appear to be a way to prevent this compiler from
3262
# explicitly linking system object files so we need to strip them
3263
# from the output so that they don't get included in the library
3265
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3268
if test "$GXX" = yes; then
3269
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3271
# FIXME: insert proper C++ library support
3272
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3278
if test $with_gnu_ld = no; then
3279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3285
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3291
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3292
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3295
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3296
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3297
# but as the default
3298
# location of the library.
3302
case $cc_basename in
3304
# FIXME: insert proper C++ library support
3305
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3310
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3313
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3316
_LT_AC_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'
3319
# Commands to make compiler produce verbose output that lists
3320
# what "hidden" libraries, object files and flags are used when
3321
# linking a shared library.
3323
# There doesn't appear to be a way to prevent this compiler from
3324
# explicitly linking system object files so we need to strip them
3325
# from the output so that they don't get included in the library
3327
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3330
if test "$GXX" = yes; then
3331
if test $with_gnu_ld = no; then
3334
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3337
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3340
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3345
# FIXME: insert proper C++ library support
3346
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3352
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3353
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3354
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3355
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3356
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3357
# Instead, shared libraries are loaded at an image base (0x10000000 by
3358
# default) and relocated if they conflict, which is a slow very memory
3359
# consuming and fragmenting process. To avoid this, we pick a random,
3360
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3361
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3362
_LT_AC_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'
3363
_LT_AC_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'
3366
case $cc_basename in
3369
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3371
# Archives containing C++ object files must be created using
3372
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3373
# necessary to make sure instantiated templates are included
3375
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3378
if test "$GXX" = yes; then
3379
if test "$with_gnu_ld" = no; then
3380
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3382
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3385
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3388
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3389
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3391
linux* | k*bsd*-gnu)
3392
case $cc_basename in
3394
# Kuck and Associates, Inc. (KAI) C++ Compiler
3396
# KCC will only create a shared library if the output file
3397
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3398
# to its proper name (with version) after linking.
3399
_LT_AC_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'
3400
_LT_AC_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'
3401
# Commands to make compiler produce verbose output that lists
3402
# what "hidden" libraries, object files and flags are used when
3403
# linking a shared library.
3405
# There doesn't appear to be a way to prevent this compiler from
3406
# explicitly linking system object files so we need to strip them
3407
# from the output so that they don't get included in the library
3409
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3411
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3412
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3414
# Archives containing C++ object files must be created using
3415
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3416
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3421
# version 8.0 and above of icpc choke on multiply defined symbols
3422
# if we add $predep_objects and $postdep_objects, however 7.1 and
3423
# earlier do not add the objects themselves.
3424
case `$CC -V 2>&1` in
3426
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3427
_LT_AC_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'
3429
*) # Version 8.0 or newer
3432
ia64*) tmp_idyn=' -i_dynamic';;
3434
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3435
_LT_AC_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'
3438
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3440
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3441
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3444
# Portland Group C++ compiler
3445
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3446
_LT_AC_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'
3448
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3449
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3450
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3454
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3455
_LT_AC_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'
3457
runpath_var=LD_RUN_PATH
3458
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3459
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3461
# Commands to make compiler produce verbose output that lists
3462
# what "hidden" libraries, object files and flags are used when
3463
# linking a shared library.
3465
# There doesn't appear to be a way to prevent this compiler from
3466
# explicitly linking system object files so we need to strip them
3467
# from the output so that they don't get included in the library
3469
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
3472
case `$CC -V 2>&1 | sed 5q` in
3475
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3476
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3477
_LT_AC_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'
3478
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3479
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3481
# Not sure whether something based on
3482
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3484
output_verbose_link_cmd='echo'
3486
# Archives containing C++ object files must be created using
3487
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3488
# necessary to make sure instantiated templates are included
3490
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3497
# FIXME: insert proper C++ library support
3498
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3501
# FIXME: insert proper C++ library support
3502
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3505
case $cc_basename in
3507
# FIXME: insert proper C++ library support
3508
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3511
# FIXME: insert proper C++ library support
3512
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3516
netbsd* | netbsdelf*-gnu)
3517
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3518
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3520
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3521
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3522
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3524
# Workaround some broken pre-1.5 toolchains
3525
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3528
# C++ shared libraries are fairly broken
3529
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3532
if test -f /usr/libexec/ld.so; then
3533
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3534
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3535
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3536
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3537
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3538
_LT_AC_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'
3539
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3540
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3542
output_verbose_link_cmd='echo'
3544
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3548
case $cc_basename in
3550
# Kuck and Associates, Inc. (KAI) C++ Compiler
3552
# KCC will only create a shared library if the output file
3553
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3554
# to its proper name (with version) after linking.
3555
_LT_AC_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'
3557
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3558
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3560
# Archives containing C++ object files must be created using
3561
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3562
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3566
# Rational C++ 2.4.1
3567
# FIXME: insert proper C++ library support
3568
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3571
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3572
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3574
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3575
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3577
# Commands to make compiler produce verbose output that lists
3578
# what "hidden" libraries, object files and flags are used when
3579
# linking a shared library.
3581
# There doesn't appear to be a way to prevent this compiler from
3582
# explicitly linking system object files so we need to strip them
3583
# from the output so that they don't get included in the library
3585
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3588
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3589
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3590
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3592
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3593
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3595
# Commands to make compiler produce verbose output that lists
3596
# what "hidden" libraries, object files and flags are used when
3597
# linking a shared library.
3598
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3601
# FIXME: insert proper C++ library support
3602
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3608
case $cc_basename in
3610
# Kuck and Associates, Inc. (KAI) C++ Compiler
3612
# KCC will only create a shared library if the output file
3613
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3614
# to its proper name (with version) after linking.
3615
_LT_AC_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'
3617
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3618
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3620
# Archives containing C++ object files must be created using
3621
# the KAI C++ compiler.
3622
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3625
# Rational C++ 2.4.1
3626
# FIXME: insert proper C++ library support
3627
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3630
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3631
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3632
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3633
echo "-hidden">> $lib.exp~
3634
$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~
3637
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3638
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3640
# Commands to make compiler produce verbose output that lists
3641
# what "hidden" libraries, object files and flags are used when
3642
# linking a shared library.
3644
# There doesn't appear to be a way to prevent this compiler from
3645
# explicitly linking system object files so we need to strip them
3646
# from the output so that they don't get included in the library
3648
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
3651
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3652
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3653
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3655
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3656
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3658
# Commands to make compiler produce verbose output that lists
3659
# what "hidden" libraries, object files and flags are used when
3660
# linking a shared library.
3661
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3664
# FIXME: insert proper C++ library support
3665
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3671
# FIXME: insert proper C++ library support
3672
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3675
case $cc_basename in
3678
# FIXME: insert proper C++ library support
3679
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3683
# FIXME: insert proper C++ library support
3684
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3687
# FIXME: insert proper C++ library support
3688
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3693
case $cc_basename in
3695
# Sun C++ 4.2, 5.x and Centerline C++
3696
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3697
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3698
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3699
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3700
$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'
3702
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3703
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3705
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3707
# The compiler driver will combine and reorder linker options,
3708
# but understands `-z linker_flag'.
3709
# Supported since Solaris 2.6 (maybe 2.5.1?)
3710
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3713
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3715
output_verbose_link_cmd='echo'
3717
# Archives containing C++ object files must be created using
3718
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3719
# necessary to make sure instantiated templates are included
3721
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3724
# Green Hills C++ Compiler
3725
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3727
# The C++ compiler must be used to create the archive.
3728
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3731
# GNU C++ compiler with Solaris linker
3732
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3733
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3734
if $CC --version | grep -v '^2\.7' > /dev/null; then
3735
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3736
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3737
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3739
# Commands to make compiler produce verbose output that lists
3740
# what "hidden" libraries, object files and flags are used when
3741
# linking a shared library.
3742
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3744
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3746
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3747
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3748
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3750
# Commands to make compiler produce verbose output that lists
3751
# what "hidden" libraries, object files and flags are used when
3752
# linking a shared library.
3753
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3758
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3760
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3767
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3768
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3769
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3770
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3771
runpath_var='LD_RUN_PATH'
3773
case $cc_basename in
3775
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3776
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3779
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3780
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3784
sysv5* | sco3.2v5* | sco5v6*)
3785
# Note: We can NOT use -z defs as we might desire, because we do not
3786
# link with -lc, and that would cause any symbols used from libc to
3787
# always be unresolved, which means just about no library would
3788
# ever link correctly. If we're not using GNU ld we use -z text
3789
# though, which does catch some bad symbols but isn't as heavy-handed
3791
# For security reasons, it is highly recommended that you always
3792
# use absolute paths for naming shared libraries, and exclude the
3793
# DT_RUNPATH tag from executables and libraries. But doing so
3794
# requires that you compile everything twice, which is a pain.
3795
# So that behaviour is only enabled if SCOABSPATH is set to a
3796
# non-empty value in the environment. Most likely only useful for
3797
# creating official distributions of packages.
3798
# This is a hack until libtool officially supports absolute path
3799
# names for shared libraries.
3800
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3801
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3802
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3803
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3804
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3805
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3806
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3807
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3808
runpath_var='LD_RUN_PATH'
3810
case $cc_basename in
3812
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3813
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3816
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3817
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3822
case $cc_basename in
3824
# NonStop-UX NCC 3.20
3825
# FIXME: insert proper C++ library support
3826
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3829
# FIXME: insert proper C++ library support
3830
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3835
# FIXME: insert proper C++ library support
3836
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3839
# FIXME: insert proper C++ library support
3840
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3843
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3844
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3846
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3847
_LT_AC_TAGVAR(LD, $1)="$LD"
3850
## There is no encapsulation within the following macros, do not change
3851
## the running order or otherwise move them around unless you know exactly
3852
## what you are doing...
3853
AC_LIBTOOL_POSTDEP_PREDEP($1)
3854
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3855
AC_LIBTOOL_PROG_CC_C_O($1)
3856
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3857
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3858
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3859
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3861
AC_LIBTOOL_CONFIG($1)
3868
with_gnu_ldcxx=$with_gnu_ld
3869
with_gnu_ld=$lt_save_with_gnu_ld
3870
lt_cv_path_LDCXX=$lt_cv_path_LD
3871
lt_cv_path_LD=$lt_save_path_LD
3872
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3873
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3874
])# AC_LIBTOOL_LANG_CXX_CONFIG
3876
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3877
# ------------------------------------
3878
# Figure out "hidden" library dependencies from verbose
3879
# compiler output when linking a shared library.
3880
# Parse the compiler output and extract the necessary
3881
# objects, libraries and library flags.
3882
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3883
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3884
dnl we can't use the lt_simple_compile_test_code here,
3885
dnl because it contains code intended for an executable,
3886
dnl not a library. It's possible we should let each
3887
dnl tag define a new lt_????_link_test_code variable,
3888
dnl but it's only used here...
3889
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3891
void foo (void) { a = 0; }
3893
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3897
Foo (void) { a = 0; }
3902
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3910
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3913
public void bar (void) {
3919
dnl Parse the compiler output and extract the necessary
3920
dnl objects, libraries and library flags.
3921
if AC_TRY_EVAL(ac_compile); then
3922
# Parse the compiler output and extract the necessary
3923
# objects, libraries and library flags.
3925
# Sentinel used to keep track of whether or not we are before
3926
# the conftest object file.
3927
pre_test_object_deps_done=no
3929
# The `*' in the case matches for architectures that use `case' in
3930
# $output_verbose_cmd can trigger glob expansion during the loop
3931
# eval without this substitution.
3932
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3934
for p in `eval $output_verbose_link_cmd`; do
3938
# Some compilers place space between "-{L,R}" and the path.
3941
|| test $p = "-R"; then
3948
if test "$pre_test_object_deps_done" = no; then
3951
# Internal compiler library paths should come after those
3952
# provided the user. The postdeps already come after the
3953
# user supplied libs so there is no need to process them.
3954
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3955
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3957
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3960
# The "-l" case would never come before the object being
3961
# linked, so don't bother handling this case.
3964
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3965
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3967
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3973
# This assumes that the test object file only shows up
3974
# once in the compiler output.
3975
if test "$p" = "conftest.$objext"; then
3976
pre_test_object_deps_done=yes
3980
if test "$pre_test_object_deps_done" = no; then
3981
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3982
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3984
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3987
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3988
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3990
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3995
*) ;; # Ignore the rest.
4003
echo "libtool.m4: error: problem compiling $1 test program"
4006
$rm -f confest.$objext
4008
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4009
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4010
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4013
# PORTME: override above test on systems where it is broken
4017
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4018
# hack all around it, let's just trust "g++" to DTRT.
4019
_LT_AC_TAGVAR(predep_objects,$1)=
4020
_LT_AC_TAGVAR(postdep_objects,$1)=
4021
_LT_AC_TAGVAR(postdeps,$1)=
4025
case `$CC -V 2>&1 | sed 5q` in
4029
# The more standards-conforming stlport4 library is
4030
# incompatible with the Cstd library. Avoid specifying
4031
# it if it's in CXXFLAGS. Ignore libCrun as
4032
# -library=stlport4 depends on it.
4033
case " $CXX $CXXFLAGS " in
4034
*" -library=stlport4 "*)
4035
solaris_use_stlport4=yes
4038
if test "$solaris_use_stlport4" != yes; then
4039
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4046
case $cc_basename in
4048
# The more standards-conforming stlport4 library is
4049
# incompatible with the Cstd library. Avoid specifying
4050
# it if it's in CXXFLAGS. Ignore libCrun as
4051
# -library=stlport4 depends on it.
4052
case " $CXX $CXXFLAGS " in
4053
*" -library=stlport4 "*)
4054
solaris_use_stlport4=yes
4058
# Adding this requires a known-good setup of shared libraries for
4059
# Sun compiler versions before 5.6, else PIC objects from an old
4060
# archive will be linked into the output, leading to subtle bugs.
4061
if test "$solaris_use_stlport4" != yes; then
4062
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4069
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4070
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4072
])# AC_LIBTOOL_POSTDEP_PREDEP
4074
# AC_LIBTOOL_LANG_F77_CONFIG
4075
# --------------------------
4076
# Ensure that the configuration vars for the C compiler are
4077
# suitably defined. Those variables are subsequently used by
4078
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4079
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4080
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4081
[AC_REQUIRE([AC_PROG_F77])
4082
AC_LANG_PUSH(Fortran 77)
4084
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4085
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4086
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4087
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4088
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4089
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4090
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4091
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4092
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4093
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4094
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4095
_LT_AC_TAGVAR(module_cmds, $1)=
4096
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4097
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4098
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4099
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4100
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4101
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4103
# Source file extension for f77 test sources.
4106
# Object file extension for compiled f77 test sources.
4108
_LT_AC_TAGVAR(objext, $1)=$objext
4110
# Code to be used in simple compile tests
4111
lt_simple_compile_test_code="\
4117
# Code to be used in simple link tests
4118
lt_simple_link_test_code="\
4123
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4126
# save warnings/boilerplate of simple test code
4127
_LT_COMPILER_BOILERPLATE
4128
_LT_LINKER_BOILERPLATE
4130
# Allow CC to be a program name with arguments.
4134
_LT_AC_TAGVAR(compiler, $1)=$CC
4135
_LT_CC_BASENAME([$compiler])
4137
AC_MSG_CHECKING([if libtool supports shared libraries])
4138
AC_MSG_RESULT([$can_build_shared])
4140
AC_MSG_CHECKING([whether to build shared libraries])
4141
test "$can_build_shared" = "no" && enable_shared=no
4143
# On AIX, shared libraries and static libraries use the same namespace, and
4144
# are all built from PIC.
4147
test "$enable_shared" = yes && enable_static=no
4148
if test -n "$RANLIB"; then
4149
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4150
postinstall_cmds='$RANLIB $lib'
4154
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4155
test "$enable_shared" = yes && enable_static=no
4159
AC_MSG_RESULT([$enable_shared])
4161
AC_MSG_CHECKING([whether to build static libraries])
4162
# Make sure either enable_shared or enable_static is yes.
4163
test "$enable_shared" = yes || enable_static=yes
4164
AC_MSG_RESULT([$enable_static])
4166
_LT_AC_TAGVAR(GCC, $1)="$G77"
4167
_LT_AC_TAGVAR(LD, $1)="$LD"
4169
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4170
AC_LIBTOOL_PROG_CC_C_O($1)
4171
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4172
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4173
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4174
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4176
AC_LIBTOOL_CONFIG($1)
4180
])# AC_LIBTOOL_LANG_F77_CONFIG
4183
# AC_LIBTOOL_LANG_GCJ_CONFIG
4184
# --------------------------
4185
# Ensure that the configuration vars for the C compiler are
4186
# suitably defined. Those variables are subsequently used by
4187
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4188
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4189
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4192
# Source file extension for Java test sources.
4195
# Object file extension for compiled Java test sources.
4197
_LT_AC_TAGVAR(objext, $1)=$objext
4199
# Code to be used in simple compile tests
4200
lt_simple_compile_test_code="class foo {}"
4202
# Code to be used in simple link tests
4203
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4205
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4208
# save warnings/boilerplate of simple test code
4209
_LT_COMPILER_BOILERPLATE
4210
_LT_LINKER_BOILERPLATE
4212
# Allow CC to be a program name with arguments.
4216
_LT_AC_TAGVAR(compiler, $1)=$CC
4217
_LT_CC_BASENAME([$compiler])
4219
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4220
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4222
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4225
## There is no encapsulation within the following macros, do not change
4226
## the running order or otherwise move them around unless you know exactly
4227
## what you are doing...
4228
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4229
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4230
AC_LIBTOOL_PROG_CC_C_O($1)
4231
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4232
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4233
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4234
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4236
AC_LIBTOOL_CONFIG($1)
4240
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4243
# AC_LIBTOOL_LANG_RC_CONFIG
4244
# -------------------------
4245
# Ensure that the configuration vars for the Windows resource compiler are
4246
# suitably defined. Those variables are subsequently used by
4247
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4248
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4249
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4252
# Source file extension for RC test sources.
4255
# Object file extension for compiled RC test sources.
4257
_LT_AC_TAGVAR(objext, $1)=$objext
4259
# Code to be used in simple compile tests
4260
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4262
# Code to be used in simple link tests
4263
lt_simple_link_test_code="$lt_simple_compile_test_code"
4265
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4268
# save warnings/boilerplate of simple test code
4269
_LT_COMPILER_BOILERPLATE
4270
_LT_LINKER_BOILERPLATE
4272
# Allow CC to be a program name with arguments.
4276
_LT_AC_TAGVAR(compiler, $1)=$CC
4277
_LT_CC_BASENAME([$compiler])
4278
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4280
AC_LIBTOOL_CONFIG($1)
4284
])# AC_LIBTOOL_LANG_RC_CONFIG
4287
# AC_LIBTOOL_CONFIG([TAGNAME])
4288
# ----------------------------
4289
# If TAGNAME is not passed, then create an initial libtool script
4290
# with a default configuration from the untagged config vars. Otherwise
4291
# add code to config.status for appending the configuration named by
4292
# TAGNAME from the matching tagged config vars.
4293
AC_DEFUN([AC_LIBTOOL_CONFIG],
4294
[# The else clause should only fire when bootstrapping the
4295
# libtool distribution, otherwise you forgot to ship ltmain.sh
4296
# with your package, and you will get complaints that there are
4297
# no rules to generate ltmain.sh.
4298
if test -f "$ltmain"; then
4299
# See if we are running on zsh, and set the options which allow our commands through
4300
# without removal of \ escapes.
4301
if test -n "${ZSH_VERSION+set}" ; then
4302
setopt NO_GLOB_SUBST
4304
# Now quote all the things that may contain metacharacters while being
4305
# careful not to overquote the AC_SUBSTed values. We take copies of the
4306
# variables and quote the copies for generation of the libtool script.
4307
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4309
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4310
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4311
deplibs_check_method reload_flag reload_cmds need_locks \
4312
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4313
lt_cv_sys_global_symbol_to_c_name_address \
4314
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4315
old_postinstall_cmds old_postuninstall_cmds \
4316
_LT_AC_TAGVAR(compiler, $1) \
4317
_LT_AC_TAGVAR(CC, $1) \
4318
_LT_AC_TAGVAR(LD, $1) \
4319
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4320
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4321
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4322
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4323
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4324
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4325
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4326
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4327
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4328
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4329
_LT_AC_TAGVAR(predep_objects, $1) \
4330
_LT_AC_TAGVAR(postdep_objects, $1) \
4331
_LT_AC_TAGVAR(predeps, $1) \
4332
_LT_AC_TAGVAR(postdeps, $1) \
4333
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4334
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4335
_LT_AC_TAGVAR(archive_cmds, $1) \
4336
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4337
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4338
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4339
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4340
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4341
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4342
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4343
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4344
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4345
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4346
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4347
_LT_AC_TAGVAR(module_cmds, $1) \
4348
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4349
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4350
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4351
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4352
_LT_AC_TAGVAR(include_expsyms, $1); do
4355
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4356
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4357
_LT_AC_TAGVAR(archive_cmds, $1) | \
4358
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4359
_LT_AC_TAGVAR(module_cmds, $1) | \
4360
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4361
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4362
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4363
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4364
postinstall_cmds | postuninstall_cmds | \
4365
old_postinstall_cmds | old_postuninstall_cmds | \
4366
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4367
# Double-quote double-evaled strings.
4368
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4371
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4377
*'\[$]0 --fallback-echo"')
4378
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4383
[cfgfile="${ofile}T"
4384
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4386
AC_MSG_NOTICE([creating $ofile])],
4389
cat <<__EOF__ >> "$cfgfile"
4393
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4394
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4395
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4397
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4398
# Free Software Foundation, Inc.
4400
# This file is part of GNU Libtool:
4401
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4403
# This program is free software; you can redistribute it and/or modify
4404
# it under the terms of the GNU General Public License as published by
4405
# the Free Software Foundation; either version 2 of the License, or
4406
# (at your option) any later version.
4408
# This program is distributed in the hope that it will be useful, but
4409
# WITHOUT ANY WARRANTY; without even the implied warranty of
4410
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4411
# General Public License for more details.
4413
# You should have received a copy of the GNU General Public License
4414
# along with this program; if not, write to the Free Software
4415
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4417
# As a special exception to the GNU General Public License, if you
4418
# distribute this file as part of a program that contains a
4419
# configuration script generated by Autoconf, you may include it under
4420
# the same distribution terms that you use for the rest of that program.
4422
# A sed program that does not truncate output.
4425
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4426
Xsed="$SED -e 1s/^X//"
4428
# The HP-UX ksh and POSIX shell print the target directory to stdout
4430
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4432
# The names of the tagged configurations supported by this script.
4435
# ### BEGIN LIBTOOL CONFIG],
4436
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4438
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4440
# Shell to use when invoking shell scripts.
4443
# Whether or not to build shared libraries.
4444
build_libtool_libs=$enable_shared
4446
# Whether or not to build static libraries.
4447
build_old_libs=$enable_static
4449
# Whether or not to add -lc for building shared libraries.
4450
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4452
# Whether or not to disallow shared libs when runtime libs are static
4453
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4455
# Whether or not to optimize for fast installation.
4456
fast_install=$enable_fast_install
4459
host_alias=$host_alias
4464
build_alias=$build_alias
4468
# An echo program that does not interpret backslashes.
4473
AR_FLAGS=$lt_AR_FLAGS
4478
# LTCC compiler flags.
4479
LTCFLAGS=$lt_LTCFLAGS
4481
# A language-specific compiler.
4482
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4484
# Is the compiler the GNU C compiler?
4485
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4490
# The linker used to build libraries.
4491
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4493
# Whether we need hard or soft links.
4496
# A BSD-compatible nm program.
4499
# A symbol stripping program
4502
# Used to examine libraries when file_magic_cmd begins "file"
4503
MAGIC_CMD=$MAGIC_CMD
4505
# Used on cygwin: DLL creation program.
4508
# Used on cygwin: object dumper.
4511
# Used on cygwin: assembler.
4514
# The name of the directory that contains temporary libtool files.
4517
# How to create reloadable object files.
4518
reload_flag=$lt_reload_flag
4519
reload_cmds=$lt_reload_cmds
4521
# How to pass a linker flag through the compiler.
4522
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4524
# Object file suffix (normally "o").
4527
# Old archive suffix (normally "a").
4530
# Shared library suffix (normally ".so").
4531
shrext_cmds='$shrext_cmds'
4533
# Executable file suffix (normally "").
4536
# Additional compiler flags for building library objects.
4537
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4540
# What is the maximum length of a command?
4541
max_cmd_len=$lt_cv_sys_max_cmd_len
4543
# Does compiler simultaneously support -c and -o options?
4544
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4546
# Must we lock files when doing compilation?
4547
need_locks=$lt_need_locks
4549
# Do we need the lib prefix for modules?
4550
need_lib_prefix=$need_lib_prefix
4552
# Do we need a version for libraries?
4553
need_version=$need_version
4555
# Whether dlopen is supported.
4556
dlopen_support=$enable_dlopen
4558
# Whether dlopen of programs is supported.
4559
dlopen_self=$enable_dlopen_self
4561
# Whether dlopen of statically linked programs is supported.
4562
dlopen_self_static=$enable_dlopen_self_static
4564
# Compiler flag to prevent dynamic linking.
4565
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4567
# Compiler flag to turn off builtin functions.
4568
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4570
# Compiler flag to allow reflexive dlopens.
4571
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4573
# Compiler flag to generate shared objects directly from archives.
4574
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4576
# Compiler flag to generate thread-safe objects.
4577
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4579
# Library versioning type.
4580
version_type=$version_type
4582
# Format of library name prefix.
4583
libname_spec=$lt_libname_spec
4585
# List of archive names. First name is the real one, the rest are links.
4586
# The last name is the one that the linker finds with -lNAME.
4587
library_names_spec=$lt_library_names_spec
4589
# The coded name of the library, if different from the real name.
4590
soname_spec=$lt_soname_spec
4592
# Commands used to build and install an old-style archive.
4594
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4595
old_postinstall_cmds=$lt_old_postinstall_cmds
4596
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4598
# Create an old-style archive from a shared archive.
4599
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4601
# Create a temporary old-style archive to link instead of a shared archive.
4602
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4604
# Commands used to build and install a shared archive.
4605
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4606
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4607
postinstall_cmds=$lt_postinstall_cmds
4608
postuninstall_cmds=$lt_postuninstall_cmds
4610
# Commands used to build a loadable module (assumed same as above if empty)
4611
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4612
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4614
# Commands to strip libraries.
4615
old_striplib=$lt_old_striplib
4616
striplib=$lt_striplib
4618
# Dependencies to place before the objects being linked to create a
4620
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4622
# Dependencies to place after the objects being linked to create a
4624
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4626
# Dependencies to place before the objects being linked to create a
4628
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4630
# Dependencies to place after the objects being linked to create a
4632
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4634
# The directories searched by this compiler when creating a shared
4636
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4638
# The library search path used internally by the compiler when linking
4640
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4642
# Method to check whether dependent libraries are shared objects.
4643
deplibs_check_method=$lt_deplibs_check_method
4645
# Command to use when deplibs_check_method == file_magic.
4646
file_magic_cmd=$lt_file_magic_cmd
4648
# Flag that allows shared libraries with undefined symbols to be built.
4649
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4651
# Flag that forces no undefined symbols.
4652
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4654
# Commands used to finish a libtool library installation in a directory.
4655
finish_cmds=$lt_finish_cmds
4657
# Same as above, but a single script fragment to be evaled but not shown.
4658
finish_eval=$lt_finish_eval
4660
# Take the output of nm and produce a listing of raw symbols and C names.
4661
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4663
# Transform the output of nm in a proper C declaration
4664
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4666
# Transform the output of nm in a C name address pair
4667
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4669
# This is the shared library runtime path variable.
4670
runpath_var=$runpath_var
4672
# This is the shared library path variable.
4673
shlibpath_var=$shlibpath_var
4675
# Is shlibpath searched before the hard-coded library search path?
4676
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4678
# How to hardcode a shared library path into an executable.
4679
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4681
# Whether we should hardcode library paths into libraries.
4682
hardcode_into_libs=$hardcode_into_libs
4684
# Flag to hardcode \$libdir into a binary during linking.
4685
# This must work even if \$libdir does not exist.
4686
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4688
# If ld is used when linking, flag to hardcode \$libdir into
4689
# a binary during linking. This must work even if \$libdir does
4691
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4693
# Whether we need a single -rpath flag with a separated argument.
4694
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4696
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4698
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4700
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4702
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4704
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4705
# the resulting binary.
4706
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4708
# Set to yes if building a shared library automatically hardcodes DIR into the library
4709
# and all subsequent libraries and executables linked against it.
4710
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4712
# Variables whose values should be saved in libtool wrapper scripts and
4713
# restored at relink time.
4714
variables_saved_for_relink="$variables_saved_for_relink"
4716
# Whether libtool must link a program against all its dependency libraries.
4717
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4719
# Compile-time system search path for libraries
4720
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4722
# Run-time system search path for libraries
4723
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4725
# Fix the shell variable \$srcfile for the compiler.
4726
fix_srcfile_path=$lt_fix_srcfile_path
4728
# Set to yes if exported symbols are required.
4729
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4731
# The commands to list exported symbols.
4732
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4734
# The commands to extract the exported symbol list from a shared archive.
4735
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4737
# Symbols that should not be listed in the preloaded symbols.
4738
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4740
# Symbols that must always be exported.
4741
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4744
[# ### END LIBTOOL CONFIG],
4745
[# ### END LIBTOOL TAG CONFIG: $tagname])
4752
cat <<\EOF >> "$cfgfile"
4754
# AIX sometimes has problems with the GCC collect2 program. For some
4755
# reason, if we set the COLLECT_NAMES environment variable, the problems
4756
# vanish in a puff of smoke.
4757
if test "X${COLLECT_NAMES+set}" != Xset; then
4759
export COLLECT_NAMES
4765
# We use sed instead of cat because bash on DJGPP gets confused if
4766
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4767
# text mode, it properly converts lines to CR/LF. This bash problem
4768
# is reportedly fixed, but why not run on old versions too?
4769
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4771
mv -f "$cfgfile" "$ofile" || \
4772
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4776
# If there is no Makefile yet, we rely on a make rule to execute
4777
# `config.status --recheck' to rerun these tests and create the
4778
# libtool script then.
4779
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4780
if test -f "$ltmain_in"; then
4781
test -f Makefile && make "$ltmain"
4784
])# AC_LIBTOOL_CONFIG
4787
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4788
# -------------------------------------------
4789
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4790
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4792
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3278
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3279
dnl aclocal-1.4 backwards compatibility:
3280
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3283
# _LT_COMPILER_NO_RTTI([TAGNAME])
3284
# -------------------------------
3285
m4_defun([_LT_COMPILER_NO_RTTI],
3286
[m4_require([_LT_TAG_COMPILER])dnl
3288
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4794
3290
if test "$GCC" = yes; then
4795
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3291
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4797
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3293
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4798
3294
lt_cv_prog_compiler_rtti_exceptions,
4799
3295
[-fno-rtti -fno-exceptions], [],
4800
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3296
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4802
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4805
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4806
# ---------------------------------
4807
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4808
[AC_REQUIRE([AC_CANONICAL_HOST])
4809
AC_REQUIRE([LT_AC_PROG_SED])
4810
AC_REQUIRE([AC_PROG_NM])
4811
AC_REQUIRE([AC_OBJEXT])
3298
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3299
[Compiler flag to turn off builtin functions])
3300
])# _LT_COMPILER_NO_RTTI
3303
# _LT_CMD_GLOBAL_SYMBOLS
3304
# ----------------------
3305
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3306
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3307
AC_REQUIRE([AC_PROG_CC])dnl
3308
AC_REQUIRE([LT_PATH_NM])dnl
3309
AC_REQUIRE([LT_PATH_LD])dnl
3310
m4_require([_LT_DECL_SED])dnl
3311
m4_require([_LT_DECL_EGREP])dnl
3312
m4_require([_LT_TAG_COMPILER])dnl
4812
3314
# Check for command to grab the raw symbol name followed by C symbol from nm.
4813
3315
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4814
3316
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5410
3959
# +Z the default
5413
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3962
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5416
3965
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5417
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3966
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5420
3969
irix5* | irix6* | nonstopux*)
5421
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3970
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5422
3971
# PIC (with -KPIC) is the default.
5423
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5427
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5428
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3972
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5431
3975
linux* | k*bsd*-gnu)
5432
3976
case $cc_basename in
5434
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5435
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5436
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3977
icc* | ecc* | ifort*)
3978
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3979
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3980
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5438
3982
pgcc* | pgf77* | pgf90* | pgf95*)
5439
3983
# Portland Group compilers (*not* the Pentium gcc compiler,
5440
3984
# which looks to be a dead project)
5441
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5442
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5443
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3985
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3986
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3987
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5446
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3990
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5447
3991
# All Alpha code is PIC.
5448
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3992
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3995
# IBM XL C 8.0/Fortran 10.1 on PPC
3996
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3997
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3998
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5451
case `$CC -V 2>&1 | sed 5q` in
4001
case `$CC -V 2>&1 | sed 5q` in
5454
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5455
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5456
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4005
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4006
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5459
4009
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5460
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5461
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5462
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4010
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4011
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4012
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4020
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4021
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4025
# QNX uses GNU C++, but need to define -shared option too, otherwise
4027
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5469
4030
osf3* | osf4* | osf5*)
5470
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5471
4032
# All OSF/1 code is PIC.
5472
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4033
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5476
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4037
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5480
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4041
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5482
4043
case $cc_basename in
5483
4044
f77* | f90* | f95*)
5484
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4045
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5486
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4047
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5491
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5492
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5493
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4053
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4054
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5496
4057
sysv4 | sysv4.2uw2* | sysv4.3*)
5497
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5498
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5499
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4059
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4060
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5503
4064
if test -d /usr/nec ;then
5504
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5505
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4065
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4066
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5509
4070
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5510
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5511
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5512
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4071
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4072
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5516
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5517
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4077
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4078
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5521
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5522
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4082
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4083
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5526
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4087
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5531
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4093
# For platforms which do not support PIC, -DPIC is meaningless:
4095
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4098
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4101
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4102
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4103
[How to pass a linker flag through the compiler])
5534
4106
# Check to make sure the PIC flag actually works.
5536
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5537
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5538
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5539
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5540
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4108
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4109
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4110
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4111
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4112
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5542
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4114
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5544
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5545
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4116
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4117
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5548
# For platforms which do not support PIC, -DPIC is meaningless:
5550
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5553
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4119
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4120
[Additional compiler flags for building library objects])
5558
4123
# Check to make sure the static flag actually works.
5560
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5561
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5562
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4125
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4126
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4127
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5563
4128
$lt_tmp_static_flag,
5565
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5569
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5570
# ------------------------------------
4130
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4131
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4132
[Compiler flag to prevent dynamic linking])
4133
])# _LT_COMPILER_PIC
4136
# _LT_LINKER_SHLIBS([TAGNAME])
4137
# ----------------------------
5571
4138
# See if the linker supports building shared libraries.
5572
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5573
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4139
m4_defun([_LT_LINKER_SHLIBS],
4140
[AC_REQUIRE([LT_PATH_LD])dnl
4141
AC_REQUIRE([LT_PATH_NM])dnl
4142
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4143
m4_require([_LT_DECL_EGREP])dnl
4144
m4_require([_LT_DECL_SED])dnl
4145
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4146
m4_require([_LT_TAG_COMPILER])dnl
5574
4147
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5576
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4148
m4_if([$1], [CXX], [
4149
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5577
4150
case $host_os in
5579
4152
# If we're using GNU nm, then we don't want the "-C" option.
5580
4153
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5581
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5582
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4154
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4155
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5584
_LT_AC_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'
4157
_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'
5588
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4161
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5590
4163
cygwin* | mingw*)
5591
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4164
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5593
4166
linux* | k*bsd*-gnu)
5594
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
4167
_LT_TAGVAR(link_all_deplibs, $1)=no
5597
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4170
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4173
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5603
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5604
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5605
_LT_AC_TAGVAR(archive_cmds, $1)=
5606
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5607
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5608
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5609
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5610
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5611
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5612
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5613
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5614
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5615
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5616
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5617
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5618
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5619
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5620
_LT_AC_TAGVAR(module_cmds, $1)=
5621
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5622
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5623
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4176
_LT_TAGVAR(allow_undefined_flag, $1)=
4177
_LT_TAGVAR(always_export_symbols, $1)=no
4178
_LT_TAGVAR(archive_cmds, $1)=
4179
_LT_TAGVAR(archive_expsym_cmds, $1)=
4180
_LT_TAGVAR(compiler_needs_object, $1)=no
4181
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4182
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4183
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4184
_LT_TAGVAR(hardcode_automatic, $1)=no
4185
_LT_TAGVAR(hardcode_direct, $1)=no
4186
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4187
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4188
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4189
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4190
_LT_TAGVAR(hardcode_minus_L, $1)=no
4191
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4192
_LT_TAGVAR(inherit_rpath, $1)=no
4193
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4194
_LT_TAGVAR(module_cmds, $1)=
4195
_LT_TAGVAR(module_expsym_cmds, $1)=
4196
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4197
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4198
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4199
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5624
4200
# include_expsyms should be a list of space-separated symbols to be *always*
5625
4201
# included in the symbol list
5626
_LT_AC_TAGVAR(include_expsyms, $1)=
4202
_LT_TAGVAR(include_expsyms, $1)=
5627
4203
# exclude_expsyms can be an extended regexp of symbols to exclude
5628
4204
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5629
4205
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5630
4206
# as well as any symbol that contains `d'.
5631
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4207
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5632
4208
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5633
4209
# platforms (ab)use it in PIC code, but their linkers get confused if
5634
4210
# the symbol is explicitly referenced. Since portable code cannot
6229
4802
irix5* | irix6* | nonstopux*)
6230
4803
if test "$GCC" = yes; then
6231
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4804
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4805
# Try to use the -exported_symbol ld option, if it does not
4806
# work, assume that -exports_file does not work either and
4807
# implicitly export all symbols.
4808
save_LDFLAGS="$LDFLAGS"
4809
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4810
AC_LINK_IFELSE(int foo(void) {},
4811
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4813
LDFLAGS="$save_LDFLAGS"
6233
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6234
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4815
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4816
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6236
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6237
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6238
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4818
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4819
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4820
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4821
_LT_TAGVAR(inherit_rpath, $1)=yes
4822
_LT_TAGVAR(link_all_deplibs, $1)=yes
6241
4825
netbsd* | netbsdelf*-gnu)
6242
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6243
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4826
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4827
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6245
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4829
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6247
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6248
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6249
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4831
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4832
_LT_TAGVAR(hardcode_direct, $1)=yes
4833
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6253
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6255
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6256
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6257
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4837
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4838
_LT_TAGVAR(hardcode_direct, $1)=yes
4839
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4840
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4841
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6261
4848
if test -f /usr/libexec/ld.so; then
6262
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6263
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6264
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6265
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6266
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6267
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6268
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4849
_LT_TAGVAR(hardcode_direct, $1)=yes
4850
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4851
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4852
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4853
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4854
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4855
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4856
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6270
4858
case $host_os in
6271
4859
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6272
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6273
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4860
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4861
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6276
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6277
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4864
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4865
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4870
_LT_TAGVAR(ld_shlibs, $1)=no
6287
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6288
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6289
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6290
_LT_AC_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'
6291
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4875
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4876
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4877
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4878
_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'
4879
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6295
4883
if test "$GCC" = yes; then
6296
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6297
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4884
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4885
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6299
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6300
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4887
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4888
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6303
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4890
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4891
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4892
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6306
4895
osf4* | osf5*) # as osf3* with the addition of -msym flag
6307
4896
if test "$GCC" = yes; then
6308
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6309
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6310
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4897
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6312
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6313
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6314
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6315
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4901
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4902
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4903
_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~
4904
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6317
4906
# Both c and cxx compiler support -rpath directly
6318
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4907
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6320
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4909
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4910
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6324
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4914
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6325
4915
if test "$GCC" = yes; then
6327
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6328
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6329
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4917
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4918
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4919
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6332
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6333
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6334
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4921
case `$CC -V 2>&1` in
4924
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4925
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4926
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4930
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4931
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4932
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6336
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6337
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4936
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4937
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6338
4938
case $host_os in
6339
4939
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6341
4941
# The compiler driver will combine and reorder linker options,
6342
4942
# but understands `-z linker_flag'. GCC discards it without `$wl',
6343
4943
# but is careful enough not to reorder.
6344
# Supported since Solaris 2.6 (maybe 2.5.1?)
4944
# Supported since Solaris 2.6 (maybe 2.5.1?)
6345
4945
if test "$GCC" = yes; then
6346
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4946
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4948
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6352
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4952
_LT_TAGVAR(link_all_deplibs, $1)=yes
6356
4956
if test "x$host_vendor" = xsequent; then
6357
4957
# Use $CC to link under sequent, because it throws in some extra .o
6358
4958
# files that make .init and .fini sections work.
6359
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4959
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6361
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4961
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6363
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6364
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6365
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6366
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4963
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4964
_LT_TAGVAR(hardcode_direct, $1)=yes
4965
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4966
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6370
4970
case $host_vendor in
6372
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6373
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
4972
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4973
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6376
4976
## LD is ld it makes a PLAMLIB
6377
4977
## CC just makes a GrossModule.
6378
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6379
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6380
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4978
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4979
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
4980
_LT_TAGVAR(hardcode_direct, $1)=no
6383
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6384
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
4983
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4984
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6387
4987
runpath_var='LD_RUN_PATH'
6388
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4988
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6392
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6393
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6394
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
4992
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4993
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4994
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6398
4998
if test -d /usr/nec; then
6399
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6400
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4999
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5000
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6401
5001
runpath_var=LD_RUN_PATH
6402
5002
hardcode_runpath_var=yes
6403
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5003
_LT_TAGVAR(ld_shlibs, $1)=yes
6407
5007
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6408
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6409
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6410
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5008
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5009
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5010
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6411
5011
runpath_var='LD_RUN_PATH'
6413
5013
if test "$GCC" = yes; then
6414
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6415
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5014
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5015
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6418
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5017
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5018
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6487
5102
libobjs=conftest.$ac_objext
6489
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6490
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5104
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5105
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6491
5106
compiler_flags=-v
6492
5107
linker_flags=-v
6494
5109
output_objdir=.
6495
5110
libname=conftest
6496
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6497
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6498
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5111
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5112
_LT_TAGVAR(allow_undefined_flag, $1)=
5113
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6500
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5115
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6502
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5117
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6504
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5119
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6506
5121
cat conftest.err 1>&5
6509
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5124
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6515
])# AC_LIBTOOL_PROG_LD_SHLIBS
6518
# _LT_AC_FILE_LTDLL_C
6519
# -------------------
6520
# Be careful that the start marker always follows a newline.
6521
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6522
# /* ltdll.c starts here */
6523
# #define WIN32_LEAN_AND_MEAN
6524
# #include <windows.h>
6525
# #undef WIN32_LEAN_AND_MEAN
6526
# #include <stdio.h>
6528
# #ifndef __CYGWIN__
6529
# # ifdef __CYGWIN32__
6530
# # define __CYGWIN__ __CYGWIN32__
6534
# #ifdef __cplusplus
6537
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6538
# #ifdef __cplusplus
6543
# #include <cygwin/cygwin_dll.h>
6544
# DECLARE_CYGWIN_DLL( DllMain );
6546
# HINSTANCE __hDllInstance_base;
6549
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6551
# __hDllInstance_base = hInst;
6554
# /* ltdll.c ends here */
6555
])# _LT_AC_FILE_LTDLL_C
6558
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5131
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5132
[Whether or not to add -lc for building shared libraries])
5133
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5134
[enable_shared_with_static_runtimes], [0],
5135
[Whether or not to disallow shared libs when runtime libs are static])
5136
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5137
[Compiler flag to allow reflexive dlopens])
5138
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5139
[Compiler flag to generate shared objects directly from archives])
5140
_LT_TAGDECL([], [compiler_needs_object], [1],
5141
[Whether the compiler copes with passing no objects directly])
5142
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5143
[Create an old-style archive from a shared archive])
5144
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5145
[Create a temporary old-style archive to link instead of a shared archive])
5146
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5147
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5148
_LT_TAGDECL([], [module_cmds], [2],
5149
[Commands used to build a loadable module if different from building
5151
_LT_TAGDECL([], [module_expsym_cmds], [2])
5152
_LT_TAGDECL([], [with_gnu_ld], [1],
5153
[Whether we are building with GNU ld or not])
5154
_LT_TAGDECL([], [allow_undefined_flag], [1],
5155
[Flag that allows shared libraries with undefined symbols to be built])
5156
_LT_TAGDECL([], [no_undefined_flag], [1],
5157
[Flag that enforces no undefined symbols])
5158
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5159
[Flag to hardcode $libdir into a binary during linking.
5160
This must work even if $libdir does not exist])
5161
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5162
[[If ld is used when linking, flag to hardcode $libdir into a binary
5163
during linking. This must work even if $libdir does not exist]])
5164
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5165
[Whether we need a single "-rpath" flag with a separated argument])
5166
_LT_TAGDECL([], [hardcode_direct], [0],
5167
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5168
DIR into the resulting binary])
5169
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5170
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5171
DIR into the resulting binary and the resulting library dependency is
5172
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5173
library is relocated])
5174
_LT_TAGDECL([], [hardcode_minus_L], [0],
5175
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5176
into the resulting binary])
5177
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5178
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5179
into the resulting binary])
5180
_LT_TAGDECL([], [hardcode_automatic], [0],
5181
[Set to "yes" if building a shared library automatically hardcodes DIR
5182
into the library and all subsequent libraries and executables linked
5184
_LT_TAGDECL([], [inherit_rpath], [0],
5185
[Set to yes if linker adds runtime paths of dependent libraries
5186
to runtime path list])
5187
_LT_TAGDECL([], [link_all_deplibs], [0],
5188
[Whether libtool must link a program against all its dependency libraries])
5189
_LT_TAGDECL([], [fix_srcfile_path], [1],
5190
[Fix the shell variable $srcfile for the compiler])
5191
_LT_TAGDECL([], [always_export_symbols], [0],
5192
[Set to "yes" if exported symbols are required])
5193
_LT_TAGDECL([], [export_symbols_cmds], [2],
5194
[The commands to list exported symbols])
5195
_LT_TAGDECL([], [exclude_expsyms], [1],
5196
[Symbols that should not be listed in the preloaded symbols])
5197
_LT_TAGDECL([], [include_expsyms], [1],
5198
[Symbols that must always be exported])
5199
_LT_TAGDECL([], [prelink_cmds], [2],
5200
[Commands necessary for linking programs (against libraries) with templates])
5201
_LT_TAGDECL([], [file_list_spec], [1],
5202
[Specify filename containing input files])
5203
dnl FIXME: Not yet implemented
5204
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5205
dnl [Compiler flag to generate thread safe objects])
5206
])# _LT_LINKER_SHLIBS
5209
# _LT_LANG_C_CONFIG([TAG])
5210
# ------------------------
5211
# Ensure that the configuration variables for a C compiler are suitably
5212
# defined. These variables are subsequently used by _LT_CONFIG to write
5213
# the compiler configuration to `libtool'.
5214
m4_defun([_LT_LANG_C_CONFIG],
5215
[m4_require([_LT_DECL_EGREP])dnl
5219
# Source file extension for C test sources.
5222
# Object file extension for compiled C test sources.
5224
_LT_TAGVAR(objext, $1)=$objext
5226
# Code to be used in simple compile tests
5227
lt_simple_compile_test_code="int some_variable = 0;"
5229
# Code to be used in simple link tests
5230
lt_simple_link_test_code='int main(){return(0);}'
5233
# Save the default compiler, since it gets overwritten when the other
5234
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5235
compiler_DEFAULT=$CC
5237
# save warnings/boilerplate of simple test code
5238
_LT_COMPILER_BOILERPLATE
5239
_LT_LINKER_BOILERPLATE
5242
## There is no encapsulation within the following macros, do not change
5243
## the running order or otherwise move them around unless you know exactly
5244
## what you are doing...
5245
if test -n "$compiler"; then
5246
_LT_COMPILER_NO_RTTI($1)
5247
_LT_COMPILER_PIC($1)
5248
_LT_COMPILER_C_O($1)
5249
_LT_COMPILER_FILE_LOCKS($1)
5250
_LT_LINKER_SHLIBS($1)
5251
_LT_SYS_DYNAMIC_LINKER($1)
5252
_LT_LINKER_HARDCODE_LIBPATH($1)
5256
# Report which library types will actually be built
5257
AC_MSG_CHECKING([if libtool supports shared libraries])
5258
AC_MSG_RESULT([$can_build_shared])
5260
AC_MSG_CHECKING([whether to build shared libraries])
5261
test "$can_build_shared" = "no" && enable_shared=no
5263
# On AIX, shared libraries and static libraries use the same namespace, and
5264
# are all built from PIC.
5267
test "$enable_shared" = yes && enable_static=no
5268
if test -n "$RANLIB"; then
5269
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5270
postinstall_cmds='$RANLIB $lib'
5275
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5276
test "$enable_shared" = yes && enable_static=no
5280
AC_MSG_RESULT([$enable_shared])
5282
AC_MSG_CHECKING([whether to build static libraries])
5283
# Make sure either enable_shared or enable_static is yes.
5284
test "$enable_shared" = yes || enable_static=yes
5285
AC_MSG_RESULT([$enable_static])
5291
])# _LT_LANG_C_CONFIG
5296
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5297
# compiler, we have our own version here.
5298
m4_defun([_LT_PROG_CXX],
5300
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5302
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5303
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5304
(test "X$CXX" != "Xg++"))) ; then
5307
_lt_caught_CXX_error=yes
5309
popdef([AC_MSG_ERROR])
5312
dnl aclocal-1.4 backwards compatibility:
5313
dnl AC_DEFUN([_LT_PROG_CXX], [])
5316
# _LT_LANG_CXX_CONFIG([TAG])
5317
# --------------------------
5318
# Ensure that the configuration variables for a C++ compiler are suitably
5319
# defined. These variables are subsequently used by _LT_CONFIG to write
5320
# the compiler configuration to `libtool'.
5321
m4_defun([_LT_LANG_CXX_CONFIG],
5322
[AC_REQUIRE([_LT_PROG_CXX])dnl
5323
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5324
m4_require([_LT_DECL_EGREP])dnl
5327
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5328
_LT_TAGVAR(allow_undefined_flag, $1)=
5329
_LT_TAGVAR(always_export_symbols, $1)=no
5330
_LT_TAGVAR(archive_expsym_cmds, $1)=
5331
_LT_TAGVAR(compiler_needs_object, $1)=no
5332
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5333
_LT_TAGVAR(hardcode_direct, $1)=no
5334
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5335
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5336
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5337
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5338
_LT_TAGVAR(hardcode_minus_L, $1)=no
5339
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5340
_LT_TAGVAR(hardcode_automatic, $1)=no
5341
_LT_TAGVAR(inherit_rpath, $1)=no
5342
_LT_TAGVAR(module_cmds, $1)=
5343
_LT_TAGVAR(module_expsym_cmds, $1)=
5344
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5345
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5346
_LT_TAGVAR(no_undefined_flag, $1)=
5347
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5348
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5350
# Source file extension for C++ test sources.
5353
# Object file extension for compiled C++ test sources.
5355
_LT_TAGVAR(objext, $1)=$objext
5357
# No sense in running all these tests if we already determined that
5358
# the CXX compiler isn't working. Some variables (like enable_shared)
5359
# are currently assumed to apply to all compilers on this platform,
5360
# and will be corrupted by setting them based on a non-working compiler.
5361
if test "$_lt_caught_CXX_error" != yes; then
5362
# Code to be used in simple compile tests
5363
lt_simple_compile_test_code="int some_variable = 0;"
5365
# Code to be used in simple link tests
5366
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5368
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5371
# save warnings/boilerplate of simple test code
5372
_LT_COMPILER_BOILERPLATE
5373
_LT_LINKER_BOILERPLATE
5375
# Allow CC to be a program name with arguments.
5380
lt_save_with_gnu_ld=$with_gnu_ld
5381
lt_save_path_LD=$lt_cv_path_LD
5382
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5383
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5385
$as_unset lt_cv_prog_gnu_ld
5387
if test -n "${lt_cv_path_LDCXX+set}"; then
5388
lt_cv_path_LD=$lt_cv_path_LDCXX
5390
$as_unset lt_cv_path_LD
5392
test -z "${LDCXX+set}" || LD=$LDCXX
5395
_LT_TAGVAR(compiler, $1)=$CC
5396
_LT_CC_BASENAME([$compiler])
5398
if test -n "$compiler"; then
5399
# We don't want -fno-exception when compiling C++ code, so set the
5400
# no_builtin_flag separately
5401
if test "$GXX" = yes; then
5402
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5404
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5407
if test "$GXX" = yes; then
5408
# Set up default GNU C++ configuration
5412
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5413
# archiving commands below assume that GNU ld is being used.
5414
if test "$with_gnu_ld" = yes; then
5415
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5416
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5418
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5419
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5421
# If archive_cmds runs LD, not CC, wlarc should be empty
5422
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5423
# investigate it a little bit more. (MM)
5426
# ancient GNU ld didn't support --whole-archive et. al.
5427
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5428
$GREP 'no-whole-archive' > /dev/null; then
5429
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5431
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5437
# A generic and very simple default shared library creation
5438
# command for GNU C++ for the case where it uses the native
5439
# linker, instead of GNU ld. If possible, this setting should
5440
# overridden to take advantage of the native linker features on
5441
# the platform it is being used on.
5442
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5445
# Commands to make compiler produce verbose output that lists
5446
# what "hidden" libraries, object files and flags are used when
5447
# linking a shared library.
5448
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5456
# PORTME: fill in a description of your system's C++ link characteristics
5457
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5458
_LT_TAGVAR(ld_shlibs, $1)=yes
5461
# FIXME: insert proper C++ library support
5462
_LT_TAGVAR(ld_shlibs, $1)=no
5465
if test "$host_cpu" = ia64; then
5466
# On IA64, the linker does run time linking by default, so we don't
5467
# have to do anything special.
5468
aix_use_runtimelinking=no
5469
exp_sym_flag='-Bexport'
5472
aix_use_runtimelinking=no
5474
# Test if we are trying to use run time linking or normal
5475
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5476
# need to do runtime linking.
5477
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5478
for ld_flag in $LDFLAGS; do
5481
aix_use_runtimelinking=yes
5489
exp_sym_flag='-bexport'
5490
no_entry_flag='-bnoentry'
5493
# When large executables or shared objects are built, AIX ld can
5494
# have problems creating the table of contents. If linking a library
5495
# or program results in "error TOC overflow" add -mminimal-toc to
5496
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5497
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5499
_LT_TAGVAR(archive_cmds, $1)=''
5500
_LT_TAGVAR(hardcode_direct, $1)=yes
5501
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5502
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5503
_LT_TAGVAR(link_all_deplibs, $1)=yes
5504
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5506
if test "$GXX" = yes; then
5507
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5508
# We only want to do this on AIX 4.2 and lower, the check
5509
# below for broken collect2 doesn't work under 4.3+
5510
collect2name=`${CC} -print-prog-name=collect2`
5511
if test -f "$collect2name" &&
5512
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5514
# We have reworked collect2
5517
# We have old collect2
5518
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5519
# It fails to find uninstalled libraries when the uninstalled
5520
# path is not listed in the libpath. Setting hardcode_minus_L
5521
# to unsupported forces relinking
5522
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5523
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5524
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5527
shared_flag='-shared'
5528
if test "$aix_use_runtimelinking" = yes; then
5529
shared_flag="$shared_flag "'${wl}-G'
5533
if test "$host_cpu" = ia64; then
5534
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5535
# chokes on -Wl,-G. The following line is correct:
5538
if test "$aix_use_runtimelinking" = yes; then
5539
shared_flag='${wl}-G'
5541
shared_flag='${wl}-bM:SRE'
5546
# It seems that -bexpall does not export symbols beginning with
5547
# underscore (_), so it is better to generate a list of symbols to
5549
_LT_TAGVAR(always_export_symbols, $1)=yes
5550
if test "$aix_use_runtimelinking" = yes; then
5551
# Warning - without using the other runtime loading flags (-brtl),
5552
# -berok will link without error, but may produce a broken library.
5553
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5554
# Determine the default libpath from the value encoded in an empty
5556
_LT_SYS_MODULE_PATH_AIX
5557
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5559
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5561
if test "$host_cpu" = ia64; then
5562
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5563
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5564
_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"
5566
# Determine the default libpath from the value encoded in an
5568
_LT_SYS_MODULE_PATH_AIX
5569
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5570
# Warning - without using the other run time loading flags,
5571
# -berok will link without error, but may produce a broken library.
5572
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5573
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5574
# Exported symbols can be pulled into shared objects from archives
5575
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5576
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5577
# This is similar to how AIX traditionally builds its shared
5579
_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'
5585
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5586
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5587
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5588
# support --undefined. This deserves some investigation. FIXME
5589
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5591
_LT_TAGVAR(ld_shlibs, $1)=no
5596
case $cc_basename in
5598
# FIXME: insert proper C++ library support
5599
_LT_TAGVAR(ld_shlibs, $1)=no
5604
cygwin* | mingw* | pw32*)
5605
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5606
# as there is no search path for DLLs.
5607
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5608
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5609
_LT_TAGVAR(always_export_symbols, $1)=no
5610
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5612
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5613
_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'
5614
# If the export-symbols file already is a .def file (1st line
5615
# is EXPORTS), use it as is; otherwise, prepend...
5616
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5617
cp $export_symbols $output_objdir/$soname.def;
5619
echo EXPORTS > $output_objdir/$soname.def;
5620
cat $export_symbols >> $output_objdir/$soname.def;
5622
$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'
5624
_LT_TAGVAR(ld_shlibs, $1)=no
5627
darwin* | rhapsody*)
5628
_LT_DARWIN_LINKER_FEATURES($1)
5632
case $cc_basename in
5634
# FIXME: insert proper C++ library support
5635
_LT_TAGVAR(ld_shlibs, $1)=no
5638
# Green Hills C++ Compiler
5639
# FIXME: insert proper C++ library support
5640
_LT_TAGVAR(ld_shlibs, $1)=no
5643
# FIXME: insert proper C++ library support
5644
_LT_TAGVAR(ld_shlibs, $1)=no
5650
# C++ shared libraries reported to be fairly broken before
5652
_LT_TAGVAR(ld_shlibs, $1)=no
5656
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5659
freebsd* | dragonfly*)
5660
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5662
_LT_TAGVAR(ld_shlibs, $1)=yes
5669
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5670
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5671
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5672
_LT_TAGVAR(hardcode_direct, $1)=yes
5673
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5674
# but as the default
5675
# location of the library.
5677
case $cc_basename in
5679
# FIXME: insert proper C++ library support
5680
_LT_TAGVAR(ld_shlibs, $1)=no
5683
_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'
5684
# Commands to make compiler produce verbose output that lists
5685
# what "hidden" libraries, object files and flags are used when
5686
# linking a shared library.
5688
# There doesn't appear to be a way to prevent this compiler from
5689
# explicitly linking system object files so we need to strip them
5690
# from the output so that they don't get included in the library
5692
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5695
if test "$GXX" = yes; then
5696
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5698
# FIXME: insert proper C++ library support
5699
_LT_TAGVAR(ld_shlibs, $1)=no
5706
if test $with_gnu_ld = no; then
5707
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5708
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5714
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5720
_LT_TAGVAR(hardcode_direct, $1)=no
5721
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5724
_LT_TAGVAR(hardcode_direct, $1)=yes
5725
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5726
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5727
# but as the default
5728
# location of the library.
5732
case $cc_basename in
5734
# FIXME: insert proper C++ library support
5735
_LT_TAGVAR(ld_shlibs, $1)=no
5740
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5743
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5746
_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'
5749
# Commands to make compiler produce verbose output that lists
5750
# what "hidden" libraries, object files and flags are used when
5751
# linking a shared library.
5753
# There doesn't appear to be a way to prevent this compiler from
5754
# explicitly linking system object files so we need to strip them
5755
# from the output so that they don't get included in the library
5757
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5760
if test "$GXX" = yes; then
5761
if test $with_gnu_ld = no; then
5764
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5767
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5770
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5775
# FIXME: insert proper C++ library support
5776
_LT_TAGVAR(ld_shlibs, $1)=no
5783
_LT_TAGVAR(hardcode_direct, $1)=no
5784
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5785
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5786
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5787
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5788
# Instead, shared libraries are loaded at an image base (0x10000000 by
5789
# default) and relocated if they conflict, which is a slow very memory
5790
# consuming and fragmenting process. To avoid this, we pick a random,
5791
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5792
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5793
_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'
5794
_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'
5797
case $cc_basename in
5800
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5802
# Archives containing C++ object files must be created using
5803
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5804
# necessary to make sure instantiated templates are included
5806
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5809
if test "$GXX" = yes; then
5810
if test "$with_gnu_ld" = no; then
5811
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5813
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5816
_LT_TAGVAR(link_all_deplibs, $1)=yes
5819
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5820
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5821
_LT_TAGVAR(inherit_rpath, $1)=yes
5824
linux* | k*bsd*-gnu)
5825
case $cc_basename in
5827
# Kuck and Associates, Inc. (KAI) C++ Compiler
5829
# KCC will only create a shared library if the output file
5830
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5831
# to its proper name (with version) after linking.
5832
_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'
5833
_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'
5834
# Commands to make compiler produce verbose output that lists
5835
# what "hidden" libraries, object files and flags are used when
5836
# linking a shared library.
5838
# There doesn't appear to be a way to prevent this compiler from
5839
# explicitly linking system object files so we need to strip them
5840
# from the output so that they don't get included in the library
5842
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5844
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5845
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5847
# Archives containing C++ object files must be created using
5848
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5849
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5854
# version 8.0 and above of icpc choke on multiply defined symbols
5855
# if we add $predep_objects and $postdep_objects, however 7.1 and
5856
# earlier do not add the objects themselves.
5857
case `$CC -V 2>&1` in
5859
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5860
_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'
5862
*) # Version 8.0 or newer
5865
ia64*) tmp_idyn=' -i_dynamic';;
5867
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5868
_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'
5871
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5872
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5873
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5874
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5877
# Portland Group C++ compiler
5879
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5880
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5882
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5883
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5884
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5886
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5887
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5889
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5891
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5892
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5893
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5895
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5896
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5898
*) # Version 6 will use weak symbols
5899
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5900
_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'
5904
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5905
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5906
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5910
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5911
_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'
5913
runpath_var=LD_RUN_PATH
5914
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5915
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5917
# Commands to make compiler produce verbose output that lists
5918
# what "hidden" libraries, object files and flags are used when
5919
# linking a shared library.
5921
# There doesn't appear to be a way to prevent this compiler from
5922
# explicitly linking system object files so we need to strip them
5923
# from the output so that they don't get included in the library
5925
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5928
# IBM XL 8.0 on PPC, with GNU ld
5929
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5930
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5931
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932
if test "x$supports_anon_versioning" = xyes; then
5933
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5934
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5935
echo "local: *; };" >> $output_objdir/$libname.ver~
5936
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5940
case `$CC -V 2>&1 | sed 5q` in
5943
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5944
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5945
_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'
5946
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5947
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5948
_LT_TAGVAR(compiler_needs_object, $1)=yes
5950
# Not sure whether something based on
5951
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5953
output_verbose_link_cmd='echo'
5955
# Archives containing C++ object files must be created using
5956
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5957
# necessary to make sure instantiated templates are included
5959
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5967
# FIXME: insert proper C++ library support
5968
_LT_TAGVAR(ld_shlibs, $1)=no
5972
# FIXME: insert proper C++ library support
5973
_LT_TAGVAR(ld_shlibs, $1)=no
5977
case $cc_basename in
5979
# FIXME: insert proper C++ library support
5980
_LT_TAGVAR(ld_shlibs, $1)=no
5983
# FIXME: insert proper C++ library support
5984
_LT_TAGVAR(ld_shlibs, $1)=no
5990
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5991
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5993
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5994
_LT_TAGVAR(hardcode_direct, $1)=yes
5995
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5997
# Workaround some broken pre-1.5 toolchains
5998
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6002
_LT_TAGVAR(ld_shlibs, $1)=yes
6006
# C++ shared libraries are fairly broken
6007
_LT_TAGVAR(ld_shlibs, $1)=no
6011
if test -f /usr/libexec/ld.so; then
6012
_LT_TAGVAR(hardcode_direct, $1)=yes
6013
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6014
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6015
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6016
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6017
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6018
_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'
6019
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6020
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6022
output_verbose_link_cmd=echo
6024
_LT_TAGVAR(ld_shlibs, $1)=no
6028
osf3* | osf4* | osf5*)
6029
case $cc_basename in
6031
# Kuck and Associates, Inc. (KAI) C++ Compiler
6033
# KCC will only create a shared library if the output file
6034
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6035
# to its proper name (with version) after linking.
6036
_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'
6038
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6039
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6041
# Archives containing C++ object files must be created using
6042
# the KAI C++ compiler.
6044
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6045
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6049
# Rational C++ 2.4.1
6050
# FIXME: insert proper C++ library support
6051
_LT_TAGVAR(ld_shlibs, $1)=no
6056
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6057
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6058
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6061
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6062
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6063
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6064
echo "-hidden">> $lib.exp~
6065
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6067
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6071
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6073
# Commands to make compiler produce verbose output that lists
6074
# what "hidden" libraries, object files and flags are used when
6075
# linking a shared library.
6077
# There doesn't appear to be a way to prevent this compiler from
6078
# explicitly linking system object files so we need to strip them
6079
# from the output so that they don't get included in the library
6081
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6084
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6085
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6088
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6091
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6095
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6096
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6098
# Commands to make compiler produce verbose output that lists
6099
# what "hidden" libraries, object files and flags are used when
6100
# linking a shared library.
6101
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6104
# FIXME: insert proper C++ library support
6105
_LT_TAGVAR(ld_shlibs, $1)=no
6112
# FIXME: insert proper C++ library support
6113
_LT_TAGVAR(ld_shlibs, $1)=no
6117
case $cc_basename in
6120
# FIXME: insert proper C++ library support
6121
_LT_TAGVAR(ld_shlibs, $1)=no
6125
# FIXME: insert proper C++ library support
6126
_LT_TAGVAR(ld_shlibs, $1)=no
6129
# FIXME: insert proper C++ library support
6130
_LT_TAGVAR(ld_shlibs, $1)=no
6136
case $cc_basename in
6138
# Sun C++ 4.2, 5.x and Centerline C++
6139
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6140
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6141
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6142
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6143
$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'
6145
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6146
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6148
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6150
# The compiler driver will combine and reorder linker options,
6151
# but understands `-z linker_flag'.
6152
# Supported since Solaris 2.6 (maybe 2.5.1?)
6153
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6156
_LT_TAGVAR(link_all_deplibs, $1)=yes
6158
output_verbose_link_cmd='echo'
6160
# Archives containing C++ object files must be created using
6161
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6162
# necessary to make sure instantiated templates are included
6164
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6167
# Green Hills C++ Compiler
6168
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6170
# The C++ compiler must be used to create the archive.
6171
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6174
# GNU C++ compiler with Solaris linker
6175
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6176
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6177
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6178
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6179
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6180
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6182
# Commands to make compiler produce verbose output that lists
6183
# what "hidden" libraries, object files and flags are used when
6184
# linking a shared library.
6185
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6187
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6189
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6190
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6191
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6193
# Commands to make compiler produce verbose output that lists
6194
# what "hidden" libraries, object files and flags are used when
6195
# linking a shared library.
6196
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6199
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6201
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6203
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6211
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6212
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6213
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6214
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6215
runpath_var='LD_RUN_PATH'
6217
case $cc_basename in
6219
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6220
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6223
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6224
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6229
sysv5* | sco3.2v5* | sco5v6*)
6230
# Note: We can NOT use -z defs as we might desire, because we do not
6231
# link with -lc, and that would cause any symbols used from libc to
6232
# always be unresolved, which means just about no library would
6233
# ever link correctly. If we're not using GNU ld we use -z text
6234
# though, which does catch some bad symbols but isn't as heavy-handed
6236
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6237
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6238
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6239
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6240
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6241
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6242
_LT_TAGVAR(link_all_deplibs, $1)=yes
6243
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6244
runpath_var='LD_RUN_PATH'
6246
case $cc_basename in
6248
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6249
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6252
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6253
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6259
case $cc_basename in
6261
# NonStop-UX NCC 3.20
6262
# FIXME: insert proper C++ library support
6263
_LT_TAGVAR(ld_shlibs, $1)=no
6266
# FIXME: insert proper C++ library support
6267
_LT_TAGVAR(ld_shlibs, $1)=no
6273
# FIXME: insert proper C++ library support
6274
_LT_TAGVAR(ld_shlibs, $1)=no
6278
# FIXME: insert proper C++ library support
6279
_LT_TAGVAR(ld_shlibs, $1)=no
6283
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6284
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6286
_LT_TAGVAR(GCC, $1)="$GXX"
6287
_LT_TAGVAR(LD, $1)="$LD"
6290
## There is no encapsulation within the following macros, do not change
6291
## the running order or otherwise move them around unless you know exactly
6292
## what you are doing...
6293
_LT_SYS_HIDDEN_LIBDEPS($1)
6294
_LT_COMPILER_PIC($1)
6295
_LT_COMPILER_C_O($1)
6296
_LT_COMPILER_FILE_LOCKS($1)
6297
_LT_LINKER_SHLIBS($1)
6298
_LT_SYS_DYNAMIC_LINKER($1)
6299
_LT_LINKER_HARDCODE_LIBPATH($1)
6302
fi # test -n "$compiler"
6308
with_gnu_ld=$lt_save_with_gnu_ld
6309
lt_cv_path_LDCXX=$lt_cv_path_LD
6310
lt_cv_path_LD=$lt_save_path_LD
6311
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6312
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6313
fi # test "$_lt_caught_CXX_error" != yes
6316
])# _LT_LANG_CXX_CONFIG
6319
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6559
6320
# ---------------------------------
6560
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6564
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6565
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6566
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6567
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6568
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6569
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6570
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6572
# This is just to silence aclocal about the macro not being used
6573
ifelse([AC_DISABLE_FAST_INSTALL])
6575
AC_DEFUN([LT_AC_PROG_GCJ],
6576
[AC_CHECK_TOOL(GCJ, gcj, no)
6577
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6581
AC_DEFUN([LT_AC_PROG_RC],
6582
[AC_CHECK_TOOL(RC, windres, no)
6586
# Cheap backport of AS_EXECUTABLE_P and required macros
6587
# from Autoconf 2.59; we should not use $as_executable_p directly.
6591
m4_ifndef([_AS_TEST_PREPARE],
6592
[m4_defun([_AS_TEST_PREPARE],
6593
[if test -x / >/dev/null 2>&1; then
6594
as_executable_p='test -x'
6321
# Figure out "hidden" library dependencies from verbose
6322
# compiler output when linking a shared library.
6323
# Parse the compiler output and extract the necessary
6324
# objects, libraries and library flags.
6325
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6326
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6327
# Dependencies to place before and after the object being linked:
6328
_LT_TAGVAR(predep_objects, $1)=
6329
_LT_TAGVAR(postdep_objects, $1)=
6330
_LT_TAGVAR(predeps, $1)=
6331
_LT_TAGVAR(postdeps, $1)=
6332
_LT_TAGVAR(compiler_lib_search_path, $1)=
6334
dnl we can't use the lt_simple_compile_test_code here,
6335
dnl because it contains code intended for an executable,
6336
dnl not a library. It's possible we should let each
6337
dnl tag define a new lt_????_link_test_code variable,
6338
dnl but it's only used here...
6339
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6341
void foo (void) { a = 0; }
6343
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6347
Foo (void) { a = 0; }
6352
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6360
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6368
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6371
public void bar (void) {
6377
dnl Parse the compiler output and extract the necessary
6378
dnl objects, libraries and library flags.
6379
if AC_TRY_EVAL(ac_compile); then
6380
# Parse the compiler output and extract the necessary
6381
# objects, libraries and library flags.
6383
# Sentinel used to keep track of whether or not we are before
6384
# the conftest object file.
6385
pre_test_object_deps_done=no
6387
for p in `eval "$output_verbose_link_cmd"`; do
6391
# Some compilers place space between "-{L,R}" and the path.
6393
if test $p = "-L" ||
6394
test $p = "-R"; then
6401
if test "$pre_test_object_deps_done" = no; then
6404
# Internal compiler library paths should come after those
6405
# provided the user. The postdeps already come after the
6406
# user supplied libs so there is no need to process them.
6407
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6408
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6410
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6413
# The "-l" case would never come before the object being
6414
# linked, so don't bother handling this case.
6417
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6418
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6420
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6426
# This assumes that the test object file only shows up
6427
# once in the compiler output.
6428
if test "$p" = "conftest.$objext"; then
6429
pre_test_object_deps_done=yes
6433
if test "$pre_test_object_deps_done" = no; then
6434
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6435
_LT_TAGVAR(predep_objects, $1)="$p"
6437
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6440
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6441
_LT_TAGVAR(postdep_objects, $1)="$p"
6443
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6448
*) ;; # Ignore the rest.
6596
as_executable_p='test -f'
6598
])])# _AS_TEST_PREPARE
6602
# Check whether a file is executable.
6603
m4_ifndef([AS_EXECUTABLE_P],
6604
[m4_defun([AS_EXECUTABLE_P],
6605
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6606
$as_executable_p $1[]dnl
6607
])])# AS_EXECUTABLE_P
6456
echo "libtool.m4: error: problem compiling $1 test program"
6459
$RM -f confest.$objext
6461
# PORTME: override above test on systems where it is broken
6465
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6466
# hack all around it, let's just trust "g++" to DTRT.
6467
_LT_TAGVAR(predep_objects,$1)=
6468
_LT_TAGVAR(postdep_objects,$1)=
6469
_LT_TAGVAR(postdeps,$1)=
6473
case `$CC -V 2>&1 | sed 5q` in
6477
# The more standards-conforming stlport4 library is
6478
# incompatible with the Cstd library. Avoid specifying
6479
# it if it's in CXXFLAGS. Ignore libCrun as
6480
# -library=stlport4 depends on it.
6481
case " $CXX $CXXFLAGS " in
6482
*" -library=stlport4 "*)
6483
solaris_use_stlport4=yes
6487
if test "$solaris_use_stlport4" != yes; then
6488
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6495
case $cc_basename in
6497
# The more standards-conforming stlport4 library is
6498
# incompatible with the Cstd library. Avoid specifying
6499
# it if it's in CXXFLAGS. Ignore libCrun as
6500
# -library=stlport4 depends on it.
6501
case " $CXX $CXXFLAGS " in
6502
*" -library=stlport4 "*)
6503
solaris_use_stlport4=yes
6507
# Adding this requires a known-good setup of shared libraries for
6508
# Sun compiler versions before 5.6, else PIC objects from an old
6509
# archive will be linked into the output, leading to subtle bugs.
6510
if test "$solaris_use_stlport4" != yes; then
6511
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6519
case " $_LT_TAGVAR(postdeps, $1) " in
6520
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6522
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
6523
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6524
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6526
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6527
[The directories searched by this compiler when creating a shared library])
6528
_LT_TAGDECL([], [predep_objects], [1],
6529
[Dependencies to place before and after the objects being linked to
6530
create a shared library])
6531
_LT_TAGDECL([], [postdep_objects], [1])
6532
_LT_TAGDECL([], [predeps], [1])
6533
_LT_TAGDECL([], [postdeps], [1])
6534
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6535
[The library search path used internally by the compiler when linking
6537
])# _LT_SYS_HIDDEN_LIBDEPS
6542
# Since AC_PROG_F77 is broken, in that it returns the empty string
6543
# if there is no fortran compiler, we have our own version here.
6544
m4_defun([_LT_PROG_F77],
6546
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6548
if test -z "$F77" || test "X$F77" = "Xno"; then
6551
popdef([AC_MSG_ERROR])
6554
dnl aclocal-1.4 backwards compatibility:
6555
dnl AC_DEFUN([_LT_PROG_F77], [])
6558
# _LT_LANG_F77_CONFIG([TAG])
6559
# --------------------------
6560
# Ensure that the configuration variables for a Fortran 77 compiler are
6561
# suitably defined. These variables are subsequently used by _LT_CONFIG
6562
# to write the compiler configuration to `libtool'.
6563
m4_defun([_LT_LANG_F77_CONFIG],
6564
[AC_REQUIRE([_LT_PROG_F77])dnl
6565
AC_LANG_PUSH(Fortran 77)
6567
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6568
_LT_TAGVAR(allow_undefined_flag, $1)=
6569
_LT_TAGVAR(always_export_symbols, $1)=no
6570
_LT_TAGVAR(archive_expsym_cmds, $1)=
6571
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6572
_LT_TAGVAR(hardcode_direct, $1)=no
6573
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6574
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6575
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6576
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6577
_LT_TAGVAR(hardcode_minus_L, $1)=no
6578
_LT_TAGVAR(hardcode_automatic, $1)=no
6579
_LT_TAGVAR(inherit_rpath, $1)=no
6580
_LT_TAGVAR(module_cmds, $1)=
6581
_LT_TAGVAR(module_expsym_cmds, $1)=
6582
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6583
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6584
_LT_TAGVAR(no_undefined_flag, $1)=
6585
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6586
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6588
# Source file extension for f77 test sources.
6591
# Object file extension for compiled f77 test sources.
6593
_LT_TAGVAR(objext, $1)=$objext
6595
# No sense in running all these tests if we already determined that
6596
# the F77 compiler isn't working. Some variables (like enable_shared)
6597
# are currently assumed to apply to all compilers on this platform,
6598
# and will be corrupted by setting them based on a non-working compiler.
6599
if test "$_lt_disable_F77" != yes; then
6600
# Code to be used in simple compile tests
6601
lt_simple_compile_test_code="\
6607
# Code to be used in simple link tests
6608
lt_simple_link_test_code="\
6613
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6616
# save warnings/boilerplate of simple test code
6617
_LT_COMPILER_BOILERPLATE
6618
_LT_LINKER_BOILERPLATE
6620
# Allow CC to be a program name with arguments.
6625
_LT_TAGVAR(compiler, $1)=$CC
6626
_LT_CC_BASENAME([$compiler])
6628
if test -n "$compiler"; then
6629
AC_MSG_CHECKING([if libtool supports shared libraries])
6630
AC_MSG_RESULT([$can_build_shared])
6632
AC_MSG_CHECKING([whether to build shared libraries])
6633
test "$can_build_shared" = "no" && enable_shared=no
6635
# On AIX, shared libraries and static libraries use the same namespace, and
6636
# are all built from PIC.
6639
test "$enable_shared" = yes && enable_static=no
6640
if test -n "$RANLIB"; then
6641
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6642
postinstall_cmds='$RANLIB $lib'
6646
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6647
test "$enable_shared" = yes && enable_static=no
6651
AC_MSG_RESULT([$enable_shared])
6653
AC_MSG_CHECKING([whether to build static libraries])
6654
# Make sure either enable_shared or enable_static is yes.
6655
test "$enable_shared" = yes || enable_static=yes
6656
AC_MSG_RESULT([$enable_static])
6658
_LT_TAGVAR(GCC, $1)="$G77"
6659
_LT_TAGVAR(LD, $1)="$LD"
6662
## There is no encapsulation within the following macros, do not change
6663
## the running order or otherwise move them around unless you know exactly
6664
## what you are doing...
6665
_LT_COMPILER_PIC($1)
6666
_LT_COMPILER_C_O($1)
6667
_LT_COMPILER_FILE_LOCKS($1)
6668
_LT_LINKER_SHLIBS($1)
6669
_LT_SYS_DYNAMIC_LINKER($1)
6670
_LT_LINKER_HARDCODE_LIBPATH($1)
6673
fi # test -n "$compiler"
6677
fi # test "$_lt_disable_F77" != yes
6680
])# _LT_LANG_F77_CONFIG
6685
# Since AC_PROG_FC is broken, in that it returns the empty string
6686
# if there is no fortran compiler, we have our own version here.
6687
m4_defun([_LT_PROG_FC],
6689
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6691
if test -z "$FC" || test "X$FC" = "Xno"; then
6694
popdef([AC_MSG_ERROR])
6697
dnl aclocal-1.4 backwards compatibility:
6698
dnl AC_DEFUN([_LT_PROG_FC], [])
6701
# _LT_LANG_FC_CONFIG([TAG])
6702
# -------------------------
6703
# Ensure that the configuration variables for a Fortran compiler are
6704
# suitably defined. These variables are subsequently used by _LT_CONFIG
6705
# to write the compiler configuration to `libtool'.
6706
m4_defun([_LT_LANG_FC_CONFIG],
6707
[AC_REQUIRE([_LT_PROG_FC])dnl
6708
AC_LANG_PUSH(Fortran)
6710
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6711
_LT_TAGVAR(allow_undefined_flag, $1)=
6712
_LT_TAGVAR(always_export_symbols, $1)=no
6713
_LT_TAGVAR(archive_expsym_cmds, $1)=
6714
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6715
_LT_TAGVAR(hardcode_direct, $1)=no
6716
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6717
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6718
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6719
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6720
_LT_TAGVAR(hardcode_minus_L, $1)=no
6721
_LT_TAGVAR(hardcode_automatic, $1)=no
6722
_LT_TAGVAR(inherit_rpath, $1)=no
6723
_LT_TAGVAR(module_cmds, $1)=
6724
_LT_TAGVAR(module_expsym_cmds, $1)=
6725
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6726
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6727
_LT_TAGVAR(no_undefined_flag, $1)=
6728
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6729
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6731
# Source file extension for fc test sources.
6732
ac_ext=${ac_fc_srcext-f}
6734
# Object file extension for compiled fc test sources.
6736
_LT_TAGVAR(objext, $1)=$objext
6738
# No sense in running all these tests if we already determined that
6739
# the FC compiler isn't working. Some variables (like enable_shared)
6740
# are currently assumed to apply to all compilers on this platform,
6741
# and will be corrupted by setting them based on a non-working compiler.
6742
if test "$_lt_disable_FC" != yes; then
6743
# Code to be used in simple compile tests
6744
lt_simple_compile_test_code="\
6750
# Code to be used in simple link tests
6751
lt_simple_link_test_code="\
6756
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6759
# save warnings/boilerplate of simple test code
6760
_LT_COMPILER_BOILERPLATE
6761
_LT_LINKER_BOILERPLATE
6763
# Allow CC to be a program name with arguments.
6768
GCC=$ac_cv_fc_compiler_gnu
6770
_LT_TAGVAR(compiler, $1)=$CC
6771
_LT_CC_BASENAME([$compiler])
6773
if test -n "$compiler"; then
6774
AC_MSG_CHECKING([if libtool supports shared libraries])
6775
AC_MSG_RESULT([$can_build_shared])
6777
AC_MSG_CHECKING([whether to build shared libraries])
6778
test "$can_build_shared" = "no" && enable_shared=no
6780
# On AIX, shared libraries and static libraries use the same namespace, and
6781
# are all built from PIC.
6784
test "$enable_shared" = yes && enable_static=no
6785
if test -n "$RANLIB"; then
6786
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6787
postinstall_cmds='$RANLIB $lib'
6791
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6792
test "$enable_shared" = yes && enable_static=no
6796
AC_MSG_RESULT([$enable_shared])
6798
AC_MSG_CHECKING([whether to build static libraries])
6799
# Make sure either enable_shared or enable_static is yes.
6800
test "$enable_shared" = yes || enable_static=yes
6801
AC_MSG_RESULT([$enable_static])
6803
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6804
_LT_TAGVAR(LD, $1)="$LD"
6807
## There is no encapsulation within the following macros, do not change
6808
## the running order or otherwise move them around unless you know exactly
6809
## what you are doing...
6810
_LT_SYS_HIDDEN_LIBDEPS($1)
6811
_LT_COMPILER_PIC($1)
6812
_LT_COMPILER_C_O($1)
6813
_LT_COMPILER_FILE_LOCKS($1)
6814
_LT_LINKER_SHLIBS($1)
6815
_LT_SYS_DYNAMIC_LINKER($1)
6816
_LT_LINKER_HARDCODE_LIBPATH($1)
6819
fi # test -n "$compiler"
6823
fi # test "$_lt_disable_FC" != yes
6826
])# _LT_LANG_FC_CONFIG
6829
# _LT_LANG_GCJ_CONFIG([TAG])
6830
# --------------------------
6831
# Ensure that the configuration variables for the GNU Java Compiler compiler
6832
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6833
# to write the compiler configuration to `libtool'.
6834
m4_defun([_LT_LANG_GCJ_CONFIG],
6835
[AC_REQUIRE([LT_PROG_GCJ])dnl
6838
# Source file extension for Java test sources.
6841
# Object file extension for compiled Java test sources.
6843
_LT_TAGVAR(objext, $1)=$objext
6845
# Code to be used in simple compile tests
6846
lt_simple_compile_test_code="class foo {}"
6848
# Code to be used in simple link tests
6849
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6851
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6854
# save warnings/boilerplate of simple test code
6855
_LT_COMPILER_BOILERPLATE
6856
_LT_LINKER_BOILERPLATE
6858
# Allow CC to be a program name with arguments.
6864
_LT_TAGVAR(compiler, $1)=$CC
6865
_LT_TAGVAR(LD, $1)="$LD"
6866
_LT_CC_BASENAME([$compiler])
6868
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6869
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6871
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6874
## There is no encapsulation within the following macros, do not change
6875
## the running order or otherwise move them around unless you know exactly
6876
## what you are doing...
6877
if test -n "$compiler"; then
6878
_LT_COMPILER_NO_RTTI($1)
6879
_LT_COMPILER_PIC($1)
6880
_LT_COMPILER_C_O($1)
6881
_LT_COMPILER_FILE_LOCKS($1)
6882
_LT_LINKER_SHLIBS($1)
6883
_LT_LINKER_HARDCODE_LIBPATH($1)
6892
])# _LT_LANG_GCJ_CONFIG
6895
# _LT_LANG_RC_CONFIG([TAG])
6896
# -------------------------
6897
# Ensure that the configuration variables for the Windows resource compiler
6898
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6899
# to write the compiler configuration to `libtool'.
6900
m4_defun([_LT_LANG_RC_CONFIG],
6901
[AC_REQUIRE([LT_PROG_RC])dnl
6904
# Source file extension for RC test sources.
6907
# Object file extension for compiled RC test sources.
6909
_LT_TAGVAR(objext, $1)=$objext
6911
# Code to be used in simple compile tests
6912
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6914
# Code to be used in simple link tests
6915
lt_simple_link_test_code="$lt_simple_compile_test_code"
6917
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6920
# save warnings/boilerplate of simple test code
6921
_LT_COMPILER_BOILERPLATE
6922
_LT_LINKER_BOILERPLATE
6924
# Allow CC to be a program name with arguments.
6930
_LT_TAGVAR(compiler, $1)=$CC
6931
_LT_CC_BASENAME([$compiler])
6932
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6934
if test -n "$compiler"; then
6942
])# _LT_LANG_RC_CONFIG
6947
AC_DEFUN([LT_PROG_GCJ],
6948
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6949
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6950
[AC_CHECK_TOOL(GCJ, gcj,)
6951
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6952
AC_SUBST(GCJFLAGS)])])[]dnl
6956
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6957
dnl aclocal-1.4 backwards compatibility:
6958
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6963
AC_DEFUN([LT_PROG_RC],
6964
[AC_CHECK_TOOL(RC, windres,)
6968
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6969
dnl aclocal-1.4 backwards compatibility:
6970
dnl AC_DEFUN([LT_AC_PROG_RC], [])
6975
# If we don't have a new enough Autoconf to choose the best grep
6976
# available, choose the one first in the user's PATH.
6977
m4_defun([_LT_DECL_EGREP],
6978
[AC_REQUIRE([AC_PROG_EGREP])dnl
6979
AC_REQUIRE([AC_PROG_FGREP])dnl
6980
test -z "$GREP" && GREP=grep
6981
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
6982
_LT_DECL([], [EGREP], [1], [An ERE matcher])
6983
_LT_DECL([], [FGREP], [1], [A literal string matcher])
6984
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
6991
# Check for a fully-functional sed program, that truncates
6992
# as few characters as possible. Prefer GNU sed if found.
6993
m4_defun([_LT_DECL_SED],
6995
test -z "$SED" && SED=sed
6996
Xsed="$SED -e 1s/^X//"
6997
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
6998
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
6999
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7002
m4_ifndef([AC_PROG_SED], [
6609
7003
############################################################
6610
7004
# NOTE: This macro has been submitted for inclusion into #
6611
7005
# GNU Autoconf as AC_PROG_SED. When it is available in #
6612
7006
# a released version of Autoconf we should remove this #
6613
7007
# macro and use it instead. #
6614
7008
############################################################
6617
# Check for a fully-functional sed program, that truncates
6618
# as few characters as possible. Prefer GNU sed if found.
6619
AC_DEFUN([LT_AC_PROG_SED],
7010
m4_defun([AC_PROG_SED],
6620
7011
[AC_MSG_CHECKING([for a sed that does not truncate output])
6621
7012
AC_CACHE_VAL(lt_cv_path_SED,
6622
7013
[# Loop through the user's path and test for sed and gsed.