~ubuntu-branches/ubuntu/utopic/sblim-sfcc/utopic-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Bhavani Shankar
  • Date: 2013-06-26 13:28:21 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130626132821-y7r5bvguyzw8sv1a
Tags: 2.2.5-0ubuntu1
* New Upstream release
* Bump up standards to 3.9.4
* Add Build depend on autotools-dev to regenerate autotools helper file
* Wrap and sort Build deps in d/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
24
#
24
25
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
26
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
27
#                 Foundation, Inc.
26
28
#   Written by Gordon Matzigkeit, 1996
27
29
#
28
30
# This file is free software; the Free Software Foundation gives
31
33
 
32
34
m4_define([_LT_COPYING], [dnl
33
35
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
36
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
37
#                 Foundation, Inc.
35
38
#   Written by Gordon Matzigkeit, 1996
36
39
#
37
40
#   This file is part of GNU Libtool.
58
61
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59
62
])
60
63
 
61
 
# serial 56 LT_INIT
 
64
# serial 57 LT_INIT
62
65
 
63
66
 
64
67
# LT_PREREQ(VERSION)
87
90
# ------------------
88
91
AC_DEFUN([LT_INIT],
89
92
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
93
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
90
94
AC_BEFORE([$0], [LT_LANG])dnl
91
95
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
96
AC_BEFORE([$0], [LTDL_INIT])dnl
103
107
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
108
m4_require([_LT_PROG_LTMAIN])dnl
105
109
 
 
110
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
111
 
106
112
dnl Parse OPTIONS
107
113
_LT_SET_OPTIONS([$0], [$1])
108
114
 
139
145
    *) break;;
140
146
  esac
141
147
done
142
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
148
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
143
149
])
144
150
 
145
151
 
159
165
m4_defun([_LT_SETUP],
160
166
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
161
167
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
168
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
169
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
170
 
 
171
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
172
dnl
162
173
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
174
_LT_DECL([], [host], [0])dnl
164
175
_LT_DECL([], [host_os], [0])dnl
181
192
dnl
182
193
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
194
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
195
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
184
196
m4_require([_LT_CMD_RELOAD])dnl
185
197
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
198
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
186
199
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
200
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
201
m4_require([_LT_WITH_SYSROOT])dnl
188
202
 
189
203
_LT_CONFIG_LIBTOOL_INIT([
190
204
# See if we are running on zsh, and set the options which allow our
200
214
_LT_CHECK_OBJDIR
201
215
 
202
216
m4_require([_LT_TAG_COMPILER])dnl
203
 
_LT_PROG_ECHO_BACKSLASH
204
217
 
205
218
case $host_os in
206
219
aix3*)
214
227
  ;;
215
228
esac
216
229
 
217
 
# Sed substitution that helps us do robust quoting.  It backslashifies
218
 
# metacharacters that are still active within double-quoted strings.
219
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
220
 
 
221
 
# Same as above, but do not quote variable references.
222
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
223
 
 
224
 
# Sed substitution to delay expansion of an escaped shell variable in a
225
 
# double_quote_subst'ed string.
226
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
227
 
 
228
 
# Sed substitution to delay expansion of an escaped single quote.
229
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
230
 
 
231
 
# Sed substitution to avoid accidental globbing in evaled expressions
232
 
no_glob_subst='s/\*/\\\*/g'
233
 
 
234
230
# Global variables:
235
231
ofile=libtool
236
232
can_build_shared=yes
271
267
])# _LT_SETUP
272
268
 
273
269
 
 
270
# _LT_PREPARE_SED_QUOTE_VARS
 
271
# --------------------------
 
272
# Define a few sed substitution that help us do robust quoting.
 
273
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
274
[# Backslashify metacharacters that are still active within
 
275
# double-quoted strings.
 
276
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
277
 
 
278
# Same as above, but do not quote variable references.
 
279
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
280
 
 
281
# Sed substitution to delay expansion of an escaped shell variable in a
 
282
# double_quote_subst'ed string.
 
283
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
284
 
 
285
# Sed substitution to delay expansion of an escaped single quote.
 
286
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
287
 
 
288
# Sed substitution to avoid accidental globbing in evaled expressions
 
289
no_glob_subst='s/\*/\\\*/g'
 
290
])
 
291
 
274
292
# _LT_PROG_LTMAIN
275
293
# ---------------
276
294
# Note that this code is called both from `configure', and `config.status'
423
441
# declaration there will have the same value as in `configure'.  VARNAME
424
442
# must have a single quote delimited value for this to work.
425
443
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
444
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
427
445
 
428
446
 
429
447
# _LT_CONFIG_STATUS_DECLARATIONS
433
451
# embedded single quotes properly.  In configure, this macro expands
434
452
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435
453
#
436
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
454
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
437
455
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
456
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
457
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
532
550
LTCFLAGS='$LTCFLAGS'
533
551
compiler='$compiler_DEFAULT'
534
552
 
 
553
# A function that is used when there is no print builtin or printf.
 
554
func_fallback_echo ()
 
555
{
 
556
  eval 'cat <<_LTECHO_EOF
 
557
\$[]1
 
558
_LTECHO_EOF'
 
559
}
 
560
 
535
561
# Quote evaled strings.
536
562
for var in lt_decl_all_varnames([[ \
537
563
]], lt_decl_quote_varnames); do
538
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
564
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
539
565
    *[[\\\\\\\`\\"\\\$]]*)
540
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
566
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541
567
      ;;
542
568
    *)
543
569
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
574
# Double-quote double-evaled strings.
549
575
for var in lt_decl_all_varnames([[ \
550
576
]], lt_decl_dquote_varnames); do
551
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
577
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
552
578
    *[[\\\\\\\`\\"\\\$]]*)
553
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
579
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554
580
      ;;
555
581
    *)
556
582
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
558
584
    esac
559
585
done
560
586
 
561
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
562
 
case \$lt_ECHO in
563
 
*'\\\[$]0 --fallback-echo"')dnl "
564
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
565
 
  ;;
566
 
esac
567
 
 
568
587
_LT_OUTPUT_LIBTOOL_INIT
569
588
])
570
589
 
 
590
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
591
# ------------------------------------
 
592
# Generate a child script FILE with all initialization necessary to
 
593
# reuse the environment learned by the parent script, and make the
 
594
# file executable.  If COMMENT is supplied, it is inserted after the
 
595
# `#!' sequence but before initialization text begins.  After this
 
596
# macro, additional text can be appended to FILE to form the body of
 
597
# the child script.  The macro ends with non-zero status if the
 
598
# file could not be fully written (such as if the disk is full).
 
599
m4_ifdef([AS_INIT_GENERATED],
 
600
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
601
[m4_defun([_LT_GENERATED_FILE_INIT],
 
602
[m4_require([AS_PREPARE])]dnl
 
603
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
604
[lt_write_fail=0
 
605
cat >$1 <<_ASEOF || lt_write_fail=1
 
606
#! $SHELL
 
607
# Generated by $as_me.
 
608
$2
 
609
SHELL=\${CONFIG_SHELL-$SHELL}
 
610
export SHELL
 
611
_ASEOF
 
612
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
613
AS_SHELL_SANITIZE
 
614
_AS_PREPARE
 
615
exec AS_MESSAGE_FD>&1
 
616
_ASEOF
 
617
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
618
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
571
619
 
572
620
# LT_OUTPUT
573
621
# ---------
577
625
AC_DEFUN([LT_OUTPUT],
578
626
[: ${CONFIG_LT=./config.lt}
579
627
AC_MSG_NOTICE([creating $CONFIG_LT])
580
 
cat >"$CONFIG_LT" <<_LTEOF
581
 
#! $SHELL
582
 
# Generated by $as_me.
583
 
# Run this file to recreate a libtool stub with the current configuration.
 
628
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
629
[# Run this file to recreate a libtool stub with the current configuration.])
584
630
 
 
631
cat >>"$CONFIG_LT" <<\_LTEOF
585
632
lt_cl_silent=false
586
 
SHELL=\${CONFIG_SHELL-$SHELL}
587
 
_LTEOF
588
 
 
589
 
cat >>"$CONFIG_LT" <<\_LTEOF
590
 
AS_SHELL_SANITIZE
591
 
_AS_PREPARE
592
 
 
593
 
exec AS_MESSAGE_FD>&1
594
633
exec AS_MESSAGE_LOG_FD>>config.log
595
634
{
596
635
  echo
616
655
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
656
configured by $[0], generated by m4_PACKAGE_STRING.
618
657
 
619
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
658
Copyright (C) 2011 Free Software Foundation, Inc.
620
659
This config.lt script is free software; the Free Software Foundation
621
660
gives unlimited permision to copy, distribute and modify it."
622
661
 
661
700
# appending to config.log, which fails on DOS, as config.log is still kept
662
701
# open by configure.  Here we exec the FD to /dev/null, effectively closing
663
702
# config.log, so it can be properly (re)opened and appended to by config.lt.
664
 
if test "$no_create" != yes; then
665
 
  lt_cl_success=:
666
 
  test "$silent" = yes &&
667
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
668
 
  exec AS_MESSAGE_LOG_FD>/dev/null
669
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
670
 
  exec AS_MESSAGE_LOG_FD>>config.log
671
 
  $lt_cl_success || AS_EXIT(1)
672
 
fi
 
703
lt_cl_success=:
 
704
test "$silent" = yes &&
 
705
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
706
exec AS_MESSAGE_LOG_FD>/dev/null
 
707
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
708
exec AS_MESSAGE_LOG_FD>>config.log
 
709
$lt_cl_success || AS_EXIT(1)
673
710
])# LT_OUTPUT
674
711
 
675
712
 
732
769
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
733
770
  # text mode, it properly converts lines to CR/LF.  This bash problem
734
771
  # is reportedly fixed, but why not run on old versions too?
735
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
736
 
    || (rm -f "$cfgfile"; exit 1)
737
 
 
738
 
  _LT_PROG_XSI_SHELLFNS
739
 
 
740
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
741
 
    || (rm -f "$cfgfile"; exit 1)
742
 
 
743
 
  mv -f "$cfgfile" "$ofile" ||
 
772
  sed '$q' "$ltmain" >> "$cfgfile" \
 
773
     || (rm -f "$cfgfile"; exit 1)
 
774
 
 
775
  _LT_PROG_REPLACE_SHELLFNS
 
776
 
 
777
   mv -f "$cfgfile" "$ofile" ||
744
778
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
745
779
  chmod +x "$ofile"
746
780
],
785
819
m4_case([$1],
786
820
  [C],                  [_LT_LANG(C)],
787
821
  [C++],                [_LT_LANG(CXX)],
 
822
  [Go],                 [_LT_LANG(GO)],
788
823
  [Java],               [_LT_LANG(GCJ)],
789
824
  [Fortran 77],         [_LT_LANG(F77)],
790
825
  [Fortran],            [_LT_LANG(FC)],
806
841
])# _LT_LANG
807
842
 
808
843
 
 
844
m4_ifndef([AC_PROG_GO], [
 
845
# NOTE: This macro has been submitted for inclusion into   #
 
846
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
847
#  a released version of Autoconf we should remove this    #
 
848
#  macro and use it instead.                               #
 
849
m4_defun([AC_PROG_GO],
 
850
[AC_LANG_PUSH(Go)dnl
 
851
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
852
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
853
_AC_ARG_VAR_LDFLAGS()dnl
 
854
AC_CHECK_TOOL(GOC, gccgo)
 
855
if test -z "$GOC"; then
 
856
  if test -n "$ac_tool_prefix"; then
 
857
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
858
  fi
 
859
fi
 
860
if test -z "$GOC"; then
 
861
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
862
fi
 
863
])#m4_defun
 
864
])#m4_ifndef
 
865
 
 
866
 
809
867
# _LT_LANG_DEFAULT_CONFIG
810
868
# -----------------------
811
869
m4_defun([_LT_LANG_DEFAULT_CONFIG],
836
894
       m4_ifdef([LT_PROG_GCJ],
837
895
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
838
896
 
 
897
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
898
  [LT_LANG(GO)],
 
899
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
900
 
839
901
AC_PROVIDE_IFELSE([LT_PROG_RC],
840
902
  [LT_LANG(RC)],
841
903
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
846
908
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
909
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
910
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
911
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
849
912
dnl aclocal-1.4 backwards compatibility:
850
913
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
914
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
915
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
916
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
917
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
854
918
 
855
919
 
856
920
# _LT_TAG_COMPILER
936
1000
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
937
1001
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
938
1002
        _lt_result=$?
939
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1003
        # If there is a non-empty error log, and "single_module"
 
1004
        # appears in it, assume the flag caused a linker warning
 
1005
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1006
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1007
        # Otherwise, if the output was created with a 0 exit code from
 
1008
        # the compiler, it worked.
 
1009
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
940
1010
          lt_cv_apple_cc_single_mod=yes
941
1011
        else
942
1012
          cat conftest.err >&AS_MESSAGE_LOG_FD
944
1014
        rm -rf libconftest.dylib*
945
1015
        rm -f conftest.*
946
1016
      fi])
 
1017
 
947
1018
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
948
1019
      [lt_cv_ld_exported_symbols_list],
949
1020
      [lt_cv_ld_exported_symbols_list=no
955
1026
        [lt_cv_ld_exported_symbols_list=no])
956
1027
        LDFLAGS="$save_LDFLAGS"
957
1028
    ])
 
1029
 
 
1030
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
1031
      [lt_cv_ld_force_load=no
 
1032
      cat > conftest.c << _LT_EOF
 
1033
int forced_loaded() { return 2;}
 
1034
_LT_EOF
 
1035
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
1036
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
1037
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
1038
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1039
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1040
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1041
      cat > conftest.c << _LT_EOF
 
1042
int main() { return 0;}
 
1043
_LT_EOF
 
1044
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1045
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1046
      _lt_result=$?
 
1047
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1048
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1049
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
1050
        lt_cv_ld_force_load=yes
 
1051
      else
 
1052
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1053
      fi
 
1054
        rm -f conftest.err libconftest.a conftest conftest.c
 
1055
        rm -rf conftest.dSYM
 
1056
    ])
958
1057
    case $host_os in
959
1058
    rhapsody* | darwin1.[[012]])
960
1059
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
982
1081
    else
983
1082
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
984
1083
    fi
985
 
    if test "$DSYMUTIL" != ":"; then
 
1084
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
986
1085
      _lt_dsymutil='~$DSYMUTIL $lib || :'
987
1086
    else
988
1087
      _lt_dsymutil=
992
1091
])
993
1092
 
994
1093
 
995
 
# _LT_DARWIN_LINKER_FEATURES
996
 
# --------------------------
 
1094
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1095
# ---------------------------------
997
1096
# Checks for linker and compiler features on darwin
998
1097
m4_defun([_LT_DARWIN_LINKER_FEATURES],
999
1098
[
1002
1101
  _LT_TAGVAR(hardcode_direct, $1)=no
1003
1102
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1004
1103
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1005
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1104
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1105
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
1106
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1107
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 
1108
  else
 
1109
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1110
  fi
1006
1111
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1007
1112
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1008
1113
  case $cc_basename in
1010
1115
     *) _lt_dar_can_shared=$GCC ;;
1011
1116
  esac
1012
1117
  if test "$_lt_dar_can_shared" = "yes"; then
1013
 
    output_verbose_link_cmd=echo
 
1118
    output_verbose_link_cmd=func_echo_all
1014
1119
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1015
1120
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016
1121
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1026
1131
  fi
1027
1132
])
1028
1133
 
1029
 
# _LT_SYS_MODULE_PATH_AIX
1030
 
# -----------------------
 
1134
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1135
# ----------------------------------
1031
1136
# Links a minimal program and checks the executable
1032
1137
# for the system default hardcoded library path. In most cases,
1033
1138
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
1139
# the location of the communication and MPI libs are included too.
1035
1140
# If we don't find anything, use the default library path according
1036
1141
# to the aix ld manual.
 
1142
# Store the results from the different compilers for each TAGNAME.
 
1143
# Allow to override them for all tags through lt_cv_aix_libpath.
1037
1144
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
1145
[m4_require([_LT_DECL_SED])dnl
1039
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1040
 
lt_aix_libpath_sed='
1041
 
    /Import File Strings/,/^$/ {
1042
 
        /^0/ {
1043
 
            s/^0  *\(.*\)$/\1/
1044
 
            p
1045
 
        }
1046
 
    }'
1047
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048
 
# Check for a 64-bit object if we didn't find anything.
1049
 
if test -z "$aix_libpath"; then
1050
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1051
 
fi],[])
1052
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1146
if test "${lt_cv_aix_libpath+set}" = set; then
 
1147
  aix_libpath=$lt_cv_aix_libpath
 
1148
else
 
1149
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1150
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1151
  lt_aix_libpath_sed='[
 
1152
      /Import File Strings/,/^$/ {
 
1153
          /^0/ {
 
1154
              s/^0  *\([^ ]*\) *$/\1/
 
1155
              p
 
1156
          }
 
1157
      }]'
 
1158
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1159
  # Check for a 64-bit object if we didn't find anything.
 
1160
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1161
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1162
  fi],[])
 
1163
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1164
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1165
  fi
 
1166
  ])
 
1167
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1168
fi
1053
1169
])# _LT_SYS_MODULE_PATH_AIX
1054
1170
 
1055
1171
 
1056
1172
# _LT_SHELL_INIT(ARG)
1057
1173
# -------------------
1058
1174
m4_define([_LT_SHELL_INIT],
1059
 
[ifdef([AC_DIVERSION_NOTICE],
1060
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
 
         [AC_DIVERT_PUSH(NOTICE)])
1062
 
$1
1063
 
AC_DIVERT_POP
1064
 
])# _LT_SHELL_INIT
 
