~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to libraries/libapparmor/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-08-10 18:12:34 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110810181234-b6obckg60cp99crg
Tags: upstream-2.7.0~beta1+bzr1774
ImportĀ upstreamĀ versionĀ 2.7.0~beta1+bzr1774

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
23
#
24
24
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
25
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
26
#                 Inc.
26
27
#   Written by Gordon Matzigkeit, 1996
27
28
#
28
29
# This file is free software; the Free Software Foundation gives
31
32
 
32
33
m4_define([_LT_COPYING], [dnl
33
34
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
35
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
36
#                 Inc.
35
37
#   Written by Gordon Matzigkeit, 1996
36
38
#
37
39
#   This file is part of GNU Libtool.
58
60
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59
61
])
60
62
 
61
 
# serial 56 LT_INIT
 
63
# serial 57 LT_INIT
62
64
 
63
65
 
64
66
# LT_PREREQ(VERSION)
87
89
# ------------------
88
90
AC_DEFUN([LT_INIT],
89
91
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
92
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
90
93
AC_BEFORE([$0], [LT_LANG])dnl
91
94
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
95
AC_BEFORE([$0], [LTDL_INIT])dnl
103
106
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
107
m4_require([_LT_PROG_LTMAIN])dnl
105
108
 
 
109
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
110
 
106
111
dnl Parse OPTIONS
107
112
_LT_SET_OPTIONS([$0], [$1])
108
113
 
139
144
    *) break;;
140
145
  esac
141
146
done
142
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
147
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
143
148
])
144
149
 
145
150
 
159
164
m4_defun([_LT_SETUP],
160
165
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
161
166
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
167
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
168
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
169
 
162
170
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
171
_LT_DECL([], [host], [0])dnl
164
172
_LT_DECL([], [host_os], [0])dnl
181
189
dnl
182
190
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
191
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
192
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
184
193
m4_require([_LT_CMD_RELOAD])dnl
185
194
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
195
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
186
196
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
197
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
198
m4_require([_LT_WITH_SYSROOT])dnl
188
199
 
189
200
_LT_CONFIG_LIBTOOL_INIT([
190
201
# See if we are running on zsh, and set the options which allow our
200
211
_LT_CHECK_OBJDIR
201
212
 
202
213
m4_require([_LT_TAG_COMPILER])dnl
203
 
_LT_PROG_ECHO_BACKSLASH
204
214
 
205
215
case $host_os in
206
216
aix3*)
214
224
  ;;
215
225
esac
216
226
 
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
227
# Global variables:
235
228
ofile=libtool
236
229
can_build_shared=yes
271
264
])# _LT_SETUP
272
265
 
273
266
 
 
267
# _LT_PREPARE_SED_QUOTE_VARS
 
268
# --------------------------
 
269
# Define a few sed substitution that help us do robust quoting.
 
270
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
271
[# Backslashify metacharacters that are still active within
 
272
# double-quoted strings.
 
273
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
274
 
 
275
# Same as above, but do not quote variable references.
 
276
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
277
 
 
278
# Sed substitution to delay expansion of an escaped shell variable in a
 
279
# double_quote_subst'ed string.
 
280
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
281
 
 
282
# Sed substitution to delay expansion of an escaped single quote.
 
283
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
284
 
 
285
# Sed substitution to avoid accidental globbing in evaled expressions
 
286
no_glob_subst='s/\*/\\\*/g'
 
287
])
 
288
 
274
289
# _LT_PROG_LTMAIN
275
290
# ---------------
276
291
# Note that this code is called both from `configure', and `config.status'
423
438
# declaration there will have the same value as in `configure'.  VARNAME
424
439
# must have a single quote delimited value for this to work.
425
440
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
441
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
427
442
 
428
443
 
429
444
# _LT_CONFIG_STATUS_DECLARATIONS
433
448
# embedded single quotes properly.  In configure, this macro expands
434
449
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435
450
#
436
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
451
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
437
452
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
453
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
454
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
532
547
LTCFLAGS='$LTCFLAGS'
533
548
compiler='$compiler_DEFAULT'
534
549
 
 
550
# A function that is used when there is no print builtin or printf.
 
551
func_fallback_echo ()
 
552
{
 
553
  eval 'cat <<_LTECHO_EOF
 
554
\$[]1
 
555
_LTECHO_EOF'
 
556
}
 
557
 
535
558
# Quote evaled strings.
536
559
for var in lt_decl_all_varnames([[ \
537
560
]], lt_decl_quote_varnames); do
538
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
561
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
539
562
    *[[\\\\\\\`\\"\\\$]]*)
540
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
563
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541
564
      ;;
542
565
    *)
543
566
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
571
# Double-quote double-evaled strings.
549
572
for var in lt_decl_all_varnames([[ \
550
573
]], lt_decl_dquote_varnames); do
551
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
574
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
552
575
    *[[\\\\\\\`\\"\\\$]]*)
553
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
576
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554
577
      ;;
555
578
    *)
556
579
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
558
581
    esac
559
582
done
560
583
 
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
584
_LT_OUTPUT_LIBTOOL_INIT
569
585
])
570
586
 
 
587
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
588
# ------------------------------------
 
589
# Generate a child script FILE with all initialization necessary to
 
590
# reuse the environment learned by the parent script, and make the
 
591
# file executable.  If COMMENT is supplied, it is inserted after the
 
592
# `#!' sequence but before initialization text begins.  After this
 
593
# macro, additional text can be appended to FILE to form the body of
 
594
# the child script.  The macro ends with non-zero status if the
 
595
# file could not be fully written (such as if the disk is full).
 
596
m4_ifdef([AS_INIT_GENERATED],
 
597
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
598
[m4_defun([_LT_GENERATED_FILE_INIT],
 
599
[m4_require([AS_PREPARE])]dnl
 
600
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
601
[lt_write_fail=0
 
602
cat >$1 <<_ASEOF || lt_write_fail=1
 
603
#! $SHELL
 
604
# Generated by $as_me.
 
605
$2
 
606
SHELL=\${CONFIG_SHELL-$SHELL}
 
607
export SHELL
 
608
_ASEOF
 
609
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
610
AS_SHELL_SANITIZE
 
611
_AS_PREPARE
 
612
exec AS_MESSAGE_FD>&1
 
613
_ASEOF
 
614
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
615
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
571
616
 
572
617
# LT_OUTPUT
573
618
# ---------
577
622
AC_DEFUN([LT_OUTPUT],
578
623
[: ${CONFIG_LT=./config.lt}
579
624
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.
 
625
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
626
[# Run this file to recreate a libtool stub with the current configuration.])
584
627
 
 
628
cat >>"$CONFIG_LT" <<\_LTEOF
585
629
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
630
exec AS_MESSAGE_LOG_FD>>config.log
595
631
{
596
632
  echo
616
652
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
653
configured by $[0], generated by m4_PACKAGE_STRING.
618
654
 
619
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
655
Copyright (C) 2010 Free Software Foundation, Inc.
620
656
This config.lt script is free software; the Free Software Foundation
621
657
gives unlimited permision to copy, distribute and modify it."
622
658
 
661
697
# appending to config.log, which fails on DOS, as config.log is still kept
662
698
# open by configure.  Here we exec the FD to /dev/null, effectively closing
663
699
# 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
 
700
lt_cl_success=:
 
701
test "$silent" = yes &&
 
702
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
703
exec AS_MESSAGE_LOG_FD>/dev/null
 
704
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
705
exec AS_MESSAGE_LOG_FD>>config.log
 
706
$lt_cl_success || AS_EXIT(1)
673
707
])# LT_OUTPUT
674
708
 
675
709
 
732
766
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
733
767
  # text mode, it properly converts lines to CR/LF.  This bash problem
734
768
  # 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" ||
 
769
  sed '$q' "$ltmain" >> "$cfgfile" \
 
770
     || (rm -f "$cfgfile"; exit 1)
 
771
 
 
772
  _LT_PROG_REPLACE_SHELLFNS
 
773
 
 
774
   mv -f "$cfgfile" "$ofile" ||
744
775
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
745
776
  chmod +x "$ofile"
746
777
],
846
877
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
878
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
879
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
880
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
849
881
dnl aclocal-1.4 backwards compatibility:
850
882
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
883
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
884
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
885
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
886
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
854
887
 
855
888
 
856
889
# _LT_TAG_COMPILER
955
988
        [lt_cv_ld_exported_symbols_list=no])
956
989
        LDFLAGS="$save_LDFLAGS"
957
990
    ])
 
991
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
992
      [lt_cv_ld_force_load=no
 
993
      cat > conftest.c << _LT_EOF
 
994
int forced_loaded() { return 2;}
 
995
_LT_EOF
 
996
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
997
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
998
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
999
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
1000
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
1001
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
1002
      cat > conftest.c << _LT_EOF
 
1003
int main() { return 0;}
 
1004
_LT_EOF
 
1005
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
1006
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
1007
      _lt_result=$?
 
1008
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1009
        lt_cv_ld_force_load=yes
 
1010
      else
 
1011
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1012
      fi
 
1013
        rm -f conftest.err libconftest.a conftest conftest.c
 
1014
        rm -rf conftest.dSYM
 
1015
    ])
958
1016
    case $host_os in
959
1017
    rhapsody* | darwin1.[[012]])
960
1018
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
982
1040
    else
983
1041
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
984
1042
    fi
985
 
    if test "$DSYMUTIL" != ":"; then
 
1043
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
986
1044
      _lt_dsymutil='~$DSYMUTIL $lib || :'
987
1045
    else
988
1046
      _lt_dsymutil=
1002
1060
  _LT_TAGVAR(hardcode_direct, $1)=no
1003
1061
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1004
1062
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1005
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1063
  if test "$lt_cv_ld_force_load" = "yes"; then
 
1064
    _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\"`'
 
1065
  else
 
1066
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1067
  fi
1006
1068
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1007
1069
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1008
1070
  case $cc_basename in
1010
1072
     *) _lt_dar_can_shared=$GCC ;;
1011
1073
  esac
1012
1074
  if test "$_lt_dar_can_shared" = "yes"; then
1013
 
    output_verbose_link_cmd=echo
 
1075
    output_verbose_link_cmd=func_echo_all
1014
1076
    _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
1077
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016
1078
    _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
1088
  fi
1027
1089
])
1028
1090
 
1029
 
# _LT_SYS_MODULE_PATH_AIX
1030
 
# -----------------------
 
1091
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1092
# ----------------------------------
1031
1093
# Links a minimal program and checks the executable
1032
1094
# for the system default hardcoded library path. In most cases,
1033
1095
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
1096
# the location of the communication and MPI libs are included too.
1035
1097
# If we don't find anything, use the default library path according
1036
1098
# to the aix ld manual.
 
1099
# Store the results from the different compilers for each TAGNAME.
 
1100
# Allow to override them for all tags through lt_cv_aix_libpath.
1037
1101
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
1102
[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
 
1103
if test "${lt_cv_aix_libpath+set}" = set; then
 
1104
  aix_libpath=$lt_cv_aix_libpath
 
1105
else
 
1106
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1107
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1108
  lt_aix_libpath_sed='[
 
1109
      /Import File Strings/,/^$/ {
 
1110
          /^0/ {
 
1111
              s/^0  *\([^ ]*\) *$/\1/
 
1112
              p
 
1113
          }
 
1114
      }]'
 
1115
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1116
  # Check for a 64-bit object if we didn't find anything.
 
1117
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1118
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1119
  fi],[])
 
1120
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1121
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1122
  fi
 
1123
  ])
 
1124
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1125
fi
1053
1126
])# _LT_SYS_MODULE_PATH_AIX
1054
1127
 
1055
1128
 
1056
1129
# _LT_SHELL_INIT(ARG)
1057
1130
# -------------------
1058
1131
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
 
1132
[m4_divert_text([M4SH-INIT], [$1
 
1133
])])# _LT_SHELL_INIT
 
1134
 
1065
1135
 
1066
1136
 
1067
1137
# _LT_PROG_ECHO_BACKSLASH
1068
1138
# -----------------------
1069
 
# Add some code to the start of the generated configure script which
1070
 
# will find an echo command which doesn't interpret backslashes.
 
1139
# Find how we can fake an echo command that does not interpret backslash.
 
1140
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1141
# of the generated configure script which will find a shell with a builtin
 
1142
# printf (which we can use as an echo command).
1071
1143
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
 
  ;;
 
1144
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1145
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1146
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1147
 
 
1148
AC_MSG_CHECKING([how to print strings])
 
1149
# Test print first, because it will be a builtin if present.
 
1150
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
1151
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1152
  ECHO='print -r --'
 
1153
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1154
  ECHO='printf %s\n'
 
1155
else
 
1156
  # Use this function as a fallback that always works.
 
1157
  func_fallback_echo ()
 
1158
  {
 
1159
    eval 'cat <<_LTECHO_EOF
 
1160
$[]1
 
1161
_LTECHO_EOF'
 
1162
  }
 
1163
  ECHO='func_fallback_echo'
 
