~ubuntu-branches/ubuntu/saucy/kde-i18n-fy/saucy

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-11-15 14:14:44 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071115141444-4457y26wcs03bepp
Tags: 4:3.5.8-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1689
1689
       KDE_USE_CLOSURE_TRUE="#"
1690
1690
       KDE_USE_CLOSURE_FALSE=""
1691
1691
       KDE_NO_UNDEFINED=""
 
1692
       case $host in 
 
1693
         *-*-linux-gnu)
 
1694
           KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined],
 
1695
                [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined],
 
1696
                [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"],
 
1697
                [KDE_NO_UNDEFINED=""])],
 
1698
            [KDE_NO_UNDEFINED=""])
 
1699
           ;;
 
1700
       esac
1692
1701
  fi
1693
1702
  AC_SUBST(KDE_USE_CLOSURE_TRUE)
1694
1703
  AC_SUBST(KDE_USE_CLOSURE_FALSE)
2135
2144
save_CXXFLAGS="$CXXFLAGS"
2136
2145
kde_safe_LIBS="$LIBS"
2137
2146
LIBS="$LIBS $X_EXTRA_LIBS"
 
2147
if test "$GXX" = "yes"; then
 
2148
CXXFLAGS="$CXXFLAGS -pedantic-errors"
 
2149
fi
2138
2150
AC_TRY_COMPILE([
2139
2151
$2
2140
2152
],
2619
2631
AC_TRY_LINK(dnl
2620
2632
[
2621
2633
#include<zlib.h>
 
2634
#include<string.h>
2622
2635
],
2623
2636
[
2624
2637
  char buf[42];
2626
2639
  /* this would segfault.. but we only link, don't run */
2627
2640
  (void) gzgets(f, buf, sizeof(buf));
2628
2641
 
2629
 
  return (zlibVersion() == ZLIB_VERSION); 
 
2642
  return (strcmp(zlibVersion(), ZLIB_VERSION) == 0);
2630
2643
],
2631
2644
            eval "ac_cv_lib_z='-lz'",
2632
2645
            eval "ac_cv_lib_z=no")
5959
5972
  fi
5960
5973
])
5961
5974
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5962
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
5975
## Copyright 1996, 1997, 1998, 1999, 2000, 2001
5963
5976
## Free Software Foundation, Inc.
5964
5977
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5965
5978
##
5966
 
## This file is free software; the Free Software Foundation gives
5967
 
## unlimited permission to copy and/or distribute it, with or without
5968
 
## modifications, as long as this notice is preserved.
 
5979
## This program is free software; you can redistribute it and/or modify
 
5980
## it under the terms of the GNU General Public License as published by
 
5981
## the Free Software Foundation; either version 2 of the License, or
 
5982
## (at your option) any later version.
 
5983
##
 
5984
## This program is distributed in the hope that it will be useful, but
 
5985
## WITHOUT ANY WARRANTY; without even the implied warranty of
 
5986
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
5987
## General Public License for more details.
 
5988
##
 
5989
## You should have received a copy of the GNU General Public License
 
5990
## along with this program; if not, write to the Free Software
 
5991
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
5992
##
 
5993
## As a special exception to the GNU General Public License, if you
 
5994
## distribute this file as part of a program that contains a
 
5995
## configuration script generated by Autoconf, you may include it under
 
5996
## the same distribution terms that you use for the rest of that program.
5969
5997
 
5970
 
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
 
5998
# serial 47 AC_PROG_LIBTOOL
5971
5999
 
5972
6000
 
5973
6001
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6027
6055
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6028
6056
 
6029
6057
# Always use our own libtool.
6030
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
6058
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
6031
6059
AC_SUBST(LIBTOOL)dnl
6032
6060
 
6033
6061
# Prevent multiple expansion
6077
6105
 
6078
6106
# Sed substitution that helps us do robust quoting.  It backslashifies
6079
6107
# metacharacters that are still active within double-quoted strings.
6080
 
Xsed='sed -e 1s/^X//'
 
6108
Xsed='sed -e s/^X//'
6081
6109
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
6082
6110
 
6083
6111
# Same as above, but do not quote variable references.
6097
6125
default_ofile=libtool
6098
6126
can_build_shared=yes
6099
6127
 
6100
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6128
# All known linkers require a `.a' archive for static linking (except M$VC,
6101
6129
# which needs '.lib').
6102
6130
libext=a
6103
6131
ltmain="$ac_aux_dir/ltmain.sh"
6117
6145
test -z "$AS" && AS=as
6118
6146
test -z "$CC" && CC=cc
6119
6147
test -z "$LTCC" && LTCC=$CC
6120
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6121
6148
test -z "$DLLTOOL" && DLLTOOL=dlltool
6122
6149
test -z "$LD" && LD=ld
6123
6150
test -z "$LN_S" && LN_S="ln -s"
6137
6164
if test -n "$RANLIB"; then
6138
6165
  case $host_os in
6139
6166
  openbsd*)
6140
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6167
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6141
6168
    ;;
6142
6169
  *)
6143
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6170
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6144
6171
    ;;
6145
6172
  esac
6146
6173
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6147
6174
fi
6148
6175
 
6149
 
_LT_CC_BASENAME([$compiler])
6150
 
 
6151
6176
# Only perform the check for file, if the check method requires it
6152
6177
case $deplibs_check_method in
6153
6178
file_magic*)
6188
6213
# If no C compiler was specified, use CC.
6189
6214
LTCC=${LTCC-"$CC"}
6190
6215
 
6191
 
# If no C compiler flags were specified, use CFLAGS.
6192
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6193
 
 
6194
6216
# Allow CC to be a program name with arguments.
6195
6217
compiler=$CC
6196
6218
])# _LT_AC_SYS_COMPILER
6197
6219
 
6198
6220
 
6199
 
# _LT_CC_BASENAME(CC)
6200
 
# -------------------
6201
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6202
 
AC_DEFUN([_LT_CC_BASENAME],
6203
 
[for cc_temp in $1""; do
6204
 
  case $cc_temp in
6205
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
6206
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
6207
 
    \-*) ;;
6208
 
    *) break;;
6209
 
  esac
6210
 
done
6211
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6212
 
])
6213
 
 
6214
 
 
6215
 
# _LT_COMPILER_BOILERPLATE
6216
 
# ------------------------
6217
 
# Check for compiler boilerplate output or warnings with
6218
 
# the simple compiler test code.
6219
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
6220
 
[ac_outfile=conftest.$ac_objext
6221
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6222
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6223
 
_lt_compiler_boilerplate=`cat conftest.err`
6224
 
$rm conftest*
6225
 
])# _LT_COMPILER_BOILERPLATE
6226
 
 
6227
 
 
6228
 
# _LT_LINKER_BOILERPLATE
6229
 
# ----------------------
6230
 
# Check for linker boilerplate output or warnings with
6231
 
# the simple link test code.
6232
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
6233
 
[ac_outfile=conftest.$ac_objext
6234
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6235
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6236
 
_lt_linker_boilerplate=`cat conftest.err`
6237
 
$rm conftest*
6238
 
])# _LT_LINKER_BOILERPLATE
6239
 
 
6240
 
 
6241
6221
# _LT_AC_SYS_LIBPATH_AIX
6242
6222
# ----------------------
6243
6223
# Links a minimal program and checks the executable
6310
6290
 
6311
6291
# The HP-UX ksh and POSIX shell print the target directory to stdout
6312
6292
# if CDPATH is set.
6313
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
6293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6314
6294
 
6315
6295
if test -z "$ECHO"; then
6316
6296
if test "X${echo_test_string+set}" != Xset; then
6317
6297
# find a string as large as possible, as long as the shell can cope with it
6318
6298
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
6319
6299
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
6320
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
6321
 
       echo_test_string=`eval $cmd` &&
 
6300
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
6301
       echo_test_string="`eval $cmd`" &&
6322
6302
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
6323
6303
    then
6324
6304
      break
6487
6467
  # Find out which ABI we are using.
6488
6468
  echo 'int i;' > conftest.$ac_ext
6489
6469
  if AC_TRY_EVAL(ac_compile); then
6490
 
    case `/usr/bin/file conftest.o` in
 
6470
    case "`/usr/bin/file conftest.o`" in
6491
6471
    *32-bit*)
 
6472
      LINUX_64_MODE="32"
6492
6473
      case $host in
6493
6474
        x86_64-*linux*)
6494
6475
          LD="${LD-ld} -m elf_i386"
6495
6476
          ;;
6496
 
        ppc64-*linux*|powerpc64-*linux*)
 
6477
        ppc64-*linux*)
6497
6478
          LD="${LD-ld} -m elf32ppclinux"
6498
6479
          ;;
6499
6480
        s390x-*linux*)
6505
6486
      esac
6506
6487
      ;;
6507
6488
    *64-bit*)
 
6489
      LINUX_64_MODE="64"
6508
6490
      case $host in
6509
6491
        x86_64-*linux*)
6510
6492
          LD="${LD-ld} -m elf_x86_64"
6538
6520
    CFLAGS="$SAVE_CFLAGS"
6539
6521
  fi
6540
6522
  ;;
6541
 
sparc*-*solaris*)
6542
 
  # Find out which ABI we are using.
6543
 
  echo 'int i;' > conftest.$ac_ext
6544
 
  if AC_TRY_EVAL(ac_compile); then
6545
 
    case `/usr/bin/file conftest.o` in
6546
 
    *64-bit*)
6547
 
      case $lt_cv_prog_gnu_ld in
6548
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6549
 
      *)    LD="${LD-ld} -64" ;;
6550
 
      esac
6551
 
      ;;
6552
 
    esac
6553
 
  fi
6554
 
  rm -rf conftest*
6555
 
  ;;
6556
 
 
6557
6523
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
6558
6524
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6559
6525
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
6585
6551
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6586
6552
   # The option is referenced via a variable to avoid confusing sed.
6587
6553
   lt_compile=`echo "$ac_compile" | $SED \
6588
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6554
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6589
6555
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
6590
6556
   -e 's:$: $lt_compiler_flag:'`
6591
6557
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
6595
6561
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
6596
6562
   if (exit $ac_status) && test -s "$ac_outfile"; then
6597
6563
     # The compiler can only warn and ignore the option if not recognized
6598
 
     # So say no if there are warnings other than the usual output.
6599
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6600
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6601
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6564
     # So say no if there are warnings
 
6565
     if test ! -s conftest.err; then
6602
6566
       $2=yes
6603
6567
     fi
6604
6568
   fi
6624
6588
   LDFLAGS="$LDFLAGS $3"
6625
6589
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6626
6590
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6627
 
     # The linker can only warn and ignore the option if not recognized
 
6591
     # The compiler can only warn and ignore the option if not recognized
6628
6592
     # So say no if there are warnings
6629
6593
     if test -s conftest.err; then
6630
6594
       # Append any errors to the config.log.
6631
6595
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
6632
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6633
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6634
 
       if diff conftest.exp conftest.er2 >/dev/null; then
6635
 
         $2=yes
6636
 
       fi
6637
6596
     else
6638
6597
       $2=yes
6639
6598
     fi
6657
6616
AC_MSG_CHECKING([the maximum length of command line arguments])
6658
6617
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
6659
6618
  i=0
6660
 
  teststring="ABCD"
 
6619
  testring="ABCD"
6661
6620
 
6662
6621
  case $build_os in
6663
6622
  msdosdjgpp*)
6686
6645
    lt_cv_sys_max_cmd_len=8192;
6687
6646
    ;;
6688
6647
 
6689
 
  amigaos*)
6690
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6691
 
    # So we just punt and use a minimum line length of 8192.
6692
 
    lt_cv_sys_max_cmd_len=8192;
6693
 
    ;;
6694
 
 
6695
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6696
 
    # This has been around since 386BSD, at least.  Likely further.
6697
 
    if test -x /sbin/sysctl; then
6698
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6699
 
    elif test -x /usr/sbin/sysctl; then
6700
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6701
 
    else
6702
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6703
 
    fi
6704
 
    # And add a safety zone
6705
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6706
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6707
 
    ;;
6708
 
 
6709
 
  interix*)
6710
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6711
 
    lt_cv_sys_max_cmd_len=196608
6712
 
    ;;
6713
 
 
6714
 
  osf*)
6715
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6716
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6717
 
    # nice to cause kernel panics so lets avoid the loop below.
6718
 
    # First set a reasonable default.
6719
 
    lt_cv_sys_max_cmd_len=16384
6720
 
    #
6721
 
    if test -x /sbin/sysconfig; then
6722
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6723
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6724
 
      esac
6725
 
    fi
6726
 
    ;;
6727
 
  sco3.2v5*)
6728
 
    lt_cv_sys_max_cmd_len=102400
6729
 
    ;;
6730
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6731
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6732
 
    if test -n "$kargmax"; then
6733
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
6734
 
    else
6735
 
      lt_cv_sys_max_cmd_len=32768
6736
 
    fi
6737
 
    ;;
6738
 
  *)
 
6648
 *)
6739
6649
    # If test is not a shell built-in, we'll probably end up computing a
6740
6650
    # maximum length that is only half of the actual maximum length, but
6741
6651
    # we can't tell.
6742
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6743
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
6744
 
               = "XX$teststring") >/dev/null 2>&1 &&
6745
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6652
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
 
6653
               = "XX$testring") >/dev/null 2>&1 &&
 
6654
            new_result=`expr "X$testring" : ".*" 2>&1` &&
6746
6655
            lt_cv_sys_max_cmd_len=$new_result &&
6747
6656
            test $i != 17 # 1/2 MB should be enough
6748
6657
    do
6749
6658
      i=`expr $i + 1`
6750
 
      teststring=$teststring$teststring
 
6659
      testring=$testring$testring
6751
6660
    done
6752
 
    teststring=
 
6661
    testring=
6753
6662
    # Add a significant safety factor because C++ compilers can tack on massive
6754
6663
    # amounts of additional arguments before passing them to the linker.
6755
6664
    # It appears as though 1/2 is a usable value.
6766
6675
 
6767
6676
 
6768
6677
# _LT_AC_CHECK_DLFCN
6769
 
# ------------------
 
6678
# --------------------
6770
6679
AC_DEFUN([_LT_AC_CHECK_DLFCN],
6771
6680
[AC_CHECK_HEADERS(dlfcn.h)dnl
6772
6681
])# _LT_AC_CHECK_DLFCN
6774
6683
 
6775
6684
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
6776
6685
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
6777
 
# ---------------------------------------------------------------------
 
6686
# ------------------------------------------------------------------
6778
6687
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
6779
6688
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
6780
6689
if test "$cross_compiling" = yes; then :
6840
6749
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6841
6750
      /* dlclose (self); */
6842
6751
    }
6843
 
  else
6844
 
    puts (dlerror ());
6845
6752
 
6846
6753
    exit (status);
