~ubuntu-branches/ubuntu/vivid/gloox/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-03-16 17:34:43 UTC
  • mfrom: (12.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140316173443-4s177dovzaz5dm8o
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.6 -*- 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.64],,
17
 
[m4_warning([this file was generated for autoconf 2.64.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
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]]*)
2349
2526
  esac
2350
2527
  ;;
2351
2528
 
2352
 
gnu*)
2353
 
  version_type=linux
 
2529
haiku*)
 
2530
  version_type=linux # correct to gnu/linux during the next big refactor
2354
2531
  need_lib_prefix=no
2355
2532
  need_version=no
 
2533
  dynamic_linker="$host_os runtime_loader"
2356
2534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2357
2535
  soname_spec='${libname}${release}${shared_ext}$major'
2358
 
  shlibpath_var=LD_LIBRARY_PATH
 
2536
  shlibpath_var=LIBRARY_PATH
 
2537
  shlibpath_overrides_runpath=yes
 
2538
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2359
2539
  hardcode_into_libs=yes
2360
2540
  ;;
2361
2541
 
2401
2581
    soname_spec='${libname}${release}${shared_ext}$major'
2402
2582
    ;;
2403
2583
  esac
2404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2584
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405
2585
  postinstall_cmds='chmod 555 $lib'
 
2586
  # or fails outright, so override atomically:
 
2587
  install_override_mode=555
2406
2588
  ;;
2407
2589
 
2408
2590
interix[[3-9]]*)
2409
 
  version_type=linux
 
2591
  version_type=linux # correct to gnu/linux during the next big refactor
2410
2592
  need_lib_prefix=no
2411
2593
  need_version=no
2412
2594
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2422
2604
    nonstopux*) version_type=nonstopux ;;
2423
2605
    *)
2424
2606
        if test "$lt_cv_prog_gnu_ld" = yes; then
2425
 
                version_type=linux
 
2607
                version_type=linux # correct to gnu/linux during the next big refactor
2426
2608
        else
2427
2609
                version_type=irix
2428
2610
        fi ;;
2459
2641
  dynamic_linker=no
2460
2642
  ;;
2461
2643
 
2462
 
# This must be Linux ELF.
2463
 
linux* | k*bsd*-gnu)
2464
 
  version_type=linux
 
2644
# This must be glibc/ELF.
 
2645
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
2646
  version_type=linux # correct to gnu/linux during the next big refactor
2465
2647
  need_lib_prefix=no
2466
2648
  need_version=no
2467
2649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2469
2651
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2652
  shlibpath_var=LD_LIBRARY_PATH
2471
2653
  shlibpath_overrides_runpath=no
 
2654
 
2472
2655
  # 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
 
2656
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2657
    [lt_cv_shlibpath_overrides_runpath=no
 
2658
    save_LDFLAGS=$LDFLAGS
 
2659
    save_libdir=$libdir
 
2660
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2661
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2662
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2663
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2664
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2665
    LDFLAGS=$save_LDFLAGS
 
2666
    libdir=$save_libdir
 
2667
    ])
 
2668
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2482
2669
 
2483
2670
  # This implies no fast_install, which is unacceptable.
2484
2671
  # Some rework will be needed to allow for fast_install
2487
2674
 
2488
2675
  # Append ld.so.conf contents to the search path
2489
2676
  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' ' '`
 
2677
    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
2678
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492
2679
  fi
2493
2680
 
2531
2718
  ;;
2532
2719
 
2533
2720
newsos6)
2534
 
  version_type=linux
 
2721
  version_type=linux # correct to gnu/linux during the next big refactor
2535
2722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2536
2723
  shlibpath_var=LD_LIBRARY_PATH
2537
2724
  shlibpath_overrides_runpath=yes
2600
2787
  ;;
2601
2788
 
2602
2789
solaris*)
2603
 
  version_type=linux
 
2790
  version_type=linux # correct to gnu/linux during the next big refactor
2604
2791
  need_lib_prefix=no
2605
2792
  need_version=no
2606
2793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2625
2812
  ;;
2626
2813
 
2627
2814
sysv4 | sysv4.3*)
2628
 
  version_type=linux
 
2815
  version_type=linux # correct to gnu/linux during the next big refactor
2629
2816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2630
2817
  soname_spec='${libname}${release}${shared_ext}$major'
2631
2818
  shlibpath_var=LD_LIBRARY_PATH
2649
2836
 
2650
2837
sysv4*MP*)
2651
2838
  if test -d /usr/nec ;then
2652
 
    version_type=linux
 
2839
    version_type=linux # correct to gnu/linux during the next big refactor
2653
2840
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2654
2841
    soname_spec='$libname${shared_ext}.$major'
2655
2842
    shlibpath_var=LD_LIBRARY_PATH
2680
2867
 
2681
2868
tpf*)
2682
2869
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2683
 
  version_type=linux
 
2870
  version_type=linux # correct to gnu/linux during the next big refactor
2684
2871
  need_lib_prefix=no
2685
2872
  need_version=no
2686
2873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2690
2877
  ;;
2691
2878
 
2692
2879
uts4*)
2693
 
  version_type=linux
 
2880
  version_type=linux # correct to gnu/linux during the next big refactor
2694
2881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2695
2882
  soname_spec='${libname}${release}${shared_ext}$major'
2696
2883
  shlibpath_var=LD_LIBRARY_PATH
2732
2919
    The last name is the one that the linker finds with -lNAME]])
2733
2920
_LT_DECL([], [soname_spec], [1],
2734
2921
    [[The coded name of the library, if different from the real name]])
 
2922
_LT_DECL([], [install_override_mode], [1],
 
2923
    [Permission mode override for installation of shared libraries])
2735
2924
_LT_DECL([], [postinstall_cmds], [2],
2736
2925
    [Command to use after installation of a shared archive])
2737
2926
_LT_DECL([], [postuninstall_cmds], [2],
2844
3033
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2845
3034
m4_require([_LT_DECL_SED])dnl
2846
3035
m4_require([_LT_DECL_EGREP])dnl
 
3036
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2847
3037
 
2848
3038
AC_ARG_WITH([gnu-ld],
2849
3039
    [AS_HELP_STRING([--with-gnu-ld],
2965
3155
esac
2966
3156
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2967
3157
case $host_os in
 
3158
  cygwin* | mingw* | pw32* | cegcc*)
 
3159
    if test "$GCC" != yes; then
 
3160
      reload_cmds=false
 
3161
    fi
 
3162
    ;;
2968
3163
  darwin*)
2969
3164
    if test "$GCC" = yes; then
2970
3165
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2973
3168
    fi
2974
3169
    ;;
2975
3170
esac
2976
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2977
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3171
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3172
_LT_TAGDECL([], [reload_cmds], [2])dnl
2978
3173
])# _LT_CMD_RELOAD
2979
3174
 
2980
3175
 
3026
3221
  # Base MSYS/MinGW do not provide the 'file' command needed by
3027
3222
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3028
3223
  # unless we find 'file', for example because we are cross-compiling.
3029
 
  if ( file / ) >/dev/null 2>&1; then
 
3224
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3225
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3030
3226
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3031
3227
    lt_cv_file_magic_cmd='func_win32_libid'
3032
3228
  else
3033
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3229
    # Keep this pattern in sync with the one in func_win32_libid.
 
3230
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3034
3231
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3035
3232
  fi
3036
3233
  ;;
3037
3234
 
3038
 
cegcc)
 
3235
cegcc*)
3039
3236
  # use the weaker test based on 'objdump'. See mingw*.
3040
3237
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3041
3238
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3061
3258
  fi
3062
3259
  ;;
3063
3260
 
3064
 
gnu*)
 
3261
haiku*)
3065
3262
  lt_cv_deplibs_check_method=pass_all
3066
3263
  ;;
3067
3264
 
3073
3270
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3074
3271
    ;;
3075
3272
  hppa*64*)
3076
 
    [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]']
 
3273
    [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]']
3077
3274
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3078
3275
    ;;
3079
3276
  *)
3080
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3277
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3081
3278
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3082
3279
    ;;
3083
3280
  esac
3098
3295
  lt_cv_deplibs_check_method=pass_all
3099
3296
  ;;
3100
3297
 
3101
 
# This must be Linux ELF.
3102
 
linux* | k*bsd*-gnu)
 
3298
# This must be glibc/ELF.
 
3299
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3103
3300
  lt_cv_deplibs_check_method=pass_all
3104
3301
  ;;
3105
3302
 
3177
3374
  ;;
3178
3375
esac
3179
3376
])
 
3377
 
 
3378
file_magic_glob=
 
3379
want_nocaseglob=no
 
3380
if test "$build" = "$host"; then
 
3381
  case $host_os in
 
3382
  mingw* | pw32*)
 
3383
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3384
      want_nocaseglob=yes
 
3385
    else
 
3386
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3387
    fi
 
3388
    ;;
 
3389
  esac
 
3390
fi
 
3391
 
3180
3392
file_magic_cmd=$lt_cv_file_magic_cmd
3181
3393
deplibs_check_method=$lt_cv_deplibs_check_method
3182
3394
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3184
3396
_LT_DECL([], [deplibs_check_method], [1],
3185
3397
    [Method to check whether dependent libraries are shared objects])
3186
3398
_LT_DECL([], [file_magic_cmd], [1],
3187
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3399
    [Command to use when deplibs_check_method = "file_magic"])
 
3400
_LT_DECL([], [file_magic_glob], [1],
 
3401
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3402
_LT_DECL([], [want_nocaseglob], [1],
 
3403
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3188
3404
])# _LT_CHECK_MAGIC_METHOD
3189
3405
 
3190
3406
 
3241
3457
  NM="$lt_cv_path_NM"
3242
3458
else
3243
3459
  # Didn't find any BSD compatible name lister, look for dumpbin.
3244
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3460
  if test -n "$DUMPBIN"; then :
 
3461
    # Let the user override the test.
 
3462
  else
 
3463
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3464
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3465
    *COFF*)
 
3466
      DUMPBIN="$DUMPBIN -symbols"
 
3467
      ;;
 
3468
    *)
 
3469
      DUMPBIN=:
 
3470
      ;;
 
3471
    esac
 
3472
  fi
3245
3473
  AC_SUBST([DUMPBIN])
3246
3474
  if test "$DUMPBIN" != ":"; then
3247
3475
    NM="$DUMPBIN"
3254
3482
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3255
3483
  [lt_cv_nm_interface="BSD nm"
3256
3484
  echo "int some_variable = 0;" > conftest.$ac_ext
3257
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3485
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3258
3486
  (eval "$ac_compile" 2>conftest.err)
3259
3487
  cat conftest.err >&AS_MESSAGE_LOG_FD
3260
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3488
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3261
3489
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3262
3490
  cat conftest.err >&AS_MESSAGE_LOG_FD
3263
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3491
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3264
3492
  cat conftest.out >&AS_MESSAGE_LOG_FD
3265
3493
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3266
3494
    lt_cv_nm_interface="MS dumpbin"
3275
3503
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3504
dnl AC_DEFUN([AC_PROG_NM], [])
3277
3505
 
 
3506
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3507
# --------------------------------
 
3508
# how to determine the name of the shared library
 
3509
# associated with a specific link library.
 
3510
#  -- PORTME fill in with the dynamic library characteristics
 
3511
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3512
[m4_require([_LT_DECL_EGREP])
 
3513
m4_require([_LT_DECL_OBJDUMP])
 
3514
m4_require([_LT_DECL_DLLTOOL])
 
3515
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3516
lt_cv_sharedlib_from_linklib_cmd,
 
3517
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3518
 
 
3519
case $host_os in
 
3520
cygwin* | mingw* | pw32* | cegcc*)
 
3521
  # two different shell functions defined in ltmain.sh
 
3522
  # decide which to use based on capabilities of $DLLTOOL
 
3523
  case `$DLLTOOL --help 2>&1` in
 
3524
  *--identify-strict*)
 
3525
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3526
    ;;
 
3527
  *)
 
3528
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3529
    ;;
 
3530
  esac
 
3531
  ;;
 
3532
*)
 
3533
  # fallback: assume linklib IS sharedlib
 
3534
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3535
  ;;
 
3536
esac
 
3537
])
 
3538
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3539
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3540
 
 
3541
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3542
    [Command to associate shared and link libraries])
 