1164
fi
 
1165
 
 
1166
# func_echo_all arg...
 
1167
# Invoke $ECHO with all args, space-separated.
 
1168
func_echo_all ()
 
1169
{
 
1170
    $ECHO "$*" 
 
1171
}
 
1172
 
 
1173
case "$ECHO" in
 
1174
  printf*) AC_MSG_RESULT([printf]) ;;
 
1175
  print*) AC_MSG_RESULT([print -r]) ;;
 
1176
  *) AC_MSG_RESULT([cat]) ;;
1081
1177
esac
1082
1178
 
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
 
])
 
1179
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1180
[_AS_DETECT_SUGGESTED([
 
1181
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1182
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1183
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1184
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1185
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1186
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1187
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1188
 
1220
1189
_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])
 
1190
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1191
])# _LT_PROG_ECHO_BACKSLASH
1224
1192
 
1225
1193
 
 
1194
# _LT_WITH_SYSROOT
 
1195
# ----------------
 
1196
AC_DEFUN([_LT_WITH_SYSROOT],
 
1197
[AC_MSG_CHECKING([for sysroot])
 
1198
AC_ARG_WITH([sysroot],
 
1199
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1200
                        (or the compiler's sysroot if not specified).],
 
1201
[], [with_sysroot=no])
 
1202
 
 
1203
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1204
dnl in case the user passed a directory name.
 
1205
lt_sysroot=
 
1206
case ${with_sysroot} in #(
 
1207
 yes)
 
1208
   if test "$GCC" = yes; then
 
1209
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1210
   fi
 
1211
   ;; #(
 
1212
 /*)
 
1213
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1214
   ;; #(
 
1215
 no|'')
 
1216
   ;; #(
 
1217
 *)
 
1218
   AC_MSG_RESULT([${with_sysroot}])
 
1219
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1220
   ;;
 
1221
esac
 
1222
 
 
1223
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1224
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1225
[dependent libraries, and in which our libraries should be installed.])])
 
1226
 
1226
1227
# _LT_ENABLE_LOCK
1227
1228
# ---------------
1228
1229
m4_defun([_LT_ENABLE_LOCK],
1251
1252
  ;;
1252
1253
*-*-irix6*)
1253
1254
  # Find out which ABI we are using.
1254
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1255
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1255
1256
  if AC_TRY_EVAL(ac_compile); then
1256
1257
    if test "$lt_cv_prog_gnu_ld" = yes; then
1257
1258
      case `/usr/bin/file conftest.$ac_objext` in
1369
1370
])# _LT_ENABLE_LOCK
1370
1371
 
1371
1372
 
 
1373
# _LT_PROG_AR
 
1374
# -----------
 
1375
m4_defun([_LT_PROG_AR],
 
1376
[AC_CHECK_TOOLS(AR, [ar], false)
 
1377
: ${AR=ar}
 
1378
: ${AR_FLAGS=cru}
 
1379
_LT_DECL([], [AR], [1], [The archiver])
 
1380
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
1381
 
 
1382
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
1383
  [lt_cv_ar_at_file=no
 
1384
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
1385
     [echo conftest.$ac_objext > conftest.lst
 
1386
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
1387
      AC_TRY_EVAL([lt_ar_try])
 
1388
      if test "$ac_status" -eq 0; then
 
1389
        # Ensure the archiver fails upon bogus file names.
 
1390
        rm -f conftest.$ac_objext libconftest.a
 
1391
        AC_TRY_EVAL([lt_ar_try])
 
1392
        if test "$ac_status" -ne 0; then
 
1393
          lt_cv_ar_at_file=@
 
1394
        fi
 
1395
      fi
 
1396
      rm -f conftest.* libconftest.a
 
1397
     ])
 
1398
  ])
 
1399
 
 
1400
if test "x$lt_cv_ar_at_file" = xno; then
 
1401
  archiver_list_spec=
 
1402
else
 
1403
  archiver_list_spec=$lt_cv_ar_at_file
 
1404
fi
 
1405
_LT_DECL([], [archiver_list_spec], [1],
 
1406
  [How to feed a file listing to the archiver])
 
1407
])# _LT_PROG_AR
 
1408
 
 
1409
 
1372
1410
# _LT_CMD_OLD_ARCHIVE
1373
1411
# -------------------
1374
1412
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])
 
1413
[_LT_PROG_AR
1380
1414
 
1381
1415
AC_CHECK_TOOL(STRIP, strip, :)
1382
1416
test -z "$STRIP" && STRIP=:
1403
1437
  esac
1404
1438
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1405
1439
fi
 
1440
 
 
1441
case $host_os in
 
1442
  darwin*)
 
1443
    lock_old_archive_extraction=yes ;;
 
1444
  *)
 
1445
    lock_old_archive_extraction=no ;;
 
1446
esac
1406
1447
_LT_DECL([], [old_postinstall_cmds], [2])
1407
1448
_LT_DECL([], [old_postuninstall_cmds], [2])
1408
1449
_LT_TAGDECL([], [old_archive_cmds], [2],
1409
1450
    [Commands used to build an old-style archive])
 
1451
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1452
    [Whether to use a lock for old archive extraction])
1410
1453
])# _LT_CMD_OLD_ARCHIVE
1411
1454
 
1412
1455
 
1431
1474
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1432
1475
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1433
1476
   -e 's:$: $lt_compiler_flag:'`
1434
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1477
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1435
1478
   (eval "$lt_compile" 2>conftest.err)
1436
1479
   ac_status=$?
1437
1480
   cat conftest.err >&AS_MESSAGE_LOG_FD
1438
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1481
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1439
1482
   if (exit $ac_status) && test -s "$ac_outfile"; then
1440
1483
     # The compiler can only warn and ignore the option if not recognized
1441
1484
     # So say no if there are warnings other than the usual output.
1442
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1485
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1443
1486
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444
1487
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445
1488
       $2=yes
1479
1522
     if test -s conftest.err; then
1480
1523
       # Append any errors to the config.log.
1481
1524
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1525
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1483
1526
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484
1527
       if diff conftest.exp conftest.er2 >/dev/null; then
1485
1528
         $2=yes
1542
1585
    lt_cv_sys_max_cmd_len=8192;
1543
1586
    ;;
1544
1587
 
 
1588
  mint*)
 
1589
    # On MiNT this can take a long time and run out of memory.
 
1590
    lt_cv_sys_max_cmd_len=8192;
 
1591
    ;;
 
1592
 
1545
1593
  amigaos*)
1546
1594
    # On AmigaOS with pdksh, this test takes hours, literally.
1547
1595
    # So we just punt and use a minimum line length of 8192.
1606
1654
      # If test is not a shell built-in, we'll probably end up computing a
1607
1655
      # maximum length that is only half of the actual maximum length, but
1608
1656
      # 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 &&
 
1657
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
1658
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1611
1659
              test $i != 17 # 1/2 MB should be enough
1612
1660
      do
1613
1661
        i=`expr $i + 1`
1658
1706
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659
1707
  lt_status=$lt_dlunknown
1660
1708
  cat > conftest.$ac_ext <<_LT_EOF
1661
 
[#line __oline__ "configure"
 
1709
[#line $LINENO "configure"
1662
1710
#include "confdefs.h"
1663
1711
 
1664
1712
#if HAVE_DLFCN_H
1699
1747
#  endif
1700
1748
#endif
1701
1749
 
1702
 
void fnord() { int i=42;}
 
1750
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1751
   correspondingly for the symbols needed.  */
 
1752
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1753
int fnord () __attribute__((visibility("default")));
 
1754
#endif
 
1755
 
 
1756
int fnord () { return 42; }
1703
1757
int main ()
1704
1758
{
1705
1759
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1708
1762
  if (self)
1709
1763
    {
1710
1764
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1711
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1765
      else
 
1766
        {
 
1767
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1768
          else puts (dlerror ());
 
1769
        }
1712
1770
      /* dlclose (self); */
1713
1771
    }
1714
1772
  else
1884
1942
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1885
1943
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1886
1944
   -e 's:$: $lt_compiler_flag:'`
1887
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1945
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1888
1946
   (eval "$lt_compile" 2>out/conftest.err)
1889
1947
   ac_status=$?
1890
1948
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1891
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1949
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1892
1950
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1893
1951
   then
1894
1952
     # The compiler can only warn and ignore the option if not recognized
1895
1953
     # So say no if there are warnings
1896
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1954
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1897
1955
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898
1956
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899
1957
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2052
2110
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053
2111
m4_require([_LT_DECL_OBJDUMP])dnl
2054
2112
m4_require([_LT_DECL_SED])dnl
 
2113
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2055
2114
AC_MSG_CHECKING([dynamic linker characteristics])
2056
2115
m4_if([$1],
2057
2116
        [], [
2060
2119
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
2120
    *) lt_awk_arg="/^libraries:/" ;;
2062
2121
  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
 
2122
  case $host_os in
 
2123
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2124
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2125
  esac
 
2126
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2127
  case $lt_search_path_spec in
 
2128
  *\;*)
2065
2129
    # if the path contains ";" then we assume it to be the separator
2066
2130
    # otherwise default to the standard path separator (i.e. ":") - it is
2067
2131
    # assumed that no part of a normal pathname contains ";" but that should
2068
2132
    # 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
 
2133
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2134
    ;;
 
2135
  *)
 
2136
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2137
    ;;
 
2138
  esac
2073
2139
  # Ok, now we have the path, separated by spaces, we can step through it
2074
2140
  # and add multilib dir if necessary.
2075
2141
  lt_tmp_lt_search_path_spec=
2082
2148
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083
2149
    fi
2084
2150
  done
2085
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2151
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2086
2152
BEGIN {RS=" "; FS="/|\n";} {
2087
2153
  lt_foo="";
2088
2154
  lt_count=0;
2102
2168
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103
2169
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104
2170
}'`
2105
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2171
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2172
  # for these hosts.
 
2173
  case $host_os in
 
2174
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2175
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2176
  esac
 
2177
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2106
2178
else
2107
2179
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
2180
fi])
2190
2262
  m68k)
2191
2263
    library_names_spec='$libname.ixlibrary $libname.a'
2192
2264
    # 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'
 
2265
    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
2266
    ;;
2195
2267
  esac
2196
2268
  ;;
2221
2293
  need_version=no
2222
2294
  need_lib_prefix=no
2223
2295
 
2224
 
  case $GCC,$host_os in
2225
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2296
  case $GCC,$cc_basename in
 
2297
  yes,*)
 
2298
    # gcc
2226
2299
    library_names_spec='$libname.dll.a'
2227
2300
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2228
2301
    postinstall_cmds='base_file=`basename \${file}`~
2243
2316
    cygwin*)
2244
2317
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2318
      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"
 
2319
m4_if([$1], [],[
 
2320
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2247
2321
      ;;
2248
2322
    mingw* | cegcc*)
2249
2323
      # MinGW DLLs use traditional 'lib' prefix
2250
2324
      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
2325
      ;;
2264
2326
    pw32*)
2265
2327
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2266
2328
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2267
2329
      ;;
2268
2330
    esac
 
2331
    dynamic_linker='Win32 ld.exe'
 
2332
    ;;
 
2333
 
 
2334
  *,cl*)
 
2335
    # Native MSVC
 
2336
    libname_spec='$name'
 
2337
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2338
    library_names_spec='${libname}.dll.lib'
 
2339
 
 
2340
    case $build_os in
 
2341
    mingw*)
 
2342
      sys_lib_search_path_spec=
 
2343
      lt_save_ifs=$IFS
 
2344
      IFS=';'
 
2345
      for lt_path in $LIB
 
2346
      do
 
2347
        IFS=$lt_save_ifs
 
2348
        # Let DOS variable expansion print the short 8.3 style file name.
 
2349
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2350
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2351
      done
 
2352
      IFS=$lt_save_ifs
 
2353
      # Convert to MSYS style.
 
2354
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2355
      ;;
 
2356
    cygwin*)
 
2357
      # Convert to unix form, then to dos form, then back to unix form
 
2358
      # but this time dos style (no spaces!) so that the unix form looks
 
2359
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2360
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2361
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2362
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2363
      ;;
 
2364
    *)
 
2365
      sys_lib_search_path_spec="$LIB"
 
2366
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2367
        # It is most probably a Windows format PATH.
 
2368
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2369
      else
 
2370
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2371
      fi
 
2372
      # FIXME: find the short name or the path components, as spaces are
 
2373
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
2374
      ;;
 
2375
    esac
 
2376
 
 
2377
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2378
    postinstall_cmds='base_file=`basename \${file}`~
 
2379
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2380
      dldir=$destdir/`dirname \$dlpath`~
 
2381
      test -d \$dldir || mkdir -p \$dldir~
 
2382
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2383
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2384
      dlpath=$dir/\$dldll~
 
2385
       $RM \$dlpath'
 
2386
    shlibpath_overrides_runpath=yes
 
2387
    dynamic_linker='Win32 link.exe'
2269
2388
    ;;
2270
2389
 
2271
2390
  *)
 