6847
6754
}]
6848
6755
EOF
6849
6756
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
6850
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
6757
    (./conftest; exit; ) 2>/dev/null
6851
6758
    lt_status=$?
6852
6759
    case x$lt_status in
6853
6760
      x$lt_dlno_uscore) $1 ;;
6854
6761
      x$lt_dlneed_uscore) $2 ;;
6855
 
      x$lt_dlunknown|x*) $3 ;;
 
6762
      x$lt_unknown|x*) $3 ;;
6856
6763
    esac
6857
6764
  else :
6858
6765
    # compilation failed
6864
6771
 
6865
6772
 
6866
6773
# AC_LIBTOOL_DLOPEN_SELF
6867
 
# ----------------------
 
6774
# -------------------
6868
6775
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
6869
6776
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
6870
6777
if test "x$enable_dlopen" != xyes; then
6901
6808
    lt_cv_dlopen_self=yes
6902
6809
    ])
6903
6810
   ;;
6904
 
 
 
6811
    
6905
6812
  *)
6906
6813
    AC_CHECK_FUNC([shl_load],
6907
6814
          [lt_cv_dlopen="shl_load"],
6935
6842
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6936
6843
 
6937
6844
    save_LDFLAGS="$LDFLAGS"
6938
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
6845
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6939
6846
 
6940
6847
    save_LIBS="$LIBS"
6941
6848
    LIBS="$lt_cv_dlopen_libs $LIBS"
6948
6855
    ])
6949
6856
 
6950
6857
    if test "x$lt_cv_dlopen_self" = xyes; then
6951
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
6858
      LDFLAGS="$LDFLAGS $link_static_flag"
6952
6859
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
6953
6860
          lt_cv_dlopen_self_static, [dnl
6954
6861
          _LT_AC_TRY_DLOPEN_SELF(
6990
6897
   mkdir out
6991
6898
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6992
6899
 
 
6900
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
6901
   # that will create temporary files in the current directory regardless of
 
6902
   # the output directory.  Thus, making CWD read-only will cause this test
 
6903
   # to fail, enabling locking or at least warning the user not to do parallel
 
6904
   # builds.
 
6905
   chmod -w .
 
6906
 
6993
6907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
6994
6908
   # Insert the option either (1) after the last *FLAGS variable, or
6995
6909
   # (2) before a word containing "conftest.", or (3) at the end.
6996
6910
   # Note that $ac_compile itself does not contain backslashes and begins
6997
6911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6998
6912
   lt_compile=`echo "$ac_compile" | $SED \
6999
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6913
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7000
6914
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
7001
6915
   -e 's:$: $lt_compiler_flag:'`
7002
6916
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
7008
6922
   then
7009
6923
     # The compiler can only warn and ignore the option if not recognized
7010
6924
     # So say no if there are warnings
7011
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7012
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7013
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6925
     if test ! -s out/conftest.err; then
7014
6926
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7015
6927
     fi
7016
6928
   fi
7017
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
7018
 
   $rm conftest*
7019
 
   # SGI C++ compiler will create directory out/ii_files/ for
7020
 
   # template instantiation
7021
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7022
 
   $rm out/* && rmdir out
 
6929
   chmod u+w .
 
6930
   $rm conftest* out/*
 
6931
   rmdir out
7023
6932
   cd ..
7024
6933
   rmdir conftest
7025
6934
   $rm conftest*
7078
6987
[AC_MSG_CHECKING([how to hardcode library paths into programs])
7079
6988
_LT_AC_TAGVAR(hardcode_action, $1)=
7080
6989
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
7081
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
7082
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
6990
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
 
6991
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
7083
6992
 
7084
6993
  # We can hardcode non-existant directories.
7085
6994
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
7136
7045
   *)
7137
7046
  AC_MSG_RESULT([no])
7138
7047
    ;;
7139
 
  esac
 
7048
  esac  
7140
7049
fi
7141
7050
])# AC_LIBTOOL_SYS_LIB_STRIP
7142
7051
 
7149
7058
library_names_spec=
7150
7059
libname_spec='lib$name'
7151
7060
soname_spec=
7152
 
shrext_cmds=".so"
 
7061
shrext=".so"
7153
7062
postinstall_cmds=
7154
7063
postuninstall_cmds=
7155
7064
finish_cmds=
7159
7068
version_type=none
7160
7069
dynamic_linker="$host_os ld.so"
7161
7070
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7162
 
if test "$GCC" = yes; then
7163
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7164
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7165
 
    # if the path contains ";" then we assume it to be the separator
7166
 
    # otherwise default to the standard path separator (i.e. ":") - it is
7167
 
    # assumed that no part of a normal pathname contains ";" but that should
7168
 
    # okay in the real world where ";" in dirpaths is itself problematic.
7169
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7170
 
  else
7171
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7172
 
  fi
7173
 
else
7174
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7175
 
fi
 
7071
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7176
7072
need_lib_prefix=unknown
7177
7073
hardcode_into_libs=no
7178
7074
 
7237
7133
amigaos*)
7238
7134
  library_names_spec='$libname.ixlibrary $libname.a'
7239
7135
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7240
 
  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'
 
7136
  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'
7241
7137
  ;;
7242
7138
 
7243
7139
beos*)
7246
7142
  shlibpath_var=LIBRARY_PATH
7247
7143
  ;;
7248
7144
 
7249
 
bsdi[[45]]*)
 
7145
bsdi4*)
7250
7146
  version_type=linux
7251
7147
  need_version=no
7252
7148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7262
7158
 
7263
7159
cygwin* | mingw* | pw32*)
7264
7160
  version_type=windows
7265
 
  shrext_cmds=".dll"
 
7161
  shrext=".dll"
7266
7162
  need_version=no
7267
7163
  need_lib_prefix=no
7268
7164
 
7274
7170
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7275
7171
      dldir=$destdir/`dirname \$dlpath`~
7276
7172
      test -d \$dldir || mkdir -p \$dldir~
7277
 
      $install_prog $dir/$dlname \$dldir/$dlname~
7278
 
      chmod a+x \$dldir/$dlname'
 
7173
      $install_prog $dir/$dlname \$dldir/$dlname'
7279
7174
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7280
7175
      dlpath=$dir/\$dldll~
7281
7176
       $rm \$dlpath'
7305
7200
      ;;
7306
7201
    pw32*)
7307
7202
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7308
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
7203
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7309
7204
      ;;
7310
7205
    esac
7311
7206
    ;;
7328
7223
  soname_spec='${libname}${release}${major}$shared_ext'
7329
7224
  shlibpath_overrides_runpath=yes
7330
7225
  shlibpath_var=DYLD_LIBRARY_PATH
7331
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7226
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7332
7227
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7333
7228
  if test "$GCC" = yes; then
7334
7229
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7351
7246
  dynamic_linker=no
7352
7247
  ;;
7353
7248
 
7354
 
freebsd* | dragonfly*)
7355
 
  # DragonFly does not have aout.  When/if they implement a new
7356
 
  # versioning mechanism, adjust this.
7357
 
  if test -x /usr/bin/objformat; then
7358
 
    objformat=`/usr/bin/objformat`
7359
 
  else
7360
 
    case $host_os in
7361
 
    freebsd[[123]]*) objformat=aout ;;
7362
 
    *) objformat=elf ;;
7363
 
    esac
7364
 
  fi
 
7249
kfreebsd*-gnu*)
 
7250
  version_type=linux
 
7251
  need_lib_prefix=no
 
7252
  need_version=no
 
7253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7254
  soname_spec='${libname}${release}${shared_ext}$major'
 
7255
  shlibpath_var=LD_LIBRARY_PATH
 
7256
  shlibpath_overrides_runpath=no
 
7257
  hardcode_into_libs=yes
 
7258
  dynamic_linker='GNU ld.so'
 
7259
  ;;
 
7260
 
 
7261
freebsd*)
 
7262
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7365
7263
  version_type=freebsd-$objformat
7366
7264
  case $version_type in
7367
7265
    freebsd-elf*)
7379
7277
  freebsd2*)
7380
7278
    shlibpath_overrides_runpath=yes
7381
7279
    ;;
7382
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
7280
  freebsd3.[01]* | freebsdelf3.[01]*)
7383
7281
    shlibpath_overrides_runpath=yes
7384
7282
    hardcode_into_libs=yes
7385
7283
    ;;
7386
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
7387
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
7284
  *) # from 3.2 on
7388
7285
    shlibpath_overrides_runpath=no
7389
7286
    hardcode_into_libs=yes
7390
7287
    ;;
7391
 
  freebsd*) # from 4.6 on
7392
 
    shlibpath_overrides_runpath=yes
7393
 
    hardcode_into_libs=yes
7394
 
    ;;
7395
7288
  esac
7396
7289
  ;;
7397
7290
 
7411
7304
  version_type=sunos
7412
7305
  need_lib_prefix=no
7413
7306
  need_version=no
7414
 
  case $host_cpu in
 
7307
  case "$host_cpu" in
7415
7308
  ia64*)
7416
 
    shrext_cmds='.so'
 
7309
    shrext='.so'
7417
7310
    hardcode_into_libs=yes
7418
7311
    dynamic_linker="$host_os dld.so"
7419
7312
    shlibpath_var=LD_LIBRARY_PATH
7428
7321
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7429
7322
    ;;
7430
7323
   hppa*64*)
7431
 
     shrext_cmds='.sl'
 
7324
     shrext='.sl'
7432
7325
     hardcode_into_libs=yes
7433
7326
     dynamic_linker="$host_os dld.sl"
7434
7327
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7439
7332
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7440
7333
     ;;
7441
7334
   *)
7442
 
    shrext_cmds='.sl'
 
7335
    shrext='.sl'
7443
7336
    dynamic_linker="$host_os dld.sl"
7444
7337
    shlibpath_var=SHLIB_PATH
7445
7338
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7451
7344
  postinstall_cmds='chmod 555 $lib'
7452
7345
  ;;
7453
7346
 
7454
 
interix3*)
7455
 
  version_type=linux
7456
 
  need_lib_prefix=no
7457
 
  need_version=no
7458
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7459
 
  soname_spec='${libname}${release}${shared_ext}$major'
7460
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7461
 
  shlibpath_var=LD_LIBRARY_PATH
7462
 
  shlibpath_overrides_runpath=no
7463
 
  hardcode_into_libs=yes
7464
 
  ;;
7465
 
 
7466
7347
irix5* | irix6* | nonstopux*)
7467
7348
  case $host_os in
7468
7349
    nonstopux*) version_type=nonstopux ;;
7506
7387
  ;;
7507
7388
 
7508
7389
# This must be Linux ELF.
7509
 
linux* | k*bsd*-gnu)
 
7390
linux*)
7510
7391
  version_type=linux
7511
7392
  need_lib_prefix=no
7512
7393
  need_version=no
7513
7394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514
7395
  soname_spec='${libname}${release}${shared_ext}$major'
7515
7396
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7397
  libsuff=
 
7398
  if test "x$LINUX_64_MODE" = x64; then
 
7399
    # Some platforms are per default 64-bit, so there's no /lib64
 
7400
    if test -d /lib64 -a ! -h /lib64; then
 
7401
      libsuff=64
 
7402
    fi
 
7403
  fi
7516
7404
  shlibpath_var=LD_LIBRARY_PATH
7517
7405
  shlibpath_overrides_runpath=no
 
7406
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
7407
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7518
7408
  # This implies no fast_install, which is unacceptable.
7519
7409
  # Some rework will be needed to allow for fast_install
7520
7410
  # before this can be enabled.
7521
7411
  hardcode_into_libs=yes
7522
7412
 
7523
 
  # Append ld.so.conf contents to the search path
7524
 
  if test -f /etc/ld.so.conf; then
7525
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7526
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7527
 
  fi
7528
 
 
7529
7413
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7530
7414
  # powerpc, because MkLinux only supported shared libraries with the
7531
7415
  # GNU dynamic linker.  Since this was broken with cross compilers,
7535
7419
  dynamic_linker='GNU/Linux ld.so'
7536
7420
  ;;
7537
7421
 
7538
 
netbsdelf*-gnu)
7539
 
  version_type=linux
7540
 
  need_lib_prefix=no
7541
 
  need_version=no
7542
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7543
 
  soname_spec='${libname}${release}${shared_ext}$major'
7544
 
  shlibpath_var=LD_LIBRARY_PATH
7545
 
  shlibpath_overrides_runpath=no
7546
 
  hardcode_into_libs=yes
7547
 
  dynamic_linker='NetBSD ld.elf_so'
7548
 
  ;;
7549
 
 
7550
7422
netbsd*)
7551
7423
  version_type=sunos
7552
7424
  need_lib_prefix=no
7556
7428
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7557
7429
    dynamic_linker='NetBSD (a.out) ld.so'
7558
7430
  else
7559
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7431
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7560
7432
    soname_spec='${libname}${release}${shared_ext}$major'
7561
7433
    dynamic_linker='NetBSD ld.elf_so'
7562
7434
  fi
7584
7456
 
7585
7457
openbsd*)
7586
7458
  version_type=sunos
7587
 
  sys_lib_dlsearch_path_spec="/usr/lib"
7588
7459
  need_lib_prefix=no
7589
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7590
 
  case $host_os in
7591
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7592
 
    *)                         need_version=no  ;;
7593
 
  esac
 
7460
  need_version=no
7594
7461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7595
7462
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7596
7463
  shlibpath_var=LD_LIBRARY_PATH
7610
7477
 
7611
7478
os2*)
7612
7479
  libname_spec='$name'
7613
 
  shrext_cmds=".dll"
 
7480
  shrext=".dll"
7614
7481
  need_lib_prefix=no
7615
7482
  library_names_spec='$libname${shared_ext} $libname.a'
7616
7483
  dynamic_linker='OS/2 ld.exe'
7628
7495
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7629
7496
  ;;
7630
7497
 
 
7498
sco3.2v5*)
 
7499
  version_type=osf
 
7500
  soname_spec='${libname}${release}${shared_ext}$major'
 
7501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7502
  shlibpath_var=LD_LIBRARY_PATH
 
7503
  ;;
 
7504
 
7631
7505
solaris*)
7632
7506
  version_type=linux
7633
7507
  need_lib_prefix=no
7653
7527
  need_version=yes
7654
7528
  ;;
7655
7529
 
7656
 
sysv4 | sysv4.3*)
 
7530
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7657
7531
  version_type=linux
7658
7532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659
7533
  soname_spec='${libname}${release}${shared_ext}$major'
7686
7560
  fi
7687
7561
  ;;
7688
7562
 
7689
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7690
 
  version_type=freebsd-elf
7691
 
  need_lib_prefix=no
7692
 
  need_version=no
7693
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7694
 
  soname_spec='${libname}${release}${shared_ext}$major'
7695
 
  shlibpath_var=LD_LIBRARY_PATH
7696
 
  hardcode_into_libs=yes
7697
 
  if test "$with_gnu_ld" = yes; then
7698
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
7699
 
    shlibpath_overrides_runpath=no
7700
 
  else
7701
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
7702
 
    shlibpath_overrides_runpath=yes
7703
 
    case $host_os in
7704
 
      sco3.2v5*)
7705
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
7706
 
        ;;
7707
 
    esac
7708
 
  fi
7709
 
  sys_lib_dlsearch_path_spec='/usr/lib'
7710
 
  ;;
7711
 
 
7712
7563
uts4*)
7713
7564
  version_type=linux
7714
7565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7722
7573
esac
7723
7574
AC_MSG_RESULT([$dynamic_linker])
7724
7575
test "$dynamic_linker" = no && can_build_shared=no
7725
 
 
7726
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7727
 
if test "$GCC" = yes; then
7728
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7729
 
fi
7730
7576
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
7731
7577
 
7732
7578
 
7751
7597
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
7752
7598
    fi
7753
7599
  fi
7754
 
  if test -z "$LTCFLAGS"; then
7755
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
7756
 
  fi
7757
7600
 
7758
7601
  # Extract list of available tagged configurations in $ofile.
7759
7602
  # Note that this assumes the entire list is on one line.
7780
7623
 
7781
7624
      case $tagname in
7782
7625
      CXX)
7783
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7784
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7785
 
            (test "X$CXX" != "Xg++"))) ; then
 
7626
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
7786
7627
          AC_LIBTOOL_LANG_CXX_CONFIG
7787
7628
        else
7788
7629
          tagname=""
7844
7685
 
7845
7686
# AC_LIBTOOL_WIN32_DLL
7846
7687
# --------------------
7847
 
# declare package support for building win32 DLLs
 
7688
# declare package support for building win32 dll's
7848
7689
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
7849
7690
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
7850
7691
])# AC_LIBTOOL_WIN32_DLL
7882
7723
 
7883
7724
# AC_DISABLE_SHARED
7884
7725
# -----------------
7885
 
# set the default shared flag to --disable-shared
 
7726
#- set the default shared flag to --disable-shared
7886
7727
AC_DEFUN([AC_DISABLE_SHARED],
7887
7728
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7888
7729
AC_ENABLE_SHARED(no)
8018
7859
      if test -n "$file_magic_test_file"; then
8019
7860
        case $deplibs_check_method in
8020
7861
        "file_magic "*)
8021
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7862
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8022
7863
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023
7864
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8024
7865
            $EGREP "$file_magic_regex" > /dev/null; then
8128
7969
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8129
7970
      lt_cv_path_LD="$ac_dir/$ac_prog"
8130
7971
      # Check to see if the program is GNU ld.  I'd rather use --version,
8131
 
      # but apparently some variants of GNU ld only accept -v.
 
7972
      # but apparently some GNU ld's only accept -v.
8132
7973
      # Break only if it was the GNU/non-GNU ld that we prefer.
8133
7974
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8134
7975
      *GNU* | *'with BFD'*)
8160
8001
AC_DEFUN([AC_PROG_LD_GNU],
8161
8002
[AC_REQUIRE([AC_PROG_EGREP])dnl
8162
8003
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8163
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
8004
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8164
8005
case `$LD -v 2>&1 </dev/null` in
8165
8006
*GNU* | *'with BFD'*)
8166
8007
  lt_cv_prog_gnu_ld=yes
8187
8028
*) reload_flag=" $reload_flag" ;;
8188
8029
esac
8189
8030
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8190
 
case $host_os in
8191
 
  darwin*)
8192
 
    if test "$GCC" = yes; then
8193
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8194
 
    else
8195
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8196
 
    fi
8197
 
    ;;
8198
 
esac
8199
8031
])# AC_PROG_LD_RELOAD_FLAG
8200
8032
 
8201
8033
 
8229
8061
  lt_cv_deplibs_check_method=pass_all
8230
8062
  ;;
8231
8063
 
8232
 
bsdi[[45]]*)
 
8064
bsdi4*)
8233
8065
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8234
8066
  lt_cv_file_magic_cmd='/usr/bin/file -L'
8235
8067
  lt_cv_file_magic_test_file=/shlib/libc.so
8236
8068
  ;;
8237
8069
 
8238
8070
cygwin*)
8239
 
  # func_win32_libid is a shell function defined in ltmain.sh
 
8071
  lt_cv_deplibs_check_method=pass_all
 
8072
  ;;
 
8073
  
 
8074
mingw* | pw32*)
 
8075
  # win32_libid is a shell function defined in ltmain.sh
8240
8076
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8241
 
  lt_cv_file_magic_cmd='func_win32_libid'
8242
 
  ;;
8243
 
 
8244
 
mingw* | pw32*)
8245
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
8246
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8247
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8248
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
8077
  lt_cv_file_magic_cmd='win32_libid'
8249
8078
  ;;
8250
8079
 
8251
8080
darwin* | rhapsody*)
 
8081
  # this will be overwritten by pass_all, but leave it in just in case
 
8082
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
8083
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
8084
  case "$host_os" in
 
8085
  rhapsody* | darwin1.[[012]])
 
8086
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
8087
    ;;
 
8088
  *) # Darwin 1.3 on
 
8089
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
8090
    ;;
 
8091
  esac
8252
8092
  lt_cv_deplibs_check_method=pass_all
8253
8093
  ;;
8254
8094
 
8255
 
freebsd* | dragonfly*)
 
8095
freebsd* | kfreebsd*-gnu)
8256
8096
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8257
8097
    case $host_cpu in
8258
8098
    i*86 )
8259
8099
      # Not sure whether the presence of OpenBSD here was a mistake.
8260
8100
      # Let's accept both of them until this is cleared up.
8261
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
8101
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8262
8102
      lt_cv_file_magic_cmd=/usr/bin/file
8263
8103
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8264
8104
      ;;
8274
8114
 
8275
8115
hpux10.20* | hpux11*)
8276
8116
  lt_cv_file_magic_cmd=/usr/bin/file
8277
 
  case $host_cpu in
 
8117
  case "$host_cpu" in
8278
8118
  ia64*)
8279
8119
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
8280
8120
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8290
8130
  esac
8291
8131
  ;;
8292
8132
 
8293
 
interix3*)
8294
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8295
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
8296
 
  ;;
8297
 
 
8298
8133
irix5* | irix6* | nonstopux*)
8299
 
  case $LD in
8300
 
  *-32|*"-32 ") libmagic=32-bit;;
8301
 
  *-n32|*"-n32 ") libmagic=N32;;
8302
 
  *-64|*"-64 ") libmagic=64-bit;;
8303
 
  *) libmagic=never-match;;
 
8134
  case $host_os in
 
8135
  irix5* | nonstopux*)
 
8136
    # this will be overridden with pass_all, but let us keep it just in case
 
8137
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
8138
    ;;
 
8139
  *)
 
8140
    case $LD in
 
8141
    *-32|*"-32 ") libmagic=32-bit;;
 
8142
    *-n32|*"-n32 ") libmagic=N32;;
 
8143
    *-64|*"-64 ") libmagic=64-bit;;
 
8144
    *) libmagic=never-match;;
 
8145
    esac
 
8146
    # this will be overridden with pass_all, but let us keep it just in case
 
8147
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
 
8148
    ;;
8304
8149
  esac
 
8150
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8305
8151
  lt_cv_deplibs_check_method=pass_all
8306
8152
  ;;
8307
8153
 
8308
8154
# This must be Linux ELF.
8309
 
linux* | k*bsd*-gnu)
8310
 
  lt_cv_deplibs_check_method=pass_all
 
8155
linux*)
 
8156
  case $host_cpu in
 
8157
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
 
8158
    lt_cv_deplibs_check_method=pass_all ;;
 
8159
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
 
8160
  arm* )
 
8161
    lt_cv_deplibs_check_method=pass_all ;;
 
8162
  *)
 
8163
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
8164
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
 
8165
  esac
 
8166
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8311
8167
  ;;
8312
8168
 
8313
 
netbsd* | netbsdelf*-gnu)
 
8169
netbsd*)
8314
8170
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8315
8171
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
8316
8172
  else
8329
8185
  ;;
8330
8186
 
8331
8187
openbsd*)
 
8188
  lt_cv_file_magic_cmd=/usr/bin/file
 
8189
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8332
8190
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8333
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
8191
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8334
8192
  else
8335
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
8193
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8336
8194
  fi
8337
8195
  ;;
8338
8196
 
8339
8197
osf3* | osf4* | osf5*)
 
8198
  # this will be overridden with pass_all, but let us keep it just in case
 
8199
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
8200
  lt_cv_file_magic_test_file=/shlib/libc.so
 
8201
  lt_cv_deplibs_check_method=pass_all
 
8202
  ;;
 
8203
 
 
8204
sco3.2v5*)
8340
8205
  lt_cv_deplibs_check_method=pass_all
8341
8206
  ;;
8342
8207
 
8343
8208
solaris*)
8344
8209
  lt_cv_deplibs_check_method=pass_all
 
8210
  lt_cv_file_magic_test_file=/lib/libc.so
8345
8211
  ;;
8346
8212
 
8347
 
sysv4 | sysv4.3*)
 
8213
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8348
8214
  case $host_vendor in
8349
8215
  motorola)
8350
8216
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
8365
8231
  siemens)
8366
8232
    lt_cv_deplibs_check_method=pass_all
8367
8233
    ;;
8368
 
  pc)
8369
 
    lt_cv_deplibs_check_method=pass_all
8370
 
    ;;
8371
8234
  esac
8372
8235
  ;;
8373
8236
 
8374
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8237
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
8375
8238
  lt_cv_deplibs_check_method=pass_all
8376
8239
  ;;
8377
8240
esac
8391
8254
  # Let the user override the test.
8392
8255
  lt_cv_path_NM="$NM"
8393
8256
else
8394
 
  lt_nm_to_check="${ac_tool_prefix}nm"
8395
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
8396
 
    lt_nm_to_check="$lt_nm_to_check nm"
8397
 
  fi
8398
 
  for lt_tmp_nm in $lt_nm_to_check; do
8399
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8400
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8401
 
      IFS="$lt_save_ifs"
8402
 
      test -z "$ac_dir" && ac_dir=.
8403
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
8404
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8405
 
        # Check to see if the nm accepts a BSD-compat flag.
8406
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8407
 
        #   nm: unknown option "B" ignored
8408
 
        # Tru64's nm complains that /dev/null is an invalid object file
8409
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8410
 
        */dev/null* | *'Invalid file or object type'*)
8411
 
          lt_cv_path_NM="$tmp_nm -B"
 
8257
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8258
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
8259
    IFS="$lt_save_ifs"
 
8260
    test -z "$ac_dir" && ac_dir=.
 
8261
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
8262
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
8263
      # Check to see if the nm accepts a BSD-compat flag.
 
8264
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
8265
      #   nm: unknown option "B" ignored
 
8266
      # Tru64's nm complains that /dev/null is an invalid object file
 
8267
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
8268
      */dev/null* | *'Invalid file or object type'*)
 