1175
[m4_divert_text([M4SH-INIT], [$1
 
1176
])])# _LT_SHELL_INIT
 
1177
 
1065
1178
 
1066
1179
 
1067
1180
# _LT_PROG_ECHO_BACKSLASH
1068
1181
# -----------------------
1069
 
# Add some code to the start of the generated configure script which
1070
 
# will find an echo command which doesn't interpret backslashes.
 
1182
# Find how we can fake an echo command that does not interpret backslash.
 
1183
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1184
# of the generated configure script which will find a shell with a builtin
 
1185
# printf (which we can use as an echo command).
1071
1186
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1072
 
[_LT_SHELL_INIT([
1073
 
# Check that we are running under the correct shell.
1074
 
SHELL=${CONFIG_SHELL-/bin/sh}
1075
 
 
1076
 
case X$lt_ECHO in
1077
 
X*--fallback-echo)
1078
 
  # Remove one level of quotation (which was required for Make).
1079
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1080
 
  ;;
 
1187
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1188
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1189
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1190
 
 
1191
AC_MSG_CHECKING([how to print strings])
 
1192
# Test print first, because it will be a builtin if present.
 
1193
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1194
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1195
  ECHO='print -r --'
 
1196
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1197
  ECHO='printf %s\n'
 
1198
else
 
1199
  # Use this function as a fallback that always works.
 
1200
  func_fallback_echo ()
 
1201
  {
 
1202
    eval 'cat <<_LTECHO_EOF
 
1203
$[]1
 
1204
_LTECHO_EOF'
 
1205
  }
 
1206
  ECHO='func_fallback_echo'
 
1207
fi
 
1208
 
 
1209
# func_echo_all arg...
 
1210
# Invoke $ECHO with all args, space-separated.
 
1211
func_echo_all ()
 
1212
{
 
1213
    $ECHO "$*" 
 
1214
}
 
1215
 
 
1216
case "$ECHO" in
 
1217
  printf*) AC_MSG_RESULT([printf]) ;;
 
1218
  print*) AC_MSG_RESULT([print -r]) ;;
 
1219
  *) AC_MSG_RESULT([cat]) ;;
1081
1220
esac
1082
1221
 
1083
 
ECHO=${lt_ECHO-echo}
1084
 
if test "X[$]1" = X--no-reexec; then
1085
 
  # Discard the --no-reexec flag, and continue.
1086
 
  shift
1087
 
elif test "X[$]1" = X--fallback-echo; then
1088
 
  # Avoid inline document here, it may be left over
1089
 
  :
1090
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
 
  # Yippee, $ECHO works!
1092
 
  :
1093
 
else
1094
 
  # Restart under the correct shell.
1095
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1096
 
fi
1097
 
 
1098
 
if test "X[$]1" = X--fallback-echo; then
1099
 
  # used as fallback echo
1100
 
  shift
1101
 
  cat <<_LT_EOF
1102
 
[$]*
1103
 
_LT_EOF
1104
 
  exit 0
1105
 
fi
1106
 
 
1107
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1108
 
# if CDPATH is set.
1109
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1110
 
 
1111
 
if test -z "$lt_ECHO"; then
1112
 
  if test "X${echo_test_string+set}" != Xset; then
1113
 
    # find a string as large as possible, as long as the shell can cope with it
1114
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1118
 
      then
1119
 
        break
1120
 
      fi
1121
 
    done
1122
 
  fi
1123
 
 
1124
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1127
 
    :
1128
 
  else
1129
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1130
 
    # backslashes.  This makes it impossible to quote backslashes using
1131
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1132
 
    #
1133
 
    # So, first we look for a working echo in the user's PATH.
1134
 
 
1135
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
 
    for dir in $PATH /usr/ucb; do
1137
 
      IFS="$lt_save_ifs"
1138
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1142
 
        ECHO="$dir/echo"
1143
 
        break
1144
 
      fi
1145
 
    done
1146
 
    IFS="$lt_save_ifs"
1147
 
 
1148
 
    if test "X$ECHO" = Xecho; then
1149
 
      # We didn't find a better echo, so look for alternatives.
1150
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1153
 
        # This shell has a builtin print -r that does the trick.
1154
 
        ECHO='print -r'
1155
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
 
        # If we have ksh, try running configure again with it.
1158
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
 
        export ORIGINAL_CONFIG_SHELL
1160
 
        CONFIG_SHELL=/bin/ksh
1161
 
        export CONFIG_SHELL
1162
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1163
 
      else
1164
 
        # Try using printf.
1165
 
        ECHO='printf %s\n'
1166
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1169
 
          # Cool, printf works
1170
 
          :
1171
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
 
             test "X$echo_testing_string" = 'X\t' &&
1173
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1175
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1176
 
          export CONFIG_SHELL
1177
 
          SHELL="$CONFIG_SHELL"
1178
 
          export SHELL
1179
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
 
             test "X$echo_testing_string" = 'X\t' &&
1182
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1184
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1185
 
        else
1186
 
          # maybe with a smaller string...
1187
 
          prev=:
1188
 
 
1189
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1191
 
            then
1192
 
              break
1193
 
            fi
1194
 
            prev="$cmd"
1195
 
          done
1196
 
 
1197
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1198
 
            echo_test_string=`eval $prev`
1199
 
            export echo_test_string
1200
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1201
 
          else
1202
 
            # Oops.  We lost completely, so just stick with echo.
1203
 
            ECHO=echo
1204
 
          fi
1205
 
        fi
1206
 
      fi
1207
 
    fi
1208
 
  fi
1209
 
fi
1210
 
 
1211
 
# Copy echo and quote the copy suitably for passing to libtool from
1212
 
# the Makefile, instead of quoting the original, which is used later.
1213
 
lt_ECHO=$ECHO
1214
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1216
 
fi
1217
 
 
1218
 
AC_SUBST(lt_ECHO)
1219
 
])
 
1222
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1223
[_AS_DETECT_SUGGESTED([
 
1224
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1225
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1226
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1227
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1228
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1229
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1230
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1231
 
1220
1232
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
 
_LT_DECL([], [ECHO], [1],
1222
 
    [An echo program that does not interpret backslashes])
 
1233
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1234
])# _LT_PROG_ECHO_BACKSLASH
1224
1235
 
1225
1236
 
 
1237
# _LT_WITH_SYSROOT
 
1238
# ----------------
 
1239
AC_DEFUN([_LT_WITH_SYSROOT],
 
1240
[AC_MSG_CHECKING([for sysroot])
 
1241
AC_ARG_WITH([sysroot],
 
1242
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1243
                        (or the compiler's sysroot if not specified).],
 
1244
[], [with_sysroot=no])
 
1245
 
 
1246
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1247
dnl in case the user passed a directory name.
 
1248
lt_sysroot=
 
1249
case ${with_sysroot} in #(
 
1250
 yes)
 
1251
   if test "$GCC" = yes; then
 
1252
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1253
   fi
 
1254
   ;; #(
 
1255
 /*)
 
1256
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1257
   ;; #(
 
1258
 no|'')
 
1259
   ;; #(
 
1260
 *)
 
1261
   AC_MSG_RESULT([${with_sysroot}])
 
1262
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1263
   ;;
 
1264
esac
 
1265
 
 
1266
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1267
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1268
[dependent libraries, and in which our libraries should be installed.])])
 
1269
 
1226
1270
# _LT_ENABLE_LOCK
1227
1271
# ---------------
1228
1272
m4_defun([_LT_ENABLE_LOCK],
1251
1295
  ;;
1252
1296
*-*-irix6*)
1253
1297
  # Find out which ABI we are using.
1254
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1298
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1255
1299
  if AC_TRY_EVAL(ac_compile); then
1256
1300
    if test "$lt_cv_prog_gnu_ld" = yes; then
1257
1301
      case `/usr/bin/file conftest.$ac_objext` in
1344
1388
    CFLAGS="$SAVE_CFLAGS"
1345
1389
  fi
1346
1390
  ;;
1347
 
sparc*-*solaris*)
 
1391
*-*solaris*)
1348
1392
  # Find out which ABI we are using.
1349
1393
  echo 'int i;' > conftest.$ac_ext
1350
1394
  if AC_TRY_EVAL(ac_compile); then
1351
1395
    case `/usr/bin/file conftest.o` in
1352
1396
    *64-bit*)
1353
1397
      case $lt_cv_prog_gnu_ld in
1354
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
1398
      yes*)
 
1399
        case $host in
 
1400
        i?86-*-solaris*)
 
1401
          LD="${LD-ld} -m elf_x86_64"
 
1402
          ;;
 
1403
        sparc*-*-solaris*)
 
1404
          LD="${LD-ld} -m elf64_sparc"
 
1405
          ;;
 
1406
        esac
 
1407
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
1408
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
1409
          LD="${LD-ld}_sol2"
 
1410
        fi
 
1411
        ;;
1355
1412
      *)
1356
1413
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1357
1414
          LD="${LD-ld} -64"
1369
1426
])# _LT_ENABLE_LOCK
1370
1427
 
1371
1428
 
 
1429
# _LT_PROG_AR
 
1430
# -----------
 
1431
m4_defun([_LT_PROG_AR],
 
1432
[AC_CHECK_TOOLS(AR, [ar], false)
 
1433
: ${AR=ar}
 
1434
: ${AR_FLAGS=cru}
 
1435
_LT_DECL([], [AR], [1], [The archiver])
 
1436
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
1437
 
 
1438
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
1439
  [lt_cv_ar_at_file=no
 
1440
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
1441
     [echo conftest.$ac_objext > conftest.lst
 
1442
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
1443
      AC_TRY_EVAL([lt_ar_try])
 
1444
      if test "$ac_status" -eq 0; then
 
1445
        # Ensure the archiver fails upon bogus file names.
 
1446
        rm -f conftest.$ac_objext libconftest.a
 
1447
        AC_TRY_EVAL([lt_ar_try])
 
1448
        if test "$ac_status" -ne 0; then
 
1449
          lt_cv_ar_at_file=@
 
1450
        fi
 
1451
      fi
 
1452
      rm -f conftest.* libconftest.a
 
1453
     ])
 
1454
  ])
 
1455
 
 
1456
if test "x$lt_cv_ar_at_file" = xno; then
 
1457
  archiver_list_spec=
 
1458
else
 
1459
  archiver_list_spec=$lt_cv_ar_at_file
 
1460
fi
 
1461
_LT_DECL([], [archiver_list_spec], [1],
 
1462
  [How to feed a file listing to the archiver])
 
1463
])# _LT_PROG_AR
 
1464
 
 
1465
 
1372
1466
# _LT_CMD_OLD_ARCHIVE
1373
1467
# -------------------
1374
1468
m4_defun([_LT_CMD_OLD_ARCHIVE],
1375
 
[AC_CHECK_TOOL(AR, ar, false)
1376
 
test -z "$AR" && AR=ar
1377
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1378
 
_LT_DECL([], [AR], [1], [The archiver])
1379
 
_LT_DECL([], [AR_FLAGS], [1])
 
1469
[_LT_PROG_AR
1380
1470
 
1381
1471
AC_CHECK_TOOL(STRIP, strip, :)
1382
1472
test -z "$STRIP" && STRIP=:
1395
1485
if test -n "$RANLIB"; then
1396
1486
  case $host_os in
1397
1487
  openbsd*)
1398
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1488
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1399
1489
    ;;
1400
1490
  *)
1401
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1491
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1402
1492
    ;;
1403
1493
  esac
1404
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1494
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1405
1495
fi
 
1496
 
 
1497
case $host_os in
 
1498
  darwin*)
 
1499
    lock_old_archive_extraction=yes ;;
 
1500
  *)
 
1501
    lock_old_archive_extraction=no ;;
 
1502
esac
1406
1503
_LT_DECL([], [old_postinstall_cmds], [2])
1407
1504
_LT_DECL([], [old_postuninstall_cmds], [2])
1408
1505
_LT_TAGDECL([], [old_archive_cmds], [2],
1409
1506
    [Commands used to build an old-style archive])
 
1507
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1508
    [Whether to use a lock for old archive extraction])
1410
1509
])# _LT_CMD_OLD_ARCHIVE
1411
1510
 
1412
1511
 
1431
1530
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1432
1531
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1433
1532
   -e 's:$: $lt_compiler_flag:'`
1434
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1533
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1435
1534
   (eval "$lt_compile" 2>conftest.err)
1436
1535
   ac_status=$?
1437
1536
   cat conftest.err >&AS_MESSAGE_LOG_FD
1438
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1537
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1439
1538
   if (exit $ac_status) && test -s "$ac_outfile"; then
1440
1539
     # The compiler can only warn and ignore the option if not recognized
1441
1540
     # So say no if there are warnings other than the usual output.
1442
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1541
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1443
1542
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444
1543
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445
1544
       $2=yes
1479
1578
     if test -s conftest.err; then
1480
1579
       # Append any errors to the config.log.
1481
1580
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1581
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1483
1582
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484
1583
       if diff conftest.exp conftest.er2 >/dev/null; then
1485
1584
         $2=yes
1542
1641
    lt_cv_sys_max_cmd_len=8192;
1543
1642
    ;;
1544
1643
 
 
1644
  mint*)
 
1645
    # On MiNT this can take a long time and run out of memory.
 
1646
    lt_cv_sys_max_cmd_len=8192;
 
1647
    ;;
 
1648
 
1545
1649
  amigaos*)
1546
1650
    # On AmigaOS with pdksh, this test takes hours, literally.
1547
1651
    # So we just punt and use a minimum line length of 8192.
1567
1671
    lt_cv_sys_max_cmd_len=196608
1568
1672
    ;;
1569
1673
 
 
1674
  os2*)
 
1675
    # The test takes a long time on OS/2.
 
1676
    lt_cv_sys_max_cmd_len=8192
 
1677
    ;;
 
1678
 
1570
1679
  osf*)
1571
1680
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1572
1681
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1606
1715
      # If test is not a shell built-in, we'll probably end up computing a
1607
1716
      # maximum length that is only half of the actual maximum length, but
1608
1717
      # we can't tell.
1609
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1610
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
1718
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
1719
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1611
1720
              test $i != 17 # 1/2 MB should be enough
1612
1721
      do
1613
1722
        i=`expr $i + 1`
1658
1767
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659
1768
  lt_status=$lt_dlunknown
1660
1769
  cat > conftest.$ac_ext <<_LT_EOF
1661
 
[#line __oline__ "configure"
 
1770
[#line $LINENO "configure"
1662
1771
#include "confdefs.h"
1663
1772
 
1664
1773
#if HAVE_DLFCN_H
1699
1808
#  endif
1700
1809
#endif
1701
1810
 
1702
 
void fnord() { int i=42;}
 
1811
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1812
   correspondingly for the symbols needed.  */
 
1813
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1814
int fnord () __attribute__((visibility("default")));
 
1815
#endif
 
1816
 
 
1817
int fnord () { return 42; }
1703
1818
int main ()
1704
1819
{
1705
1820
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1708
1823
  if (self)
1709
1824
    {
1710
1825
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1711
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1826
      else
 
1827
        {
 
1828
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1829
          else puts (dlerror ());
 
1830
        }
1712
1831
      /* dlclose (self); */
1713
1832
    }
1714
1833
  else
1884
2003
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1885
2004
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1886
2005
   -e 's:$: $lt_compiler_flag:'`
1887
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2006
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1888
2007
   (eval "$lt_compile" 2>out/conftest.err)
1889
2008
   ac_status=$?
1890
2009
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1891
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2010
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1892
2011
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1893
2012
   then
1894
2013
     # The compiler can only warn and ignore the option if not recognized
1895
2014
     # So say no if there are warnings
1896
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2015
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1897
2016
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898
2017
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899
2018
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2052
2171
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053
2172
m4_require([_LT_DECL_OBJDUMP])dnl
2054
2173
m4_require([_LT_DECL_SED])dnl
 
2174
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2055
2175
AC_MSG_CHECKING([dynamic linker characteristics])
2056
2176
m4_if([$1],
2057
2177
        [], [
2060
2180
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
2181
    *) lt_awk_arg="/^libraries:/" ;;
2062
2182
  esac
2063
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2064
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2183
  case $host_os in
 
2184
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2185
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2186
  esac
 
2187
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2188
  case $lt_search_path_spec in
 
2189
  *\;*)
2065
2190
    # if the path contains ";" then we assume it to be the separator
2066
2191
    # otherwise default to the standard path separator (i.e. ":") - it is
2067
2192
    # assumed that no part of a normal pathname contains ";" but that should
2068
2193
    # okay in the real world where ";" in dirpaths is itself problematic.
2069
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2070
 
  else
2071
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2072
 
  fi
 
2194
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2195
    ;;
 
2196
  *)
 
2197
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2198
    ;;
 
2199
  esac
2073
2200
  # Ok, now we have the path, separated by spaces, we can step through it
2074
2201
  # and add multilib dir if necessary.
2075
2202
  lt_tmp_lt_search_path_spec=
2082
2209
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083
2210
    fi
2084
2211
  done
2085
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2212
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2086
2213
BEGIN {RS=" "; FS="/|\n";} {
2087
2214
  lt_foo="";
2088
2215
  lt_count=0;
2102
2229
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103
2230
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104
2231
}'`
2105
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2232
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2233
  # for these hosts.
 
2234
  case $host_os in
 
2235
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2236
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2237
  esac
 
2238
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2106
2239
else
2107
2240
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
2241
fi])
2128
2261
 
2129
2262
case $host_os in
2130
2263
aix3*)
2131
 
  version_type=linux
 
2264
  version_type=linux # correct to gnu/linux during the next big refactor
2132
2265
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2133
2266
  shlibpath_var=LIBPATH
2134
2267
 
2137
2270
  ;;
2138
2271
 
2139
2272
aix[[4-9]]*)
2140
 
  version_type=linux
 