3543
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3544
 
 
3545
 
 
3546
# _LT_PATH_MANIFEST_TOOL
 
3547
# ----------------------
 
3548
# locate the manifest tool
 
3549
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3550
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3551
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3552
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3553
  [lt_cv_path_mainfest_tool=no
 
3554
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3555
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3556
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3557
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3558
    lt_cv_path_mainfest_tool=yes
 
3559
  fi
 
3560
  rm -f conftest*])
 
3561
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3562
  MANIFEST_TOOL=:
 
3563
fi
 
3564
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3565
])# _LT_PATH_MANIFEST_TOOL
 
3566
 
3278
3567
 
3279
3568
# LT_LIB_M
3280
3569
# --------
3283
3572
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3284
3573
LIBM=
3285
3574
case $host in
3286
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3575
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3287
3576
  # These system don't have libm, or don't need it
3288
3577
  ;;
3289
3578
*-ncr-sysv4.3*)
3311
3600
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3312
3601
 
3313
3602
if test "$GCC" = yes; then
3314
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3603
  case $cc_basename in
 
3604
  nvcc*)
 
3605
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3606
  *)
 
3607
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3608
  esac
3315
3609
 
3316
3610
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3317
3611
    lt_cv_prog_compiler_rtti_exceptions,
3328
3622
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3329
3623
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3330
3624
AC_REQUIRE([AC_PROG_CC])dnl
 
3625
AC_REQUIRE([AC_PROG_AWK])dnl
3331
3626
AC_REQUIRE([LT_PATH_NM])dnl
3332
3627
AC_REQUIRE([LT_PATH_LD])dnl
3333
3628
m4_require([_LT_DECL_SED])dnl
3395
3690
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3396
3691
 
3397
3692
# Transform an extracted symbol line into symbol name and symbol address
3398
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3399
 
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'"
 
3693
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3694
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'"
3400
3695
 
3401
3696
# Handle CRLF in mingw tool chain
3402
3697
opt_cr=
3420
3715
    # which start with @ or ?.
3421
3716
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3422
3717
"     {last_section=section; section=\$ 3};"\
 
3718
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3423
3719
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3424
3720
"     \$ 0!~/External *\|/{next};"\
3425
3721
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3432
3728
  else
3433
3729
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3434
3730
  fi
 
3731
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3435
3732
 
3436
3733
  # Check to see that the pipe works correctly.
3437
3734
  pipe_works=no
3453
3750
  if AC_TRY_EVAL(ac_compile); then
3454
3751
    # Now try to grab the symbols.
3455
3752
    nlist=conftest.nm
3456
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3753
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3457
3754
      # Try sorting and uniquifying the output.
3458
3755
      if sort "$nlist" | uniq > "$nlist"T; then
3459
3756
        mv -f "$nlist"T "$nlist"
3465
3762
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3466
3763
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3467
3764
          cat <<_LT_EOF > conftest.$ac_ext
 
3765
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3766
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3767
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3768
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3769
# define LT@&t@_DLSYM_CONST
 
3770
#elif defined(__osf__)
 
3771
/* This system does not cope well with relocations in const data.  */
 
3772
# define LT@&t@_DLSYM_CONST
 
3773
#else
 
3774
# define LT@&t@_DLSYM_CONST const
 
3775
#endif
 
3776
 
3468
3777
#ifdef __cplusplus
3469
3778
extern "C" {
3470
3779
#endif
3476
3785
          cat <<_LT_EOF >> conftest.$ac_ext
3477
3786
 
3478
3787
/* The mapping between symbol names and symbols.  */
3479
 
const struct {
 
3788
LT@&t@_DLSYM_CONST struct {
3480
3789
  const char *name;
3481
3790
  void       *address;
3482
3791
}
3502
3811
_LT_EOF
3503
3812
          # Now try linking the two files.
3504
3813
          mv conftest.$ac_objext conftstm.$ac_objext
3505
 
          lt_save_LIBS="$LIBS"
3506
 
          lt_save_CFLAGS="$CFLAGS"
 
3814
          lt_globsym_save_LIBS=$LIBS
 
3815
          lt_globsym_save_CFLAGS=$CFLAGS
3507
3816
          LIBS="conftstm.$ac_objext"
3508
3817
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3509
3818
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3510
3819
            pipe_works=yes
3511
3820
          fi
3512
 
          LIBS="$lt_save_LIBS"
3513
 
          CFLAGS="$lt_save_CFLAGS"
 
3821
          LIBS=$lt_globsym_save_LIBS
 
3822
          CFLAGS=$lt_globsym_save_CFLAGS
3514
3823
        else
3515
3824
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3516
3825
        fi
3543
3852
  AC_MSG_RESULT(ok)
3544
3853
fi
3545
3854
 
 
3855
# Response file support.
 
3856
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3857
  nm_file_list_spec='@'
 
3858
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3859
  nm_file_list_spec='@'
 
3860
fi
 
3861
 
3546
3862
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3547
3863
    [Take the output of nm and produce a listing of raw symbols and C names])
3548
3864
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3553
3869
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3554
3870
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3555
3871
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3872
_LT_DECL([], [nm_file_list_spec], [1],
 
3873
    [Specify filename containing input files for $NM])
3556
3874
]) # _LT_CMD_GLOBAL_SYMBOLS
3557
3875
 
3558
3876
 
3564
3882
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3565
3883
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3566
3884
 
3567
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3568
3885
m4_if([$1], [CXX], [
3569
3886
  # C++ specific cases for pic, static, wl, etc.
3570
3887
  if test "$GXX" = yes; then
3615
3932
      # DJGPP does not support shared libraries at all
3616
3933
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3617
3934
      ;;
 
3935
    haiku*)
 
3936
      # PIC is the default for Haiku.
 
3937
      # The "-static" flag exists, but is broken.
 
3938
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3939
      ;;
3618
3940
    interix[[3-9]]*)
3619
3941
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3620
3942
      # Instead, we relocate shared libraries at runtime.
3664
3986
          ;;
3665
3987
        esac
3666
3988
        ;;
 
3989
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
3990
        # This hack is so that the source file can tell whether it is being
 
3991
        # built for inclusion in a dll (and should export symbols for example).
 
3992
        m4_if([$1], [GCJ], [],
 
3993
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3994
        ;;
3667
3995
      dgux*)
3668
3996
        case $cc_basename in
3669
3997
          ec++*)
3720
4048
            ;;
3721
4049
        esac
3722
4050
        ;;
3723
 
      linux* | k*bsd*-gnu)
 
4051
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3724
4052
        case $cc_basename in
3725
4053
          KCC*)
3726
4054
            # KAI C++ Compiler
3753
4081
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3754
4082
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3755
4083
            ;;
3756
 
          xlc* | xlC*)
3757
 
            # IBM XL 8.0 on PPC
 
4084
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4085
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3758
4086
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3759
4087
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3760
4088
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3816
4144
        ;;
3817
4145
      solaris*)
3818
4146
        case $cc_basename in
3819
 
          CC*)
 
4147
          CC* | sunCC*)
3820
4148
            # Sun C++ 4.2, 5.x and Centerline C++
3821
4149
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3822
4150
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3920
4248
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3921
4249
      ;;
3922
4250
 
 
4251
    haiku*)
 
4252
      # PIC is the default for Haiku.
 
4253
      # The "-static" flag exists, but is broken.
 
4254
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4255
      ;;
 
4256
 
3923
4257
    hpux*)
3924
4258
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3925
4259
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3962
4296
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3963
4297
      ;;
3964
4298
    esac
 
4299
 
 
4300
    case $cc_basename in
 
4301
    nvcc*) # Cuda Compiler Driver 2.2
 
4302
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4303
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4304
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
4305
      fi
 
4306
      ;;
 
4307
    esac
3965
4308
  else
3966
4309
    # PORTME Check for flag to pass linker flags through the system compiler.
3967
4310
    case $host_os in
4004
4347
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4005
4348
      ;;
4006
4349
 
4007
 
    linux* | k*bsd*-gnu)
 
4350
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4008
4351
      case $cc_basename in
4009
4352
      # old Intel for x86_64 which still supported -KPIC.
4010
4353
      ecc*)
4025
4368
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4026
4369
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4027
4370
        ;;
4028
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4371
      nagfor*)
 
4372
        # NAG Fortran compiler
 
4373
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4374
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4375
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4376
        ;;
 
4377
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4029
4378
        # Portland Group compilers (*not* the Pentium gcc compiler,
4030
4379
        # which looks to be a dead project)
4031
4380
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037
4386
        # All Alpha code is PIC.
4038
4387
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4039
4388
        ;;
4040
 
      xl*)
4041
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4389
      xl* | bgxl* | bgf* | mpixl*)
 
4390
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4042
4391
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
4392
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4044
4393
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4045
4394
        ;;
4046
4395
      *)
4047
4396
        case `$CC -V 2>&1 | sed 5q` in
 
4397
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
4398
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4399
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4400
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4401
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4402
          ;;
 
4403
        *Sun\ F* | *Sun*Fortran*)
 
4404
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4405
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4406
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4407
          ;;
4048
4408
        *Sun\ C*)
4049
4409
          # Sun C 5.9
4050
4410
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051
4411
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052
4412
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053
4413
          ;;
4054
 
        *Sun\ F*)
4055
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4056
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4414
        *Intel*\ [[CF]]*Compiler*)
 
4415
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4416
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4417
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4418
          ;;
 
4419
        *Portland\ Group*)
 
4420
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4421
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4057
4422
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4059
4423
          ;;
4060
4424
        esac
4061
4425
        ;;
4087
4451
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088
4452
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
4453
      case $cc_basename in
4090
 
      f77* | f90* | f95*)
 
4454
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4091
4455
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4092
4456
      *)
4093
4457
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4144
4508
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4145
4509
    ;;
4146
4510
esac
4147
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4148
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4149
 
        [How to pass a linker flag through the compiler])
 
4511
 
 
4512
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4513
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4514
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4515
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4150
4516
 
4151
4517
#
4152
4518
# Check to make sure the PIC flag actually works.
4165
4531
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4166
4532
        [Additional compiler flags for building library objects])
4167
4533
 
 
4534
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4535
        [How to pass a linker flag through the compiler])
4168
4536
#
4169
4537
# Check to make sure the static flag actually works.
4170
4538
#
4185
4553
m4_defun([_LT_LINKER_SHLIBS],
4186
4554
[AC_REQUIRE([LT_PATH_LD])dnl
4187
4555
AC_REQUIRE([LT_PATH_NM])dnl
 
4556
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4188
4557
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4189
4558
m4_require([_LT_DECL_EGREP])dnl
4190
4559
m4_require([_LT_DECL_SED])dnl
4193
4562
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4194
4563
m4_if([$1], [CXX], [
4195
4564
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4565
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4196
4566
  case $host_os in
4197
4567
  aix[[4-9]]*)
4198
4568
    # If we're using GNU nm, then we don't want the "-C" option.
4199
4569
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4570
    # Also, AIX nm treats weak defined symbols like other global defined
 
4571
    # symbols, whereas GNU nm marks them as "W".
4200
4572
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4201
 
      _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'
 
4573
      _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'
4202
4574
    else
4203
4575
      _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'
4204
4576
    fi
4205
4577
    ;;
4206
4578
  pw32*)
4207
4579
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4208
 
  ;;
 
4580
    ;;
4209
4581
  cygwin* | mingw* | cegcc*)
4210
 
    _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'
4211
 
  ;;
4212
 
  linux* | k*bsd*-gnu)
 
4582
    case $cc_basename in
 
4583
    cl*)
 
4584
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
4585
      ;;
 
4586
    *)
 
4587
      _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'
 
4588
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4589
      ;;
 
4590
    esac
 
4591
    ;;
 
4592
  linux* | k*bsd*-gnu | gnu*)
4213
4593
    _LT_TAGVAR(link_all_deplibs, $1)=no
4214
 
  ;;
 
4594
    ;;
4215
4595
  *)
4216
4596
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4217
 
  ;;
 
4597
    ;;
4218
4598
  esac
4219
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4220
4599
], [
4221
4600
  runpath_var=
4222
4601
  _LT_TAGVAR(allow_undefined_flag, $1)=
4231
4610
  _LT_TAGVAR(hardcode_direct, $1)=no
4232
4611
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4233
4612
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4234
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4235
4613
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4236
4614
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4237
4615
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4276
4654
  openbsd*)