8269
        lt_cv_path_NM="$tmp_nm -B"
 
8270
        break
 
8271
        ;;
 
8272
      *)
 
8273
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
8274
        */dev/null*)
 
8275
          lt_cv_path_NM="$tmp_nm -p"
8412
8276
          break
8413
8277
          ;;
8414
8278
        *)
8415
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8416
 
          */dev/null*)
8417
 
            lt_cv_path_NM="$tmp_nm -p"
8418
 
            break
8419
 
            ;;
8420
 
          *)
8421
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8422
 
            continue # so that we can try to find one that supports BSD flags
8423
 
            ;;
8424
 
          esac
 
8279
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
8280
          continue # so that we can try to find one that supports BSD flags
8425
8281
          ;;
8426
8282
        esac
8427
 
      fi
8428
 
    done
8429
 
    IFS="$lt_save_ifs"
 
8283
      esac
 
8284
    fi
8430
8285
  done
 
8286
  IFS="$lt_save_ifs"
8431
8287
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8432
8288
fi])
8433
8289
NM="$lt_cv_path_NM"
8459
8315
# -----------------------------------
8460
8316
# sets LIBLTDL to the link flags for the libltdl convenience library and
8461
8317
# LTDLINCL to the include flags for the libltdl header and adds
8462
 
# --enable-ltdl-convenience to the configure arguments.  Note that
8463
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
8464
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
8465
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
8466
 
# (note the single quotes!).  If your package is not flat and you're not
8467
 
# using automake, define top_builddir and top_srcdir appropriately in
8468
 
# the Makefiles.
 
8318
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
8319
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
8320
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
8321
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
 
8322
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
8323
# flat and you're not using automake, define top_builddir and
 
8324
# top_srcdir appropriately in the Makefiles.
8469
8325
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8470
8326
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8471
8327
  case $enable_ltdl_convenience in
8484
8340
# -----------------------------------
8485
8341
# sets LIBLTDL to the link flags for the libltdl installable library and
8486
8342
# LTDLINCL to the include flags for the libltdl header and adds
8487
 
# --enable-ltdl-install to the configure arguments.  Note that
8488
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
8489
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
8490
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
8491
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
8492
 
# flat and you're not using automake, define top_builddir and top_srcdir
8493
 
# appropriately in the Makefiles.
 
8343
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
8344
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
8345
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
8346
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
8347
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
8348
# quotes!).  If your package is not flat and you're not using automake,
 
8349
# define top_builddir and top_srcdir appropriately in the Makefiles.
8494
8350
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
8495
8351
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
8496
8352
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8528
8384
# ---------------
8529
8385
AC_DEFUN([_LT_AC_LANG_CXX],
8530
8386
[AC_REQUIRE([AC_PROG_CXX])
8531
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
8387
AC_REQUIRE([AC_PROG_CXXCPP])
8532
8388
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
8533
8389
])# _LT_AC_LANG_CXX
8534
8390
 
8535
 
# _LT_AC_PROG_CXXCPP
8536
 
# ------------------
8537
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
8538
 
[
8539
 
AC_REQUIRE([AC_PROG_CXX])
8540
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8541
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8542
 
    (test "X$CXX" != "Xg++"))) ; then
8543
 
  AC_PROG_CXXCPP
8544
 
fi
8545
 
])# _LT_AC_PROG_CXXCPP
8546
8391
 
8547
8392
# AC_LIBTOOL_F77
8548
8393
# --------------
8582
8427
 
8583
8428
 
8584
8429
# AC_LIBTOOL_RC
8585
 
# -------------
 