2273
  version_type=linux # correct to gnu/linux during the next big refactor
2141
2274
  need_lib_prefix=no
2142
2275
  need_version=no
2143
2276
  hardcode_into_libs=yes
2190
2323
  m68k)
2191
2324
    library_names_spec='$libname.ixlibrary $libname.a'
2192
2325
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2193
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2326
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2194
2327
    ;;
2195
2328
  esac
2196
2329
  ;;
2202
2335
  ;;
2203
2336
 
2204
2337
bsdi[[45]]*)
2205
 
  version_type=linux
 
2338
  version_type=linux # correct to gnu/linux during the next big refactor
2206
2339
  need_version=no
2207
2340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2208
2341
  soname_spec='${libname}${release}${shared_ext}$major'
2221
2354
  need_version=no
2222
2355
  need_lib_prefix=no
2223
2356
 
2224
 
  case $GCC,$host_os in
2225
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2357
  case $GCC,$cc_basename in
 
2358
  yes,*)
 
2359
    # gcc
2226
2360
    library_names_spec='$libname.dll.a'
2227
2361
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2228
2362
    postinstall_cmds='base_file=`basename \${file}`~
2243
2377
    cygwin*)
2244
2378
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2379
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2380
m4_if([$1], [],[
 
2381
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2247
2382
      ;;
2248
2383
    mingw* | cegcc*)
2249
2384
      # MinGW DLLs use traditional 'lib' prefix
2250
2385
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2253
 
        # It is most probably a Windows format PATH printed by
2254
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2255
 
        # path with ; separators, and with drive letters. We can handle the
2256
 
        # drive letters (cygwin fileutils understands them), so leave them,
2257
 
        # especially as we might pass files found there to a mingw objdump,
2258
 
        # which wouldn't understand a cygwinified path. Ahh.
2259
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2260
 
      else
2261
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2262
 
      fi
2263
2386
      ;;
2264
2387
    pw32*)
2265
2388
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2266
2389
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2267
2390
      ;;
2268
2391
    esac
 
2392
    dynamic_linker='Win32 ld.exe'
 
2393
    ;;
 
2394
 
 
2395
  *,cl*)
 
2396
    # Native MSVC
 
2397
    libname_spec='$name'
 
2398
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2399
    library_names_spec='${libname}.dll.lib'
 
2400
 
 
2401
    case $build_os in
 
2402
    mingw*)
 
2403
      sys_lib_search_path_spec=
 
2404
      lt_save_ifs=$IFS
 
2405
      IFS=';'
 
2406
      for lt_path in $LIB
 
2407
      do
 
2408
        IFS=$lt_save_ifs
 
2409
        # Let DOS variable expansion print the short 8.3 style file name.
 
2410
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2411
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2412
      done
 
2413
      IFS=$lt_save_ifs
 
2414
      # Convert to MSYS style.
 
2415
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2416
      ;;
 
2417
    cygwin*)
 
2418
      # Convert to unix form, then to dos form, then back to unix form
 
2419
      # but this time dos style (no spaces!) so that the unix form looks
 
2420
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2421
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2422
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2423
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2424
      ;;
 
2425
    *)
 
2426
      sys_lib_search_path_spec="$LIB"
 
2427
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2428
        # It is most probably a Windows format PATH.
 
2429
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2430
      else
 
2431
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2432
      fi
 
2433
      # FIXME: find the short name or the path components, as spaces are
 
2434
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
2435
      ;;
 
2436
    esac
 
2437
 
 
2438
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2439
    postinstall_cmds='base_file=`basename \${file}`~
 
2440
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2441
      dldir=$destdir/`dirname \$dlpath`~
 
2442
      test -d \$dldir || mkdir -p \$dldir~
 
2443
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2444
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2445
      dlpath=$dir/\$dldll~
 
2446
       $RM \$dlpath'
 
2447
    shlibpath_overrides_runpath=yes
 
2448
    dynamic_linker='Win32 link.exe'
2269
2449
    ;;
2270
2450
 
2271
2451
  *)
 
2452
    # Assume MSVC wrapper
2272
2453
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2454
    dynamic_linker='Win32 ld.exe'
2273
2455
    ;;
2274
2456
  esac
2275
 
  dynamic_linker='Win32 ld.exe'
2276
2457
  # FIXME: first we should search . and the directory the executable is in
2277
2458
  shlibpath_var=PATH
2278
2459
  ;;
2293
2474
  ;;
2294
2475
 
2295
2476
dgux*)
2296
 
  version_type=linux
 
2477
  version_type=linux # correct to gnu/linux during the next big refactor
2297
2478
  need_lib_prefix=no
2298
2479
  need_version=no
2299
2480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2301
2482
  shlibpath_var=LD_LIBRARY_PATH
2302
2483
  ;;
2303
2484
 
2304
 
freebsd1*)
2305
 
  dynamic_linker=no
2306
 
  ;;
2307
 
 
2308
2485
freebsd* | dragonfly*)
2309
2486
  # DragonFly does not have aout.  When/if they implement a new
2310
2487
  # versioning mechanism, adjust this.
2312
2489
    objformat=`/usr/bin/objformat`
2313
2490
  else
2314
2491
    case $host_os in
2315
 
    freebsd[[123]]*) objformat=aout ;;
 
2492
    freebsd[[23]].*) objformat=aout ;;
2316
2493
    *) objformat=elf ;;
2317
2494
    esac
2318
2495
  fi
2330
2507
  esac
2331
2508
  shlibpath_var=LD_LIBRARY_PATH
2332
2509
  case $host_os in
2333
 
  freebsd2*)
 
2510
  freebsd2.*)
2334
2511
    shlibpath_overrides_runpath=yes
2335
2512
    ;;
2336
2513
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2350
2527
  ;;
2351
2528
 
2352
2529
gnu*)
2353
 
  version_type=linux
 
2530
  version_type=linux # correct to gnu/linux during the next big refactor
2354
2531
  need_lib_prefix=no
2355
2532
  need_version=no
2356
2533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2357
2534
  soname_spec='${libname}${release}${shared_ext}$major'
2358
2535
  shlibpath_var=LD_LIBRARY_PATH
 
2536
  shlibpath_overrides_runpath=no
 
2537
  hardcode_into_libs=yes
 
2538
  ;;
 
2539
 
 
2540
haiku*)
 
2541
  version_type=linux # correct to gnu/linux during the next big refactor
 
2542
  need_lib_prefix=no
 
2543
  need_version=no
 
2544
  dynamic_linker="$host_os runtime_loader"
 
2545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2546
  soname_spec='${libname}${release}${shared_ext}$major'
 
2547
  shlibpath_var=LIBRARY_PATH
 
2548
  shlibpath_overrides_runpath=yes
 
2549
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2359
2550
  hardcode_into_libs=yes
2360
2551
  ;;
2361
2552
 
2401
2592
    soname_spec='${libname}${release}${shared_ext}$major'
2402
2593
    ;;
2403
2594
  esac
2404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2595
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405
2596
  postinstall_cmds='chmod 555 $lib'
 
2597
  # or fails outright, so override atomically:
 
2598
  install_override_mode=555
2406
2599
  ;;
2407
2600
 
2408
2601
interix[[3-9]]*)
2409
 
  version_type=linux
 
2602
  version_type=linux # correct to gnu/linux during the next big refactor
2410
2603
  need_lib_prefix=no
2411
2604
  need_version=no
2412
2605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2422
2615
    nonstopux*) version_type=nonstopux ;;
2423
2616
    *)
2424
2617
        if test "$lt_cv_prog_gnu_ld" = yes; then
2425
 
                version_type=linux
 
2618
                version_type=linux # correct to gnu/linux during the next big refactor
2426
2619
        else
2427
2620
                version_type=irix
2428
2621
        fi ;;
2459
2652
  dynamic_linker=no
2460
2653
  ;;
2461
2654
 
2462
 
# This must be Linux ELF.
2463
 
linux* | k*bsd*-gnu)
2464
 
  version_type=linux
 
2655
# This must be glibc/ELF.
 
2656
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
2657
  version_type=linux # correct to gnu/linux during the next big refactor
2465
2658
  need_lib_prefix=no
2466
2659
  need_version=no
2467
2660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2469
2662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2663
  shlibpath_var=LD_LIBRARY_PATH
2471
2664
  shlibpath_overrides_runpath=no
 
2665
 
2472
2666
  # Some binutils ld are patched to set DT_RUNPATH
2473
 
  save_LDFLAGS=$LDFLAGS
2474
 
  save_libdir=$libdir
2475
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2476
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2477
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2478
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2479
 
       [shlibpath_overrides_runpath=yes])])
2480
 
  LDFLAGS=$save_LDFLAGS
2481
 
  libdir=$save_libdir
 
2667
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2668
    [lt_cv_shlibpath_overrides_runpath=no
 
2669
    save_LDFLAGS=$LDFLAGS
 
2670
    save_libdir=$libdir
 
2671
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2672
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2673
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2674
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2675
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2676
    LDFLAGS=$save_LDFLAGS
 
2677
    libdir=$save_libdir
 
2678
    ])
 
2679
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2482
2680
 
2483
2681
  # This implies no fast_install, which is unacceptable.
2484
2682
  # Some rework will be needed to allow for fast_install
2487
2685
 
2488
2686
  # Append ld.so.conf contents to the search path
2489
2687
  if test -f /etc/ld.so.conf; then
2490
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
2688
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2491
2689
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492
2690
  fi
2493
2691
 
2500
2698
  dynamic_linker='GNU/Linux ld.so'
2501
2699
  ;;
2502
2700
 
 
2701
netbsdelf*-gnu)
 
2702
  version_type=linux
 
2703
  need_lib_prefix=no
 
2704
  need_version=no
 
2705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2706
  soname_spec='${libname}${release}${shared_ext}$major'
 
2707
  shlibpath_var=LD_LIBRARY_PATH
 
2708
  shlibpath_overrides_runpath=no
 
2709
  hardcode_into_libs=yes
 
2710
  dynamic_linker='NetBSD ld.elf_so'
 
2711
  ;;
 
2712
 
2503
2713
netbsd*)
2504
2714
  version_type=sunos
2505
2715
  need_lib_prefix=no
2519
2729
  ;;
2520
2730
 
2521
2731
newsos6)
2522
 
  version_type=linux
 
2732
  version_type=linux # correct to gnu/linux during the next big refactor
2523
2733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2524
2734
  shlibpath_var=LD_LIBRARY_PATH
2525
2735
  shlibpath_overrides_runpath=yes
2588
2798
  ;;
2589
2799
 
2590
2800
solaris*)
2591
 
  version_type=linux
 
2801
  version_type=linux # correct to gnu/linux during the next big refactor
2592
2802
  need_lib_prefix=no
2593
2803
  need_version=no
2594
2804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2613
2823
  ;;
2614
2824
 
2615
2825
sysv4 | sysv4.3*)
2616
 
  version_type=linux
 
2826
  version_type=linux # correct to gnu/linux during the next big refactor
2617
2827
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2618
2828
  soname_spec='${libname}${release}${shared_ext}$major'
2619
2829
  shlibpath_var=LD_LIBRARY_PATH
2637
2847
 
2638
2848
sysv4*MP*)
2639
2849
  if test -d /usr/nec ;then
2640
 
    version_type=linux
 
2850
    version_type=linux # correct to gnu/linux during the next big refactor
2641
2851
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2642
2852
    soname_spec='$libname${shared_ext}.$major'
2643
2853
    shlibpath_var=LD_LIBRARY_PATH
2668
2878
 
2669
2879
tpf*)
2670
2880
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2671
 
  version_type=linux
 
2881
  version_type=linux # correct to gnu/linux during the next big refactor
2672
2882
  need_lib_prefix=no
2673
2883
  need_version=no
2674
2884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2678
2888
  ;;
2679
2889
 
2680
2890
uts4*)
2681
 
  version_type=linux
 
2891
  version_type=linux # correct to gnu/linux during the next big refactor
2682
2892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2683
2893
  soname_spec='${libname}${release}${shared_ext}$major'
2684
2894
  shlibpath_var=LD_LIBRARY_PATH
2720
2930
    The last name is the one that the linker finds with -lNAME]])
2721
2931
_LT_DECL([], [soname_spec], [1],
2722
2932
    [[The coded name of the library, if different from the real name]])
 
2933
_LT_DECL([], [install_override_mode], [1],
 
2934
    [Permission mode override for installation of shared libraries])
2723
2935
_LT_DECL([], [postinstall_cmds], [2],
2724
2936
    [Command to use after installation of a shared archive])
2725
2937
_LT_DECL([], [postuninstall_cmds], [2],
2832
3044
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2833
3045
m4_require([_LT_DECL_SED])dnl
2834
3046
m4_require([_LT_DECL_EGREP])dnl
 
3047
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2835
3048
 
2836
3049
AC_ARG_WITH([gnu-ld],
2837
3050
    [AS_HELP_STRING([--with-gnu-ld],
2953
3166
esac
2954
3167
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2955
3168
case $host_os in
 
3169
  cygwin* | mingw* | pw32* | cegcc*)
 
3170
    if test "$GCC" != yes; then
 
3171
      reload_cmds=false
 
3172
    fi
 
3173
    ;;
2956
3174
  darwin*)
2957
3175
    if test "$GCC" = yes; then
2958
3176
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2961
3179
    fi
2962
3180
    ;;
2963
3181
esac
2964
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2965
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3182
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3183
_LT_TAGDECL([], [reload_cmds], [2])dnl
2966
3184
])# _LT_CMD_RELOAD
2967
3185
 
2968
3186
 
3014
3232
  # Base MSYS/MinGW do not provide the 'file' command needed by
3015
3233
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3016
3234
  # unless we find 'file', for example because we are cross-compiling.
3017
 
  if ( file / ) >/dev/null 2>&1; then
 
3235
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3236
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3018
3237
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3019
3238
    lt_cv_file_magic_cmd='func_win32_libid'
3020
3239
  else
3021
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3240
    # Keep this pattern in sync with the one in func_win32_libid.
 
3241
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3022
3242
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3023
3243
  fi
3024
3244
  ;;
3025
3245
 
3026
 
cegcc)
 
3246
cegcc*)
3027
3247
  # use the weaker test based on 'objdump'. See mingw*.
3028
3248
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3029
3249
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3053
3273
  lt_cv_deplibs_check_method=pass_all
3054
3274
  ;;
3055
3275
 
 
3276
haiku*)
 
3277
  lt_cv_deplibs_check_method=pass_all
 
3278
  ;;
 
3279
 
3056
3280
hpux10.20* | hpux11*)
3057
3281
  lt_cv_file_magic_cmd=/usr/bin/file
3058
3282
  case $host_cpu in
3061
3285
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3062
3286
    ;;
3063
3287
  hppa*64*)
3064
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3288
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3065
3289
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3066
3290
    ;;
3067
3291
  *)
3068
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3292
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3069
3293
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3070
3294
    ;;
3071
3295
  esac
3086
3310
  lt_cv_deplibs_check_method=pass_all
3087
3311
  ;;
3088
3312
 
3089
 
# This must be Linux ELF.
3090
 
linux* | k*bsd*-gnu)
 
3313
# This must be glibc/ELF.
 
3314
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3091
3315
  lt_cv_deplibs_check_method=pass_all
3092
3316
  ;;
3093
3317
 
3094
 
netbsd*)
 
3318
netbsd* | netbsdelf*-gnu)
3095
3319
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3096
3320
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3097
3321
  else
3165
3389
  ;;
3166
3390
esac
3167
3391
])
 
3392
 
 
3393
file_magic_glob=
 
3394
want_nocaseglob=no
 
3395
if test "$build" = "$host"; then
 
3396
  case $host_os in
 
3397
  mingw* | pw32*)
 
3398
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3399
      want_nocaseglob=yes
 
3400
    else
 
3401
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3402
    fi
 
3403
    ;;
 
3404
  esac
 
3405
fi
 
3406
 
3168
3407
file_magic_cmd=$lt_cv_file_magic_cmd
3169
3408
deplibs_check_method=$lt_cv_deplibs_check_method
3170
3409
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3172
3411
_LT_DECL([], [deplibs_check_method], [1],
3173
3412
    [Method to check whether dependent libraries are shared objects])
3174
3413
_LT_DECL([], [file_magic_cmd], [1],
3175
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3414
    [Command to use when deplibs_check_method = "file_magic"])
 
3415
_LT_DECL([], [file_magic_glob], [1],
 
3416
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3417
_LT_DECL([], [want_nocaseglob], [1],
 
3418
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3176
3419
])# _LT_CHECK_MAGIC_METHOD
3177
3420
 
3178
3421
 
3229
3472
  NM="$lt_cv_path_NM"
3230
3473
else
3231
3474
  # Didn't find any BSD compatible name lister, look for dumpbin.
3232
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3475
  if test -n "$DUMPBIN"; then :
 
3476
    # Let the user override the test.
 
3477
  else
 
3478
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3479
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3480
    *COFF*)
 
3481
      DUMPBIN="$DUMPBIN -symbols"
 
3482
      ;;
 
3483
    *)
 
3484
      DUMPBIN=:
 