4277
4655
    with_gnu_ld=no
4278
4656
    ;;
4279
 
  linux* | k*bsd*-gnu)
 
4657
  linux* | k*bsd*-gnu | gnu*)
4280
4658
    _LT_TAGVAR(link_all_deplibs, $1)=no
4281
4659
    ;;
4282
4660
  esac
4283
4661
 
4284
4662
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4663
 
 
4664
  # On some targets, GNU ld is compatible enough with the native linker
 
4665
  # that we're better off using the native interface for both.
 
4666
  lt_use_gnu_ld_interface=no
4285
4667
  if test "$with_gnu_ld" = yes; then
 
4668
    case $host_os in
 
4669
      aix*)
 
4670
        # The AIX port of GNU ld has always aspired to compatibility
 
4671
        # with the native linker.  However, as the warning in the GNU ld
 
4672
        # block says, versions before 2.19.5* couldn't really create working
 
4673
        # shared libraries, regardless of the interface used.
 
4674
        case `$LD -v 2>&1` in
 
4675
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4676
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4677
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4678
          *)
 
4679
            lt_use_gnu_ld_interface=yes
 
4680
            ;;
 
4681
        esac
 
4682
        ;;
 
4683
      *)
 
4684
        lt_use_gnu_ld_interface=yes
 
4685
        ;;
 
4686
    esac
 
4687
  fi
 
4688
 
 
4689
  if test "$lt_use_gnu_ld_interface" = yes; then
4286
4690
    # If archive_cmds runs LD, not CC, wlarc should be empty
4287
4691
    wlarc='${wl}'
4288
4692
 
4300
4704
    fi
4301
4705
    supports_anon_versioning=no
4302
4706
    case `$LD -v 2>&1` in
 
4707
      *GNU\ gold*) supports_anon_versioning=yes ;;
4303
4708
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4304
4709
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4305
4710
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4315
4720
        _LT_TAGVAR(ld_shlibs, $1)=no
4316
4721
        cat <<_LT_EOF 1>&2
4317
4722
 
4318
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4723
*** Warning: the GNU linker, at least up to release 2.19, is reported
4319
4724
*** to be unable to reliably create shared libraries on AIX.
4320
4725
*** Therefore, libtool is disabling shared libraries support.  If you
4321
 
*** really care for shared libraries, you may want to modify your PATH
4322
 
*** so that a non-GNU linker is found, and then restart.
 
4726
*** really care for shared libraries, you may want to install binutils
 
4727
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4728
*** You will then need to restart the configuration process.
4323
4729
 
4324
4730
_LT_EOF
4325
4731
      fi
4355
4761
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4356
4762
      # as there is no search path for DLLs.
4357
4763
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4764
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4358
4765
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4359
4766
      _LT_TAGVAR(always_export_symbols, $1)=no
4360
4767
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4361
 
      _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'
 
4768
      _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'
 
4769
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4362
4770
 
4363
4771
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4364
4772
        _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'
4376
4784
      fi
4377
4785
      ;;
4378
4786
 
 
4787
    haiku*)
 
4788
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4789
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4790
      ;;
 
4791
 
4379
4792
    interix[[3-9]]*)
4380
4793
      _LT_TAGVAR(hardcode_direct, $1)=no
4381
4794
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4391
4804
      _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'
4392
4805
      ;;
4393
4806
 
4394
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4807
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4395
4808
      tmp_diet=no
4396
4809
      if test "$host_os" = linux-dietlibc; then
4397
4810
        case $cc_basename in
4401
4814
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4402
4815
         && test "$tmp_diet" = no
4403
4816
      then
4404
 
        tmp_addflag=
 
4817
        tmp_addflag=' $pic_flag'
4405
4818
        tmp_sharedflag='-shared'
4406
4819
        case $cc_basename,$host_cpu in
4407
4820
        pgcc*)                          # Portland Group C compiler
4408
 
          _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'
 
4821
          _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'
4409
4822
          tmp_addflag=' $pic_flag'
4410
4823
          ;;
4411
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4412
 
          _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'
 
4824
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4825
                                        # Portland Group f77 and f90 compilers
 
4826
          _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'
4413
4827
          tmp_addflag=' $pic_flag -Mnomain' ;;
4414
4828
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4415
4829
          tmp_addflag=' -i_dynamic' ;;
4420
4834
        lf95*)                          # Lahey Fortran 8.1
4421
4835
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4422
4836
          tmp_sharedflag='--shared' ;;
4423
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4837
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4424
4838
          tmp_sharedflag='-qmkshrobj'
4425
4839
          tmp_addflag= ;;
 
4840
        nvcc*)  # Cuda Compiler Driver 2.2
 
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'
 
4842
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4843
          ;;
4426
4844
        esac
4427
4845
        case `$CC -V 2>&1 | sed 5q` in
4428
4846
        *Sun\ C*)                       # Sun C 5.9
4429
 
          _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'
 
4847
          _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'
4430
4848
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4431
4849
          tmp_sharedflag='-G' ;;
4432
4850
        *Sun\ F*)                       # Sun Fortran 8.3
4442
4860
        fi
4443
4861
 
4444
4862
        case $cc_basename in
4445
 
        xlf*)
 
4863
        xlf* | bgf* | bgxlf* | mpixlf*)
4446
4864
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4447
4865
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4448
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4449
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4450
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4866
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4867
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4451
4868
          if test "x$supports_anon_versioning" = xyes; then
4452
4869
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4453
4870
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4454
4871
              echo "local: *; };" >> $output_objdir/$libname.ver~
4455
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4872
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4456
4873
          fi
4457
4874
          ;;
4458
4875
        esac
4466
4883
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4467
4884
        wlarc=
4468
4885
      else
4469
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4470
 
        _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'
 
4886
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4887
        _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'
4471
4888
      fi
4472
4889
      ;;
4473
4890
 
4485
4902
 
4486
4903
_LT_EOF
4487
4904
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4488
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4489
 
        _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'
 
4905
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4906
        _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'
4490
4907
      else
4491
4908
        _LT_TAGVAR(ld_shlibs, $1)=no
4492
4909
      fi
4532
4949
 
4533
4950
    *)
4534
4951
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4535
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4536
 
        _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'
 
4952
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4953
        _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'
4537
4954
      else
4538
4955
        _LT_TAGVAR(ld_shlibs, $1)=no
4539
4956
      fi
4573
4990
      else
4574
4991
        # If we're using GNU nm, then we don't want the "-C" option.
4575
4992
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4993
        # Also, AIX nm treats weak defined symbols like other global
 
4994
        # defined symbols, whereas GNU nm marks them as "W".
4576
4995
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4577
 
          _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'
 
4996
          _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'
4578
4997
        else
4579
4998
          _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'
4580
4999
        fi
4662
5081
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4663
5082
        # Determine the default libpath from the value encoded in an
4664
5083
        # empty executable.
4665
 
        _LT_SYS_MODULE_PATH_AIX
 
5084
        _LT_SYS_MODULE_PATH_AIX([$1])
4666
5085
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4667
 
        _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"
 
5086
        _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"
4668
5087
      else
4669
5088
        if test "$host_cpu" = ia64; then
4670
5089
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4673
5092
        else
4674
5093
         # Determine the default libpath from the value encoded in an
4675
5094
         # empty executable.
4676
 
         _LT_SYS_MODULE_PATH_AIX
 
5095
         _LT_SYS_MODULE_PATH_AIX([$1])
4677
5096
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4678
5097
          # Warning - without using the other run time loading flags,
4679
5098
          # -berok will link without error, but may produce a broken library.
4680
5099
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4681
5100
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4682
 
          # Exported symbols can be pulled into shared objects from archives
4683
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5101
          if test "$with_gnu_ld" = yes; then
 
5102
            # We only use this code for GNU lds that support --whole-archive.
 
5103
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5104
          else
 
5105
            # Exported symbols can be pulled into shared objects from archives
 
5106
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5107
          fi
4684
5108
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4685
5109
          # This is similar to how AIX traditionally builds its shared libraries.
4686
5110
          _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'
4712
5136
      # Microsoft Visual C++.
4713
5137
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4714
5138
      # no search path for DLLs.
4715
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4716
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4717
 
      # Tell ltmain to make .lib files, not .a files.
4718
 
      libext=lib
4719
 
      # Tell ltmain to make .dll files, not .so files.
4720
 
      shrext_cmds=".dll"
4721
 
      # FIXME: Setting linknames here is a bad hack.
4722
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4723
 
      # The linker will automatically build a .lib file if we build a DLL.
4724
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4725
 
      # FIXME: Should let the user specify the lib program.
4726
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4727
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4728
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5139
      case $cc_basename in
 
5140
      cl*)
 
5141
        # Native MSVC
 
5142
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5143
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5144
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5145
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5146
        # Tell ltmain to make .lib files, not .a files.
 
5147
        libext=lib
 
5148
        # Tell ltmain to make .dll files, not .so files.
 
5149
        shrext_cmds=".dll"
 
5150
        # FIXME: Setting linknames here is a bad hack.
 
5151
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5152
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5153
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5154
          else
 
5155
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5156
          fi~
 
5157
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5158
          linknames='
 
5159
        # The linker will not automatically build a static lib if we build a DLL.
 
5160
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5161
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5162
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5163
        _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'
 
5164
        # Don't use ranlib
 
5165
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5166
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5167
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5168
          case $lt_outputfile in
 
5169
            *.exe|*.EXE) ;;
 
5170
            *)
 
5171
              lt_outputfile="$lt_outputfile.exe"
 
5172
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5173
              ;;
 
5174
          esac~
 
5175
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5176
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5177
            $RM "$lt_outputfile.manifest";
 
5178
          fi'
 
5179
        ;;
 
5180
      *)
 
5181
        # Assume MSVC wrapper
 
5182
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5183
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5184
        # Tell ltmain to make .lib files, not .a files.
 
5185
        libext=lib
 
5186
        # Tell ltmain to make .dll files, not .so files.
 
5187
        shrext_cmds=".dll"
 
5188
        # FIXME: Setting linknames here is a bad hack.
 
5189
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5190
        # The linker will automatically build a .lib file if we build a DLL.
 
5191
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5192
        # FIXME: Should let the user specify the lib program.
 
5193
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5194
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5195
        ;;
 
5196
      esac
4729
5197
      ;;
4730
5198
 
4731
5199
    darwin* | rhapsody*)
4738
5206
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4739
5207
      ;;
4740
5208
 
4741
 
    freebsd1*)
4742
 
      _LT_TAGVAR(ld_shlibs, $1)=no
4743
 
      ;;
4744
 
 
4745
5209
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4746
5210
    # support.  Future versions do this automatically, but an explicit c++rt0.o
4747
5211
    # does not break anything, and helps significantly (at the cost of a little
4754
5218
      ;;
4755
5219
 
4756
5220
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4757
 
    freebsd2*)
 
5221
    freebsd2.*)
4758
5222
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4759
5223
      _LT_TAGVAR(hardcode_direct, $1)=yes
4760
5224
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4763
5227
 
4764
5228
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4765
5229
    freebsd* | dragonfly*)
4766
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5230
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4767
5231
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4768
5232
      _LT_TAGVAR(hardcode_direct, $1)=yes
4769
5233
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4771
5235
 
4772
5236
    hpux9*)
4773
5237
      if test "$GCC" = yes; then
4774
 
        _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'
 
5238
        _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'
4775
5239
      else
4776
5240
        _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'
4777
5241
      fi
4786
5250
      ;;
4787
5251
 
4788
5252
    hpux10*)
4789
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4790
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5253
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5254
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4791
5255
      else
4792
5256
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4793
5257
      fi
4794
5258
      if test "$with_gnu_ld" = no; then
4795
5259
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4797
5260
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4798
5261
        _LT_TAGVAR(hardcode_direct, $1)=yes
4799
5262
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4805
5268
      ;;
4806
5269
 
4807
5270
    hpux11*)
4808
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5271
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4809
5272
        case $host_cpu in
4810
5273
        hppa*64*)
4811
5274
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4812
5275
          ;;
4813
5276
        ia64*)
4814
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5277
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4815
5278
          ;;
4816
5279
        *)