8430
# --------------
8586
8431
# enable support for Windows resource files
8587
8432
AC_DEFUN([AC_LIBTOOL_RC],
8588
8433
[AC_REQUIRE([LT_AC_PROG_RC])
8615
8460
 
8616
8461
_LT_AC_SYS_COMPILER
8617
8462
 
8618
 
# save warnings/boilerplate of simple test code
8619
 
_LT_COMPILER_BOILERPLATE
8620
 
_LT_LINKER_BOILERPLATE
 
8463
#
 
8464
# Check for any special shared library compilation flags.
 
8465
#
 
8466
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
8467
if test "$GCC" = no; then
 
8468
  case $host_os in
 
8469
  sco3.2v5*)
 
8470
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
8471
    ;;
 
8472
  esac
 
8473
fi
 
8474
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
8475
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
8476
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
 
8477
  else
 
8478
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
8479
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
8480
  fi
 
8481
fi
 
8482
 
 
8483
 
 
8484
#
 
8485
# Check to make sure the static flag actually works.
 
8486
#
 
8487
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
8488
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
8489
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
8490
  [],
 
8491
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
8492
 
8621
8493
 
8622
8494
## CAVEAT EMPTOR:
8623
8495
## There is no encapsulation within the following macros, do not change
8631
8503
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8632
8504
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8633
8505
AC_LIBTOOL_SYS_LIB_STRIP
8634
 
AC_LIBTOOL_DLOPEN_SELF
 
8506
AC_LIBTOOL_DLOPEN_SELF($1)
8635
8507
 
8636
 
# Report which library types will actually be built
 
8508
# Report which librarie types wil actually be built
8637
8509
AC_MSG_CHECKING([if libtool supports shared libraries])
8638
8510
AC_MSG_RESULT([$can_build_shared])
8639
8511
 
8642
8514
 
8643
8515
# On AIX, shared libraries and static libraries use the same namespace, and
8644
8516
# are all built from PIC.
8645
 
case $host_os in
 
8517
case "$host_os" in
8646
8518
aix3*)
8647
8519
  test "$enable_shared" = yes && enable_static=no
8648
8520
  if test -n "$RANLIB"; then
8651
8523
  fi
8652
8524
  ;;
8653
8525
 
8654
 
aix4* | aix5*)
 
8526
aix4*)
8655
8527
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8656
8528
    test "$enable_shared" = yes && enable_static=no
8657
8529
  fi
8658
 
    ;;
 
8530
  ;;
 
8531
  darwin* | rhapsody*)
 
8532
  if test "$GCC" = yes; then
 
8533
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
8534
    case "$host_os" in
 
8535
    rhapsody* | darwin1.[[012]])
 
8536
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
 
8537
      ;;
 
8538
    *) # Darwin 1.3 on
 
8539
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8540
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8541
      else
 
8542
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8543
          10.[012])
 
8544
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8545
            ;;
 
8546
          10.*)
 
8547
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
8548
            ;;
 
8549
        esac
 
8550
      fi
 
8551
      ;;
 
8552
    esac
 
8553
    output_verbose_link_cmd='echo'
 
8554
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
8555
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
8556
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8557
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8558
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8559
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8560
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
8561
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
8562
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
8563
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
8564
  else
 
8565
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
8566
  fi  
 
8567
    ;;  
8659
8568
esac
8660
8569
AC_MSG_RESULT([$enable_shared])
8661
8570
 
8680
8589
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
8681
8590
[AC_LANG_PUSH(C++)
8682
8591
AC_REQUIRE([AC_PROG_CXX])
8683
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
8592
AC_REQUIRE([AC_PROG_CXXCPP])
8684
8593
 
8685
8594
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8686
8595
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8692
8601
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8693
8602
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8694
8603
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8695
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8696
8604
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
8697
8605
_LT_AC_TAGVAR(module_cmds, $1)=
8698
8606
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
8710
8618
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
8711
8619
 
8712
8620
# Source file extension for C++ test sources.
8713
 
ac_ext=cpp
 
8621
ac_ext=cc
8714
8622
 
8715
8623
# Object file extension for compiled C++ test sources.
8716
8624
objext=o
8720
8628
lt_simple_compile_test_code="int some_variable = 0;\n"
8721
8629
 
8722
8630
# Code to be used in simple link tests
8723
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
8631
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
8724
8632
 
8725
8633
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8726
8634
_LT_AC_SYS_COMPILER
8727
8635
 
8728
 
# save warnings/boilerplate of simple test code
8729
 
_LT_COMPILER_BOILERPLATE
8730
 
_LT_LINKER_BOILERPLATE
8731
 
 
8732
8636
# Allow CC to be a program name with arguments.
8733
8637
lt_save_CC=$CC
8734
8638
lt_save_LD=$LD
8739
8643
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8740
8644
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8741
8645
else
8742
 
  $as_unset lt_cv_prog_gnu_ld
 
8646
  unset lt_cv_prog_gnu_ld
8743
8647
fi
8744
8648
if test -n "${lt_cv_path_LDCXX+set}"; then
8745
8649
  lt_cv_path_LD=$lt_cv_path_LDCXX
8746
8650
else
8747
 
  $as_unset lt_cv_path_LD
 
8651
  unset lt_cv_path_LD
8748
8652
fi
8749
8653
test -z "${LDCXX+set}" || LD=$LDCXX
8750
8654
CC=${CXX-"c++"}
8751
8655
compiler=$CC
8752
8656
_LT_AC_TAGVAR(compiler, $1)=$CC
8753
 
_LT_CC_BASENAME([$compiler])
 
8657
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8754
8658
 
8755
8659
# We don't want -fno-exception wen compiling C++ code, so set the
8756
8660
# no_builtin_flag separately
8768
8672
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
8769
8673
  # archiving commands below assume that GNU ld is being used.
8770
8674
  if test "$with_gnu_ld" = yes; then
8771
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8675
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
8676
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773
8677
 
8774
8678
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8775
8679
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8795
8699
    # linker, instead of GNU ld.  If possible, this setting should
8796
8700
    # overridden to take advantage of the native linker features on
8797
8701
    # the platform it is being used on.
8798
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
8702
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
8799
8703
  fi
8800
8704
 
8801
8705
  # Commands to make compiler produce verbose output that lists
8825
8729
      exp_sym_flag='-Bexport'
8826
8730
      no_entry_flag=""
8827
8731
    else
8828
 
      aix_use_runtimelinking=no
8829
 
 
8830
 
      # Test if we are trying to use run time linking or normal
8831
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8832
 
      # need to do runtime linking.
8833
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
8834
 
        for ld_flag in $LDFLAGS; do
8835
 
          case $ld_flag in
8836
 
          *-brtl*)
8837
 
            aix_use_runtimelinking=yes
8838
 
            break
8839
 
            ;;
8840
 
          esac
8841
 
        done
8842
 
        ;;
8843
 
      esac
8844
 
 
 
8732
      # KDE requires run time linking.  Make it the default.
 
8733
      aix_use_runtimelinking=yes
8845
8734
      exp_sym_flag='-bexport'
8846
8735
      no_entry_flag='-bnoentry'
8847
8736
    fi
8858
8747
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8859
8748
 
8860
8749
    if test "$GXX" = yes; then
8861
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
8750
      case $host_os in aix4.[012]|aix4.[012].*)
8862
8751
      # We only want to do this on AIX 4.2 and lower, the check
8863
8752
      # below for broken collect2 doesn't work under 4.3+
8864
8753
        collect2name=`${CC} -print-prog-name=collect2`
8877
8766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8878
8767
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8879
8768
        fi
8880
 
        ;;
8881
8769
      esac
8882
8770
      shared_flag='-shared'
8883
 
      if test "$aix_use_runtimelinking" = yes; then
8884
 
        shared_flag="$shared_flag "'${wl}-G'
8885
 
      fi
8886
8771
    else
8887
8772
      # not using gcc
8888
8773
      if test "$host_cpu" = ia64; then
8891
8776
        shared_flag='-G'
8892
8777
      else
8893
8778
        if test "$aix_use_runtimelinking" = yes; then
8894
 
          shared_flag='${wl}-G'
 
8779
          shared_flag='-qmkshrobj ${wl}-G'
8895
8780
        else
8896
 
          shared_flag='${wl}-bM:SRE'
 
8781
          shared_flag='-qmkshrobj'
8897
8782
        fi
8898
8783
      fi
8899
8784
    fi
8900
8785
 
8901
 
    # It seems that -bexpall does not export symbols beginning with
8902
 
    # underscore (_), so it is better to generate a list of symbols to export.
8903
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
8786
    # Let the compiler handle the export list.
 
8787
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
8904
8788
    if test "$aix_use_runtimelinking" = yes; then
8905
8789
      # Warning - without using the other runtime loading flags (-brtl),
8906
8790
      # -berok will link without error, but may produce a broken library.
8909
8793
      _LT_AC_SYS_LIBPATH_AIX
8910
8794
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8911
8795
 
8912
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8796
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
8797
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8913
8798
     else
8914
8799
      if test "$host_cpu" = ia64; then
8915
8800
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8916
8801
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8917
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
8802
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8918
8803
      else
8919
8804
        # Determine the default libpath from the value encoded in an empty executable.
8920
8805
        _LT_AC_SYS_LIBPATH_AIX
8923
8808
        # -berok will link without error, but may produce a broken library.
8924
8809
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8925
8810
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
8811
        # -bexpall does not export symbols beginning with underscore (_)
 
8812
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8926
8813
        # Exported symbols can be pulled into shared objects from archives
8927
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
8814
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8928
8815
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8929
 
        # This is similar to how AIX traditionally builds its shared libraries.
8930
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8816
        # This is similar to how AIX traditionally builds it's shared libraries.
 
8817
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8931
8818
      fi
8932
8819
    fi
8933
8820
    ;;
8934
 
 
8935
 
  beos*)
8936
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8937
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8938
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8939
 
      # support --undefined.  This deserves some investigation.  FIXME
8940
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941
 
    else
8942
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8943
 
    fi
8944
 
    ;;
8945
 
 
8946
8821
  chorus*)
8947
8822
    case $cc_basename in
8948
8823
      *)
8956
8831
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8957
8832
    # as there is no search path for DLLs.
8958
8833
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8959
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
8834
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
8960
8835
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
8961
8836
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8962
8837
 
8963
8838
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8964
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8839
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8965
8840
      # If the export-symbols file already is a .def file (1st line
8966
8841
      # is EXPORTS), use it as is; otherwise, prepend...
8967
8842
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8970
8845
        echo EXPORTS > $output_objdir/$soname.def;
8971
8846
        cat $export_symbols >> $output_objdir/$soname.def;
8972
8847
      fi~
8973
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8848
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8974
8849
    else
8975
8850
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
8976
8851
    fi
8977
8852
  ;;
8978
 
      darwin* | rhapsody*)
8979
 
        case $host_os in
8980
 
        rhapsody* | darwin1.[[012]])
8981
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
8982
 
         ;;
8983
 
       *) # Darwin 1.3 on
8984
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8985
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8986
 
         else
8987
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8988
 
             10.[[012]])
8989
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8990
 
               ;;
8991
 
             10.*)
8992
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
8993
 
               ;;
8994
 
           esac
8995
 
         fi
8996
 
         ;;
8997
 
        esac
8998
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8999
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
9000
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9001
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9002
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
9003
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9004
 
 
9005
 
    if test "$GXX" = yes ; then
9006
 
      lt_int_apple_cc_single_mod=no
9007
 
      output_verbose_link_cmd='echo'
9008
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9009
 
       lt_int_apple_cc_single_mod=yes
9010
 
      fi
9011
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9012
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9013
 
      else
9014
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9015
 
        fi
9016
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9018
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9019
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9020
 
          else
9021
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9022
 
          fi
9023
 
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9024
 
      else
9025
 
      case $cc_basename in
9026
 
        xlc*)
9027
 
         output_verbose_link_cmd='echo'
9028
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9029
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9030
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9031
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9032
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9033
 
          ;;
9034
 
       *)
9035
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
9036
 
          ;;
9037
 
      esac
9038
 
      fi
9039
 
        ;;
 
8853
 
 
8854
  darwin* | rhapsody*)
 
8855
  if test "$GXX" = yes; then
 
8856
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
8857
    case "$host_os" in
 
8858
    rhapsody* | darwin1.[[012]])
 
8859
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
 
8860
      ;;
 
8861
    *) # Darwin 1.3 on
 
8862
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8863
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8864
      else
 
8865
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8866
          10.[012])
 
8867
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
8868
            ;;
 
8869
          10.*)
 
8870
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
8871
            ;;
 
8872
        esac
 
8873
      fi
 
8874
      ;;
 
8875
    esac
 
8876
    lt_int_apple_cc_single_mod=no
 
8877
    output_verbose_link_cmd='echo'
 
8878
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
8879
      lt_int_apple_cc_single_mod=yes
 
8880
    fi
 
8881
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8882
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
8883
    else
 
8884
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
8885
    fi
 
8886
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
8887
 
 
8888
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8889
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8890
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8891
    else
 
8892
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8893
    fi
 
8894
    _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8895
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8896
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
8897
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
8898
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
8899
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
8900
  else
 
8901
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
8902
  fi
 
8903
    ;;
9040
8904
 
9041
8905
  dgux*)
9042
8906
    case $cc_basename in
9043
 
      ec++*)
 
8907
      ec++)
9044
8908
        # FIXME: insert proper C++ library support
9045
8909
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9046
8910
        ;;
9047
 
      ghcx*)
 
8911
      ghcx)
9048
8912
        # Green Hills C++ Compiler
9049
8913
        # FIXME: insert proper C++ library support
9050
8914
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9055
8919
        ;;
9056
8920
    esac
9057
8921
    ;;
9058
 
  freebsd[[12]]*)
 
8922
  freebsd[12]*)
9059
8923
    # C++ shared libraries reported to be fairly broken before switch to ELF
9060
8924
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9061
8925
    ;;
9062
8926
  freebsd-elf*)
9063
8927
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9064
8928
    ;;
9065
 
  freebsd* | dragonfly*)
 
8929
  freebsd* | kfreebsd*-gnu)
9066
8930
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9067
8931
    # conventions
9068
8932
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
9079
8943
                                # location of the library.
9080
8944
 
9081
8945
    case $cc_basename in
9082
 
    CC*)
 
8946
    CC)
9083
8947
      # FIXME: insert proper C++ library support
9084
8948
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
9085
8949
      ;;
9086
 
    aCC*)
9087
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8950
    aCC)
 
8951
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9088
8952
      # Commands to make compiler produce verbose output that lists
9089
8953
      # what "hidden" libraries, object files and flags are used when
9090
8954
      # linking a shared library.
9093
8957
      # explicitly linking system object files so we need to strip them
9094
8958
      # from the output so that they don't get included in the library
9095
8959
      # dependencies.
9096
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
8960
      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 $list'
9097
8961
      ;;
9098
8962
    *)
9099
8963
      if test "$GXX" = yes; then
9100
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8964
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9101
8965
      else