2391
    # Assume MSVC wrapper
2272
2392
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2393
    dynamic_linker='Win32 ld.exe'
2273
2394
    ;;
2274
2395
  esac
2275
 
  dynamic_linker='Win32 ld.exe'
2276
2396
  # FIXME: first we should search . and the directory the executable is in
2277
2397
  shlibpath_var=PATH
2278
2398
  ;;
2356
2476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2357
2477
  soname_spec='${libname}${release}${shared_ext}$major'
2358
2478
  shlibpath_var=LD_LIBRARY_PATH
 
2479
  shlibpath_overrides_runpath=no
 
2480
  hardcode_into_libs=yes
 
2481
  ;;
 
2482
 
 
2483
haiku*)
 
2484
  version_type=linux
 
2485
  need_lib_prefix=no
 
2486
  need_version=no
 
2487
  dynamic_linker="$host_os runtime_loader"
 
2488
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2489
  soname_spec='${libname}${release}${shared_ext}$major'
 
2490
  shlibpath_var=LIBRARY_PATH
 
2491
  shlibpath_overrides_runpath=yes
 
2492
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2359
2493
  hardcode_into_libs=yes
2360
2494
  ;;
2361
2495
 
2401
2535
    soname_spec='${libname}${release}${shared_ext}$major'
2402
2536
    ;;
2403
2537
  esac
2404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2538
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405
2539
  postinstall_cmds='chmod 555 $lib'
 
2540
  # or fails outright, so override atomically:
 
2541
  install_override_mode=555
2406
2542
  ;;
2407
2543
 
2408
2544
interix[[3-9]]*)
2469
2605
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2606
  shlibpath_var=LD_LIBRARY_PATH
2471
2607
  shlibpath_overrides_runpath=no
 
2608
 
2472
2609
  # 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
 
2610
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2611
    [lt_cv_shlibpath_overrides_runpath=no
 
2612
    save_LDFLAGS=$LDFLAGS
 
2613
    save_libdir=$libdir
 
2614
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2615
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2616
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2617
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2618
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2619
    LDFLAGS=$save_LDFLAGS
 
2620
    libdir=$save_libdir
 
2621
    ])
 
2622
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2482
2623
 
2483
2624
  # This implies no fast_install, which is unacceptable.
2484
2625
  # Some rework will be needed to allow for fast_install
2487
2628
 
2488
2629
  # Append ld.so.conf contents to the search path
2489
2630
  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' ' '`
 
2631
    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
2632
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492
2633
  fi
2493
2634
 
2732
2873
    The last name is the one that the linker finds with -lNAME]])
2733
2874
_LT_DECL([], [soname_spec], [1],
2734
2875
    [[The coded name of the library, if different from the real name]])
 
2876
_LT_DECL([], [install_override_mode], [1],
 
2877
    [Permission mode override for installation of shared libraries])
2735
2878
_LT_DECL([], [postinstall_cmds], [2],
2736
2879
    [Command to use after installation of a shared archive])
2737
2880
_LT_DECL([], [postuninstall_cmds], [2],
2844
2987
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2845
2988
m4_require([_LT_DECL_SED])dnl
2846
2989
m4_require([_LT_DECL_EGREP])dnl
 
2990
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2847
2991
 
2848
2992
AC_ARG_WITH([gnu-ld],
2849
2993
    [AS_HELP_STRING([--with-gnu-ld],
2965
3109
esac
2966
3110
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2967
3111
case $host_os in
 
3112
  cygwin* | mingw* | pw32* | cegcc*)
 
3113
    if test "$GCC" != yes; then
 
3114
      reload_cmds=false
 
3115
    fi
 
3116
    ;;
2968
3117
  darwin*)
2969
3118
    if test "$GCC" = yes; then
2970
3119
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2973
3122
    fi
2974
3123
    ;;
2975
3124
esac
2976
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2977
 
_LT_DECL([], [reload_cmds], [2])dnl
 
3125
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3126
_LT_TAGDECL([], [reload_cmds], [2])dnl
2978
3127
])# _LT_CMD_RELOAD
2979
3128
 
2980
3129
 
3026
3175
  # Base MSYS/MinGW do not provide the 'file' command needed by
3027
3176
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3028
3177
  # unless we find 'file', for example because we are cross-compiling.
3029
 
  if ( file / ) >/dev/null 2>&1; then
 
3178
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3179
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3030
3180
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3031
3181
    lt_cv_file_magic_cmd='func_win32_libid'
3032
3182
  else
3033
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3183
    # Keep this pattern in sync with the one in func_win32_libid.
 
3184
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3034
3185
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3035
3186
  fi
3036
3187
  ;;
3037
3188
 
3038
 
cegcc)
 
3189
cegcc*)
3039
3190
  # use the weaker test based on 'objdump'. See mingw*.
3040
3191
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3041
3192
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3065
3216
  lt_cv_deplibs_check_method=pass_all
3066
3217
  ;;
3067
3218
 
 
3219
haiku*)
 
3220
  lt_cv_deplibs_check_method=pass_all
 
3221
  ;;
 
3222
 
3068
3223
hpux10.20* | hpux11*)
3069
3224
  lt_cv_file_magic_cmd=/usr/bin/file
3070
3225
  case $host_cpu in
3073
3228
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3074
3229
    ;;
3075
3230
  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]']
 
3231
    [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
3232
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3078
3233
    ;;
3079
3234
  *)
3080
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3235
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3081
3236
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3082
3237
    ;;
3083
3238
  esac
3177
3332
  ;;
3178
3333
esac
3179
3334
])
 
3335
 
 
3336
file_magic_glob=
 
3337
want_nocaseglob=no
 
3338
if test "$build" = "$host"; then
 
3339
  case $host_os in
 
3340
  mingw* | pw32*)
 
3341
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3342
      want_nocaseglob=yes
 
3343
    else
 
3344
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3345
    fi
 
3346
    ;;
 
3347
  esac
 
3348
fi
 
3349
 
3180
3350
file_magic_cmd=$lt_cv_file_magic_cmd
3181
3351
deplibs_check_method=$lt_cv_deplibs_check_method
3182
3352
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3184
3354
_LT_DECL([], [deplibs_check_method], [1],
3185
3355
    [Method to check whether dependent libraries are shared objects])
3186
3356
_LT_DECL([], [file_magic_cmd], [1],
3187
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3357
    [Command to use when deplibs_check_method = "file_magic"])
 
3358
_LT_DECL([], [file_magic_glob], [1],
 
3359
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3360
_LT_DECL([], [want_nocaseglob], [1],
 
3361
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3188
3362
])# _LT_CHECK_MAGIC_METHOD
3189
3363
 
3190
3364
 
3241
3415
  NM="$lt_cv_path_NM"
3242
3416
else
3243
3417
  # Didn't find any BSD compatible name lister, look for dumpbin.
3244
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3418
  if test -n "$DUMPBIN"; then :
 
3419
    # Let the user override the test.
 
3420
  else
 
3421
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3422
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3423
    *COFF*)
 
3424
      DUMPBIN="$DUMPBIN -symbols"
 
3425
      ;;
 
3426
    *)
 
3427
      DUMPBIN=:
 
3428
      ;;
 
3429
    esac
 
3430
  fi
3245
3431
  AC_SUBST([DUMPBIN])
3246
3432
  if test "$DUMPBIN" != ":"; then
3247
3433
    NM="$DUMPBIN"
3254
3440
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3255
3441
  [lt_cv_nm_interface="BSD nm"
3256
3442
  echo "int some_variable = 0;" > conftest.$ac_ext
3257
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3443
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3258
3444
  (eval "$ac_compile" 2>conftest.err)
3259
3445
  cat conftest.err >&AS_MESSAGE_LOG_FD
3260
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3446
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3261
3447
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3262
3448
  cat conftest.err >&AS_MESSAGE_LOG_FD
3263
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3449
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3264
3450
  cat conftest.out >&AS_MESSAGE_LOG_FD
3265
3451
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3266
3452
    lt_cv_nm_interface="MS dumpbin"
3275
3461
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3462
dnl AC_DEFUN([AC_PROG_NM], [])
3277
3463
 
 
3464
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3465
# --------------------------------
 
3466
# how to determine the name of the shared library
 
3467
# associated with a specific link library.
 
3468
#  -- PORTME fill in with the dynamic library characteristics
 
3469
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3470
[m4_require([_LT_DECL_EGREP])
 
3471
m4_require([_LT_DECL_OBJDUMP])
 
3472
m4_require([_LT_DECL_DLLTOOL])
 
3473
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3474
lt_cv_sharedlib_from_linklib_cmd,
 
3475
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3476
 
 
3477
case $host_os in
 
3478
cygwin* | mingw* | pw32* | cegcc*)
 
3479
  # two different shell functions defined in ltmain.sh
 
3480
  # decide which to use based on capabilities of $DLLTOOL
 
3481
  case `$DLLTOOL --help 2>&1` in
 
3482
  *--identify-strict*)
 
3483
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3484
    ;;
 
3485
  *)
 
3486
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3487
    ;;
 
3488
  esac
 
3489
  ;;
 
3490
*)
 
3491
  # fallback: assume linklib IS sharedlib
 
3492
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3493
  ;;
 
3494
esac
 
3495
])
 
3496
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3497
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3498
 
 
3499
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3500
    [Command to associate shared and link libraries])
 
3501
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3502
 
 
3503
 
 
3504
# _LT_PATH_MANIFEST_TOOL
 
3505
# ----------------------
 
3506
# locate the manifest tool
 
3507
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3508
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3509
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3510
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3511
  [lt_cv_path_mainfest_tool=no
 
3512
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3513
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3514
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3515
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3516
    lt_cv_path_mainfest_tool=yes
 
3517
  fi
 
3518
  rm -f conftest*])
 
3519
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3520
  MANIFEST_TOOL=:
 
3521
fi
 
3522
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3523
])# _LT_PATH_MANIFEST_TOOL
 
3524
 
3278
3525
 
3279
3526
# LT_LIB_M
3280
3527
# --------
3283
3530
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3284
3531
LIBM=
3285
3532
case $host in
3286
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3533
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3287
3534
  # These system don't have libm, or don't need it
3288
3535
  ;;
3289
3536
*-ncr-sysv4.3*)
3311
3558
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3312
3559
 
3313
3560
if test "$GCC" = yes; then
3314
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3561
  case $cc_basename in
 
3562
  nvcc*)
 
3563
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3564
  *)
 
3565
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3566
  esac
3315
3567
 
3316
3568
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3317
3569
    lt_cv_prog_compiler_rtti_exceptions,
3328
3580
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3329
3581
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3330
3582
AC_REQUIRE([AC_PROG_CC])dnl
 
3583
AC_REQUIRE([AC_PROG_AWK])dnl
3331
3584
AC_REQUIRE([LT_PATH_NM])dnl
3332
3585
AC_REQUIRE([LT_PATH_LD])dnl
3333
3586
m4_require([_LT_DECL_SED])dnl
3395
3648
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3396
3649
 
3397
3650
# 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'"
 
3651
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3652
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
3653
 
3401
3654
# Handle CRLF in mingw tool chain
3402
3655
opt_cr=
3432
3685
  else
3433
3686
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3434
3687
  fi
 
3688
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3435
3689
 
3436
3690
  # Check to see that the pipe works correctly.
3437
3691
  pipe_works=no
3453
3707
  if AC_TRY_EVAL(ac_compile); then
3454
3708
    # Now try to grab the symbols.
3455
3709
    nlist=conftest.nm
3456
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3710
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3457
3711
      # Try sorting and uniquifying the output.
3458
3712
      if sort "$nlist" | uniq > "$nlist"T; then
3459
3713
        mv -f "$nlist"T "$nlist"
3465
3719
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3466
3720
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3467
3721
          cat <<_LT_EOF > conftest.$ac_ext
 
3722
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3723
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3724
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3725
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3726
# define LT@&t@_DLSYM_CONST
 
3727
#elif defined(__osf__)
 
3728
/* This system does not cope well with relocations in const data.  */
 
3729
# define LT@&t@_DLSYM_CONST
 
3730
#else
 
3731
# define LT@&t@_DLSYM_CONST const
 
3732
#endif
 
3733
 