4817
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5280
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4818
5281
          ;;
4819
5282
        esac
4820
5283
      else
4826
5289
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4827
5290
          ;;
4828
5291
        *)
4829
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5292
        m4_if($1, [], [
 
5293
          # Older versions of the 11.00 compiler do not understand -b yet
 
5294
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5295
          _LT_LINKER_OPTION([if $CC understands -b],
 
5296
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5297
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5298
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5299
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4830
5300
          ;;
4831
5301
        esac
4832
5302
      fi
4854
5324
 
4855
5325
    irix5* | irix6* | nonstopux*)
4856
5326
      if test "$GCC" = yes; then
4857
 
        _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'
 
5327
        _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'
4858
5328
        # Try to use the -exported_symbol ld option, if it does not
4859
5329
        # work, assume that -exports_file does not work either and
4860
5330
        # implicitly export all symbols.
4861
 
        save_LDFLAGS="$LDFLAGS"
4862
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4863
 
        AC_LINK_IFELSE(int foo(void) {},
4864
 
          _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'
4865
 
        )
4866
 
        LDFLAGS="$save_LDFLAGS"
 
5331
        # This should be the same for all languages, so no per-tag cache variable.
 
5332
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5333
          [lt_cv_irix_exported_symbol],
 
5334
          [save_LDFLAGS="$LDFLAGS"
 
5335
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5336
           AC_LINK_IFELSE(
 
5337
             [AC_LANG_SOURCE(
 
5338
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5339
                              [C++], [[int foo (void) { return 0; }]],
 
5340
                              [Fortran 77], [[
 
5341
      subroutine foo
 
5342
      end]],
 
5343
                              [Fortran], [[
 
5344
      subroutine foo
 
5345
      end]])])],
 
5346
              [lt_cv_irix_exported_symbol=yes],
 
5347
              [lt_cv_irix_exported_symbol=no])
 
5348
           LDFLAGS="$save_LDFLAGS"])
 
5349
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5350
          _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'
 
5351
        fi
4867
5352
      else
4868
 
        _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'
4869
 
        _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'
 
5353
        _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'
 
5354
        _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'
4870
5355
      fi
4871
5356
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4872
5357
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4928
5413
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4929
5414
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4930
5415
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4931
 
      _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'
 
5416
      _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'
4932
5417
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4933
5418
      ;;
4934
5419
 
4935
5420
    osf3*)
4936
5421
      if test "$GCC" = yes; then
4937
5422
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4938
 
        _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'
 
5423
        _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'
4939
5424
      else
4940
5425
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4941
 
        _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'
 
5426
        _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'
4942
5427
      fi
4943
5428
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4944
5429
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4948
5433
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4949
5434
      if test "$GCC" = yes; then
4950
5435
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4951
 
        _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'
 
5436
        _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'
4952
5437
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4953
5438
      else
4954
5439
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4955
 
        _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'
 
5440
        _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'
4956
5441
        _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~
4957
 
        $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'
 
5442
        $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'
4958
5443
 
4959
5444
        # Both c and cxx compiler support -rpath directly
4960
5445
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4967
5452
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4968
5453
      if test "$GCC" = yes; then
4969
5454
        wlarc='${wl}'
4970
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5455
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4971
5456
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4972
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5457
          $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'
4973
5458
      else
4974
5459
        case `$CC -V 2>&1` in
4975
5460
        *"Compilers 5.0"*)
5145
5630
      # Test whether the compiler implicitly links with -lc since on some
5146
5631
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5147
5632
      # to ld, don't add -lc before -lgcc.
5148
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5149
 
      $RM conftest*
5150
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5633
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5634
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5635
        [$RM conftest*
 
5636
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5151
5637
 
5152
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5153
 
        soname=conftest
5154
 
        lib=conftest
5155
 
        libobjs=conftest.$ac_objext
5156
 
        deplibs=
5157
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5158
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5159
 
        compiler_flags=-v
5160
 
        linker_flags=-v
5161
 
        verstring=
5162
 
        output_objdir=.
5163
 
        libname=conftest
5164
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5165
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5166
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5167
 
        then
5168
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5169
 
        else
5170
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5171
 
        fi
5172
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5173
 
      else
5174
 
        cat conftest.err 1>&5
5175
 
      fi
5176
 
      $RM conftest*
5177
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5638
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5639
          soname=conftest
 
5640
          lib=conftest
 
5641
          libobjs=conftest.$ac_objext
 
5642
          deplibs=
 
5643
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5644
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5645
          compiler_flags=-v
 
5646
          linker_flags=-v
 
5647
          verstring=
 
5648
          output_objdir=.
 
5649
          libname=conftest
 
5650
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5651
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5652
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5653
          then
 
5654
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5655
          else
 
5656
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5657
          fi
 
5658
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5659
        else
 
5660
          cat conftest.err 1>&5
 
5661
        fi
 
5662
        $RM conftest*
 
5663
        ])
 
5664
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5178
5665
      ;;
5179
5666
    esac
5180
5667
  fi
5211
5698
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5212
5699
    [Flag to hardcode $libdir into a binary during linking.
5213
5700
    This must work even if $libdir does not exist])
5214
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5215
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5216
 
    during linking.  This must work even if $libdir does not exist]])
5217
5701
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5218
5702
    [Whether we need a single "-rpath" flag with a separated argument])
5219
5703
_LT_TAGDECL([], [hardcode_direct], [0],
5239
5723
    to runtime path list])
5240
5724
_LT_TAGDECL([], [link_all_deplibs], [0],
5241
5725
    [Whether libtool must link a program against all its dependency libraries])
5242
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5243
 
    [Fix the shell variable $srcfile for the compiler])
5244
5726
_LT_TAGDECL([], [always_export_symbols], [0],
5245
5727
    [Set to "yes" if exported symbols are required])
5246
5728
_LT_TAGDECL([], [export_symbols_cmds], [2],
5251
5733
    [Symbols that must always be exported])
5252
5734
_LT_TAGDECL([], [prelink_cmds], [2],
5253
5735
    [Commands necessary for linking programs (against libraries) with templates])
 
5736
_LT_TAGDECL([], [postlink_cmds], [2],
 
5737
    [Commands necessary for finishing linking programs])
5254
5738
_LT_TAGDECL([], [file_list_spec], [1],
5255
5739
    [Specify filename containing input files])
5256
5740
dnl FIXME: Not yet implemented
5340
5824
])# _LT_LANG_C_CONFIG
5341
5825
 
5342
5826
 
5343
 
# _LT_PROG_CXX
5344
 
# ------------
5345
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5346
 
# compiler, we have our own version here.
5347
 
m4_defun([_LT_PROG_CXX],
5348
 
[
5349
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5350
 
AC_PROG_CXX
 
5827
# _LT_LANG_CXX_CONFIG([TAG])
 
5828
# --------------------------
 
5829
# Ensure that the configuration variables for a C++ compiler are suitably
 
5830
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5831
# the compiler configuration to `libtool'.
 
5832
m4_defun([_LT_LANG_CXX_CONFIG],
 
5833
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5834
m4_require([_LT_DECL_EGREP])dnl
 
5835
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5351
5836
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5352
5837
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5353
5838
    (test "X$CXX" != "Xg++"))) ; then
5355
5840
else
5356
5841
  _lt_caught_CXX_error=yes
5357
5842
fi
5358
 
popdef([AC_MSG_ERROR])
5359
 
])# _LT_PROG_CXX
5360
 
 
5361
 
dnl aclocal-1.4 backwards compatibility:
5362
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5363
 
 
5364
 
 
5365
 
# _LT_LANG_CXX_CONFIG([TAG])
5366
 
# --------------------------
5367
 
# Ensure that the configuration variables for a C++ compiler are suitably
5368
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5369
 
# the compiler configuration to `libtool'.
5370
 
m4_defun([_LT_LANG_CXX_CONFIG],
5371
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5372
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5373
 
m4_require([_LT_DECL_EGREP])dnl
5374
5843
 
5375
5844
AC_LANG_PUSH(C++)
5376
5845
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5382
5851
_LT_TAGVAR(hardcode_direct, $1)=no
5383
5852
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5384
5853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5385
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5386
5854
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5387
5855
_LT_TAGVAR(hardcode_minus_L, $1)=no
5388
5856
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5392
5860
_LT_TAGVAR(module_expsym_cmds, $1)=
5393
5861
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5394
5862
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5863
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5864
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5395
5865
_LT_TAGVAR(no_undefined_flag, $1)=
5396
5866
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5397
5867
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5423
5893
 
5424
5894
  # Allow CC to be a program name with arguments.
5425
5895
  lt_save_CC=$CC
 
5896
  lt_save_CFLAGS=$CFLAGS
5426
5897
  lt_save_LD=$LD
5427
5898
  lt_save_GCC=$GCC
5428
5899
  GCC=$GXX
5440
5911
  fi
5441
5912
  test -z "${LDCXX+set}" || LD=$LDCXX
5442
5913
  CC=${CXX-"c++"}
 
5914
  CFLAGS=$CXXFLAGS
5443
5915
  compiler=$CC
5444
5916
  _LT_TAGVAR(compiler, $1)=$CC
5445
5917
  _LT_CC_BASENAME([$compiler])
5461
5933
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5462
5934
      # archiving commands below assume that GNU ld is being used.
5463
5935
      if test "$with_gnu_ld" = yes; then
5464
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465
 
        _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'
 
5936
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5937
        _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'
5466
5938
 
5467
5939
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5468
5940
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5494
5966
      # Commands to make compiler produce verbose output that lists
5495
5967
      # what "hidden" libraries, object files and flags are used when
5496
5968
      # linking a shared library.
5497
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5969
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5498
5970
 
5499
5971
    else
5500
5972
      GXX=no
5603
6075
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5604
6076
          # Determine the default libpath from the value encoded in an empty
5605
6077
          # executable.
5606
 
          _LT_SYS_MODULE_PATH_AIX
 
6078
          _LT_SYS_MODULE_PATH_AIX([$1])
5607
6079
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5608
6080
 
5609
 
          _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"
 
6081
          _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"
5610
6082
        else
5611
6083
          if test "$host_cpu" = ia64; then
5612
6084
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5615
6087
          else
5616
6088
            # Determine the default libpath from the value encoded in an
5617
6089
            # empty executable.
5618
 
            _LT_SYS_MODULE_PATH_AIX
 
6090
            _LT_SYS_MODULE_PATH_AIX([$1])
5619
6091
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5620
6092
            # Warning - without using the other run time loading flags,
5621
6093
            # -berok will link without error, but may produce a broken library.
5622
6094
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5623
6095
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5624
 
            # Exported symbols can be pulled into shared objects from archives
5625
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6096
            if test "$with_gnu_ld" = yes; then
 
6097
              # We only use this code for GNU lds that support --whole-archive.
 
6098
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6099
            else
 
6100
              # Exported symbols can be pulled into shared objects from archives
 
6101
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6102
            fi
5626
6103
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5627
6104
            # This is similar to how AIX traditionally builds its shared
5628
6105
            # libraries.
5652
6129
        ;;
5653
6130
 
5654
6131
      cygwin* | mingw* | pw32* | cegcc*)
5655
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5656
 
        # as there is no search path for DLLs.
5657
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5659
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5660
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6132
        case $GXX,$cc_basename in
 
6133
        ,cl* | no,cl*)
 
6134
          # Native MSVC
 
6135
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6136
          # no search path for DLLs.
 
6137
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6138
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6139
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6140
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6141
          # Tell ltmain to make .lib files, not .a files.
 
6142
          libext=lib
 
6143
          # Tell ltmain to make .dll files, not .so files.
 
6144
          shrext_cmds=".dll"
 
6145
          # FIXME: Setting linknames here is a bad hack.
 
6146
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6147
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6148
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6149
            else
 
6150
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6151
            fi~
 
6152
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6153
            linknames='
 
6154
          # The linker will not automatically build a static lib if we build a DLL.
 
6155
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6156
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6157
          # Don't use ranlib
 
6158
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6159
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6160
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6161
            case $lt_outputfile in
 
6162
              *.exe|*.EXE) ;;
 
6163
              *)
 
6164
                lt_outputfile="$lt_outputfile.exe"
 
6165
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6166
                ;;
 
6167
            esac~
 
