~ubuntu-branches/ubuntu/maverick/dbus/maverick-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-27 13:06:32 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20100927130632-bqs145trvchd2lmf
Tags: 1.4.0-0ubuntu1
* New upstream release
 - Fixes https://bugs.freedesktop.org/show_bug.cgi?id=17754 Race condition in protected_change_timeout
 - Requested by various upstream KDE developers http://lists.kde.org/?t=128514970000004&r=1&w=2

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.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
 
17
[m4_warning([this file was generated for autoconf 2.66.
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
200
208
_LT_CHECK_OBJDIR
201
209
 
202
210
m4_require([_LT_TAG_COMPILER])dnl
203
 
_LT_PROG_ECHO_BACKSLASH
204
211
 
205
212
case $host_os in
206
213
aix3*)
214
221
  ;;
215
222
esac
216
223
 
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
224
# Global variables:
235
225
ofile=libtool
236
226
can_build_shared=yes
271
261
])# _LT_SETUP
272
262
 
273
263
 
 
264
# _LT_PREPARE_SED_QUOTE_VARS
 
265
# --------------------------
 
266
# Define a few sed substitution that help us do robust quoting.
 
267
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
268
[# Backslashify metacharacters that are still active within
 
269
# double-quoted strings.
 
270
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
271
 
 
272
# Same as above, but do not quote variable references.
 
273
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
274
 
 
275
# Sed substitution to delay expansion of an escaped shell variable in a
 
276
# double_quote_subst'ed string.
 
277
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
278
 
 
279
# Sed substitution to delay expansion of an escaped single quote.
 
280
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
281
 
 
282
# Sed substitution to avoid accidental globbing in evaled expressions
 
283
no_glob_subst='s/\*/\\\*/g'
 
284
])
 
285
 
274
286
# _LT_PROG_LTMAIN
275
287
# ---------------
276
288
# Note that this code is called both from `configure', and `config.status'
423
435
# declaration there will have the same value as in `configure'.  VARNAME
424
436
# must have a single quote delimited value for this to work.
425
437
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
438
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
427
439
 
428
440
 
429
441
# _LT_CONFIG_STATUS_DECLARATIONS
433
445
# embedded single quotes properly.  In configure, this macro expands
434
446
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435
447
#
436
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
448
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
437
449
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
450
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
451
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
532
544
LTCFLAGS='$LTCFLAGS'
533
545
compiler='$compiler_DEFAULT'
534
546
 
 
547
# A function that is used when there is no print builtin or printf.
 
548
func_fallback_echo ()
 
549
{
 
550
  eval 'cat <<_LTECHO_EOF
 
551
\$[]1
 
552
_LTECHO_EOF'
 
553
}
 
554
 
535
555
# Quote evaled strings.
536
556
for var in lt_decl_all_varnames([[ \
537
557
]], lt_decl_quote_varnames); do
538
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
558
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
539
559
    *[[\\\\\\\`\\"\\\$]]*)
540
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
560
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541
561
      ;;
542
562
    *)
543
563
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
568
# Double-quote double-evaled strings.
549
569
for var in lt_decl_all_varnames([[ \
550
570
]], lt_decl_dquote_varnames); do
551
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
571
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
552
572
    *[[\\\\\\\`\\"\\\$]]*)
553
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
573
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554
574
      ;;
555
575
    *)
556
576
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
558
578
    esac
559
579
done
560
580
 
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
581
_LT_OUTPUT_LIBTOOL_INIT
569
582
])
570
583
 
 
584
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
585
# ------------------------------------
 
586
# Generate a child script FILE with all initialization necessary to
 
587
# reuse the environment learned by the parent script, and make the
 
588
# file executable.  If COMMENT is supplied, it is inserted after the
 
589
# `#!' sequence but before initialization text begins.  After this
 
590
# macro, additional text can be appended to FILE to form the body of
 
591
# the child script.  The macro ends with non-zero status if the
 
592
# file could not be fully written (such as if the disk is full).
 
593
m4_ifdef([AS_INIT_GENERATED],
 
594
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
595
[m4_defun([_LT_GENERATED_FILE_INIT],
 
596
[m4_require([AS_PREPARE])]dnl
 
597
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
598
[lt_write_fail=0
 
599
cat >$1 <<_ASEOF || lt_write_fail=1
 
600
#! $SHELL
 
601
# Generated by $as_me.
 
602
$2
 
603
SHELL=\${CONFIG_SHELL-$SHELL}
 
604
export SHELL
 
605
_ASEOF
 
606
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
607
AS_SHELL_SANITIZE
 
608
_AS_PREPARE
 
609
exec AS_MESSAGE_FD>&1
 
610
_ASEOF
 
611
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
612
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
571
613
 
572
614
# LT_OUTPUT
573
615
# ---------
577
619
AC_DEFUN([LT_OUTPUT],
578
620
[: ${CONFIG_LT=./config.lt}
579
621
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.
 
622
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
623
[# Run this file to recreate a libtool stub with the current configuration.])
584
624
 
 
625
cat >>"$CONFIG_LT" <<\_LTEOF
585
626
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
627
exec AS_MESSAGE_LOG_FD>>config.log
595
628
{
596
629
  echo
616
649
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
650
configured by $[0], generated by m4_PACKAGE_STRING.
618
651
 
619
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
652
Copyright (C) 2010 Free Software Foundation, Inc.
620
653
This config.lt script is free software; the Free Software Foundation
621
654
gives unlimited permision to copy, distribute and modify it."
622
655
 
661
694
# appending to config.log, which fails on DOS, as config.log is still kept
662
695
# open by configure.  Here we exec the FD to /dev/null, effectively closing
663
696
# 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
 
697
lt_cl_success=:
 
698
test "$silent" = yes &&
 
699
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
700
exec AS_MESSAGE_LOG_FD>/dev/null
 
701
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
702
exec AS_MESSAGE_LOG_FD>>config.log
 
703
$lt_cl_success || AS_EXIT(1)
673
704
])# LT_OUTPUT
674
705
 
675
706
 
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}"
1056
1118
# _LT_SHELL_INIT(ARG)
1057
1119
# -------------------
1058
1120
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
 
1121
[m4_divert_text([M4SH-INIT], [$1
 
1122
])])# _LT_SHELL_INIT
 
1123
 
1065
1124
 
1066
1125
 
1067
1126
# _LT_PROG_ECHO_BACKSLASH
1068
1127
# -----------------------
1069
 
# Add some code to the start of the generated configure script which
1070
 
# will find an echo command which doesn't interpret backslashes.
 
1128
# Find how we can fake an echo command that does not interpret backslash.
 
1129
# In particular, with Autoconf 2.60 or later we add some code to the start
 
1130
# of the generated configure script which will find a shell with a builtin
 
1131
# printf (which we can use as an echo command).
1071
1132
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
 
  ;;
 
1133
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1134
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1135
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1136
 
 
1137
AC_MSG_CHECKING([how to print strings])
 
1138
# Test print first, because it will be a builtin if present.
 
1139
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1140
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1141
  ECHO='print -r --'
 
1142
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
1143
  ECHO='printf %s\n'
 
1144
else
 
1145
  # Use this function as a fallback that always works.
 
1146
  func_fallback_echo ()
 
1147
  {
 
1148
    eval 'cat <<_LTECHO_EOF
 
1149
$[]1
 
1150
_LTECHO_EOF'
 
1151
  }
 
1152
  ECHO='func_fallback_echo'
 
1153
fi
 
1154
 
 
1155
# func_echo_all arg...
 
1156
# Invoke $ECHO with all args, space-separated.
 
1157
func_echo_all ()
 
1158
{
 
1159
    $ECHO "$*" 
 
1160
}
 
1161
 
 
1162
case "$ECHO" in
 
1163
  printf*) AC_MSG_RESULT([printf]) ;;
 
1164
  print*) AC_MSG_RESULT([print -r]) ;;
 
1165
  *) AC_MSG_RESULT([cat]) ;;
1081
1166
esac
1082
1167
 
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
 
])
 
1168
m4_ifdef([_AS_DETECT_SUGGESTED],
 
1169
[_AS_DETECT_SUGGESTED([
 
1170
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
1171
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
1172
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
1173
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
1174
    PATH=/empty FPATH=/empty; export PATH FPATH
 
1175
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
1176
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
1177
 
1220
1178
_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])
 
1179
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1180
])# _LT_PROG_ECHO_BACKSLASH
1224
1181
 
1225
1182
 
1251
1208
  ;;
1252
1209
*-*-irix6*)
1253
1210
  # Find out which ABI we are using.
