171
257
# Sed substitution that helps us do robust quoting. It backslashifies
172
258
# metacharacters that are still active within double-quoted strings.
173
Xsed='sed -e 1s/^X//'
174
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
259
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
176
261
# Same as above, but do not quote variable references.
177
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
262
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
179
264
# Sed substitution to delay expansion of an escaped shell variable in a
180
265
# double_quote_subst'ed string.
181
266
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
268
# Sed substitution to delay expansion of an escaped single quote.
269
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
183
271
# Sed substitution to avoid accidental globbing in evaled expressions
184
272
no_glob_subst='s/\*/\\\*/g'
189
274
# Global variables:
190
default_ofile=libtool
191
276
can_build_shared=yes
193
278
# All known linkers require a `.a' archive for static linking (except MSVC,
194
279
# which needs '.lib').
196
ltmain="$ac_aux_dir/ltmain.sh"
197
ofile="$default_ofile"
198
282
with_gnu_ld="$lt_cv_prog_gnu_ld"
200
AC_CHECK_TOOL(AR, ar, false)
201
AC_CHECK_TOOL(RANLIB, ranlib, :)
202
AC_CHECK_TOOL(STRIP, strip, :)
205
285
old_CFLAGS="$CFLAGS"
207
287
# Set sane defaults for various variables
208
test -z "$AR" && AR=ar
209
test -z "$AR_FLAGS" && AR_FLAGS=cru
210
test -z "$AS" && AS=as
211
288
test -z "$CC" && CC=cc
212
289
test -z "$LTCC" && LTCC=$CC
213
290
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
214
test -z "$DLLTOOL" && DLLTOOL=dlltool
215
291
test -z "$LD" && LD=ld
216
test -z "$LN_S" && LN_S="ln -s"
217
test -z "$MAGIC_CMD" && MAGIC_CMD=file
218
test -z "$NM" && NM=nm
219
test -z "$SED" && SED=sed
220
test -z "$OBJDUMP" && OBJDUMP=objdump
221
test -z "$RANLIB" && RANLIB=:
222
test -z "$STRIP" && STRIP=:
223
292
test -z "$ac_objext" && ac_objext=o
225
# Determine commands to create old-style static archives.
226
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
227
old_postinstall_cmds='chmod 644 $oldlib'
228
old_postuninstall_cmds=
230
if test -n "$RANLIB"; then
233
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
236
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
239
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
242
294
_LT_CC_BASENAME([$compiler])
244
296
# Only perform the check for file, if the check method requires it
297
test -z "$MAGIC_CMD" && MAGIC_CMD=file
245
298
case $deplibs_check_method in
247
300
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
253
_LT_REQUIRED_DARWIN_CHECKS
255
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
256
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
257
enable_win32_dll=yes, enable_win32_dll=no)
259
AC_ARG_ENABLE([libtool-lock],
260
[AC_HELP_STRING([--disable-libtool-lock],
261
[avoid locking (might break parallel builds)])])
262
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
265
[AC_HELP_STRING([--with-pic],
266
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
267
[pic_mode="$withval"],
269
test -z "$pic_mode" && pic_mode=default
271
306
# Use C for the default configuration in the libtool script
273
AC_LIBTOOL_LANG_C_CONFIG
278
# _LT_AC_SYS_COMPILER
307
LT_SUPPORTED_TAG([CC])
309
_LT_LANG_DEFAULT_CONFIG
316
# Note that this code is called both from `configure', and `config.status'
317
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
318
# `config.status' has no value for ac_aux_dir unless we are using Automake,
319
# so we pass a copy along to make sure it has a sensible value anyway.
320
m4_defun([_LT_PROG_LTMAIN],
321
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
322
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
323
ltmain="$ac_aux_dir/ltmain.sh"
328
# So that we can recreate a full libtool script including additional
329
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
330
# in macros and then make a single call at the end using the `libtool'
334
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
335
# ----------------------------------------
336
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
337
m4_define([_LT_CONFIG_LIBTOOL_INIT],
339
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
344
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
347
# _LT_CONFIG_LIBTOOL([COMMANDS])
348
# ------------------------------
349
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
350
m4_define([_LT_CONFIG_LIBTOOL],
352
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
357
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
360
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
361
# -----------------------------------------------------
362
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
363
[_LT_CONFIG_LIBTOOL([$1])
364
_LT_CONFIG_LIBTOOL_INIT([$2])
368
# _LT_FORMAT_COMMENT([COMMENT])
369
# -----------------------------
370
# Add leading comment marks to the start of each line, and a trailing
371
# full-stop to the whole comment if one is not present already.
372
m4_define([_LT_FORMAT_COMMENT],
374
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
375
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
382
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
383
# -------------------------------------------------------------------
384
# CONFIGNAME is the name given to the value in the libtool script.
385
# VARNAME is the (base) name used in the configure script.
386
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
387
# VARNAME. Any other value will be used directly.
388
m4_define([_LT_DECL],
389
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
390
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
391
[m4_ifval([$1], [$1], [$2])])
392
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
394
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
395
lt_dict_add_subkey([lt_decl_dict], [$2],
396
[tagged?], [m4_ifval([$5], [yes], [no])])])
400
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
401
# --------------------------------------------------------
402
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
405
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
406
# ------------------------------------------------
407
m4_define([lt_decl_tag_varnames],
408
[_lt_decl_filter([tagged?], [yes], $@)])
411
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
412
# ---------------------------------------------------------
413
m4_define([_lt_decl_filter],
415
[0], [m4_fatal([$0: too few arguments: $#])],
416
[1], [m4_fatal([$0: too few arguments: $#: $1])],
417
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
418
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
419
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
423
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
424
# --------------------------------------------------
425
m4_define([lt_decl_quote_varnames],
426
[_lt_decl_filter([value], [1], $@)])
429
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
430
# ---------------------------------------------------
431
m4_define([lt_decl_dquote_varnames],
432
[_lt_decl_filter([value], [2], $@)])
435
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
436
# ---------------------------------------------------
437
m4_define([lt_decl_varnames_tagged],
438
[m4_assert([$# <= 2])dnl
439
_$0(m4_quote(m4_default([$1], [[, ]])),
440
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
441
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
442
m4_define([_lt_decl_varnames_tagged],
443
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
446
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
447
# ------------------------------------------------
448
m4_define([lt_decl_all_varnames],
449
[_$0(m4_quote(m4_default([$1], [[, ]])),
451
m4_quote(lt_decl_varnames),
452
m4_quote(m4_shift($@))))[]dnl
454
m4_define([_lt_decl_all_varnames],
455
[lt_join($@, lt_decl_varnames_tagged([$1],
456
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
460
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
461
# ------------------------------------
462
# Quote a variable value, and forward it to `config.status' so that its
463
# declaration there will have the same value as in `configure'. VARNAME
464
# must have a single quote delimited value for this to work.
465
m4_define([_LT_CONFIG_STATUS_DECLARE],
466
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
469
# _LT_CONFIG_STATUS_DECLARATIONS
470
# ------------------------------
471
# We delimit libtool config variables with single quotes, so when
472
# we write them to config.status, we have to be sure to quote all
473
# embedded single quotes properly. In configure, this macro expands
474
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
476
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
477
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
478
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
479
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
484
# Output comment and list of tags supported by the script
485
m4_defun([_LT_LIBTOOL_TAGS],
486
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
487
available_tags="_LT_TAGS"dnl
491
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
492
# -----------------------------------
493
# Extract the dictionary values for VARNAME (optionally with TAG) and
494
# expand to a commented shell variable setting:
496
# # Some comment about what VAR is for.
497
# visible_name=$lt_internal_name
498
m4_define([_LT_LIBTOOL_DECLARE],
499
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
500
[description])))[]dnl
501
m4_pushdef([_libtool_name],
502
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
503
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
504
[0], [_libtool_name=[$]$1],
505
[1], [_libtool_name=$lt_[]$1],
506
[2], [_libtool_name=$lt_[]$1],
507
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
508
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
512
# _LT_LIBTOOL_CONFIG_VARS
513
# -----------------------
514
# Produce commented declarations of non-tagged libtool config variables
515
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
516
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
517
# section) are produced by _LT_LIBTOOL_TAG_VARS.
518
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
519
[m4_foreach([_lt_var],
520
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
521
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
524
# _LT_LIBTOOL_TAG_VARS(TAG)
525
# -------------------------
526
m4_define([_LT_LIBTOOL_TAG_VARS],
527
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
528
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
531
# _LT_TAGVAR(VARNAME, [TAGNAME])
532
# ------------------------------
533
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
536
# _LT_CONFIG_COMMANDS
279
537
# -------------------
280
AC_DEFUN([_LT_AC_SYS_COMPILER],
538
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
539
# variables for single and double quote escaping we saved from calls
540
# to _LT_DECL, we can put quote escaped variables declarations
541
# into `config.status', and then the shell code to quote escape them in
542
# for loops in `config.status'. Finally, any additional code accumulated
543
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
544
m4_defun([_LT_CONFIG_COMMANDS],
545
[AC_PROVIDE_IFELSE([LT_OUTPUT],
546
dnl If the libtool generation code has been placed in $CONFIG_LT,
547
dnl instead of duplicating it all over again into config.status,
548
dnl then we will have config.status run $CONFIG_LT later, so it
549
dnl needs to know what name is stored there:
550
[AC_CONFIG_COMMANDS([libtool],
551
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
552
dnl If the libtool generation code is destined for config.status,
553
dnl expand the accumulated commands and init code now:
554
[AC_CONFIG_COMMANDS([libtool],
555
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
556
])#_LT_CONFIG_COMMANDS
560
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
563
# The HP-UX ksh and POSIX shell print the target directory to stdout
565
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
sed_quote_subst='$sed_quote_subst'
568
double_quote_subst='$double_quote_subst'
569
delay_variable_subst='$delay_variable_subst'
570
_LT_CONFIG_STATUS_DECLARATIONS
573
compiler='$compiler_DEFAULT'
575
# Quote evaled strings.
576
for var in lt_decl_all_varnames([[ \
577
]], lt_decl_quote_varnames); do
578
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
579
*[[\\\\\\\`\\"\\\$]]*)
580
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
583
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
588
# Double-quote double-evaled strings.
589
for var in lt_decl_all_varnames([[ \
590
]], lt_decl_dquote_varnames); do
591
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
592
*[[\\\\\\\`\\"\\\$]]*)
593
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
596
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
601
# Fix-up fallback echo if it was mangled by the above quoting rules.
603
*'\\\[$]0 --fallback-echo"')dnl "
604
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
608
_LT_OUTPUT_LIBTOOL_INIT
614
# This macro allows early generation of the libtool script (before
615
# AC_OUTPUT is called), incase it is used in configure for compilation
617
AC_DEFUN([LT_OUTPUT],
618
[: ${CONFIG_LT=./config.lt}
619
AC_MSG_NOTICE([creating $CONFIG_LT])
620
cat >"$CONFIG_LT" <<_LTEOF
622
# Generated by $as_me.
623
# Run this file to recreate a libtool stub with the current configuration.
626
SHELL=\${CONFIG_SHELL-$SHELL}
629
cat >>"$CONFIG_LT" <<\_LTEOF
633
exec AS_MESSAGE_FD>&1
634
exec AS_MESSAGE_LOG_FD>>config.log
637
AS_BOX([Running $as_me.])
638
} >&AS_MESSAGE_LOG_FD
641
\`$as_me' creates a local libtool stub from the current configuration,
642
for use in further configure time tests before the real libtool is
645
Usage: $[0] [[OPTIONS]]
647
-h, --help print this help, then exit
648
-V, --version print version number, then exit
649
-q, --quiet do not print progress messages
650
-d, --debug don't remove temporary files
652
Report bugs to <bug-libtool@gnu.org>."
655
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
656
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
657
configured by $[0], generated by m4_PACKAGE_STRING.
659
Copyright (C) 2008 Free Software Foundation, Inc.
660
This config.lt script is free software; the Free Software Foundation
661
gives unlimited permision to copy, distribute and modify it."
666
--version | --v* | -V )
667
echo "$lt_cl_version"; exit 0 ;;
669
echo "$lt_cl_help"; exit 0 ;;
670
--debug | --d* | -d )
672
--quiet | --q* | --silent | --s* | -q )
675
-*) AC_MSG_ERROR([unrecognized option: $[1]
676
Try \`$[0] --help' for more information.]) ;;
678
*) AC_MSG_ERROR([unrecognized argument: $[1]
679
Try \`$[0] --help' for more information.]) ;;
684
if $lt_cl_silent; then
685
exec AS_MESSAGE_FD>/dev/null
689
cat >>"$CONFIG_LT" <<_LTEOF
690
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
693
cat >>"$CONFIG_LT" <<\_LTEOF
694
AC_MSG_NOTICE([creating $ofile])
695
_LT_OUTPUT_LIBTOOL_COMMANDS
698
chmod +x "$CONFIG_LT"
700
# configure is writing to config.log, but config.lt does its own redirection,
701
# appending to config.log, which fails on DOS, as config.log is still kept
702
# open by configure. Here we exec the FD to /dev/null, effectively closing
703
# config.log, so it can be properly (re)opened and appended to by config.lt.
704
if test "$no_create" != yes; then
706
test "$silent" = yes &&
707
lt_config_lt_args="$lt_config_lt_args --quiet"
708
exec AS_MESSAGE_LOG_FD>/dev/null
709
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
710
exec AS_MESSAGE_LOG_FD>>config.log
711
$lt_cl_success || AS_EXIT(1)
718
# If TAG is the built-in tag, create an initial libtool script with a
719
# default configuration from the untagged config vars. Otherwise add code
720
# to config.status for appending the configuration named by TAG from the
721
# matching tagged config vars.
722
m4_defun([_LT_CONFIG],
723
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
724
_LT_CONFIG_SAVE_COMMANDS([
725
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
726
m4_if(_LT_TAG, [C], [
727
# See if we are running on zsh, and set the options which allow our
728
# commands through without removal of \ escapes.
729
if test -n "${ZSH_VERSION+set}" ; then
734
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
737
cat <<_LT_EOF >> "$cfgfile"
740
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
741
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
742
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
743
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
748
# ### BEGIN LIBTOOL CONFIG
749
_LT_LIBTOOL_CONFIG_VARS
751
# ### END LIBTOOL CONFIG
757
cat <<\_LT_EOF >> "$cfgfile"
758
# AIX sometimes has problems with the GCC collect2 program. For some
759
# reason, if we set the COLLECT_NAMES environment variable, the problems
760
# vanish in a puff of smoke.
761
if test "X${COLLECT_NAMES+set}" != Xset; then
771
# We use sed instead of cat because bash on DJGPP gets confused if
772
# if finds mixed CR/LF and LF-only lines. Since sed operates in
773
# text mode, it properly converts lines to CR/LF. This bash problem
774
# is reportedly fixed, but why not run on old versions too?
775
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
776
|| (rm -f "$cfgfile"; exit 1)
778
_LT_PROG_XSI_SHELLFNS
780
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
781
|| (rm -f "$cfgfile"; exit 1)
783
mv -f "$cfgfile" "$ofile" ||
784
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
787
[cat <<_LT_EOF >> "$ofile"
789
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
790
dnl in a comment (ie after a #).
791
# ### BEGIN LIBTOOL TAG CONFIG: $1
792
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
793
# ### END LIBTOOL TAG CONFIG: $1
800
TIMESTAMP='$TIMESTAMP'
803
])dnl /_LT_CONFIG_SAVE_COMMANDS
807
# LT_SUPPORTED_TAG(TAG)
808
# ---------------------
809
# Trace this macro to discover what tags are supported by the libtool
810
# --tag option, using:
811
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
812
AC_DEFUN([LT_SUPPORTED_TAG], [])
815
# C support is built-in for now
816
m4_define([_LT_LANG_C_enabled], [])
817
m4_define([_LT_TAGS], [])
822
# Enable libtool support for the given language if not already enabled.
824
[AC_BEFORE([$0], [LT_OUTPUT])dnl
827
[C++], [_LT_LANG(CXX)],
828
[Java], [_LT_LANG(GCJ)],
829
[Fortran 77], [_LT_LANG(F77)],
830
[Fortran], [_LT_LANG(FC)],
831
[Windows Resource], [_LT_LANG(RC)],
832
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
834
[m4_fatal([$0: unsupported language: "$1"])])])dnl
841
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
842
[LT_SUPPORTED_TAG([$1])dnl
843
m4_append([_LT_TAGS], [$1 ])dnl
844
m4_define([_LT_LANG_]$1[_enabled], [])dnl
845
_LT_LANG_$1_CONFIG($1)])dnl
849
# _LT_LANG_DEFAULT_CONFIG
850
# -----------------------
851
m4_defun([_LT_LANG_DEFAULT_CONFIG],
852
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
854
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
856
AC_PROVIDE_IFELSE([AC_PROG_F77],
858
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
860
AC_PROVIDE_IFELSE([AC_PROG_FC],
862
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
864
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
865
dnl pulling things in needlessly.
866
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
868
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
870
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
872
[m4_ifdef([AC_PROG_GCJ],
873
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
874
m4_ifdef([A][M_PROG_GCJ],
875
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
876
m4_ifdef([LT_PROG_GCJ],
877
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
879
AC_PROVIDE_IFELSE([LT_PROG_RC],
881
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
882
])# _LT_LANG_DEFAULT_CONFIG
885
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
886
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
887
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
888
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
889
dnl aclocal-1.4 backwards compatibility:
890
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
891
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
892
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
893
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
898
m4_defun([_LT_TAG_COMPILER],
281
899
[AC_REQUIRE([AC_PROG_CC])dnl
901
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
902
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
903
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
904
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
283
906
# If no C compiler was specified, use CC.
284
907
LTCC=${LTCC-"$CC"}
2693
3325
AC_CHECK_LIB(m, cos, LIBM="-lm")
2699
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2700
# -----------------------------------
2701
# sets LIBLTDL to the link flags for the libltdl convenience library and
2702
# LTDLINCL to the include flags for the libltdl header and adds
2703
# --enable-ltdl-convenience to the configure arguments. Note that
2704
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2705
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2706
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2707
# (note the single quotes!). If your package is not flat and you're not
2708
# using automake, define top_builddir and top_srcdir appropriately in
2710
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2711
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2712
case $enable_ltdl_convenience in
2713
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2714
"") enable_ltdl_convenience=yes
2715
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2717
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2718
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2719
# For backwards non-gettext consistent compatibility...
2721
])# AC_LIBLTDL_CONVENIENCE
2724
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2725
# -----------------------------------
2726
# sets LIBLTDL to the link flags for the libltdl installable library and
2727
# LTDLINCL to the include flags for the libltdl header and adds
2728
# --enable-ltdl-install to the configure arguments. Note that
2729
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2730
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2731
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2732
# '${top_srcdir}/' (note the single quotes!). If your package is not
2733
# flat and you're not using automake, define top_builddir and top_srcdir
2734
# appropriately in the Makefiles.
2735
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2736
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2737
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2738
AC_CHECK_LIB(ltdl, lt_dlinit,
2739
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2740
[if test x"$enable_ltdl_install" = xno; then
2741
AC_MSG_WARN([libltdl not installed, but installation disabled])
2743
enable_ltdl_install=yes
2746
if test x"$enable_ltdl_install" = x"yes"; then
2747
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2748
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2749
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2751
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2755
# For backwards non-gettext consistent compatibility...
2757
])# AC_LIBLTDL_INSTALLABLE
2762
# enable support for C++ libraries
2763
AC_DEFUN([AC_LIBTOOL_CXX],
2764
[AC_REQUIRE([_LT_AC_LANG_CXX])
2770
AC_DEFUN([_LT_AC_LANG_CXX],
2771
[AC_REQUIRE([AC_PROG_CXX])
2772
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2773
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2776
# _LT_AC_PROG_CXXCPP
2777
# ------------------
2778
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2780
AC_REQUIRE([AC_PROG_CXX])
2781
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2782
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2783
(test "X$CXX" != "Xg++"))) ; then
2786
])# _LT_AC_PROG_CXXCPP
2790
# enable support for Fortran 77 libraries
2791
AC_DEFUN([AC_LIBTOOL_F77],
2792
[AC_REQUIRE([_LT_AC_LANG_F77])
2798
AC_DEFUN([_LT_AC_LANG_F77],
2799
[AC_REQUIRE([AC_PROG_F77])
2800
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2806
# enable support for GCJ libraries
2807
AC_DEFUN([AC_LIBTOOL_GCJ],
2808
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2814
AC_DEFUN([_LT_AC_LANG_GCJ],
2815
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2816
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2817
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2818
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2819
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2820
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2821
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2827
# enable support for Windows resource files
2828
AC_DEFUN([AC_LIBTOOL_RC],
2829
[AC_REQUIRE([LT_AC_PROG_RC])
2830
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2834
# AC_LIBTOOL_LANG_C_CONFIG
2835
# ------------------------
2836
# Ensure that the configuration vars for the C compiler are
2837
# suitably defined. Those variables are subsequently used by
2838
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2839
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2840
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2844
# Source file extension for C test sources.
2847
# Object file extension for compiled C test sources.
2849
_LT_AC_TAGVAR(objext, $1)=$objext
2851
# Code to be used in simple compile tests
2852
lt_simple_compile_test_code="int some_variable = 0;"
2854
# Code to be used in simple link tests
2855
lt_simple_link_test_code='int main(){return(0);}'
2859
# save warnings/boilerplate of simple test code
2860
_LT_COMPILER_BOILERPLATE
2861
_LT_LINKER_BOILERPLATE
2863
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2864
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2865
AC_LIBTOOL_PROG_CC_C_O($1)
2866
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2867
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2868
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2869
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2870
AC_LIBTOOL_SYS_LIB_STRIP
2871
AC_LIBTOOL_DLOPEN_SELF
2873
# Report which library types will actually be built
2874
AC_MSG_CHECKING([if libtool supports shared libraries])
2875
AC_MSG_RESULT([$can_build_shared])
2877
AC_MSG_CHECKING([whether to build shared libraries])
2878
test "$can_build_shared" = "no" && enable_shared=no
2880
# On AIX, shared libraries and static libraries use the same namespace, and
2881
# are all built from PIC.
2884
test "$enable_shared" = yes && enable_static=no
2885
if test -n "$RANLIB"; then
2886
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2887
postinstall_cmds='$RANLIB $lib'
2892
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2893
test "$enable_shared" = yes && enable_static=no
2897
AC_MSG_RESULT([$enable_shared])
2899
AC_MSG_CHECKING([whether to build static libraries])
2900
# Make sure either enable_shared or enable_static is yes.
2901
test "$enable_shared" = yes || enable_static=yes
2902
AC_MSG_RESULT([$enable_static])
2904
AC_LIBTOOL_CONFIG($1)
2908
])# AC_LIBTOOL_LANG_C_CONFIG
2911
# AC_LIBTOOL_LANG_CXX_CONFIG
2912
# --------------------------
2913
# Ensure that the configuration vars for the C compiler are
2914
# suitably defined. Those variables are subsequently used by
2915
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2916
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2917
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2919
AC_REQUIRE([AC_PROG_CXX])
2920
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2922
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2923
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2924
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2925
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2926
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2927
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2928
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2929
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2930
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2931
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2932
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2933
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2934
_LT_AC_TAGVAR(module_cmds, $1)=
2935
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2936
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2937
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2938
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2939
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2940
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2942
# Dependencies to place before and after the object being linked:
2943
_LT_AC_TAGVAR(predep_objects, $1)=
2944
_LT_AC_TAGVAR(postdep_objects, $1)=
2945
_LT_AC_TAGVAR(predeps, $1)=
2946
_LT_AC_TAGVAR(postdeps, $1)=
2947
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2948
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2950
# Source file extension for C++ test sources.
2953
# Object file extension for compiled C++ test sources.
2955
_LT_AC_TAGVAR(objext, $1)=$objext
2957
# Code to be used in simple compile tests
2958
lt_simple_compile_test_code="int some_variable = 0;"
2960
# Code to be used in simple link tests
2961
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2963
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2966
# save warnings/boilerplate of simple test code
2967
_LT_COMPILER_BOILERPLATE
2968
_LT_LINKER_BOILERPLATE
2970
# Allow CC to be a program name with arguments.
2975
lt_save_with_gnu_ld=$with_gnu_ld
2976
lt_save_path_LD=$lt_cv_path_LD
2977
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2978
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2980
$as_unset lt_cv_prog_gnu_ld
2982
if test -n "${lt_cv_path_LDCXX+set}"; then
2983
lt_cv_path_LD=$lt_cv_path_LDCXX
2985
$as_unset lt_cv_path_LD
2987
test -z "${LDCXX+set}" || LD=$LDCXX
2990
_LT_AC_TAGVAR(compiler, $1)=$CC
2991
_LT_CC_BASENAME([$compiler])
2993
# We don't want -fno-exception wen compiling C++ code, so set the
2994
# no_builtin_flag separately
2995
if test "$GXX" = yes; then
2996
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2998
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3001
if test "$GXX" = yes; then
3002
# Set up default GNU C++ configuration
3006
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3007
# archiving commands below assume that GNU ld is being used.
3008
if test "$with_gnu_ld" = yes; then
3009
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3010
_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'
3012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3013
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3015
# If archive_cmds runs LD, not CC, wlarc should be empty
3016
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3017
# investigate it a little bit more. (MM)
3020
# ancient GNU ld didn't support --whole-archive et. al.
3021
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3022
grep 'no-whole-archive' > /dev/null; then
3023
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3025
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3031
# A generic and very simple default shared library creation
3032
# command for GNU C++ for the case where it uses the native
3033
# linker, instead of GNU ld. If possible, this setting should
3034
# overridden to take advantage of the native linker features on
3035
# the platform it is being used on.
3036
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3039
# Commands to make compiler produce verbose output that lists
3040
# what "hidden" libraries, object files and flags are used when
3041
# linking a shared library.
3042
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3050
# PORTME: fill in a description of your system's C++ link characteristics
3051
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3052
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3055
# FIXME: insert proper C++ library support
3056
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3059
if test "$host_cpu" = ia64; then
3060
# On IA64, the linker does run time linking by default, so we don't
3061
# have to do anything special.
3062
aix_use_runtimelinking=no
3063
exp_sym_flag='-Bexport'
3066
aix_use_runtimelinking=no
3068
# Test if we are trying to use run time linking or normal
3069
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3070
# need to do runtime linking.
3071
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3072
for ld_flag in $LDFLAGS; do
3075
aix_use_runtimelinking=yes
3083
exp_sym_flag='-bexport'
3084
no_entry_flag='-bnoentry'
3087
# When large executables or shared objects are built, AIX ld can
3088
# have problems creating the table of contents. If linking a library
3089
# or program results in "error TOC overflow" add -mminimal-toc to
3090
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3091
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3093
_LT_AC_TAGVAR(archive_cmds, $1)=''
3094
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3095
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3096
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3098
if test "$GXX" = yes; then
3099
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3100
# We only want to do this on AIX 4.2 and lower, the check
3101
# below for broken collect2 doesn't work under 4.3+
3102
collect2name=`${CC} -print-prog-name=collect2`
3103
if test -f "$collect2name" && \
3104
strings "$collect2name" | grep resolve_lib_name >/dev/null
3106
# We have reworked collect2
3109
# We have old collect2
3110
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3111
# It fails to find uninstalled libraries when the uninstalled
3112
# path is not listed in the libpath. Setting hardcode_minus_L
3113
# to unsupported forces relinking
3114
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3115
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3116
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3120
shared_flag='-shared'
3121
if test "$aix_use_runtimelinking" = yes; then
3122
shared_flag="$shared_flag "'${wl}-G'
3126
if test "$host_cpu" = ia64; then
3127
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3128
# chokes on -Wl,-G. The following line is correct:
3131
if test "$aix_use_runtimelinking" = yes; then
3132
shared_flag='${wl}-G'
3134
shared_flag='${wl}-bM:SRE'
3139
# It seems that -bexpall does not export symbols beginning with
3140
# underscore (_), so it is better to generate a list of symbols to export.
3141
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3142
if test "$aix_use_runtimelinking" = yes; then
3143
# Warning - without using the other runtime loading flags (-brtl),
3144
# -berok will link without error, but may produce a broken library.
3145
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3146
# Determine the default libpath from the value encoded in an empty executable.
3147
_LT_AC_SYS_LIBPATH_AIX
3148
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3150
_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"
3152
if test "$host_cpu" = ia64; then
3153
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3154
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3155
_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"
3157
# Determine the default libpath from the value encoded in an empty executable.
3158
_LT_AC_SYS_LIBPATH_AIX
3159
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3160
# Warning - without using the other run time loading flags,
3161
# -berok will link without error, but may produce a broken library.
3162
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3163
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3164
# Exported symbols can be pulled into shared objects from archives
3165
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3166
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3167
# This is similar to how AIX traditionally builds its shared libraries.
3168
_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'
3174
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3175
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3176
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3177
# support --undefined. This deserves some investigation. FIXME
3178
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3180
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3185
case $cc_basename in
3187
# FIXME: insert proper C++ library support
3188
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3193
cygwin* | mingw* | pw32*)
3194
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3195
# as there is no search path for DLLs.
3196
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3197
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3198
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3199
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3201
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3202
_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'
3203
# If the export-symbols file already is a .def file (1st line
3204
# is EXPORTS), use it as is; otherwise, prepend...
3205
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3206
cp $export_symbols $output_objdir/$soname.def;
3208
echo EXPORTS > $output_objdir/$soname.def;
3209
cat $export_symbols >> $output_objdir/$soname.def;
3211
$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'
3213
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3216
darwin* | rhapsody*)
3217
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3218
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3219
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3220
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3221
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3222
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3223
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3224
if test "$GXX" = yes ; then
3225
output_verbose_link_cmd='echo'
3226
_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}"
3227
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3228
_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}"
3229
_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}"
3230
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3231
_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}"
3232
_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}"
3235
case $cc_basename in
3237
output_verbose_link_cmd='echo'
3238
_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'
3239
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3240
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3241
_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}'
3242
_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}'
3245
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3252
case $cc_basename in
3254
# FIXME: insert proper C++ library support
3255
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3258
# Green Hills C++ Compiler
3259
# FIXME: insert proper C++ library support
3260
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3263
# FIXME: insert proper C++ library support
3264
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3269
# C++ shared libraries reported to be fairly broken before switch to ELF
3270
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3273
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3275
freebsd* | dragonfly*)
3276
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3278
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3283
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3284
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3285
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3286
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3287
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3288
# but as the default
3289
# location of the library.
3291
case $cc_basename in
3293
# FIXME: insert proper C++ library support
3294
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3297
_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'
3298
# Commands to make compiler produce verbose output that lists
3299
# what "hidden" libraries, object files and flags are used when
3300
# linking a shared library.
3302
# There doesn't appear to be a way to prevent this compiler from
3303
# explicitly linking system object files so we need to strip them
3304
# from the output so that they don't get included in the library
3306
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'
3309
if test "$GXX" = yes; then
3310
_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'
3312
# FIXME: insert proper C++ library support
3313
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3319
if test $with_gnu_ld = no; then
3320
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3321
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3326
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3332
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3333
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3336
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3337
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3338
# but as the default
3339
# location of the library.
3343
case $cc_basename in
3345
# FIXME: insert proper C++ library support
3346
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3351
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3354
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3357
_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'
3360
# Commands to make compiler produce verbose output that lists
3361
# what "hidden" libraries, object files and flags are used when
3362
# linking a shared library.
3364
# There doesn't appear to be a way to prevent this compiler from
3365
# explicitly linking system object files so we need to strip them
3366
# from the output so that they don't get included in the library
3368
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'
3371
if test "$GXX" = yes; then
3372
if test $with_gnu_ld = no; then
3375
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3378
_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'
3381
_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'
3386
# FIXME: insert proper C++ library support
3387
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3393
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3394
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3395
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3396
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3397
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3398
# Instead, shared libraries are loaded at an image base (0x10000000 by
3399
# default) and relocated if they conflict, which is a slow very memory
3400
# consuming and fragmenting process. To avoid this, we pick a random,
3401
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3402
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3403
_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'
3404
_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'
3407
case $cc_basename in
3410
_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'
3412
# Archives containing C++ object files must be created using
3413
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3414
# necessary to make sure instantiated templates are included
3416
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3419
if test "$GXX" = yes; then
3420
if test "$with_gnu_ld" = no; then
3421
_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'
3423
_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'
3426
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3429
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3430
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3432
linux* | k*bsd*-gnu)
3433
case $cc_basename in
3435
# Kuck and Associates, Inc. (KAI) C++ Compiler
3437
# KCC will only create a shared library if the output file
3438
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3439
# to its proper name (with version) after linking.
3440
_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'
3441
_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'
3442
# Commands to make compiler produce verbose output that lists
3443
# what "hidden" libraries, object files and flags are used when
3444
# linking a shared library.
3446
# There doesn't appear to be a way to prevent this compiler from
3447
# explicitly linking system object files so we need to strip them
3448
# from the output so that they don't get included in the library
3450
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'
3452
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3453
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3455
# Archives containing C++ object files must be created using
3456
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3457
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3462
# version 8.0 and above of icpc choke on multiply defined symbols
3463
# if we add $predep_objects and $postdep_objects, however 7.1 and
3464
# earlier do not add the objects themselves.
3465
case `$CC -V 2>&1` in
3467
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3468
_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'
3470
*) # Version 8.0 or newer
3473
ia64*) tmp_idyn=' -i_dynamic';;
3475
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3476
_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'
3479
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3480
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3481
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3482
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3485
# Portland Group C++ compiler
3486
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3487
_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'
3489
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3490
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3491
_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'
3495
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3496
_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'
3498
runpath_var=LD_RUN_PATH
3499
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3500
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3502
# Commands to make compiler produce verbose output that lists
3503
# what "hidden" libraries, object files and flags are used when
3504
# linking a shared library.
3506
# There doesn't appear to be a way to prevent this compiler from
3507
# explicitly linking system object files so we need to strip them
3508
# from the output so that they don't get included in the library
3510
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'
3513
case `$CC -V 2>&1 | sed 5q` in
3516
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3517
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3518
_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'
3519
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3520
_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'
3522
# Not sure whether something based on
3523
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3525
output_verbose_link_cmd='echo'
3527
# Archives containing C++ object files must be created using
3528
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3529
# necessary to make sure instantiated templates are included
3531
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3538
# FIXME: insert proper C++ library support
3539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3542
# FIXME: insert proper C++ library support
3543
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3546
case $cc_basename in
3548
# FIXME: insert proper C++ library support
3549
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3552
# FIXME: insert proper C++ library support
3553
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3558
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3559
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3561
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3562
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3563
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3565
# Workaround some broken pre-1.5 toolchains
3566
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3569
# C++ shared libraries are fairly broken
3570
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3573
if test -f /usr/libexec/ld.so; then
3574
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3575
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3576
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3577
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3578
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3579
_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'
3580
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3581
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3583
output_verbose_link_cmd='echo'
3585
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3589
case $cc_basename in
3591
# Kuck and Associates, Inc. (KAI) C++ Compiler
3593
# KCC will only create a shared library if the output file
3594
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3595
# to its proper name (with version) after linking.
3596
_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'
3598
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3599
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3601
# Archives containing C++ object files must be created using
3602
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3603
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3607
# Rational C++ 2.4.1
3608
# FIXME: insert proper C++ library support
3609
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3612
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3613
_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'
3615
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3616
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3618
# Commands to make compiler produce verbose output that lists
3619
# what "hidden" libraries, object files and flags are used when
3620
# linking a shared library.
3622
# There doesn't appear to be a way to prevent this compiler from
3623
# explicitly linking system object files so we need to strip them
3624
# from the output so that they don't get included in the library
3626
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'
3629
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3630
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3631
_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'
3633
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3634
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3636
# Commands to make compiler produce verbose output that lists
3637
# what "hidden" libraries, object files and flags are used when
3638
# linking a shared library.
3639
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3642
# FIXME: insert proper C++ library support
3643
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3649
case $cc_basename in
3651
# Kuck and Associates, Inc. (KAI) C++ Compiler
3653
# KCC will only create a shared library if the output file
3654
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3655
# to its proper name (with version) after linking.
3656
_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'
3658
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3659
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3661
# Archives containing C++ object files must be created using
3662
# the KAI C++ compiler.
3663
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3666
# Rational C++ 2.4.1
3667
# FIXME: insert proper C++ library support
3668
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3671
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3672
_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'
3673
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3674
echo "-hidden">> $lib.exp~
3675
$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~
3678
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3679
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3681
# Commands to make compiler produce verbose output that lists
3682
# what "hidden" libraries, object files and flags are used when
3683
# linking a shared library.
3685
# There doesn't appear to be a way to prevent this compiler from
3686
# explicitly linking system object files so we need to strip them
3687
# from the output so that they don't get included in the library
3689
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'
3692
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3693
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3694
_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'
3696
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3697
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3699
# Commands to make compiler produce verbose output that lists
3700
# what "hidden" libraries, object files and flags are used when
3701
# linking a shared library.
3702
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3705
# FIXME: insert proper C++ library support
3706
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3712
# FIXME: insert proper C++ library support
3713
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3716
case $cc_basename in
3719
# FIXME: insert proper C++ library support
3720
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3724
# FIXME: insert proper C++ library support
3725
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3728
# FIXME: insert proper C++ library support
3729
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3734
case $cc_basename in
3736
# Sun C++ 4.2, 5.x and Centerline C++
3737
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3738
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3739
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3740
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3741
$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'
3743
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3744
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3746
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3748
# The compiler driver will combine and reorder linker options,
3749
# but understands `-z linker_flag'.
3750
# Supported since Solaris 2.6 (maybe 2.5.1?)
3751
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3754
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3756
output_verbose_link_cmd='echo'
3758
# Archives containing C++ object files must be created using
3759
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3760
# necessary to make sure instantiated templates are included
3762
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3765
# Green Hills C++ Compiler
3766
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3768
# The C++ compiler must be used to create the archive.
3769
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3772
# GNU C++ compiler with Solaris linker
3773
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3774
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3775
if $CC --version | grep -v '^2\.7' > /dev/null; then
3776
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3777
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3778
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3780
# Commands to make compiler produce verbose output that lists
3781
# what "hidden" libraries, object files and flags are used when
3782
# linking a shared library.
3783
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3785
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3787
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3788
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3789
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3791
# Commands to make compiler produce verbose output that lists
3792
# what "hidden" libraries, object files and flags are used when
3793
# linking a shared library.
3794
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3797
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3799
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3801
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3808
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3809
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3810
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3811
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3812
runpath_var='LD_RUN_PATH'
3814
case $cc_basename in
3816
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3817
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3820
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3821
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3825
sysv5* | sco3.2v5* | sco5v6*)
3826
# Note: We can NOT use -z defs as we might desire, because we do not
3827
# link with -lc, and that would cause any symbols used from libc to
3828
# always be unresolved, which means just about no library would
3829
# ever link correctly. If we're not using GNU ld we use -z text
3830
# though, which does catch some bad symbols but isn't as heavy-handed
3832
# For security reasons, it is highly recommended that you always
3833
# use absolute paths for naming shared libraries, and exclude the
3834
# DT_RUNPATH tag from executables and libraries. But doing so
3835
# requires that you compile everything twice, which is a pain.
3836
# So that behaviour is only enabled if SCOABSPATH is set to a
3837
# non-empty value in the environment. Most likely only useful for
3838
# creating official distributions of packages.
3839
# This is a hack until libtool officially supports absolute path
3840
# names for shared libraries.
3841
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3842
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3843
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3844
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3845
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3846
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3847
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3848
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3849
runpath_var='LD_RUN_PATH'
3851
case $cc_basename in
3853
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3854
_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'
3857
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3858
_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'
3863
case $cc_basename in
3865
# NonStop-UX NCC 3.20
3866
# FIXME: insert proper C++ library support
3867
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3870
# FIXME: insert proper C++ library support
3871
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3876
# FIXME: insert proper C++ library support
3877
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3880
# FIXME: insert proper C++ library support
3881
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3884
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3885
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3887
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3888
_LT_AC_TAGVAR(LD, $1)="$LD"
3890
AC_LIBTOOL_POSTDEP_PREDEP($1)
3891
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3892
AC_LIBTOOL_PROG_CC_C_O($1)
3893
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3894
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3895
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3896
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3898
AC_LIBTOOL_CONFIG($1)
3905
with_gnu_ldcxx=$with_gnu_ld
3906
with_gnu_ld=$lt_save_with_gnu_ld
3907
lt_cv_path_LDCXX=$lt_cv_path_LD
3908
lt_cv_path_LD=$lt_save_path_LD
3909
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3910
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3911
])# AC_LIBTOOL_LANG_CXX_CONFIG
3913
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3914
# ------------------------------------
3915
# Figure out "hidden" library dependencies from verbose
3916
# compiler output when linking a shared library.
3917
# Parse the compiler output and extract the necessary
3918
# objects, libraries and library flags.
3919
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3920
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3921
dnl we can't use the lt_simple_compile_test_code here,
3922
dnl because it contains code intended for an executable,
3923
dnl not a library. It's possible we should let each
3924
dnl tag define a new lt_????_link_test_code variable,
3925
dnl but it's only used here...
3926
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3928
void foo (void) { a = 0; }
3930
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3934
Foo (void) { a = 0; }
3939
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3947
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3950
public void bar (void) {
3956
dnl Parse the compiler output and extract the necessary
3957
dnl objects, libraries and library flags.
3958
if AC_TRY_EVAL(ac_compile); then
3959
# Parse the compiler output and extract the necessary
3960
# objects, libraries and library flags.
3962
# Sentinel used to keep track of whether or not we are before
3963
# the conftest object file.
3964
pre_test_object_deps_done=no
3966
# The `*' in the case matches for architectures that use `case' in
3967
# $output_verbose_cmd can trigger glob expansion during the loop
3968
# eval without this substitution.
3969
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3971
for p in `eval $output_verbose_link_cmd`; do
3975
# Some compilers place space between "-{L,R}" and the path.
3978
|| test $p = "-R"; then
3985
if test "$pre_test_object_deps_done" = no; then
3988
# Internal compiler library paths should come after those
3989
# provided the user. The postdeps already come after the
3990
# user supplied libs so there is no need to process them.
3991
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3992
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3994
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3997
# The "-l" case would never come before the object being
3998
# linked, so don't bother handling this case.
4001
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4002
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4004
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4010
# This assumes that the test object file only shows up
4011
# once in the compiler output.
4012
if test "$p" = "conftest.$objext"; then
4013
pre_test_object_deps_done=yes
4017
if test "$pre_test_object_deps_done" = no; then
4018
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4019
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4021
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4024
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4025
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4027
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4032
*) ;; # Ignore the rest.
4040
echo "libtool.m4: error: problem compiling $1 test program"
4043
$rm -f confest.$objext
4045
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4046
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4047
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4050
# PORTME: override above test on systems where it is broken
4054
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4055
# hack all around it, let's just trust "g++" to DTRT.
4056
_LT_AC_TAGVAR(predep_objects,$1)=
4057
_LT_AC_TAGVAR(postdep_objects,$1)=
4058
_LT_AC_TAGVAR(postdeps,$1)=
4062
case `$CC -V 2>&1 | sed 5q` in
4066
# The more standards-conforming stlport4 library is
4067
# incompatible with the Cstd library. Avoid specifying
4068
# it if it's in CXXFLAGS. Ignore libCrun as
4069
# -library=stlport4 depends on it.
4070
case " $CXX $CXXFLAGS " in
4071
*" -library=stlport4 "*)
4072
solaris_use_stlport4=yes
4075
if test "$solaris_use_stlport4" != yes; then
4076
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4083
case $cc_basename in
4085
# The more standards-conforming stlport4 library is
4086
# incompatible with the Cstd library. Avoid specifying
4087
# it if it's in CXXFLAGS. Ignore libCrun as
4088
# -library=stlport4 depends on it.
4089
case " $CXX $CXXFLAGS " in
4090
*" -library=stlport4 "*)
4091
solaris_use_stlport4=yes
4095
# Adding this requires a known-good setup of shared libraries for
4096
# Sun compiler versions before 5.6, else PIC objects from an old
4097
# archive will be linked into the output, leading to subtle bugs.
4098
if test "$solaris_use_stlport4" != yes; then
4099
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4106
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4107
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4109
])# AC_LIBTOOL_POSTDEP_PREDEP
4111
# AC_LIBTOOL_LANG_F77_CONFIG
4112
# --------------------------
4113
# Ensure that the configuration vars for the C compiler are
4114
# suitably defined. Those variables are subsequently used by
4115
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4116
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4117
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4118
[AC_REQUIRE([AC_PROG_F77])
4119
AC_LANG_PUSH(Fortran 77)
4121
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4122
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4123
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4124
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4125
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4126
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4127
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4128
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4129
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4130
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4131
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4132
_LT_AC_TAGVAR(module_cmds, $1)=
4133
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4134
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4135
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4136
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4137
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4138
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4140
# Source file extension for f77 test sources.
4143
# Object file extension for compiled f77 test sources.
4145
_LT_AC_TAGVAR(objext, $1)=$objext
4147
# Code to be used in simple compile tests
4148
lt_simple_compile_test_code="\
4154
# Code to be used in simple link tests
4155
lt_simple_link_test_code="\
4160
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4163
# save warnings/boilerplate of simple test code
4164
_LT_COMPILER_BOILERPLATE
4165
_LT_LINKER_BOILERPLATE
4167
# Allow CC to be a program name with arguments.
4171
_LT_AC_TAGVAR(compiler, $1)=$CC
4172
_LT_CC_BASENAME([$compiler])
4174
AC_MSG_CHECKING([if libtool supports shared libraries])
4175
AC_MSG_RESULT([$can_build_shared])
4177
AC_MSG_CHECKING([whether to build shared libraries])
4178
test "$can_build_shared" = "no" && enable_shared=no
4180
# On AIX, shared libraries and static libraries use the same namespace, and
4181
# are all built from PIC.
4184
test "$enable_shared" = yes && enable_static=no
4185
if test -n "$RANLIB"; then
4186
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4187
postinstall_cmds='$RANLIB $lib'
4191
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4192
test "$enable_shared" = yes && enable_static=no
4196
AC_MSG_RESULT([$enable_shared])
4198
AC_MSG_CHECKING([whether to build static libraries])
4199
# Make sure either enable_shared or enable_static is yes.
4200
test "$enable_shared" = yes || enable_static=yes
4201
AC_MSG_RESULT([$enable_static])
4203
_LT_AC_TAGVAR(GCC, $1)="$G77"
4204
_LT_AC_TAGVAR(LD, $1)="$LD"
4206
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4207
AC_LIBTOOL_PROG_CC_C_O($1)
4208
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4209
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4210
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4211
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4213
AC_LIBTOOL_CONFIG($1)
4217
])# AC_LIBTOOL_LANG_F77_CONFIG
4220
# AC_LIBTOOL_LANG_GCJ_CONFIG
4221
# --------------------------
4222
# Ensure that the configuration vars for the C compiler are
4223
# suitably defined. Those variables are subsequently used by
4224
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4225
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4226
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4229
# Source file extension for Java test sources.
4232
# Object file extension for compiled Java test sources.
4234
_LT_AC_TAGVAR(objext, $1)=$objext
4236
# Code to be used in simple compile tests
4237
lt_simple_compile_test_code="class foo {}"
4239
# Code to be used in simple link tests
4240
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4242
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4245
# save warnings/boilerplate of simple test code
4246
_LT_COMPILER_BOILERPLATE
4247
_LT_LINKER_BOILERPLATE
4249
# Allow CC to be a program name with arguments.
4253
_LT_AC_TAGVAR(compiler, $1)=$CC
4254
_LT_CC_BASENAME([$compiler])
4256
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4257
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4259
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4261
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4262
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4263
AC_LIBTOOL_PROG_CC_C_O($1)
4264
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4265
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4266
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4267
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4269
AC_LIBTOOL_CONFIG($1)
4273
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4276
# AC_LIBTOOL_LANG_RC_CONFIG
4277
# -------------------------
4278
# Ensure that the configuration vars for the Windows resource compiler are
4279
# suitably defined. Those variables are subsequently used by
4280
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4281
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4282
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4285
# Source file extension for RC test sources.
4288
# Object file extension for compiled RC test sources.
4290
_LT_AC_TAGVAR(objext, $1)=$objext
4292
# Code to be used in simple compile tests
4293
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4295
# Code to be used in simple link tests
4296
lt_simple_link_test_code="$lt_simple_compile_test_code"
4298
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4301
# save warnings/boilerplate of simple test code
4302
_LT_COMPILER_BOILERPLATE
4303
_LT_LINKER_BOILERPLATE
4305
# Allow CC to be a program name with arguments.
4309
_LT_AC_TAGVAR(compiler, $1)=$CC
4310
_LT_CC_BASENAME([$compiler])
4311
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4313
AC_LIBTOOL_CONFIG($1)
4317
])# AC_LIBTOOL_LANG_RC_CONFIG
4320
# AC_LIBTOOL_CONFIG([TAGNAME])
4321
# ----------------------------
4322
# If TAGNAME is not passed, then create an initial libtool script
4323
# with a default configuration from the untagged config vars. Otherwise
4324
# add code to config.status for appending the configuration named by
4325
# TAGNAME from the matching tagged config vars.
4326
AC_DEFUN([AC_LIBTOOL_CONFIG],
4327
[# The else clause should only fire when bootstrapping the
4328
# libtool distribution, otherwise you forgot to ship ltmain.sh
4329
# with your package, and you will get complaints that there are
4330
# no rules to generate ltmain.sh.
4331
if test -f "$ltmain"; then
4332
# See if we are running on zsh, and set the options which allow our commands through
4333
# without removal of \ escapes.
4334
if test -n "${ZSH_VERSION+set}" ; then
4335
setopt NO_GLOB_SUBST
4337
# Now quote all the things that may contain metacharacters while being
4338
# careful not to overquote the AC_SUBSTed values. We take copies of the
4339
# variables and quote the copies for generation of the libtool script.
4340
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4342
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4343
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4344
deplibs_check_method reload_flag reload_cmds need_locks \
4345
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4346
lt_cv_sys_global_symbol_to_c_name_address \
4347
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4348
old_postinstall_cmds old_postuninstall_cmds \
4349
_LT_AC_TAGVAR(compiler, $1) \
4350
_LT_AC_TAGVAR(CC, $1) \
4351
_LT_AC_TAGVAR(LD, $1) \
4352
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4353
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4354
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4355
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4356
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4357
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4358
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4359
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4360
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4361
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4362
_LT_AC_TAGVAR(predep_objects, $1) \
4363
_LT_AC_TAGVAR(postdep_objects, $1) \
4364
_LT_AC_TAGVAR(predeps, $1) \
4365
_LT_AC_TAGVAR(postdeps, $1) \
4366
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4367
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4368
_LT_AC_TAGVAR(archive_cmds, $1) \
4369
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4370
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4371
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4372
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4373
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4374
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4375
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4376
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4377
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4378
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4379
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4380
_LT_AC_TAGVAR(module_cmds, $1) \
4381
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4382
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4383
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4384
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4385
_LT_AC_TAGVAR(include_expsyms, $1); do
4388
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4389
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4390
_LT_AC_TAGVAR(archive_cmds, $1) | \
4391
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4392
_LT_AC_TAGVAR(module_cmds, $1) | \
4393
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4394
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4395
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4396
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4397
postinstall_cmds | postuninstall_cmds | \
4398
old_postinstall_cmds | old_postuninstall_cmds | \
4399
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4400
# Double-quote double-evaled strings.
4401
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4404
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4410
*'\[$]0 --fallback-echo"')
4411
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4416
[cfgfile="${ofile}T"
4417
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4419
AC_MSG_NOTICE([creating $ofile])],
4422
cat <<__EOF__ >> "$cfgfile"
4426
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4427
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4428
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4430
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4431
# Free Software Foundation, Inc.
4433
# This file is part of GNU Libtool:
4434
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4436
# This program is free software; you can redistribute it and/or modify
4437
# it under the terms of the GNU General Public License as published by
4438
# the Free Software Foundation; either version 2 of the License, or
4439
# (at your option) any later version.
4441
# This program is distributed in the hope that it will be useful, but
4442
# WITHOUT ANY WARRANTY; without even the implied warranty of
4443
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4444
# General Public License for more details.
4446
# You should have received a copy of the GNU General Public License
4447
# along with this program; if not, write to the Free Software
4448
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4450
# As a special exception to the GNU General Public License, if you
4451
# distribute this file as part of a program that contains a
4452
# configuration script generated by Autoconf, you may include it under
4453
# the same distribution terms that you use for the rest of that program.
4455
# A sed program that does not truncate output.
4458
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4459
Xsed="$SED -e 1s/^X//"
4461
# The HP-UX ksh and POSIX shell print the target directory to stdout
4463
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4465
# The names of the tagged configurations supported by this script.
4468
# ### BEGIN LIBTOOL CONFIG],
4469
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4471
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4473
# Shell to use when invoking shell scripts.
4476
# Whether or not to build shared libraries.
4477
build_libtool_libs=$enable_shared
4479
# Whether or not to build static libraries.
4480
build_old_libs=$enable_static
4482
# Whether or not to add -lc for building shared libraries.
4483
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4485
# Whether or not to disallow shared libs when runtime libs are static
4486
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4488
# Whether or not to optimize for fast installation.
4489
fast_install=$enable_fast_install
4492
host_alias=$host_alias
4497
build_alias=$build_alias
4501
# An echo program that does not interpret backslashes.
4506
AR_FLAGS=$lt_AR_FLAGS
4511
# LTCC compiler flags.
4512
LTCFLAGS=$lt_LTCFLAGS
4514
# A language-specific compiler.
4515
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4517
# Is the compiler the GNU C compiler?
4518
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4523
# The linker used to build libraries.
4524
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4526
# Whether we need hard or soft links.
4529
# A BSD-compatible nm program.
4532
# A symbol stripping program
4535
# Used to examine libraries when file_magic_cmd begins "file"
4536
MAGIC_CMD=$MAGIC_CMD
4538
# Used on cygwin: DLL creation program.
4541
# Used on cygwin: object dumper.
4544
# Used on cygwin: assembler.
4547
# The name of the directory that contains temporary libtool files.
4550
# How to create reloadable object files.
4551
reload_flag=$lt_reload_flag
4552
reload_cmds=$lt_reload_cmds
4554
# How to pass a linker flag through the compiler.
4555
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4557
# Object file suffix (normally "o").
4560
# Old archive suffix (normally "a").
4563
# Shared library suffix (normally ".so").
4564
shrext_cmds='$shrext_cmds'
4566
# Executable file suffix (normally "").
4569
# Additional compiler flags for building library objects.
4570
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4573
# What is the maximum length of a command?
4574
max_cmd_len=$lt_cv_sys_max_cmd_len
4576
# Does compiler simultaneously support -c and -o options?
4577
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4579
# Must we lock files when doing compilation?
4580
need_locks=$lt_need_locks
4582
# Do we need the lib prefix for modules?
4583
need_lib_prefix=$need_lib_prefix
4585
# Do we need a version for libraries?
4586
need_version=$need_version
4588
# Whether dlopen is supported.
4589
dlopen_support=$enable_dlopen
4591
# Whether dlopen of programs is supported.
4592
dlopen_self=$enable_dlopen_self
4594
# Whether dlopen of statically linked programs is supported.
4595
dlopen_self_static=$enable_dlopen_self_static
4597
# Compiler flag to prevent dynamic linking.
4598
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4600
# Compiler flag to turn off builtin functions.
4601
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4603
# Compiler flag to allow reflexive dlopens.
4604
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4606
# Compiler flag to generate shared objects directly from archives.
4607
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4609
# Compiler flag to generate thread-safe objects.
4610
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4612
# Library versioning type.
4613
version_type=$version_type
4615
# Format of library name prefix.
4616
libname_spec=$lt_libname_spec
4618
# List of archive names. First name is the real one, the rest are links.
4619
# The last name is the one that the linker finds with -lNAME.
4620
library_names_spec=$lt_library_names_spec
4622
# The coded name of the library, if different from the real name.
4623
soname_spec=$lt_soname_spec
4625
# Commands used to build and install an old-style archive.
4627
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4628
old_postinstall_cmds=$lt_old_postinstall_cmds
4629
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4631
# Create an old-style archive from a shared archive.
4632
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4634
# Create a temporary old-style archive to link instead of a shared archive.
4635
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4637
# Commands used to build and install a shared archive.
4638
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4639
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4640
postinstall_cmds=$lt_postinstall_cmds
4641
postuninstall_cmds=$lt_postuninstall_cmds
4643
# Commands used to build a loadable module (assumed same as above if empty)
4644
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4645
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4647
# Commands to strip libraries.
4648
old_striplib=$lt_old_striplib
4649
striplib=$lt_striplib
4651
# Dependencies to place before the objects being linked to create a
4653
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4655
# Dependencies to place after the objects being linked to create a
4657
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4659
# Dependencies to place before the objects being linked to create a
4661
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4663
# Dependencies to place after the objects being linked to create a
4665
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4667
# The directories searched by this compiler when creating a shared
4669
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4671
# The library search path used internally by the compiler when linking
4673
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4675
# Method to check whether dependent libraries are shared objects.
4676
deplibs_check_method=$lt_deplibs_check_method
4678
# Command to use when deplibs_check_method == file_magic.
4679
file_magic_cmd=$lt_file_magic_cmd
4681
# Flag that allows shared libraries with undefined symbols to be built.
4682
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4684
# Flag that forces no undefined symbols.
4685
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4687
# Commands used to finish a libtool library installation in a directory.
4688
finish_cmds=$lt_finish_cmds
4690
# Same as above, but a single script fragment to be evaled but not shown.
4691
finish_eval=$lt_finish_eval
4693
# Take the output of nm and produce a listing of raw symbols and C names.
4694
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4696
# Transform the output of nm in a proper C declaration
4697
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4699
# Transform the output of nm in a C name address pair
4700
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4702
# This is the shared library runtime path variable.
4703
runpath_var=$runpath_var
4705
# This is the shared library path variable.
4706
shlibpath_var=$shlibpath_var
4708
# Is shlibpath searched before the hard-coded library search path?
4709
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4711
# How to hardcode a shared library path into an executable.
4712
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4714
# Whether we should hardcode library paths into libraries.
4715
hardcode_into_libs=$hardcode_into_libs
4717
# Flag to hardcode \$libdir into a binary during linking.
4718
# This must work even if \$libdir does not exist.
4719
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4721
# If ld is used when linking, flag to hardcode \$libdir into
4722
# a binary during linking. This must work even if \$libdir does
4724
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4726
# Whether we need a single -rpath flag with a separated argument.
4727
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4729
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4731
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4733
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4735
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4737
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4738
# the resulting binary.
4739
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4741
# Set to yes if building a shared library automatically hardcodes DIR into the library
4742
# and all subsequent libraries and executables linked against it.
4743
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4745
# Variables whose values should be saved in libtool wrapper scripts and
4746
# restored at relink time.
4747
variables_saved_for_relink="$variables_saved_for_relink"
4749
# Whether libtool must link a program against all its dependency libraries.
4750
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4752
# Compile-time system search path for libraries
4753
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4755
# Run-time system search path for libraries
4756
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4758
# Fix the shell variable \$srcfile for the compiler.
4759
fix_srcfile_path=$lt_fix_srcfile_path
4761
# Set to yes if exported symbols are required.
4762
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4764
# The commands to list exported symbols.
4765
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4767
# The commands to extract the exported symbol list from a shared archive.
4768
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4770
# Symbols that should not be listed in the preloaded symbols.
4771
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4773
# Symbols that must always be exported.
4774
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4777
[# ### END LIBTOOL CONFIG],
4778
[# ### END LIBTOOL TAG CONFIG: $tagname])
4785
cat <<\EOF >> "$cfgfile"
4787
# AIX sometimes has problems with the GCC collect2 program. For some
4788
# reason, if we set the COLLECT_NAMES environment variable, the problems
4789
# vanish in a puff of smoke.
4790
if test "X${COLLECT_NAMES+set}" != Xset; then
4792
export COLLECT_NAMES
4798
# We use sed instead of cat because bash on DJGPP gets confused if
4799
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4800
# text mode, it properly converts lines to CR/LF. This bash problem
4801
# is reportedly fixed, but why not run on old versions too?
4802
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4804
mv -f "$cfgfile" "$ofile" || \
4805
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4809
# If there is no Makefile yet, we rely on a make rule to execute
4810
# `config.status --recheck' to rerun these tests and create the
4811
# libtool script then.
4812
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4813
if test -f "$ltmain_in"; then
4814
test -f Makefile && make "$ltmain"
4817
])# AC_LIBTOOL_CONFIG
4820
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4821
# -------------------------------------------
4822
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4823
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4825
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3332
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3333
dnl aclocal-1.4 backwards compatibility:
3334
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3337
# _LT_COMPILER_NO_RTTI([TAGNAME])
3338
# -------------------------------
3339
m4_defun([_LT_COMPILER_NO_RTTI],
3340
[m4_require([_LT_TAG_COMPILER])dnl
3342
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4827
3344
if test "$GCC" = yes; then
4828
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3345
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4830
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3347
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4831
3348
lt_cv_prog_compiler_rtti_exceptions,
4832
3349
[-fno-rtti -fno-exceptions], [],
4833
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3350
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4835
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4838
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4839
# ---------------------------------
4840
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4841
[AC_REQUIRE([AC_CANONICAL_HOST])
4842
AC_REQUIRE([LT_AC_PROG_SED])
4843
AC_REQUIRE([AC_PROG_NM])
4844
AC_REQUIRE([AC_OBJEXT])
3352
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3353
[Compiler flag to turn off builtin functions])
3354
])# _LT_COMPILER_NO_RTTI
3357
# _LT_CMD_GLOBAL_SYMBOLS
3358
# ----------------------
3359
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3360
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3361
AC_REQUIRE([AC_PROG_CC])dnl
3362
AC_REQUIRE([LT_PATH_NM])dnl
3363
AC_REQUIRE([LT_PATH_LD])dnl
3364
m4_require([_LT_DECL_SED])dnl
3365
m4_require([_LT_DECL_EGREP])dnl
3366
m4_require([_LT_TAG_COMPILER])dnl
4845
3368
# Check for command to grab the raw symbol name followed by C symbol from nm.
4846
3369
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4847
3370
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5443
4022
# +Z the default
5446
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4025
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5449
4028
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5450
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4029
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5453
4032
irix5* | irix6* | nonstopux*)
5454
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4033
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5455
4034
# PIC (with -KPIC) is the default.
5456
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5460
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5461
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4035
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5464
4038
linux* | k*bsd*-gnu)
5465
4039
case $cc_basename in
5467
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5468
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5469
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4040
# old Intel for x86_64 which still supported -KPIC.
4042
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4044
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4046
# icc used to be incompatible with GCC.
4047
# ICC 10 doesn't accept -KPIC any more.
4049
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4050
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4051
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4053
# Lahey Fortran 8.1.
4055
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4056
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4057
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5471
4059
pgcc* | pgf77* | pgf90* | pgf95*)
5472
4060
# Portland Group compilers (*not* the Pentium gcc compiler,
5473
4061
# which looks to be a dead project)
5474
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5475
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5476
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4062
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4063
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4064
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5479
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4067
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5480
4068
# All Alpha code is PIC.
5481
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4069
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4072
# IBM XL C 8.0/Fortran 10.1 on PPC
4073
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4074
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4075
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5484
case `$CC -V 2>&1 | sed 5q` in
4078
case `$CC -V 2>&1 | sed 5q` in
5487
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5488
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5489
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4081
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4082
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4083
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5492
4086
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5493
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5494
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4087
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4097
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4098
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4102
# QNX uses GNU C++, but need to define -shared option too, otherwise
4104
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5502
4107
osf3* | osf4* | osf5*)
5503
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4108
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5504
4109
# All OSF/1 code is PIC.
5505
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4110
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5509
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4114
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5513
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4118
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4119
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5515
4120
case $cc_basename in
5516
4121
f77* | f90* | f95*)
5517
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4122
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5519
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4124
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5524
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5525
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5526
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4129
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4130
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4131
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5529
4134
sysv4 | sysv4.2uw2* | sysv4.3*)
5530
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5531
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5532
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4135
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4136
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4137
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5536
4141
if test -d /usr/nec ;then
5537
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5538
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4142
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4143
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5542
4147
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5543
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5544
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5545
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4148
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4149
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4150
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5549
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5550
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4154
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4155
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5554
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5555
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4159
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4160
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5559
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4164
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5564
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4170
# For platforms which do not support PIC, -DPIC is meaningless:
4172
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4175
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4178
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4179
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4180
[How to pass a linker flag through the compiler])
5567
4183
# Check to make sure the PIC flag actually works.
5569
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5570
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5571
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5572
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5573
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4185
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4186
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4187
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4188
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4189
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5575
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4191
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5577
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5578
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4193
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4194
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5581
# For platforms which do not support PIC, -DPIC is meaningless:
5583
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5586
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4196
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4197
[Additional compiler flags for building library objects])
5591
4200
# Check to make sure the static flag actually works.
5593
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5594
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5595
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4202
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4203
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4204
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5596
4205
$lt_tmp_static_flag,
5598
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5602
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5603
# ------------------------------------
4207
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4208
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4209
[Compiler flag to prevent dynamic linking])
4210
])# _LT_COMPILER_PIC
4213
# _LT_LINKER_SHLIBS([TAGNAME])
4214
# ----------------------------
5604
4215
# See if the linker supports building shared libraries.
5605
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5606
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4216
m4_defun([_LT_LINKER_SHLIBS],
4217
[AC_REQUIRE([LT_PATH_LD])dnl
4218
AC_REQUIRE([LT_PATH_NM])dnl
4219
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4220
m4_require([_LT_DECL_EGREP])dnl
4221
m4_require([_LT_DECL_SED])dnl
4222
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4223
m4_require([_LT_TAG_COMPILER])dnl
5607
4224
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5609
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4225
m4_if([$1], [CXX], [
4226
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5610
4227
case $host_os in
5612
4229
# If we're using GNU nm, then we don't want the "-C" option.
5613
4230
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5614
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5615
_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'
4231
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4232
_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'
5617
_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'
4234
_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'
5621
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4238
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5624
_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'
4240
cygwin* | mingw* | cegcc*)
4241
_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'
5627
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4244
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5630
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4247
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5633
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5634
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5635
_LT_AC_TAGVAR(archive_cmds, $1)=
5636
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5637
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5638
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5639
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5640
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5641
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5642
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5643
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5644
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5645
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5646
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5647
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5648
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5649
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5650
_LT_AC_TAGVAR(module_cmds, $1)=
5651
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5652
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5653
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4250
_LT_TAGVAR(allow_undefined_flag, $1)=
4251
_LT_TAGVAR(always_export_symbols, $1)=no
4252
_LT_TAGVAR(archive_cmds, $1)=
4253
_LT_TAGVAR(archive_expsym_cmds, $1)=
4254
_LT_TAGVAR(compiler_needs_object, $1)=no
4255
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4256
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4257
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4258
_LT_TAGVAR(hardcode_automatic, $1)=no
4259
_LT_TAGVAR(hardcode_direct, $1)=no
4260
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4261
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4262
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4263
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4264
_LT_TAGVAR(hardcode_minus_L, $1)=no
4265
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4266
_LT_TAGVAR(inherit_rpath, $1)=no
4267
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4268
_LT_TAGVAR(module_cmds, $1)=
4269
_LT_TAGVAR(module_expsym_cmds, $1)=
4270
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4271
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4272
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4273
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5654
4274
# include_expsyms should be a list of space-separated symbols to be *always*
5655
4275
# included in the symbol list
5656
_LT_AC_TAGVAR(include_expsyms, $1)=
4276
_LT_TAGVAR(include_expsyms, $1)=
5657
4277
# exclude_expsyms can be an extended regexp of symbols to exclude
5658
4278
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5659
4279
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5660
4280
# as well as any symbol that contains `d'.
5661
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4281
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5662
4282
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5663
4283
# platforms (ab)use it in PIC code, but their linkers get confused if
5664
4284
# the symbol is explicitly referenced. Since portable code cannot
6258
4879
irix5* | irix6* | nonstopux*)
6259
4880
if test "$GCC" = yes; then
6260
_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'
4881
_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'
4882
# Try to use the -exported_symbol ld option, if it does not
4883
# work, assume that -exports_file does not work either and
4884
# implicitly export all symbols.
4885
save_LDFLAGS="$LDFLAGS"
4886
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4887
AC_LINK_IFELSE(int foo(void) {},
4888
_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'
4890
LDFLAGS="$save_LDFLAGS"
6262
_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'
6263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4892
_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'
4893
_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'
6265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6266
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6267
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4895
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4896
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4897
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4898
_LT_TAGVAR(inherit_rpath, $1)=yes
4899
_LT_TAGVAR(link_all_deplibs, $1)=yes
6271
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6272
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4903
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4904
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6274
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4906
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6276
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6277
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6278
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4908
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4909
_LT_TAGVAR(hardcode_direct, $1)=yes
4910
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6282
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6283
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6284
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6285
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6286
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4914
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4915
_LT_TAGVAR(hardcode_direct, $1)=yes
4916
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4917
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4918
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6290
4925
if test -f /usr/libexec/ld.so; then
6291
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6292
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6293
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6294
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6295
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6296
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6297
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4926
_LT_TAGVAR(hardcode_direct, $1)=yes
4927
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4928
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4929
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4930
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4931
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4932
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4933
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6299
4935
case $host_os in
6300
4936
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6301
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4937
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4938
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6305
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6306
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4941
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4942
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6311
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4947
_LT_TAGVAR(ld_shlibs, $1)=no
6316
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6317
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6318
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6319
_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'
6320
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4952
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4953
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4954
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4955
_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'
4956
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6324
4960
if test "$GCC" = yes; then
6325
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6326
_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'
4961
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4962
_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'
6328
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6329
_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'
4964
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4965
_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'
6331
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6332
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4967
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4968
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4969
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6335
4972
osf4* | osf5*) # as osf3* with the addition of -msym flag
6336
4973
if test "$GCC" = yes; then
6337
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6338
_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'
6339
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4974
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4975
_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'
4976
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6341
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6342
_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'
6343
_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~
6344
$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'
4978
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4979
_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'
4980
_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~
4981
$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'
6346
4983
# Both c and cxx compiler support -rpath directly
6347
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4984
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6349
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4986
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4987
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6353
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4991
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6354
4992
if test "$GCC" = yes; then
6356
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6357
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6358
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4994
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4995
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4996
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6361
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6362
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6363
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4998
case `$CC -V 2>&1` in
5001
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5002
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5003
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5007
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5008
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5009
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6365
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6366
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5013
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5014
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6367
5015
case $host_os in
6368
5016
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6370
5018
# The compiler driver will combine and reorder linker options,
6371
5019
# but understands `-z linker_flag'. GCC discards it without `$wl',
6372
5020
# but is careful enough not to reorder.
6373
# Supported since Solaris 2.6 (maybe 2.5.1?)
5021
# Supported since Solaris 2.6 (maybe 2.5.1?)
6374
5022
if test "$GCC" = yes; then
6375
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5023
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6377
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5025
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6381
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5029
_LT_TAGVAR(link_all_deplibs, $1)=yes
6385
5033
if test "x$host_vendor" = xsequent; then
6386
5034
# Use $CC to link under sequent, because it throws in some extra .o
6387
5035
# files that make .init and .fini sections work.
6388
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5036
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6390
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5038
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6392
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6393
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6394
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6395
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5040
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5041
_LT_TAGVAR(hardcode_direct, $1)=yes
5042
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5043
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6399
5047
case $host_vendor in
6401
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6402
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5049
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5050
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6405
5053
## LD is ld it makes a PLAMLIB
6406
5054
## CC just makes a GrossModule.
6407
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6408
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6409
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5055
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5056
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5057
_LT_TAGVAR(hardcode_direct, $1)=no
6412
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6413
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5060
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5061
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6416
5064
runpath_var='LD_RUN_PATH'
6417
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5065
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6421
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6422
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6423
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5069
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5070
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5071
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6427
5075
if test -d /usr/nec; then
6428
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6429
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5076
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5077
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6430
5078
runpath_var=LD_RUN_PATH
6431
5079
hardcode_runpath_var=yes
6432
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5080
_LT_TAGVAR(ld_shlibs, $1)=yes
6436
5084
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6437
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6438
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6439
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5085
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5086
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5087
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6440
5088
runpath_var='LD_RUN_PATH'
6442
5090
if test "$GCC" = yes; then
6443
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5091
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5092
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6446
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6447
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5094
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5095
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6516
5179
libobjs=conftest.$ac_objext
6518
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6519
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5181
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5182
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6520
5183
compiler_flags=-v
6521
5184
linker_flags=-v
6523
5186
output_objdir=.
6524
5187
libname=conftest
6525
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6526
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6527
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5188
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5189
_LT_TAGVAR(allow_undefined_flag, $1)=
5190
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6529
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5192
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6531
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5194
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6533
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5196
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6535
5198
cat conftest.err 1>&5
6538
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5201
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6544
])# AC_LIBTOOL_PROG_LD_SHLIBS
6547
# _LT_AC_FILE_LTDLL_C
6548
# -------------------
6549
# Be careful that the start marker always follows a newline.
6550
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6551
# /* ltdll.c starts here */
6552
# #define WIN32_LEAN_AND_MEAN
6553
# #include <windows.h>
6554
# #undef WIN32_LEAN_AND_MEAN
6555
# #include <stdio.h>
6557
# #ifndef __CYGWIN__
6558
# # ifdef __CYGWIN32__
6559
# # define __CYGWIN__ __CYGWIN32__
6563
# #ifdef __cplusplus
6566
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6567
# #ifdef __cplusplus
6572
# #include <cygwin/cygwin_dll.h>
6573
# DECLARE_CYGWIN_DLL( DllMain );
6575
# HINSTANCE __hDllInstance_base;
6578
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6580
# __hDllInstance_base = hInst;
6583
# /* ltdll.c ends here */
6584
])# _LT_AC_FILE_LTDLL_C
6587
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5208
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5209
[Whether or not to add -lc for building shared libraries])
5210
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5211
[enable_shared_with_static_runtimes], [0],
5212
[Whether or not to disallow shared libs when runtime libs are static])
5213
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5214
[Compiler flag to allow reflexive dlopens])
5215
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5216
[Compiler flag to generate shared objects directly from archives])
5217
_LT_TAGDECL([], [compiler_needs_object], [1],
5218
[Whether the compiler copes with passing no objects directly])
5219
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5220
[Create an old-style archive from a shared archive])
5221
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5222
[Create a temporary old-style archive to link instead of a shared archive])
5223
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5224
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5225
_LT_TAGDECL([], [module_cmds], [2],
5226
[Commands used to build a loadable module if different from building
5228
_LT_TAGDECL([], [module_expsym_cmds], [2])
5229
_LT_TAGDECL([], [with_gnu_ld], [1],
5230
[Whether we are building with GNU ld or not])
5231
_LT_TAGDECL([], [allow_undefined_flag], [1],
5232
[Flag that allows shared libraries with undefined symbols to be built])
5233
_LT_TAGDECL([], [no_undefined_flag], [1],
5234
[Flag that enforces no undefined symbols])
5235
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5236
[Flag to hardcode $libdir into a binary during linking.
5237
This must work even if $libdir does not exist])
5238
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5239
[[If ld is used when linking, flag to hardcode $libdir into a binary
5240
during linking. This must work even if $libdir does not exist]])
5241
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5242
[Whether we need a single "-rpath" flag with a separated argument])
5243
_LT_TAGDECL([], [hardcode_direct], [0],
5244
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5245
DIR into the resulting binary])
5246
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5247
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5248
DIR into the resulting binary and the resulting library dependency is
5249
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5250
library is relocated])
5251
_LT_TAGDECL([], [hardcode_minus_L], [0],
5252
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5253
into the resulting binary])
5254
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5255
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5256
into the resulting binary])
5257
_LT_TAGDECL([], [hardcode_automatic], [0],
5258
[Set to "yes" if building a shared library automatically hardcodes DIR
5259
into the library and all subsequent libraries and executables linked
5261
_LT_TAGDECL([], [inherit_rpath], [0],
5262
[Set to yes if linker adds runtime paths of dependent libraries
5263
to runtime path list])
5264
_LT_TAGDECL([], [link_all_deplibs], [0],
5265
[Whether libtool must link a program against all its dependency libraries])
5266
_LT_TAGDECL([], [fix_srcfile_path], [1],
5267
[Fix the shell variable $srcfile for the compiler])
5268
_LT_TAGDECL([], [always_export_symbols], [0],
5269
[Set to "yes" if exported symbols are required])
5270
_LT_TAGDECL([], [export_symbols_cmds], [2],
5271
[The commands to list exported symbols])
5272
_LT_TAGDECL([], [exclude_expsyms], [1],
5273
[Symbols that should not be listed in the preloaded symbols])
5274
_LT_TAGDECL([], [include_expsyms], [1],
5275
[Symbols that must always be exported])
5276
_LT_TAGDECL([], [prelink_cmds], [2],
5277
[Commands necessary for linking programs (against libraries) with templates])
5278
_LT_TAGDECL([], [file_list_spec], [1],
5279
[Specify filename containing input files])
5280
dnl FIXME: Not yet implemented
5281
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5282
dnl [Compiler flag to generate thread safe objects])
5283
])# _LT_LINKER_SHLIBS
5286
# _LT_LANG_C_CONFIG([TAG])
5287
# ------------------------
5288
# Ensure that the configuration variables for a C compiler are suitably
5289
# defined. These variables are subsequently used by _LT_CONFIG to write
5290
# the compiler configuration to `libtool'.
5291
m4_defun([_LT_LANG_C_CONFIG],
5292
[m4_require([_LT_DECL_EGREP])dnl
5296
# Source file extension for C test sources.
5299
# Object file extension for compiled C test sources.
5301
_LT_TAGVAR(objext, $1)=$objext
5303
# Code to be used in simple compile tests
5304
lt_simple_compile_test_code="int some_variable = 0;"
5306
# Code to be used in simple link tests
5307
lt_simple_link_test_code='int main(){return(0);}'
5310
# Save the default compiler, since it gets overwritten when the other
5311
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5312
compiler_DEFAULT=$CC
5314
# save warnings/boilerplate of simple test code
5315
_LT_COMPILER_BOILERPLATE
5316
_LT_LINKER_BOILERPLATE
5318
if test -n "$compiler"; then
5319
_LT_COMPILER_NO_RTTI($1)
5320
_LT_COMPILER_PIC($1)
5321
_LT_COMPILER_C_O($1)
5322
_LT_COMPILER_FILE_LOCKS($1)
5323
_LT_LINKER_SHLIBS($1)
5324
_LT_SYS_DYNAMIC_LINKER($1)
5325
_LT_LINKER_HARDCODE_LIBPATH($1)
5329
# Report which library types will actually be built
5330
AC_MSG_CHECKING([if libtool supports shared libraries])
5331
AC_MSG_RESULT([$can_build_shared])
5333
AC_MSG_CHECKING([whether to build shared libraries])
5334
test "$can_build_shared" = "no" && enable_shared=no
5336
# On AIX, shared libraries and static libraries use the same namespace, and
5337
# are all built from PIC.
5340
test "$enable_shared" = yes && enable_static=no
5341
if test -n "$RANLIB"; then
5342
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5343
postinstall_cmds='$RANLIB $lib'
5348
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5349
test "$enable_shared" = yes && enable_static=no
5353
AC_MSG_RESULT([$enable_shared])
5355
AC_MSG_CHECKING([whether to build static libraries])
5356
# Make sure either enable_shared or enable_static is yes.
5357
test "$enable_shared" = yes || enable_static=yes
5358
AC_MSG_RESULT([$enable_static])
5364
])# _LT_LANG_C_CONFIG
5369
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5370
# compiler, we have our own version here.
5371
m4_defun([_LT_PROG_CXX],
5373
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5375
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5376
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5377
(test "X$CXX" != "Xg++"))) ; then
5380
_lt_caught_CXX_error=yes
5382
popdef([AC_MSG_ERROR])
5385
dnl aclocal-1.4 backwards compatibility:
5386
dnl AC_DEFUN([_LT_PROG_CXX], [])
5389
# _LT_LANG_CXX_CONFIG([TAG])
5390
# --------------------------
5391
# Ensure that the configuration variables for a C++ compiler are suitably
5392
# defined. These variables are subsequently used by _LT_CONFIG to write
5393
# the compiler configuration to `libtool'.
5394
m4_defun([_LT_LANG_CXX_CONFIG],
5395
[AC_REQUIRE([_LT_PROG_CXX])dnl
5396
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5397
m4_require([_LT_DECL_EGREP])dnl
5400
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5401
_LT_TAGVAR(allow_undefined_flag, $1)=
5402
_LT_TAGVAR(always_export_symbols, $1)=no
5403
_LT_TAGVAR(archive_expsym_cmds, $1)=
5404
_LT_TAGVAR(compiler_needs_object, $1)=no
5405
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5406
_LT_TAGVAR(hardcode_direct, $1)=no
5407
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5408
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5409
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5410
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5411
_LT_TAGVAR(hardcode_minus_L, $1)=no
5412
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5413
_LT_TAGVAR(hardcode_automatic, $1)=no
5414
_LT_TAGVAR(inherit_rpath, $1)=no
5415
_LT_TAGVAR(module_cmds, $1)=
5416
_LT_TAGVAR(module_expsym_cmds, $1)=
5417
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5418
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5419
_LT_TAGVAR(no_undefined_flag, $1)=
5420
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5421
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5423
# Source file extension for C++ test sources.
5426
# Object file extension for compiled C++ test sources.
5428
_LT_TAGVAR(objext, $1)=$objext
5430
# No sense in running all these tests if we already determined that
5431
# the CXX compiler isn't working. Some variables (like enable_shared)
5432
# are currently assumed to apply to all compilers on this platform,
5433
# and will be corrupted by setting them based on a non-working compiler.
5434
if test "$_lt_caught_CXX_error" != yes; then
5435
# Code to be used in simple compile tests
5436
lt_simple_compile_test_code="int some_variable = 0;"
5438
# Code to be used in simple link tests
5439
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5441
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5444
# save warnings/boilerplate of simple test code
5445
_LT_COMPILER_BOILERPLATE
5446
_LT_LINKER_BOILERPLATE
5448
# Allow CC to be a program name with arguments.
5453
lt_save_with_gnu_ld=$with_gnu_ld
5454
lt_save_path_LD=$lt_cv_path_LD
5455
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5456
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5458
$as_unset lt_cv_prog_gnu_ld
5460
if test -n "${lt_cv_path_LDCXX+set}"; then
5461
lt_cv_path_LD=$lt_cv_path_LDCXX
5463
$as_unset lt_cv_path_LD
5465
test -z "${LDCXX+set}" || LD=$LDCXX
5468
_LT_TAGVAR(compiler, $1)=$CC
5469
_LT_CC_BASENAME([$compiler])
5471
if test -n "$compiler"; then
5472
# We don't want -fno-exception when compiling C++ code, so set the
5473
# no_builtin_flag separately
5474
if test "$GXX" = yes; then
5475
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5477
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5480
if test "$GXX" = yes; then
5481
# Set up default GNU C++ configuration
5485
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5486
# archiving commands below assume that GNU ld is being used.
5487
if test "$with_gnu_ld" = yes; then
5488
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5489
_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'
5491
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5492
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5494
# If archive_cmds runs LD, not CC, wlarc should be empty
5495
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5496
# investigate it a little bit more. (MM)
5499
# ancient GNU ld didn't support --whole-archive et. al.
5500
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5501
$GREP 'no-whole-archive' > /dev/null; then
5502
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5504
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5510
# A generic and very simple default shared library creation
5511
# command for GNU C++ for the case where it uses the native
5512
# linker, instead of GNU ld. If possible, this setting should
5513
# overridden to take advantage of the native linker features on
5514
# the platform it is being used on.
5515
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5518
# Commands to make compiler produce verbose output that lists
5519
# what "hidden" libraries, object files and flags are used when
5520
# linking a shared library.
5521
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5529
# PORTME: fill in a description of your system's C++ link characteristics
5530
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5531
_LT_TAGVAR(ld_shlibs, $1)=yes
5534
# FIXME: insert proper C++ library support
5535
_LT_TAGVAR(ld_shlibs, $1)=no
5538
if test "$host_cpu" = ia64; then
5539
# On IA64, the linker does run time linking by default, so we don't
5540
# have to do anything special.
5541
aix_use_runtimelinking=no
5542
exp_sym_flag='-Bexport'
5545
aix_use_runtimelinking=no
5547
# Test if we are trying to use run time linking or normal
5548
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5549
# need to do runtime linking.
5550
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5551
for ld_flag in $LDFLAGS; do
5554
aix_use_runtimelinking=yes
5562
exp_sym_flag='-bexport'
5563
no_entry_flag='-bnoentry'
5566
# When large executables or shared objects are built, AIX ld can
5567
# have problems creating the table of contents. If linking a library
5568
# or program results in "error TOC overflow" add -mminimal-toc to
5569
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5570
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5572
_LT_TAGVAR(archive_cmds, $1)=''
5573
_LT_TAGVAR(hardcode_direct, $1)=yes
5574
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5575
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5576
_LT_TAGVAR(link_all_deplibs, $1)=yes
5577
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5579
if test "$GXX" = yes; then
5580
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5581
# We only want to do this on AIX 4.2 and lower, the check
5582
# below for broken collect2 doesn't work under 4.3+
5583
collect2name=`${CC} -print-prog-name=collect2`
5584
if test -f "$collect2name" &&
5585
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5587
# We have reworked collect2
5590
# We have old collect2
5591
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5592
# It fails to find uninstalled libraries when the uninstalled
5593
# path is not listed in the libpath. Setting hardcode_minus_L
5594
# to unsupported forces relinking
5595
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5596
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5597
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5600
shared_flag='-shared'
5601
if test "$aix_use_runtimelinking" = yes; then
5602
shared_flag="$shared_flag "'${wl}-G'
5606
if test "$host_cpu" = ia64; then
5607
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5608
# chokes on -Wl,-G. The following line is correct:
5611
if test "$aix_use_runtimelinking" = yes; then
5612
shared_flag='${wl}-G'
5614
shared_flag='${wl}-bM:SRE'
5619
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5620
# It seems that -bexpall does not export symbols beginning with
5621
# underscore (_), so it is better to generate a list of symbols to
5623
_LT_TAGVAR(always_export_symbols, $1)=yes
5624
if test "$aix_use_runtimelinking" = yes; then
5625
# Warning - without using the other runtime loading flags (-brtl),
5626
# -berok will link without error, but may produce a broken library.
5627
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5628
# Determine the default libpath from the value encoded in an empty
5630
_LT_SYS_MODULE_PATH_AIX
5631
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5633
_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"
5635
if test "$host_cpu" = ia64; then
5636
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5637
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5638
_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"
5640
# Determine the default libpath from the value encoded in an
5642
_LT_SYS_MODULE_PATH_AIX
5643
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5644
# Warning - without using the other run time loading flags,
5645
# -berok will link without error, but may produce a broken library.
5646
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5647
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5648
# Exported symbols can be pulled into shared objects from archives
5649
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5650
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5651
# This is similar to how AIX traditionally builds its shared
5653
_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'
5659
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5660
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5661
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5662
# support --undefined. This deserves some investigation. FIXME
5663
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5665
_LT_TAGVAR(ld_shlibs, $1)=no
5670
case $cc_basename in
5672
# FIXME: insert proper C++ library support
5673
_LT_TAGVAR(ld_shlibs, $1)=no
5678
cygwin* | mingw* | pw32* | cegcc*)
5679
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5680
# as there is no search path for DLLs.
5681
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5682
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5683
_LT_TAGVAR(always_export_symbols, $1)=no
5684
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5686
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5687
_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'
5688
# If the export-symbols file already is a .def file (1st line
5689
# is EXPORTS), use it as is; otherwise, prepend...
5690
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5691
cp $export_symbols $output_objdir/$soname.def;
5693
echo EXPORTS > $output_objdir/$soname.def;
5694
cat $export_symbols >> $output_objdir/$soname.def;
5696
$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'
5698
_LT_TAGVAR(ld_shlibs, $1)=no
5701
darwin* | rhapsody*)
5702
_LT_DARWIN_LINKER_FEATURES($1)
5706
case $cc_basename in
5708
# FIXME: insert proper C++ library support
5709
_LT_TAGVAR(ld_shlibs, $1)=no
5712
# Green Hills C++ Compiler
5713
# FIXME: insert proper C++ library support
5714
_LT_TAGVAR(ld_shlibs, $1)=no
5717
# FIXME: insert proper C++ library support
5718
_LT_TAGVAR(ld_shlibs, $1)=no
5724
# C++ shared libraries reported to be fairly broken before
5726
_LT_TAGVAR(ld_shlibs, $1)=no
5730
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5733
freebsd* | dragonfly*)
5734
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5736
_LT_TAGVAR(ld_shlibs, $1)=yes
5743
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5744
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5745
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5746
_LT_TAGVAR(hardcode_direct, $1)=yes
5747
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5748
# but as the default
5749
# location of the library.
5751
case $cc_basename in
5753
# FIXME: insert proper C++ library support
5754
_LT_TAGVAR(ld_shlibs, $1)=no
5757
_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'
5758
# Commands to make compiler produce verbose output that lists
5759
# what "hidden" libraries, object files and flags are used when
5760
# linking a shared library.
5762
# There doesn't appear to be a way to prevent this compiler from
5763
# explicitly linking system object files so we need to strip them
5764
# from the output so that they don't get included in the library
5766
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'
5769
if test "$GXX" = yes; then
5770
_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'
5772
# FIXME: insert proper C++ library support
5773
_LT_TAGVAR(ld_shlibs, $1)=no
5780
if test $with_gnu_ld = no; then
5781
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5782
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5788
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5794
_LT_TAGVAR(hardcode_direct, $1)=no
5795
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5798
_LT_TAGVAR(hardcode_direct, $1)=yes
5799
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5800
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5801
# but as the default
5802
# location of the library.
5806
case $cc_basename in
5808
# FIXME: insert proper C++ library support
5809
_LT_TAGVAR(ld_shlibs, $1)=no
5814
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5817
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5820
_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'
5823
# Commands to make compiler produce verbose output that lists
5824
# what "hidden" libraries, object files and flags are used when
5825
# linking a shared library.
5827
# There doesn't appear to be a way to prevent this compiler from
5828
# explicitly linking system object files so we need to strip them
5829
# from the output so that they don't get included in the library
5831
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'
5834
if test "$GXX" = yes; then
5835
if test $with_gnu_ld = no; then
5838
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5841
_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'
5844
_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'
5849
# FIXME: insert proper C++ library support
5850
_LT_TAGVAR(ld_shlibs, $1)=no
5857
_LT_TAGVAR(hardcode_direct, $1)=no
5858
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5859
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5860
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5861
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5862
# Instead, shared libraries are loaded at an image base (0x10000000 by
5863
# default) and relocated if they conflict, which is a slow very memory
5864
# consuming and fragmenting process. To avoid this, we pick a random,
5865
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5866
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5867
_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'
5868
_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'
5871
case $cc_basename in
5874
_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'
5876
# Archives containing C++ object files must be created using
5877
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5878
# necessary to make sure instantiated templates are included
5880
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5883
if test "$GXX" = yes; then
5884
if test "$with_gnu_ld" = no; then
5885
_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'
5887
_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'
5890
_LT_TAGVAR(link_all_deplibs, $1)=yes
5893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5894
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5895
_LT_TAGVAR(inherit_rpath, $1)=yes
5898
linux* | k*bsd*-gnu)
5899
case $cc_basename in
5901
# Kuck and Associates, Inc. (KAI) C++ Compiler
5903
# KCC will only create a shared library if the output file
5904
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5905
# to its proper name (with version) after linking.
5906
_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'
5907
_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'
5908
# Commands to make compiler produce verbose output that lists
5909
# what "hidden" libraries, object files and flags are used when
5910
# linking a shared library.
5912
# There doesn't appear to be a way to prevent this compiler from
5913
# explicitly linking system object files so we need to strip them
5914
# from the output so that they don't get included in the library
5916
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'
5918
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5919
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5921
# Archives containing C++ object files must be created using
5922
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5923
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5928
# version 8.0 and above of icpc choke on multiply defined symbols
5929
# if we add $predep_objects and $postdep_objects, however 7.1 and
5930
# earlier do not add the objects themselves.
5931
case `$CC -V 2>&1` in
5933
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5934
_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'
5936
*) # Version 8.0 or newer
5939
ia64*) tmp_idyn=' -i_dynamic';;
5941
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942
_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'
5945
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5946
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5947
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5948
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5951
# Portland Group C++ compiler
5953
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5954
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5956
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5957
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5958
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5960
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5961
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5963
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5965
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5966
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5967
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5969
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5970
$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'
5972
*) # Version 6 will use weak symbols
5973
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5974
_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'
5978
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5979
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5980
_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'
5984
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5985
_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'
5987
runpath_var=LD_RUN_PATH
5988
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5989
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5991
# Commands to make compiler produce verbose output that lists
5992
# what "hidden" libraries, object files and flags are used when
5993
# linking a shared library.
5995
# There doesn't appear to be a way to prevent this compiler from
5996
# explicitly linking system object files so we need to strip them
5997
# from the output so that they don't get included in the library
5999
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'
6002
# IBM XL 8.0 on PPC, with GNU ld
6003
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6004
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6005
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6006
if test "x$supports_anon_versioning" = xyes; then
6007
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6008
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6009
echo "local: *; };" >> $output_objdir/$libname.ver~
6010
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6014
case `$CC -V 2>&1 | sed 5q` in
6017
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6018
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6019
_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'
6020
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6021
_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'
6022
_LT_TAGVAR(compiler_needs_object, $1)=yes
6024
# Not sure whether something based on
6025
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6027
output_verbose_link_cmd='echo'
6029
# Archives containing C++ object files must be created using
6030
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6031
# necessary to make sure instantiated templates are included
6033
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6041
# FIXME: insert proper C++ library support
6042
_LT_TAGVAR(ld_shlibs, $1)=no
6046
# FIXME: insert proper C++ library support
6047
_LT_TAGVAR(ld_shlibs, $1)=no
6051
case $cc_basename in
6053
# FIXME: insert proper C++ library support
6054
_LT_TAGVAR(ld_shlibs, $1)=no
6057
# FIXME: insert proper C++ library support
6058
_LT_TAGVAR(ld_shlibs, $1)=no
6064
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6065
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6067
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6068
_LT_TAGVAR(hardcode_direct, $1)=yes
6069
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6071
# Workaround some broken pre-1.5 toolchains
6072
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6076
_LT_TAGVAR(ld_shlibs, $1)=yes
6080
# C++ shared libraries are fairly broken
6081
_LT_TAGVAR(ld_shlibs, $1)=no
6085
if test -f /usr/libexec/ld.so; then
6086
_LT_TAGVAR(hardcode_direct, $1)=yes
6087
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6088
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6089
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6090
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6091
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6092
_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'
6093
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6094
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6096
output_verbose_link_cmd=echo
6098
_LT_TAGVAR(ld_shlibs, $1)=no
6102
osf3* | osf4* | osf5*)
6103
case $cc_basename in
6105
# Kuck and Associates, Inc. (KAI) C++ Compiler
6107
# KCC will only create a shared library if the output file
6108
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6109
# to its proper name (with version) after linking.
6110
_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'
6112
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6113
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6115
# Archives containing C++ object files must be created using
6116
# the KAI C++ compiler.
6118
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6119
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6123
# Rational C++ 2.4.1
6124
# FIXME: insert proper C++ library support
6125
_LT_TAGVAR(ld_shlibs, $1)=no
6130
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6131
_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'
6132
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6135
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6136
_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'
6137
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6138
echo "-hidden">> $lib.exp~
6139
$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~
6141
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6145
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6147
# Commands to make compiler produce verbose output that lists
6148
# what "hidden" libraries, object files and flags are used when
6149
# linking a shared library.
6151
# There doesn't appear to be a way to prevent this compiler from
6152
# explicitly linking system object files so we need to strip them
6153
# from the output so that they don't get included in the library
6155
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'
6158
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6159
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6162
_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'
6165
_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'
6169
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6170
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6172
# Commands to make compiler produce verbose output that lists
6173
# what "hidden" libraries, object files and flags are used when
6174
# linking a shared library.
6175
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6178
# FIXME: insert proper C++ library support
6179
_LT_TAGVAR(ld_shlibs, $1)=no
6186
# FIXME: insert proper C++ library support
6187
_LT_TAGVAR(ld_shlibs, $1)=no
6191
case $cc_basename in
6194
# FIXME: insert proper C++ library support
6195
_LT_TAGVAR(ld_shlibs, $1)=no
6199
# FIXME: insert proper C++ library support
6200
_LT_TAGVAR(ld_shlibs, $1)=no
6203
# FIXME: insert proper C++ library support
6204
_LT_TAGVAR(ld_shlibs, $1)=no
6210
case $cc_basename in
6212
# Sun C++ 4.2, 5.x and Centerline C++
6213
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6214
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6215
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6216
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6217
$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'
6219
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6220
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6222
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6224
# The compiler driver will combine and reorder linker options,
6225
# but understands `-z linker_flag'.
6226
# Supported since Solaris 2.6 (maybe 2.5.1?)
6227
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6230
_LT_TAGVAR(link_all_deplibs, $1)=yes
6232
output_verbose_link_cmd='echo'
6234
# Archives containing C++ object files must be created using
6235
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6236
# necessary to make sure instantiated templates are included
6238
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6241
# Green Hills C++ Compiler
6242
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6244
# The C++ compiler must be used to create the archive.
6245
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6248
# GNU C++ compiler with Solaris linker
6249
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6250
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6251
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6252
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6253
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6254
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6256
# Commands to make compiler produce verbose output that lists
6257
# what "hidden" libraries, object files and flags are used when
6258
# linking a shared library.
6259
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6261
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6263
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6264
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6265
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6267
# Commands to make compiler produce verbose output that lists
6268
# what "hidden" libraries, object files and flags are used when
6269
# linking a shared library.
6270
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6273
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6275
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6277
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6285
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6286
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6287
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6288
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6289
runpath_var='LD_RUN_PATH'
6291
case $cc_basename in
6293
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6294
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6297
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6298
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6303
sysv5* | sco3.2v5* | sco5v6*)
6304
# Note: We can NOT use -z defs as we might desire, because we do not
6305
# link with -lc, and that would cause any symbols used from libc to
6306
# always be unresolved, which means just about no library would
6307
# ever link correctly. If we're not using GNU ld we use -z text
6308
# though, which does catch some bad symbols but isn't as heavy-handed
6310
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6311
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6312
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6313
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6314
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6315
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6316
_LT_TAGVAR(link_all_deplibs, $1)=yes
6317
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6318
runpath_var='LD_RUN_PATH'
6320
case $cc_basename in
6322
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6323
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6326
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6327
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6333
case $cc_basename in
6335
# NonStop-UX NCC 3.20
6336
# FIXME: insert proper C++ library support
6337
_LT_TAGVAR(ld_shlibs, $1)=no
6340
# FIXME: insert proper C++ library support
6341
_LT_TAGVAR(ld_shlibs, $1)=no
6347
# FIXME: insert proper C++ library support
6348
_LT_TAGVAR(ld_shlibs, $1)=no
6352
# FIXME: insert proper C++ library support
6353
_LT_TAGVAR(ld_shlibs, $1)=no
6357
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6358
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6360
_LT_TAGVAR(GCC, $1)="$GXX"
6361
_LT_TAGVAR(LD, $1)="$LD"
6364
## There is no encapsulation within the following macros, do not change
6365
## the running order or otherwise move them around unless you know exactly
6366
## what you are doing...
6367
_LT_SYS_HIDDEN_LIBDEPS($1)
6368
_LT_COMPILER_PIC($1)
6369
_LT_COMPILER_C_O($1)
6370
_LT_COMPILER_FILE_LOCKS($1)
6371
_LT_LINKER_SHLIBS($1)
6372
_LT_SYS_DYNAMIC_LINKER($1)
6373
_LT_LINKER_HARDCODE_LIBPATH($1)
6376
fi # test -n "$compiler"
6382
with_gnu_ld=$lt_save_with_gnu_ld
6383
lt_cv_path_LDCXX=$lt_cv_path_LD
6384
lt_cv_path_LD=$lt_save_path_LD
6385
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6386
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6387
fi # test "$_lt_caught_CXX_error" != yes
6390
])# _LT_LANG_CXX_CONFIG
6393
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6588
6394
# ---------------------------------
6589
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6593
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6594
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6595
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6596
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6597
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6598
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6599
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6601
# This is just to silence aclocal about the macro not being used
6602
ifelse([AC_DISABLE_FAST_INSTALL])
6604
AC_DEFUN([LT_AC_PROG_GCJ],
6605
[AC_CHECK_TOOL(GCJ, gcj, no)
6606
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6610
AC_DEFUN([LT_AC_PROG_RC],
6611
[AC_CHECK_TOOL(RC, windres, no)
6615
# Cheap backport of AS_EXECUTABLE_P and required macros
6616
# from Autoconf 2.59; we should not use $as_executable_p directly.
6620
m4_ifndef([_AS_TEST_PREPARE],
6621
[m4_defun([_AS_TEST_PREPARE],
6622
[if test -x / >/dev/null 2>&1; then
6623
as_executable_p='test -x'
6395
# Figure out "hidden" library dependencies from verbose
6396
# compiler output when linking a shared library.
6397
# Parse the compiler output and extract the necessary
6398
# objects, libraries and library flags.
6399
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6400
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6401
# Dependencies to place before and after the object being linked:
6402
_LT_TAGVAR(predep_objects, $1)=
6403
_LT_TAGVAR(postdep_objects, $1)=
6404
_LT_TAGVAR(predeps, $1)=
6405
_LT_TAGVAR(postdeps, $1)=
6406
_LT_TAGVAR(compiler_lib_search_path, $1)=
6408
dnl we can't use the lt_simple_compile_test_code here,
6409
dnl because it contains code intended for an executable,
6410
dnl not a library. It's possible we should let each
6411
dnl tag define a new lt_????_link_test_code variable,
6412
dnl but it's only used here...
6413
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6415
void foo (void) { a = 0; }
6417
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6421
Foo (void) { a = 0; }
6426
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6434
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6442
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6445
public void bar (void) {
6451
dnl Parse the compiler output and extract the necessary
6452
dnl objects, libraries and library flags.
6453
if AC_TRY_EVAL(ac_compile); then
6454
# Parse the compiler output and extract the necessary
6455
# objects, libraries and library flags.
6457
# Sentinel used to keep track of whether or not we are before
6458
# the conftest object file.
6459
pre_test_object_deps_done=no
6461
for p in `eval "$output_verbose_link_cmd"`; do
6465
# Some compilers place space between "-{L,R}" and the path.
6467
if test $p = "-L" ||
6468
test $p = "-R"; then
6475
if test "$pre_test_object_deps_done" = no; then
6478
# Internal compiler library paths should come after those
6479
# provided the user. The postdeps already come after the
6480
# user supplied libs so there is no need to process them.
6481
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6482
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6484
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6487
# The "-l" case would never come before the object being
6488
# linked, so don't bother handling this case.
6491
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6492
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6494
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6500
# This assumes that the test object file only shows up
6501
# once in the compiler output.
6502
if test "$p" = "conftest.$objext"; then
6503
pre_test_object_deps_done=yes
6507
if test "$pre_test_object_deps_done" = no; then
6508
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6509
_LT_TAGVAR(predep_objects, $1)="$p"
6511
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6514
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6515
_LT_TAGVAR(postdep_objects, $1)="$p"
6517
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6522
*) ;; # Ignore the rest.
6625
as_executable_p='test -f'
6627
])])# _AS_TEST_PREPARE
6631
# Check whether a file is executable.
6632
m4_ifndef([AS_EXECUTABLE_P],
6633
[m4_defun([AS_EXECUTABLE_P],
6634
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6635
$as_executable_p $1[]dnl
6636
])])# AS_EXECUTABLE_P
6530
echo "libtool.m4: error: problem compiling $1 test program"
6533
$RM -f confest.$objext
6535
# PORTME: override above test on systems where it is broken
6539
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6540
# hack all around it, let's just trust "g++" to DTRT.
6541
_LT_TAGVAR(predep_objects,$1)=
6542
_LT_TAGVAR(postdep_objects,$1)=
6543
_LT_TAGVAR(postdeps,$1)=
6547
case `$CC -V 2>&1 | sed 5q` in
6551
# The more standards-conforming stlport4 library is
6552
# incompatible with the Cstd library. Avoid specifying
6553
# it if it's in CXXFLAGS. Ignore libCrun as
6554
# -library=stlport4 depends on it.
6555
case " $CXX $CXXFLAGS " in
6556
*" -library=stlport4 "*)
6557
solaris_use_stlport4=yes
6561
if test "$solaris_use_stlport4" != yes; then
6562
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6569
case $cc_basename in
6571
# The more standards-conforming stlport4 library is
6572
# incompatible with the Cstd library. Avoid specifying
6573
# it if it's in CXXFLAGS. Ignore libCrun as
6574
# -library=stlport4 depends on it.
6575
case " $CXX $CXXFLAGS " in
6576
*" -library=stlport4 "*)
6577
solaris_use_stlport4=yes
6581
# Adding this requires a known-good setup of shared libraries for
6582
# Sun compiler versions before 5.6, else PIC objects from an old
6583
# archive will be linked into the output, leading to subtle bugs.
6584
if test "$solaris_use_stlport4" != yes; then
6585
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6593
case " $_LT_TAGVAR(postdeps, $1) " in
6594
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6596
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
6597
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6598
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6600
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6601
[The directories searched by this compiler when creating a shared library])
6602
_LT_TAGDECL([], [predep_objects], [1],
6603
[Dependencies to place before and after the objects being linked to
6604
create a shared library])
6605
_LT_TAGDECL([], [postdep_objects], [1])
6606
_LT_TAGDECL([], [predeps], [1])
6607
_LT_TAGDECL([], [postdeps], [1])
6608
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6609
[The library search path used internally by the compiler when linking
6611
])# _LT_SYS_HIDDEN_LIBDEPS
6616
# Since AC_PROG_F77 is broken, in that it returns the empty string
6617
# if there is no fortran compiler, we have our own version here.
6618
m4_defun([_LT_PROG_F77],
6620
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6622
if test -z "$F77" || test "X$F77" = "Xno"; then
6625
popdef([AC_MSG_ERROR])
6628
dnl aclocal-1.4 backwards compatibility:
6629
dnl AC_DEFUN([_LT_PROG_F77], [])
6632
# _LT_LANG_F77_CONFIG([TAG])
6633
# --------------------------
6634
# Ensure that the configuration variables for a Fortran 77 compiler are
6635
# suitably defined. These variables are subsequently used by _LT_CONFIG
6636
# to write the compiler configuration to `libtool'.
6637
m4_defun([_LT_LANG_F77_CONFIG],
6638
[AC_REQUIRE([_LT_PROG_F77])dnl
6639
AC_LANG_PUSH(Fortran 77)
6641
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6642
_LT_TAGVAR(allow_undefined_flag, $1)=
6643
_LT_TAGVAR(always_export_symbols, $1)=no
6644
_LT_TAGVAR(archive_expsym_cmds, $1)=
6645
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6646
_LT_TAGVAR(hardcode_direct, $1)=no
6647
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6648
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6649
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6650
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6651
_LT_TAGVAR(hardcode_minus_L, $1)=no
6652
_LT_TAGVAR(hardcode_automatic, $1)=no
6653
_LT_TAGVAR(inherit_rpath, $1)=no
6654
_LT_TAGVAR(module_cmds, $1)=
6655
_LT_TAGVAR(module_expsym_cmds, $1)=
6656
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6657
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6658
_LT_TAGVAR(no_undefined_flag, $1)=
6659
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6660
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6662
# Source file extension for f77 test sources.
6665
# Object file extension for compiled f77 test sources.
6667
_LT_TAGVAR(objext, $1)=$objext
6669
# No sense in running all these tests if we already determined that
6670
# the F77 compiler isn't working. Some variables (like enable_shared)
6671
# are currently assumed to apply to all compilers on this platform,
6672
# and will be corrupted by setting them based on a non-working compiler.
6673
if test "$_lt_disable_F77" != yes; then
6674
# Code to be used in simple compile tests
6675
lt_simple_compile_test_code="\
6681
# Code to be used in simple link tests
6682
lt_simple_link_test_code="\
6687
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6690
# save warnings/boilerplate of simple test code
6691
_LT_COMPILER_BOILERPLATE
6692
_LT_LINKER_BOILERPLATE
6694
# Allow CC to be a program name with arguments.
6699
_LT_TAGVAR(compiler, $1)=$CC
6700
_LT_CC_BASENAME([$compiler])
6702
if test -n "$compiler"; then
6703
AC_MSG_CHECKING([if libtool supports shared libraries])
6704
AC_MSG_RESULT([$can_build_shared])
6706
AC_MSG_CHECKING([whether to build shared libraries])
6707
test "$can_build_shared" = "no" && enable_shared=no
6709
# On AIX, shared libraries and static libraries use the same namespace, and
6710
# are all built from PIC.
6713
test "$enable_shared" = yes && enable_static=no
6714
if test -n "$RANLIB"; then
6715
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6716
postinstall_cmds='$RANLIB $lib'
6720
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6721
test "$enable_shared" = yes && enable_static=no
6725
AC_MSG_RESULT([$enable_shared])
6727
AC_MSG_CHECKING([whether to build static libraries])
6728
# Make sure either enable_shared or enable_static is yes.
6729
test "$enable_shared" = yes || enable_static=yes
6730
AC_MSG_RESULT([$enable_static])
6732
_LT_TAGVAR(GCC, $1)="$G77"
6733
_LT_TAGVAR(LD, $1)="$LD"
6736
## There is no encapsulation within the following macros, do not change
6737
## the running order or otherwise move them around unless you know exactly
6738
## what you are doing...
6739
_LT_COMPILER_PIC($1)
6740
_LT_COMPILER_C_O($1)
6741
_LT_COMPILER_FILE_LOCKS($1)
6742
_LT_LINKER_SHLIBS($1)
6743
_LT_SYS_DYNAMIC_LINKER($1)
6744
_LT_LINKER_HARDCODE_LIBPATH($1)
6747
fi # test -n "$compiler"
6751
fi # test "$_lt_disable_F77" != yes
6754
])# _LT_LANG_F77_CONFIG
6759
# Since AC_PROG_FC is broken, in that it returns the empty string
6760
# if there is no fortran compiler, we have our own version here.
6761
m4_defun([_LT_PROG_FC],
6763
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6765
if test -z "$FC" || test "X$FC" = "Xno"; then
6768
popdef([AC_MSG_ERROR])
6771
dnl aclocal-1.4 backwards compatibility:
6772
dnl AC_DEFUN([_LT_PROG_FC], [])
6775
# _LT_LANG_FC_CONFIG([TAG])
6776
# -------------------------
6777
# Ensure that the configuration variables for a Fortran compiler are
6778
# suitably defined. These variables are subsequently used by _LT_CONFIG
6779
# to write the compiler configuration to `libtool'.
6780
m4_defun([_LT_LANG_FC_CONFIG],
6781
[AC_REQUIRE([_LT_PROG_FC])dnl
6782
AC_LANG_PUSH(Fortran)
6784
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6785
_LT_TAGVAR(allow_undefined_flag, $1)=
6786
_LT_TAGVAR(always_export_symbols, $1)=no
6787
_LT_TAGVAR(archive_expsym_cmds, $1)=
6788
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6789
_LT_TAGVAR(hardcode_direct, $1)=no
6790
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6791
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6792
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6793
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6794
_LT_TAGVAR(hardcode_minus_L, $1)=no
6795
_LT_TAGVAR(hardcode_automatic, $1)=no
6796
_LT_TAGVAR(inherit_rpath, $1)=no
6797
_LT_TAGVAR(module_cmds, $1)=
6798
_LT_TAGVAR(module_expsym_cmds, $1)=
6799
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6800
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6801
_LT_TAGVAR(no_undefined_flag, $1)=
6802
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6803
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6805
# Source file extension for fc test sources.
6806
ac_ext=${ac_fc_srcext-f}
6808
# Object file extension for compiled fc test sources.
6810
_LT_TAGVAR(objext, $1)=$objext
6812
# No sense in running all these tests if we already determined that
6813
# the FC compiler isn't working. Some variables (like enable_shared)
6814
# are currently assumed to apply to all compilers on this platform,
6815
# and will be corrupted by setting them based on a non-working compiler.
6816
if test "$_lt_disable_FC" != yes; then
6817
# Code to be used in simple compile tests
6818
lt_simple_compile_test_code="\
6824
# Code to be used in simple link tests
6825
lt_simple_link_test_code="\
6830
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6833
# save warnings/boilerplate of simple test code
6834
_LT_COMPILER_BOILERPLATE
6835
_LT_LINKER_BOILERPLATE
6837
# Allow CC to be a program name with arguments.
6842
GCC=$ac_cv_fc_compiler_gnu
6844
_LT_TAGVAR(compiler, $1)=$CC
6845
_LT_CC_BASENAME([$compiler])
6847
if test -n "$compiler"; then
6848
AC_MSG_CHECKING([if libtool supports shared libraries])
6849
AC_MSG_RESULT([$can_build_shared])
6851
AC_MSG_CHECKING([whether to build shared libraries])
6852
test "$can_build_shared" = "no" && enable_shared=no
6854
# On AIX, shared libraries and static libraries use the same namespace, and
6855
# are all built from PIC.
6858
test "$enable_shared" = yes && enable_static=no
6859
if test -n "$RANLIB"; then
6860
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6861
postinstall_cmds='$RANLIB $lib'
6865
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6866
test "$enable_shared" = yes && enable_static=no
6870
AC_MSG_RESULT([$enable_shared])
6872
AC_MSG_CHECKING([whether to build static libraries])
6873
# Make sure either enable_shared or enable_static is yes.
6874
test "$enable_shared" = yes || enable_static=yes
6875
AC_MSG_RESULT([$enable_static])
6877
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6878
_LT_TAGVAR(LD, $1)="$LD"
6881
## There is no encapsulation within the following macros, do not change
6882
## the running order or otherwise move them around unless you know exactly
6883
## what you are doing...
6884
_LT_SYS_HIDDEN_LIBDEPS($1)
6885
_LT_COMPILER_PIC($1)
6886
_LT_COMPILER_C_O($1)
6887
_LT_COMPILER_FILE_LOCKS($1)
6888
_LT_LINKER_SHLIBS($1)
6889
_LT_SYS_DYNAMIC_LINKER($1)
6890
_LT_LINKER_HARDCODE_LIBPATH($1)
6893
fi # test -n "$compiler"
6897
fi # test "$_lt_disable_FC" != yes
6900
])# _LT_LANG_FC_CONFIG
6903
# _LT_LANG_GCJ_CONFIG([TAG])
6904
# --------------------------
6905
# Ensure that the configuration variables for the GNU Java Compiler compiler
6906
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6907
# to write the compiler configuration to `libtool'.
6908
m4_defun([_LT_LANG_GCJ_CONFIG],
6909
[AC_REQUIRE([LT_PROG_GCJ])dnl
6912
# Source file extension for Java test sources.
6915
# Object file extension for compiled Java test sources.
6917
_LT_TAGVAR(objext, $1)=$objext
6919
# Code to be used in simple compile tests
6920
lt_simple_compile_test_code="class foo {}"
6922
# Code to be used in simple link tests
6923
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6925
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6928
# save warnings/boilerplate of simple test code
6929
_LT_COMPILER_BOILERPLATE
6930
_LT_LINKER_BOILERPLATE
6932
# Allow CC to be a program name with arguments.
6938
_LT_TAGVAR(compiler, $1)=$CC
6939
_LT_TAGVAR(LD, $1)="$LD"
6940
_LT_CC_BASENAME([$compiler])
6942
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6943
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6945
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6947
if test -n "$compiler"; then
6948
_LT_COMPILER_NO_RTTI($1)
6949
_LT_COMPILER_PIC($1)
6950
_LT_COMPILER_C_O($1)
6951
_LT_COMPILER_FILE_LOCKS($1)
6952
_LT_LINKER_SHLIBS($1)
6953
_LT_LINKER_HARDCODE_LIBPATH($1)
6962
])# _LT_LANG_GCJ_CONFIG
6965
# _LT_LANG_RC_CONFIG([TAG])
6966
# -------------------------
6967
# Ensure that the configuration variables for the Windows resource compiler
6968
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6969
# to write the compiler configuration to `libtool'.
6970
m4_defun([_LT_LANG_RC_CONFIG],
6971
[AC_REQUIRE([LT_PROG_RC])dnl
6974
# Source file extension for RC test sources.
6977
# Object file extension for compiled RC test sources.
6979
_LT_TAGVAR(objext, $1)=$objext
6981
# Code to be used in simple compile tests
6982
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6984
# Code to be used in simple link tests
6985
lt_simple_link_test_code="$lt_simple_compile_test_code"
6987
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6990
# save warnings/boilerplate of simple test code
6991
_LT_COMPILER_BOILERPLATE
6992
_LT_LINKER_BOILERPLATE
6994
# Allow CC to be a program name with arguments.
7000
_LT_TAGVAR(compiler, $1)=$CC
7001
_LT_CC_BASENAME([$compiler])
7002
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7004
if test -n "$compiler"; then
7012
])# _LT_LANG_RC_CONFIG
7017
AC_DEFUN([LT_PROG_GCJ],
7018
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7019
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7020
[AC_CHECK_TOOL(GCJ, gcj,)
7021
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7022
AC_SUBST(GCJFLAGS)])])[]dnl
7026
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7027
dnl aclocal-1.4 backwards compatibility:
7028
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7033
AC_DEFUN([LT_PROG_RC],
7034
[AC_CHECK_TOOL(RC, windres,)
7038
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7039
dnl aclocal-1.4 backwards compatibility:
7040
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7045
# If we don't have a new enough Autoconf to choose the best grep
7046
# available, choose the one first in the user's PATH.
7047
m4_defun([_LT_DECL_EGREP],
7048
[AC_REQUIRE([AC_PROG_EGREP])dnl
7049
AC_REQUIRE([AC_PROG_FGREP])dnl
7050
test -z "$GREP" && GREP=grep
7051
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7052
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7053
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7054
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7061
# If we don't have a new enough Autoconf to choose the best objdump
7062
# available, choose the one first in the user's PATH.
7063
m4_defun([_LT_DECL_OBJDUMP],
7064
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7065
test -z "$OBJDUMP" && OBJDUMP=objdump
7066
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7073
# Check for a fully-functional sed program, that truncates
7074
# as few characters as possible. Prefer GNU sed if found.
7075
m4_defun([_LT_DECL_SED],
7077
test -z "$SED" && SED=sed
7078
Xsed="$SED -e 1s/^X//"
7079
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7080
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7081
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7084
m4_ifndef([AC_PROG_SED], [
6638
7085
# NOTE: This macro has been submitted for inclusion into #
6639
7086
# GNU Autoconf as AC_PROG_SED. When it is available in #
6640
7087
# a released version of Autoconf we should remove this #
6641
7088
# macro and use it instead. #
6644
# Check for a fully-functional sed program, that truncates
6645
# as few characters as possible. Prefer GNU sed if found.
6646
AC_DEFUN([LT_AC_PROG_SED],
7090
m4_defun([AC_PROG_SED],
6647
7091
[AC_MSG_CHECKING([for a sed that does not truncate output])
6648
7092
AC_CACHE_VAL(lt_cv_path_SED,
6649
7093
[# Loop through the user's path and test for sed and gsed.
6696
7140
SED=$lt_cv_path_SED
6697
7141
AC_SUBST([SED])
6698
7142
AC_MSG_RESULT([$SED])
7147
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7148
dnl aclocal-1.4 backwards compatibility:
7149
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7152
# _LT_CHECK_SHELL_FEATURES
7153
# ------------------------
7154
# Find out whether the shell is Bourne or XSI compatible,
7155
# or has some other useful features.
7156
m4_defun([_LT_CHECK_SHELL_FEATURES],
7157
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7158
# Try some XSI features
7161
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7163
&& eval 'test $(( 1 + 1 )) -eq 2 \
7164
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7166
AC_MSG_RESULT([$xsi_shell])
7167
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7169
AC_MSG_CHECKING([whether the shell understands "+="])
7171
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7173
&& lt_shell_append=yes
7174
AC_MSG_RESULT([$lt_shell_append])
7175
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7177
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7182
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7184
# test EBCDIC or ASCII
7185
case `echo X|tr X '\101'` in
7186
A) # ASCII based system
7187
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7188
lt_SP2NL='tr \040 \012'
7189
lt_NL2SP='tr \015\012 \040\040'
7191
*) # EBCDIC based system
7192
lt_SP2NL='tr \100 \n'
7193
lt_NL2SP='tr \r\n \100\100'
7196
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7197
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7198
])# _LT_CHECK_SHELL_FEATURES
7201
# _LT_PROG_XSI_SHELLFNS
7202
# ---------------------
7203
# Bourne and XSI compatible variants of some useful shell functions.
7204
m4_defun([_LT_PROG_XSI_SHELLFNS],
7207
cat << \_LT_EOF >> "$cfgfile"
7209
# func_dirname file append nondir_replacement
7210
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7211
# otherwise set result to NONDIR_REPLACEMENT.
7215
*/*) func_dirname_result="${1%/*}${2}" ;;
7216
* ) func_dirname_result="${3}" ;;
7220
# func_basename file
7223
func_basename_result="${1##*/}"
7226
# func_dirname_and_basename file append nondir_replacement
7227
# perform func_basename and func_dirname in a single function
7229
# dirname: Compute the dirname of FILE. If nonempty,
7230
# add APPEND to the result, otherwise set result
7231
# to NONDIR_REPLACEMENT.
7232
# value returned in "$func_dirname_result"
7233
# basename: Compute filename of FILE.
7234
# value retuned in "$func_basename_result"
7235
# Implementation must be kept synchronized with func_dirname
7236
# and func_basename. For efficiency, we do not delegate to
7237
# those functions but instead duplicate the functionality here.
7238
func_dirname_and_basename ()
7241
*/*) func_dirname_result="${1%/*}${2}" ;;
7242
* ) func_dirname_result="${3}" ;;
7244
func_basename_result="${1##*/}"
7247
# func_stripname prefix suffix name
7248
# strip PREFIX and SUFFIX off of NAME.
7249
# PREFIX and SUFFIX must not contain globbing or regex special
7250
# characters, hashes, percent signs, but SUFFIX may contain a leading
7251
# dot (in which case that matches only a dot).
7254
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7255
# positional parameters, so assign one to ordinary parameter first.
7256
func_stripname_result=${3}
7257
func_stripname_result=${func_stripname_result#"${1}"}
7258
func_stripname_result=${func_stripname_result%"${2}"}
7264
func_opt_split_opt=${1%%=*}
7265
func_opt_split_arg=${1#*=}
7272
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7273
*) func_lo2o_result=${1} ;;
7277
# func_xform libobj-or-source
7280
func_xform_result=${1%.*}.lo
7283
# func_arith arithmetic-term...
7286
func_arith_result=$(( $[*] ))
7290
# STRING may not start with a hyphen.
7293
func_len_result=${#1}
7298
*) # Bourne compatible functions.
7299
cat << \_LT_EOF >> "$cfgfile"
7301
# func_dirname file append nondir_replacement
7302
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7303
# otherwise set result to NONDIR_REPLACEMENT.
7306
# Extract subdirectory from the argument.
7307
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7308
if test "X$func_dirname_result" = "X${1}"; then
7309
func_dirname_result="${3}"
7311
func_dirname_result="$func_dirname_result${2}"
7315
# func_basename file
7318
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7321
dnl func_dirname_and_basename
7322
dnl A portable version of this function is already defined in general.m4sh
7323
dnl so there is no need for it here.
7325
# func_stripname prefix suffix name
7326
# strip PREFIX and SUFFIX off of NAME.
7327
# PREFIX and SUFFIX must not contain globbing or regex special
7328
# characters, hashes, percent signs, but SUFFIX may contain a leading
7329
# dot (in which case that matches only a dot).
7330
# func_strip_suffix prefix name
7334
.*) func_stripname_result=`$ECHO "X${3}" \
7335
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7336
*) func_stripname_result=`$ECHO "X${3}" \
7337
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7342
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7343
my_sed_long_arg='1s/^-[[^=]]*=//'
7348
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7349
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7355
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7358
# func_xform libobj-or-source
7361
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7364
# func_arith arithmetic-term...
7367
func_arith_result=`expr "$[@]"`
7371
# STRING may not start with a hyphen.
7374
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7380
case $lt_shell_append in
7382
cat << \_LT_EOF >> "$cfgfile"
7384
# func_append var value
7385
# Append VALUE to the end of shell variable VAR.
7393
cat << \_LT_EOF >> "$cfgfile"
7395
# func_append var value
7396
# Append VALUE to the end of shell variable VAR.
7399
eval "$[1]=\$$[1]\$[2]"
7407
# Helper functions for option handling. -*- Autoconf -*-
7409
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7410
# Written by Gary V. Vaughan, 2004
7412
# This file is free software; the Free Software Foundation gives
7413
# unlimited permission to copy and/or distribute it, with or without
7414
# modifications, as long as this notice is preserved.
7416
# serial 6 ltoptions.m4
7418
# This is to help aclocal find these macros, as it can't see m4_define.
7419
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7422
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7423
# ------------------------------------------
7424
m4_define([_LT_MANGLE_OPTION],
7425
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7428
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7429
# ---------------------------------------
7430
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7431
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
7433
m4_define([_LT_SET_OPTION],
7434
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7435
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7436
_LT_MANGLE_DEFUN([$1], [$2]),
7437
[m4_warning([Unknown $1 option `$2'])])[]dnl
7441
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7442
# ------------------------------------------------------------
7443
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7444
m4_define([_LT_IF_OPTION],
7445
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7448
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7449
# -------------------------------------------------------
7450
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7452
m4_define([_LT_UNLESS_OPTIONS],
7453
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7454
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7455
[m4_define([$0_found])])])[]dnl
7456
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7461
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7462
# ----------------------------------------
7463
# OPTION-LIST is a space-separated list of Libtool options associated
7464
# with MACRO-NAME. If any OPTION has a matching handler declared with
7465
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7466
# the unknown option and exit.
7467
m4_defun([_LT_SET_OPTIONS],
7469
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7470
[_LT_SET_OPTION([$1], _LT_Option)])
7472
m4_if([$1],[LT_INIT],[
7474
dnl Simply set some default values (i.e off) if boolean options were not
7476
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7478
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7481
dnl If no reference was made to various pairs of opposing options, then
7482
dnl we run the default mode handler for the pair. For example, if neither
7483
dnl `shared' nor `disable-shared' was passed, we enable building of shared
7484
dnl archives by default:
7485
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7486
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7487
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7488
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7489
[_LT_ENABLE_FAST_INSTALL])
7495
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7496
# -----------------------------------------
7497
m4_define([_LT_MANGLE_DEFUN],
7498
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7501
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7502
# -----------------------------------------------
7503
m4_define([LT_OPTION_DEFINE],
7504
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7505
])# LT_OPTION_DEFINE
7510
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7513
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7514
[_LT_SET_OPTION([LT_INIT], [dlopen])
7515
AC_DIAGNOSE([obsolete],
7516
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7517
put the `dlopen' option into LT_INIT's first parameter.])
7520
dnl aclocal-1.4 backwards compatibility:
7521
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7526
# Declare package support for building win32 dll's.
7527
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7528
[enable_win32_dll=yes
7531
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7532
AC_CHECK_TOOL(AS, as, false)
7533
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7534
AC_CHECK_TOOL(OBJDUMP, objdump, false)
7538
test -z "$AS" && AS=as
7539
_LT_DECL([], [AS], [0], [Assembler program])dnl
7541
test -z "$DLLTOOL" && DLLTOOL=dlltool
7542
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7544
test -z "$OBJDUMP" && OBJDUMP=objdump
7545
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7548
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7549
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7550
_LT_SET_OPTION([LT_INIT], [win32-dll])
7551
AC_DIAGNOSE([obsolete],
7552
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7553
put the `win32-dll' option into LT_INIT's first parameter.])
7556
dnl aclocal-1.4 backwards compatibility:
7557
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7560
# _LT_ENABLE_SHARED([DEFAULT])
7561
# ----------------------------
7562
# implement the --enable-shared flag, and supports the `shared' and
7563
# `disable-shared' LT_INIT options.
7564
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7565
m4_define([_LT_ENABLE_SHARED],
7566
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7567
AC_ARG_ENABLE([shared],
7568
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7569
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7570
[p=${PACKAGE-default}
7572
yes) enable_shared=yes ;;
7573
no) enable_shared=no ;;
7576
# Look at the argument we got. We use all the common list separators.
7577
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578
for pkg in $enableval; do
7580
if test "X$pkg" = "X$p"; then
7587
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7589
_LT_DECL([build_libtool_libs], [enable_shared], [0],
7590
[Whether or not to build shared libraries])
7591
])# _LT_ENABLE_SHARED
7593
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7594
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7597
AC_DEFUN([AC_ENABLE_SHARED],
7598
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7601
AC_DEFUN([AC_DISABLE_SHARED],
7602
[_LT_SET_OPTION([LT_INIT], [disable-shared])
7605
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7606
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7608
dnl aclocal-1.4 backwards compatibility:
7609
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7610
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7614
# _LT_ENABLE_STATIC([DEFAULT])
7615
# ----------------------------
7616
# implement the --enable-static flag, and support the `static' and
7617
# `disable-static' LT_INIT options.
7618
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7619
m4_define([_LT_ENABLE_STATIC],
7620
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7621
AC_ARG_ENABLE([static],
7622
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7623
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7624
[p=${PACKAGE-default}
7626
yes) enable_static=yes ;;
7627
no) enable_static=no ;;
7630
# Look at the argument we got. We use all the common list separators.
7631
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632
for pkg in $enableval; do
7634
if test "X$pkg" = "X$p"; then
7641
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7643
_LT_DECL([build_old_libs], [enable_static], [0],
7644
[Whether or not to build static libraries])
7645
])# _LT_ENABLE_STATIC
7647
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7648
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7651
AC_DEFUN([AC_ENABLE_STATIC],
7652
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7655
AC_DEFUN([AC_DISABLE_STATIC],
7656
[_LT_SET_OPTION([LT_INIT], [disable-static])
7659
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7660
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7662
dnl aclocal-1.4 backwards compatibility:
7663
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7664
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7668
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7669
# ----------------------------------
7670
# implement the --enable-fast-install flag, and support the `fast-install'
7671
# and `disable-fast-install' LT_INIT options.
7672
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7673
m4_define([_LT_ENABLE_FAST_INSTALL],
7674
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7675
AC_ARG_ENABLE([fast-install],
7676
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7677
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7678
[p=${PACKAGE-default}
7680
yes) enable_fast_install=yes ;;
7681
no) enable_fast_install=no ;;
7683
enable_fast_install=no
7684
# Look at the argument we got. We use all the common list separators.
7685
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686
for pkg in $enableval; do
7688
if test "X$pkg" = "X$p"; then
7689
enable_fast_install=yes
7695
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7697
_LT_DECL([fast_install], [enable_fast_install], [0],
7698
[Whether or not to optimize for fast installation])dnl
7699
])# _LT_ENABLE_FAST_INSTALL
7701
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7702
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7705
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7706
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7707
AC_DIAGNOSE([obsolete],
7708
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7709
the `fast-install' option into LT_INIT's first parameter.])
7712
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7713
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7714
AC_DIAGNOSE([obsolete],
7715
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7716
the `disable-fast-install' option into LT_INIT's first parameter.])
7719
dnl aclocal-1.4 backwards compatibility:
7720
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7721
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7724
# _LT_WITH_PIC([MODE])
7725
# --------------------
7726
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7728
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7729
m4_define([_LT_WITH_PIC],
7731
[AS_HELP_STRING([--with-pic],
7732
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7733
[pic_mode="$withval"],
7736
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7738
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7741
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7742
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7745
AU_DEFUN([AC_LIBTOOL_PICMODE],
7746
[_LT_SET_OPTION([LT_INIT], [pic-only])
7747
AC_DIAGNOSE([obsolete],
7748
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7749
put the `pic-only' option into LT_INIT's first parameter.])
7752
dnl aclocal-1.4 backwards compatibility:
7753
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7756
m4_define([_LTDL_MODE], [])
7757
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7758
[m4_define([_LTDL_MODE], [nonrecursive])])
7759
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7760
[m4_define([_LTDL_MODE], [recursive])])
7761
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7762
[m4_define([_LTDL_MODE], [subproject])])
7764
m4_define([_LTDL_TYPE], [])
7765
LT_OPTION_DEFINE([LTDL_INIT], [installable],
7766
[m4_define([_LTDL_TYPE], [installable])])
7767
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7768
[m4_define([_LTDL_TYPE], [convenience])])
7770
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7772
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7773
# Written by Gary V. Vaughan, 2004
7775
# This file is free software; the Free Software Foundation gives
7776
# unlimited permission to copy and/or distribute it, with or without
7777
# modifications, as long as this notice is preserved.
7779
# serial 6 ltsugar.m4
7781
# This is to help aclocal find these macros, as it can't see m4_define.
7782
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7785
# lt_join(SEP, ARG1, [ARG2...])
7786
# -----------------------------
7787
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7788
# associated separator.
7789
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7790
# versions in m4sugar had bugs.
7791
m4_define([lt_join],
7792
[m4_if([$#], [1], [],
7794
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7795
m4_define([_lt_join],
7796
[m4_if([$#$2], [2], [],
7797
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7803
# Manipulate m4 lists.
7804
# These macros are necessary as long as will still need to support
7805
# Autoconf-2.59 which quotes differently.
7806
m4_define([lt_car], [[$1]])
7808
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7810
[m4_dquote(m4_shift($@))])])
7811
m4_define([lt_unquote], $1)
7814
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7815
# ------------------------------------------
7816
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7817
# Note that neither SEPARATOR nor STRING are expanded; they are appended
7818
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7819
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7820
# than defined and empty).
7822
# This macro is needed until we can rely on Autoconf 2.62, since earlier
7823
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7824
m4_define([lt_append],
7826
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7830
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7831
# ----------------------------------------------------------
7832
# Produce a SEP delimited list of all paired combinations of elements of
7833
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7834
# has the form PREFIXmINFIXSUFFIXn.
7835
# Needed until we can rely on m4_combine added in Autoconf 2.62.
7836
m4_define([lt_combine],
7837
[m4_if(m4_eval([$# > 3]), [1],
7838
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7839
[[m4_foreach([_Lt_prefix], [$2],
7840
[m4_foreach([_Lt_suffix],
7841
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7842
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7845
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7846
# -----------------------------------------------------------------------
7847
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7848
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7849
m4_define([lt_if_append_uniq],
7851
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7852
[lt_append([$1], [$2], [$3])$4],
7854
[lt_append([$1], [$2], [$3])$4])])
7857
# lt_dict_add(DICT, KEY, VALUE)
7858
# -----------------------------
7859
m4_define([lt_dict_add],
7860
[m4_define([$1($2)], [$3])])
7863
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7864
# --------------------------------------------
7865
m4_define([lt_dict_add_subkey],
7866
[m4_define([$1($2:$3)], [$4])])
7869
# lt_dict_fetch(DICT, KEY, [SUBKEY])
7870
# ----------------------------------
7871
m4_define([lt_dict_fetch],
7873
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7874
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7877
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7878
# -----------------------------------------------------------------
7879
m4_define([lt_if_dict_fetch],
7880
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7885
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7886
# --------------------------------------------------------------
7887
m4_define([lt_dict_filter],
7888
[m4_if([$5], [], [],
7889
[lt_join(m4_quote(m4_default([$4], [[, ]])),
7890
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7891
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7894
# ltversion.m4 -- version numbers -*- Autoconf -*-
7896
# Copyright (C) 2004 Free Software Foundation, Inc.
7897
# Written by Scott James Remnant, 2004
7899
# This file is free software; the Free Software Foundation gives
7900
# unlimited permission to copy and/or distribute it, with or without
7901
# modifications, as long as this notice is preserved.
7903
# Generated from ltversion.in.
7905
# serial 3012 ltversion.m4
7906
# This file is part of GNU Libtool
7908
m4_define([LT_PACKAGE_VERSION], [2.2.6])
7909
m4_define([LT_PACKAGE_REVISION], [1.3012])
7911
AC_DEFUN([LTVERSION_VERSION],
7912
[macro_version='2.2.6'
7913
macro_revision='1.3012'
7914
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7915
_LT_DECL(, macro_revision, 0)
7918
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7920
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7921
# Written by Scott James Remnant, 2004.
7923
# This file is free software; the Free Software Foundation gives
7924
# unlimited permission to copy and/or distribute it, with or without
7925
# modifications, as long as this notice is preserved.
7927
# serial 4 lt~obsolete.m4
7929
# These exist entirely to fool aclocal when bootstrapping libtool.
7931
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7932
# which have later been changed to m4_define as they aren't part of the
7933
# exported API, or moved to Autoconf or Automake where they belong.
7935
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7936
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7937
# using a macro with the same name in our local m4/libtool.m4 it'll
7938
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7939
# and doesn't know about Autoconf macros at all.)
7941
# So we provide this file, which has a silly filename so it's always
7942
# included after everything else. This provides aclocal with the
7943
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7944
# because those macros already exist, or will be overwritten later.
7945
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7947
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7948
# Yes, that means every name once taken will need to remain here until
7949
# we give up compatibility with versions before 1.7, at which point
7950
# we need to keep only those names which we still refer to.
7952
# This is to help aclocal find these macros, as it can't see m4_define.
7953
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7955
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7956
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7957
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7958
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7959
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7960
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7961
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7962
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7963
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7964
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7965
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7966
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7967
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7968
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7969
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7970
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7971
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7972
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7973
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7974
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7975
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7976
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7977
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7978
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7979
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7980
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7981
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7982
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7983
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7984
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7985
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7986
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7987
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7988
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7989
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7990
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7991
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7992
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7993
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7994
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7995
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7996
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7997
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7998
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7999
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8000
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8001
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8002
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8003
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8004
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8005
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8006
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8007
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8008
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8009
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
6701
8011
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-