6168
            func_to_tool_file "$lt_outputfile"~
 
6169
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6170
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6171
              $RM "$lt_outputfile.manifest";
 
6172
            fi'
 
6173
          ;;
 
6174
        *)
 
6175
          # g++
 
6176
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6177
          # as there is no search path for DLLs.
 
6178
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6179
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6180
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6181
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6182
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5661
6183
 
5662
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5663
 
          _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'
5664
 
          # If the export-symbols file already is a .def file (1st line
5665
 
          # is EXPORTS), use it as is; otherwise, prepend...
5666
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5667
 
            cp $export_symbols $output_objdir/$soname.def;
5668
 
          else
5669
 
            echo EXPORTS > $output_objdir/$soname.def;
5670
 
            cat $export_symbols >> $output_objdir/$soname.def;
5671
 
          fi~
5672
 
          $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'
5673
 
        else
5674
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5675
 
        fi
5676
 
        ;;
 
6184
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6185
            _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'
 
6186
            # If the export-symbols file already is a .def file (1st line
 
6187
            # is EXPORTS), use it as is; otherwise, prepend...
 
6188
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6189
              cp $export_symbols $output_objdir/$soname.def;
 
6190
            else
 
6191
              echo EXPORTS > $output_objdir/$soname.def;
 
6192
              cat $export_symbols >> $output_objdir/$soname.def;
 
6193
            fi~
 
6194
            $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'
 
6195
          else
 
6196
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6197
          fi
 
6198
          ;;
 
6199
        esac
 
6200
        ;;
5677
6201
      darwin* | rhapsody*)
5678
6202
        _LT_DARWIN_LINKER_FEATURES($1)
5679
6203
        ;;
5696
6220
        esac
5697
6221
        ;;
5698
6222
 
5699
 
      freebsd[[12]]*)
 
6223
      freebsd2.*)
5700
6224
        # C++ shared libraries reported to be fairly broken before
5701
6225
        # switch to ELF
5702
6226
        _LT_TAGVAR(ld_shlibs, $1)=no
5712
6236
        _LT_TAGVAR(ld_shlibs, $1)=yes
5713
6237
        ;;
5714
6238
 
5715
 
      gnu*)
 
6239
      haiku*)
 
6240
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6241
        _LT_TAGVAR(link_all_deplibs, $1)=yes
5716
6242
        ;;
5717
6243
 
5718
6244
      hpux9*)
5739
6265
            # explicitly linking system object files so we need to strip them
5740
6266
            # from the output so that they don't get included in the library
5741
6267
            # dependencies.
5742
 
            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'
 
6268
            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"'
5743
6269
            ;;
5744
6270
          *)
5745
6271
            if test "$GXX" = yes; then
5746
 
              _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'
 
6272
              _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'
5747
6273
            else
5748
6274
              # FIXME: insert proper C++ library support
5749
6275
              _LT_TAGVAR(ld_shlibs, $1)=no
5804
6330
            # explicitly linking system object files so we need to strip them
5805
6331
            # from the output so that they don't get included in the library
5806
6332
            # dependencies.
5807
 
            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'
 
6333
            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"'
5808
6334
            ;;
5809
6335
          *)
5810
6336
            if test "$GXX" = yes; then
5814
6340
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5815
6341
                    ;;
5816
6342
                  ia64*)
5817
 
                    _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'
 
6343
                    _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'
5818
6344
                    ;;
5819
6345
                  *)
5820
 
                    _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'
 
6346
                    _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'
5821
6347
                    ;;
5822
6348
                esac
5823
6349
              fi
5847
6373
        case $cc_basename in
5848
6374
          CC*)
5849
6375
            # SGI C++
5850
 
            _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'
 
6376
            _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'
5851
6377
 
5852
6378
            # Archives containing C++ object files must be created using
5853
6379
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5858
6384
          *)
5859
6385
            if test "$GXX" = yes; then
5860
6386
              if test "$with_gnu_ld" = no; then
5861
 
                _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'
 
6387
                _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'
5862
6388
              else
5863
 
                _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'
 
6389
                _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'
5864
6390
              fi
5865
6391
            fi
5866
6392
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5871
6397
        _LT_TAGVAR(inherit_rpath, $1)=yes
5872
6398
        ;;
5873
6399
 
5874
 
      linux* | k*bsd*-gnu)
 
6400
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5875
6401
        case $cc_basename in
5876
6402
          KCC*)
5877
6403
            # Kuck and Associates, Inc. (KAI) C++ Compiler
5889
6415
            # explicitly linking system object files so we need to strip them
5890
6416
            # from the output so that they don't get included in the library
5891
6417
            # dependencies.
5892
 
            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'
 
6418
            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"'
5893
6419
 
5894
6420
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5895
6421
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5926
6452
          pgCC* | pgcpp*)
5927
6453
            # Portland Group C++ compiler
5928
6454
            case `$CC -V` in
5929
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6455
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5930
6456
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5931
6457
                rm -rf $tpldir~
5932
6458
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5933
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6459
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5934
6460
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5935
6461
                rm -rf $tpldir~
5936
6462
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5937
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6463
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5938
6464
                $RANLIB $oldlib'
5939
6465
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5940
6466
                rm -rf $tpldir~
5941
6467
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5942
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6468
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5943
6469
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5944
6470
                rm -rf $tpldir~
5945
6471
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5946
 
                $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'
 
6472
                $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'
5947
6473
              ;;
5948
 
            *) # Version 6 will use weak symbols
 
6474
            *) # Version 6 and above use weak symbols
5949
6475
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5950
6476
              _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'
5951
6477
              ;;
5953
6479
 
5954
6480
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5955
6481
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5956
 
            _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'
 
6482
            _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'
5957
6483
            ;;
5958
6484
          cxx*)
5959
6485
            # Compaq C++
5972
6498
            # explicitly linking system object files so we need to strip them
5973
6499
            # from the output so that they don't get included in the library
5974
6500
            # dependencies.
5975
 
            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'
 
6501
            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'
5976
6502
            ;;
5977
 
          xl*)
 
6503
          xl* | mpixl* | bgxl*)
5978
6504
            # IBM XL 8.0 on PPC, with GNU ld
5979
6505
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5980
6506
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5994
6520
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5995
6521
              _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'
5996
6522
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5997
 
              _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'
 
6523
              _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'
5998
6524
              _LT_TAGVAR(compiler_needs_object, $1)=yes
5999
6525
 
6000
6526
              # Not sure whether something based on
6001
6527
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6002
6528
              # would be better.
6003
 
              output_verbose_link_cmd='echo'
 
6529
              output_verbose_link_cmd='func_echo_all'
6004
6530
 
6005
6531
              # Archives containing C++ object files must be created using
6006
6532
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6069
6595
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6070
6596
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6071
6597
          fi
6072
 
          output_verbose_link_cmd=echo
 
6598
          output_verbose_link_cmd=func_echo_all
6073
6599
        else
6074
6600
          _LT_TAGVAR(ld_shlibs, $1)=no
6075
6601
        fi
6104
6630
            case $host in
6105
6631
              osf3*)
6106
6632
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6107
 
                _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'
 
6633
                _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'
6108
6634
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6109
6635
                ;;
6110
6636
              *)
6111
6637
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6112
 
                _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'
 
6638
                _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'
6113
6639
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6114
6640
                  echo "-hidden">> $lib.exp~
6115
 
                  $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~
 
6641
                  $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~
6116
6642
                  $RM $lib.exp'
6117
6643
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6118
6644
                ;;
6128
6654
            # explicitly linking system object files so we need to strip them
6129
6655
            # from the output so that they don't get included in the library
6130
6656
            # dependencies.
6131
 
            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'
 
6657
            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"'
6132
6658
            ;;
6133
6659
          *)
6134
6660
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6135
6661
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6136
6662
              case $host in
6137
6663
                osf3*)
6138
 
                  _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'
 
6664
                  _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'
6139
6665
                  ;;
6140
6666
                *)
6141
 
                  _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'
 
6667
                  _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'
6142
6668
                  ;;
6143
6669
              esac
6144
6670
 
6148
6674
              # Commands to make compiler produce verbose output that lists
6149
6675
              # what "hidden" libraries, object files and flags are used when
6150
6676
              # linking a shared library.
6151
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6677
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6152
6678
 
6153
6679
            else
6154
6680
              # FIXME: insert proper C++ library support
6184
6710
 
6185
6711
      solaris*)
6186
6712
        case $cc_basename in
6187
 
          CC*)
 
6713
          CC* | sunCC*)
6188
6714
            # Sun C++ 4.2, 5.x and Centerline C++
6189
6715
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6190
6716
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6205
6731
            esac
6206
6732
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6207
6733
 
6208
 
            output_verbose_link_cmd='echo'
 
6734
            output_verbose_link_cmd='func_echo_all'
6209
6735
 
6210
6736
            # Archives containing C++ object files must be created using
6211
6737
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6225
6751
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6226
6752
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6227
6753
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6228
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6754
                _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'
6229
6755
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6230
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6756
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6231
6757
 
6232
6758
                # Commands to make compiler produce verbose output that lists
6233
6759
                # what "hidden" libraries, object files and flags are used when
6234
6760
                # linking a shared library.
6235
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6761
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6236
6762
              else
6237
6763
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6238
6764
                # platform.
6243
6769
                # Commands to make compiler produce verbose output that lists
6244
6770
                # what "hidden" libraries, object files and flags are used when
6245
6771
                # linking a shared library.
6246
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6772
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6247
6773
              fi
6248
6774
 
6249
6775
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6297
6823
          CC*)
6298
6824
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6299
6825
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6826
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6827
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6828
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6829
              '"$_LT_TAGVAR(reload_cmds, $1)"
6300
6830
            ;;
6301
6831
          *)
6302
6832
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6352
6882
  fi # test -n "$compiler"
6353
6883
 
6354
6884
  CC=$lt_save_CC
 
6885
  CFLAGS=$lt_save_CFLAGS
6355
6886
  LDCXX=$LD
6356
6887
  LD=$lt_save_LD
6357
6888
  GCC=$lt_save_GCC
6366
6897
])# _LT_LANG_CXX_CONFIG
6367
6898
 
6368
6899
 
 
6900
# _LT_FUNC_STRIPNAME_CNF
 
6901
# ----------------------
 
6902
# func_stripname_cnf prefix suffix name
 
6903
# strip PREFIX and SUFFIX off of NAME.
 
6904
# PREFIX and SUFFIX must not contain globbing or regex special
 
6905
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
6906
# dot (in which case that matches only a dot).
 
6907
#
 
6908
# This function is identical to the (non-XSI) version of func_stripname,
 
6909
# except this one can be used by m4 code that may be executed by configure,
 
6910
# rather than the libtool script.
 
6911
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
6912
AC_REQUIRE([_LT_DECL_SED])
 
6913
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
6914
func_stripname_cnf ()
 
6915
{
 
6916
  case ${2} in
 
6917
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
6918
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
6919
  esac
 
6920
} # func_stripname_cnf
 
6921
])# _LT_FUNC_STRIPNAME_CNF
 
6922
 
6369
6923
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6370
6924
# ---------------------------------
6371
6925
# Figure out "hidden" library dependencies from verbose
6374
6928
# objects, libraries and library flags.
6375
6929
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6376
6930
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6931
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6377
6932
# Dependencies to place before and after the object being linked:
6378
6933
_LT_TAGVAR(predep_objects, $1)=
6379
6934
_LT_TAGVAR(postdep_objects, $1)=
6423
6978
  }
6424
6979
};
6425
6980
_LT_EOF
 
6981
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
6982
package foo
 
6983
func foo() {
 
6984
}
 
6985
_LT_EOF
6426
6986
])
 
6987
 
 
6988
_lt_libdeps_save_CFLAGS=$CFLAGS
 
6989
case "$CC $CFLAGS " in #(
 
6990
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
6991
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
6992
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
6993
esac
 
6994
 
6427
6995
dnl Parse the compiler output and extract the necessary
6428
6996
dnl objects, libraries and library flags.
6429
6997
if AC_TRY_EVAL(ac_compile); then
6435
7003
  pre_test_object_deps_done=no
6436
7004
 
6437
7005
  for p in `eval "$output_verbose_link_cmd"`; do
6438
 
    case $p in
 
7006
    case ${prev}${p} in