1254
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1211
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1255
1212
  if AC_TRY_EVAL(ac_compile); then
1256
1213
    if test "$lt_cv_prog_gnu_ld" = yes; then
1257
1214
      case `/usr/bin/file conftest.$ac_objext` in
1403
1360
  esac
1404
1361
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1405
1362
fi
 
1363
 
 
1364
case $host_os in
 
1365
  darwin*)
 
1366
    lock_old_archive_extraction=yes ;;
 
1367
  *)
 
1368
    lock_old_archive_extraction=no ;;
 
1369
esac
1406
1370
_LT_DECL([], [old_postinstall_cmds], [2])
1407
1371
_LT_DECL([], [old_postuninstall_cmds], [2])
1408
1372
_LT_TAGDECL([], [old_archive_cmds], [2],
1409
1373
    [Commands used to build an old-style archive])
 
1374
_LT_DECL([], [lock_old_archive_extraction], [0],
 
1375
    [Whether to use a lock for old archive extraction])
1410
1376
])# _LT_CMD_OLD_ARCHIVE
1411
1377
 
1412
1378
 
1431
1397
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1432
1398
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1433
1399
   -e 's:$: $lt_compiler_flag:'`
1434
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1400
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1435
1401
   (eval "$lt_compile" 2>conftest.err)
1436
1402
   ac_status=$?
1437
1403
   cat conftest.err >&AS_MESSAGE_LOG_FD
1438
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1404
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1439
1405
   if (exit $ac_status) && test -s "$ac_outfile"; then
1440
1406
     # The compiler can only warn and ignore the option if not recognized
1441
1407
     # So say no if there are warnings other than the usual output.
1442
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1408
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1443
1409
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444
1410
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445
1411
       $2=yes
1479
1445
     if test -s conftest.err; then
1480
1446
       # Append any errors to the config.log.
1481
1447
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1448
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1483
1449
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484
1450
       if diff conftest.exp conftest.er2 >/dev/null; then
1485
1451
         $2=yes
1542
1508
    lt_cv_sys_max_cmd_len=8192;
1543
1509
    ;;
1544
1510
 
 
1511
  mint*)
 
1512
    # On MiNT this can take a long time and run out of memory.
 
1513
    lt_cv_sys_max_cmd_len=8192;
 
1514
    ;;
 
1515
 
1545
1516
  amigaos*)
1546
1517
    # On AmigaOS with pdksh, this test takes hours, literally.
1547
1518
    # So we just punt and use a minimum line length of 8192.
1606
1577
      # If test is not a shell built-in, we'll probably end up computing a
1607
1578
      # maximum length that is only half of the actual maximum length, but
1608
1579
      # 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 &&
 
1580
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
1581
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1611
1582
              test $i != 17 # 1/2 MB should be enough
1612
1583
      do
1613
1584
        i=`expr $i + 1`
1658
1629
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659
1630
  lt_status=$lt_dlunknown
1660
1631
  cat > conftest.$ac_ext <<_LT_EOF
1661
 
[#line __oline__ "configure"
 
1632
[#line $LINENO "configure"
1662
1633
#include "confdefs.h"
1663
1634
 
1664
1635
#if HAVE_DLFCN_H
1699
1670
#  endif
1700
1671
#endif
1701
1672
 
1702
 
void fnord() { int i=42;}
 
1673
/* When -fvisbility=hidden is used, assume the code has been annotated
 
1674
   correspondingly for the symbols needed.  */
 
1675
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
1676
void fnord () __attribute__((visibility("default")));
 
1677
#endif
 
1678
 
 
1679
void fnord () { int i=42; }
1703
1680
int main ()
1704
1681
{
1705
1682
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1708
1685
  if (self)
1709
1686
    {
1710
1687
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1711
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
1688
      else
 
1689
        {
 
1690
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
1691
          else puts (dlerror ());
 
1692
        }
1712
1693
      /* dlclose (self); */
1713
1694
    }
1714
1695
  else
1884
1865
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1885
1866
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1886
1867
   -e 's:$: $lt_compiler_flag:'`
1887
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1868
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1888
1869
   (eval "$lt_compile" 2>out/conftest.err)
1889
1870
   ac_status=$?
1890
1871
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1891
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1872
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1892
1873
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1893
1874
   then
1894
1875
     # The compiler can only warn and ignore the option if not recognized
1895
1876
     # So say no if there are warnings
1896
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1877
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1897
1878
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898
1879
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899
1880
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2052
2033
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053
2034
m4_require([_LT_DECL_OBJDUMP])dnl
2054
2035
m4_require([_LT_DECL_SED])dnl
 
2036
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2055
2037
AC_MSG_CHECKING([dynamic linker characteristics])
2056
2038
m4_if([$1],
2057
2039
        [], [
2060
2042
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
2043
    *) lt_awk_arg="/^libraries:/" ;;
2062
2044
  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
 
2045
  case $host_os in
 
2046
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
2047
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2048
  esac
 
2049
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
2050
  case $lt_search_path_spec in
 
2051
  *\;*)
2065
2052
    # if the path contains ";" then we assume it to be the separator
2066
2053
    # otherwise default to the standard path separator (i.e. ":") - it is
2067
2054
    # assumed that no part of a normal pathname contains ";" but that should
2068
2055
    # 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
 
2056
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
2057
    ;;
 
2058
  *)
 
2059
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
2060
    ;;
 
2061
  esac
2073
2062
  # Ok, now we have the path, separated by spaces, we can step through it
2074
2063
  # and add multilib dir if necessary.
2075
2064
  lt_tmp_lt_search_path_spec=