3485
      ;;
 
3486
    esac
 
3487
  fi
3233
3488
  AC_SUBST([DUMPBIN])
3234
3489
  if test "$DUMPBIN" != ":"; then
3235
3490
    NM="$DUMPBIN"
3242
3497
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3243
3498
  [lt_cv_nm_interface="BSD nm"
3244
3499
  echo "int some_variable = 0;" > conftest.$ac_ext
3245
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3500
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3246
3501
  (eval "$ac_compile" 2>conftest.err)
3247
3502
  cat conftest.err >&AS_MESSAGE_LOG_FD
3248
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3503
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3249
3504
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3250
3505
  cat conftest.err >&AS_MESSAGE_LOG_FD
3251
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3506
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3252
3507
  cat conftest.out >&AS_MESSAGE_LOG_FD
3253
3508
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3254
3509
    lt_cv_nm_interface="MS dumpbin"
3263
3518
dnl AC_DEFUN([AM_PROG_NM], [])
3264
3519
dnl AC_DEFUN([AC_PROG_NM], [])
3265
3520
 
 
3521
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3522
# --------------------------------
 
3523
# how to determine the name of the shared library
 
3524
# associated with a specific link library.
 
3525
#  -- PORTME fill in with the dynamic library characteristics
 
3526
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3527
[m4_require([_LT_DECL_EGREP])
 
3528
m4_require([_LT_DECL_OBJDUMP])
 
3529
m4_require([_LT_DECL_DLLTOOL])
 
3530
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3531
lt_cv_sharedlib_from_linklib_cmd,
 
3532
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3533
 
 
3534
case $host_os in
 
3535
cygwin* | mingw* | pw32* | cegcc*)
 
3536
  # two different shell functions defined in ltmain.sh
 
3537
  # decide which to use based on capabilities of $DLLTOOL
 
3538
  case `$DLLTOOL --help 2>&1` in
 
3539
  *--identify-strict*)
 
3540
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3541
    ;;
 
3542
  *)
 
3543
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3544
    ;;
 
3545
  esac
 
3546
  ;;
 
3547
*)
 
3548
  # fallback: assume linklib IS sharedlib
 
3549
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3550
  ;;
 
3551
esac
 
3552
])
 
3553
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3554
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3555
 
 
3556
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3557
    [Command to associate shared and link libraries])
 
3558
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3559
 
 
3560
 
 
3561
# _LT_PATH_MANIFEST_TOOL
 
3562
# ----------------------
 
3563
# locate the manifest tool
 
3564
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3565
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3566
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3567
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3568
  [lt_cv_path_mainfest_tool=no
 
3569
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3570
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3571
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3572
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3573
    lt_cv_path_mainfest_tool=yes
 
3574
  fi
 
3575
  rm -f conftest*])
 
3576
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3577
  MANIFEST_TOOL=:
 
3578
fi
 
3579
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3580
])# _LT_PATH_MANIFEST_TOOL
 
3581
 
3266
3582
 
3267
3583
# LT_LIB_M
3268
3584
# --------
3271
3587
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3272
3588
LIBM=
3273
3589
case $host in
3274
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3590
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3275
3591
  # These system don't have libm, or don't need it
3276
3592
  ;;
3277
3593
*-ncr-sysv4.3*)
3299
3615
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3300
3616
 
3301
3617
if test "$GCC" = yes; then
3302
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3618
  case $cc_basename in
 
3619
  nvcc*)
 
3620
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3621
  *)
 
3622
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3623
  esac
3303
3624
 
3304
3625
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3305
3626
    lt_cv_prog_compiler_rtti_exceptions,
3316
3637
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3317
3638
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3318
3639
AC_REQUIRE([AC_PROG_CC])dnl
 
3640
AC_REQUIRE([AC_PROG_AWK])dnl
3319
3641
AC_REQUIRE([LT_PATH_NM])dnl
3320
3642
AC_REQUIRE([LT_PATH_LD])dnl
3321
3643
m4_require([_LT_DECL_SED])dnl
3383
3705
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3384
3706
 
3385
3707
# Transform an extracted symbol line into symbol name and symbol address
3386
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3387
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
3708
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3709
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3388
3710
 
3389
3711
# Handle CRLF in mingw tool chain
3390
3712
opt_cr=
3408
3730
    # which start with @ or ?.
3409
3731
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3410
3732
"     {last_section=section; section=\$ 3};"\
 
3733
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3411
3734
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3412
3735
"     \$ 0!~/External *\|/{next};"\
3413
3736
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3420
3743
  else
3421
3744
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3422
3745
  fi
 
3746
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3423
3747
 
3424
3748
  # Check to see that the pipe works correctly.
3425
3749
  pipe_works=no
3441
3765
  if AC_TRY_EVAL(ac_compile); then
3442
3766
    # Now try to grab the symbols.
3443
3767
    nlist=conftest.nm
3444
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3768
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3445
3769
      # Try sorting and uniquifying the output.
3446
3770
      if sort "$nlist" | uniq > "$nlist"T; then
3447
3771
        mv -f "$nlist"T "$nlist"
3453
3777
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3454
3778
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3455
3779
          cat <<_LT_EOF > conftest.$ac_ext
 
3780
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3781
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3782
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3783
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3784
# define LT@&t@_DLSYM_CONST
 
3785
#elif defined(__osf__)
 
3786
/* This system does not cope well with relocations in const data.  */
 
3787
# define LT@&t@_DLSYM_CONST
 
3788
#else
 
3789
# define LT@&t@_DLSYM_CONST const
 
3790
#endif
 
3791
 
3456
3792
#ifdef __cplusplus
3457
3793
extern "C" {
3458
3794
#endif
3464
3800
          cat <<_LT_EOF >> conftest.$ac_ext
3465
3801
 
3466
3802
/* The mapping between symbol names and symbols.  */
3467
 
const struct {
 
3803
LT@&t@_DLSYM_CONST struct {
3468
3804
  const char *name;
3469
3805
  void       *address;
3470
3806
}
3490
3826
_LT_EOF
3491
3827
          # Now try linking the two files.
3492
3828
          mv conftest.$ac_objext conftstm.$ac_objext
3493
 
          lt_save_LIBS="$LIBS"
3494
 
          lt_save_CFLAGS="$CFLAGS"
 
3829
          lt_globsym_save_LIBS=$LIBS
 
3830
          lt_globsym_save_CFLAGS=$CFLAGS
3495
3831
          LIBS="conftstm.$ac_objext"
3496
3832
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3497
3833
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3498
3834
            pipe_works=yes
3499
3835
          fi
3500
 
          LIBS="$lt_save_LIBS"
3501
 
          CFLAGS="$lt_save_CFLAGS"
 
3836
          LIBS=$lt_globsym_save_LIBS
 
3837
          CFLAGS=$lt_globsym_save_CFLAGS
3502
3838
        else
3503
3839
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3504
3840
        fi
3531
3867
  AC_MSG_RESULT(ok)
3532
3868
fi
3533
3869
 
 
3870
# Response file support.
 
3871
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3872
  nm_file_list_spec='@'
 
3873
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3874
  nm_file_list_spec='@'
 
3875
fi
 
3876
 
3534
3877
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3535
3878
    [Take the output of nm and produce a listing of raw symbols and C names])
3536
3879
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3541
3884
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3542
3885
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3543
3886
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3887
_LT_DECL([], [nm_file_list_spec], [1],
 
3888
    [Specify filename containing input files for $NM])
3544
3889
]) # _LT_CMD_GLOBAL_SYMBOLS
3545
3890
 
3546
3891
 
3552
3897
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3553
3898
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3554
3899
 
3555
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3556
3900
m4_if([$1], [CXX], [
3557
3901
  # C++ specific cases for pic, static, wl, etc.
3558
3902
  if test "$GXX" = yes; then
3603
3947
      # DJGPP does not support shared libraries at all
3604
3948
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3605
3949
      ;;
 
3950
    haiku*)
 
3951
      # PIC is the default for Haiku.
 
3952
      # The "-static" flag exists, but is broken.
 
3953
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3954
      ;;
3606
3955
    interix[[3-9]]*)
3607
3956
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3608
3957
      # Instead, we relocate shared libraries at runtime.
3652
4001
          ;;
3653
4002
        esac
3654
4003
        ;;
 
4004
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4005
        # This hack is so that the source file can tell whether it is being
 
4006
        # built for inclusion in a dll (and should export symbols for example).
 
4007
        m4_if([$1], [GCJ], [],
 
4008
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4009
        ;;
3655
4010
      dgux*)
3656
4011
        case $cc_basename in
3657
4012
          ec++*)
3708
4063
            ;;
3709
4064
        esac
3710
4065
        ;;
3711
 
      linux* | k*bsd*-gnu)
 
4066
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3712
4067
        case $cc_basename in
3713
4068
          KCC*)
3714
4069
            # KAI C++ Compiler
3741
4096
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3742
4097
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3743
4098
            ;;
3744
 
          xlc* | xlC*)
3745
 
            # IBM XL 8.0 on PPC
 
4099
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4100
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3746
4101
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3747
4102
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3748
4103
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3772
4127
            ;;
3773
4128
        esac
3774
4129
        ;;
3775
 
      netbsd*)
 
4130
      netbsd* | netbsdelf*-gnu)
3776
4131
        ;;
3777
4132
      *qnx* | *nto*)
3778
4133
        # QNX uses GNU C++, but need to define -shared option too, otherwise
3804
4159
        ;;
3805
4160
      solaris*)
3806
4161
        case $cc_basename in
3807
 
          CC*)
 
4162
          CC* | sunCC*)
3808
4163
            # Sun C++ 4.2, 5.x and Centerline C++
3809
4164
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3810
4165
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3908
4263
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3909
4264
      ;;
3910
4265
 
 
4266
    haiku*)
 
4267
      # PIC is the default for Haiku.
 
4268
      # The "-static" flag exists, but is broken.
 
4269
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4270
      ;;
 
4271
 
3911
4272
    hpux*)
3912
4273
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3913
4274
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3950
4311
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3951
4312
      ;;
3952
4313
    esac
 
4314
 
 
4315
    case $cc_basename in
 
4316
    nvcc*) # Cuda Compiler Driver 2.2
 
4317
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4318
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4319
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4320
      fi
 
4321
      ;;
 
4322
    esac
3953
4323
  else
3954
4324
    # PORTME Check for flag to pass linker flags through the system compiler.
3955
4325
    case $host_os in
3992
4362
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3993
4363
      ;;
3994
4364
 
3995
 
    linux* | k*bsd*-gnu)
 
4365
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3996
4366
      case $cc_basename in
3997
4367
      # old Intel for x86_64 which still supported -KPIC.
3998
4368
      ecc*)
4013
4383
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4014
4384
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4015
4385
        ;;
4016
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4386
      nagfor*)
 
4387
        # NAG Fortran compiler
 
4388
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4389
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4390
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4391
        ;;
 
4392
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4017
4393
        # Portland Group compilers (*not* the Pentium gcc compiler,
4018
4394
        # which looks to be a dead project)
4019
4395
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025
4401
        # All Alpha code is PIC.
4026
4402
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4027
4403
        ;;
4028
 
      xl*)
4029
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4404
      xl* | bgxl* | bgf* | mpixl*)
 
4405
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4030
4406
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031
4407
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4032
4408
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4033
4409
        ;;
4034
4410
      *)
4035
4411
        case `$CC -V 2>&1 | sed 5q` in
 
4412
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
4413
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4414
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4415
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4416
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4417
          ;;
 
4418
        *Sun\ F* | *Sun*Fortran*)
 
4419
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4420
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4421
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4422
          ;;
4036
4423
        *Sun\ C*)
4037
4424
          # Sun C 5.9
4038
4425
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4039
4426
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4040
4427
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4041
4428
          ;;
4042
 
        *Sun\ F*)
4043
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4044
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4429
        *Intel*\ [[CF]]*Compiler*)
 
4430
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4431
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4432
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4433
          ;;
 
4434
        *Portland\ Group*)
 
4435
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4436
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4045
4437
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4046
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4047
4438
          ;;
4048
4439
        esac
4049
4440
        ;;
4075
4466
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4076
4467
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4077
4468
      case $cc_basename in
4078
 
      f77* | f90* | f95*)
 
4469
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4079
4470
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4080
4471
      *)
4081
4472
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4132
4523
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4133
4524
    ;;
4134
4525
esac
4135
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4136
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4137
 
        [How to pass a linker flag through the compiler])
 
4526
 
 
4527
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4528
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4529
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4530
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4138
4531
 
4139
4532
#
4140
4533
# Check to make sure the PIC flag actually works.
4153
4546
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4154
4547
        [Additional compiler flags for building library objects])
4155
4548
 
 
4549
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4550
        [How to pass a linker flag through the compiler])
4156
4551
#
4157
4552
# Check to make sure the static flag actually works.
4158
4553
#
4173
4568
m4_defun([_LT_LINKER_SHLIBS],
4174
4569
[AC_REQUIRE([LT_PATH_LD])dnl
4175
4570
AC_REQUIRE([LT_PATH_NM])dnl
 
4571
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4176
4572
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4177
4573
m4_require([_LT_DECL_EGREP])dnl
4178
4574
m4_require([_LT_DECL_SED])dnl
4181
4577
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4182
4578
m4_if([$1], [CXX], [
4183
4579
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4580
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4184
4581
  case $host_os in
4185
4582
  aix[[4-9]]*)
4186
4583
    # If we're using GNU nm, then we don't want the "-C" option.
4187
4584
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4585
    # Also, AIX nm treats weak defined symbols like other global defined
 
4586
    # symbols, whereas GNU nm marks them as "W".
4188
4587
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4189
 
      _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'
 
4588
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4190
4589
    else
4191
4590
      _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'
4192
4591
    fi
4193
4592
    ;;
4194
4593
  pw32*)
4195
4594
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4196
 
  ;;
 
4595
    ;;
4197
4596
  cygwin* | mingw* | cegcc*)
4198
 
    _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'
4199
 
  ;;
 
4597
    case $cc_basename in
 
4598
    cl*)
 
4599
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
4600
      ;;
 
4601
    *)
 
4602
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
4603
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4604
      ;;
 
4605
    esac
 
4606
    ;;
 
4607
  linux* | k*bsd*-gnu | gnu*)
 
4608
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4609
    ;;
4200
4610
  *)
4201
4611
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4202
 
  ;;
 
4612
    ;;
4203
4613
  esac
4204
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4205
4614
], [
4206
4615
  runpath_var=
4207
4616
  _LT_TAGVAR(allow_undefined_flag, $1)=
4216
4625
  _LT_TAGVAR(hardcode_direct, $1)=no
4217
4626
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4218
4627
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4219
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4220
4628
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4221
4629
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4222
4630
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4261
4669
  openbsd*)
4262
4670
    with_gnu_ld=no
4263
4671
    ;;
 
4672
  linux* | k*bsd*-gnu | gnu*)
 
4673
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4674
    ;;
4264
4675
  esac
4265
4676
 
4266
4677
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4678
 
 
4679
  # On some targets, GNU ld is compatible enough with the native linker
 
4680
  # that we're better off using the native interface for both.
 
4681
  lt_use_gnu_ld_interface=no
4267
4682
  if test "$with_gnu_ld" = yes; then
 
4683
    case $host_os in
 
4684
      aix*)
 
4685
        # The AIX port of GNU ld has always aspired to compatibility
 
4686
        # with the native linker.  However, as the warning in the GNU ld
 
4687
        # block says, versions before 2.19.5* couldn't really create working
 
4688
        # shared libraries, regardless of the interface used.
 
4689
        case `$LD -v 2>&1` in
 
4690
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4691
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4692
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4693
          *)
 
4694
            lt_use_gnu_ld_interface=yes
 
4695
            ;;
 
4696
        esac
 
4697
        ;;
 
4698
      *)
 
4699
        lt_use_gnu_ld_interface=yes
 
4700
        ;;
 
4701
    esac
 
4702
  fi
 
4703
 
 
4704
  if test "$lt_use_gnu_ld_interface" = yes; then
4268
4705
    # If archive_cmds runs LD, not CC, wlarc should be empty
4269
4706
    wlarc='${wl}'
4270
4707
 
4282
4719
    fi
4283
4720
    supports_anon_versioning=no
4284
4721
    case `$LD -v 2>&1` in
 
4722
      *GNU\ gold*) supports_anon_versioning=yes ;;
4285
4723
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4286
4724
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4287
4725
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4297
4735
        _LT_TAGVAR(ld_shlibs, $1)=no
4298
4736
        cat <<_LT_EOF 1>&2
4299
4737
 
4300
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4738
*** Warning: the GNU linker, at least up to release 2.19, is reported
4301
4739
*** to be unable to reliably create shared libraries on AIX.
4302
4740
*** Therefore, libtool is disabling shared libraries support.  If you
4303
 
*** really care for shared libraries, you may want to modify your PATH
4304
 
*** so that a non-GNU linker is found, and then restart.
 
4741
*** really care for shared libraries, you may want to install binutils
 
4742
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4743
*** You will then need to restart the configuration process.
4305
4744
 
4306
4745
_LT_EOF
4307
4746
      fi
4337
4776
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4338
4777
      # as there is no search path for DLLs.
4339
4778
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4779
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4340
4780
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4341
4781
      _LT_TAGVAR(always_export_symbols, $1)=no
4342
4782
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4343
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4783
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
4784
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4344
4785
 
4345
4786
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4346
4787
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4358
4799
      fi
4359
4800
      ;;
4360
4801
 
 
4802
    haiku*)
 