6439
7007
 
6440
7008
    -L* | -R* | -l*)
6441
7009
       # Some compilers place space between "-{L,R}" and the path.
6444
7012
          test $p = "-R"; then
6445
7013
         prev=$p
6446
7014
         continue
6447
 
       else
6448
 
         prev=
6449
7015
       fi
6450
7016
 
 
7017
       # Expand the sysroot to ease extracting the directories later.
 
7018
       if test -z "$prev"; then
 
7019
         case $p in
 
7020
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7021
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7022
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7023
         esac
 
7024
       fi
 
7025
       case $p in
 
7026
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7027
       esac
6451
7028
       if test "$pre_test_object_deps_done" = no; then
6452
 
         case $p in
6453
 
         -L* | -R*)
 
7029
         case ${prev} in
 
7030
         -L | -R)
6454
7031
           # Internal compiler library paths should come after those
6455
7032
           # provided the user.  The postdeps already come after the
6456
7033
           # user supplied libs so there is no need to process them.
6470
7047
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6471
7048
         fi
6472
7049
       fi
 
7050
       prev=
6473
7051
       ;;
6474
7052
 
 
7053
    *.lto.$objext) ;; # Ignore GCC LTO objects
6475
7054
    *.$objext)
6476
7055
       # This assumes that the test object file only shows up
6477
7056
       # once in the compiler output.
6507
7086
fi
6508
7087
 
6509
7088
$RM -f confest.$objext
 
7089
CFLAGS=$_lt_libdeps_save_CFLAGS
6510
7090
 
6511
7091
# PORTME: override above test on systems where it is broken
6512
7092
m4_if([$1], [CXX],
6543
7123
 
6544
7124
solaris*)
6545
7125
  case $cc_basename in
6546
 
  CC*)
 
7126
  CC* | sunCC*)
6547
7127
    # The more standards-conforming stlport4 library is
6548
7128
    # incompatible with the Cstd library. Avoid specifying
6549
7129
    # it if it's in CXXFLAGS. Ignore libCrun as
6587
7167
])# _LT_SYS_HIDDEN_LIBDEPS
6588
7168
 
6589
7169
 
6590
 
# _LT_PROG_F77
6591
 
# ------------
6592
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6593
 
# if there is no fortran compiler, we have our own version here.
6594
 
m4_defun([_LT_PROG_F77],
6595
 
[
6596
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6597
 
AC_PROG_F77
6598
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6599
 
  _lt_disable_F77=yes
6600
 
fi
6601
 
popdef([AC_MSG_ERROR])
6602
 
])# _LT_PROG_F77
6603
 
 
6604
 
dnl aclocal-1.4 backwards compatibility:
6605
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6606
 
 
6607
 
 
6608
7170
# _LT_LANG_F77_CONFIG([TAG])
6609
7171
# --------------------------
6610
7172
# Ensure that the configuration variables for a Fortran 77 compiler are
6611
7173
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6612
7174
# to write the compiler configuration to `libtool'.
6613
7175
m4_defun([_LT_LANG_F77_CONFIG],
6614
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6615
 
AC_LANG_PUSH(Fortran 77)
 
7176
[AC_LANG_PUSH(Fortran 77)
 
7177
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7178
  _lt_disable_F77=yes
 
7179
fi
6616
7180
 
6617
7181
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6618
7182
_LT_TAGVAR(allow_undefined_flag, $1)=
6622
7186
_LT_TAGVAR(hardcode_direct, $1)=no
6623
7187
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6624
7188
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6625
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6626
7189
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6627
7190
_LT_TAGVAR(hardcode_minus_L, $1)=no
6628
7191
_LT_TAGVAR(hardcode_automatic, $1)=no
6631
7194
_LT_TAGVAR(module_expsym_cmds, $1)=
6632
7195
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6633
7196
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7197
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7198
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6634
7199
_LT_TAGVAR(no_undefined_flag, $1)=
6635
7200
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6636
7201
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6670
7235
  # Allow CC to be a program name with arguments.
6671
7236
  lt_save_CC="$CC"
6672
7237
  lt_save_GCC=$GCC
 
7238
  lt_save_CFLAGS=$CFLAGS
6673
7239
  CC=${F77-"f77"}
 
7240
  CFLAGS=$FFLAGS
6674
7241
  compiler=$CC
6675
7242
  _LT_TAGVAR(compiler, $1)=$CC
6676
7243
  _LT_CC_BASENAME([$compiler])
6724
7291
 
6725
7292
  GCC=$lt_save_GCC
6726
7293
  CC="$lt_save_CC"
 
7294
  CFLAGS="$lt_save_CFLAGS"
6727
7295
fi # test "$_lt_disable_F77" != yes
6728
7296
 
6729
7297
AC_LANG_POP
6730
7298
])# _LT_LANG_F77_CONFIG
6731
7299
 
6732
7300
 
6733
 
# _LT_PROG_FC
6734
 
# -----------
6735
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6736
 
# if there is no fortran compiler, we have our own version here.
6737
 
m4_defun([_LT_PROG_FC],
6738
 
[
6739
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6740
 
AC_PROG_FC
6741
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6742
 
  _lt_disable_FC=yes
6743
 
fi
6744
 
popdef([AC_MSG_ERROR])
6745
 
])# _LT_PROG_FC
6746
 
 
6747
 
dnl aclocal-1.4 backwards compatibility:
6748
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6749
 
 
6750
 
 
6751
7301
# _LT_LANG_FC_CONFIG([TAG])
6752
7302
# -------------------------
6753
7303
# Ensure that the configuration variables for a Fortran compiler are
6754
7304
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6755
7305
# to write the compiler configuration to `libtool'.
6756
7306
m4_defun([_LT_LANG_FC_CONFIG],
6757
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6758
 
AC_LANG_PUSH(Fortran)
 
7307
[AC_LANG_PUSH(Fortran)
 
7308
 
 
7309
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7310
  _lt_disable_FC=yes
 
7311
fi
6759
7312
 
6760
7313
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6761
7314
_LT_TAGVAR(allow_undefined_flag, $1)=
6765
7318
_LT_TAGVAR(hardcode_direct, $1)=no
6766
7319
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6767
7320
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6768
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6769
7321
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6770
7322
_LT_TAGVAR(hardcode_minus_L, $1)=no
6771
7323
_LT_TAGVAR(hardcode_automatic, $1)=no
6774
7326
_LT_TAGVAR(module_expsym_cmds, $1)=
6775
7327
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6776
7328
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7329
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7330
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6777
7331
_LT_TAGVAR(no_undefined_flag, $1)=
6778
7332
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6779
7333
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6813
7367
  # Allow CC to be a program name with arguments.
6814
7368
  lt_save_CC="$CC"
6815
7369
  lt_save_GCC=$GCC
 
7370
  lt_save_CFLAGS=$CFLAGS
6816
7371
  CC=${FC-"f95"}
 
7372
  CFLAGS=$FCFLAGS
6817
7373
  compiler=$CC
6818
7374
  GCC=$ac_cv_fc_compiler_gnu
6819
7375
 
6869
7425
  fi # test -n "$compiler"
6870
7426
 
6871
7427
  GCC=$lt_save_GCC
6872
 
  CC="$lt_save_CC"
 
7428
  CC=$lt_save_CC
 
7429
  CFLAGS=$lt_save_CFLAGS
6873
7430
fi # test "$_lt_disable_FC" != yes
6874
7431
 
6875
7432
AC_LANG_POP
6906
7463
_LT_LINKER_BOILERPLATE
6907
7464
 
6908
7465
# Allow CC to be a program name with arguments.
6909
 
lt_save_CC="$CC"
 
7466
lt_save_CC=$CC
 
7467
lt_save_CFLAGS=$CFLAGS
6910
7468
lt_save_GCC=$GCC
6911
7469
GCC=yes
6912
7470
CC=${GCJ-"gcj"}
 
7471
CFLAGS=$GCJFLAGS
6913
7472
compiler=$CC
6914
7473
_LT_TAGVAR(compiler, $1)=$CC
6915
7474
_LT_TAGVAR(LD, $1)="$LD"
6919
7478
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6920
7479
 
6921
7480
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7481
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7482
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6922
7483
 
6923
7484
if test -n "$compiler"; then
6924
7485
  _LT_COMPILER_NO_RTTI($1)
6934
7495
AC_LANG_RESTORE
6935
7496
 
6936
7497
GCC=$lt_save_GCC
6937
 
CC="$lt_save_CC"
 
7498
CC=$lt_save_CC
 
7499
CFLAGS=$lt_save_CFLAGS
6938
7500
])# _LT_LANG_GCJ_CONFIG
6939
7501
 
6940
7502
 
 
7503
# _LT_LANG_GO_CONFIG([TAG])
 
7504
# --------------------------
 
7505
# Ensure that the configuration variables for the GNU Go compiler
 
7506
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7507
# to write the compiler configuration to `libtool'.
 
7508
m4_defun([_LT_LANG_GO_CONFIG],
 
7509
[AC_REQUIRE([LT_PROG_GO])dnl
 
7510
AC_LANG_SAVE
 
7511
 
 
7512
# Source file extension for Go test sources.
 
7513
ac_ext=go
 
7514
 
 
7515
# Object file extension for compiled Go test sources.
 
7516
objext=o
 
7517
_LT_TAGVAR(objext, $1)=$objext
 
7518
 
 
7519
# Code to be used in simple compile tests
 
7520
lt_simple_compile_test_code="package main; func main() { }"
 
7521
 
 
7522
# Code to be used in simple link tests
 
7523
lt_simple_link_test_code='package main; func main() { }'
 
7524
 
 
7525
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7526
_LT_TAG_COMPILER
 
7527
 
 
7528
# save warnings/boilerplate of simple test code
 
7529
_LT_COMPILER_BOILERPLATE
 
7530
_LT_LINKER_BOILERPLATE
 
7531
 
 
7532
# Allow CC to be a program name with arguments.
 
7533
lt_save_CC=$CC
 
7534
lt_save_CFLAGS=$CFLAGS
 
7535
lt_save_GCC=$GCC
 
7536
GCC=yes
 
7537
CC=${GOC-"gccgo"}
 
7538
CFLAGS=$GOFLAGS
 
7539
compiler=$CC
 
7540
_LT_TAGVAR(compiler, $1)=$CC
 
7541
_LT_TAGVAR(LD, $1)="$LD"
 
7542
_LT_CC_BASENAME([$compiler])
 
7543
 
 
7544
# Go did not exist at the time GCC didn't implicitly link libc in.
 
7545
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7546
 
 
7547
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7548
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7549
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
7550
 
 
7551
if test -n "$compiler"; then
 
7552
  _LT_COMPILER_NO_RTTI($1)
 
7553
  _LT_COMPILER_PIC($1)
 
7554
  _LT_COMPILER_C_O($1)
 
7555
  _LT_COMPILER_FILE_LOCKS($1)
 
7556
  _LT_LINKER_SHLIBS($1)
 
7557
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7558
 
 
7559
  _LT_CONFIG($1)
 
7560
fi
 
7561
 
 
7562
AC_LANG_RESTORE
 
7563
 
 
7564
GCC=$lt_save_GCC
 
7565
CC=$lt_save_CC
 
7566
CFLAGS=$lt_save_CFLAGS
 
7567
])# _LT_LANG_GO_CONFIG
 
7568
 
 
7569
 
6941
7570
# _LT_LANG_RC_CONFIG([TAG])
6942
7571
# -------------------------
6943
7572
# Ensure that the configuration variables for the Windows resource compiler
6969
7598
 
6970
7599
# Allow CC to be a program name with arguments.
6971
7600
lt_save_CC="$CC"
 
7601
lt_save_CFLAGS=$CFLAGS
6972
7602
lt_save_GCC=$GCC
6973
7603
GCC=
6974
7604
CC=${RC-"windres"}
 
7605
CFLAGS=
6975
7606
compiler=$CC
6976
7607
_LT_TAGVAR(compiler, $1)=$CC
6977
7608
_LT_CC_BASENAME([$compiler])
6984
7615
 
6985
7616
GCC=$lt_save_GCC
6986
7617
AC_LANG_RESTORE
6987
 
CC="$lt_save_CC"
 
7618
CC=$lt_save_CC
 