2082
2071
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083
2072
    fi
2084
2073
  done
2085
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2074
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2086
2075
BEGIN {RS=" "; FS="/|\n";} {
2087
2076
  lt_foo="";
2088
2077
  lt_count=0;
2102
2091
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103
2092
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104
2093
}'`
2105
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2094
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
2095
  # for these hosts.
 
2096
  case $host_os in
 
2097
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
2098
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2099
  esac
 
2100
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2106
2101
else
2107
2102
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
2103
fi])
2190
2185
  m68k)
2191
2186
    library_names_spec='$libname.ixlibrary $libname.a'
2192
2187
    # 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'
 
2188
    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
2189
    ;;
2195
2190
  esac
2196
2191
  ;;
2243
2238
    cygwin*)
2244
2239
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2240
      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"
 
2241
m4_if([$1], [],[
 
2242
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2247
2243
      ;;
2248
2244
    mingw* | cegcc*)
2249
2245
      # MinGW DLLs use traditional 'lib' prefix
2250
2246
      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
2247
      ;;
2264
2248
    pw32*)
2265
2249
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2359
2343
  hardcode_into_libs=yes
2360
2344
  ;;
2361
2345
 
 
2346
haiku*)
 
2347
  version_type=linux
 
2348
  need_lib_prefix=no
 
2349
  need_version=no
 
2350
  dynamic_linker="$host_os runtime_loader"
 
2351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2352
  soname_spec='${libname}${release}${shared_ext}$major'
 
2353
  shlibpath_var=LIBRARY_PATH
 
2354
  shlibpath_overrides_runpath=yes
 
2355
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
2356
  hardcode_into_libs=yes
 
2357
  ;;
 
2358
 
2362
2359
hpux9* | hpux10* | hpux11*)
2363
2360
  # Give a soname corresponding to the major version so that dld.sl refuses to
2364
2361
  # link against other versions.
2401
2398
    soname_spec='${libname}${release}${shared_ext}$major'
2402
2399
    ;;
2403
2400
  esac
2404
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2401
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405
2402
  postinstall_cmds='chmod 555 $lib'
 
2403
  # or fails outright, so override atomically:
 
2404
  install_override_mode=555
2406
2405
  ;;
2407
2406
 
2408
2407
interix[[3-9]]*)
2460
2459
  ;;
2461
2460
 
2462
2461
# This must be Linux ELF.
2463
 
linux* | k*bsd*-gnu)
 
2462
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2464
2463
  version_type=linux
2465
2464
  need_lib_prefix=no
2466
2465
  need_version=no
2469
2468
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
2469
  shlibpath_var=LD_LIBRARY_PATH
2471
2470
  shlibpath_overrides_runpath=no
 
2471
 
2472
2472
  # 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
 
2473
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
2474
    [lt_cv_shlibpath_overrides_runpath=no
 
2475
    save_LDFLAGS=$LDFLAGS
 
2476
    save_libdir=$libdir
 
2477
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2478
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2479
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2480
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2481
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
2482
    LDFLAGS=$save_LDFLAGS
 
2483
    libdir=$save_libdir
 
2484
    ])
 
2485
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2482
2486
 
2483
2487
  # This implies no fast_install, which is unacceptable.
2484
2488
  # Some rework will be needed to allow for fast_install
2490
2494
 
2491
2495
  # Append ld.so.conf contents to the search path
2492
2496
  if test -f /etc/ld.so.conf; then
2493
 
    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' ' '`
 
2497
    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' ' '`
2494
2498
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
2499
 
2495
2500
  fi
2496
2501
 
2497
2502
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2723
2728
    The last name is the one that the linker finds with -lNAME]])
2724
2729
_LT_DECL([], [soname_spec], [1],
2725
2730
    [[The coded name of the library, if different from the real name]])
 
2731
_LT_DECL([], [install_override_mode], [1],
 
2732
    [Permission mode override for installation of shared libraries])
2726
2733
_LT_DECL([], [postinstall_cmds], [2],
2727
2734
    [Command to use after installation of a shared archive])
2728
2735
_LT_DECL([], [postuninstall_cmds], [2],
2835
2842
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2836
2843
m4_require([_LT_DECL_SED])dnl
2837
2844
m4_require([_LT_DECL_EGREP])dnl
 
2845
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2838
2846
 
2839
2847
AC_ARG_WITH([gnu-ld],
2840
2848
    [AS_HELP_STRING([--with-gnu-ld],
2964
2972
    fi
2965
2973
    ;;
2966
2974
esac
2967
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2968
 
_LT_DECL([], [reload_cmds], [2])dnl
 
2975
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
2976
_LT_TAGDECL([], [reload_cmds], [2])dnl
2969
2977
])# _LT_CMD_RELOAD
2970
2978
 
2971
2979
 
3017
3025
  # Base MSYS/MinGW do not provide the 'file' command needed by
3018
3026
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3019
3027
  # unless we find 'file', for example because we are cross-compiling.
3020
 
  if ( file / ) >/dev/null 2>&1; then
 
3028
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
3029
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3021
3030
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3022
3031
    lt_cv_file_magic_cmd='func_win32_libid'
3023
3032
  else
3024
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3033
    # Keep this pattern in sync with the one in func_win32_libid.
 
3034
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3025
3035
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3026
3036
  fi
3027
3037
  ;;
3028
3038
 
3029
 
cegcc)
 
3039
cegcc*)
3030
3040
  # use the weaker test based on 'objdump'. See mingw*.
3031
3041
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3032
3042
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3056
3066
  lt_cv_deplibs_check_method=pass_all
3057
3067
  ;;
3058
3068
 
 
3069
haiku*)
 
3070
  lt_cv_deplibs_check_method=pass_all
 
3071
  ;;
 
3072
 
3059
3073
hpux10.20* | hpux11*)
3060
3074
  lt_cv_file_magic_cmd=/usr/bin/file
3061
3075
  case $host_cpu in
3064
3078
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3065
3079
    ;;
3066
3080
  hppa*64*)
3067
 
    [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]']
 
3081
    [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]']
3068
3082
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3069
3083
    ;;
3070
3084
  *)
3071
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3085
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3072
3086
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3073
3087
    ;;
3074
3088
  esac
3090
3104
  ;;
3091
3105
 
3092
3106
# This must be Linux ELF.
3093
 
linux* | k*bsd*-gnu)
 
3107
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3094
3108
  lt_cv_deplibs_check_method=pass_all
3095
3109
  ;;
3096
3110
 
3232
3246
  NM="$lt_cv_path_NM"
3233
3247
else
3234
3248
  # Didn't find any BSD compatible name lister, look for dumpbin.
3235
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3249
  if test -n "$DUMPBIN"; then :
 
3250
    # Let the user override the test.
 
3251
  else
 
3252
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
3253
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
3254
    *COFF*)
 
3255
      DUMPBIN="$DUMPBIN -symbols"
 
3256
      ;;
 
3257
    *)
 
3258
      DUMPBIN=:
 
3259
      ;;
 
3260
    esac
 
3261
  fi