9102
8966
        # FIXME: insert proper C++ library support
9103
8967
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9107
8971
    ;;
9108
8972
  hpux10*|hpux11*)
9109
8973
    if test $with_gnu_ld = no; then
9110
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9111
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9112
 
 
9113
 
      case $host_cpu in
9114
 
      hppa*64*|ia64*)
 
8974
      case "$host_cpu" in
 
8975
      hppa*64*)
 
8976
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9115
8977
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
8978
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
8979
        ;;
 
8980
      ia64*)
 
8981
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9116
8982
        ;;
9117
8983
      *)
 
8984
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8985
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9118
8986
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9119
8987
        ;;
9120
8988
      esac
9121
8989
    fi
9122
 
    case $host_cpu in
9123
 
    hppa*64*|ia64*)
9124
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
9125
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8990
    case "$host_cpu" in
 
8991
    hppa*64*)
 
8992
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8993
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8994
      ;;
 
8995
    ia64*)
 
8996
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8997
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8998
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
8999
                                              # but as the default
 
9000
                                              # location of the library.
9126
9001
      ;;
9127
9002
    *)
9128
9003
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9133
9008
    esac
9134
9009
 
9135
9010
    case $cc_basename in
9136
 
      CC*)
 
9011
      CC)
9137
9012
        # FIXME: insert proper C++ library support
9138
9013
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9139
9014
        ;;
9140
 
      aCC*)
9141
 
        case $host_cpu in
9142
 
        hppa*64*)
9143
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9144
 
          ;;
9145
 
        ia64*)
9146
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9015
      aCC)
 
9016
        case "$host_cpu" in
 
9017
        hppa*64*|ia64*)
 
9018
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9147
9019
          ;;
9148
9020
        *)
9149
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9021
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
9150
9022
          ;;
9151
9023
        esac
9152
9024
        # Commands to make compiler produce verbose output that lists
9162
9034
      *)
9163
9035
        if test "$GXX" = yes; then
9164
9036
          if test $with_gnu_ld = no; then
9165
 
            case $host_cpu in
9166
 
            hppa*64*)
9167
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9168
 
              ;;
9169
 
            ia64*)
9170
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9037
            case "$host_cpu" in
 
9038
            ia64*|hppa*64*)
 
9039
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9171
9040
              ;;
9172
9041
            *)
9173
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9042
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
9174
9043
              ;;
9175
9044
            esac
9176
9045
          fi
9181
9050
        ;;
9182
9051
    esac
9183
9052
    ;;
9184
 
  interix3*)
9185
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
9186
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9187
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9188
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9189
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9190
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
9191
 
    # default) and relocated if they conflict, which is a slow very memory
9192
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
9193
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9194
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9195
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9196
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9197
 
    ;;
9198
9053
  irix5* | irix6*)
9199
9054
    case $cc_basename in
9200
 
      CC*)
 
9055
      CC)
9201
9056
        # SGI C++
9202
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9057
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9203
9058
 
9204
9059
        # Archives containing C++ object files must be created using
9205
9060
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9210
9065
      *)
9211
9066
        if test "$GXX" = yes; then
9212
9067
          if test "$with_gnu_ld" = no; then
9213
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9068
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9214
9069
          else
9215
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
9070
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9216
9071
          fi
9217
9072
        fi
9218
9073
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9221
9076
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9222
9077
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9223
9078
    ;;
9224
 
  linux* | k*bsd*-gnu)
 
9079
  linux*)
9225
9080
    case $cc_basename in
9226
 
      KCC*)
 
9081
      KCC)
9227
9082
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9228
9083
 
9229
9084
        # KCC will only create a shared library if the output file
9230
9085
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
9231
9086
        # to its proper name (with version) after linking.
9232
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9233
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
9087
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
 
9088
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9234
9089
        # Commands to make compiler produce verbose output that lists
9235
9090
        # what "hidden" libraries, object files and flags are used when
9236
9091
        # linking a shared library.
9248
9103
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9249
9104
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9250
9105
        ;;
9251
 
      icpc*)
 
9106
      icpc)
9252
9107
        # Intel C++
9253
9108
        with_gnu_ld=yes
9254
 
        # version 8.0 and above of icpc choke on multiply defined symbols
9255
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
9256
 
        # earlier do not add the objects themselves.
9257
 
        case `$CC -V 2>&1` in
9258
 
        *"Version 7."*)
9259
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9261
 
          ;;
9262
 
        *)  # Version 8.0 or newer
9263
 
          tmp_idyn=
9264
 
          case $host_cpu in
9265
 
            ia64*) tmp_idyn=' -i_dynamic';;
9266
 
          esac
9267
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269
 
          ;;
9270
 
        esac
9271
9109
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
9110
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
9111
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272
9112
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9273
9113
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9274
9114
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9275
9115
        ;;
9276
 
      pgCC*)
9277
 
        # Portland Group C++ compiler
9278
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9279
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9280
 
 
9281
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
9282
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9283
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9284
 
        ;;
9285
 
      cxx*)
 
9116
      cxx)
9286
9117
        # Compaq C++
9287
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
9118
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
 
9119
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9289
9120
 
9290
9121
        runpath_var=LD_RUN_PATH
9291
9122
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9313
9144
    ;;
9314
9145
  mvs*)
9315
9146
    case $cc_basename in
9316
 
      cxx*)
 
9147
      cxx)
9317
9148
        # FIXME: insert proper C++ library support
9318
9149
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9319
9150
        ;;
9323
9154
        ;;
9324
9155
    esac
9325
9156
    ;;
9326
 
  netbsd* | netbsdelf*-gnu)
 
9157
  netbsd*)
9327
9158
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9328
9159
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9329
9160
      wlarc=
9334
9165
    # Workaround some broken pre-1.5 toolchains
9335
9166
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9336
9167
    ;;
9337
 
  openbsd2*)
9338
 
    # C++ shared libraries are fairly broken
9339
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9340
 
    ;;
9341
 
  openbsd*)
9342
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9343
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9344
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9345
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9346
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9348
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9349
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9350
 
    fi
9351
 
    output_verbose_link_cmd='echo'
9352
 
    ;;
9353
9168
  osf3*)
9354
9169
    case $cc_basename in
9355
 
      KCC*)
 
9170
      KCC)
9356
9171
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9357
9172
 
9358
9173
        # KCC will only create a shared library if the output file
9359
9174
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
9360
9175
        # to its proper name (with version) after linking.
9361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
9176
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
9362
9177
 
9363
9178
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9364
9179
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9368
9183
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9369
9184
 
9370
9185
        ;;
9371
 
      RCC*)
 
9186
      RCC)
9372
9187
        # Rational C++ 2.4.1
9373
9188
        # FIXME: insert proper C++ library support
9374
9189
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9375
9190
        ;;
9376
 
      cxx*)
 
9191
      cxx)
9377
9192
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9378
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9193
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9379
9194
 
9380
9195
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9381
9196
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9393
9208
      *)
9394
9209
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9395
9210
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9396
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9211
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9397
9212
 
9398
9213
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9399
9214
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9412
9227
    ;;
9413
9228
  osf4* | osf5*)
9414
9229
    case $cc_basename in
9415
 
      KCC*)
 
9230
      KCC)
9416
9231
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9417
9232
 
9418
9233
        # KCC will only create a shared library if the output file
9419
9234
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
9420
9235
        # to its proper name (with version) after linking.
9421
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
9236
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
9422
9237
 
9423
9238
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9424
9239
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9427
9242
        # the KAI C++ compiler.
9428
9243
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
9429
9244
        ;;
9430
 
      RCC*)
 
9245
      RCC)
9431
9246
        # Rational C++ 2.4.1
9432
9247
        # FIXME: insert proper C++ library support
9433
9248
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9434
9249
        ;;
9435
 
      cxx*)
 
9250
      cxx)
9436
9251
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9437
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9252
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9438
9253
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9439
9254
          echo "-hidden">> $lib.exp~
9440
 
          $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~
 
9255
          $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9441
9256
          $rm $lib.exp'
9442
9257
 
9443
9258
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9456
9271
      *)
9457
9272
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9458
9273
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9459
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9274
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9460
9275
 
9461
9276
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9462
9277
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9477
9292
    # FIXME: insert proper C++ library support
9478
9293
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9479
9294
    ;;
 
9295
  sco*)
 
9296
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
9297
    case $cc_basename in
 
9298
      CC)
 
9299
        # FIXME: insert proper C++ library support
 
9300
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
9301
        ;;
 
9302
      *)
 
9303
        # FIXME: insert proper C++ library support
 
9304
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
9305
        ;;
 
9306
    esac
 
9307
    ;;
9480
9308
  sunos4*)
9481
9309
    case $cc_basename in
9482
 
      CC*)
 
9310
      CC)
9483
9311
        # Sun C++ 4.x
9484
9312
        # FIXME: insert proper C++ library support
9485
9313
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9486
9314
        ;;
9487
 
      lcc*)
 
9315
      lcc)
9488
9316
        # Lucid
9489
9317
        # FIXME: insert proper C++ library support
9490
9318
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9497
9325
    ;;
9498
9326
  solaris*)
9499
9327
    case $cc_basename in
9500
 
      CC*)
 
9328
      CC)
9501
9329
        # Sun C++ 4.2, 5.x and Centerline C++
9502
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
9503
9330
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9504
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9331
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
9505
9332
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9506
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
9333
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
9507
9334
 
9508
9335
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9509
9336
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9510
9337
        case $host_os in
9511
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
9338
          solaris2.[0-5] | solaris2.[0-5].*) ;;
9512
9339
          *)
9513
9340
            # The C++ compiler is used as linker so we must use $wl
9514
9341
            # flag to pass the commands to the underlying system
9515
 
            # linker. We must also pass each convience library through
9516
 
            # to the system linker between allextract/defaultextract.
9517
 
            # The C++ compiler will combine linker options so we
9518
 
            # cannot just pass the convience library names through
9519
 
            # without $wl.
 
9342
            # linker.
9520
9343
            # Supported since Solaris 2.6 (maybe 2.5.1?)
9521
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
9344
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9522
9345
            ;;
9523
9346
        esac
9524
9347
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9525
9348
 
9526
 
        output_verbose_link_cmd='echo'
 
9349
        # Commands to make compiler produce verbose output that lists
 
9350
        # what "hidden" libraries, object files and flags are used when
 
9351
        # linking a shared library.
 
9352
        #
 
9353
        # There doesn't appear to be a way to prevent this compiler from
 
9354
        # explicitly linking system object files so we need to strip them
 
9355
        # from the output so that they don't get included in the library
 
9356
        # dependencies.
 
9357
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9527
9358
 
9528
9359
        # Archives containing C++ object files must be created using
9529
9360
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9531
9362
        # in the archive.
9532
9363
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9533
9364
        ;;
9534
 
      gcx*)
 
9365
      gcx)
9535
9366
        # Green Hills C++ Compiler
9536
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9367
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
9537
9368
 
9538
9369
        # The C++ compiler must be used to create the archive.
9539
9370
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9543
9374
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9544
9375
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
9545
9376
          if $CC --version | grep -v '^2\.7' > /dev/null; then
9546
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9377
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
9547
9378
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9548
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
9379
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
9549
9380
 
9550
9381
            # Commands to make compiler produce verbose output that lists
9551
9382
            # what "hidden" libraries, object files and flags are used when
9554
9385
          else
9555
9386
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
9556
9387
            # platform.
9557
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9388
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
9558
9389
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9559
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
9390
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
9560
9391
 
9561
9392
            # Commands to make compiler produce verbose output that lists
9562
9393
            # what "hidden" libraries, object files and flags are used when
9569
9400
        ;;
9570
9401
    esac
9571
9402
    ;;
9572
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9573
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9574
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9575
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9576
 
    runpath_var='LD_RUN_PATH'
9577
 
 
9578
 
    case $cc_basename in
9579
 
      CC*)
9580
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582
 
        ;;
9583
 
      *)
9584
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586
 
        ;;
9587
 
    esac
9588
 
    ;;
9589
 
  sysv5* | sco3.2v5* | sco5v6*)
9590
 
    # Note: We can NOT use -z defs as we might desire, because we do not
9591
 
    # link with -lc, and that would cause any symbols used from libc to
9592
 
    # always be unresolved, which means just about no library would
9593
 
    # ever link correctly.  If we're not using GNU ld we use -z text
9594
 
    # though, which does catch some bad symbols but isn't as heavy-handed
9595
 
    # as -z defs.
9596
 
    # For security reasons, it is highly recommended that you always
9597
 
    # use absolute paths for naming shared libraries, and exclude the
9598
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
9599
 
    # requires that you compile everything twice, which is a pain.
9600
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
9601
 
    # non-empty value in the environment.  Most likely only useful for
9602
 
    # creating official distributions of packages.
9603
 
    # This is a hack until libtool officially supports absolute path
9604
 
    # names for shared libraries.
9605
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9606
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9607
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9608
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9609
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9610
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9611
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9612
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9613
 
    runpath_var='LD_RUN_PATH'
9614
 
 
9615
 
    case $cc_basename in
9616
 
      CC*)
9617
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9618
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9619
 
        ;;
9620
 
      *)
9621
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623
 
        ;;
9624
 
    esac
 
9403
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
9404
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9625
9405
    ;;
9626
9406
  tandem*)
9627
9407
    case $cc_basename in
9628
 
      NCC*)
 
9408
      NCC)
9629
9409
        # NonStop-UX NCC 3.20
9630
9410
        # FIXME: insert proper C++ library support
9631
9411
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9662
9442
AC_LIBTOOL_PROG_LD_SHLIBS($1)
9663
9443
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
9664
9444
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
9445
AC_LIBTOOL_SYS_LIB_STRIP
 
9446
AC_LIBTOOL_DLOPEN_SELF($1)
9665
9447
 
9666
9448
AC_LIBTOOL_CONFIG($1)
9667
9449
 
9679
9461
])# AC_LIBTOOL_LANG_CXX_CONFIG
9680
9462
 
9681
9463
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
9682
 
# ------------------------------------
 
9464
# ------------------------
9683
9465
# Figure out "hidden" library dependencies from verbose
9684
9466
# compiler output when linking a shared library.
9685
9467
# Parse the compiler output and extract the necessary
9733
9515
  # The `*' in the case matches for architectures that use `case' in
9734
9516
  # $output_verbose_cmd can trigger glob expansion during the loop
9735
9517
  # eval without this substitution.
9736
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
9518
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9737
9519
 
9738
9520
  for p in `eval $output_verbose_link_cmd`; do
9739
9521
    case $p in
9773
9555
       fi
9774
9556
       ;;
9775
9557
 
9776
 
    *.$objext)
 
9558
    *.$objext|*.$libext)
9777
9559
       # This assumes that the test object file only shows up
9778
9560
       # once in the compiler output.