3468
3734
#ifdef __cplusplus
3469
3735
extern "C" {
3470
3736
#endif
3476
3742
          cat <<_LT_EOF >> conftest.$ac_ext
3477
3743
 
3478
3744
/* The mapping between symbol names and symbols.  */
3479
 
const struct {
 
3745
LT@&t@_DLSYM_CONST struct {
3480
3746
  const char *name;
3481
3747
  void       *address;
3482
3748
}
3502
3768
_LT_EOF
3503
3769
          # Now try linking the two files.
3504
3770
          mv conftest.$ac_objext conftstm.$ac_objext
3505
 
          lt_save_LIBS="$LIBS"
3506
 
          lt_save_CFLAGS="$CFLAGS"
 
3771
          lt_globsym_save_LIBS=$LIBS
 
3772
          lt_globsym_save_CFLAGS=$CFLAGS
3507
3773
          LIBS="conftstm.$ac_objext"
3508
3774
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3509
3775
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3510
3776
            pipe_works=yes
3511
3777
          fi
3512
 
          LIBS="$lt_save_LIBS"
3513
 
          CFLAGS="$lt_save_CFLAGS"
 
3778
          LIBS=$lt_globsym_save_LIBS
 
3779
          CFLAGS=$lt_globsym_save_CFLAGS
3514
3780
        else
3515
3781
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3516
3782
        fi
3543
3809
  AC_MSG_RESULT(ok)
3544
3810
fi
3545
3811
 
 
3812
# Response file support.
 
3813
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3814
  nm_file_list_spec='@'
 
3815
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3816
  nm_file_list_spec='@'
 
3817
fi
 
3818
 
3546
3819
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3547
3820
    [Take the output of nm and produce a listing of raw symbols and C names])
3548
3821
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3553
3826
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3554
3827
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3555
3828
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3829
_LT_DECL([], [nm_file_list_spec], [1],
 
3830
    [Specify filename containing input files for $NM])
3556
3831
]) # _LT_CMD_GLOBAL_SYMBOLS
3557
3832
 
3558
3833
 
3564
3839
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3565
3840
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3566
3841
 
3567
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3568
3842
m4_if([$1], [CXX], [
3569
3843
  # C++ specific cases for pic, static, wl, etc.
3570
3844
  if test "$GXX" = yes; then
3615
3889
      # DJGPP does not support shared libraries at all
3616
3890
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3617
3891
      ;;
 
3892
    haiku*)
 
3893
      # PIC is the default for Haiku.
 
3894
      # The "-static" flag exists, but is broken.
 
3895
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3896
      ;;
3618
3897
    interix[[3-9]]*)
3619
3898
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3620
3899
      # Instead, we relocate shared libraries at runtime.
3664
3943
          ;;
3665
3944
        esac
3666
3945
        ;;
 
3946
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
3947
        # This hack is so that the source file can tell whether it is being
 
3948
        # built for inclusion in a dll (and should export symbols for example).
 
3949
        m4_if([$1], [GCJ], [],
 
3950
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3951
        ;;
3667
3952
      dgux*)
3668
3953
        case $cc_basename in
3669
3954
          ec++*)
3753
4038
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3754
4039
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3755
4040
            ;;
3756
 
          xlc* | xlC*)
3757
 
            # IBM XL 8.0 on PPC
 
4041
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
4042
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3758
4043
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3759
4044
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3760
4045
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3816
4101
        ;;
3817
4102
      solaris*)
3818
4103
        case $cc_basename in
3819
 
          CC*)
 
4104
          CC* | sunCC*)
3820
4105
            # Sun C++ 4.2, 5.x and Centerline C++
3821
4106
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3822
4107
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3920
4205
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3921
4206
      ;;
3922
4207
 
 
4208
    haiku*)
 
4209
      # PIC is the default for Haiku.
 
4210
      # The "-static" flag exists, but is broken.
 
4211
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
4212
      ;;
 
4213
 
3923
4214
    hpux*)
3924
4215
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3925
4216
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3962
4253
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3963
4254
      ;;
3964
4255
    esac
 
4256
 
 
4257
    case $cc_basename in
 
4258
    nvcc*) # Cuda Compiler Driver 2.2
 
4259
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4260
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4261
      ;;
 
4262
    esac
3965
4263
  else
3966
4264
    # PORTME Check for flag to pass linker flags through the system compiler.
3967
4265
    case $host_os in
4025
4323
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4026
4324
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4027
4325
        ;;
4028
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4326
      nagfor*)
 
4327
        # NAG Fortran compiler
 
4328
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4329
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4330
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4331
        ;;
 
4332
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4029
4333
        # Portland Group compilers (*not* the Pentium gcc compiler,
4030
4334
        # which looks to be a dead project)
4031
4335
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4037
4341
        # All Alpha code is PIC.
4038
4342
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4039
4343
        ;;
4040
 
      xl*)
4041
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4344
      xl* | bgxl* | bgf* | mpixl*)
 
4345
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4042
4346
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
4347
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4044
4348
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4045
4349
        ;;
4046
4350
      *)
4047
4351
        case `$CC -V 2>&1 | sed 5q` in
 
4352
        *Sun\ F* | *Sun*Fortran*)
 
4353
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4354
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4355
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4356
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4357
          ;;
4048
4358
        *Sun\ C*)
4049
4359
          # Sun C 5.9
4050
4360
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051
4361
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052
4362
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053
4363
          ;;
4054
 
        *Sun\ F*)
4055
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4056
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4057
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4059
 
          ;;
4060
4364
        esac
4061
4365
        ;;
4062
4366
      esac
4087
4391
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088
4392
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
4393
      case $cc_basename in
4090
 
      f77* | f90* | f95*)
 
4394
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4091
4395
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4092
4396
      *)
4093
4397
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4144
4448
    _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
4449
    ;;
4146
4450
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])
 
4451
 
 
4452
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4453
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4454
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4455
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4150
4456
 
4151
4457
#
4152
4458
# Check to make sure the PIC flag actually works.
4165
4471
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4166
4472
        [Additional compiler flags for building library objects])
4167
4473
 
 
4474
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4475
        [How to pass a linker flag through the compiler])
4168
4476
#
4169
4477
# Check to make sure the static flag actually works.
4170
4478
#
4185
4493
m4_defun([_LT_LINKER_SHLIBS],
4186
4494
[AC_REQUIRE([LT_PATH_LD])dnl
4187
4495
AC_REQUIRE([LT_PATH_NM])dnl
 
4496
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4188
4497
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4189
4498
m4_require([_LT_DECL_EGREP])dnl
4190
4499
m4_require([_LT_DECL_SED])dnl
4193
4502
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4194
4503
m4_if([$1], [CXX], [
4195
4504
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4505
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4196
4506
  case $host_os in
4197
4507
  aix[[4-9]]*)
4198
4508
    # If we're using GNU nm, then we don't want the "-C" option.
4199
4509
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4510
    # Also, AIX nm treats weak defined symbols like other global defined
 
4511
    # symbols, whereas GNU nm marks them as "W".
4200
4512
    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'
 
4513
      _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
4514
    else
4203
4515
      _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
4516
    fi
4205
4517
    ;;
4206
4518
  pw32*)
4207
4519
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4208
 
  ;;
 
4520
    ;;
4209
4521
  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)
 
4522
    case $cc_basename in
 
4523
    cl*) ;;
 
4524
    *)
 
4525
      _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'
 
4526
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4527
      ;;
 
4528
    esac
 
4529
    ;;
 
4530
  linux* | k*bsd*-gnu | gnu*)
4213
4531
    _LT_TAGVAR(link_all_deplibs, $1)=no
4214
 
  ;;
 
4532
    ;;
4215
4533
  *)
4216
4534
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4217
 
  ;;
 
4535
    ;;
4218
4536
  esac
4219
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4220
4537
], [
4221
4538
  runpath_var=
4222
4539
  _LT_TAGVAR(allow_undefined_flag, $1)=
4276
4593
  openbsd*)
4277
4594
    with_gnu_ld=no
4278
4595
    ;;
4279
 
  linux* | k*bsd*-gnu)
 
4596
  linux* | k*bsd*-gnu | gnu*)
4280
4597
    _LT_TAGVAR(link_all_deplibs, $1)=no
4281
4598
    ;;
4282
4599
  esac
4283
4600
 
4284
4601
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4602
 
 
4603
  # On some targets, GNU ld is compatible enough with the native linker
 
4604
  # that we're better off using the native interface for both.
 
4605
  lt_use_gnu_ld_interface=no
4285
4606
  if test "$with_gnu_ld" = yes; then
 
4607
    case $host_os in
 
4608
      aix*)
 
4609
        # The AIX port of GNU ld has always aspired to compatibility
 
4610
        # with the native linker.  However, as the warning in the GNU ld
 
4611
        # block says, versions before 2.19.5* couldn't really create working
 
4612
        # shared libraries, regardless of the interface used.
 
4613
        case `$LD -v 2>&1` in
 
4614
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4615
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4616
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4617
          *)
 
4618
            lt_use_gnu_ld_interface=yes
 
4619
            ;;
 
4620
        esac
 
4621
        ;;
 
4622
      *)
 
4623
        lt_use_gnu_ld_interface=yes
 
4624
        ;;
 
4625
    esac
 
4626
  fi
 
4627
 
 
4628
  if test "$lt_use_gnu_ld_interface" = yes; then
4286
4629
    # If archive_cmds runs LD, not CC, wlarc should be empty
4287
4630
    wlarc='${wl}'
4288
4631
 
4316
4659
        _LT_TAGVAR(ld_shlibs, $1)=no
4317
4660
        cat <<_LT_EOF 1>&2
4318
4661
 
4319
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4662
*** Warning: the GNU linker, at least up to release 2.19, is reported
4320
4663
*** to be unable to reliably create shared libraries on AIX.
4321
4664
*** Therefore, libtool is disabling shared libraries support.  If you
4322
 
*** really care for shared libraries, you may want to modify your PATH
4323
 
*** so that a non-GNU linker is found, and then restart.
 
4665
*** really care for shared libraries, you may want to install binutils
 
4666
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4667
*** You will then need to restart the configuration process.
4324
4668
 
4325
4669
_LT_EOF
4326
4670
      fi
4356
4700
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4357
4701
      # as there is no search path for DLLs.
4358
4702
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4703
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4359
4704
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4360
4705
      _LT_TAGVAR(always_export_symbols, $1)=no
4361
4706
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4362
 
      _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'
 
4707
      _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'
 
4708
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4363
4709
 
4364
4710
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4365
4711
        _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'
4377
4723
      fi
4378
4724
      ;;
4379
4725
 
 
4726
    haiku*)
 
4727
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4728
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4729
      ;;
 
4730
 
4380
4731
    interix[[3-9]]*)
4381
4732
      _LT_TAGVAR(hardcode_direct, $1)=no
4382
4733
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4402
4753
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4403
4754
         && test "$tmp_diet" = no
4404
4755
      then
4405
 
        tmp_addflag=
 
4756
        tmp_addflag=' $pic_flag'
4406
4757
        tmp_sharedflag='-shared'
4407
4758
        case $cc_basename,$host_cpu in
4408
4759
        pgcc*)                          # Portland Group C compiler
4409
 
          _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'
 
4760
          _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'
4410
4761
          tmp_addflag=' $pic_flag'
4411
4762
          ;;
4412
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4413
 
          _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'
 
4763
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4764
                                        # Portland Group f77 and f90 compilers
 
4765
          _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'
4414
4766
          tmp_addflag=' $pic_flag -Mnomain' ;;
4415
4767
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4416
4768
          tmp_addflag=' -i_dynamic' ;;
4421
4773
        lf95*)                          # Lahey Fortran 8.1
4422
4774
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4423
4775
          tmp_sharedflag='--shared' ;;
4424
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4776
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4425
4777
          tmp_sharedflag='-qmkshrobj'
4426
4778
          tmp_addflag= ;;
 
4779
        nvcc*)  # Cuda Compiler Driver 2.2
 
4780
          _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'
 
4781
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4782
          ;;
4427
4783
        esac
4428
4784
        case `$CC -V 2>&1 | sed 5q` in
4429
4785
        *Sun\ C*)                       # Sun C 5.9
4430
 
          _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'
 
4786
          _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'
4431
4787
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4432
4788
          tmp_sharedflag='-G' ;;
4433
4789
        *Sun\ F*)                       # Sun Fortran 8.3
4443
4799
        fi
4444
4800
 
4445
4801
        case $cc_basename in
4446
 
        xlf*)
 
4802
        xlf* | bgf* | bgxlf* | mpixlf*)
4447
4803
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4448
4804
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4449
4805
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4450
4806
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4451
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4807
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4452
4808
          if test "x$supports_anon_versioning" = xyes; then
4453
4809
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4454
4810
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4455
4811
              echo "local: *; };" >> $output_objdir/$libname.ver~
4456
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4812
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4457
4813
          fi
4458
4814
          ;;
4459
4815
        esac
4467
4823
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4468
4824
        wlarc=
4469
4825
      else
4470
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4826
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4827
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4472
4828
      fi
4473
4829
      ;;
4474
4830
 
4486
4842
 
4487
4843
_LT_EOF
4488
4844
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4489
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4490
 
        _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'
 
4845
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4846
        _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'
4491
4847
      else
4492
4848
        _LT_TAGVAR(ld_shlibs, $1)=no
4493
4849
      fi
4533
4889
 
4534
4890
    *)
4535
4891
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4536
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4537
 
        _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'
 
4892
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4893
        _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'
4538
4894
      else
4539
4895
        _LT_TAGVAR(ld_shlibs, $1)=no
4540
4896
      fi
4574
4930
      else
4575
4931
        # If we're using GNU nm, then we don't want the "-C" option.