3236
3262
  AC_SUBST([DUMPBIN])
3237
3263
  if test "$DUMPBIN" != ":"; then
3238
3264
    NM="$DUMPBIN"
3245
3271
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3246
3272
  [lt_cv_nm_interface="BSD nm"
3247
3273
  echo "int some_variable = 0;" > conftest.$ac_ext
3248
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3274
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3249
3275
  (eval "$ac_compile" 2>conftest.err)
3250
3276
  cat conftest.err >&AS_MESSAGE_LOG_FD
3251
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3277
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3252
3278
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3253
3279
  cat conftest.err >&AS_MESSAGE_LOG_FD
3254
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3280
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3255
3281
  cat conftest.out >&AS_MESSAGE_LOG_FD
3256
3282
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3257
3283
    lt_cv_nm_interface="MS dumpbin"
3274
3300
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3275
3301
LIBM=
3276
3302
case $host in
3277
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3303
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3278
3304
  # These system don't have libm, or don't need it
3279
3305
  ;;
3280
3306
*-ncr-sysv4.3*)
3302
3328
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3303
3329
 
3304
3330
if test "$GCC" = yes; then
3305
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3331
  case $cc_basename in
 
3332
  nvcc*)
 
3333
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
3334
  *)
 
3335
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
3336
  esac
3306
3337
 
3307
3338
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3308
3339
    lt_cv_prog_compiler_rtti_exceptions,
3319
3350
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3320
3351
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3321
3352
AC_REQUIRE([AC_PROG_CC])dnl
 
3353
AC_REQUIRE([AC_PROG_AWK])dnl
3322
3354
AC_REQUIRE([LT_PATH_NM])dnl
3323
3355
AC_REQUIRE([LT_PATH_LD])dnl
3324
3356
m4_require([_LT_DECL_SED])dnl
3444
3476
  if AC_TRY_EVAL(ac_compile); then
3445
3477
    # Now try to grab the symbols.
3446
3478
    nlist=conftest.nm
3447
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
3479
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3448
3480
      # Try sorting and uniquifying the output.
3449
3481
      if sort "$nlist" | uniq > "$nlist"T; then
3450
3482
        mv -f "$nlist"T "$nlist"
3606
3638
      # DJGPP does not support shared libraries at all
3607
3639
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3608
3640
      ;;
 
3641
    haiku*)
 
3642
      # PIC is the default for Haiku.
 
3643
      # The "-static" flag exists, but is broken.
 
3644
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3645
      ;;
3609
3646
    interix[[3-9]]*)
3610
3647
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3611
3648
      # Instead, we relocate shared libraries at runtime.
3711
3748
            ;;
3712
3749
        esac
3713
3750
        ;;
3714
 
      linux* | k*bsd*-gnu)
 
3751
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3715
3752
        case $cc_basename in
3716
3753
          KCC*)
3717
3754
            # KAI C++ Compiler
3744
3781
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3745
3782
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3746
3783
            ;;
3747
 
          xlc* | xlC*)
3748
 
            # IBM XL 8.0 on PPC
 
3784
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
3785
            # IBM XL 8.0, 9.0 on PPC and BlueGene
3749
3786
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3750
3787
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3751
3788
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3807
3844
        ;;
3808
3845
      solaris*)
3809
3846
        case $cc_basename in
3810
 
          CC*)
 
3847
          CC* | sunCC*)
3811
3848
            # Sun C++ 4.2, 5.x and Centerline C++
3812
3849
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3813
3850
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3911
3948
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3912
3949
      ;;
3913
3950
 
 
3951
    haiku*)
 
3952
      # PIC is the default for Haiku.
 
3953
      # The "-static" flag exists, but is broken.
 
3954
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
3955
      ;;
 
3956
 
3914
3957
    hpux*)
3915
3958
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3916
3959
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3953
3996
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3954
3997
      ;;
3955
3998
    esac
 
3999
 
 
4000
    case $cc_basename in
 
4001
    nvcc*) # Cuda Compiler Driver 2.2
 
4002
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
4003
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
4004
      ;;
 
4005
    esac
3956
4006
  else
3957
4007
    # PORTME Check for flag to pass linker flags through the system compiler.
3958
4008
    case $host_os in
3995
4045
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3996
4046
      ;;
3997
4047
 
3998
 
    linux* | k*bsd*-gnu)
 
4048
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3999
4049
      case $cc_basename in
4000
4050
      # old Intel for x86_64 which still supported -KPIC.
4001
4051
      ecc*)
4016
4066
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4017
4067
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4018
4068
        ;;
4019
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
4069
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4020
4070
        # Portland Group compilers (*not* the Pentium gcc compiler,
4021
4071
        # which looks to be a dead project)
4022
4072
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028
4078
        # All Alpha code is PIC.
4029
4079
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4030
4080
        ;;
4031
 
      xl*)
4032
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4081
      xl* | bgxl* | bgf* | mpixl*)
 
4082
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4033
4083
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4034
4084
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4035
4085
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4036
4086
        ;;
4037
4087
      *)
4038
4088
        case `$CC -V 2>&1 | sed 5q` in
 
4089
        *Sun\ F* | *Sun*Fortran*)
 
4090
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
4091
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4092
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4093
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4094
          ;;
4039
4095
        *Sun\ C*)
4040
4096
          # Sun C 5.9
4041
4097
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
4098
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
4099
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4044
4100
          ;;
4045
 
        *Sun\ F*)
4046
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4047
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4048
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4049
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4050
 
          ;;
4051
4101
        esac
4052
4102
        ;;
4053
4103
      esac
4078
4128
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4079
4129
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080
4130
      case $cc_basename in
4081
 
      f77* | f90* | f95*)
 
4131
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4082
4132
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4083
4133
      *)
4084
4134
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4188
4238
  aix[[4-9]]*)
4189
4239
    # If we're using GNU nm, then we don't want the "-C" option.
4190
4240
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4241
    # Also, AIX nm treats weak defined symbols like other global defined
 
4242
    # symbols, whereas GNU nm marks them as "W".
4191
4243
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4192
 
      _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'
 
4244
      _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'
4193
4245
    else
4194
4246
      _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'
4195
4247
    fi
4267
4319
  esac
4268
4320
 
4269
4321
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
4322
 
 
4323
  # On some targets, GNU ld is compatible enough with the native linker
 
4324
  # that we're better off using the native interface for both.
 
4325
  lt_use_gnu_ld_interface=no
4270
4326
  if test "$with_gnu_ld" = yes; then
 
4327
    case $host_os in
 
4328
      aix*)
 
4329
        # The AIX port of GNU ld has always aspired to compatibility
 
4330
        # with the native linker.  However, as the warning in the GNU ld
 
4331
        # block says, versions before 2.19.5* couldn't really create working
 
4332
        # shared libraries, regardless of the interface used.
 
4333
        case `$LD -v 2>&1` in
 
4334
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
4335
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
4336
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
4337
          *)
 
4338
            lt_use_gnu_ld_interface=yes
 
4339
            ;;
 
4340
        esac
 
4341
        ;;
 
4342
      *)
 