7619
CFLAGS=$lt_save_CFLAGS
6988
7620
])# _LT_LANG_RC_CONFIG
6989
7621
 
6990
7622
 
7004
7636
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7005
7637
 
7006
7638
 
 
7639
# LT_PROG_GO
 
7640
# ----------
 
7641
AC_DEFUN([LT_PROG_GO],
 
7642
[AC_CHECK_TOOL(GOC, gccgo,)
 
7643
])
 
7644
 
 
7645
 
7007
7646
# LT_PROG_RC
7008
7647
# ----------
7009
7648
AC_DEFUN([LT_PROG_RC],
7043
7682
AC_SUBST([OBJDUMP])
7044
7683
])
7045
7684
 
 
7685
# _LT_DECL_DLLTOOL
 
7686
# ----------------
 
7687
# Ensure DLLTOOL variable is set.
 
7688
m4_defun([_LT_DECL_DLLTOOL],
 
7689
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7690
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7691
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7692
AC_SUBST([DLLTOOL])
 
7693
])
7046
7694
 
7047
7695
# _LT_DECL_SED
7048
7696
# ------------
7134
7782
# Try some XSI features
7135
7783
xsi_shell=no
7136
7784
( _lt_dummy="a/b/c"
7137
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7138
 
      = c,a/b,, \
 
7785
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7786
      = c,a/b,b/c, \
7139
7787
    && eval 'test $(( 1 + 1 )) -eq 2 \
7140
7788
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7141
7789
  && xsi_shell=yes
7174
7822
])# _LT_CHECK_SHELL_FEATURES
7175
7823
 
7176
7824
 
7177
 
# _LT_PROG_XSI_SHELLFNS
7178
 
# ---------------------
7179
 
# Bourne and XSI compatible variants of some useful shell functions.
7180
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7181
 
[case $xsi_shell in
7182
 
  yes)
7183
 
    cat << \_LT_EOF >> "$cfgfile"
7184
 
 
7185
 
# func_dirname file append nondir_replacement
7186
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7187
 
# otherwise set result to NONDIR_REPLACEMENT.
7188
 
func_dirname ()
7189
 
{
7190
 
  case ${1} in
7191
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7192
 
    *  ) func_dirname_result="${3}" ;;
7193
 
  esac
7194
 
}
7195
 
 
7196
 
# func_basename file
7197
 
func_basename ()
7198
 
{
7199
 
  func_basename_result="${1##*/}"
7200
 
}
7201
 
 
7202
 
# func_dirname_and_basename file append nondir_replacement
7203
 
# perform func_basename and func_dirname in a single function
7204
 
# call:
7205
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7206
 
#             add APPEND to the result, otherwise set result
7207
 
#             to NONDIR_REPLACEMENT.
7208
 
#             value returned in "$func_dirname_result"
7209
 
#   basename: Compute filename of FILE.
7210
 
#             value retuned in "$func_basename_result"
7211
 
# Implementation must be kept synchronized with func_dirname
7212
 
# and func_basename. For efficiency, we do not delegate to
7213
 
# those functions but instead duplicate the functionality here.
7214
 
func_dirname_and_basename ()
7215
 
{
7216
 
  case ${1} in
7217
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7218
 
    *  ) func_dirname_result="${3}" ;;
7219
 
  esac
7220
 
  func_basename_result="${1##*/}"
7221
 
}
7222
 
 
7223
 
# func_stripname prefix suffix name
7224
 
# strip PREFIX and SUFFIX off of NAME.
7225
 
# PREFIX and SUFFIX must not contain globbing or regex special
7226
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7227
 
# dot (in which case that matches only a dot).
7228
 
func_stripname ()
7229
 
{
7230
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7231
 
  # positional parameters, so assign one to ordinary parameter first.
7232
 
  func_stripname_result=${3}
7233
 
  func_stripname_result=${func_stripname_result#"${1}"}
7234
 
  func_stripname_result=${func_stripname_result%"${2}"}
7235
 
}
7236
 
 
7237
 
# func_opt_split
7238
 
func_opt_split ()
7239
 
{
7240
 
  func_opt_split_opt=${1%%=*}
7241
 
  func_opt_split_arg=${1#*=}
7242
 
}
7243
 
 
7244
 
# func_lo2o object
7245
 
func_lo2o ()
7246
 
{
7247
 
  case ${1} in
7248
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7249
 
    *)    func_lo2o_result=${1} ;;
7250
 
  esac
7251
 
}
7252
 
 
7253
 
# func_xform libobj-or-source
7254
 
func_xform ()
7255
 
{
7256
 
  func_xform_result=${1%.*}.lo
7257
 
}
7258
 
 
7259
 
# func_arith arithmetic-term...
7260
 
func_arith ()
7261
 
{
7262
 
  func_arith_result=$(( $[*] ))
7263
 
}
7264
 
 
7265
 
# func_len string
7266
 
# STRING may not start with a hyphen.
7267
 
func_len ()
7268
 
{
7269
 
  func_len_result=${#1}
7270
 
}
7271
 
 
7272
 
_LT_EOF
7273
 
    ;;
7274
 
  *) # Bourne compatible functions.
7275
 
    cat << \_LT_EOF >> "$cfgfile"
7276
 
 
7277
 
# func_dirname file append nondir_replacement
7278
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7279
 
# otherwise set result to NONDIR_REPLACEMENT.
7280
 
func_dirname ()
7281
 
{
7282
 
  # Extract subdirectory from the argument.
7283
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7284
 
  if test "X$func_dirname_result" = "X${1}"; then
7285
 
    func_dirname_result="${3}"
7286
 
  else
7287
 
    func_dirname_result="$func_dirname_result${2}"
7288
 
  fi
7289
 
}
7290
 
 
7291
 
# func_basename file
7292
 
func_basename ()
7293
 
{
7294
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7295
 
}
7296
 
 
7297
 
dnl func_dirname_and_basename
7298
 
dnl A portable version of this function is already defined in general.m4sh
7299
 
dnl so there is no need for it here.
7300
 
 
7301
 
# func_stripname prefix suffix name
7302
 
# strip PREFIX and SUFFIX off of NAME.
7303
 
# PREFIX and SUFFIX must not contain globbing or regex special
7304
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7305
 
# dot (in which case that matches only a dot).
7306
 
# func_strip_suffix prefix name
7307
 
func_stripname ()
7308
 
{
7309
 
  case ${2} in
7310
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7311
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7312
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7313
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7314
 
  esac
7315
 
}
7316
 
 
7317
 
# sed scripts:
7318
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7319
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7320
 
 
7321
 
# func_opt_split
7322
 
func_opt_split ()
7323
 
{
7324
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7325
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7326
 
}
7327
 
 
7328
 
# func_lo2o object
7329
 
func_lo2o ()
7330
 
{
7331
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7332
 
}
7333
 
 
7334
 
# func_xform libobj-or-source
7335
 
func_xform ()
7336
 
{
7337
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7338
 
}
7339
 
 
7340
 
# func_arith arithmetic-term...
7341
 
func_arith ()
7342
 
{
7343
 
  func_arith_result=`expr "$[@]"`
7344
 
}
7345
 
 
7346
 
# func_len string
7347
 
# STRING may not start with a hyphen.
7348
 
func_len ()
7349
 
{
7350
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7351
 
}
7352
 
 
7353
 
_LT_EOF
7354
 
esac
7355
 
 
7356
 
case $lt_shell_append in
7357
 
  yes)
7358
 
    cat << \_LT_EOF >> "$cfgfile"
7359
 
 
7360
 
# func_append var value
7361
 
# Append VALUE to the end of shell variable VAR.
7362
 
func_append ()
7363
 
{
7364
 
  eval "$[1]+=\$[2]"
7365
 
}
7366
 
_LT_EOF
7367
 
    ;;
7368
 
  *)
7369
 
    cat << \_LT_EOF >> "$cfgfile"
7370
 
 
7371
 
# func_append var value
7372
 
# Append VALUE to the end of shell variable VAR.
7373
 
func_append ()
7374
 
{
7375
 
  eval "$[1]=\$$[1]\$[2]"
7376
 
}
7377
 
 
7378
 
_LT_EOF
7379
 
    ;;
7380
 
  esac
7381
 
])
 
7825
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7826
# ------------------------------------------------------
 
7827
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7828
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7829
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7830
[dnl {
 
7831
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7832
$1 ()\
 
7833
{\
 
7834
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7835
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7836
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7837
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7838
test 0 -eq $? || _lt_function_replace_fail=:
 
7839
])
 
7840
 
 
7841
 
 
7842
# _LT_PROG_REPLACE_SHELLFNS
 
7843
# -------------------------
 
7844
# Replace existing portable implementations of several shell functions with
 
7845
# equivalent extended shell implementations where those features are available..
 
7846
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7847
[if test x"$xsi_shell" = xyes; then
 
7848
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7849
    case ${1} in
 
7850
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7851
      *  ) func_dirname_result="${3}" ;;
 
7852
    esac])
 
7853
 
 
7854
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7855
    func_basename_result="${1##*/}"])
 
7856
 
 
7857
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7858
    case ${1} in
 
7859
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7860
      *  ) func_dirname_result="${3}" ;;
 
7861
    esac
 
7862
    func_basename_result="${1##*/}"])
 
7863
 
 
7864
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7865
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7866
    # positional parameters, so assign one to ordinary parameter first.
 
7867
    func_stripname_result=${3}
 
7868
    func_stripname_result=${func_stripname_result#"${1}"}
 
7869
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7870
 
 
7871
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
7872
    func_split_long_opt_name=${1%%=*}
 
7873
    func_split_long_opt_arg=${1#*=}])
 
7874
 
 
7875
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
7876
    func_split_short_opt_arg=${1#??}
 
7877
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
7878
 
 
7879
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
7880
    case ${1} in
 
7881
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7882
      *)    func_lo2o_result=${1} ;;
 
7883
    esac])
 
7884
 
 
7885
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
7886
 
 
7887
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
7888
 
 
7889
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
7890
fi
 
7891
 
 
7892
if test x"$lt_shell_append" = xyes; then
 
7893
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
7894
 
 
7895
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
7896
    func_quote_for_eval "${2}"
 
7897
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
7898
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
7899
 
 
7900
  # Save a `func_append' function call where possible by direct use of '+='
 
7901
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
7902
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7903
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7904
  test 0 -eq $? || _lt_function_replace_fail=:
 
7905
else
 
7906
  # Save a `func_append' function call even when '+=' is not available
 
7907
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
7908
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7909
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7910
  test 0 -eq $? || _lt_function_replace_fail=:
 
7911
fi
 
7912
 
 
7913
if test x"$_lt_function_replace_fail" = x":"; then
 
7914
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
7915
fi
 
7916
])
 
7917
 
 
7918
# _LT_PATH_CONVERSION_FUNCTIONS
 
7919
# -----------------------------
 
7920
# Determine which file name conversion functions should be used by
 
7921
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
7922
# for certain cross-compile configurations and native mingw.
 
7923
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
7924
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7925
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
7926
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
7927
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
7928
[case $host in
 
7929
  *-*-mingw* )
 
7930
    case $build in
 
7931
      *-*-mingw* ) # actually msys
 
7932
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7933
        ;;
 
7934
      *-*-cygwin* )
 
7935
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7936
        ;;
 
7937
      * ) # otherwise, assume *nix
 
7938
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7939
        ;;
 
7940
    esac
 
7941
    ;;
 
7942
  *-*-cygwin* )
 
7943
    case $build in
 
7944
      *-*-mingw* ) # actually msys
 
7945
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7946
        ;;
 
7947
      *-*-cygwin* )
 
7948
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7949
        ;;
 
7950
      * ) # otherwise, assume *nix
 
7951
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7952
        ;;
 
7953
    esac
 
7954
    ;;
 
7955
  * ) # unhandled hosts (and "normal" native builds)
 
7956
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7957
    ;;
 
7958
esac
 
7959
])
 
7960
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7961
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
7962
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
7963
         [0], [convert $build file names to $host format])dnl
 
7964
 
 
7965
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
7966
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
7967
[#assume ordinary cross tools, or native build.
 
7968
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7969
case $host in
 
7970
  *-*-mingw* )
 
7971
    case $build in
 
7972
      *-*-mingw* ) # actually msys
 
7973
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7974
        ;;
 
7975
    esac
 