4576
4932
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4933
        # Also, AIX nm treats weak defined symbols like other global
 
4934
        # defined symbols, whereas GNU nm marks them as "W".
4577
4935
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4578
 
          _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'
 
4936
          _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'
4579
4937
        else
4580
4938
          _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'
4581
4939
        fi
4663
5021
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4664
5022
        # Determine the default libpath from the value encoded in an
4665
5023
        # empty executable.
4666
 
        _LT_SYS_MODULE_PATH_AIX
 
5024
        _LT_SYS_MODULE_PATH_AIX([$1])
4667
5025
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4668
 
        _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"
 
5026
        _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"
4669
5027
      else
4670
5028
        if test "$host_cpu" = ia64; then
4671
5029
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4674
5032
        else
4675
5033
         # Determine the default libpath from the value encoded in an
4676
5034
         # empty executable.
4677
 
         _LT_SYS_MODULE_PATH_AIX
 
5035
         _LT_SYS_MODULE_PATH_AIX([$1])
4678
5036
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4679
5037
          # Warning - without using the other run time loading flags,
4680
5038
          # -berok will link without error, but may produce a broken library.
4681
5039
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4682
5040
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4683
 
          # Exported symbols can be pulled into shared objects from archives
4684
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5041
          if test "$with_gnu_ld" = yes; then
 
5042
            # We only use this code for GNU lds that support --whole-archive.
 
5043
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5044
          else
 
5045
            # Exported symbols can be pulled into shared objects from archives
 
5046
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5047
          fi
4685
5048
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4686
5049
          # This is similar to how AIX traditionally builds its shared libraries.
4687
5050
          _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'
4713
5076
      # Microsoft Visual C++.
4714
5077
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4715
5078
      # no search path for DLLs.
4716
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4717
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4718
 
      # Tell ltmain to make .lib files, not .a files.
4719
 
      libext=lib
4720
 
      # Tell ltmain to make .dll files, not .so files.
4721
 
      shrext_cmds=".dll"
4722
 
      # FIXME: Setting linknames here is a bad hack.
4723
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4724
 
      # The linker will automatically build a .lib file if we build a DLL.
4725
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4726
 
      # FIXME: Should let the user specify the lib program.
4727
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4728
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4729
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5079
      case $cc_basename in
 
5080
      cl*)
 
5081
        # Native MSVC
 
5082
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5083
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5084
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5085
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5086
        # Tell ltmain to make .lib files, not .a files.
 
5087
        libext=lib
 
5088
        # Tell ltmain to make .dll files, not .so files.
 
5089
        shrext_cmds=".dll"
 
5090
        # FIXME: Setting linknames here is a bad hack.
 
5091
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5092
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5093
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5094
          else
 
5095
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5096
          fi~
 
5097
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5098
          linknames='
 
5099
        # The linker will not automatically build a static lib if we build a DLL.
 
5100
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5101
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5102
        _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'
 
5103
        # Don't use ranlib
 
5104
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5105
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5106
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5107
          case $lt_outputfile in
 
5108
            *.exe|*.EXE) ;;
 
5109
            *)
 
5110
              lt_outputfile="$lt_outputfile.exe"
 
5111
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5112
              ;;
 
5113
          esac~
 
5114
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5115
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5116
            $RM "$lt_outputfile.manifest";
 
5117
          fi'
 
5118
        ;;
 
5119
      *)
 
5120
        # Assume MSVC wrapper
 
5121
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5122
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5123
        # Tell ltmain to make .lib files, not .a files.
 
5124
        libext=lib
 
5125
        # Tell ltmain to make .dll files, not .so files.
 
5126
        shrext_cmds=".dll"
 
5127
        # FIXME: Setting linknames here is a bad hack.
 
5128
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5129
        # The linker will automatically build a .lib file if we build a DLL.
 
5130
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5131
        # FIXME: Should let the user specify the lib program.
 
5132
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5133
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5134
        ;;
 
5135
      esac
4730
5136
      ;;
4731
5137
 
4732
5138
    darwin* | rhapsody*)
4764
5170
 
4765
5171
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4766
5172
    freebsd* | dragonfly*)
4767
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5173
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4768
5174
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4769
5175
      _LT_TAGVAR(hardcode_direct, $1)=yes
4770
5176
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4772
5178
 
4773
5179
    hpux9*)
4774
5180
      if test "$GCC" = yes; then
4775
 
        _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'
 
5181
        _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'
4776
5182
      else
4777
5183
        _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'
4778
5184
      fi
4787
5193
      ;;
4788
5194
 
4789
5195
    hpux10*)
4790
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4791
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5196
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
5197
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4792
5198
      else
4793
5199
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4794
5200
      fi
4806
5212
      ;;
4807
5213
 
4808
5214
    hpux11*)
4809
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5215
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4810
5216
        case $host_cpu in
4811
5217
        hppa*64*)
4812
5218
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4813
5219
          ;;
4814
5220
        ia64*)
4815
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5221
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4816
5222
          ;;
4817
5223
        *)
4818
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5224
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4819
5225
          ;;
4820
5226
        esac
4821
5227
      else
4827
5233
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4828
5234
          ;;
4829
5235
        *)
4830
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5236
        m4_if($1, [], [
 
5237
          # Older versions of the 11.00 compiler do not understand -b yet
 
5238
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
5239
          _LT_LINKER_OPTION([if $CC understands -b],
 
5240
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
5241
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
5242
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
5243
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4831
5244
          ;;
4832
5245
        esac
4833
5246
      fi
4855
5268
 
4856
5269
    irix5* | irix6* | nonstopux*)
4857
5270
      if test "$GCC" = yes; then
4858
 
        _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'
 
5271
        _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'
4859
5272
        # Try to use the -exported_symbol ld option, if it does not
4860
5273
        # work, assume that -exports_file does not work either and
4861
5274
        # implicitly export all symbols.
4862
 
        save_LDFLAGS="$LDFLAGS"
4863
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4864
 
        AC_LINK_IFELSE(int foo(void) {},
4865
 
          _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'
4866
 
        )
4867
 
        LDFLAGS="$save_LDFLAGS"
 
5275
        # This should be the same for all languages, so no per-tag cache variable.
 
5276
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5277
          [lt_cv_irix_exported_symbol],
 
5278
          [save_LDFLAGS="$LDFLAGS"
 
5279
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5280
           AC_LINK_IFELSE(
 
5281
             [AC_LANG_SOURCE(
 
5282
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5283
                              [C++], [[int foo (void) { return 0; }]],
 
5284
                              [Fortran 77], [[
 
5285
      subroutine foo
 
5286
      end]],
 
5287
                              [Fortran], [[
 
5288
      subroutine foo
 
5289
      end]])])],
 
5290
              [lt_cv_irix_exported_symbol=yes],
 
5291
              [lt_cv_irix_exported_symbol=no])
 
5292
           LDFLAGS="$save_LDFLAGS"])
 
5293
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5294
          _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'
 
5295
        fi
4868
5296
      else
4869
 
        _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'
4870
 
        _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'
 
5297
        _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'
 
5298
        _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'
4871
5299
      fi
4872
5300
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873
5301
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4929
5357
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4930
5358
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4931
5359
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4932
 
      _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'
 
5360
      _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'
4933
5361
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4934
5362
      ;;
4935
5363
 
4936
5364
    osf3*)
4937
5365
      if test "$GCC" = yes; then
4938
5366
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4939
 
        _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'
 
5367
        _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'
4940
5368
      else
4941
5369
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4942
 
        _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'
 
5370
        _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'
4943
5371
      fi
4944
5372
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4945
5373
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4949
5377
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4950
5378
      if test "$GCC" = yes; then
4951
5379
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4952
 
        _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'
 
5380
        _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'
4953
5381
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4954
5382
      else
4955
5383
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4956
 
        _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'
 
5384
        _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'
4957
5385
        _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~
4958
 
        $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'
 
5386
        $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'
4959
5387
 
4960
5388
        # Both c and cxx compiler support -rpath directly
4961
5389
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4968
5396
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4969
5397
      if test "$GCC" = yes; then
4970
5398
        wlarc='${wl}'
4971
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5399
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4972
5400
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4973
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5401
          $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'
4974
5402
      else
4975
5403
        case `$CC -V 2>&1` in
4976
5404
        *"Compilers 5.0"*)
5146
5574
      # Test whether the compiler implicitly links with -lc since on some
5147
5575
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5148
5576
      # to ld, don't add -lc before -lgcc.
5149
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5150
 
      $RM conftest*
5151
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5577
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5578
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5579
        [$RM conftest*
 
5580
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5152
5581
 
5153
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5154
 
        soname=conftest
5155
 
        lib=conftest
5156
 
        libobjs=conftest.$ac_objext
5157
 
        deplibs=
5158
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5160
 
        compiler_flags=-v
5161
 
        linker_flags=-v
5162
 
        verstring=
5163
 
        output_objdir=.
5164
 
        libname=conftest
5165
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5167
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5168
 
        then
5169
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5170
 
        else
5171
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5172
 
        fi
5173
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5174
 
      else
5175
 
        cat conftest.err 1>&5
5176
 
      fi
5177
 
      $RM conftest*
5178
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5582
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5583
          soname=conftest
 
5584
          lib=conftest
 
5585
          libobjs=conftest.$ac_objext
 
5586
          deplibs=
 
5587
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5588
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5589
          compiler_flags=-v
 
5590
          linker_flags=-v
 
5591
          verstring=
 
5592
          output_objdir=.
 
5593
          libname=conftest
 
5594
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5595
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5596
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5597
          then
 
5598
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5599
          else
 
5600
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5601
          fi
 
5602
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5603
        else
 
5604
          cat conftest.err 1>&5
 
5605
        fi
 
5606
        $RM conftest*
 
5607
        ])
 
5608
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5179
5609
      ;;
5180
5610
    esac
5181
5611
  fi
5240
5670
    to runtime path list])
5241
5671
_LT_TAGDECL([], [link_all_deplibs], [0],
5242
5672
    [Whether libtool must link a program against all its dependency libraries])
5243
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5244
 
    [Fix the shell variable $srcfile for the compiler])
5245
5673
_LT_TAGDECL([], [always_export_symbols], [0],
5246
5674
    [Set to "yes" if exported symbols are required])
5247
5675
_LT_TAGDECL([], [export_symbols_cmds], [2],
5252
5680
    [Symbols that must always be exported])
5253
5681
_LT_TAGDECL([], [prelink_cmds], [2],
5254
5682
    [Commands necessary for linking programs (against libraries) with templates])
 
5683
_LT_TAGDECL([], [postlink_cmds], [2],
 
5684
    [Commands necessary for finishing linking programs])
5255
5685
_LT_TAGDECL([], [file_list_spec], [1],
5256
5686
    [Specify filename containing input files])
5257
5687
dnl FIXME: Not yet implemented
5341
5771
])# _LT_LANG_C_CONFIG
5342
5772
 
5343
5773
 
5344
 
# _LT_PROG_CXX
5345
 
# ------------
5346
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5347
 
# compiler, we have our own version here.
5348
 
m4_defun([_LT_PROG_CXX],
5349
 
[
5350
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5351
 
AC_PROG_CXX
 
5774
# _LT_LANG_CXX_CONFIG([TAG])
 
5775
# --------------------------
 
5776
# Ensure that the configuration variables for a C++ compiler are suitably
 
5777
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5778
# the compiler configuration to `libtool'.
 
5779
m4_defun([_LT_LANG_CXX_CONFIG],
 
5780
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5781
m4_require([_LT_DECL_EGREP])dnl
 
5782
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5352
5783
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5353
5784
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5354
5785
    (test "X$CXX" != "Xg++"))) ; then
5356
5787
else
5357
5788
  _lt_caught_CXX_error=yes
5358
5789
fi
5359
 
popdef([AC_MSG_ERROR])
5360
 
])# _LT_PROG_CXX
5361
 
 
5362
 
dnl aclocal-1.4 backwards compatibility:
5363
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5364
 
 
5365
 
 
5366
 
# _LT_LANG_CXX_CONFIG([TAG])
5367
 
# --------------------------
5368
 
# Ensure that the configuration variables for a C++ compiler are suitably
5369
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5370
 
# the compiler configuration to `libtool'.
5371
 