4343
        lt_use_gnu_ld_interface=yes
 
4344
        ;;
 
4345
    esac
 
4346
  fi
 
4347
 
 
4348
  if test "$lt_use_gnu_ld_interface" = yes; then
4271
4349
    # If archive_cmds runs LD, not CC, wlarc should be empty
4272
4350
    wlarc='${wl}'
4273
4351
 
4285
4363
    fi
4286
4364
    supports_anon_versioning=no
4287
4365
    case `$LD -v 2>&1` in
 
4366
      *GNU\ gold*) supports_anon_versioning=yes ;;
4288
4367
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4289
4368
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4290
4369
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4300
4379
        _LT_TAGVAR(ld_shlibs, $1)=no
4301
4380
        cat <<_LT_EOF 1>&2
4302
4381
 
4303
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
4382
*** Warning: the GNU linker, at least up to release 2.19, is reported
4304
4383
*** to be unable to reliably create shared libraries on AIX.
4305
4384
*** Therefore, libtool is disabling shared libraries support.  If you
4306
 
*** really care for shared libraries, you may want to modify your PATH
4307
 
*** so that a non-GNU linker is found, and then restart.
 
4385
*** really care for shared libraries, you may want to install binutils
 
4386
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
4387
*** You will then need to restart the configuration process.
4308
4388
 
4309
4389
_LT_EOF
4310
4390
      fi
4340
4420
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4341
4421
      # as there is no search path for DLLs.
4342
4422
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4423
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4343
4424
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4344
4425
      _LT_TAGVAR(always_export_symbols, $1)=no
4345
4426
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4361
4442
      fi
4362
4443
      ;;
4363
4444
 
 
4445
    haiku*)
 
4446
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4447
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4448
      ;;
 
4449
 
4364
4450
    interix[[3-9]]*)
4365
4451
      _LT_TAGVAR(hardcode_direct, $1)=no
4366
4452
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4376
4462
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4377
4463
      ;;
4378
4464
 
4379
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4465
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4380
4466
      tmp_diet=no
4381
4467
      if test "$host_os" = linux-dietlibc; then
4382
4468
        case $cc_basename in
4390
4476
        tmp_sharedflag='-shared'
4391
4477
        case $cc_basename,$host_cpu in
4392
4478
        pgcc*)                          # Portland Group C compiler
4393
 
          _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'
 
4479
          _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'
4394
4480
          tmp_addflag=' $pic_flag'
4395
4481
          ;;
4396
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4397
 
          _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'
 
4482
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
4483
                                        # Portland Group f77 and f90 compilers
 
4484
          _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'
4398
4485
          tmp_addflag=' $pic_flag -Mnomain' ;;
4399
4486
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4400
4487
          tmp_addflag=' -i_dynamic' ;;
4405
4492
        lf95*)                          # Lahey Fortran 8.1
4406
4493
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4407
4494
          tmp_sharedflag='--shared' ;;
4408
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4495
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4409
4496
          tmp_sharedflag='-qmkshrobj'
4410
4497
          tmp_addflag= ;;
 
4498
        nvcc*)  # Cuda Compiler Driver 2.2
 
4499
          _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'
 
4500
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
4501
          ;;
4411
4502
        esac
4412
4503
        case `$CC -V 2>&1 | sed 5q` in
4413
4504
        *Sun\ C*)                       # Sun C 5.9
4414
 
          _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'
 
4505
          _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'
4415
4506
          _LT_TAGVAR(compiler_needs_object, $1)=yes
4416
4507
          tmp_sharedflag='-G' ;;
4417
4508
        *Sun\ F*)                       # Sun Fortran 8.3
4427
4518
        fi
4428
4519
 
4429
4520
        case $cc_basename in
4430
 
        xlf*)
 
4521
        xlf* | bgf* | bgxlf* | mpixlf*)
4431
4522
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4432
4523
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4433
4524
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4434
4525
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4435
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4526
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4436
4527
          if test "x$supports_anon_versioning" = xyes; then
4437
4528
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4438
4529
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4439
4530
              echo "local: *; };" >> $output_objdir/$libname.ver~
4440
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4531
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4441
4532
          fi
4442
4533
          ;;
4443
4534
        esac
4558
4649
      else
4559
4650
        # If we're using GNU nm, then we don't want the "-C" option.
4560
4651
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
4652
        # Also, AIX nm treats weak defined symbols like other global
 
4653
        # defined symbols, whereas GNU nm marks them as "W".
4561
4654
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562
 
          _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'
 
4655
          _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'
4563
4656
        else
4564
4657
          _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'
4565
4658
        fi
4648
4741
        # empty executable.
4649
4742
        _LT_SYS_MODULE_PATH_AIX
4650
4743
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4651
 
        _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"
 
4744
        _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"
4652
4745
      else
4653
4746
        if test "$host_cpu" = ia64; then
4654
4747
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4663
4756
          # -berok will link without error, but may produce a broken library.
4664
4757
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4665
4758
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4666
 
          # Exported symbols can be pulled into shared objects from archives
4667
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4759
          if test "$with_gnu_ld" = yes; then
 
4760
            # We only use this code for GNU lds that support --whole-archive.
 
4761
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4762
          else
 
4763
            # Exported symbols can be pulled into shared objects from archives
 
4764
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4765
          fi
4668
4766
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4669
4767
          # This is similar to how AIX traditionally builds its shared libraries.
4670
4768
          _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'
4703
4801
      # Tell ltmain to make .dll files, not .so files.
4704
4802
      shrext_cmds=".dll"
4705
4803
      # FIXME: Setting linknames here is a bad hack.
4706
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
4804
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4707
4805
      # The linker will automatically build a .lib file if we build a DLL.
4708
4806
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4709
4807
      # FIXME: Should let the user specify the lib program.
4770
4868
      ;;
4771
4869
 
4772
4870
    hpux10*)
4773
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
4871
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4774
4872
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4775
4873
      else
4776
4874
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4789
4887
      ;;
4790
4888
 
4791
4889
    hpux11*)
4792
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
4890
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4793
4891
        case $host_cpu in
4794
4892
        hppa*64*)
4795
4893
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4810
4908
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4811
4909
          ;;
4812
4910
        *)