9779
9561
       if test "$p" = "conftest.$objext"; then
9809
9591
 
9810
9592
$rm -f confest.$objext
9811
9593
 
9812
 
# PORTME: override above test on systems where it is broken
9813
 
ifelse([$1],[CXX],
9814
 
[case $host_os in
9815
 
interix3*)
9816
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
9817
 
  # hack all around it, let's just trust "g++" to DTRT.
9818
 
  _LT_AC_TAGVAR(predep_objects,$1)=
9819
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
9820
 
  _LT_AC_TAGVAR(postdeps,$1)=
9821
 
  ;;
9822
 
 
9823
 
solaris*)
9824
 
  case $cc_basename in
9825
 
  CC*)
9826
 
    # Adding this requires a known-good setup of shared libraries for
9827
 
    # Sun compiler versions before 5.6, else PIC objects from an old
9828
 
    # archive will be linked into the output, leading to subtle bugs.
9829
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
9830
 
    ;;
9831
 
  esac
9832
 
  ;;
9833
 
esac
9834
 
])
9835
 
 
9836
9594
case " $_LT_AC_TAGVAR(postdeps, $1) " in
9837
9595
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
9838
9596
esac
9839
9597
])# AC_LIBTOOL_POSTDEP_PREDEP
9840
9598
 
9841
9599
# AC_LIBTOOL_LANG_F77_CONFIG
9842
 
# --------------------------
 
9600
# ------------------------
9843
9601
# Ensure that the configuration vars for the C compiler are
9844
9602
# suitably defined.  Those variables are subsequently used by
9845
9603
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
9883
9641
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9884
9642
_LT_AC_SYS_COMPILER
9885
9643
 
9886
 
# save warnings/boilerplate of simple test code
9887
 
_LT_COMPILER_BOILERPLATE
9888
 
_LT_LINKER_BOILERPLATE
9889
 
 
9890
9644
# Allow CC to be a program name with arguments.
9891
9645
lt_save_CC="$CC"
9892
9646
CC=${F77-"f77"}
9893
9647
compiler=$CC
9894
9648
_LT_AC_TAGVAR(compiler, $1)=$CC
9895
 
_LT_CC_BASENAME([$compiler])
 
9649
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9896
9650
 
9897
9651
AC_MSG_CHECKING([if libtool supports shared libraries])
9898
9652
AC_MSG_RESULT([$can_build_shared])
9902
9656
 
9903
9657
# On AIX, shared libraries and static libraries use the same namespace, and
9904
9658
# are all built from PIC.
9905
 
case $host_os in
 
9659
case "$host_os" in
9906
9660
aix3*)
9907
9661
  test "$enable_shared" = yes && enable_static=no
9908
9662
  if test -n "$RANLIB"; then
9910
9664
    postinstall_cmds='$RANLIB $lib'
9911
9665
  fi
9912
9666
  ;;
9913
 
aix4* | aix5*)
9914
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9915
 
    test "$enable_shared" = yes && enable_static=no
9916
 
  fi
 
9667
aix4*)
 
9668
  test "$enable_shared" = yes && enable_static=no
9917
9669
  ;;
9918
9670
esac
9919
9671
AC_MSG_RESULT([$enable_shared])
9923
9675
test "$enable_shared" = yes || enable_static=yes
9924
9676
AC_MSG_RESULT([$enable_static])
9925
9677
 
 
9678
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
9679
 
9926
9680
_LT_AC_TAGVAR(GCC, $1)="$G77"
9927
9681
_LT_AC_TAGVAR(LD, $1)="$LD"
9928
9682
 
9932
9686
AC_LIBTOOL_PROG_LD_SHLIBS($1)
9933
9687
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
9934
9688
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
9689
AC_LIBTOOL_SYS_LIB_STRIP
 
9690
 
9935
9691
 
9936
9692
AC_LIBTOOL_CONFIG($1)
9937
9693
 
9960
9716
lt_simple_compile_test_code="class foo {}\n"
9961
9717
 
9962
9718
# Code to be used in simple link tests
9963
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
9719
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
9964
9720
 
9965
9721
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9966
9722
_LT_AC_SYS_COMPILER
9967
9723
 
9968
 
# save warnings/boilerplate of simple test code
9969
 
_LT_COMPILER_BOILERPLATE
9970
 
_LT_LINKER_BOILERPLATE
9971
 
 
9972
9724
# Allow CC to be a program name with arguments.
9973
9725
lt_save_CC="$CC"
9974
9726
CC=${GCJ-"gcj"}
9975
9727
compiler=$CC
9976
9728
_LT_AC_TAGVAR(compiler, $1)=$CC
9977
 
_LT_CC_BASENAME([$compiler])
9978
9729
 
9979
9730
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9980
9731
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9981
9732
 
9982
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9983
 
 
9984
9733
## CAVEAT EMPTOR:
9985
9734
## There is no encapsulation within the following macros, do not change
9986
9735
## the running order or otherwise move them around unless you know exactly
9992
9741
AC_LIBTOOL_PROG_LD_SHLIBS($1)
9993
9742
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
9994
9743
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
9744
AC_LIBTOOL_SYS_LIB_STRIP
 
9745
AC_LIBTOOL_DLOPEN_SELF($1)
9995
9746
 
9996
9747
AC_LIBTOOL_CONFIG($1)
9997
9748
 
10001
9752
 
10002
9753
 
10003
9754
# AC_LIBTOOL_LANG_RC_CONFIG
10004
 
# -------------------------
 
9755
# --------------------------
10005
9756
# Ensure that the configuration vars for the Windows resource compiler are
10006
9757
# suitably defined.  Those variables are subsequently used by
10007
9758
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
10025
9776
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10026
9777
_LT_AC_SYS_COMPILER
10027
9778
 
10028
 
# save warnings/boilerplate of simple test code
10029
 
_LT_COMPILER_BOILERPLATE
10030
 
_LT_LINKER_BOILERPLATE
10031
 
 
10032
9779
# Allow CC to be a program name with arguments.
10033
9780
lt_save_CC="$CC"
10034
9781
CC=${RC-"windres"}
10035
9782
compiler=$CC
10036
9783
_LT_AC_TAGVAR(compiler, $1)=$CC
10037
 
_LT_CC_BASENAME([$compiler])
10038
9784
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
10039
9785
 
10040
9786
AC_LIBTOOL_CONFIG($1)
10060
9806
  # without removal of \ escapes.
10061
9807
  if test -n "${ZSH_VERSION+set}" ; then
10062
9808
    setopt NO_GLOB_SUBST
10063
 
  fi
 
9809
  fi  
10064
9810
  # Now quote all the things that may contain metacharacters while being
10065
9811
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10066
9812
  # variables and quote the copies for generation of the libtool script.
10067
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10068
 
    SED SHELL STRIP \
 
9813
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
10069
9814
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10070
9815
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10071
9816
    deplibs_check_method reload_flag reload_cmds need_locks \
10115
9860
    _LT_AC_TAGVAR(archive_cmds, $1) | \
10116
9861
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
10117
9862
    _LT_AC_TAGVAR(module_cmds, $1) | \
10118
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
9863
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
10119
9864
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
10120
9865
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
10121
9866
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10181
9926
SED=$lt_SED
10182
9927
 
10183
9928
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10184
 
Xsed="$SED -e 1s/^X//"
 
9929
Xsed="$SED -e s/^X//"
10185
9930
 
10186
9931
# The HP-UX ksh and POSIX shell print the target directory to stdout
10187
9932
# if CDPATH is set.
10188
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9933
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10189
9934
 
10190
9935
# The names of the tagged configurations supported by this script.
10191
9936
available_tags=
10216
9961
# The host system.
10217
9962
host_alias=$host_alias
10218
9963
host=$host
10219
 
host_os=$host_os
10220
 
 
10221
 
# The build system.
10222
 
build_alias=$build_alias
10223
 
build=$build
10224
 
build_os=$build_os
10225
9964
 
10226
9965
# An echo program that does not interpret backslashes.
10227
9966
echo=$lt_echo
10233
9972
# A C compiler.
10234
9973
LTCC=$lt_LTCC
10235
9974
 
10236
 
# LTCC compiler flags.
10237
 
LTCFLAGS=$lt_LTCFLAGS
10238
 
 
10239
9975
# A language-specific compiler.
10240
9976
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
10241
9977
 
10255
9991
NM=$lt_NM
10256
9992
 
10257
9993
# A symbol stripping program
10258
 
STRIP=$lt_STRIP
 
9994
STRIP=$STRIP
10259
9995
 
10260
9996
# Used to examine libraries when file_magic_cmd begins "file"
10261
9997
MAGIC_CMD=$MAGIC_CMD
10286
10022
libext="$libext"
10287
10023
 
10288
10024
# Shared library suffix (normally ".so").
10289
 
shrext_cmds='$shrext_cmds'
 
10025
shrext='$shrext'
10290
10026
 
10291
10027
# Executable file suffix (normally "").
10292
10028
exeext="$exeext"
10301
10037
# Does compiler simultaneously support -c and -o options?
10302
10038
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
10303
10039
 
10304
 
# Must we lock files when doing compilation?
 
10040
# Must we lock files when doing compilation ?
10305
10041
need_locks=$lt_need_locks
10306
10042
 
10307
10043
# Do we need the lib prefix for modules?
10530
10266
  # If there is no Makefile yet, we rely on a make rule to execute
10531
10267
  # `config.status --recheck' to rerun these tests and create the
10532
10268
  # libtool script then.
10533
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10534
 
  if test -f "$ltmain_in"; then
10535
 
    test -f Makefile && make "$ltmain"
10536
 
  fi
 
10269
  test -f Makefile && make "$ltmain"
10537
10270
fi
10538
10271
])# AC_LIBTOOL_CONFIG
10539
10272
 
10575
10308
# Regexp to match symbols that can be accessed directly from C.
10576
10309
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
10577
10310
 
 
10311
# Transform the above into a raw symbol and a C symbol.
 
10312
symxfrm='\1 \2\3 \3'
 
10313
 
10578
10314
# Transform an extracted symbol line into a proper C declaration
10579
10315
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10580
10316
 
10596
10332
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10597
10333
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
10598
10334
  ;;
10599
 
linux* | k*bsd*-gnu)
10600
 
  if test "$host_cpu" = ia64; then
10601
 
    symcode='[[ABCDGIRSTW]]'
10602
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10603
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
10604
 
  fi
10605
 
  ;;
10606
10335
irix* | nonstopux*)
10607
10336
  symcode='[[BCDEGRST]]'
10608
10337
  ;;
10609
10338
osf*)
10610
10339
  symcode='[[BCDEGQRST]]'
10611
10340
  ;;
10612
 
solaris*)
10613
 
  symcode='[[BDRT]]'
10614
 
  ;;
10615
 
sco3.2v5*)
10616
 
  symcode='[[DT]]'
10617
 
  ;;
10618
 
sysv4.2uw2*)
10619
 
  symcode='[[DT]]'
10620
 
  ;;
10621
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
10622
 
  symcode='[[ABDT]]'
 
10341
solaris* | sysv5*)
 
10342
  symcode='[[BDT]]'
10623
10343
  ;;
10624
10344
sysv4)
10625
10345
  symcode='[[DFNSTU]]'
10637
10357
# If we're using GNU nm, then use its standard symbol codes.
10638
10358
case `$NM -V 2>&1` in
10639
10359
*GNU* | *'with BFD'*)
10640
 
  symcode='[[ABCDGIRSTW]]' ;;
 
10360
  symcode='[[ABCDGISTW]]' ;;
10641
10361
esac
10642
10362
 
10643
10363
# Try without a prefix undercore, then with it.
10644
10364
for ac_symprfx in "" "_"; do
10645
10365
 
10646
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10647
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
10648
 
 
10649
10366
  # Write the raw and C identifiers.
10650
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
10367
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10651
10368
 
10652
10369
  # Check to see that the pipe works correctly.
10653
10370
  pipe_works=no
10803
10520
      # DJGPP does not support shared libraries at all
10804
10521
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10805
10522
      ;;
10806
 
    interix3*)
10807
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10808
 
      # Instead, we relocate shared libraries at runtime.
10809
 
      ;;
10810
10523
    sysv4*MP*)
10811
10524
      if test -d /usr/nec; then
10812
10525
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
10815
10528
    hpux*)
10816
10529
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10817
10530
      # not for PA HP-UX.
10818
 
      case $host_cpu in
 
10531
      case "$host_cpu" in
10819
10532
      hppa*64*|ia64*)
10820
10533
        ;;
10821
10534
      *)
10840
10553
        ;;
10841
10554
      chorus*)
10842
10555
        case $cc_basename in
10843
 
        cxch68*)
 
10556
        cxch68)
10844
10557
          # Green Hills C++ Compiler
10845
10558
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10846
10559
          ;;
10847
10560
        esac
10848
10561
        ;;
10849
 
       darwin*)
10850
 
         # PIC is the default on this platform
10851
 
         # Common symbols not allowed in MH_DYLIB files
10852
 
         case $cc_basename in
10853
 
           xlc*)
10854
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10855
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10856
 
           ;;
10857
 
         esac
10858
 
       ;;
10859
10562
      dgux*)
10860
10563
        case $cc_basename in
10861
 
          ec++*)
 
10564
          ec++)
10862
10565
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10863
10566
            ;;
10864
 
          ghcx*)
 
10567
          ghcx)
10865
10568
            # Green Hills C++ Compiler
10866
10569
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10867
10570
            ;;
10869
10572
            ;;
10870
10573
        esac
10871
10574
        ;;
10872
 
      freebsd* | dragonfly*)
 
10575
      freebsd* | kfreebsd*-gnu)
10873
10576
        # FreeBSD uses GNU C++
10874
10577
        ;;
10875
10578
      hpux9* | hpux10* | hpux11*)
10876
10579
        case $cc_basename in
10877
 
          CC*)
 
10580
          CC)
10878
10581
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10879
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
10582
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10880
10583
            if test "$host_cpu" != ia64; then
10881
10584
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10882
10585
            fi
10883
10586
            ;;
10884
 
          aCC*)
 
10587
          aCC)
10885
10588
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10886
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10887
 
            case $host_cpu in
 
10589
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10590
            case "$host_cpu" in
10888
10591
            hppa*64*|ia64*)
10889
10592
              # +Z the default
10890
10593
              ;;
10897
10600
            ;;
10898
10601
        esac
10899
10602
        ;;
10900
 
      interix*)
10901
 
        # This is c89, which is MS Visual C++ (no shared libs)
10902
 
        # Anyone wants to do a port?
10903
 
        ;;
10904
10603
      irix5* | irix6* | nonstopux*)
10905
10604
        case $cc_basename in
10906
 
          CC*)
 
10605
          CC)
10907
10606
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10908
10607
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10909
10608
            # CC pic flag -KPIC is the default.