m4_defun([_LT_LANG_CXX_CONFIG],
5372
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5373
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5374
 
m4_require([_LT_DECL_EGREP])dnl
5375
5790
 
5376
5791
AC_LANG_PUSH(C++)
5377
5792
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5393
5808
_LT_TAGVAR(module_expsym_cmds, $1)=
5394
5809
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5395
5810
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5811
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5812
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5396
5813
_LT_TAGVAR(no_undefined_flag, $1)=
5397
5814
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5398
5815
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5424
5841
 
5425
5842
  # Allow CC to be a program name with arguments.
5426
5843
  lt_save_CC=$CC
 
5844
  lt_save_CFLAGS=$CFLAGS
5427
5845
  lt_save_LD=$LD
5428
5846
  lt_save_GCC=$GCC
5429
5847
  GCC=$GXX
5441
5859
  fi
5442
5860
  test -z "${LDCXX+set}" || LD=$LDCXX
5443
5861
  CC=${CXX-"c++"}
 
5862
  CFLAGS=$CXXFLAGS
5444
5863
  compiler=$CC
5445
5864
  _LT_TAGVAR(compiler, $1)=$CC
5446
5865
  _LT_CC_BASENAME([$compiler])
5462
5881
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5463
5882
      # archiving commands below assume that GNU ld is being used.
5464
5883
      if test "$with_gnu_ld" = yes; then
5465
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466
 
        _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'
 
5884
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5885
        _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'
5467
5886
 
5468
5887
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5469
5888
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5495
5914
      # Commands to make compiler produce verbose output that lists
5496
5915
      # what "hidden" libraries, object files and flags are used when
5497
5916
      # linking a shared library.
5498
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5917
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5499
5918
 
5500
5919
    else
5501
5920
      GXX=no
5604
6023
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5605
6024
          # Determine the default libpath from the value encoded in an empty
5606
6025
          # executable.
5607
 
          _LT_SYS_MODULE_PATH_AIX
 
6026
          _LT_SYS_MODULE_PATH_AIX([$1])
5608
6027
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5609
6028
 
5610
 
          _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"
 
6029
          _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"
5611
6030
        else
5612
6031
          if test "$host_cpu" = ia64; then
5613
6032
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5616
6035
          else
5617
6036
            # Determine the default libpath from the value encoded in an
5618
6037
            # empty executable.
5619
 
            _LT_SYS_MODULE_PATH_AIX
 
6038
            _LT_SYS_MODULE_PATH_AIX([$1])
5620
6039
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5621
6040
            # Warning - without using the other run time loading flags,
5622
6041
            # -berok will link without error, but may produce a broken library.
5623
6042
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5624
6043
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5625
 
            # Exported symbols can be pulled into shared objects from archives
5626
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6044
            if test "$with_gnu_ld" = yes; then
 
6045
              # We only use this code for GNU lds that support --whole-archive.
 
6046
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6047
            else
 
6048
              # Exported symbols can be pulled into shared objects from archives
 
6049
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6050
            fi
5627
6051
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5628
6052
            # This is similar to how AIX traditionally builds its shared
5629
6053
            # libraries.
5653
6077
        ;;
5654
6078
 
5655
6079
      cygwin* | mingw* | pw32* | cegcc*)
5656
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5657
 
        # as there is no search path for DLLs.
5658
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5660
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5661
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6080
        case $GXX,$cc_basename in
 
6081
        ,cl* | no,cl*)
 
6082
          # Native MSVC
 
6083
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6084
          # no search path for DLLs.
 
6085
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6086
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6087
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6088
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6089
          # Tell ltmain to make .lib files, not .a files.
 
6090
          libext=lib
 
6091
          # Tell ltmain to make .dll files, not .so files.
 
6092
          shrext_cmds=".dll"
 
6093
          # FIXME: Setting linknames here is a bad hack.
 
6094
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6095
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6096
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6097
            else
 
6098
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6099
            fi~
 
6100
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6101
            linknames='
 
6102
          # The linker will not automatically build a static lib if we build a DLL.
 
6103
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6104
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6105
          # Don't use ranlib
 
6106
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6107
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6108
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6109
            case $lt_outputfile in
 
6110
              *.exe|*.EXE) ;;
 
6111
              *)
 
6112
                lt_outputfile="$lt_outputfile.exe"
 
6113
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6114
                ;;
 
6115
            esac~
 
6116
            func_to_tool_file "$lt_outputfile"~
 
6117
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6118
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6119
              $RM "$lt_outputfile.manifest";
 
6120
            fi'
 
6121
          ;;
 
6122
        *)
 
6123
          # g++
 
6124
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6125
          # as there is no search path for DLLs.
 
6126
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6127
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6128
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6129
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6130
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5662
6131
 
5663
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664
 
          _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'
5665
 
          # If the export-symbols file already is a .def file (1st line
5666
 
          # is EXPORTS), use it as is; otherwise, prepend...
5667
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668
 
            cp $export_symbols $output_objdir/$soname.def;
5669
 
          else
5670
 
            echo EXPORTS > $output_objdir/$soname.def;
5671
 
            cat $export_symbols >> $output_objdir/$soname.def;
5672
 
          fi~
5673
 
          $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'
5674
 
        else
5675
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5676
 
        fi
5677
 
        ;;
 
6132
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6133
            _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'
 
6134
            # If the export-symbols file already is a .def file (1st line
 
6135
            # is EXPORTS), use it as is; otherwise, prepend...
 
6136
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6137
              cp $export_symbols $output_objdir/$soname.def;
 
6138
            else
 
6139
              echo EXPORTS > $output_objdir/$soname.def;
 
6140
              cat $export_symbols >> $output_objdir/$soname.def;
 
6141
            fi~
 
6142
            $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'
 
6143
          else
 
6144
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6145
          fi
 
6146
          ;;
 
6147
        esac
 
6148
        ;;
5678
6149
      darwin* | rhapsody*)
5679
6150
        _LT_DARWIN_LINKER_FEATURES($1)
5680
6151
        ;;
5716
6187
      gnu*)
5717
6188
        ;;
5718
6189
 
 
6190
      haiku*)
 
6191
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6192
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6193
        ;;
 
6194
 
5719
6195
      hpux9*)
5720
6196
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5721
6197
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5740
6216
            # explicitly linking system object files so we need to strip them
5741
6217
            # from the output so that they don't get included in the library
5742
6218
            # dependencies.
5743
 
            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'
 
6219
            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"'
5744
6220
            ;;
5745
6221
          *)
5746
6222
            if test "$GXX" = yes; then
5747
 
              _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'
 
6223
              _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'
5748
6224
            else
5749
6225
              # FIXME: insert proper C++ library support
5750
6226
              _LT_TAGVAR(ld_shlibs, $1)=no
5805
6281
            # explicitly linking system object files so we need to strip them
5806
6282
            # from the output so that they don't get included in the library
5807
6283
            # dependencies.
5808
 
            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'
 
6284
            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"'
5809
6285
            ;;
5810
6286
          *)
5811
6287
            if test "$GXX" = yes; then
5815
6291
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5816
6292
                    ;;
5817
6293
                  ia64*)
5818
 
                    _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'
 
6294
                    _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'
5819
6295
                    ;;
5820
6296
                  *)
5821
 
                    _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'
 
6297
                    _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'
5822
6298
                    ;;
5823
6299
                esac
5824
6300
              fi
5848
6324
        case $cc_basename in
5849
6325
          CC*)
5850
6326
            # SGI C++
5851
 
            _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'
 
6327
            _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'
5852
6328
 
5853
6329
            # Archives containing C++ object files must be created using
5854
6330
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5859
6335
          *)
5860
6336
            if test "$GXX" = yes; then
5861
6337
              if test "$with_gnu_ld" = no; then
5862
 
                _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'
 
6338
                _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'
5863
6339
              else
5864
 
                _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'
 
6340
                _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'
5865
6341
              fi
5866
6342
            fi
5867
6343
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5890
6366
            # explicitly linking system object files so we need to strip them
5891
6367
            # from the output so that they don't get included in the library
5892
6368
            # dependencies.
5893
 
            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'
 
6369
            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"'
5894
6370
 
5895
6371
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5896
6372
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5927
6403
          pgCC* | pgcpp*)
5928
6404
            # Portland Group C++ compiler
5929
6405
            case `$CC -V` in
5930
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6406
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5931
6407
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5932
6408
                rm -rf $tpldir~
5933
6409
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5934
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6410
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5935
6411
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5936
6412
                rm -rf $tpldir~
5937
6413
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5938
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6414
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5939
6415
                $RANLIB $oldlib'
5940
6416
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5941
6417
                rm -rf $tpldir~
5942
6418
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5943
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6419
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5944
6420
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5945
6421
                rm -rf $tpldir~
5946
6422
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5947
 
                $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'
 
6423
                $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'
5948
6424
              ;;
5949
 
            *) # Version 6 will use weak symbols
 
6425
            *) # Version 6 and above use weak symbols
5950
6426
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5951
6427
              _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'
5952
6428
              ;;
5954
6430
 
5955
6431
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5956
6432
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5957
 
            _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'
 
6433
            _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'
5958
6434
            ;;
5959
6435
          cxx*)
5960
6436
            # Compaq C++
5973
6449
            # explicitly linking system object files so we need to strip them
5974
6450
            # from the output so that they don't get included in the library
5975
6451
            # dependencies.
5976
 
            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'
 
6452
            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'
5977
6453
            ;;
5978
 
          xl*)
 
6454
          xl* | mpixl* | bgxl*)
5979
6455
            # IBM XL 8.0 on PPC, with GNU ld
5980
6456
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5981
6457
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5995
6471
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5996
6472
              _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'
5997
6473
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5998
 
              _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'
 
6474
              _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'
5999
6475
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6000
6476
 
6001
6477
              # Not sure whether something based on
6002
6478
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6003
6479
              # would be better.
6004
 
              output_verbose_link_cmd='echo'
 
6480
              output_verbose_link_cmd='func_echo_all'
6005
6481
 
6006
6482
              # Archives containing C++ object files must be created using
6007
6483
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6070
6546
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6071
6547
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6072
6548
          fi
6073
 
          output_verbose_link_cmd=echo
 
6549
          output_verbose_link_cmd=func_echo_all
6074
6550
        else
6075
6551
          _LT_TAGVAR(ld_shlibs, $1)=no
6076
6552
        fi
6105
6581
            case $host in
6106
6582
              osf3*)
6107
6583
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108
 
                _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'
 
6584
                _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'
6109
6585
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6110
6586
                ;;
6111
6587
              *)
6112
6588
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6113
 
                _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'
 
6589
                _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'
6114
6590
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6115
6591
                  echo "-hidden">> $lib.exp~
6116
 
                  $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~
 
6592
                  $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~
6117
6593
                  $RM $lib.exp'
6118
6594
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6119
6595
                ;;
6129
6605
            # explicitly linking system object files so we need to strip them
6130
6606
            # from the output so that they don't get included in the library
6131
6607
            # dependencies.
6132
 
            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'
 
6608
            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"'
6133
6609
            ;;
6134
6610
          *)
6135
6611
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6136
6612
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6137
6613
              case $host in
6138
6614
                osf3*)
6139
 
                  _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'
 
6615
                  _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'
6140
6616
                  ;;
6141
6617
                *)
6142
 
                  _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'
 
6618
                  _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'
6143
6619
                  ;;
6144
6620
              esac
6145
6621
 
6149
6625
              # Commands to make compiler produce verbose output that lists
6150
6626
              # what "hidden" libraries, object files and flags are used when
6151
6627
              # linking a shared library.
6152
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6628
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6153
6629
 
6154
6630
            else
6155
6631
              # FIXME: insert proper C++ library support
6185
6661
 
6186
6662
      solaris*)
6187
6663
        case $cc_basename in
6188
 
          CC*)
 
6664
          CC* | sunCC*)
6189
6665
            # Sun C++ 4.2, 5.x and Centerline C++
6190
6666
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6191
6667
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6206
6682
            esac
6207
6683
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6208
6684
 
6209
 
            output_verbose_link_cmd='echo'
 
6685
            output_verbose_link_cmd='func_echo_all'
6210
6686
 
6211
6687
            # Archives containing C++ object files must be created using
6212
6688
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6226
6702
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6227
6703
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6228
6704
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6229
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6705
                _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'
6230
6706
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6231
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6707
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6232
6708
 
6233
6709
                # Commands to make compiler produce verbose output that lists
6234
6710
                # what "hidden" libraries, object files and flags are used when
6235
6711
                # linking a shared library.
6236
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6712
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6237
6713
              else
6238
6714
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6239
6715
                # platform.
6244
6720
                # Commands to make compiler produce verbose output that lists
6245
6721
                # what "hidden" libraries, object files and flags are used when
6246
6722
                # linking a shared library.
6247
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6723
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6248
6724
              fi
6249
6725
 
6250
6726
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6298
6774
          CC*)
6299
6775
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6300
6776
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6777
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6778
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6779
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6780
              '"$_LT_TAGVAR(reload_cmds, $1)"
6301
6781
            ;;
6302
6782
          *)
6303
6783
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6353
6833
  fi # test -n "$compiler"
6354
6834
 
6355
6835
  CC=$lt_save_CC
 
6836
  CFLAGS=$lt_save_CFLAGS
6356
6837
  LDCXX=$LD
6357
6838
  LD=$lt_save_LD
6358
6839
  GCC=$lt_save_GCC
6367
6848
])# _LT_LANG_CXX_CONFIG
6368
6849
 
6369
6850
 
 
6851
# _LT_FUNC_STRIPNAME_CNF
 
6852
# ----------------------
 
6853
# func_stripname_cnf prefix suffix name
 
6854
# strip PREFIX and SUFFIX off of NAME.
 