4813
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4911
        m4_if($1, [], [
 
4912
          # Older versions of the 11.00 compiler do not understand -b yet
 
4913
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
4914
          _LT_LINKER_OPTION([if $CC understands -b],
 
4915
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
4916
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
4917
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
4918
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4814
4919
          ;;
4815
4920
        esac
4816
4921
      fi
4838
4943
 
4839
4944
    irix5* | irix6* | nonstopux*)
4840
4945
      if test "$GCC" = yes; then
4841
 
        _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'
 
4946
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
4842
4947
        # Try to use the -exported_symbol ld option, if it does not
4843
4948
        # work, assume that -exports_file does not work either and
4844
4949
        # implicitly export all symbols.
4845
4950
        save_LDFLAGS="$LDFLAGS"
4846
4951
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4847
4952
        AC_LINK_IFELSE(int foo(void) {},
4848
 
          _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'
 
4953
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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'
4849
4954
        )
4850
4955
        LDFLAGS="$save_LDFLAGS"
4851
4956
      else
4852
 
        _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'
4853
 
        _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'
 
4957
        _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'
 
4958
        _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'
4854
4959
      fi
4855
4960
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4856
4961
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4912
5017
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4913
5018
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4914
5019
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4915
 
      _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'
 
5020
      _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'
4916
5021
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4917
5022
      ;;
4918
5023
 
4919
5024
    osf3*)
4920
5025
      if test "$GCC" = yes; then
4921
5026
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4922
 
        _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'
 
5027
        _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'
4923
5028
      else
4924
5029
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4925
 
        _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'
 
5030
        _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'
4926
5031
      fi
4927
5032
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4928
5033
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4932
5037
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4933
5038
      if test "$GCC" = yes; then
4934
5039
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4935
 
        _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'
 
5040
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
4936
5041
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4937
5042
      else
4938
5043
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4939
 
        _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'
 
5044
        _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'
4940
5045
        _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~
4941
 
        $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'
 
5046
        $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'
4942
5047
 
4943
5048
        # Both c and cxx compiler support -rpath directly
4944
5049
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5129
5234
      # Test whether the compiler implicitly links with -lc since on some
5130
5235
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5131
5236
      # to ld, don't add -lc before -lgcc.
5132
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5133
 
      $RM conftest*
5134
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5237
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
5238
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
5239
        [$RM conftest*
 
5240
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5135
5241
 
5136
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5137
 
        soname=conftest
5138
 
        lib=conftest
5139
 
        libobjs=conftest.$ac_objext
5140
 
        deplibs=
5141
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5142
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5143
 
        compiler_flags=-v
5144
 
        linker_flags=-v
5145
 
        verstring=
5146
 
        output_objdir=.
5147
 
        libname=conftest
5148
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5149
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5150
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5151
 
        then
5152
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5153
 
        else
5154
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5155
 
        fi
5156
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5157
 
      else
5158
 
        cat conftest.err 1>&5
5159
 
      fi
5160
 
      $RM conftest*
5161
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
5242
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
5243
          soname=conftest
 
5244
          lib=conftest
 
5245
          libobjs=conftest.$ac_objext
 
5246
          deplibs=
 
5247
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5248
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
5249
          compiler_flags=-v
 
5250
          linker_flags=-v
 
5251
          verstring=
 
5252
          output_objdir=.
 
5253
          libname=conftest
 
5254
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5255
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
5256
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
5257
          then
 
5258
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5259
          else
 
5260
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5261
          fi
 
5262
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5263
        else
 
5264
          cat conftest.err 1>&5
 
5265
        fi
 
5266
        $RM conftest*
 
5267
        ])
 
5268
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5162
5269
      ;;
5163
5270
    esac
5164
5271
  fi
5324
5431
])# _LT_LANG_C_CONFIG
5325
5432
 
5326
5433
 
5327
 
# _LT_PROG_CXX
5328
 
# ------------
5329
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5330
 
# compiler, we have our own version here.
5331
 
m4_defun([_LT_PROG_CXX],
5332
 
[
5333
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5334
 
AC_PROG_CXX
 
5434
# _LT_LANG_CXX_CONFIG([TAG])
 
5435
# --------------------------
 
5436
# Ensure that the configuration variables for a C++ compiler are suitably
 
5437
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5438
# the compiler configuration to `libtool'.
 
5439
m4_defun([_LT_LANG_CXX_CONFIG],
 
5440
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5441
m4_require([_LT_DECL_EGREP])dnl
5335
5442
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5336
5443
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5337
5444
    (test "X$CXX" != "Xg++"))) ; then
5339
5446
else
5340
5447
  _lt_caught_CXX_error=yes
5341
5448
fi
5342
 
popdef([AC_MSG_ERROR])
5343
 
])# _LT_PROG_CXX
5344
 
 
5345
 
dnl aclocal-1.4 backwards compatibility:
5346
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5347
 
 
5348
 
 
5349
 
# _LT_LANG_CXX_CONFIG([TAG])
5350
 
# --------------------------
5351
 
# Ensure that the configuration variables for a C++ compiler are suitably
5352
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5353
 
# the compiler configuration to `libtool'.
5354
 
m4_defun([_LT_LANG_CXX_CONFIG],
5355
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5356
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5357
 
m4_require([_LT_DECL_EGREP])dnl
5358
5449
 
5359
5450
AC_LANG_PUSH(C++)
5360
5451
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5376
5467
_LT_TAGVAR(module_expsym_cmds, $1)=
5377
5468
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5378
5469
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5470
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
5471
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5379
5472
_LT_TAGVAR(no_undefined_flag, $1)=
5380
5473
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5381
5474
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5478
5571
      # Commands to make compiler produce verbose output that lists
5479
5572
      # what "hidden" libraries, object files and flags are used when
5480
5573
      # linking a shared library.
5481
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5574
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5482
5575
 
5483
5576
    else
5484
5577
      GXX=no
5590
5683
          _LT_SYS_MODULE_PATH_AIX
5591
5684
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5592
5685
 
5593
 
          _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"
 
5686
          _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"
5594
5687
        else
5595
5688
          if test "$host_cpu" = ia64; then
5596
5689
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5605
5698
            # -berok will link without error, but may produce a broken library.
5606
5699
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5607
5700
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5608
 
            # Exported symbols can be pulled into shared objects from archives
5609
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5701
            if test "$with_gnu_ld" = yes; then
 
5702
              # We only use this code for GNU lds that support --whole-archive.
 
5703
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5704
            else
 
5705
              # Exported symbols can be pulled into shared objects from archives
 
5706
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5707
            fi
5610
5708
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5611
5709
            # This is similar to how AIX traditionally builds its shared
5612
5710
            # libraries.
5639
5737
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5640
5738
        # as there is no search path for DLLs.
5641
5739
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5740
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5642
5741
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5643
5742
        _LT_TAGVAR(always_export_symbols, $1)=no
5644
5743
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5699
5798
      gnu*)
5700
5799
        ;;
5701
5800
 
 
5801
      haiku*)
 
5802
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5803
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5804
        ;;
 
5805
 
5702
5806
      hpux9*)
5703
5807
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5704
5808
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5723
5827
            # explicitly linking system object files so we need to strip them
5724
5828
            # from the output so that they don't get included in the library
5725
5829
            # dependencies.
5726
 
            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'
 
5830
            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"'
5727
5831
            ;;
5728
5832
          *)
5729
5833
            if test "$GXX" = yes; then
5788
5892
            # explicitly linking system object files so we need to strip them
5789
5893
            # from the output so that they don't get included in the library
5790
5894
            # dependencies.
5791
 
            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'
 
5895
            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"'
5792
5896
            ;;
5793
5897
          *)
5794
5898
            if test "$GXX" = yes; then
5831
5935
        case $cc_basename in
5832
5936
          CC*)
5833
5937
            # SGI C++
5834
 
            _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'
 
5938
            _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'
5835
5939
 
5836
5940
            # Archives containing C++ object files must be created using