10912
10611
            ;;
10913
10612
        esac
10914
10613
        ;;
10915
 
      linux* | k*bsd*-gnu)
 
10614
      linux*)
10916
10615
        case $cc_basename in
10917
 
          KCC*)
 
10616
          KCC)
10918
10617
            # KAI C++ Compiler
10919
10618
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10920
10619
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10921
10620
            ;;
10922
 
          icpc* | ecpc*)
 
10621
          icpc)
10923
10622
            # Intel C++
10924
10623
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10925
10624
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10926
10625
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10927
 
            ;;
10928
 
          pgCC*)
10929
 
            # Portland Group C++ compiler.
10930
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10931
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10932
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10933
 
            ;;
10934
 
          cxx*)
 
10626
            ;; 
 
10627
          cxx)
10935
10628
            # Compaq C++
10936
10629
            # Make sure the PIC flag is empty.  It appears that all Alpha
10937
10630
            # Linux and Compaq Tru64 Unix objects are PIC.
10948
10641
        ;;
10949
10642
      mvs*)
10950
10643
        case $cc_basename in
10951
 
          cxx*)
 
10644
          cxx)
10952
10645
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
10953
10646
            ;;
10954
10647
          *)
10955
10648
            ;;
10956
10649
        esac
10957
10650
        ;;
10958
 
      netbsd* | netbsdelf*-gnu)
 
10651
      netbsd*)
10959
10652
        ;;
10960
10653
      osf3* | osf4* | osf5*)
10961
10654
        case $cc_basename in
10962
 
          KCC*)
 
10655
          KCC)
10963
10656
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10964
10657
            ;;
10965
 
          RCC*)
 
10658
          RCC)
10966
10659
            # Rational C++ 2.4.1
10967
10660
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10968
10661
            ;;
10969
 
          cxx*)
 
10662
          cxx)
10970
10663
            # Digital/Compaq C++
10971
10664
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10972
10665
            # Make sure the PIC flag is empty.  It appears that all Alpha
10980
10673
        ;;
10981
10674
      psos*)
10982
10675
        ;;
 
10676
      sco*)
 
10677
        case $cc_basename in
 
10678
          CC)
 
10679
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
10680
            ;;
 
10681
          *)
 
10682
            ;;
 
10683
        esac
 
10684
        ;;
10983
10685
      solaris*)
10984
10686
        case $cc_basename in
10985
 
          CC*)
 
10687
          CC)
10986
10688
            # Sun C++ 4.2, 5.x and Centerline C++
10987
10689
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10988
10690
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10989
10691
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10990
10692
            ;;
10991
 
          gcx*)
 
10693
          gcx)
10992
10694
            # Green Hills C++ Compiler
10993
10695
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10994
10696
            ;;
10998
10700
        ;;
10999
10701
      sunos4*)
11000
10702
        case $cc_basename in
11001
 
          CC*)
 
10703
          CC)
11002
10704
            # Sun C++ 4.x
11003
10705
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11004
10706
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11005
10707
            ;;
11006
 
          lcc*)
 
10708
          lcc)
11007
10709
            # Lucid
11008
10710
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11009
10711
            ;;
11013
10715
        ;;
11014
10716
      tandem*)
11015
10717
        case $cc_basename in
11016
 
          NCC*)
 
10718
          NCC)
11017
10719
            # NonStop-UX NCC 3.20
11018
10720
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11019
10721
            ;;
11021
10723
            ;;
11022
10724
        esac
11023
10725
        ;;
11024
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11025
 
        case $cc_basename in
11026
 
          CC*)
11027
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11028
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11029
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11030
 
            ;;
11031
 
        esac
 
10726
      unixware*)
11032
10727
        ;;
11033
10728
      vxworks*)
11034
10729
        ;;
11075
10770
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11076
10771
      ;;
11077
10772
 
11078
 
    interix3*)
11079
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11080
 
      # Instead, we relocate shared libraries at runtime.
11081
 
      ;;
11082
 
 
11083
10773
    msdosdjgpp*)
11084
10774
      # Just because we use GCC doesn't mean we suddenly get shared libraries
11085
10775
      # on systems that don't support them.
11096
10786
    hpux*)
11097
10787
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11098
10788
      # not for PA HP-UX.
11099
 
      case $host_cpu in
 
10789
      case "$host_cpu" in
11100
10790
      hppa*64*|ia64*)
11101
10791
        # +Z the default
11102
10792
        ;;
11122
10812
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11123
10813
      fi
11124
10814
      ;;
11125
 
      darwin*)
11126
 
        # PIC is the default on this platform
11127
 
        # Common symbols not allowed in MH_DYLIB files
11128
 
       case $cc_basename in
11129
 
         xlc*)
11130
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
11131
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11132
 
         ;;
11133
 
       esac
11134
 
       ;;
11135
10815
 
11136
10816
    mingw* | pw32* | os2*)
11137
10817
      # This hack is so that the source file can tell whether it is being
11143
10823
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11144
10824
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11145
10825
      # not for PA HP-UX.
11146
 
      case $host_cpu in
 
10826
      case "$host_cpu" in
11147
10827
      hppa*64*|ia64*)
11148
10828
        # +Z the default
11149
10829
        ;;
11166
10846
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11167
10847
      ;;
11168
10848
 
11169
 
    linux* | k*bsd*-gnu)
11170
 
      case $cc_basename in
 
10849
    linux*)
 
10850
      case $CC in
11171
10851
      icc* | ecc*)
11172
10852
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11173
10853
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11174
10854
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11175
10855
        ;;
11176
 
      pgcc* | pgf77* | pgf90* | pgf95*)
11177
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
11178
 
        # which looks to be a dead project)
11179
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11180
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
11181
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11182
 
        ;;
11183
10856
      ccc*)
11184
10857
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11185
10858
        # All Alpha code is PIC.
11194
10867
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11195
10868
      ;;
11196
10869
 
 
10870
    sco3.2v5*)
 
10871
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
10872
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
10873
      ;;
 
10874
 
11197
10875
    solaris*)
 
10876
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11198
10877
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11199
10878
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11200
 
      case $cc_basename in
11201
 
      f77* | f90* | f95*)
11202
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
11203
 
      *)
11204
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
11205
 
      esac
11206
10879
      ;;
11207
10880
 
11208
10881
    sunos4*)
11211
10884
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11212
10885
      ;;
11213
10886
 
11214
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
10887
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11215
10888
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11216
10889
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11217
10890
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11224
10897
      fi
11225
10898
      ;;
11226
10899
 
11227
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11228
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11229
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11230
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11231
 
      ;;
11232
 
 
11233
 
    unicos*)
11234
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11235
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11236
 
      ;;
11237
 
 
11238
10900
    uts4*)
11239
10901
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11240
10902
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11262
10924
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11263
10925
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11264
10926
fi
11265
 
case $host_os in
 
10927
case "$host_os" in
11266
10928
  # For platforms which do not support PIC, -DPIC is meaningless:
11267
10929
  *djgpp*)
11268
10930
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11271
10933
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
11272
10934
    ;;
11273
10935
esac
11274
 
 
11275
 
#
11276
 
# Check to make sure the static flag actually works.
11277
 
#
11278
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
11279
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
11280
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
11281
 
  $lt_tmp_static_flag,
11282
 
  [],
11283
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
11284
10936
])
11285
10937
 
11286
10938
 
11305
10957
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11306
10958
  ;;
11307
10959
  cygwin* | mingw*)
11308
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11309
 
  ;;
11310
 
  linux* | k*bsd*-gnu)
11311
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
10960
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11312
10961
  ;;
11313
10962
  *)
11314
10963
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11334
10983
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
11335
10984
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
11336
10985
  _LT_AC_TAGVAR(module_cmds, $1)=
11337
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
10986
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
11338
10987
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
11339
10988
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11340
10989
  # include_expsyms should be a list of space-separated symbols to be *always*
11351
11000
  # rely on this symbol name, it's probably fine to never include it in
11352
11001
  # preloaded symbol tables.
11353
11002
  extract_expsyms_cmds=
11354
 
  # Just being paranoid about ensuring that cc_basename is set.
11355
 
  _LT_CC_BASENAME([$compiler])
 
11003
 
11356
11004
  case $host_os in
11357
11005
  cygwin* | mingw* | pw32*)
11358
11006
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11362
11010
      with_gnu_ld=no
11363
11011
    fi
11364
11012
    ;;
11365
 
  interix*)
11366
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
11367
 
    with_gnu_ld=yes
11368
 
    ;;
11369
11013
  openbsd*)
11370
11014
    with_gnu_ld=no
11371
11015
    ;;
11376
11020
    # If archive_cmds runs LD, not CC, wlarc should be empty
11377
11021
    wlarc='${wl}'
11378
11022
 
11379
 
    # Set some defaults for GNU ld with shared library support. These
11380
 
    # are reset later if shared libraries are not supported. Putting them
11381
 
    # here allows them to be overridden if necessary.
11382
 
    runpath_var=LD_RUN_PATH
11383
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
11384
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
11385
 
    # ancient GNU ld didn't support --whole-archive et. al.
11386
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11387
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11388
 
      else
11389
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11390
 
    fi
11391
 
    supports_anon_versioning=no
11392
 
    case `$LD -v 2>/dev/null` in
11393
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
11394
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11395
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11396
 
      *\ 2.11.*) ;; # other 2.11 versions
11397
 
      *) supports_anon_versioning=yes ;;
11398
 
    esac
11399
 
 
11400
11023
    # See if GNU ld supports shared libraries.
11401
11024
    case $host_os in
11402
11025
    aix3* | aix4* | aix5*)
11434
11057
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11435
11058
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11436
11059
        # support --undefined.  This deserves some investigation.  FIXME
11437
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11060
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
11438
11061
      else
11439
11062
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11440
11063
      fi
11444
11067
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
11445
11068
      # as there is no search path for DLLs.
11446
11069
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11447
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
11070
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
11448
11071
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
11449
11072
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11450
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11073
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11451
11074
 
11452
11075
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11453
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11076
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11454
11077
        # If the export-symbols file already is a .def file (1st line
11455
11078
        # is EXPORTS), use it as is; otherwise, prepend...
11456
11079
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11459
11082
          echo EXPORTS > $output_objdir/$soname.def;
11460
11083
          cat $export_symbols >> $output_objdir/$soname.def;
11461
11084
        fi~
11462
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11463
 
      else
11464
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11465
 
      fi
11466
 
      ;;
11467
 
 
11468
 
    interix3*)
11469
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
11470
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11471
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11472
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11473
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11474
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
11475
 
      # default) and relocated if they conflict, which is a slow very memory
11476
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
11477
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11478
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11479
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11480
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11481
 
      ;;
11482
 
 
11483
 
    linux* | k*bsd*-gnu)
11484
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11485
 
        tmp_addflag=
11486
 
        case $cc_basename,$host_cpu in
11487
 
        pgcc*)                          # Portland Group C compiler
11488
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11489
 
          tmp_addflag=' $pic_flag'
11490
 
          ;;
11491
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11492
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11493
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
11494
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
11495
 
          tmp_addflag=' -i_dynamic' ;;
11496
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11497
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
11498
 
        ifc* | ifort*)                  # Intel Fortran compiler
11499
 
          tmp_addflag=' -nofor_main' ;;
11500
 
        esac
11501
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11502
 
 
11503
 
        if test $supports_anon_versioning = yes; then
11504
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11505
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11506
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
11507
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11508
 
        fi
11509
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11510
 
      else
11511
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11512
 
      fi
11513
 
      ;;
11514
 
 
11515
 
    netbsd* | netbsdelf*-gnu)
 
11085
        $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
11086
      else
 
11087
        ld_shlibs=no
 
11088
      fi
 
11089
      ;;
 
11090
 
 
11091
    netbsd*)
11516
11092
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11517
11093
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11518
11094
        wlarc=
11519
11095
      else
11520
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11521
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11096
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11097
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11522
11098
      fi
11523
11099
      ;;
11524
11100
 
11525
 
    solaris*)
 
11101
    solaris* | sysv5*)
11526
11102
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11527
11103
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11528
11104
        cat <<EOF 1>&2
11536
11112
 
11537
11113
EOF
11538
11114
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11539
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11540
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11115
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11116
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11541
11117
      else
11542
11118
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11543
11119
      fi
11544
11120
      ;;
11545
11121
 
11546
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11547
 
      case `$LD -v 2>&1` in
11548
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
11549
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11550
 
        cat <<_LT_EOF 1>&2
11551
 
 
11552
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11553
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
11554
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
11555
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11556
 
*** your PATH or compiler configuration so that the native linker is
11557
 
*** used, and then restart.
11558
 
 
11559
 
_LT_EOF
11560
 
        ;;
11561
 
        *)
11562
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11563
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11564
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11565
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11566
 
          else
11567
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
11568
 
          fi
11569
 
        ;;
11570
 
      esac
11571
 
      ;;
11572
 
 
11573
11122
    sunos4*)
11574
11123
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11575
11124
      wlarc=
11579
11128
 
11580
11129
    *)
11581
11130
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11582
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11583
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11131
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
 
11132
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11584
11133
      else
11585
11134
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11586
11135
      fi
11587
11136
      ;;
11588
11137
    esac
11589
11138
 
11590
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
11591
 
      runpath_var=
11592
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11593
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11594
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
11139
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
 
11140
      runpath_var=LD_RUN_PATH
 
11141
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
11142
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
11143
      # ancient GNU ld didn't support --whole-archive et. al.
 
11144
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
11145
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11146
      else
 
11147
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
11148
      fi
11595
11149
    fi
11596
11150
  else
11597
11151
    # PORTME fill in a description of your system's linker (not GNU ld)
11603
11157
      # Note: this linker hardcodes the directories in LIBPATH if there
11604
11158
      # are no directories specified by -L.
11605
11159
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11606
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
11160
      if test "$GCC" = yes && test -z "$link_static_flag"; then
11607
11161
        # Neither direct hardcoding nor static linking is supported with a
11608
11162
        # broken collect2.
11609
11163
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11625
11179
        else
11626
11180
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11627
11181
        fi
11628
 
        aix_use_runtimelinking=no
11629
 
 
11630
 
        # Test if we are trying to use run time linking or normal
11631
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11632
 
        # need to do runtime linking.
11633
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
11634
 
          for ld_flag in $LDFLAGS; do
11635
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11636
 
            aix_use_runtimelinking=yes
11637
 
            break
11638
 
          fi
11639
 
          done
11640
 
          ;;
11641
 
        esac
11642
 
 
 
11182
 
 
11183
        # KDE requires run time linking.  Make it the default.
 
11184
        aix_use_runtimelinking=yes
11643
11185
        exp_sym_flag='-bexport'
11644
11186
        no_entry_flag='-bnoentry'
11645
11187
      fi
11656
11198
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11657
11199
 