6855
# PREFIX and SUFFIX must not contain globbing or regex special
 
6856
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
6857
# dot (in which case that matches only a dot).
 
6858
#
 
6859
# This function is identical to the (non-XSI) version of func_stripname,
 
6860
# except this one can be used by m4 code that may be executed by configure,
 
6861
# rather than the libtool script.
 
6862
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
6863
AC_REQUIRE([_LT_DECL_SED])
 
6864
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
6865
func_stripname_cnf ()
 
6866
{
 
6867
  case ${2} in
 
6868
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
6869
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
6870
  esac
 
6871
} # func_stripname_cnf
 
6872
])# _LT_FUNC_STRIPNAME_CNF
 
6873
 
6370
6874
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6371
6875
# ---------------------------------
6372
6876
# Figure out "hidden" library dependencies from verbose
6375
6879
# objects, libraries and library flags.
6376
6880
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6377
6881
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6882
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6378
6883
# Dependencies to place before and after the object being linked:
6379
6884
_LT_TAGVAR(predep_objects, $1)=
6380
6885
_LT_TAGVAR(postdep_objects, $1)=
6425
6930
};
6426
6931
_LT_EOF
6427
6932
])
 
6933
 
 
6934
_lt_libdeps_save_CFLAGS=$CFLAGS
 
6935
case "$CC $CFLAGS " in #(
 
6936
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
6937
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
6938
esac
 
6939
 
6428
6940
dnl Parse the compiler output and extract the necessary
6429
6941
dnl objects, libraries and library flags.
6430
6942
if AC_TRY_EVAL(ac_compile); then
6436
6948
  pre_test_object_deps_done=no
6437
6949
 
6438
6950
  for p in `eval "$output_verbose_link_cmd"`; do
6439
 
    case $p in
 
6951
    case ${prev}${p} in
6440
6952
 
6441
6953
    -L* | -R* | -l*)
6442
6954
       # Some compilers place space between "-{L,R}" and the path.
6445
6957
          test $p = "-R"; then
6446
6958
         prev=$p
6447
6959
         continue
6448
 
       else
6449
 
         prev=
6450
6960
       fi
6451
6961
 
 
6962
       # Expand the sysroot to ease extracting the directories later.
 
6963
       if test -z "$prev"; then
 
6964
         case $p in
 
6965
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
6966
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
6967
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
6968
         esac
 
6969
       fi
 
6970
       case $p in
 
6971
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
6972
       esac
6452
6973
       if test "$pre_test_object_deps_done" = no; then
6453
 
         case $p in
6454
 
         -L* | -R*)
 
6974
         case ${prev} in
 
6975
         -L | -R)
6455
6976
           # Internal compiler library paths should come after those
6456
6977
           # provided the user.  The postdeps already come after the
6457
6978
           # user supplied libs so there is no need to process them.
6471
6992
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6472
6993
         fi
6473
6994
       fi
 
6995
       prev=
6474
6996
       ;;
6475
6997
 
 
6998
    *.lto.$objext) ;; # Ignore GCC LTO objects
6476
6999
    *.$objext)
6477
7000
       # This assumes that the test object file only shows up
6478
7001
       # once in the compiler output.
6508
7031
fi
6509
7032
 
6510
7033
$RM -f confest.$objext
 
7034
CFLAGS=$_lt_libdeps_save_CFLAGS
6511
7035
 
6512
7036
# PORTME: override above test on systems where it is broken
6513
7037
m4_if([$1], [CXX],
6544
7068
 
6545
7069
solaris*)
6546
7070
  case $cc_basename in
6547
 
  CC*)
 
7071
  CC* | sunCC*)
6548
7072
    # The more standards-conforming stlport4 library is
6549
7073
    # incompatible with the Cstd library. Avoid specifying
6550
7074
    # it if it's in CXXFLAGS. Ignore libCrun as
6588
7112
])# _LT_SYS_HIDDEN_LIBDEPS
6589
7113
 
6590
7114
 
6591
 
# _LT_PROG_F77
6592
 
# ------------
6593
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6594
 
# if there is no fortran compiler, we have our own version here.
6595
 
m4_defun([_LT_PROG_F77],
6596
 
[
6597
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6598
 
AC_PROG_F77
6599
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6600
 
  _lt_disable_F77=yes
6601
 
fi
6602
 
popdef([AC_MSG_ERROR])
6603
 
])# _LT_PROG_F77
6604
 
 
6605
 
dnl aclocal-1.4 backwards compatibility:
6606
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6607
 
 
6608
 
 
6609
7115
# _LT_LANG_F77_CONFIG([TAG])
6610
7116
# --------------------------
6611
7117
# Ensure that the configuration variables for a Fortran 77 compiler are
6612
7118
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6613
7119
# to write the compiler configuration to `libtool'.
6614
7120
m4_defun([_LT_LANG_F77_CONFIG],
6615
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6616
 
AC_LANG_PUSH(Fortran 77)
 
7121
[AC_LANG_PUSH(Fortran 77)
 
7122
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7123
  _lt_disable_F77=yes
 
7124
fi
6617
7125
 
6618
7126
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6619
7127
_LT_TAGVAR(allow_undefined_flag, $1)=
6632
7140
_LT_TAGVAR(module_expsym_cmds, $1)=
6633
7141
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6634
7142
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7143
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7144
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6635
7145
_LT_TAGVAR(no_undefined_flag, $1)=
6636
7146
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6637
7147
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6671
7181
  # Allow CC to be a program name with arguments.
6672
7182
  lt_save_CC="$CC"
6673
7183
  lt_save_GCC=$GCC
 
7184
  lt_save_CFLAGS=$CFLAGS
6674
7185
  CC=${F77-"f77"}
 
7186
  CFLAGS=$FFLAGS
6675
7187
  compiler=$CC
6676
7188
  _LT_TAGVAR(compiler, $1)=$CC
6677
7189
  _LT_CC_BASENAME([$compiler])
6725
7237
 
6726
7238
  GCC=$lt_save_GCC
6727
7239
  CC="$lt_save_CC"
 
7240
  CFLAGS="$lt_save_CFLAGS"
6728
7241
fi # test "$_lt_disable_F77" != yes
6729
7242
 
6730
7243
AC_LANG_POP
6731
7244
])# _LT_LANG_F77_CONFIG
6732
7245
 
6733
7246
 
6734
 
# _LT_PROG_FC
6735
 
# -----------
6736
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6737
 
# if there is no fortran compiler, we have our own version here.
6738
 
m4_defun([_LT_PROG_FC],
6739
 
[
6740
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6741
 
AC_PROG_FC
6742
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6743
 
  _lt_disable_FC=yes
6744
 
fi
6745
 
popdef([AC_MSG_ERROR])
6746
 
])# _LT_PROG_FC
6747
 
 
6748
 
dnl aclocal-1.4 backwards compatibility:
6749
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6750
 
 
6751
 
 
6752
7247
# _LT_LANG_FC_CONFIG([TAG])
6753
7248
# -------------------------
6754
7249
# Ensure that the configuration variables for a Fortran compiler are
6755
7250
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6756
7251
# to write the compiler configuration to `libtool'.
6757
7252
m4_defun([_LT_LANG_FC_CONFIG],
6758
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6759
 
AC_LANG_PUSH(Fortran)
 
7253
[AC_LANG_PUSH(Fortran)
 
7254
 
 
7255
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7256
  _lt_disable_FC=yes
 
7257
fi
6760
7258
 
6761
7259
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6762
7260
_LT_TAGVAR(allow_undefined_flag, $1)=
6775
7273
_LT_TAGVAR(module_expsym_cmds, $1)=
6776
7274
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6777
7275
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7276
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7277
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6778
7278
_LT_TAGVAR(no_undefined_flag, $1)=
6779
7279
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6780
7280
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6814
7314
  # Allow CC to be a program name with arguments.
6815
7315
  lt_save_CC="$CC"
6816
7316
  lt_save_GCC=$GCC
 
7317
  lt_save_CFLAGS=$CFLAGS
6817
7318
  CC=${FC-"f95"}
 
7319
  CFLAGS=$FCFLAGS
6818
7320
  compiler=$CC
6819
7321
  GCC=$ac_cv_fc_compiler_gnu
6820
7322
 
6870
7372
  fi # test -n "$compiler"
6871
7373
 
6872
7374
  GCC=$lt_save_GCC
6873
 
  CC="$lt_save_CC"
 
7375
  CC=$lt_save_CC
 
7376
  CFLAGS=$lt_save_CFLAGS
6874
7377
fi # test "$_lt_disable_FC" != yes
6875
7378
 
6876
7379
AC_LANG_POP
6907
7410
_LT_LINKER_BOILERPLATE
6908
7411
 
6909
7412
# Allow CC to be a program name with arguments.
6910
 
lt_save_CC="$CC"
 
7413
lt_save_CC=$CC
 
7414
lt_save_CFLAGS=$CFLAGS
6911
7415
lt_save_GCC=$GCC
6912
7416
GCC=yes
6913
7417
CC=${GCJ-"gcj"}
 
7418
CFLAGS=$GCJFLAGS
6914
7419
compiler=$CC
6915
7420
_LT_TAGVAR(compiler, $1)=$CC
6916
7421
_LT_TAGVAR(LD, $1)="$LD"
6920
7425
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6921
7426
 
6922
7427
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7428
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7429
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6923
7430
 
6924
7431
if test -n "$compiler"; then
6925
7432
  _LT_COMPILER_NO_RTTI($1)
6935
7442
AC_LANG_RESTORE
6936
7443
 
6937
7444
GCC=$lt_save_GCC
6938
 
CC="$lt_save_CC"
 
7445
CC=$lt_save_CC
 
7446
CFLAGS=$lt_save_CFLAGS
6939
7447
])# _LT_LANG_GCJ_CONFIG
6940
7448
 
6941
7449
 
6970
7478
 
6971
7479
# Allow CC to be a program name with arguments.
6972
7480
lt_save_CC="$CC"
 
7481
lt_save_CFLAGS=$CFLAGS
6973
7482
lt_save_GCC=$GCC
6974
7483
GCC=
6975
7484
CC=${RC-"windres"}
 
7485
CFLAGS=
6976
7486
compiler=$CC
6977
7487
_LT_TAGVAR(compiler, $1)=$CC
6978
7488
_LT_CC_BASENAME([$compiler])
6985
7495
 
6986
7496
GCC=$lt_save_GCC
6987
7497
AC_LANG_RESTORE
6988
 
CC="$lt_save_CC"
 
7498
CC=$lt_save_CC
 
7499
CFLAGS=$lt_save_CFLAGS
6989
7500
])# _LT_LANG_RC_CONFIG
6990
7501
 
6991
7502
 
7044
7555
AC_SUBST([OBJDUMP])
7045
7556
])
7046
7557
 
 
7558
# _LT_DECL_DLLTOOL
 
7559
# ----------------
 
7560
# Ensure DLLTOOL variable is set.
 
7561
m4_defun([_LT_DECL_DLLTOOL],
 
7562
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7563
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7564
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7565
AC_SUBST([DLLTOOL])
 
7566
])
7047
7567
 
7048
7568
# _LT_DECL_SED
7049
7569
# ------------
7135
7655
# Try some XSI features
7136
7656
xsi_shell=no
7137
7657
( _lt_dummy="a/b/c"
7138
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7139
 
      = c,a/b,, \
 
7658
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7659
      = c,a/b,b/c, \
7140
7660
    && eval 'test $(( 1 + 1 )) -eq 2 \
7141
7661
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7142
7662
  && xsi_shell=yes
7175
7695
])# _LT_CHECK_SHELL_FEATURES
7176
7696
 
7177
7697
 
7178
 
# _LT_PROG_XSI_SHELLFNS
7179
 
# ---------------------
7180
 
# Bourne and XSI compatible variants of some useful shell functions.
7181
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7182
 
[case $xsi_shell in
7183
 
  yes)
7184
 
    cat << \_LT_EOF >> "$cfgfile"
7185
 
 
7186
 
# func_dirname file append nondir_replacement
7187
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7188
 
# otherwise set result to NONDIR_REPLACEMENT.
7189
 
func_dirname ()
7190
 
{
7191
 
  case ${1} in
7192
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7193
 
    *  ) func_dirname_result="${3}" ;;
7194
 
  esac
7195
 
}
7196
 
 
7197
 
# func_basename file
7198
 
func_basename ()
7199
 
{
7200
 
  func_basename_result="${1##*/}"
7201
 
}
7202
 
 
7203
 
# func_dirname_and_basename file append nondir_replacement
7204
 
# perform func_basename and func_dirname in a single function
7205
 
# call:
7206
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7207
 
#             add APPEND to the result, otherwise set result
7208
 
#             to NONDIR_REPLACEMENT.
7209
 
#             value returned in "$func_dirname_result"
7210
 
#   basename: Compute filename of FILE.
7211
 
#             value retuned in "$func_basename_result"
7212
 
# Implementation must be kept synchronized with func_dirname
7213
 
# and func_basename. For efficiency, we do not delegate to
7214
 