5837
5941
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5842
5946
          *)
5843
5947
            if test "$GXX" = yes; then
5844
5948
              if test "$with_gnu_ld" = no; then
5845
 
                _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'
 
5949
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
5846
5950
              else
5847
 
                _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'
 
5951
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
5848
5952
              fi
5849
5953
            fi
5850
5954
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5855
5959
        _LT_TAGVAR(inherit_rpath, $1)=yes
5856
5960
        ;;
5857
5961
 
5858
 
      linux* | k*bsd*-gnu)
 
5962
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5859
5963
        case $cc_basename in
5860
5964
          KCC*)
5861
5965
            # Kuck and Associates, Inc. (KAI) C++ Compiler
5873
5977
            # explicitly linking system object files so we need to strip them
5874
5978
            # from the output so that they don't get included in the library
5875
5979
            # dependencies.
5876
 
            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'
 
5980
            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"'
5877
5981
 
5878
5982
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5879
5983
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5910
6014
          pgCC* | pgcpp*)
5911
6015
            # Portland Group C++ compiler
5912
6016
            case `$CC -V` in
5913
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6017
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5914
6018
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5915
6019
                rm -rf $tpldir~
5916
6020
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5917
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6021
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5918
6022
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5919
6023
                rm -rf $tpldir~
5920
6024
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5921
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6025
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5922
6026
                $RANLIB $oldlib'
5923
6027
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5924
6028
                rm -rf $tpldir~
5925
6029
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5926
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6030
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5927
6031
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5928
6032
                rm -rf $tpldir~
5929
6033
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5930
 
                $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'
 
6034
                $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'
5931
6035
              ;;
5932
 
            *) # Version 6 will use weak symbols
 
6036
            *) # Version 6 and above use weak symbols
5933
6037
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5934
6038
              _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'
5935
6039
              ;;
5937
6041
 
5938
6042
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5939
6043
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5940
 
            _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'
 
6044
            _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'
5941
6045
            ;;
5942
6046
          cxx*)
5943
6047
            # Compaq C++
5956
6060
            # explicitly linking system object files so we need to strip them
5957
6061
            # from the output so that they don't get included in the library
5958
6062
            # dependencies.
5959
 
            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'
 
6063
            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'
5960
6064
            ;;
5961
 
          xl*)
 
6065
          xl* | mpixl* | bgxl*)
5962
6066
            # IBM XL 8.0 on PPC, with GNU ld
5963
6067
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5964
6068
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5978
6082
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5979
6083
              _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'
5980
6084
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5981
 
              _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'
 
6085
              _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'
5982
6086
              _LT_TAGVAR(compiler_needs_object, $1)=yes
5983
6087
 
5984
6088
              # Not sure whether something based on
5985
6089
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5986
6090
              # would be better.
5987
 
              output_verbose_link_cmd='echo'
 
6091
              output_verbose_link_cmd='func_echo_all'
5988
6092
 
5989
6093
              # Archives containing C++ object files must be created using
5990
6094
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6053
6157
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6054
6158
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6055
6159
          fi
6056
 
          output_verbose_link_cmd=echo
 
6160
          output_verbose_link_cmd=func_echo_all
6057
6161
        else
6058
6162
          _LT_TAGVAR(ld_shlibs, $1)=no
6059
6163
        fi
6088
6192
            case $host in
6089
6193
              osf3*)
6090
6194
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6091
 
                _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'
 
6195
                _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'
6092
6196
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6093
6197
                ;;
6094
6198
              *)
6095
6199
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6096
 
                _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'
 
6200
                _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'
6097
6201
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6098
6202
                  echo "-hidden">> $lib.exp~
6099
 
                  $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~
 
6203
                  $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~
6100
6204
                  $RM $lib.exp'
6101
6205
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6102
6206
                ;;
6112
6216
            # explicitly linking system object files so we need to strip them
6113
6217
            # from the output so that they don't get included in the library
6114
6218
            # dependencies.
6115
 
            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'
 
6219
            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"'
6116
6220
            ;;
6117
6221
          *)
6118
6222
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6119
6223
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6120
6224
              case $host in
6121
6225
                osf3*)
6122
 
                  _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'
 
6226
                  _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'
6123
6227
                  ;;
6124
6228
                *)
6125
 
                  _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'
 
6229
                  _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6126
6230
                  ;;
6127
6231
              esac
6128
6232
 
6132
6236
              # Commands to make compiler produce verbose output that lists
6133
6237
              # what "hidden" libraries, object files and flags are used when
6134
6238
              # linking a shared library.
6135
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6239
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6136
6240
 
6137
6241
            else
6138
6242
              # FIXME: insert proper C++ library support
6168
6272
 
6169
6273
      solaris*)
6170
6274
        case $cc_basename in
6171
 
          CC*)
 
6275
          CC* | sunCC*)
6172
6276
            # Sun C++ 4.2, 5.x and Centerline C++
6173
6277
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6174
6278
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6189
6293
            esac
6190
6294
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6191
6295
 
6192
 
            output_verbose_link_cmd='echo'
 
6296
            output_verbose_link_cmd='func_echo_all'
6193
6297
 
6194
6298
            # Archives containing C++ object files must be created using
6195
6299
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6216
6320
                # Commands to make compiler produce verbose output that lists
6217
6321
                # what "hidden" libraries, object files and flags are used when
6218
6322
                # linking a shared library.
6219
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6323
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6220
6324
              else
6221
6325
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6222
6326
                # platform.
6227
6331
                # Commands to make compiler produce verbose output that lists
6228
6332
                # what "hidden" libraries, object files and flags are used when
6229
6333
                # linking a shared library.
6230
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6334
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6231
6335
              fi
6232
6336
 
6233
6337
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6281
6385
          CC*)
6282
6386
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6283
6387
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6388
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
6389
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
6390
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
6391
              '"$_LT_TAGVAR(reload_cmds, $1)"
6284
6392
            ;;
6285
6393
          *)
6286
6394
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6527
6635
 
6528
6636
solaris*)
6529
6637
  case $cc_basename in
6530
 
  CC*)
 
6638
  CC* | sunCC*)
6531
6639
    # The more standards-conforming stlport4 library is
6532
6640
    # incompatible with the Cstd library. Avoid specifying
6533
6641
    # it if it's in CXXFLAGS. Ignore libCrun as
6571
6679
])# _LT_SYS_HIDDEN_LIBDEPS
6572
6680
 
6573
6681
 
6574
 
# _LT_PROG_F77
6575
 
# ------------
6576
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6577
 
# if there is no fortran compiler, we have our own version here.
6578
 
m4_defun([_LT_PROG_F77],
6579
 
[
6580
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6581
 
AC_PROG_F77
6582
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6583
 
  _lt_disable_F77=yes
6584
 
fi
6585
 
popdef([AC_MSG_ERROR])
6586
 
])# _LT_PROG_F77
6587
 
 
6588
 