4803
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4804
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4805
      ;;
 
4806
 
4361
4807
    interix[[3-9]]*)
4362
4808
      _LT_TAGVAR(hardcode_direct, $1)=no
4363
4809
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4373
4819
      _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'
4374
4820
      ;;
4375
4821
 
4376
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4822
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4377
4823
      tmp_diet=no
4378
4824
      if test "$host_os" = linux-dietlibc; then
4379
4825
        case $cc_basename in
4383
4829
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4384
4830
         && test "$tmp_diet" = no
4385
4831
      then
4386
 
        tmp_addflag=
 
4832
        tmp_addflag=' $pic_flag'
4387
4833
        tmp_sharedflag='-shared'
4388
4834
        case $cc_basename,$host_cpu in
4389
4835
        pgcc*)                          # Portland Group C compiler
4390
 
          _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'
 
4836
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4391
4837
          tmp_addflag=' $pic_flag'
4392
4838
          ;;
4393
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4394
 
          _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'
 
4839
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4840
                                        # Portland Group f77 and f90 compilers
 
4841
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4395
4842
          tmp_addflag=' $pic_flag -Mnomain' ;;
4396
4843
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4397
4844
          tmp_addflag=' -i_dynamic' ;;
4402
4849
        lf95*)                          # Lahey Fortran 8.1
4403
4850
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4404
4851
          tmp_sharedflag='--shared' ;;
4405
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4852
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4406
4853
          tmp_sharedflag='-qmkshrobj'
4407
4854
          tmp_addflag= ;;
 
4855
        nvcc*)  # Cuda Compiler Driver 2.2
 
4856
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
4857
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4858
          ;;
4408
4859
        esac
4409
4860
        case `$CC -V 2>&1 | sed 5q` in
4410
4861
        *Sun\ C*)                       # Sun C 5.9
4411
 
          _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'
 
4862
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4412
4863
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4413
4864
          tmp_sharedflag='-G' ;;
4414
4865
        *Sun\ F*)                       # Sun Fortran 8.3
4424
4875
        fi
4425
4876
 
4426
4877
        case $cc_basename in
4427
 
        xlf*)
 
4878
        xlf* | bgf* | bgxlf* | mpixlf*)
4428
4879
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4429
4880
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4430
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4431
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4432
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4881
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4882
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4433
4883
          if test "x$supports_anon_versioning" = xyes; then
4434
4884
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4435
4885
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4436
4886
              echo "local: *; };" >> $output_objdir/$libname.ver~
4437
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4887
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4438
4888
          fi
4439
4889
          ;;
4440
4890
        esac
4443
4893
      fi
4444
4894
      ;;
4445
4895
 
4446
 
    netbsd*)
 
4896
    netbsd* | netbsdelf*-gnu)
4447
4897
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4448
4898
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4449
4899
        wlarc=
4450
4900
      else
4451
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4452
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4901
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4902
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4453
4903
      fi
4454
4904
      ;;
4455
4905
 
4467
4917
 
4468
4918
_LT_EOF
4469
4919
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4470
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4920
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4921
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4472
4922
      else
4473
4923
        _LT_TAGVAR(ld_shlibs, $1)=no
4474
4924
      fi
4514
4964
 
4515
4965
    *)
4516
4966
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4517
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4518
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4967
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4968
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4519
4969
      else
4520
4970
        _LT_TAGVAR(ld_shlibs, $1)=no
4521
4971
      fi
4555
5005
      else
4556
5006
        # If we're using GNU nm, then we don't want the "-C" option.
4557
5007
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5008
        # Also, AIX nm treats weak defined symbols like other global
 
5009
        # defined symbols, whereas GNU nm marks them as "W".
4558
5010
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4559
 
          _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'
 
5011
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4560
5012
        else
4561
5013
          _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'
4562
5014
        fi
4618
5070
        if test "$aix_use_runtimelinking" = yes; then
4619
5071
          shared_flag="$shared_flag "'${wl}-G'
4620
5072
        fi
 
5073
        _LT_TAGVAR(link_all_deplibs, $1)=no
4621
5074
      else
4622
5075
        # not using gcc
4623
5076
        if test "$host_cpu" = ia64; then
4643
5096
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4644
5097
        # Determine the default libpath from the value encoded in an
4645
5098
        # empty executable.
4646
 
        _LT_SYS_MODULE_PATH_AIX
 
5099
        _LT_SYS_MODULE_PATH_AIX([$1])
4647
5100
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4648
 
        _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"
 
5101
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4649
5102
      else
4650
5103
        if test "$host_cpu" = ia64; then
4651
5104
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4654
5107
        else
4655
5108
         # Determine the default libpath from the value encoded in an
4656
5109
         # empty executable.
4657
 
         _LT_SYS_MODULE_PATH_AIX
 
5110
         _LT_SYS_MODULE_PATH_AIX([$1])
4658
5111
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4659
5112
          # Warning - without using the other run time loading flags,
4660
5113
          # -berok will link without error, but may produce a broken library.
4661
5114
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4662
5115
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4663
 
          # Exported symbols can be pulled into shared objects from archives
4664
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5116
          if test "$with_gnu_ld" = yes; then
 
5117
            # We only use this code for GNU lds that support --whole-archive.
 
5118
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5119
          else
 
5120
            # Exported symbols can be pulled into shared objects from archives
 
5121
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5122
          fi
4665
5123
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4666
5124
          # This is similar to how AIX traditionally builds its shared libraries.
4667
5125
          _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'
4693
5151
      # Microsoft Visual C++.
4694
5152
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4695
5153
      # no search path for DLLs.
4696
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4697
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4698
 
      # Tell ltmain to make .lib files, not .a files.
4699
 
      libext=lib
4700
 
      # Tell ltmain to make .dll files, not .so files.
4701
 
      shrext_cmds=".dll"
4702
 
      # FIXME: Setting linknames here is a bad hack.
4703
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4704
 
      # The linker will automatically build a .lib file if we build a DLL.
4705
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4706
 
      # FIXME: Should let the user specify the lib program.
4707
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4708
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4709
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5154
      case $cc_basename in
 
5155
      cl*)
 
5156
        # Native MSVC
 
5157
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5158
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5159
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5160
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5161
        # Tell ltmain to make .lib files, not .a files.
 
5162
        libext=lib
 
5163
        # Tell ltmain to make .dll files, not .so files.
 
5164
        shrext_cmds=".dll"
 
5165
        # FIXME: Setting linknames here is a bad hack.
 
5166
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5167
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5168
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5169
          else
 
5170
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5171
          fi~
 
5172
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5173
          linknames='
 
5174
        # The linker will not automatically build a static lib if we build a DLL.
 
5175
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5176
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5177
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5178
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5179
        # Don't use ranlib
 
5180
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5181
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5182
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5183
          case $lt_outputfile in
 
5184
            *.exe|*.EXE) ;;
 
5185
            *)
 
5186
              lt_outputfile="$lt_outputfile.exe"
 
5187
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5188
              ;;
 
5189
          esac~
 
5190
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5191
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5192
            $RM "$lt_outputfile.manifest";
 
5193
          fi'
 
5194
        ;;
 
5195
      *)
 
5196
        # Assume MSVC wrapper
 
5197
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5198
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5199
        # Tell ltmain to make .lib files, not .a files.
 
5200
        libext=lib
 
5201
        # Tell ltmain to make .dll files, not .so files.
 
5202
        shrext_cmds=".dll"
 
5203
        # FIXME: Setting linknames here is a bad hack.
 
5204
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5205
        # The linker will automatically build a .lib file if we build a DLL.
 
5206
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5207
        # FIXME: Should let the user specify the lib program.
 
5208
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5209
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5210
        ;;
 
5211
      esac
4710
5212
      ;;
4711
5213
 
4712
5214
    darwin* | rhapsody*)
4719
5221
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4720
5222
      ;;
4721
5223
 
4722
 
    freebsd1*)
4723
 
      _LT_TAGVAR(ld_shlibs, $1)=no
4724
 
      ;;
4725
 
 
4726
5224
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4727
5225
    # support.  Future versions do this automatically, but an explicit c++rt0.o
4728
5226
    # does not break anything, and helps significantly (at the cost of a little
4735
5233
      ;;
4736
5234
 
4737
5235
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4738
 
    freebsd2*)
 
5236
    freebsd2.*)
4739
5237
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4740
5238
      _LT_TAGVAR(hardcode_direct, $1)=yes
4741
5239
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4744
5242
 
4745
5243
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4746
5244
    freebsd* | dragonfly*)
4747
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5245
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4748
5246
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4749
5247
      _LT_TAGVAR(hardcode_direct, $1)=yes
4750
5248
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4752
5250
 
4753
5251
    hpux9*)
4754
5252
      if test "$GCC" = yes; then
4755
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5253
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4756
5254
      else
4757
5255
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4758
5256
      fi
4767
5265
      ;;
4768
5266
 
4769
5267
    hpux10*)
4770
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4771
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5268
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5269
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4772
5270
      else
4773
5271
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4774
5272
      fi
4775
5273
      if test "$with_gnu_ld" = no; then
4776
5274
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4777
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4778
5275
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4779
5276
        _LT_TAGVAR(hardcode_direct, $1)=yes
4780
5277
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4786
5283
      ;;
4787
5284
 
4788
5285
    hpux11*)
4789
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5286
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4790
5287
        case $host_cpu in
4791
5288
        hppa*64*)
4792
5289
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4793
5290
          ;;
4794
5291
        ia64*)
4795
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5292
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4796
5293
          ;;
4797
5294
        *)
4798
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5295
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4799
5296
          ;;
4800
5297
        esac
4801
5298
      else
4807
5304
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4808
5305
          ;;
4809
5306
        *)
4810
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5307
        m4_if($1, [], [
 
5308
          # Older versions of the 11.00 compiler do not understand -b yet
 
5309
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5310
          _LT_LINKER_OPTION([if $CC understands -b],
 
5311
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5312
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5313
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5314
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4811
5315
          ;;
4812
5316
        esac
4813
5317
      fi
4835
5339
 
4836
5340
    irix5* | irix6* | nonstopux*)
4837
5341
      if test "$GCC" = yes; then
4838
 
        _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'
 
5342
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4839
5343
        # Try to use the -exported_symbol ld option, if it does not
4840
5344
        # work, assume that -exports_file does not work either and
4841
5345
        # implicitly export all symbols.
4842
 
        save_LDFLAGS="$LDFLAGS"
4843
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4844
 
        AC_LINK_IFELSE(int foo(void) {},
4845
 
          _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'
4846
 
        )
4847
 
        LDFLAGS="$save_LDFLAGS"
 
5346
        # This should be the same for all languages, so no per-tag cache variable.
 
5347
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5348
          [lt_cv_irix_exported_symbol],
 
5349
          [save_LDFLAGS="$LDFLAGS"
 
5350
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5351
           AC_LINK_IFELSE(
 
5352
             [AC_LANG_SOURCE(
 
5353
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5354
                              [C++], [[int foo (void) { return 0; }]],
 
5355
                              [Fortran 77], [[
 
5356
      subroutine foo
 
5357
      end]],
 
5358
                              [Fortran], [[
 
5359
      subroutine foo
 
5360
      end]])])],
 
5361
              [lt_cv_irix_exported_symbol=yes],
 
5362
              [lt_cv_irix_exported_symbol=no])
 
5363
           LDFLAGS="$save_LDFLAGS"])
 
5364
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5365
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5366
        fi
4848
5367
      else
4849
 
        _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'
4850
 
        _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'
 
5368
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
5369
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4851
5370
      fi
4852
5371
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4853
5372
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4856
5375
      _LT_TAGVAR(link_all_deplibs, $1)=yes
4857
5376
      ;;
4858
5377
 
4859
 
    netbsd*)
 
5378
    netbsd* | netbsdelf*-gnu)
4860
5379
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4861
5380
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4862
5381
      else
4909
5428
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4910
5429
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4911
5430
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4912
 
      _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'
 
5431
      _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'
4913
5432
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4914
5433
      ;;
4915
5434
 
4916
5435
    osf3*)
4917
5436
      if test "$GCC" = yes; then
4918
5437
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4919
 
        _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'
 
5438
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4920
5439
      else
4921
5440
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4922
 
        _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'
 
5441
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4923
5442
      fi
4924
5443
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4925
5444
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4929
5448
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4930
5449
      if test "$GCC" = yes; then
4931
5450
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4932
 
        _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'
 
5451
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4933
5452
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934
5453
      else
4935
5454
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4936
 
        _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'
 
5455
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4937
5456
        _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~
4938
 
        $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'
 
5457
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4939
5458
 
4940
5459
        # Both c and cxx compiler support -rpath directly
4941
5460
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4948
5467
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4949
5468
      if test "$GCC" = yes; then
4950
5469
        wlarc='${wl}'
4951
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5470
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4952
5471
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4953
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5472
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4954
5473
      else
4955
5474
        case `$CC -V 2>&1` in
4956
5475
        *"Compilers 5.0"*)
5126
5645
      # Test whether the compiler implicitly links with -lc since on some
5127
5646
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5128
5647
      # to ld, don't add -lc before -lgcc.
5129
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5130
 
      $RM conftest*
5131
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5648
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5649
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5650
        [$RM conftest*
 
5651
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5132
5652
 
5133
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5134
 
        soname=conftest
5135
 
        lib=conftest
5136
 
        libobjs=conftest.$ac_objext
5137
 
        deplibs=
5138
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5139
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5140
 
        compiler_flags=-v
5141
 
        linker_flags=-v
5142
 
        verstring=
5143
 
        output_objdir=.
5144
 
        libname=conftest
5145
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5146
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5147
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5148
 
        then
5149
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5150
 
        else
5151
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5152
 
        fi
5153
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5154
 
      else
5155
 
        cat conftest.err 1>&5
5156
 
      fi
5157
 
      $RM conftest*
5158
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5653
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5654
          soname=conftest
 
5655
          lib=conftest
 
5656
          libobjs=conftest.$ac_objext
 
5657
          deplibs=
 
5658
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5659
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5660
          compiler_flags=-v
 
5661
          linker_flags=-v
 
5662
          verstring=
 
5663
          output_objdir=.
 
5664
          libname=conftest
 
5665
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5666
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5667
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5668
          then
 
5669
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5670
          else
 
5671
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5672
          fi
 
5673
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5674
        else
 
5675
          cat conftest.err 1>&5
 
5676
        fi
 
5677
        $RM conftest*
 
5678
        ])
 
5679
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5159
5680
      ;;
5160
5681
    esac
5161
5682
  fi
5192
5713
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5193
5714
    [Flag to hardcode $libdir into a binary during linking.
5194
5715
    This must work even if $libdir does not exist])
5195
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5196
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5197
 
    during linking.  This must work even if $libdir does not exist]])
5198
5716
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5199
5717
    [Whether we need a single "-rpath" flag with a separated argument])
5200
5718
_LT_TAGDECL([], [hardcode_direct], [0],
5220
5738
    to runtime path list])
5221
5739
_LT_TAGDECL([], [link_all_deplibs], [0],
5222
5740
    [Whether libtool must link a program against all its dependency libraries])
5223
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5224
 
    [Fix the shell variable $srcfile for the compiler])
5225
5741
_LT_TAGDECL([], [always_export_symbols], [0],
5226
5742
    [Set to "yes" if exported symbols are required])
5227
5743
_LT_TAGDECL([], [export_symbols_cmds], [2],
5232
5748
    [Symbols that must always be exported])
5233
5749
_LT_TAGDECL([], [prelink_cmds], [2],
5234
5750
    [Commands necessary for linking programs (against libraries) with templates])
 
5751
_LT_TAGDECL([], [postlink_cmds], [2],
 
5752
    [Commands necessary for finishing linking programs])
5235
5753
_LT_TAGDECL([], [file_list_spec], [1],
5236
5754
    [Specify filename containing input files])
5237
5755
dnl FIXME: Not yet implemented
5321
5839
])# _LT_LANG_C_CONFIG
5322
5840
 
5323
5841
 
5324
 
# _LT_PROG_CXX
5325
 
# ------------
5326
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5327
 
# compiler, we have our own version here.
5328
 
m4_defun([_LT_PROG_CXX],
5329
 
[
5330
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5331
 
AC_PROG_CXX
 
5842
# _LT_LANG_CXX_CONFIG([TAG])
 
5843
# --------------------------
 
5844
# Ensure that the configuration variables for a C++ compiler are suitably
 
5845
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5846
# the compiler configuration to `libtool'.
 
5847
m4_defun([_LT_LANG_CXX_CONFIG],
 
5848
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5849
m4_require([_LT_DECL_EGREP])dnl
 
5850
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5332
5851
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5333
5852
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5334
5853
    (test "X$CXX" != "Xg++"))) ; then
5336
5855
else
5337
5856
  _lt_caught_CXX_error=yes
5338
5857
fi
5339
 
popdef([AC_MSG_ERROR])
5340
 
])# _LT_PROG_CXX
5341
 
 
5342
 
dnl aclocal-1.4 backwards compatibility:
5343
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5344
 
 
5345
 
 
5346
 
# _LT_LANG_CXX_CONFIG([TAG])
5347
 
# --------------------------
5348
 
# Ensure that the configuration variables for a C++ compiler are suitably
5349
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5350
 
# the compiler configuration to `libtool'.
5351
 