# those functions but instead duplicate the functionality here.
7215
 
func_dirname_and_basename ()
7216
 
{
7217
 
  case ${1} in
7218
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7219
 
    *  ) func_dirname_result="${3}" ;;
7220
 
  esac
7221
 
  func_basename_result="${1##*/}"
7222
 
}
7223
 
 
7224
 
# func_stripname prefix suffix name
7225
 
# strip PREFIX and SUFFIX off of NAME.
7226
 
# PREFIX and SUFFIX must not contain globbing or regex special
7227
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7228
 
# dot (in which case that matches only a dot).
7229
 
func_stripname ()
7230
 
{
7231
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7232
 
  # positional parameters, so assign one to ordinary parameter first.
7233
 
  func_stripname_result=${3}
7234
 
  func_stripname_result=${func_stripname_result#"${1}"}
7235
 
  func_stripname_result=${func_stripname_result%"${2}"}
7236
 
}
7237
 
 
7238
 
# func_opt_split
7239
 
func_opt_split ()
7240
 
{
7241
 
  func_opt_split_opt=${1%%=*}
7242
 
  func_opt_split_arg=${1#*=}
7243
 
}
7244
 
 
7245
 
# func_lo2o object
7246
 
func_lo2o ()
7247
 
{
7248
 
  case ${1} in
7249
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7250
 
    *)    func_lo2o_result=${1} ;;
7251
 
  esac
7252
 
}
7253
 
 
7254
 
# func_xform libobj-or-source
7255
 
func_xform ()
7256
 
{
7257
 
  func_xform_result=${1%.*}.lo
7258
 
}
7259
 
 
7260
 
# func_arith arithmetic-term...
7261
 
func_arith ()
7262
 
{
7263
 
  func_arith_result=$(( $[*] ))
7264
 
}
7265
 
 
7266
 
# func_len string
7267
 
# STRING may not start with a hyphen.
7268
 
func_len ()
7269
 
{
7270
 
  func_len_result=${#1}
7271
 
}
7272
 
 
7273
 
_LT_EOF
7274
 
    ;;
7275
 
  *) # Bourne compatible functions.
7276
 
    cat << \_LT_EOF >> "$cfgfile"
7277
 
 
7278
 
# func_dirname file append nondir_replacement
7279
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7280
 
# otherwise set result to NONDIR_REPLACEMENT.
7281
 
func_dirname ()
7282
 
{
7283
 
  # Extract subdirectory from the argument.
7284
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7285
 
  if test "X$func_dirname_result" = "X${1}"; then
7286
 
    func_dirname_result="${3}"
7287
 
  else
7288
 
    func_dirname_result="$func_dirname_result${2}"
7289
 
  fi
7290
 
}
7291
 
 
7292
 
# func_basename file
7293
 
func_basename ()
7294
 
{
7295
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7296
 
}
7297
 
 
7298
 
dnl func_dirname_and_basename
7299
 
dnl A portable version of this function is already defined in general.m4sh
7300
 
dnl so there is no need for it here.
7301
 
 
7302
 
# func_stripname prefix suffix name
7303
 
# strip PREFIX and SUFFIX off of NAME.
7304
 
# PREFIX and SUFFIX must not contain globbing or regex special
7305
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7306
 
# dot (in which case that matches only a dot).
7307
 
# func_strip_suffix prefix name
7308
 
func_stripname ()
7309
 
{
7310
 
  case ${2} in
7311
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7312
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7313
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7314
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7315
 
  esac
7316
 
}
7317
 
 
7318
 
# sed scripts:
7319
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7320
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7321
 
 
7322
 
# func_opt_split
7323
 
func_opt_split ()
7324
 
{
7325
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7326
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7327
 
}
7328
 
 
7329
 
# func_lo2o object
7330
 
func_lo2o ()
7331
 
{
7332
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7333
 
}
7334
 
 
7335
 
# func_xform libobj-or-source
7336
 
func_xform ()
7337
 
{
7338
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7339
 
}
7340
 
 
7341
 
# func_arith arithmetic-term...
7342
 
func_arith ()
7343
 
{
7344
 
  func_arith_result=`expr "$[@]"`
7345
 
}
7346
 
 
7347
 
# func_len string
7348
 
# STRING may not start with a hyphen.
7349
 
func_len ()
7350
 
{
7351
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7352
 
}
7353
 
 
7354
 
_LT_EOF
7355
 
esac
7356
 
 
7357
 
case $lt_shell_append in
7358
 
  yes)
7359
 
    cat << \_LT_EOF >> "$cfgfile"
7360
 
 
7361
 
# func_append var value
7362
 
# Append VALUE to the end of shell variable VAR.
7363
 
func_append ()
7364
 
{
7365
 
  eval "$[1]+=\$[2]"
7366
 
}
7367
 
_LT_EOF
7368
 
    ;;
7369
 
  *)
7370
 
    cat << \_LT_EOF >> "$cfgfile"
7371
 
 
7372
 
# func_append var value
7373
 
# Append VALUE to the end of shell variable VAR.
7374
 
func_append ()
7375
 
{
7376
 
  eval "$[1]=\$$[1]\$[2]"
7377
 
}
7378
 
 
7379
 
_LT_EOF
7380
 
    ;;
7381
 
  esac
7382
 
])
 
7698
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7699
# ------------------------------------------------------
 
7700
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7701
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7702
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7703
[dnl {
 
7704
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7705
$1 ()\
 
7706
{\
 
7707
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7708
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7709
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7710
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7711
test 0 -eq $? || _lt_function_replace_fail=:
 
7712
])
 
7713
 
 
7714
 
 
7715
# _LT_PROG_REPLACE_SHELLFNS
 
7716
# -------------------------
 
7717
# Replace existing portable implementations of several shell functions with
 
7718
# equivalent extended shell implementations where those features are available..
 
7719
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7720
[if test x"$xsi_shell" = xyes; then
 
7721
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7722
    case ${1} in
 
7723
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7724
      *  ) func_dirname_result="${3}" ;;
 
7725
    esac])
 
7726
 
 
7727
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7728
    func_basename_result="${1##*/}"])
 
7729
 
 
7730
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7731
    case ${1} in
 
7732
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7733
      *  ) func_dirname_result="${3}" ;;
 
7734
    esac
 
7735
    func_basename_result="${1##*/}"])
 
7736
 
 
7737
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7738
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7739
    # positional parameters, so assign one to ordinary parameter first.
 
7740
    func_stripname_result=${3}
 
7741
    func_stripname_result=${func_stripname_result#"${1}"}
 
7742
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7743
 
 
7744
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
7745
    func_split_long_opt_name=${1%%=*}
 
7746
    func_split_long_opt_arg=${1#*=}])
 
7747
 
 
7748
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
7749
    func_split_short_opt_arg=${1#??}
 
7750
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
7751
 
 
7752
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
7753
    case ${1} in
 
7754
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7755
      *)    func_lo2o_result=${1} ;;
 
7756
    esac])
 
7757
 
 
7758
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
7759
 
 
7760
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
7761
 
 
7762
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
7763
fi
 
7764
 
 
7765
if test x"$lt_shell_append" = xyes; then
 
7766
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
7767
 
 
7768
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
7769
    func_quote_for_eval "${2}"
 
7770
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
7771
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
7772
 
 
7773
  # Save a `func_append' function call where possible by direct use of '+='
 
7774
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
7775
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7776
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7777
  test 0 -eq $? || _lt_function_replace_fail=:
 
7778
else
 
7779
  # Save a `func_append' function call even when '+=' is not available
 
7780
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
7781
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7782
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7783
  test 0 -eq $? || _lt_function_replace_fail=:
 
7784
fi
 
7785
 
 
7786
if test x"$_lt_function_replace_fail" = x":"; then
 
7787
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
7788
fi
 
7789
])
 
7790
 
 
7791
# _LT_PATH_CONVERSION_FUNCTIONS
 
7792
# -----------------------------
 
7793
# Determine which file name conversion functions should be used by
 
7794
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
7795
# for certain cross-compile configurations and native mingw.
 
7796
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
7797
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7798
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
7799
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
7800
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
7801
[case $host in
 
7802
  *-*-mingw* )
 
7803
    case $build in
 
7804
      *-*-mingw* ) # actually msys
 
7805
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7806
        ;;
 
7807
      *-*-cygwin* )
 
7808
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7809
        ;;
 
7810
      * ) # otherwise, assume *nix
 
7811
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7812
        ;;
 
7813
    esac
 
7814
    ;;
 
7815
  *-*-cygwin* )
 
7816
    case $build in
 
7817
      *-*-mingw* ) # actually msys
 
7818
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7819
        ;;
 
7820
      *-*-cygwin* )
 
7821
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7822
        ;;
 
7823
      * ) # otherwise, assume *nix
 
7824
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7825
        ;;
 
7826
    esac
 
7827
    ;;
 
7828
  * ) # unhandled hosts (and "normal" native builds)
 
7829
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7830
    ;;
 
7831
esac
 
7832
])
 
7833
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7834
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
7835
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
7836
         [0], [convert $build file names to $host format])dnl
 
7837
 
 
7838
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
7839
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
7840
[#assume ordinary cross tools, or native build.
 
7841
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7842
case $host in
 
7843
  *-*-mingw* )
 
7844
    case $build in
 
7845
      *-*-mingw* ) # actually msys
 
7846
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7847
        ;;
 
7848
    esac
 
7849
    ;;
 
7850
esac
 
7851
])
 
7852
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7853
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
7854
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
7855
         [0], [convert $build files to toolchain format])dnl
 
7856
])# _LT_PATH_CONVERSION_FUNCTIONS
7383
7857
 
7384
7858
# Helper functions for option handling.                    -*- Autoconf -*-
7385
7859
#
7386
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7860
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
7861
#   Inc.
7387
7862
#   Written by Gary V. Vaughan, 2004
7388
7863
#
7389
7864
# This file is free software; the Free Software Foundation gives
7390
7865
# unlimited permission to copy and/or distribute it, with or without
7391
7866
# modifications, as long as this notice is preserved.
7392
7867
 
7393
 
# serial 6 ltoptions.m4
 
7868
# serial 7 ltoptions.m4
7394
7869
 
7395
7870
# This is to help aclocal find these macros, as it can't see m4_define.
7396
7871
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7505
7980
[enable_win32_dll=yes
7506
7981
 
7507
7982
case $host in
7508
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7983
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7509
7984
  AC_CHECK_TOOL(AS, as, false)
7510
7985
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7511
7986
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7513
7988
esac
7514
7989
 
7515
7990
test -z "$AS" && AS=as
7516
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
7991
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7517
7992
 
7518
7993
test -z "$DLLTOOL" && DLLTOOL=dlltool
7519
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
7994
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7520
7995
 
7521
7996
test -z "$OBJDUMP" && OBJDUMP=objdump
7522
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
7997
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7523
7998
])# win32-dll
7524
7999
 
7525
8000
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7877
8352
# unlimited permission to copy and/or distribute it, with or without
7878
8353
# modifications, as long as this notice is preserved.
7879
8354
 
7880
 
# Generated from ltversion.in.
 
8355
# @configure_input@
7881
8356
 
7882
 
# serial 3017 ltversion.m4
 
8357
# serial 3293 ltversion.m4
7883
8358
# This file is part of GNU Libtool
7884
8359
 
7885
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7886
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
8360
m4_define([LT_PACKAGE_VERSION], [2.4])
 
8361
m4_define([LT_PACKAGE_REVISION], [1.3293])
7887
8362
 
7888
8363
AC_DEFUN([LTVERSION_VERSION],
7889
 
[macro_version='2.2.6b'
7890
 
macro_revision='1.3017'
 
8364
[macro_version='2.4'
 
8365
macro_revision='1.3293'
7891
8366
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7892
8367
_LT_DECL(, macro_revision, 0)
7893
8368
])
7894
8369
 
7895
8370
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7896
8371
#
7897
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8372
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7898
8373
#   Written by Scott James Remnant, 2004.
7899
8374
#
7900
8375
# This file is free software; the Free Software Foundation gives
7901
8376
# unlimited permission to copy and/or distribute it, with or without
7902
8377
# modifications, as long as this notice is preserved.
7903
8378
 
7904
 
# serial 4 lt~obsolete.m4
 
8379
# serial 5 lt~obsolete.m4
7905
8380
 
7906
8381
# These exist entirely to fool aclocal when bootstrapping libtool.
7907
8382
#
7971
8446
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7972
8447
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7973
8448
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7974
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7975
8449
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7976
8450
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7977
8451
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7984
8458
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7985
8459
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7986
8460
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8461
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8462
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8463
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8464
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8465
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8466
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8467
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
7987
8468
 
7988
8469
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7989
8470
#
8797
9278
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
8798
9279
  dnl supported. (2.0 was released on October 16, 2000).
8799
9280
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
8800
 
                    [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
 
9281
                    [python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 dnl
8801
9282
python2.1 python2.0])
8802
9283
 
8803
9284
  m4_if([$1],[],[