7976
    ;;
 
7977
esac
 
7978
])
 
7979
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7980
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
7981
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
7982
         [0], [convert $build files to toolchain format])dnl
 
7983
])# _LT_PATH_CONVERSION_FUNCTIONS
7382
7984
 
7383
7985
# Helper functions for option handling.                    -*- Autoconf -*-
7384
7986
#
7385
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7987
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
7988
#   Inc.
7386
7989
#   Written by Gary V. Vaughan, 2004
7387
7990
#
7388
7991
# This file is free software; the Free Software Foundation gives
7389
7992
# unlimited permission to copy and/or distribute it, with or without
7390
7993
# modifications, as long as this notice is preserved.
7391
7994
 
7392
 
# serial 6 ltoptions.m4
 
7995
# serial 7 ltoptions.m4
7393
7996
 
7394
7997
# This is to help aclocal find these macros, as it can't see m4_define.
7395
7998
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7504
8107
[enable_win32_dll=yes
7505
8108
 
7506
8109
case $host in
7507
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8110
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7508
8111
  AC_CHECK_TOOL(AS, as, false)
7509
8112
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7510
8113
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7512
8115
esac
7513
8116
 
7514
8117
test -z "$AS" && AS=as
7515
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8118
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7516
8119
 
7517
8120
test -z "$DLLTOOL" && DLLTOOL=dlltool
7518
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8121
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7519
8122
 
7520
8123
test -z "$OBJDUMP" && OBJDUMP=objdump
7521
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8124
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7522
8125
])# win32-dll
7523
8126
 
7524
8127
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7704
8307
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7705
8308
m4_define([_LT_WITH_PIC],
7706
8309
[AC_ARG_WITH([pic],
7707
 
    [AS_HELP_STRING([--with-pic],
 
8310
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
7708
8311
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7709
 
    [pic_mode="$withval"],
 
8312
    [lt_p=${PACKAGE-default}
 
8313
    case $withval in
 
8314
    yes|no) pic_mode=$withval ;;
 
8315
    *)
 
8316
      pic_mode=default
 
8317
      # Look at the argument we got.  We use all the common list separators.
 
8318
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8319
      for lt_pkg in $withval; do
 
8320
        IFS="$lt_save_ifs"
 
8321
        if test "X$lt_pkg" = "X$lt_p"; then
 
8322
          pic_mode=yes
 
8323
        fi
 
8324
      done
 
8325
      IFS="$lt_save_ifs"
 
8326
      ;;
 
8327
    esac],
7710
8328
    [pic_mode=default])
7711
8329
 
7712
8330
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7876
8494
# unlimited permission to copy and/or distribute it, with or without
7877
8495
# modifications, as long as this notice is preserved.
7878
8496
 
7879
 
# Generated from ltversion.in.
 
8497
# @configure_input@
7880
8498
 
7881
 
# serial 3012 ltversion.m4
 
8499
# serial 3337 ltversion.m4
7882
8500
# This file is part of GNU Libtool
7883
8501
 
7884
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
7885
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8502
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
8503
m4_define([LT_PACKAGE_REVISION], [1.3337])
7886
8504
 
7887
8505
AC_DEFUN([LTVERSION_VERSION],
7888
 
[macro_version='2.2.6'
7889
 
macro_revision='1.3012'
 
8506
[macro_version='2.4.2'
 
8507
macro_revision='1.3337'
7890
8508
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7891
8509
_LT_DECL(, macro_revision, 0)
7892
8510
])
7893
8511
 
7894
8512
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7895
8513
#
7896
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8514
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7897
8515
#   Written by Scott James Remnant, 2004.
7898
8516
#
7899
8517
# This file is free software; the Free Software Foundation gives
7900
8518
# unlimited permission to copy and/or distribute it, with or without
7901
8519
# modifications, as long as this notice is preserved.
7902
8520
 
7903
 
# serial 4 lt~obsolete.m4
 
8521
# serial 5 lt~obsolete.m4
7904
8522
 
7905
8523
# These exist entirely to fool aclocal when bootstrapping libtool.
7906
8524
#
7970
8588
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7971
8589
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7972
8590
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7973
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7974
8591
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7975
8592
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7976
8593
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7983
8600
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7984
8601
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7985
8602
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8603
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8604
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8605
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8606
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8607
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8608
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8609
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
7986
8610
 
7987
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
8611
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
8612
# Foundation, Inc.
7988
8613
#
7989
8614
# This file is free software; the Free Software Foundation
7990
8615
# gives unlimited permission to copy and/or distribute it,
7991
8616
# with or without modifications, as long as this notice is preserved.
7992
8617
 
 
8618
# serial 1
 
8619
 
7993
8620
# AM_AUTOMAKE_VERSION(VERSION)
7994
8621
# ----------------------------
7995
8622
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7999
8626
[am__api_version='1.11'
8000
8627
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8001
8628
dnl require some minimum version.  Point them to the right macro.
8002
 
m4_if([$1], [1.11], [],
 
8629
m4_if([$1], [1.11.6], [],
8003
8630
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8004
8631
])
8005
8632
 
8015
8642
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8016
8643
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8017
8644
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8018
 
[AM_AUTOMAKE_VERSION([1.11])dnl
 
8645
[AM_AUTOMAKE_VERSION([1.11.6])dnl
8019
8646
m4_ifndef([AC_AUTOCONF_VERSION],
8020
8647
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8021
8648
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8022
8649
 
8023
8650
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8024
8651
 
8025
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
8652
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8026
8653
#
8027
8654
# This file is free software; the Free Software Foundation
8028
8655
# gives unlimited permission to copy and/or distribute it,
8029
8656
# with or without modifications, as long as this notice is preserved.
8030
8657
 
 
8658
# serial 1
 
8659
 
8031
8660
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8032
8661
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8033
8662
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8109
8738
Usually this means the macro was only invoked conditionally.]])
8110
8739
fi])])
8111
8740
 
8112
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8113
 
# Free Software Foundation, Inc.
 
8741
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
8742
# 2010, 2011 Free Software Foundation, Inc.
8114
8743
#
8115
8744
# This file is free software; the Free Software Foundation
8116
8745
# gives unlimited permission to copy and/or distribute it,
8117
8746
# with or without modifications, as long as this notice is preserved.
8118
8747
 
8119
 
# serial 10
 
8748
# serial 12
8120
8749
 
8121
8750
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8122
8751
# written in clear, in which case automake, when reading aclocal.m4,
8156
8785
  # instance it was reported that on HP-UX the gcc test will end up
8157
8786
  # making a dummy file named `D' -- because `-MD' means `put the output
8158
8787
  # in D'.
 
8788
  rm -rf conftest.dir
8159
8789
  mkdir conftest.dir
8160
8790
  # Copy depcomp to subdir because otherwise we won't find it if we're
8161
8791
  # using a relative directory.
8220
8850
        break
8221
8851
      fi
8222
8852
      ;;
8223
 
    msvisualcpp | msvcmsys)
 
8853
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8224
8854
      # This compiler won't grok `-c -o', but also, the minuso test has
8225
8855
      # not run yet.  These depmodes are late enough in the game, and
8226
8856
      # so weak that their functioning should not be impacted.
8285
8915
if test "x$enable_dependency_tracking" != xno; then
8286
8916
  am_depcomp="$ac_aux_dir/depcomp"
8287
8917
  AMDEPBACKSLASH='\'
 
8918
  am__nodep='_no'
8288
8919
fi
8289
8920
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8290
8921
AC_SUBST([AMDEPBACKSLASH])dnl
8291
8922
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
8923
AC_SUBST([am__nodep])dnl
 
8924
_AM_SUBST_NOTMAKE([am__nodep])dnl
8292
8925
])
8293
8926
 
8294
8927
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8522
9155
done
8523
9156
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8524
9157
 
8525
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9158
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
9159
# Inc.
8526
9160
#
8527
9161
# This file is free software; the Free Software Foundation
8528
9162
# gives unlimited permission to copy and/or distribute it,
8529
9163
# with or without modifications, as long as this notice is preserved.
8530
9164
 
 
9165
# serial 1
 
9166
 
8531
9167
# AM_PROG_INSTALL_SH
8532
9168
# ------------------
8533
9169
# Define $install_sh.
8659
9295
fi
8660
9296
])
8661
9297
 
8662
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9298
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
9299
# Inc.
8663
9300
#
8664
9301
# This file is free software; the Free Software Foundation
8665
9302
# gives unlimited permission to copy and/or distribute it,
8666
9303
# with or without modifications, as long as this notice is preserved.
8667
9304
 
 
9305
# serial 1
 
9306
 
8668
9307
# AM_PROG_MKDIR_P
8669
9308
# ---------------
8670
9309
# Check for `mkdir -p'.
8687
9326
 
8688
9327
# Helper functions for option handling.                     -*- Autoconf -*-
8689
9328
 
8690
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9329
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
9330
# Foundation, Inc.
8691
9331
#
8692
9332
# This file is free software; the Free Software Foundation
8693
9333
# gives unlimited permission to copy and/or distribute it,
8694
9334
# with or without modifications, as long as this notice is preserved.
8695
9335
 
8696
 
# serial 4
 
9336
# serial 5
8697
9337
 
8698
9338
# _AM_MANGLE_OPTION(NAME)
8699
9339
# -----------------------
8701
9341
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8702
9342
 
8703
9343
# _AM_SET_OPTION(NAME)
8704
 
# ------------------------------
 
9344
# --------------------
8705
9345
# Set option NAME.  Presently that only means defining a flag for this option.
8706
9346
AC_DEFUN([_AM_SET_OPTION],
8707
9347
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8708
9348
 
8709
9349
# _AM_SET_OPTIONS(OPTIONS)
8710
 
# ----------------------------------
 
9350
# ------------------------
8711
9351
# OPTIONS is a space-separated list of Automake options.
8712
9352
AC_DEFUN([_AM_SET_OPTIONS],
8713
9353
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8783
9423
fi
8784
9424
AC_MSG_RESULT(yes)])
8785
9425
 
8786
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9426
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8787
9427
#
8788
9428
# This file is free software; the Free Software Foundation
8789
9429
# gives unlimited permission to copy and/or distribute it,
8790
9430
# with or without modifications, as long as this notice is preserved.
8791
9431
 
 
9432
# serial 1
 
9433
 
8792
9434
# AM_PROG_INSTALL_STRIP
8793
9435
# ---------------------
8794
9436
# One issue with vendor `install' (even GNU) is that you can't
8811
9453
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8812
9454
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8813
9455
 
8814
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
9456
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
8815
9457
#
8816
9458
# This file is free software; the Free Software Foundation
8817
9459
# gives unlimited permission to copy and/or distribute it,
8818
9460
# with or without modifications, as long as this notice is preserved.
8819
9461
 
8820
 
# serial 2
 
9462
# serial 3
8821
9463
 
8822
9464
# _AM_SUBST_NOTMAKE(VARIABLE)
8823
9465
# ---------------------------
8826
9468
AC_DEFUN([_AM_SUBST_NOTMAKE])
8827
9469
 
8828
9470
# AM_SUBST_NOTMAKE(VARIABLE)
8829
 
# ---------------------------
 
9471
# --------------------------
8830
9472
# Public sister of _AM_SUBST_NOTMAKE.
8831
9473
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
8832
9474
 
8833
9475
# Check how to create a tarball.                            -*- Autoconf -*-
8834
9476
 
8835
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
9477
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
8836
9478
#
8837
9479
# This file is free software; the Free Software Foundation
8838
9480
# gives unlimited permission to copy and/or distribute it,
8854
9496
# a tarball read from stdin.
8855
9497
#     $(am__untar) < result.tar
8856
9498
AC_DEFUN([_AM_PROG_TAR],
8857
 
[# Always define AMTAR for backward compatibility.
8858
 
AM_MISSING_PROG([AMTAR], [tar])
 
9499
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
9500
# in the wild :-(  We should find a proper way to deprecate it ...
 
9501
AC_SUBST([AMTAR], ['$${TAR-tar}'])
8859
9502
m4_if([$1], [v7],
8860
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
9503
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
8861
9504
     [m4_case([$1], [ustar],, [pax],,
8862
9505
              [m4_fatal([Unknown tar format])])
8863
9506
AC_MSG_CHECKING([how to create a $1 tar archive])