11658
11200
      if test "$GCC" = yes; then
11659
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
11201
        case $host_os in aix4.[012]|aix4.[012].*)
11660
11202
        # We only want to do this on AIX 4.2 and lower, the check
11661
11203
        # below for broken collect2 doesn't work under 4.3+
11662
11204
          collect2name=`${CC} -print-prog-name=collect2`
11675
11217
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11676
11218
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11677
11219
          fi
11678
 
          ;;
11679
11220
        esac
11680
11221
        shared_flag='-shared'
11681
 
        if test "$aix_use_runtimelinking" = yes; then
11682
 
          shared_flag="$shared_flag "'${wl}-G'
11683
 
        fi
11684
11222
      else
11685
11223
        # not using gcc
11686
11224
        if test "$host_cpu" = ia64; then
11688
11226
        # chokes on -Wl,-G. The following line is correct:
11689
11227
          shared_flag='-G'
11690
11228
        else
11691
 
          if test "$aix_use_runtimelinking" = yes; then
11692
 
            shared_flag='${wl}-G'
 
11229
        if test "$aix_use_runtimelinking" = yes; then
 
11230
            shared_flag='-qmkshrobj ${wl}-G'
11693
11231
          else
11694
 
            shared_flag='${wl}-bM:SRE'
11695
 
          fi
 
11232
            shared_flag='-qmkshrobj'
 
11233
        fi
11696
11234
        fi
11697
11235
      fi
11698
11236
 
11699
 
      # It seems that -bexpall does not export symbols beginning with
11700
 
      # underscore (_), so it is better to generate a list of symbols to export.
11701
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
11237
      # Let the compiler handle the export list.
 
11238
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
11702
11239
      if test "$aix_use_runtimelinking" = yes; then
11703
11240
        # Warning - without using the other runtime loading flags (-brtl),
11704
11241
        # -berok will link without error, but may produce a broken library.
11705
11242
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
11706
11243
       # Determine the default libpath from the value encoded in an empty executable.
11707
 
       _LT_AC_SYS_LIBPATH_AIX
11708
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11709
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11244
        _LT_AC_SYS_LIBPATH_AIX
 
11245
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11246
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
 
11247
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11710
11248
       else
11711
11249
        if test "$host_cpu" = ia64; then
11712
11250
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
11713
11251
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
11714
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11252
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11715
11253
        else
11716
11254
         # Determine the default libpath from the value encoded in an empty executable.
11717
11255
         _LT_AC_SYS_LIBPATH_AIX
11720
11258
          # -berok will link without error, but may produce a broken library.
11721
11259
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
11722
11260
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
11261
          # -bexpall does not export symbols beginning with underscore (_)
 
11262
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11723
11263
          # Exported symbols can be pulled into shared objects from archives
11724
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
11264
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
11725
11265
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11726
 
          # This is similar to how AIX traditionally builds its shared libraries.
11727
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11266
          # This is similar to how AIX traditionally builds it's shared libraries.
 
11267
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11728
11268
        fi
11729
11269
      fi
11730
11270
      ;;
11737
11277
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
11738
11278
      ;;
11739
11279
 
11740
 
    bsdi[[45]]*)
 
11280
    bsdi4*)
11741
11281
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
11742
11282
      ;;
11743
11283
 
11747
11287
      # hardcode_libdir_flag_spec is actually meaningless, as there is
11748
11288
      # no search path for DLLs.
11749
11289
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
11750
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
11290
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=no
11751
11291
      # Tell ltmain to make .lib files, not .a files.
11752
11292
      libext=lib
11753
11293
      # Tell ltmain to make .dll files, not .so files.
11754
 
      shrext_cmds=".dll"
 
11294
      shrext=".dll"
11755
11295
      # FIXME: Setting linknames here is a bad hack.
11756
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
11296
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11757
11297
      # The linker will automatically build a .lib file if we build a DLL.
11758
11298
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11759
11299
      # FIXME: Should let the user specify the lib program.
11760
11300
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
11761
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
11301
      fix_srcfile_path='`cygpath -w "$srcfile"`'
11762
11302
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11763
11303
      ;;
11764
11304
 
11765
11305
    darwin* | rhapsody*)
11766
 
      case $host_os in
11767
 
        rhapsody* | darwin1.[[012]])
11768
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
11769
 
         ;;
11770
 
       *) # Darwin 1.3 on
11771
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11772
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11773
 
         else
11774
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11775
 
             10.[[012]])
11776
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11777
 
               ;;
11778
 
             10.*)
11779
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
11780
 
               ;;
11781
 
           esac
11782
 
         fi
11783
 
         ;;
 
11306
    if test "$GXX" = yes ; then
 
11307
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
11308
      case "$host_os" in
 
11309
      rhapsody* | darwin1.[[012]])
 
11310
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,suppress'
 
11311
        ;;
 
11312
      *) # Darwin 1.3 on
 
11313
        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11314
          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
11315
        else
 
11316
          case ${MACOSX_DEPLOYMENT_TARGET} in
 
11317
            10.[012])
 
11318
              _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
 
11319
              ;;
 
11320
            10.*)
 
11321
              _LT_AC_TAGVAR(allow_undefined_flag, $1)='-Wl,-undefined -Wl,dynamic_lookup'
 
11322
              ;;
 
11323
          esac
 
11324
        fi
 
11325
        ;;
11784
11326
      esac
11785
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11786
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
11787
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
11788
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11789
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
11790
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11791
 
    if test "$GCC" = yes ; then
 
11327
        lt_int_apple_cc_single_mod=no
11792
11328
        output_verbose_link_cmd='echo'
11793
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11794
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11795
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11796
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11797
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11798
 
    else
11799
 
      case $cc_basename in
11800
 
        xlc*)
11801
 
         output_verbose_link_cmd='echo'
11802
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11803
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11806
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11807
 
          ;;
11808
 
       *)
11809
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
11810
 
          ;;
11811
 
      esac
11812
 
    fi
 
11329
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11330
          lt_int_apple_cc_single_mod=yes
 
11331
        fi
 
11332
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11333
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
 
11334
        else
 
11335
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
 
11336
      fi
 
11337
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
 
11338
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11339
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11340
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11341
        else
 
11342
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11343
        fi
 
11344
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11345
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
11346
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
11347
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
11348
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
11349
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
11350
    else  
 
11351
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
11352
    fi  
11813
11353
      ;;
11814
11354
 
11815
11355
    dgux*)
11842
11382
      ;;
11843
11383
 
11844
11384
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11845
 
    freebsd* | dragonfly*)
11846
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
11385
    freebsd* | kfreebsd*-gnu)
 
11386
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
11847
11387
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11848
11388
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11849
11389
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11851
11391
 
11852
11392
    hpux9*)
11853
11393
      if test "$GCC" = yes; then
11854
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11394
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11855
11395
      else
11856
11396
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11857
11397
      fi
11865
11405
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11866
11406
      ;;
11867
11407
 
11868
 
    hpux10*)
11869
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11870
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11871
 
      else
11872
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11873
 
      fi
11874
 
      if test "$with_gnu_ld" = no; then
11875
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11876
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11877
 
 
11878
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11879
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11880
 
 
11881
 
        # hardcode_minus_L: Not really in the search PATH,
11882
 
        # but as the default location of the library.
11883
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11884
 
      fi
11885
 
      ;;
11886
 
 
11887
 
    hpux11*)
11888
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11889
 
        case $host_cpu in
11890
 
        hppa*64*)
11891
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11892
 
          ;;
11893
 
        ia64*)
11894
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11895
 
          ;;
11896
 
        *)
11897
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11898
 
          ;;
11899
 
        esac
11900
 
      else
11901
 
        case $host_cpu in
11902
 
        hppa*64*)
11903
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11904
 
          ;;
11905
 
        ia64*)
11906
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11907
 
          ;;
11908
 
        *)
11909
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11910
 
          ;;
11911
 
        esac
11912
 
      fi
11913
 
      if test "$with_gnu_ld" = no; then
11914
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11915
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11916
 
 
11917
 
        case $host_cpu in
11918
 
        hppa*64*|ia64*)
 
11408
    hpux10* | hpux11*)
 
11409
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
11410
        case "$host_cpu" in
 
11411
        hppa*64*|ia64*)
 
11412
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
11413
          ;;
 
11414
        *)
 
11415
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
 
11416
          ;;
 
11417
        esac
 
11418
      else
 
11419
        case "$host_cpu" in
 
11420
        hppa*64*|ia64*)
 
11421
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11422
          ;;
 
11423
        *)
 
11424
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
11425
          ;;
 
11426
        esac
 
11427
      fi
 
11428
      if test "$with_gnu_ld" = no; then
 
11429
        case "$host_cpu" in
 
11430
        hppa*64*)
 
11431
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11919
11432
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
11920
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
11921
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11433
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
11434
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
11435
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11436
          ;;
 
11437
        ia64*)
 
11438
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
11439
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
11440
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11441
 
 
11442
          # hardcode_minus_L: Not really in the search PATH,
 
11443
          # but as the default location of the library.
 
11444
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11922
11445
          ;;
11923
11446
        *)
 
11447
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
11448
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11924
11449
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11925
11450
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11926
11451
 
11934
11459
 
11935
11460
    irix5* | irix6* | nonstopux*)
11936
11461
      if test "$GCC" = yes; then
11937
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11462
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11938
11463
      else
11939
11464
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11940
11465
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
11944
11469
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11945
11470
      ;;
11946
11471
 
11947
 
    netbsd* | netbsdelf*-gnu)
 
11472
    netbsd*)
11948
11473
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11949
11474
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11950
11475
      else
11967
11492
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11968
11493
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11969
11494
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11970
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11971
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
11495
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11972
11496
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11973
11497
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11974
11498
      else
11978
11502
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11979
11503
           ;;
11980
11504
         *)
11981
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11505
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11982
11506
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11983
11507
           ;;
11984
11508
       esac
11989
11513
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11990
11514
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11991
11515
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11992
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
11516
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
11993
11517
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11994
11518
      ;;
11995
11519
 
11996
11520
    osf3*)
11997
11521
      if test "$GCC" = yes; then
11998
11522
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11999
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11523
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12000
11524
      else
12001
11525
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12002
11526
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12008
11532
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
12009
11533
      if test "$GCC" = yes; then
12010
11534
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12011
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11535
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12012
11536
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12013
11537
      else
12014
11538
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12015
11539
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12016
11540
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12017
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
11541
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12018
11542
 
12019
11543
        # Both c and cxx compiler support -rpath directly
12020
11544
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12022
11546
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12023
11547
      ;;
12024
11548
 
 
11549
    sco3.2v5*)
 
11550
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11551
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11552
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
11553
      runpath_var=LD_RUN_PATH
 
11554
      hardcode_runpath_var=yes
 
11555
      ;;
 
11556
 
12025
11557
    solaris*)
12026
11558
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
12027
11559
      if test "$GCC" = yes; then
12028
 
        wlarc='${wl}'
12029
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11560
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
12030
11561
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12031
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
11562
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
12032
11563
      else
12033
 
        wlarc=''
12034
11564
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12035
11565
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12036
11566
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12039
11569
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12040
11570
      case $host_os in
12041
11571
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12042
 
      *)
12043
 
        # The compiler driver will combine linker options so we
12044
 
        # cannot just pass the convience library names through
12045
 
        # without $wl, iff we do not link with $LD.
12046
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
12047
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
12048
 
        case $wlarc in
12049
 
        '')
12050
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12051
 
        *)
12052
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12053
 
        esac ;;
 
11572
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11573
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12054
11574
      esac
12055
11575
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12056
11576
      ;;
12059
11579
      if test "x$host_vendor" = xsequent; then
12060
11580
        # Use $CC to link under sequent, because it throws in some extra .o
12061
11581
        # files that make .init and .fini sections work.
12062
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11582
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
12063
11583
      else
12064
11584
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12065
11585
      fi
12107
11627
      fi
12108
11628
      ;;
12109
11629
 
12110
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
12111
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12112
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12113
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12114
 
      runpath_var='LD_RUN_PATH'
12115
 
 
12116
 
      if test "$GCC" = yes; then
12117
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12118
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12119
 
      else
12120
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12121
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12122
 
      fi
12123
 
      ;;
12124
 
 
12125
 
    sysv5* | sco3.2v5* | sco5v6*)
12126
 
      # Note: We can NOT use -z defs as we might desire, because we do not
12127
 
      # link with -lc, and that would cause any symbols used from libc to
12128
 
      # always be unresolved, which means just about no library would
12129
 
      # ever link correctly.  If we're not using GNU ld we use -z text
12130
 
      # though, which does catch some bad symbols but isn't as heavy-handed
12131
 
      # as -z defs.
12132
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12133
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
12134
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12135
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12136
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12137
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12138
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12139
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
12140
 
      runpath_var='LD_RUN_PATH'
12141
 
 
12142
 
      if test "$GCC" = yes; then
12143
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12144
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12145
 
      else
12146
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12147
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12148
 
      fi
 
11630
    sysv4.2uw2*)
 
11631
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
11632
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
11633
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
11634
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11635
      hardcode_runpath_var=yes
 
11636
      runpath_var=LD_RUN_PATH
 
11637
      ;;
 
11638
 
 
11639
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
11640
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
11641
      if test "$GCC" = yes; then
 
11642
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
11643
      else
 
11644
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
 
11645
      fi
 
11646
      runpath_var='LD_RUN_PATH'
 
11647
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11648
      ;;
 
11649
 
 
11650
    sysv5*)
 
11651
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
11652
      # $CC -shared without GNU ld will not create a library from C++
 
11653
      # object files and a static libstdc++, better avoid it by now
 
11654
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11655
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11656
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
11657
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
11658
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
11659
      runpath_var='LD_RUN_PATH'
12149
11660
      ;;
12150
11661
 
12151
11662
    uts4*)
12163
11674
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
12164
11675
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
12165
11676
 
 
11677
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11678
if test "$GCC" = yes; then
 
11679
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11680
fi
 
11681
 
12166
11682
#
12167
11683
# Do we need to explicitly link libc?
12168
11684
#
12183
11699
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12184
11700
      $rm conftest*
12185
11701
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12186
 
 
 
11702
  
12187
11703
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12188
11704
        soname=conftest
12189
11705
        lib=conftest
12190
11706
        libobjs=conftest.$ac_objext
12191
11707
        deplibs=
12192
11708
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
12193
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
12194
11709
        compiler_flags=-v
12195
11710
        linker_flags=-v
12196
11711
        verstring=
12318
11833
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12319
11834
# along with /bin/sed that truncates output.
12320
11835
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12321
 
  test ! -f $lt_ac_sed && continue
 
11836
  test ! -f $lt_ac_sed && break
12322
11837
  cat /dev/null > conftest.in
12323
11838
  lt_ac_count=0
12324
11839
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in