m4_defun([_LT_LANG_CXX_CONFIG],
5352
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5353
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5354
 
m4_require([_LT_DECL_EGREP])dnl
5355
5858
 
5356
5859
AC_LANG_PUSH(C++)
5357
5860
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5363
5866
_LT_TAGVAR(hardcode_direct, $1)=no
5364
5867
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5365
5868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5366
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5367
5869
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5368
5870
_LT_TAGVAR(hardcode_minus_L, $1)=no
5369
5871
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5373
5875
_LT_TAGVAR(module_expsym_cmds, $1)=
5374
5876
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5375
5877
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5878
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5879
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5376
5880
_LT_TAGVAR(no_undefined_flag, $1)=
5377
5881
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5378
5882
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5404
5908
 
5405
5909
  # Allow CC to be a program name with arguments.
5406
5910
  lt_save_CC=$CC
 
5911
  lt_save_CFLAGS=$CFLAGS
5407
5912
  lt_save_LD=$LD
5408
5913
  lt_save_GCC=$GCC
5409
5914
  GCC=$GXX
5421
5926
  fi
5422
5927
  test -z "${LDCXX+set}" || LD=$LDCXX
5423
5928
  CC=${CXX-"c++"}
 
5929
  CFLAGS=$CXXFLAGS
5424
5930
  compiler=$CC
5425
5931
  _LT_TAGVAR(compiler, $1)=$CC
5426
5932
  _LT_CC_BASENAME([$compiler])
5442
5948
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5443
5949
      # archiving commands below assume that GNU ld is being used.
5444
5950
      if test "$with_gnu_ld" = yes; then
5445
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5446
 
        _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'
 
5951
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5952
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5447
5953
 
5448
5954
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5449
5955
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5475
5981
      # Commands to make compiler produce verbose output that lists
5476
5982
      # what "hidden" libraries, object files and flags are used when
5477
5983
      # linking a shared library.
5478
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5984
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5479
5985
 
5480
5986
    else
5481
5987
      GXX=no
5584
6090
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5585
6091
          # Determine the default libpath from the value encoded in an empty
5586
6092
          # executable.
5587
 
          _LT_SYS_MODULE_PATH_AIX
 
6093
          _LT_SYS_MODULE_PATH_AIX([$1])
5588
6094
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5589
6095
 
5590
 
          _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"
 
6096
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5591
6097
        else
5592
6098
          if test "$host_cpu" = ia64; then
5593
6099
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5596
6102
          else
5597
6103
            # Determine the default libpath from the value encoded in an
5598
6104
            # empty executable.
5599
 
            _LT_SYS_MODULE_PATH_AIX
 
6105
            _LT_SYS_MODULE_PATH_AIX([$1])
5600
6106
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5601
6107
            # Warning - without using the other run time loading flags,
5602
6108
            # -berok will link without error, but may produce a broken library.
5603
6109
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5604
6110
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5605
 
            # Exported symbols can be pulled into shared objects from archives
5606
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6111
            if test "$with_gnu_ld" = yes; then
 
6112
              # We only use this code for GNU lds that support --whole-archive.
 
6113
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6114
            else
 
6115
              # Exported symbols can be pulled into shared objects from archives
 
6116
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6117
            fi
5607
6118
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5608
6119
            # This is similar to how AIX traditionally builds its shared
5609
6120
            # libraries.
5633
6144
        ;;
5634
6145
 
5635
6146
      cygwin* | mingw* | pw32* | cegcc*)
5636
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5637
 
        # as there is no search path for DLLs.
5638
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5639
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5640
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5641
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6147
        case $GXX,$cc_basename in
 
6148
        ,cl* | no,cl*)
 
6149
          # Native MSVC
 
6150
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6151
          # no search path for DLLs.
 
6152
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6153
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6154
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6155
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6156
          # Tell ltmain to make .lib files, not .a files.
 
6157
          libext=lib
 
6158
          # Tell ltmain to make .dll files, not .so files.
 
6159
          shrext_cmds=".dll"
 
6160
          # FIXME: Setting linknames here is a bad hack.
 
6161
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6162
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6163
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6164
            else
 
6165
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6166
            fi~
 
6167
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6168
            linknames='
 
6169
          # The linker will not automatically build a static lib if we build a DLL.
 
6170
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6171
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6172
          # Don't use ranlib
 
6173
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6174
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6175
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6176
            case $lt_outputfile in
 
6177
              *.exe|*.EXE) ;;
 
6178
              *)
 
6179
                lt_outputfile="$lt_outputfile.exe"
 
6180
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6181
                ;;
 
6182
            esac~
 
6183
            func_to_tool_file "$lt_outputfile"~
 
6184
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6185
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6186
              $RM "$lt_outputfile.manifest";
 
6187
            fi'
 
6188
          ;;
 
6189
        *)
 
6190
          # g++
 
6191
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6192
          # as there is no search path for DLLs.
 
6193
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6194
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6195
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6196
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6197
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5642
6198
 
5643
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5644
 
          _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'
5645
 
          # If the export-symbols file already is a .def file (1st line
5646
 
          # is EXPORTS), use it as is; otherwise, prepend...
5647
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5648
 
            cp $export_symbols $output_objdir/$soname.def;
5649
 
          else
5650
 
            echo EXPORTS > $output_objdir/$soname.def;
5651
 
            cat $export_symbols >> $output_objdir/$soname.def;
5652
 
          fi~
5653
 
          $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'
5654
 
        else
5655
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5656
 
        fi
5657
 
        ;;
 
6199
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6200
            _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'
 
6201
            # If the export-symbols file already is a .def file (1st line
 
6202
            # is EXPORTS), use it as is; otherwise, prepend...
 
6203
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6204
              cp $export_symbols $output_objdir/$soname.def;
 
6205
            else
 
6206
              echo EXPORTS > $output_objdir/$soname.def;
 
6207
              cat $export_symbols >> $output_objdir/$soname.def;
 
6208
            fi~
 
6209
            $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'
 
6210
          else
 
6211
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6212
          fi
 
6213
          ;;
 
6214
        esac
 
6215
        ;;
5658
6216
      darwin* | rhapsody*)
5659
6217
        _LT_DARWIN_LINKER_FEATURES($1)
5660
6218
        ;;
5677
6235
        esac
5678
6236
        ;;
5679
6237
 
5680
 
      freebsd[[12]]*)
 
6238
      freebsd2.*)
5681
6239
        # C++ shared libraries reported to be fairly broken before
5682
6240
        # switch to ELF
5683
6241
        _LT_TAGVAR(ld_shlibs, $1)=no
5696
6254
      gnu*)
5697
6255
        ;;
5698
6256
 
 
6257
      haiku*)
 
6258
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6259
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6260
        ;;
 
6261
 
5699
6262
      hpux9*)
5700
6263
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5701
6264
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5720
6283
            # explicitly linking system object files so we need to strip them
5721
6284
            # from the output so that they don't get included in the library
5722
6285
            # dependencies.
5723
 
            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'
 
6286
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5724
6287
            ;;
5725
6288
          *)
5726
6289
            if test "$GXX" = yes; then
5727
 
              _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'
 
6290
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5728
6291
            else
5729
6292
              # FIXME: insert proper C++ library support
5730
6293
              _LT_TAGVAR(ld_shlibs, $1)=no
5785
6348
            # explicitly linking system object files so we need to strip them
5786
6349
            # from the output so that they don't get included in the library
5787
6350
            # dependencies.
5788
 
            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'
 
6351
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5789
6352
            ;;
5790
6353
          *)
5791
6354
            if test "$GXX" = yes; then
5795
6358
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5796
6359
                    ;;
5797
6360
                  ia64*)
5798
 
                    _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'
 
6361
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5799
6362
                    ;;
5800
6363
                  *)
5801
 
                    _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'
 
6364
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5802
6365
                    ;;
5803
6366
                esac
5804
6367
              fi
5828
6391
        case $cc_basename in
5829
6392
          CC*)
5830
6393
            # SGI C++
5831
 
            _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'
 
6394
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5832
6395
 
5833
6396
            # Archives containing C++ object files must be created using
5834
6397
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5839
6402
          *)
5840
6403
            if test "$GXX" = yes; then
5841
6404
              if test "$with_gnu_ld" = no; then
5842
 
                _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'
 
6405
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5843
6406
              else
5844
 
                _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'
 
6407
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
5845
6408
              fi
5846
6409
            fi
5847
6410
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5852
6415
        _LT_TAGVAR(inherit_rpath, $1)=yes
5853
6416
        ;;
5854
6417
 
5855
 
      linux* | k*bsd*-gnu)
 
6418
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5856
6419
        case $cc_basename in
5857
6420
          KCC*)
5858
6421
            # Kuck and Associates, Inc. (KAI) C++ Compiler
5870
6433
            # explicitly linking system object files so we need to strip them
5871
6434
            # from the output so that they don't get included in the library
5872
6435
            # dependencies.
5873
 
            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'
 
6436
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5874
6437
 
5875
6438
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5876
6439
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5907
6470
          pgCC* | pgcpp*)
5908
6471
            # Portland Group C++ compiler
5909
6472
            case `$CC -V` in
5910
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6473
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5911
6474
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5912
6475
                rm -rf $tpldir~
5913
6476
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5914
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6477
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5915
6478
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5916
6479
                rm -rf $tpldir~
5917
6480
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5918
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6481
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5919
6482
                $RANLIB $oldlib'
5920
6483
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5921
6484
                rm -rf $tpldir~
5922
6485
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5923
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6486
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5924
6487
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5925
6488
                rm -rf $tpldir~
5926
6489
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5927
 
                $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'
 
6490
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5928
6491
              ;;
5929
 
            *) # Version 6 will use weak symbols
 
6492
            *) # Version 6 and above use weak symbols
5930
6493
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5931
6494
              _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'
5932
6495
              ;;
5934
6497
 
5935
6498
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5936
6499
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5937
 
            _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'
 
6500
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5938
6501
            ;;
5939
6502
          cxx*)
5940
6503
            # Compaq C++
5953
6516
            # explicitly linking system object files so we need to strip them
5954
6517
            # from the output so that they don't get included in the library
5955
6518
            # dependencies.
5956
 
            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'
 
6519
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
5957
6520
            ;;
5958
 
          xl*)
 
6521
          xl* | mpixl* | bgxl*)
5959
6522
            # IBM XL 8.0 on PPC, with GNU ld
5960
6523
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5961
6524
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5975
6538
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5976
6539
              _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'
5977
6540
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5978
 
              _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'
 
6541
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5979
6542
              _LT_TAGVAR(compiler_needs_object, $1)=yes
5980
6543
 
5981
6544
              # Not sure whether something based on
5982
6545
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5983
6546
              # would be better.
5984
 
              output_verbose_link_cmd='echo'
 
6547
              output_verbose_link_cmd='func_echo_all'
5985
6548
 
5986
6549
              # Archives containing C++ object files must be created using
5987
6550
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6050
6613
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6051
6614
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6052
6615
          fi
6053
 
          output_verbose_link_cmd=echo
 
6616
          output_verbose_link_cmd=func_echo_all
6054
6617
        else
6055
6618
          _LT_TAGVAR(ld_shlibs, $1)=no
6056
6619
        fi
6085
6648
            case $host in
6086
6649
              osf3*)
6087
6650
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6088
 
                _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'
 
6651
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6089
6652
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6090
6653
                ;;
6091
6654
              *)
6092
6655
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6093
 
                _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'
 
6656
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6094
6657
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6095
6658
                  echo "-hidden">> $lib.exp~
6096
 
                  $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~
 
6659
                  $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~
6097
6660
                  $RM $lib.exp'
6098
6661
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6099
6662
                ;;
6109
6672
            # explicitly linking system object files so we need to strip them
6110
6673
            # from the output so that they don't get included in the library
6111
6674
            # dependencies.
6112
 
            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'
 
6675
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6113
6676
            ;;
6114
6677
          *)
6115
6678
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6116
6679
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6117
6680
              case $host in
6118
6681
                osf3*)
6119
 
                  _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'
 
6682
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6120
6683
                  ;;
6121
6684
                *)
6122
 
                  _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'
 
6685
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6123
6686
                  ;;
6124
6687
              esac
6125
6688
 
6129
6692
              # Commands to make compiler produce verbose output that lists
6130
6693
              # what "hidden" libraries, object files and flags are used when
6131
6694
              # linking a shared library.
6132
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6695
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6133
6696
 
6134
6697
            else
6135
6698
              # FIXME: insert proper C++ library support
6165
6728
 
6166
6729
      solaris*)
6167
6730
        case $cc_basename in
6168
 
          CC*)
 
6731
          CC* | sunCC*)
6169
6732
            # Sun C++ 4.2, 5.x and Centerline C++
6170
6733
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6171
6734
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6186
6749
            esac
6187
6750
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6188
6751
 
6189
 
            output_verbose_link_cmd='echo'
 
6752
            output_verbose_link_cmd='func_echo_all'
6190
6753
 
6191
6754
            # Archives containing C++ object files must be created using
6192
6755
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6206
6769
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6207
6770
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6208
6771
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6209
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6772
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6210
6773
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6211
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6774
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6212
6775
 
6213
6776
                # Commands to make compiler produce verbose output that lists
6214
6777
                # what "hidden" libraries, object files and flags are used when
6215
6778
                # linking a shared library.
6216
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6779
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6217
6780
              else
6218
6781
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6219
6782
                # platform.
6224
6787
                # Commands to make compiler produce verbose output that lists
6225
6788
                # what "hidden" libraries, object files and flags are used when
6226
6789
                # linking a shared library.
6227
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6790
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6228
6791
              fi
6229
6792
 
6230
6793
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6278
6841
          CC*)
6279
6842
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6280
6843
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6844
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6845
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6846
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6847
              '"$_LT_TAGVAR(reload_cmds, $1)"
6281
6848
            ;;
6282
6849
          *)
6283
6850
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6333
6900
  fi # test -n "$compiler"
6334
6901
 
6335
6902
  CC=$lt_save_CC
 
6903
  CFLAGS=$lt_save_CFLAGS
6336
6904
  LDCXX=$LD
6337
6905
  LD=$lt_save_LD
6338
6906
  GCC=$lt_save_GCC
6347
6915
])# _LT_LANG_CXX_CONFIG
6348
6916
 
6349
6917
 
 
6918
# _LT_FUNC_STRIPNAME_CNF
 
6919
# ----------------------
 
6920
# func_stripname_cnf prefix suffix name
 
6921
# strip PREFIX and SUFFIX off of NAME.
 
6922
# PREFIX and SUFFIX must not contain globbing or regex special
 
6923
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
6924
# dot (in which case that matches only a dot).
 
6925
#
 
6926
# This function is identical to the (non-XSI) version of func_stripname,
 
6927
# except this one can be used by m4 code that may be executed by configure,
 
6928
# rather than the libtool script.
 
6929
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
6930
AC_REQUIRE([_LT_DECL_SED])
 
6931
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
6932
func_stripname_cnf ()
 
6933
{
 
6934
  case ${2} in
 
6935
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
6936
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
6937
  esac
 
6938
} # func_stripname_cnf
 
6939
])# _LT_FUNC_STRIPNAME_CNF
 
6940
 
6350
6941
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6351
6942
# ---------------------------------
6352
6943
# Figure out "hidden" library dependencies from verbose
6355
6946
# objects, libraries and library flags.
6356
6947
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6357
6948
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6949
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6358
6950
# Dependencies to place before and after the object being linked:
6359
6951
_LT_TAGVAR(predep_objects, $1)=
6360
6952
_LT_TAGVAR(postdep_objects, $1)=
6404
6996
  }
6405
6997
};
6406
6998
_LT_EOF
 
6999
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7000
package foo
 
7001
func foo() {
 
7002
}
 
7003
_LT_EOF
6407
7004
])
 
7005
 
 
7006
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7007
case "$CC $CFLAGS " in #(
 
7008
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7009
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7010
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
7011
esac
 
7012
 
6408
7013
dnl Parse the compiler output and extract the necessary
6409
7014
dnl objects, libraries and library flags.
6410
7015
if AC_TRY_EVAL(ac_compile); then
6416
7021
  pre_test_object_deps_done=no
6417
7022
 
6418
7023
  for p in `eval "$output_verbose_link_cmd"`; do
6419
 
    case $p in
 
7024
    case ${prev}${p} in
6420
7025
 
6421
7026
    -L* | -R* | -l*)
6422
7027
       # Some compilers place space between "-{L,R}" and the path.
6425
7030
          test $p = "-R"; then
6426
7031
         prev=$p
6427
7032
         continue
6428
 
       else
6429
 
         prev=
6430
7033
       fi
6431
7034
 
 
7035
       # Expand the sysroot to ease extracting the directories later.
 
7036
       if test -z "$prev"; then
 
7037
         case $p in
 
7038
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7039
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7040
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7041
         esac
 
7042
       fi
 
7043
       case $p in
 
7044
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7045
       esac
6432
7046
       if test "$pre_test_object_deps_done" = no; then
6433
 
         case $p in
6434
 
         -L* | -R*)
 
7047
         case ${prev} in
 
7048
         -L | -R)
6435
7049
           # Internal compiler library paths should come after those
6436
7050
           # provided the user.  The postdeps already come after the
6437
7051
           # user supplied libs so there is no need to process them.
6451
7065
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6452
7066
         fi
6453
7067
       fi
 
7068
       prev=
6454
7069
       ;;
6455
7070
 
 
7071
    *.lto.$objext) ;; # Ignore GCC LTO objects
6456
7072
    *.$objext)
6457
7073
       # This assumes that the test object file only shows up
6458
7074
       # once in the compiler output.
6488
7104
fi
6489
7105
 
6490
7106
$RM -f confest.$objext
 
7107
CFLAGS=$_lt_libdeps_save_CFLAGS
6491
7108
 