dnl aclocal-1.4 backwards compatibility:
6589
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6590
 
 
6591
 
 
6592
6682
# _LT_LANG_F77_CONFIG([TAG])
6593
6683
# --------------------------
6594
6684
# Ensure that the configuration variables for a Fortran 77 compiler are
6595
6685
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6596
6686
# to write the compiler configuration to `libtool'.
6597
6687
m4_defun([_LT_LANG_F77_CONFIG],
6598
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6599
 
AC_LANG_PUSH(Fortran 77)
 
6688
[AC_LANG_PUSH(Fortran 77)
 
6689
if test -z "$F77" || test "X$F77" = "Xno"; then
 
6690
  _lt_disable_F77=yes
 
6691
fi
6600
6692
 
6601
6693
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6602
6694
_LT_TAGVAR(allow_undefined_flag, $1)=
6615
6707
_LT_TAGVAR(module_expsym_cmds, $1)=
6616
6708
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6617
6709
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6710
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6711
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6618
6712
_LT_TAGVAR(no_undefined_flag, $1)=
6619
6713
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6620
6714
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6714
6808
])# _LT_LANG_F77_CONFIG
6715
6809
 
6716
6810
 
6717
 
# _LT_PROG_FC
6718
 
# -----------
6719
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6720
 
# if there is no fortran compiler, we have our own version here.
6721
 
m4_defun([_LT_PROG_FC],
6722
 
[
6723
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6724
 
AC_PROG_FC
6725
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6726
 
  _lt_disable_FC=yes
6727
 
fi
6728
 
popdef([AC_MSG_ERROR])
6729
 
])# _LT_PROG_FC
6730
 
 
6731
 
dnl aclocal-1.4 backwards compatibility:
6732
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6733
 
 
6734
 
 
6735
6811
# _LT_LANG_FC_CONFIG([TAG])
6736
6812
# -------------------------
6737
6813
# Ensure that the configuration variables for a Fortran compiler are
6738
6814
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6739
6815
# to write the compiler configuration to `libtool'.
6740
6816
m4_defun([_LT_LANG_FC_CONFIG],
6741
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6742
 
AC_LANG_PUSH(Fortran)
 
6817
[AC_LANG_PUSH(Fortran)
 
6818
 
 
6819
if test -z "$FC" || test "X$FC" = "Xno"; then
 
6820
  _lt_disable_FC=yes
 
6821
fi
6743
6822
 
6744
6823
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6745
6824
_LT_TAGVAR(allow_undefined_flag, $1)=
6758
6837
_LT_TAGVAR(module_expsym_cmds, $1)=
6759
6838
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6760
6839
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6840
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6841
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6761
6842
_LT_TAGVAR(no_undefined_flag, $1)=
6762
6843
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6763
6844
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6903
6984
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6904
6985
 
6905
6986
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6987
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
6988
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6906
6989
 
6907
6990
if test -n "$compiler"; then
6908
6991
  _LT_COMPILER_NO_RTTI($1)
7264
7347
func_dirname ()
7265
7348
{
7266
7349
  # Extract subdirectory from the argument.
7267
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7350
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7268
7351
  if test "X$func_dirname_result" = "X${1}"; then
7269
7352
    func_dirname_result="${3}"
7270
7353
  else
7275
7358
# func_basename file
7276
7359
func_basename ()
7277
7360
{
7278
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7361
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7279
7362
}
7280
7363
 
7281
7364
dnl func_dirname_and_basename
7291
7374
func_stripname ()
7292
7375
{
7293
7376
  case ${2} in
7294
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7295
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7296
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7297
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7377
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7378
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7298
7379
  esac
7299
7380
}
7300
7381
 
7305
7386
# func_opt_split
7306
7387
func_opt_split ()
7307
7388
{
7308
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7309
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7389
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
 
7390
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7310
7391
}
7311
7392
 
7312
7393
# func_lo2o object
7313
7394
func_lo2o ()
7314
7395
{
7315
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7396
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7316
7397
}
7317
7398
 
7318
7399
# func_xform libobj-or-source
7319
7400
func_xform ()
7320
7401
{
7321
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7402
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7322
7403
}
7323
7404
 
7324
7405
# func_arith arithmetic-term...
7366
7447
 
7367
7448
# Helper functions for option handling.                    -*- Autoconf -*-
7368
7449
#
7369
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7450
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
7451
#   Inc.
7370
7452
#   Written by Gary V. Vaughan, 2004
7371
7453
#
7372
7454
# This file is free software; the Free Software Foundation gives
7373
7455
# unlimited permission to copy and/or distribute it, with or without
7374
7456
# modifications, as long as this notice is preserved.
7375
7457
 
7376
 
# serial 6 ltoptions.m4
 
7458
# serial 7 ltoptions.m4
7377
7459
 
7378
7460
# This is to help aclocal find these macros, as it can't see m4_define.
7379
7461
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7488
7570
[enable_win32_dll=yes
7489
7571
 
7490
7572
case $host in
7491
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7573
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7492
7574
  AC_CHECK_TOOL(AS, as, false)
7493
7575
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7494
7576
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7496
7578
esac
7497
7579
 
7498
7580
test -z "$AS" && AS=as
7499
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
7581
_LT_DECL([], [AS],      [1], [Assembler program])dnl
7500
7582
 
7501
7583
test -z "$DLLTOOL" && DLLTOOL=dlltool
7502
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
7584
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
7503
7585
 
7504
7586
test -z "$OBJDUMP" && OBJDUMP=objdump
7505
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
7587
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7506
7588
])# win32-dll
7507
7589
 
7508
7590
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7862
7944
 
7863
7945
# Generated from ltversion.in.
7864
7946
 
7865
 
# serial 3017 ltversion.m4
 
7947
# serial 3175 ltversion.m4
7866
7948
# This file is part of GNU Libtool
7867
7949
 
7868
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7869
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
7950
m4_define([LT_PACKAGE_VERSION], [2.2.10])
 
7951
m4_define([LT_PACKAGE_REVISION], [1.3175])
7870
7952
 
7871
7953
AC_DEFUN([LTVERSION_VERSION],
7872
 
[macro_version='2.2.6b'
7873
 
macro_revision='1.3017'
 
7954
[macro_version='2.2.10'
 
7955
macro_revision='1.3175'
7874
7956
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7875
7957
_LT_DECL(, macro_revision, 0)
7876
7958
])
7877
7959
 
7878
7960
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7879
7961
#
7880
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
7962
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7881
7963
#   Written by Scott James Remnant, 2004.
7882
7964
#
7883
7965
# This file is free software; the Free Software Foundation gives
7884
7966
# unlimited permission to copy and/or distribute it, with or without
7885
7967
# modifications, as long as this notice is preserved.
7886
7968
 
7887
 
# serial 4 lt~obsolete.m4
 
7969
# serial 5 lt~obsolete.m4
7888
7970
 
7889
7971
# These exist entirely to fool aclocal when bootstrapping libtool.
7890
7972
#
7954
8036
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7955
8037
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7956
8038
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7957
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7958
8039
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7959
8040
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7960
8041
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7967
8048
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7968
8049
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7969
8050
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8051
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
8052
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
8053
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
8054
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
8055
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
8056
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
8057
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
7970
8058
 
7971
8059
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7972
8060
#