6492
7109
# PORTME: override above test on systems where it is broken
6493
7110
m4_if([$1], [CXX],
6524
7141
 
6525
7142
solaris*)
6526
7143
  case $cc_basename in
6527
 
  CC*)
 
7144
  CC* | sunCC*)
6528
7145
    # The more standards-conforming stlport4 library is
6529
7146
    # incompatible with the Cstd library. Avoid specifying
6530
7147
    # it if it's in CXXFLAGS. Ignore libCrun as
6568
7185
])# _LT_SYS_HIDDEN_LIBDEPS
6569
7186
 
6570
7187
 
6571
 
# _LT_PROG_F77
6572
 
# ------------
6573
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6574
 
# if there is no fortran compiler, we have our own version here.
6575
 
m4_defun([_LT_PROG_F77],
6576
 
[
6577
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6578
 
AC_PROG_F77
6579
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6580
 
  _lt_disable_F77=yes
6581
 
fi
6582
 
popdef([AC_MSG_ERROR])
6583
 
])# _LT_PROG_F77
6584
 
 
6585
 
dnl aclocal-1.4 backwards compatibility:
6586
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6587
 
 
6588
 
 
6589
7188
# _LT_LANG_F77_CONFIG([TAG])
6590
7189
# --------------------------
6591
7190
# Ensure that the configuration variables for a Fortran 77 compiler are
6592
7191
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6593
7192
# to write the compiler configuration to `libtool'.
6594
7193
m4_defun([_LT_LANG_F77_CONFIG],
6595
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6596
 
AC_LANG_PUSH(Fortran 77)
 
7194
[AC_LANG_PUSH(Fortran 77)
 
7195
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7196
  _lt_disable_F77=yes
 
7197
fi
6597
7198
 
6598
7199
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6599
7200
_LT_TAGVAR(allow_undefined_flag, $1)=
6603
7204
_LT_TAGVAR(hardcode_direct, $1)=no
6604
7205
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6605
7206
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6606
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6607
7207
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6608
7208
_LT_TAGVAR(hardcode_minus_L, $1)=no
6609
7209
_LT_TAGVAR(hardcode_automatic, $1)=no
6612
7212
_LT_TAGVAR(module_expsym_cmds, $1)=
6613
7213
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6614
7214
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7215
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7216
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6615
7217
_LT_TAGVAR(no_undefined_flag, $1)=
6616
7218
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6617
7219
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6651
7253
  # Allow CC to be a program name with arguments.
6652
7254
  lt_save_CC="$CC"
6653
7255
  lt_save_GCC=$GCC
 
7256
  lt_save_CFLAGS=$CFLAGS
6654
7257
  CC=${F77-"f77"}
 
7258
  CFLAGS=$FFLAGS
6655
7259
  compiler=$CC
6656
7260
  _LT_TAGVAR(compiler, $1)=$CC
6657
7261
  _LT_CC_BASENAME([$compiler])
6705
7309
 
6706
7310
  GCC=$lt_save_GCC
6707
7311
  CC="$lt_save_CC"
 
7312
  CFLAGS="$lt_save_CFLAGS"
6708
7313
fi # test "$_lt_disable_F77" != yes
6709
7314
 
6710
7315
AC_LANG_POP
6711
7316
])# _LT_LANG_F77_CONFIG
6712
7317
 
6713
7318
 
6714
 
# _LT_PROG_FC
6715
 
# -----------
6716
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6717
 
# if there is no fortran compiler, we have our own version here.
6718
 
m4_defun([_LT_PROG_FC],
6719
 
[
6720
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6721
 
AC_PROG_FC
6722
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6723
 
  _lt_disable_FC=yes
6724
 
fi
6725
 
popdef([AC_MSG_ERROR])
6726
 
])# _LT_PROG_FC
6727
 
 
6728
 
dnl aclocal-1.4 backwards compatibility:
6729
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6730
 
 
6731
 
 
6732
7319
# _LT_LANG_FC_CONFIG([TAG])
6733
7320
# -------------------------
6734
7321
# Ensure that the configuration variables for a Fortran compiler are
6735
7322
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6736
7323
# to write the compiler configuration to `libtool'.
6737
7324
m4_defun([_LT_LANG_FC_CONFIG],
6738
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6739
 
AC_LANG_PUSH(Fortran)
 
7325
[AC_LANG_PUSH(Fortran)
 
7326
 
 
7327
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7328
  _lt_disable_FC=yes
 
7329
fi
6740
7330
 
6741
7331
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6742
7332
_LT_TAGVAR(allow_undefined_flag, $1)=
6746
7336
_LT_TAGVAR(hardcode_direct, $1)=no
6747
7337
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6748
7338
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6749
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6750
7339
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6751
7340
_LT_TAGVAR(hardcode_minus_L, $1)=no
6752
7341
_LT_TAGVAR(hardcode_automatic, $1)=no
6755
7344
_LT_TAGVAR(module_expsym_cmds, $1)=
6756
7345
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6757
7346
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7347
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7348
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6758
7349
_LT_TAGVAR(no_undefined_flag, $1)=
6759
7350
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6760
7351
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6794
7385
  # Allow CC to be a program name with arguments.
6795
7386
  lt_save_CC="$CC"
6796
7387
  lt_save_GCC=$GCC
 
7388
  lt_save_CFLAGS=$CFLAGS
6797
7389
  CC=${FC-"f95"}
 
7390
  CFLAGS=$FCFLAGS
6798
7391
  compiler=$CC
6799
7392
  GCC=$ac_cv_fc_compiler_gnu
6800
7393
 
6850
7443
  fi # test -n "$compiler"
6851
7444
 
6852
7445
  GCC=$lt_save_GCC
6853
 
  CC="$lt_save_CC"
 
7446
  CC=$lt_save_CC
 
7447
  CFLAGS=$lt_save_CFLAGS
6854
7448
fi # test "$_lt_disable_FC" != yes
6855
7449
 
6856
7450
AC_LANG_POP
6887
7481
_LT_LINKER_BOILERPLATE
6888
7482
 
6889
7483
# Allow CC to be a program name with arguments.
6890
 
lt_save_CC="$CC"
 
7484
lt_save_CC=$CC
 
7485
lt_save_CFLAGS=$CFLAGS
6891
7486
lt_save_GCC=$GCC
6892
7487
GCC=yes
6893
7488
CC=${GCJ-"gcj"}
 
7489
CFLAGS=$GCJFLAGS
6894
7490
compiler=$CC
6895
7491
_LT_TAGVAR(compiler, $1)=$CC
6896
7492
_LT_TAGVAR(LD, $1)="$LD"
6900
7496
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6901
7497
 
6902
7498
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7499
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7500
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6903
7501
 
6904
7502
if test -n "$compiler"; then
6905
7503
  _LT_COMPILER_NO_RTTI($1)
6915
7513
AC_LANG_RESTORE
6916
7514
 
6917
7515
GCC=$lt_save_GCC
6918
 
CC="$lt_save_CC"
 
7516
CC=$lt_save_CC
 
7517
CFLAGS=$lt_save_CFLAGS
6919
7518
])# _LT_LANG_GCJ_CONFIG
6920
7519
 
6921
7520
 
 
7521
# _LT_LANG_GO_CONFIG([TAG])
 
7522
# --------------------------
 
7523
# Ensure that the configuration variables for the GNU Go compiler
 
7524
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7525
# to write the compiler configuration to `libtool'.
 
7526
m4_defun([_LT_LANG_GO_CONFIG],
 
7527
[AC_REQUIRE([LT_PROG_GO])dnl
 
7528
AC_LANG_SAVE
 
7529
 
 
7530
# Source file extension for Go test sources.
 
7531
ac_ext=go
 
7532
 
 
7533
# Object file extension for compiled Go test sources.
 
7534
objext=o
 
7535
_LT_TAGVAR(objext, $1)=$objext
 
7536
 
 
7537
# Code to be used in simple compile tests
 
7538
lt_simple_compile_test_code="package main; func main() { }"
 
7539
 
 
7540
# Code to be used in simple link tests
 
7541
lt_simple_link_test_code='package main; func main() { }'
 
7542
 
 
7543
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7544
_LT_TAG_COMPILER
 
7545
 
 
7546
# save warnings/boilerplate of simple test code
 
7547
_LT_COMPILER_BOILERPLATE
 
7548
_LT_LINKER_BOILERPLATE
 
7549
 
 
7550
# Allow CC to be a program name with arguments.
 
7551
lt_save_CC=$CC
 
7552
lt_save_CFLAGS=$CFLAGS
 
7553
lt_save_GCC=$GCC
 
7554
GCC=yes
 
7555
CC=${GOC-"gccgo"}
 
7556
CFLAGS=$GOFLAGS
 
7557
compiler=$CC
 
7558
_LT_TAGVAR(compiler, $1)=$CC
 
7559
_LT_TAGVAR(LD, $1)="$LD"
 
7560
_LT_CC_BASENAME([$compiler])
 
7561
 
 
7562
# Go did not exist at the time GCC didn't implicitly link libc in.
 
7563
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7564
 
 
7565
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7566
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7567
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7568
 
 
7569
if test -n "$compiler"; then
 
7570
  _LT_COMPILER_NO_RTTI($1)
 
7571
  _LT_COMPILER_PIC($1)
 
7572
  _LT_COMPILER_C_O($1)
 
7573
  _LT_COMPILER_FILE_LOCKS($1)
 
7574
  _LT_LINKER_SHLIBS($1)
 
7575
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7576
 
 
7577
  _LT_CONFIG($1)
 
7578
fi
 
7579
 
 
7580
AC_LANG_RESTORE
 
7581
 
 
7582
GCC=$lt_save_GCC
 
7583
CC=$lt_save_CC
 
7584
CFLAGS=$lt_save_CFLAGS
 
7585
])# _LT_LANG_GO_CONFIG
 
7586
 
 
7587
 
6922
7588
# _LT_LANG_RC_CONFIG([TAG])
6923
7589
# -------------------------
6924
7590
# Ensure that the configuration variables for the Windows resource compiler
6950
7616
 
6951
7617
# Allow CC to be a program name with arguments.
6952
7618
lt_save_CC="$CC"
 
7619
lt_save_CFLAGS=$CFLAGS
6953
7620
lt_save_GCC=$GCC
6954
7621
GCC=
6955
7622
CC=${RC-"windres"}
 
7623
CFLAGS=
6956
7624
compiler=$CC
6957
7625
_LT_TAGVAR(compiler, $1)=$CC
6958
7626
_LT_CC_BASENAME([$compiler])
6965
7633
 
6966
7634
GCC=$lt_save_GCC
6967
7635
AC_LANG_RESTORE
6968
 
CC="$lt_save_CC"
 
7636
CC=$lt_save_CC
 
7637
CFLAGS=$lt_save_CFLAGS
6969
7638
])# _LT_LANG_RC_CONFIG
6970
7639
 
6971
7640
 
6985
7654
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6986
7655
 
6987
7656
 
 
7657
# LT_PROG_GO
 
7658
# ----------
 
7659
AC_DEFUN([LT_PROG_GO],
 
7660
[AC_CHECK_TOOL(GOC, gccgo,)
 
7661
])
 
7662
 
 
7663
 
6988
7664
# LT_PROG_RC
6989
7665
# ----------
6990
7666
AC_DEFUN([LT_PROG_RC],
7024
7700
AC_SUBST([OBJDUMP])
7025
7701
])
7026
7702
 
 
7703
# _LT_DECL_DLLTOOL
 
7704
# ----------------
 
7705
# Ensure DLLTOOL variable is set.
 
7706
m4_defun([_LT_DECL_DLLTOOL],
 
7707
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7708
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7709
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7710
AC_SUBST([DLLTOOL])
 
7711
])
7027
7712
 
7028
7713
# _LT_DECL_SED
7029
7714
# ------------
7115
7800
# Try some XSI features
7116
7801
xsi_shell=no
7117
7802
( _lt_dummy="a/b/c"
7118
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7119
 
      = c,a/b,, \
 
7803
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7804
      = c,a/b,b/c, \
7120
7805
    && eval 'test $(( 1 + 1 )) -eq 2 \
7121
7806
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7122
7807
  && xsi_shell=yes
7155
7840
])# _LT_CHECK_SHELL_FEATURES
7156
7841
 
7157
7842
 
7158
 
# _LT_PROG_XSI_SHELLFNS
7159
 
# ---------------------
7160
 
# Bourne and XSI compatible variants of some useful shell functions.
7161
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7162
 
[case $xsi_shell in
7163
 
  yes)
7164
 
    cat << \_LT_EOF >> "$cfgfile"
7165
 
 
7166
 
# func_dirname file append nondir_replacement
7167
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7168
 
# otherwise set result to NONDIR_REPLACEMENT.
7169
 
func_dirname ()
7170
 
{
7171
 
  case ${1} in
7172
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7173
 
    *  ) func_dirname_result="${3}" ;;
7174
 
  esac
7175
 
}
7176
 
 
7177
 
# func_basename file
7178
 
func_basename ()
7179
 
{
7180
 
  func_basename_result="${1##*/}"
7181
 
}
7182
 
 
7183
 
# func_dirname_and_basename file append nondir_replacement
7184
 
# perform func_basename and func_dirname in a single function
7185
 
# call:
7186
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7187
 
#             add APPEND to the result, otherwise set result
7188
 
#             to NONDIR_REPLACEMENT.
7189
 
#             value returned in "$func_dirname_result"
7190
 
#   basename: Compute filename of FILE.
7191
 
#             value retuned in "$func_basename_result"
7192
 
# Implementation must be kept synchronized with func_dirname
7193
 
# and func_basename. For efficiency, we do not delegate to
7194
 
# those functions but instead duplicate the functionality here.
7195
 
func_dirname_and_basename ()
7196
 
{
7197
 
  case ${1} in
7198
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7199
 
    *  ) func_dirname_result="${3}" ;;
7200
 
  esac
7201
 
  func_basename_result="${1##*/}"
7202
 
}
7203
 
 
7204
 
# func_stripname prefix suffix name
7205
 
# strip PREFIX and SUFFIX off of NAME.
7206
 
# PREFIX and SUFFIX must not contain globbing or regex special
7207
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7208
 
# dot (in which case that matches only a dot).
7209
 
func_stripname ()
7210
 
{
7211
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7212
 
  # positional parameters, so assign one to ordinary parameter first.
7213
 
  func_stripname_result=${3}
7214
 
  func_stripname_result=${func_stripname_result#"${1}"}
7215
 
  func_stripname_result=${func_stripname_result%"${2}"}
7216
 
}
7217
 
 
7218
 
# func_opt_split
7219
 
func_opt_split ()
7220
 
{
7221
 
  func_opt_split_opt=${1%%=*}
7222
 
  func_opt_split_arg=${1#*=}
7223
 
}
7224
 
 
7225
 
# func_lo2o object
7226
 
func_lo2o ()
7227
 
{
7228
 
  case ${1} in
7229
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7230
 
    *)    func_lo2o_result=${1} ;;
7231
 
  esac
7232
 
}
7233
 
 
7234
 
# func_xform libobj-or-source
7235
 
func_xform ()
7236
 
{
7237
 
  func_xform_result=${1%.*}.lo
7238
 
}
7239
 
 
7240
 
# func_arith arithmetic-term...
7241
 
func_arith ()
7242
 
{
7243
 
  func_arith_result=$(( $[*] ))
7244
 
}
7245
 
 
7246
 
# func_len string
7247
 
# STRING may not start with a hyphen.
7248
 
func_len ()
7249
 
{
7250
 
  func_len_result=${#1}
7251
 
}
7252
 
 
7253
 
_LT_EOF
7254
 
    ;;
7255
 
  *) # Bourne compatible functions.
7256
 
    cat << \_LT_EOF >> "$cfgfile"
7257
 
 
7258
 
# func_dirname file append nondir_replacement
7259
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7260
 
# otherwise set result to NONDIR_REPLACEMENT.
7261
 
func_dirname ()
7262
 
{
7263
 
  # Extract subdirectory from the argument.
7264
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7265
 
  if test "X$func_dirname_result" = "X${1}"; then
7266
 
    func_dirname_result="${3}"
7267
 
  else
7268
 
    func_dirname_result="$func_dirname_result${2}"
7269
 
  fi
7270
 
}
7271
 
 
7272
 
# func_basename file
7273
 
func_basename ()
7274
 
{
7275
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7276
 
}
7277
 
 
7278
 
dnl func_dirname_and_basename
7279
 
dnl A portable version of this function is already defined in general.m4sh
7280
 
dnl so there is no need for it here.
7281
 
 
7282
 
# func_stripname prefix suffix name
7283
 
# strip PREFIX and SUFFIX off of NAME.
7284
 
# PREFIX and SUFFIX must not contain globbing or regex special
7285
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7286
 
# dot (in which case that matches only a dot).
7287
 
# func_strip_suffix prefix name
7288
 
func_stripname ()
7289
 
{
7290
 
  case ${2} in
7291
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7292
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7293
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7294
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7295
 
  esac
7296
 
}
7297
 
 
7298
 
# sed scripts:
7299
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7300
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7301
 
 
7302
 
# func_opt_split
7303
 
func_opt_split ()
7304
 
{
7305
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7306
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7307
 
}
7308
 
 
7309
 
# func_lo2o object
7310
 
func_lo2o ()
7311
 
{
7312
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7313
 
}
7314
 
 
7315
 
# func_xform libobj-or-source
7316
 
func_xform ()
7317
 
{
7318
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7319
 
}
7320
 
 
7321
 
# func_arith arithmetic-term...
7322
 
func_arith ()
7323
 
{
7324
 
  func_arith_result=`expr "$[@]"`
7325
 
}
7326
 
 
7327
 
# func_len string
7328
 
# STRING may not start with a hyphen.
7329
 
func_len ()
7330
 
{
7331
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7332
 
}
7333
 
 
7334
 
_LT_EOF
7335
 
esac
7336
 
 
7337
 
case $lt_shell_append in
7338
 
  yes)
7339
 
    cat << \_LT_EOF >> "$cfgfile"
7340
 
 
7341
 
# func_append var value
7342
 
# Append VALUE to the end of shell variable VAR.
7343
 
func_append ()
7344
 
{
7345
 
  eval "$[1]+=\$[2]"
7346
 
}
7347
 
_LT_EOF
7348
 
    ;;
7349
 
  *)
7350
 
    cat << \_LT_EOF >> "$cfgfile"
7351
 
 
7352
 
# func_append var value
7353
 
# Append VALUE to the end of shell variable VAR.
7354
 
func_append ()
7355
 
{
7356
 
  eval "$[1]=\$$[1]\$[2]"
7357
 
}
7358
 
 
7359
 
_LT_EOF
7360
 
    ;;
7361
 
  esac
7362
 
])
 
7843
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7844
# ------------------------------------------------------
 
7845
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7846
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7847
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7848
[dnl {
 
7849
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7850
$1 ()\
 
7851
{\
 
7852
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7853
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7854
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7855
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7856
test 0 -eq $? || _lt_function_replace_fail=:
 
7857
])
 
7858
 
 
7859
 
 
7860
# _LT_PROG_REPLACE_SHELLFNS
 
7861
# -------------------------
 
7862
# Replace existing portable implementations of several shell functions with
 
7863
# equivalent extended shell implementations where those features are available..
 
7864
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7865
[if test x"$xsi_shell" = xyes; then
 
7866
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7867
    case ${1} in
 
7868
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7869
      *  ) func_dirname_result="${3}" ;;
 
7870
    esac])
 
7871
 
 
7872
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7873
    func_basename_result="${1##*/}"])
 
7874
 
 
7875
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7876
    case ${1} in
 
7877
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7878
      *  ) func_dirname_result="${3}" ;;
 
7879
    esac
 
7880
    func_basename_result="${1##*/}"])
 
7881
 
 
7882
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7883
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7884
    # positional parameters, so assign one to ordinary parameter first.
 
7885
    func_stripname_result=${3}
 
7886
    func_stripname_result=${func_stripname_result#"${1}"}
 
7887
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7888
 
 
7889
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
7890
    func_split_long_opt_name=${1%%=*}
 
7891
    func_split_long_opt_arg=${1#*=}])
 
7892
 
 
7893
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
7894
    func_split_short_opt_arg=${1#??}
 
7895
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
7896
 
 
7897
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
7898
    case ${1} in
 
7899
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7900
      *)    func_lo2o_result=${1} ;;
 
7901
    esac])
 
7902
 
 
7903
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
7904
 
 
7905
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
7906
 
 
7907
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
7908
fi
 
7909
 
 
7910
if test x"$lt_shell_append" = xyes; then
 
7911
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
7912
 
 
7913
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
7914
    func_quote_for_eval "${2}"
 
7915
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
7916
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
7917
 
 
7918
  # Save a `func_append' function call where possible by direct use of '+='
 
7919
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
7920
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7921
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7922
  test 0 -eq $? || _lt_function_replace_fail=:
 
7923
else
 
7924
  # Save a `func_append' function call even when '+=' is not available
 
7925
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
7926
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7927
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7928
  test 0 -eq $? || _lt_function_replace_fail=:
 
7929
fi
 
7930
 
 
7931
if test x"$_lt_function_replace_fail" = x":"; then
 
7932
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
7933
fi
 
7934
])
 
7935
 
 
7936
# _LT_PATH_CONVERSION_FUNCTIONS
 
7937
# -----------------------------
 
7938
# Determine which file name conversion functions should be used by
 
7939
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
7940
# for certain cross-compile configurations and native mingw.
 
7941
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
7942
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7943
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
7944
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
7945
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
7946
[case $host in
 
7947
  *-*-mingw* )
 
7948
    case $build in
 
7949
      *-*-mingw* ) # actually msys
 
7950
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7951
        ;;
 
7952
      *-*-cygwin* )
 
7953
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7954
        ;;
 
7955
      * ) # otherwise, assume *nix
 
7956
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7957
        ;;
 
7958
    esac
 
7959
    ;;
 
7960
  *-*-cygwin* )
 
7961
    case $build in
 
7962
      *-*-mingw* ) # actually msys
 
7963
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7964
        ;;
 
7965
      *-*-cygwin* )
 
7966
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7967
        ;;
 
7968
      * ) # otherwise, assume *nix
 
7969
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7970
        ;;
 
7971
    esac
 
7972
    ;;
 
7973
  * ) # unhandled hosts (and "normal" native builds)
 
7974
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7975
    ;;
 
7976
esac
 
7977
])
 
7978
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7979
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
7980
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
7981
         [0], [convert $build file names to $host format])dnl
 
7982
 
 
7983
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
7984
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
7985
[#assume ordinary cross tools, or native build.
 
7986
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7987
case $host in
 
7988
  *-*-mingw* )
 
7989
    case $build in
 
7990
      *-*-mingw* ) # actually msys
 
7991
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7992
        ;;
 
7993
    esac
 
7994
    ;;
 
7995
esac
 
7996
])
 
7997
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7998
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
7999
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8000
         [0], [convert $build files to toolchain format])dnl
 
8001
])# _LT_PATH_CONVERSION_FUNCTIONS
7363
8002
 
7364
8003
# Helper functions for option handling.                    -*- Autoconf -*-
7365
8004
#
7366
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8005
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
8006
#   Inc.
7367
8007
#   Written by Gary V. Vaughan, 2004
7368
8008
#
7369
8009
# This file is free software; the Free Software Foundation gives
7370
8010
# unlimited permission to copy and/or distribute it, with or without
7371
8011
# modifications, as long as this notice is preserved.
7372
8012
 
7373
 
# serial 6 ltoptions.m4
 
8013
# serial 7 ltoptions.m4
7374
8014
 
7375
8015
# This is to help aclocal find these macros, as it can't see m4_define.
7376
8016
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7485
8125
[enable_win32_dll=yes
7486
8126
 
7487
8127
case $host in
7488
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8128
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7489
8129
  AC_CHECK_TOOL(AS, as, false)
7490
8130
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7491
8131
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7493
8133
esac
7494
8134
 
7495
8135
test -z "$AS" && AS=as
7496
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8136
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7497
8137
 
7498
8138
test -z "$DLLTOOL" && DLLTOOL=dlltool
7499
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8139
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7500
8140
 
7501
8141
test -z "$OBJDUMP" && OBJDUMP=objdump
7502
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8142
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7503
8143
])# win32-dll
7504
8144
 
7505
8145
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7685
8325
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7686
8326
m4_define([_LT_WITH_PIC],
7687
8327
[AC_ARG_WITH([pic],
7688
 
    [AS_HELP_STRING([--with-pic],
 
8328
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
7689
8329
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7690
 
    [pic_mode="$withval"],
 
8330
    [lt_p=${PACKAGE-default}
 
8331
    case $withval in
 
8332
    yes|no) pic_mode=$withval ;;
 
8333
    *)
 
8334
      pic_mode=default
 
8335
      # Look at the argument we got.  We use all the common list separators.
 
8336
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8337
      for lt_pkg in $withval; do
 
8338
        IFS="$lt_save_ifs"
 
8339
        if test "X$lt_pkg" = "X$lt_p"; then
 
8340
          pic_mode=yes
 
8341
        fi
 
8342
      done
 
8343
      IFS="$lt_save_ifs"
 
8344
      ;;
 
8345
    esac],
7691
8346
    [pic_mode=default])
7692
8347
 
7693
8348
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7857
8512
# unlimited permission to copy and/or distribute it, with or without
7858
8513
# modifications, as long as this notice is preserved.
7859
8514
 
7860
 
# Generated from ltversion.in.
 
8515
# @configure_input@
7861
8516
 
7862
 
# serial 3017 ltversion.m4
 
8517
# serial 3337 ltversion.m4
7863
8518
# This file is part of GNU Libtool
7864
8519
 
7865
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7866
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8520
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
8521
m4_define([LT_PACKAGE_REVISION], [1.3337])
7867
8522
 
7868
8523
AC_DEFUN([LTVERSION_VERSION],
7869
 
[macro_version='2.2.6b'
7870
 
macro_revision='1.3017'
 
8524
[macro_version='2.4.2'
 
8525
macro_revision='1.3337'
7871
8526
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7872
8527
_LT_DECL(, macro_revision, 0)
7873
8528
])
7874
8529
 
7875
8530
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7876
8531
#
7877
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8532
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7878
8533
#   Written by Scott James Remnant, 2004.
7879
8534
#
7880
8535
# This file is free software; the Free Software Foundation gives
7881
8536
# unlimited permission to copy and/or distribute it, with or without
7882
8537
# modifications, as long as this notice is preserved.
7883
8538
 
7884
 
# serial 4 lt~obsolete.m4
 
8539
# serial 5 lt~obsolete.m4
7885
8540
 
7886
8541
# These exist entirely to fool aclocal when bootstrapping libtool.
7887
8542
#
7951
8606
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7952
8607
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7953
8608
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7954
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7955
8609
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7956
8610
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7957
8611
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7964
8618
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7965
8619
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7966
8620
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8621
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8622
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8623
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8624
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8625
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8626
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8627
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
7967
8628
 
7968
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
8629
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
8630
# Foundation, Inc.
7969
8631
#
7970
8632
# This file is free software; the Free Software Foundation
7971
8633
# gives unlimited permission to copy and/or distribute it,
7972
8634
# with or without modifications, as long as this notice is preserved.
7973
8635
 
 
8636
# serial 1
 
8637
 
7974
8638
# AM_AUTOMAKE_VERSION(VERSION)
7975
8639
# ----------------------------
7976
8640
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7980
8644
[am__api_version='1.11'
7981
8645
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7982
8646
dnl require some minimum version.  Point them to the right macro.
7983
 
m4_if([$1], [1.11.1], [],
 
8647
m4_if([$1], [1.11.3], [],
7984
8648
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7985
8649
])
7986
8650
 
7996
8660
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7997
8661
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7998
8662
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7999
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
8663
[AM_AUTOMAKE_VERSION([1.11.3])dnl
8000
8664
m4_ifndef([AC_AUTOCONF_VERSION],
8001
8665
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8002
8666
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8003
8667
 
8004
8668
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8005
8669
 
8006
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8670
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8007
8671
#
8008
8672
# This file is free software; the Free Software Foundation
8009
8673
# gives unlimited permission to copy and/or distribute it,
8010
8674
# with or without modifications, as long as this notice is preserved.
8011
8675
 
 
8676
# serial 1
 
8677
 
8012
8678
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8013
8679
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8014
8680
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8090
8756
Usually this means the macro was only invoked conditionally.]])
8091
8757
fi])])
8092
8758
 
8093
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8094
 
# Free Software Foundation, Inc.
 
8759
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
8760
# 2010, 2011 Free Software Foundation, Inc.
8095
8761
#
8096
8762
# This file is free software; the Free Software Foundation
8097
8763
# gives unlimited permission to copy and/or distribute it,
8098
8764
# with or without modifications, as long as this notice is preserved.
8099
8765
 
8100
 
# serial 10
 
8766
# serial 12
8101
8767
 
8102
8768
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8103
8769
# written in clear, in which case automake, when reading aclocal.m4,
8137
8803
  # instance it was reported that on HP-UX the gcc test will end up
8138
8804
  # making a dummy file named `D' -- because `-MD' means `put the output
8139
8805
  # in D'.
 
8806
  rm -rf conftest.dir
8140
8807
  mkdir conftest.dir
8141
8808
  # Copy depcomp to subdir because otherwise we won't find it if we're
8142
8809
  # using a relative directory.
8201
8868
        break
8202
8869
      fi
8203
8870
      ;;
8204
 
    msvisualcpp | msvcmsys)
 
8871
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8205
8872
      # This compiler won't grok `-c -o', but also, the minuso test has
8206
8873
      # not run yet.  These depmodes are late enough in the game, and
8207
8874
      # so weak that their functioning should not be impacted.
8266
8933
if test "x$enable_dependency_tracking" != xno; then
8267
8934
  am_depcomp="$ac_aux_dir/depcomp"
8268
8935
  AMDEPBACKSLASH='\'
 
8936
  am__nodep='_no'
8269
8937
fi
8270
8938
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8271
8939
AC_SUBST([AMDEPBACKSLASH])dnl
8272
8940
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
8941
AC_SUBST([am__nodep])dnl
 
8942
_AM_SUBST_NOTMAKE([am__nodep])dnl
8273
8943
])
8274
8944
 
8275
8945
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8491
9161
done
8492
9162
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8493
9163
 
8494
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9164
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
9165
# Inc.
8495
9166
#
8496
9167
# This file is free software; the Free Software Foundation
8497
9168
# gives unlimited permission to copy and/or distribute it,
8498
9169
# with or without modifications, as long as this notice is preserved.
8499
9170
 
 
9171
# serial 1
 
9172
 
8500
9173
# AM_PROG_INSTALL_SH
8501
9174
# ------------------
8502
9175
# Define $install_sh.
8628
9301
fi
8629
9302
])
8630
9303
 
8631
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9304
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
9305
# Inc.
8632
9306
#
8633
9307
# This file is free software; the Free Software Foundation
8634
9308
# gives unlimited permission to copy and/or distribute it,
8635
9309
# with or without modifications, as long as this notice is preserved.
8636
9310
 
 
9311
# serial 1
 
9312
 
8637
9313
# AM_PROG_MKDIR_P
8638
9314
# ---------------
8639
9315
# Check for `mkdir -p'.
8656
9332
 
8657
9333
# Helper functions for option handling.                     -*- Autoconf -*-
8658
9334
 
8659
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9335
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
9336
# Foundation, Inc.
8660
9337
#
8661
9338
# This file is free software; the Free Software Foundation
8662
9339
# gives unlimited permission to copy and/or distribute it,
8663
9340
# with or without modifications, as long as this notice is preserved.
8664
9341
 
8665
 
# serial 4
 
9342
# serial 5
8666
9343
 
8667
9344
# _AM_MANGLE_OPTION(NAME)
8668
9345
# -----------------------
8670
9347
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8671
9348
 
8672
9349
# _AM_SET_OPTION(NAME)
8673
 
# ------------------------------
 
9350
# --------------------
8674
9351
# Set option NAME.  Presently that only means defining a flag for this option.
8675
9352
AC_DEFUN([_AM_SET_OPTION],
8676
9353
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8677
9354
 
8678
9355
# _AM_SET_OPTIONS(OPTIONS)
8679
 
# ----------------------------------
 
9356
# ------------------------
8680
9357
# OPTIONS is a space-separated list of Automake options.
8681
9358
AC_DEFUN([_AM_SET_OPTIONS],
8682
9359
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8752
9429
fi
8753
9430
AC_MSG_RESULT(yes)])
8754
9431
 
8755
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9432
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8756
9433
#
8757
9434
# This file is free software; the Free Software Foundation
8758
9435
# gives unlimited permission to copy and/or distribute it,
8759
9436
# with or without modifications, as long as this notice is preserved.
8760
9437
 
 
9438
# serial 1
 
9439
 
8761
9440
# AM_PROG_INSTALL_STRIP
8762
9441
# ---------------------
8763
9442
# One issue with vendor `install' (even GNU) is that you can't
8780
9459
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8781
9460
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8782
9461
 
8783
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
9462
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
8784
9463
#
8785
9464
# This file is free software; the Free Software Foundation
8786
9465
# gives unlimited permission to copy and/or distribute it,
8787
9466
# with or without modifications, as long as this notice is preserved.
8788
9467
 
8789
 
# serial 2
 
9468
# serial 3
8790
9469
 
8791
9470
# _AM_SUBST_NOTMAKE(VARIABLE)
8792
9471
# ---------------------------
8795
9474
AC_DEFUN([_AM_SUBST_NOTMAKE])
8796
9475
 
8797
9476
# AM_SUBST_NOTMAKE(VARIABLE)
8798
 
# ---------------------------
 
9477
# --------------------------
8799
9478
# Public sister of _AM_SUBST_NOTMAKE.
8800
9479
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
8801
9480
 
8802
9481
# Check how to create a tarball.                            -*- Autoconf -*-
8803
9482
 
8804
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
9483
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
8805
9484
#
8806
9485
# This file is free software; the Free Software Foundation
8807
9486
# gives unlimited permission to copy and/or distribute it,
8823
9502
# a tarball read from stdin.
8824
9503
#     $(am__untar) < result.tar
8825
9504
AC_DEFUN([_AM_PROG_TAR],
8826
 
[# Always define AMTAR for backward compatibility.
8827
 
AM_MISSING_PROG([AMTAR], [tar])
 
9505
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
9506
# in the wild :-(  We should find a proper way to deprecate it ...
 
9507
AC_SUBST([AMTAR], ['$${TAR-tar}'])
8828
9508
m4_if([$1], [v7],
8829
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
9509
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
8830
9510
     [m4_case([$1], [ustar],, [pax],,
8831
9511
              [m4_fatal([Unknown tar format])])
8832
9512
AC_MSG_CHECKING([how to create a $1 tar archive])