~ubuntu-branches/ubuntu/saucy/libgksu1.2/saucy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2005-11-10 22:41:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051110224126-qas4smtk4w5gcgfr
Tags: 1.3.6-1ubuntu1
merged with debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
6872
6872
 
6873
6873
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
6874
6874
 
6875
 
# serial 47 AC_PROG_LIBTOOL
6876
 
# Debian $Rev: 214 $
 
6875
# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
6877
6876
 
6878
6877
 
6879
6878
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6983
6982
 
6984
6983
# Sed substitution that helps us do robust quoting.  It backslashifies
6985
6984
# metacharacters that are still active within double-quoted strings.
6986
 
Xsed='sed -e s/^X//'
 
6985
Xsed='sed -e 1s/^X//'
6987
6986
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
6988
6987
 
6989
6988
# Same as above, but do not quote variable references.
7003
7002
default_ofile=libtool
7004
7003
can_build_shared=yes
7005
7004
 
7006
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7005
# All known linkers require a `.a' archive for static linking (except MSVC,
7007
7006
# which needs '.lib').
7008
7007
libext=a
7009
7008
ltmain="$ac_aux_dir/ltmain.sh"
7051
7050
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7052
7051
fi
7053
7052
 
 
7053
_LT_CC_BASENAME([$compiler])
 
7054
 
7054
7055
# Only perform the check for file, if the check method requires it
7055
7056
case $deplibs_check_method in
7056
7057
file_magic*)
7096
7097
])# _LT_AC_SYS_COMPILER
7097
7098
 
7098
7099
 
 
7100
# _LT_CC_BASENAME(CC)
 
7101
# -------------------
 
7102
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
7103
AC_DEFUN([_LT_CC_BASENAME],
 
7104
[for cc_temp in $1""; do
 
7105
  case $cc_temp in
 
7106
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
7107
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
7108
    \-*) ;;
 
7109
    *) break;;
 
7110
  esac
 
7111
done
 
7112
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7113
])
 
7114
 
 
7115
 
 
7116
# _LT_COMPILER_BOILERPLATE
 
7117
# ------------------------
 
7118
# Check for compiler boilerplate output or warnings with
 
7119
# the simple compiler test code.
 
7120
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
7121
[ac_outfile=conftest.$ac_objext
 
7122
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7123
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7124
_lt_compiler_boilerplate=`cat conftest.err`
 
7125
$rm conftest*
 
7126
])# _LT_COMPILER_BOILERPLATE
 
7127
 
 
7128
 
 
7129
# _LT_LINKER_BOILERPLATE
 
7130
# ----------------------
 
7131
# Check for linker boilerplate output or warnings with
 
7132
# the simple link test code.
 
7133
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
7134
[ac_outfile=conftest.$ac_objext
 
7135
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7136
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
7137
_lt_linker_boilerplate=`cat conftest.err`
 
7138
$rm conftest*
 
7139
])# _LT_LINKER_BOILERPLATE
 
7140
 
 
7141
 
7099
7142
# _LT_AC_SYS_LIBPATH_AIX
7100
7143
# ----------------------
7101
7144
# Links a minimal program and checks the executable
7168
7211
 
7169
7212
# The HP-UX ksh and POSIX shell print the target directory to stdout
7170
7213
# if CDPATH is set.
7171
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
7214
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7172
7215
 
7173
7216
if test -z "$ECHO"; then
7174
7217
if test "X${echo_test_string+set}" != Xset; then
7175
7218
# find a string as large as possible, as long as the shell can cope with it
7176
7219
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
7177
7220
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
7178
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
7179
 
       echo_test_string="`eval $cmd`" &&
 
7221
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
7222
       echo_test_string=`eval $cmd` &&
7180
7223
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
7181
7224
    then
7182
7225
      break
7345
7388
  # Find out which ABI we are using.
7346
7389
  echo 'int i;' > conftest.$ac_ext
7347
7390
  if AC_TRY_EVAL(ac_compile); then
7348
 
    case "`/usr/bin/file conftest.o`" in
 
7391
    case `/usr/bin/file conftest.o` in
7349
7392
    *32-bit*)
7350
7393
      case $host in
7351
7394
        x86_64-*linux*)
7427
7470
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7428
7471
   # The option is referenced via a variable to avoid confusing sed.
7429
7472
   lt_compile=`echo "$ac_compile" | $SED \
7430
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7473
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431
7474
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
7432
7475
   -e 's:$: $lt_compiler_flag:'`
7433
7476
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
7437
7480
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
7438
7481
   if (exit $ac_status) && test -s "$ac_outfile"; then
7439
7482
     # The compiler can only warn and ignore the option if not recognized
7440
 
     # So say no if there are warnings
7441
 
     if test ! -s conftest.err; then
 
7483
     # So say no if there are warnings other than the usual output.
 
7484
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
7485
     $SED '/^$/d' conftest.err >conftest.er2
 
7486
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7442
7487
       $2=yes
7443
7488
     fi
7444
7489
   fi
7464
7509
   LDFLAGS="$LDFLAGS $3"
7465
7510
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7466
7511
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7467
 
     # The compiler can only warn and ignore the option if not recognized
 
7512
     # The linker can only warn and ignore the option if not recognized
7468
7513
     # So say no if there are warnings
7469
7514
     if test -s conftest.err; then
7470
7515
       # Append any errors to the config.log.
7471
7516
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
7517
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
7518
       $SED '/^$/d' conftest.err >conftest.er2
 
7519
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7520
         $2=yes
 
7521
       fi
7472
7522
     else
7473
7523
       $2=yes
7474
7524
     fi
7527
7577
    lt_cv_sys_max_cmd_len=8192;
7528
7578
    ;;
7529
7579
 
7530
 
 *)
 
7580
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
7581
    # This has been around since 386BSD, at least.  Likely further.
 
7582
    if test -x /sbin/sysctl; then
 
7583
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7584
    elif test -x /usr/sbin/sysctl; then
 
7585
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7586
    else
 
7587
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
7588
    fi
 
7589
    # And add a safety zone
 
7590
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7591
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7592
    ;;
 
7593
  osf*)
 
7594
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7595
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7596
    # nice to cause kernel panics so lets avoid the loop below.
 
7597
    # First set a reasonable default.
 
7598
    lt_cv_sys_max_cmd_len=16384
 
7599
    #
 
7600
    if test -x /sbin/sysconfig; then
 
7601
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7602
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7603
      esac
 
7604
    fi
 
7605
    ;;
 
7606
  *)
7531
7607
    # If test is not a shell built-in, we'll probably end up computing a
7532
7608
    # maximum length that is only half of the actual maximum length, but
7533
7609
    # we can't tell.
7534
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7610
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7611
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
7535
7612
               = "XX$teststring") >/dev/null 2>&1 &&
7536
7613
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7537
7614
            lt_cv_sys_max_cmd_len=$new_result &&
7636
7713
}]
7637
7714
EOF
7638
7715
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
7639
 
    (./conftest; exit; ) 2>/dev/null
 
7716
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
7640
7717
    lt_status=$?
7641
7718
    case x$lt_status in
7642
7719
      x$lt_dlno_uscore) $1 ;;
7785
7862
   # Note that $ac_compile itself does not contain backslashes and begins
7786
7863
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7787
7864
   lt_compile=`echo "$ac_compile" | $SED \
7788
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7865
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789
7866
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
7790
7867
   -e 's:$: $lt_compiler_flag:'`
7791
7868
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
7797
7874
   then
7798
7875
     # The compiler can only warn and ignore the option if not recognized
7799
7876
     # So say no if there are warnings
7800
 
     if test ! -s out/conftest.err; then
 
7877
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
7878
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
7879
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7801
7880
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7802
7881
     fi
7803
7882
   fi
7804
 
   chmod u+w .
 
7883
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
7805
7884
   $rm conftest*
7806
7885
   # SGI C++ compiler will create directory out/ii_files/ for
7807
7886
   # template instantiation
7865
7944
[AC_MSG_CHECKING([how to hardcode library paths into programs])
7866
7945
_LT_AC_TAGVAR(hardcode_action, $1)=
7867
7946
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
7868
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
7869
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
7947
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
7948
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
7870
7949
 
7871
7950
  # We can hardcode non-existant directories.
7872
7951
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
8033
8112
  shlibpath_var=LIBRARY_PATH
8034
8113
  ;;
8035
8114
 
8036
 
bsdi4*)
 
8115
bsdi[[45]]*)
8037
8116
  version_type=linux
8038
8117
  need_version=no
8039
8118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8061
8140
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8062
8141
      dldir=$destdir/`dirname \$dlpath`~
8063
8142
      test -d \$dldir || mkdir -p \$dldir~
8064
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8143
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8144
      chmod a+x \$dldir/$dlname'
8065
8145
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8066
8146
      dlpath=$dir/\$dldll~
8067
8147
       $rm \$dlpath'
8091
8171
      ;;
8092
8172
    pw32*)
8093
8173
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8094
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8174
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
8095
8175
      ;;
8096
8176
    esac
8097
8177
    ;;
8114
8194
  soname_spec='${libname}${release}${major}$shared_ext'
8115
8195
  shlibpath_overrides_runpath=yes
8116
8196
  shlibpath_var=DYLD_LIBRARY_PATH
8117
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8197
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8118
8198
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8119
8199
  if test "$GCC" = yes; then
8120
8200
    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"`
8149
8229
  dynamic_linker='GNU ld.so'
8150
8230
  ;;
8151
8231
 
8152
 
freebsd*)
8153
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8232
freebsd* | dragonfly*)
 
8233
  # DragonFly does not have aout.  When/if they implement a new
 
8234
  # versioning mechanism, adjust this.
 
8235
  if test -x /usr/bin/objformat; then
 
8236
    objformat=`/usr/bin/objformat`
 
8237
  else
 
8238
    case $host_os in
 
8239
    freebsd[[123]]*) objformat=aout ;;
 
8240
    *) objformat=elf ;;
 
8241
    esac
 
8242
  fi
8154
8243
  version_type=freebsd-$objformat
8155
8244
  case $version_type in
8156
8245
    freebsd-elf*)
8168
8257
  freebsd2*)
8169
8258
    shlibpath_overrides_runpath=yes
8170
8259
    ;;
8171
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8260
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
8172
8261
    shlibpath_overrides_runpath=yes
8173
8262
    hardcode_into_libs=yes
8174
8263
    ;;
8195
8284
  version_type=sunos
8196
8285
  need_lib_prefix=no
8197
8286
  need_version=no
8198
 
  case "$host_cpu" in
 
8287
  case $host_cpu in
8199
8288
  ia64*)
8200
8289
    shrext_cmds='.so'
8201
8290
    hardcode_into_libs=yes
8294
8383
 
8295
8384
  # Append ld.so.conf contents to the search path
8296
8385
  if test -f /etc/ld.so.conf; then
8297
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8386
    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' ' '`
8298
8387
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8299
8388
  fi
8300
8389
 
8369
8458
openbsd*)
8370
8459
  version_type=sunos
8371
8460
  need_lib_prefix=no
8372
 
  need_version=yes
 
8461
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8462
  case $host_os in
 
8463
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8464
    *)                         need_version=no  ;;
 
8465
  esac
8373
8466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8374
8467
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8375
8468
  shlibpath_var=LD_LIBRARY_PATH
8535
8628
 
8536
8629
      case $tagname in
8537
8630
      CXX)
8538
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
8631
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
8632
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
8633
            (test "X$CXX" != "Xg++"))) ; then
8539
8634
          AC_LIBTOOL_LANG_CXX_CONFIG
8540
8635
        else
8541
8636
          tagname=""
8597
8692
 
8598
8693
# AC_LIBTOOL_WIN32_DLL
8599
8694
# --------------------
8600
 
# declare package support for building win32 dll's
 
8695
# declare package support for building win32 DLLs
8601
8696
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
8602
8697
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
8603
8698
])# AC_LIBTOOL_WIN32_DLL
8771
8866
      if test -n "$file_magic_test_file"; then
8772
8867
        case $deplibs_check_method in
8773
8868
        "file_magic "*)
8774
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8869
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8775
8870
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8776
8871
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8777
8872
            $EGREP "$file_magic_regex" > /dev/null; then
8881
8976
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8882
8977
      lt_cv_path_LD="$ac_dir/$ac_prog"
8883
8978
      # Check to see if the program is GNU ld.  I'd rather use --version,
8884
 
      # but apparently some GNU ld's only accept -v.
 
8979
      # but apparently some variants of GNU ld only accept -v.
8885
8980
      # Break only if it was the GNU/non-GNU ld that we prefer.
8886
8981
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8887
8982
      *GNU* | *'with BFD'*)
8913
9008
AC_DEFUN([AC_PROG_LD_GNU],
8914
9009
[AC_REQUIRE([AC_PROG_EGREP])dnl
8915
9010
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8916
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9011
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
8917
9012
case `$LD -v 2>&1 </dev/null` in
8918
9013
*GNU* | *'with BFD'*)
8919
9014
  lt_cv_prog_gnu_ld=yes
8940
9035
*) reload_flag=" $reload_flag" ;;
8941
9036
esac
8942
9037
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
9038
case $host_os in
 
9039
  darwin*)
 
9040
    if test "$GCC" = yes; then
 
9041
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
9042
    else
 
9043
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
9044
    fi
 
9045
    ;;
 
9046
esac
8943
9047
])# AC_PROG_LD_RELOAD_FLAG
8944
9048
 
8945
9049
 
8973
9077
  lt_cv_deplibs_check_method=pass_all
8974
9078
  ;;
8975
9079
 
8976
 
bsdi4*)
 
9080
bsdi[[45]]*)
8977
9081
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8978
9082
  lt_cv_file_magic_cmd='/usr/bin/file -L'
8979
9083
  lt_cv_file_magic_test_file=/shlib/libc.so
8996
9100
  lt_cv_deplibs_check_method=pass_all
8997
9101
  ;;
8998
9102
 
8999
 
freebsd* | kfreebsd*-gnu)
 
9103
freebsd* | kfreebsd*-gnu | dragonfly*)
9000
9104
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9001
9105
    case $host_cpu in
9002
9106
    i*86 )
9003
9107
      # Not sure whether the presence of OpenBSD here was a mistake.
9004
9108
      # Let's accept both of them until this is cleared up.
9005
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
9109
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
9006
9110
      lt_cv_file_magic_cmd=/usr/bin/file
9007
9111
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9008
9112
      ;;
9018
9122
 
9019
9123
hpux10.20* | hpux11*)
9020
9124
  lt_cv_file_magic_cmd=/usr/bin/file
9021
 
  case "$host_cpu" in
 
9125
  case $host_cpu in
9022
9126
  ia64*)
9023
9127
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
9024
9128
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9068
9172
  ;;
9069
9173
 
9070
9174
openbsd*)
9071
 
  lt_cv_file_magic_cmd=/usr/bin/file
9072
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9073
9175
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
9176
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
9075
9177
  else
9076
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
9178
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
9077
9179
  fi
9078
9180
  ;;
9079
9181
 
9194
9296
# -----------------------------------
9195
9297
# sets LIBLTDL to the link flags for the libltdl convenience library and
9196
9298
# LTDLINCL to the include flags for the libltdl header and adds
9197
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
9198
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
9199
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
9200
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
9201
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
9202
 
# flat and you're not using automake, define top_builddir and
9203
 
# top_srcdir appropriately in the Makefiles.
 
9299
# --enable-ltdl-convenience to the configure arguments.  Note that
 
9300
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
9301
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
9302
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
9303
# (note the single quotes!).  If your package is not flat and you're not
 
9304
# using automake, define top_builddir and top_srcdir appropriately in
 
9305
# the Makefiles.
9204
9306
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
9205
9307
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9206
9308
  case $enable_ltdl_convenience in
9219
9321
# -----------------------------------
9220
9322
# sets LIBLTDL to the link flags for the libltdl installable library and
9221
9323
# LTDLINCL to the include flags for the libltdl header and adds
9222
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
9223
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
9224
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
9225
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
9226
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
9227
 
# quotes!).  If your package is not flat and you're not using automake,
9228
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
9324
# --enable-ltdl-install to the configure arguments.  Note that
 
9325
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
9326
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
9327
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
9328
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
9329
# flat and you're not using automake, define top_builddir and top_srcdir
 
9330
# appropriately in the Makefiles.
9229
9331
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
9230
9332
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9231
9333
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9263
9365
# ---------------
9264
9366
AC_DEFUN([_LT_AC_LANG_CXX],
9265
9367
[AC_REQUIRE([AC_PROG_CXX])
9266
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
9368
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
9267
9369
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
9268
9370
])# _LT_AC_LANG_CXX
9269
9371
 
 
9372
# _LT_AC_PROG_CXXCPP
 
9373
# ---------------
 
9374
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
9375
[
 
9376
AC_REQUIRE([AC_PROG_CXX])
 
9377
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9378
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9379
    (test "X$CXX" != "Xg++"))) ; then
 
9380
  AC_PROG_CXXCPP
 
9381
fi
 
9382
])# _LT_AC_PROG_CXXCPP
9270
9383
 
9271
9384
# AC_LIBTOOL_F77
9272
9385
# --------------
9339
9452
 
9340
9453
_LT_AC_SYS_COMPILER
9341
9454
 
 
9455
# save warnings/boilerplate of simple test code
 
9456
_LT_COMPILER_BOILERPLATE
 
9457
_LT_LINKER_BOILERPLATE
 
9458
 
9342
9459
#
9343
9460
# Check for any special shared library compilation flags.
9344
9461
#
9389
9506
 
9390
9507
# On AIX, shared libraries and static libraries use the same namespace, and
9391
9508
# are all built from PIC.
9392
 
case "$host_os" in
 
9509
case $host_os in
9393
9510
aix3*)
9394
9511
  test "$enable_shared" = yes && enable_static=no
9395
9512
  if test -n "$RANLIB"; then
9402
9519
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9403
9520
    test "$enable_shared" = yes && enable_static=no
9404
9521
  fi
9405
 
  ;;
9406
 
  darwin* | rhapsody*)
9407
 
  if test "$GCC" = yes; then
9408
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9409
 
    case "$host_os" in
9410
 
    rhapsody* | darwin1.[[012]])
9411
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
9412
 
      ;;
9413
 
    *) # Darwin 1.3 on
9414
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9415
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9416
 
      else
9417
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9418
 
          10.[[012]])
9419
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9420
 
            ;;
9421
 
          10.*)
9422
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
9423
 
            ;;
9424
 
        esac
9425
 
      fi
9426
 
      ;;
9427
 
    esac
9428
 
    output_verbose_link_cmd='echo'
9429
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9430
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9431
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9432
 
    _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}'
9433
 
    _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}'
9434
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
9435
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9436
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9437
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
9438
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9439
 
  else
9440
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9441
 
  fi
9442
9522
    ;;
9443
9523
esac
9444
9524
AC_MSG_RESULT([$enable_shared])
9464
9544
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
9465
9545
[AC_LANG_PUSH(C++)
9466
9546
AC_REQUIRE([AC_PROG_CXX])
9467
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
9547
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
9468
9548
 
9469
9549
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9470
9550
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
9493
9573
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
9494
9574
 
9495
9575
# Source file extension for C++ test sources.
9496
 
ac_ext=cc
 
9576
ac_ext=cpp
9497
9577
 
9498
9578
# Object file extension for compiled C++ test sources.
9499
9579
objext=o
9508
9588
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9509
9589
_LT_AC_SYS_COMPILER
9510
9590
 
 
9591
# save warnings/boilerplate of simple test code
 
9592
_LT_COMPILER_BOILERPLATE
 
9593
_LT_LINKER_BOILERPLATE
 
9594
 
9511
9595
# Allow CC to be a program name with arguments.
9512
9596
lt_save_CC=$CC
9513
9597
lt_save_LD=$LD
9529
9613
CC=${CXX-"c++"}
9530
9614
compiler=$CC
9531
9615
_LT_AC_TAGVAR(compiler, $1)=$CC
9532
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9616
_LT_CC_BASENAME([$compiler])
9533
9617
 
9534
9618
# We don't want -fno-exception wen compiling C++ code, so set the
9535
9619
# no_builtin_flag separately
9636
9720
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9637
9721
 
9638
9722
    if test "$GXX" = yes; then
9639
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
9723
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
9640
9724
      # We only want to do this on AIX 4.2 and lower, the check
9641
9725
      # below for broken collect2 doesn't work under 4.3+
9642
9726
        collect2name=`${CC} -print-prog-name=collect2`
9657
9741
        fi
9658
9742
      esac
9659
9743
      shared_flag='-shared'
 
9744
      if test "$aix_use_runtimelinking" = yes; then
 
9745
        shared_flag="$shared_flag "'${wl}-G'
 
9746
      fi
9660
9747
    else
9661
9748
      # not using gcc
9662
9749
      if test "$host_cpu" = ia64; then
9702
9789
        # Exported symbols can be pulled into shared objects from archives
9703
9790
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
9704
9791
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
9705
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9792
        # This is similar to how AIX traditionally builds its shared libraries.
9706
9793
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9707
9794
      fi
9708
9795
    fi
9716
9803
    esac
9717
9804
    ;;
9718
9805
 
 
9806
 
9719
9807
  cygwin* | mingw* | pw32*)
9720
9808
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
9721
9809
    # as there is no search path for DLLs.
9739
9827
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
9740
9828
    fi
9741
9829
  ;;
9742
 
 
9743
 
  darwin* | rhapsody*)
9744
 
  if test "$GXX" = yes; then
9745
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9746
 
    case "$host_os" in
9747
 
    rhapsody* | darwin1.[[012]])
9748
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
9749
 
      ;;
9750
 
    *) # Darwin 1.3 on
9751
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9752
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9753
 
      else
9754
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9755
 
          10.[[012]])
9756
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9757
 
            ;;
9758
 
          10.*)
9759
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
9760
 
            ;;
 
9830
      darwin* | rhapsody*)
 
9831
        case $host_os in
 
9832
        rhapsody* | darwin1.[[012]])
 
9833
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
9834
         ;;
 
9835
       *) # Darwin 1.3 on
 
9836
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9837
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9838
         else
 
9839
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9840
             10.[[012]])
 
9841
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9842
               ;;
 
9843
             10.*)
 
9844
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
9845
               ;;
 
9846
           esac
 
9847
         fi
 
9848
         ;;
9761
9849
        esac
9762
 
      fi
9763
 
      ;;
9764
 
    esac
9765
 
    lt_int_apple_cc_single_mod=no
9766
 
    output_verbose_link_cmd='echo'
9767
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9768
 
      lt_int_apple_cc_single_mod=yes
9769
 
    fi
9770
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9771
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9772
 
    else
9773
 
      _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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9774
 
    fi
9775
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9850
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
9851
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
9852
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
9853
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
9854
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
9855
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9776
9856
 
9777
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9778
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9779
 
      _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}'
9780
 
    else
9781
 
      _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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9782
 
    fi
9783
 
    _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}'
9784
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
9785
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9786
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9787
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
9788
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9789
 
  else
9790
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9791
 
  fi
9792
 
    ;;
 
9857
    if test "$GXX" = yes ; then
 
9858
      lt_int_apple_cc_single_mod=no
 
9859
      output_verbose_link_cmd='echo'
 
9860
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
9861
       lt_int_apple_cc_single_mod=yes
 
9862
      fi
 
9863
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9864
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9865
      else
 
9866
          _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'
 
9867
        fi
 
9868
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9869
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9870
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9871
            _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}'
 
9872
          else
 
9873
            _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}'
 
9874
          fi
 
9875
            _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}'
 
9876
      else
 
9877
      case $cc_basename in
 
9878
        xlc*)
 
9879
         output_verbose_link_cmd='echo'
 
9880
          _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'
 
9881
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9882
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9883
          _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}'
 
9884
          _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}'
 
9885
          ;;
 
9886
       *)
 
9887
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
9888
          ;;
 
9889
      esac
 
9890
      fi
 
9891
        ;;
9793
9892
 
9794
9893
  dgux*)
9795
9894
    case $cc_basename in
9796
 
      ec++)
 
9895
      ec++*)
9797
9896
        # FIXME: insert proper C++ library support
9798
9897
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9799
9898
        ;;
9800
 
      ghcx)
 
9899
      ghcx*)
9801
9900
        # Green Hills C++ Compiler
9802
9901
        # FIXME: insert proper C++ library support
9803
9902
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9808
9907
        ;;
9809
9908
    esac
9810
9909
    ;;
9811
 
  freebsd[12]*)
 
9910
  freebsd[[12]]*)
9812
9911
    # C++ shared libraries reported to be fairly broken before switch to ELF
9813
9912
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
9814
9913
    ;;
9815
9914
  freebsd-elf*)
9816
9915
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9817
9916
    ;;
9818
 
  freebsd* | kfreebsd*-gnu)
 
9917
  freebsd* | kfreebsd*-gnu | dragonfly*)
9819
9918
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9820
9919
    # conventions
9821
9920
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
9832
9931
                                # location of the library.
9833
9932
 
9834
9933
    case $cc_basename in
9835
 
    CC)
 
9934
    CC*)
9836
9935
      # FIXME: insert proper C++ library support
9837
9936
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
9838
9937
      ;;
9839
 
    aCC)
 
9938
    aCC*)
9840
9939
      _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'
9841
9940
      # Commands to make compiler produce verbose output that lists
9842
9941
      # what "hidden" libraries, object files and flags are used when
9846
9945
      # explicitly linking system object files so we need to strip them
9847
9946
      # from the output so that they don't get included in the library
9848
9947
      # dependencies.
9849
 
      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'
 
9948
      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'
9850
9949
      ;;
9851
9950
    *)
9852
9951
      if test "$GXX" = yes; then
9860
9959
    ;;
9861
9960
  hpux10*|hpux11*)
9862
9961
    if test $with_gnu_ld = no; then
9863
 
      case "$host_cpu" in
 
9962
      case $host_cpu in
9864
9963
      hppa*64*)
9865
9964
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9866
9965
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
9876
9975
        ;;
9877
9976
      esac
9878
9977
    fi
9879
 
    case "$host_cpu" in
 
9978
    case $host_cpu in
9880
9979
    hppa*64*)
9881
9980
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
9882
9981
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9897
9996
    esac
9898
9997
 
9899
9998
    case $cc_basename in
9900
 
      CC)
 
9999
      CC*)
9901
10000
        # FIXME: insert proper C++ library support
9902
10001
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9903
10002
        ;;
9904
 
      aCC)
9905
 
        case "$host_cpu" in
 
10003
      aCC*)
 
10004
        case $host_cpu in
9906
10005
        hppa*64*|ia64*)
9907
10006
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9908
10007
          ;;
9923
10022
      *)
9924
10023
        if test "$GXX" = yes; then
9925
10024
          if test $with_gnu_ld = no; then
9926
 
            case "$host_cpu" in
 
10025
            case $host_cpu in
9927
10026
            ia64*|hppa*64*)
9928
10027
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9929
10028
              ;;
9941
10040
    ;;
9942
10041
  irix5* | irix6*)
9943
10042
    case $cc_basename in
9944
 
      CC)
 
10043
      CC*)
9945
10044
        # SGI C++
9946
 
        _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 ${objdir}/so_locations -o $lib'
 
10045
        _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'
9947
10046
 
9948
10047
        # Archives containing C++ object files must be created using
9949
10048
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9954
10053
      *)
9955
10054
        if test "$GXX" = yes; then
9956
10055
          if test "$with_gnu_ld" = no; then
9957
 
            _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}${objdir}/so_locations -o $lib'
 
10056
            _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'
9958
10057
          else
9959
10058
            _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'
9960
10059
          fi
9967
10066
    ;;
9968
10067
  linux*)
9969
10068
    case $cc_basename in
9970
 
      KCC)
 
10069
      KCC*)
9971
10070
        # Kuck and Associates, Inc. (KAI) C++ Compiler
9972
10071
 
9973
10072
        # KCC will only create a shared library if the output file
9992
10091
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9993
10092
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9994
10093
        ;;
9995
 
      icpc)
 
10094
      icpc*)
9996
10095
        # Intel C++
9997
10096
        with_gnu_ld=yes
 
10097
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10098
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10099
        # earlier do not add the objects themselves.
 
10100
        case `$CC -V 2>&1` in
 
10101
        *"Version 7."*)
 
10102
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10103
          _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'
 
10104
          ;;
 
10105
        *)  # Version 8.0 or newer
 
10106
          tmp_idyn=
 
10107
          case $host_cpu in
 
10108
            ia64*) tmp_idyn=' -i_dynamic';;
 
10109
          esac
 
10110
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10111
          _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'
 
10112
          ;;
 
10113
        esac
9998
10114
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9999
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000
 
        _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'
10001
10115
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10002
10116
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10003
10117
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10004
10118
        ;;
10005
 
      cxx)
 
10119
      pgCC*)
 
10120
        # Portland Group C++ compiler
 
10121
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10122
        _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'
 
10123
 
 
10124
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
10125
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
10126
        _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'
 
10127
        ;;
 
10128
      cxx*)
10006
10129
        # Compaq C++
10007
10130
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008
10131
        _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'
10033
10156
    ;;
10034
10157
  mvs*)
10035
10158
    case $cc_basename in
10036
 
      cxx)
 
10159
      cxx*)
10037
10160
        # FIXME: insert proper C++ library support
10038
10161
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10039
10162
        ;;
10054
10177
    # Workaround some broken pre-1.5 toolchains
10055
10178
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10056
10179
    ;;
 
10180
  openbsd2*)
 
10181
    # C++ shared libraries are fairly broken
 
10182
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
10183
    ;;
 
10184
  openbsd*)
 
10185
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
10186
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
10187
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10188
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
10189
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10190
      _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'
 
10191
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
10192
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10193
    fi
 
10194
    output_verbose_link_cmd='echo'
 
10195
    ;;
10057
10196
  osf3*)
10058
10197
    case $cc_basename in
10059
 
      KCC)
 
10198
      KCC*)
10060
10199
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10061
10200
 
10062
10201
        # KCC will only create a shared library if the output file
10072
10211
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
10073
10212
 
10074
10213
        ;;
10075
 
      RCC)
 
10214
      RCC*)
10076
10215
        # Rational C++ 2.4.1
10077
10216
        # FIXME: insert proper C++ library support
10078
10217
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10079
10218
        ;;
10080
 
      cxx)
 
10219
      cxx*)
10081
10220
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10082
 
        _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 ${objdir}/so_locations -o $lib'
 
10221
        _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'
10083
10222
 
10084
10223
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10085
10224
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10097
10236
      *)
10098
10237
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10099
10238
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10100
 
          _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}${objdir}/so_locations -o $lib'
 
10239
          _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'
10101
10240
 
10102
10241
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10103
10242
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10116
10255
    ;;
10117
10256
  osf4* | osf5*)
10118
10257
    case $cc_basename in
10119
 
      KCC)
 
10258
      KCC*)
10120
10259
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10121
10260
 
10122
10261
        # KCC will only create a shared library if the output file
10131
10270
        # the KAI C++ compiler.
10132
10271
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
10133
10272
        ;;
10134
 
      RCC)
 
10273
      RCC*)
10135
10274
        # Rational C++ 2.4.1
10136
10275
        # FIXME: insert proper C++ library support
10137
10276
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10138
10277
        ;;
10139
 
      cxx)
 
10278
      cxx*)
10140
10279
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10141
 
        _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 ${objdir}/so_locations -o $lib'
 
10280
        _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'
10142
10281
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10143
10282
          echo "-hidden">> $lib.exp~
10144
 
          $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 $objdir/so_locations -o $lib~
 
10283
          $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~
10145
10284
          $rm $lib.exp'
10146
10285
 
10147
10286
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10160
10299
      *)
10161
10300
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10162
10301
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10163
 
         _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}${objdir}/so_locations -o $lib'
 
10302
         _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'
10164
10303
 
10165
10304
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10166
10305
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10184
10323
  sco*)
10185
10324
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10186
10325
    case $cc_basename in
10187
 
      CC)
 
10326
      CC*)
10188
10327
        # FIXME: insert proper C++ library support
10189
10328
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10190
10329
        ;;
10196
10335
    ;;
10197
10336
  sunos4*)
10198
10337
    case $cc_basename in
10199
 
      CC)
 
10338
      CC*)
10200
10339
        # Sun C++ 4.x
10201
10340
        # FIXME: insert proper C++ library support
10202
10341
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10203
10342
        ;;
10204
 
      lcc)
 
10343
      lcc*)
10205
10344
        # Lucid
10206
10345
        # FIXME: insert proper C++ library support
10207
10346
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10214
10353
    ;;
10215
10354
  solaris*)
10216
10355
    case $cc_basename in
10217
 
      CC)
 
10356
      CC*)
10218
10357
        # Sun C++ 4.2, 5.x and Centerline C++
 
10358
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
10219
10359
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10220
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10360
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10221
10361
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10222
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10362
        $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'
10223
10363
 
10224
10364
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10225
10365
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10226
10366
        case $host_os in
10227
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10367
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10228
10368
          *)
10229
10369
            # The C++ compiler is used as linker so we must use $wl
10230
10370
            # flag to pass the commands to the underlying system
10231
 
            # linker.
 
10371
            # linker. We must also pass each convience library through
 
10372
            # to the system linker between allextract/defaultextract.
 
10373
            # The C++ compiler will combine linker options so we
 
10374
            # cannot just pass the convience library names through
 
10375
            # without $wl.
10232
10376
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10233
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10377
            _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'
10234
10378
            ;;
10235
10379
        esac
10236
10380
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10237
10381
 
10238
 
        # Commands to make compiler produce verbose output that lists
10239
 
        # what "hidden" libraries, object files and flags are used when
10240
 
        # linking a shared library.
10241
 
        #
10242
 
        # There doesn't appear to be a way to prevent this compiler from
10243
 
        # explicitly linking system object files so we need to strip them
10244
 
        # from the output so that they don't get included in the library
10245
 
        # dependencies.
10246
 
        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'
 
10382
        output_verbose_link_cmd='echo'
10247
10383
 
10248
10384
        # Archives containing C++ object files must be created using
10249
10385
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10251
10387
        # in the archive.
10252
10388
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10253
10389
        ;;
10254
 
      gcx)
 
10390
      gcx*)
10255
10391
        # Green Hills C++ Compiler
10256
10392
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10257
10393
 
10294
10430
    ;;
10295
10431
  tandem*)
10296
10432
    case $cc_basename in
10297
 
      NCC)
 
10433
      NCC*)
10298
10434
        # NonStop-UX NCC 3.20
10299
10435
        # FIXME: insert proper C++ library support
10300
10436
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
10400
10536
  # The `*' in the case matches for architectures that use `case' in
10401
10537
  # $output_verbose_cmd can trigger glob expansion during the loop
10402
10538
  # eval without this substitution.
10403
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10539
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10404
10540
 
10405
10541
  for p in `eval $output_verbose_link_cmd`; do
10406
10542
    case $p in
10476
10612
 
10477
10613
$rm -f confest.$objext
10478
10614
 
 
10615
# PORTME: override above test on systems where it is broken
 
10616
ifelse([$1],[CXX],
 
10617
[case $host_os in
 
10618
solaris*)
 
10619
  case $cc_basename in
 
10620
  CC*)
 
10621
    # Adding this requires a known-good setup of shared libraries for
 
10622
    # Sun compiler versions before 5.6, else PIC objects from an old
 
10623
    # archive will be linked into the output, leading to subtle bugs.
 
10624
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
10625
    ;;
 
10626
  esac
 
10627
esac
 
10628
])
 
10629
 
10479
10630
case " $_LT_AC_TAGVAR(postdeps, $1) " in
10480
10631
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
10481
10632
esac
10526
10677
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10527
10678
_LT_AC_SYS_COMPILER
10528
10679
 
 
10680
# save warnings/boilerplate of simple test code
 
10681
_LT_COMPILER_BOILERPLATE
 
10682
_LT_LINKER_BOILERPLATE
 
10683
 
10529
10684
# Allow CC to be a program name with arguments.
10530
10685
lt_save_CC="$CC"
10531
10686
CC=${F77-"f77"}
10532
10687
compiler=$CC
10533
10688
_LT_AC_TAGVAR(compiler, $1)=$CC
10534
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10689
_LT_CC_BASENAME([$compiler])
10535
10690
 
10536
10691
AC_MSG_CHECKING([if libtool supports shared libraries])
10537
10692
AC_MSG_RESULT([$can_build_shared])
10541
10696
 
10542
10697
# On AIX, shared libraries and static libraries use the same namespace, and
10543
10698
# are all built from PIC.
10544
 
case "$host_os" in
 
10699
case $host_os in
10545
10700
aix3*)
10546
10701
  test "$enable_shared" = yes && enable_static=no
10547
10702
  if test -n "$RANLIB"; then
10550
10705
  fi
10551
10706
  ;;
10552
10707
aix4* | aix5*)
10553
 
  test "$enable_shared" = yes && enable_static=no
 
10708
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10709
    test "$enable_shared" = yes && enable_static=no
 
10710
  fi
10554
10711
  ;;
10555
10712
esac
10556
10713
AC_MSG_RESULT([$enable_shared])
10601
10758
lt_simple_compile_test_code="class foo {}\n"
10602
10759
 
10603
10760
# Code to be used in simple link tests
10604
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
10761
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
10605
10762
 
10606
10763
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10607
10764
_LT_AC_SYS_COMPILER
10608
10765
 
 
10766
# save warnings/boilerplate of simple test code
 
10767
_LT_COMPILER_BOILERPLATE
 
10768
_LT_LINKER_BOILERPLATE
 
10769
 
10609
10770
# Allow CC to be a program name with arguments.
10610
10771
lt_save_CC="$CC"
10611
10772
CC=${GCJ-"gcj"}
10612
10773
compiler=$CC
10613
10774
_LT_AC_TAGVAR(compiler, $1)=$CC
 
10775
_LT_CC_BASENAME([$compiler])
10614
10776
 
10615
10777
# GCJ did not exist at the time GCC didn't implicitly link libc in.
10616
10778
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10617
10779
 
 
10780
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
10781
 
10618
10782
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
10619
10783
AC_LIBTOOL_PROG_COMPILER_PIC($1)
10620
10784
AC_LIBTOOL_PROG_CC_C_O($1)
10657
10821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10658
10822
_LT_AC_SYS_COMPILER
10659
10823
 
 
10824
# save warnings/boilerplate of simple test code
 
10825
_LT_COMPILER_BOILERPLATE
 
10826
_LT_LINKER_BOILERPLATE
 
10827
 
10660
10828
# Allow CC to be a program name with arguments.
10661
10829
lt_save_CC="$CC"
10662
10830
CC=${RC-"windres"}
10663
10831
compiler=$CC
10664
10832
_LT_AC_TAGVAR(compiler, $1)=$CC
 
10833
_LT_CC_BASENAME([$compiler])
10665
10834
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
10666
10835
 
10667
10836
AC_LIBTOOL_CONFIG($1)
10797
10966
#
10798
10967
# You should have received a copy of the GNU General Public License
10799
10968
# along with this program; if not, write to the Free Software
10800
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10969
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10801
10970
#
10802
10971
# As a special exception to the GNU General Public License, if you
10803
10972
# distribute this file as part of a program that contains a
10808
10977
SED=$lt_SED
10809
10978
 
10810
10979
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10811
 
Xsed="$SED -e s/^X//"
 
10980
Xsed="$SED -e 1s/^X//"
10812
10981
 
10813
10982
# The HP-UX ksh and POSIX shell print the target directory to stdout
10814
10983
# if CDPATH is set.
10815
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10984
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10816
10985
 
10817
10986
# The names of the tagged configurations supported by this script.
10818
10987
available_tags=
10843
11012
# The host system.
10844
11013
host_alias=$host_alias
10845
11014
host=$host
 
11015
host_os=$host_os
 
11016
 
 
11017
# The build system.
 
11018
build_alias=$build_alias
 
11019
build=$build
 
11020
build_os=$build_os
10846
11021
 
10847
11022
# An echo program that does not interpret backslashes.
10848
11023
echo=$lt_echo
10919
11094
# Does compiler simultaneously support -c and -o options?
10920
11095
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
10921
11096
 
10922
 
# Must we lock files when doing compilation ?
 
11097
# Must we lock files when doing compilation?
10923
11098
need_locks=$lt_need_locks
10924
11099
 
10925
11100
# Do we need the lib prefix for modules?
11193
11368
# Regexp to match symbols that can be accessed directly from C.
11194
11369
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
11195
11370
 
11196
 
# Transform the above into a raw symbol and a C symbol.
11197
 
symxfrm='\1 \2\3 \3'
11198
 
 
11199
11371
# Transform an extracted symbol line into a proper C declaration
11200
11372
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11201
11373
 
11217
11389
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11218
11390
  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'"
11219
11391
  ;;
 
11392
linux*)
 
11393
  if test "$host_cpu" = ia64; then
 
11394
    symcode='[[ABCDGIRSTW]]'
 
11395
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
11396
    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'"
 
11397
  fi
 
11398
  ;;
11220
11399
irix* | nonstopux*)
11221
11400
  symcode='[[BCDEGRST]]'
11222
11401
  ;;
11248
11427
# Try without a prefix undercore, then with it.
11249
11428
for ac_symprfx in "" "_"; do
11250
11429
 
 
11430
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
11431
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
11432
 
11251
11433
  # Write the raw and C identifiers.
11252
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
11434
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11253
11435
 
11254
11436
  # Check to see that the pipe works correctly.
11255
11437
  pipe_works=no
11413
11595
    hpux*)
11414
11596
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11415
11597
      # not for PA HP-UX.
11416
 
      case "$host_cpu" in
 
11598
      case $host_cpu in
11417
11599
      hppa*64*|ia64*)
11418
11600
        ;;
11419
11601
      *)
11438
11620
        ;;
11439
11621
      chorus*)
11440
11622
        case $cc_basename in
11441
 
        cxch68)
 
11623
        cxch68*)
11442
11624
          # Green Hills C++ Compiler
11443
11625
          # _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"
11444
11626
          ;;
11445
11627
        esac
11446
11628
        ;;
 
11629
       darwin*)
 
11630
         # PIC is the default on this platform
 
11631
         # Common symbols not allowed in MH_DYLIB files
 
11632
         case $cc_basename in
 
11633
           xlc*)
 
11634
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
11635
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
11636
           ;;
 
11637
         esac
 
11638
       ;;
11447
11639
      dgux*)
11448
11640
        case $cc_basename in
11449
 
          ec++)
 
11641
          ec++*)
11450
11642
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11451
11643
            ;;
11452
 
          ghcx)
 
11644
          ghcx*)
11453
11645
            # Green Hills C++ Compiler
11454
11646
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11455
11647
            ;;
11457
11649
            ;;
11458
11650
        esac
11459
11651
        ;;
11460
 
      freebsd* | kfreebsd*-gnu)
 
11652
      freebsd* | kfreebsd*-gnu | dragonfly*)
11461
11653
        # FreeBSD uses GNU C++
11462
11654
        ;;
11463
11655
      hpux9* | hpux10* | hpux11*)
11464
11656
        case $cc_basename in
11465
 
          CC)
 
11657
          CC*)
11466
11658
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11467
11659
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11468
11660
            if test "$host_cpu" != ia64; then
11469
11661
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11470
11662
            fi
11471
11663
            ;;
11472
 
          aCC)
 
11664
          aCC*)
11473
11665
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11474
11666
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11475
 
            case "$host_cpu" in
 
11667
            case $host_cpu in
11476
11668
            hppa*64*|ia64*)
11477
11669
              # +Z the default
11478
11670
              ;;
11487
11679
        ;;
11488
11680
      irix5* | irix6* | nonstopux*)
11489
11681
        case $cc_basename in
11490
 
          CC)
 
11682
          CC*)
11491
11683
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11492
11684
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11493
11685
            # CC pic flag -KPIC is the default.
11498
11690
        ;;
11499
11691
      linux*)
11500
11692
        case $cc_basename in
11501
 
          KCC)
 
11693
          KCC*)
11502
11694
            # KAI C++ Compiler
11503
11695
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11504
11696
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11505
11697
            ;;
11506
 
          icpc)
 
11698
          icpc* | ecpc*)
11507
11699
            # Intel C++
11508
11700
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11509
11701
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11510
11702
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11511
11703
            ;;
11512
 
          cxx)
 
11704
          pgCC*)
 
11705
            # Portland Group C++ compiler.
 
11706
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
11707
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
11708
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11709
            ;;
 
11710
          cxx*)
11513
11711
            # Compaq C++
11514
11712
            # Make sure the PIC flag is empty.  It appears that all Alpha
11515
11713
            # Linux and Compaq Tru64 Unix objects are PIC.
11526
11724
        ;;
11527
11725
      mvs*)
11528
11726
        case $cc_basename in
11529
 
          cxx)
 
11727
          cxx*)
11530
11728
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
11531
11729
            ;;
11532
11730
          *)
11537
11735
        ;;
11538
11736
      osf3* | osf4* | osf5*)
11539
11737
        case $cc_basename in
11540
 
          KCC)
 
11738
          KCC*)
11541
11739
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11542
11740
            ;;
11543
 
          RCC)
 
11741
          RCC*)
11544
11742
            # Rational C++ 2.4.1
11545
11743
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11546
11744
            ;;
11547
 
          cxx)
 
11745
          cxx*)
11548
11746
            # Digital/Compaq C++
11549
11747
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11550
11748
            # Make sure the PIC flag is empty.  It appears that all Alpha
11560
11758
        ;;
11561
11759
      sco*)
11562
11760
        case $cc_basename in
11563
 
          CC)
 
11761
          CC*)
11564
11762
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11565
11763
            ;;
11566
11764
          *)
11569
11767
        ;;
11570
11768
      solaris*)
11571
11769
        case $cc_basename in
11572
 
          CC)
 
11770
          CC*)
11573
11771
            # Sun C++ 4.2, 5.x and Centerline C++
11574
11772
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11575
11773
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11576
11774
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11577
11775
            ;;
11578
 
          gcx)
 
11776
          gcx*)
11579
11777
            # Green Hills C++ Compiler
11580
11778
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11581
11779
            ;;
11585
11783
        ;;
11586
11784
      sunos4*)
11587
11785
        case $cc_basename in
11588
 
          CC)
 
11786
          CC*)
11589
11787
            # Sun C++ 4.x
11590
11788
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11591
11789
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11592
11790
            ;;
11593
 
          lcc)
 
11791
          lcc*)
11594
11792
            # Lucid
11595
11793
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11596
11794
            ;;
11600
11798
        ;;
11601
11799
      tandem*)
11602
11800
        case $cc_basename in
11603
 
          NCC)
 
11801
          NCC*)
11604
11802
            # NonStop-UX NCC 3.20
11605
11803
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11606
11804
            ;;
11671
11869
    hpux*)
11672
11870
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11673
11871
      # not for PA HP-UX.
11674
 
      case "$host_cpu" in
 
11872
      case $host_cpu in
11675
11873
      hppa*64*|ia64*)
11676
11874
        # +Z the default
11677
11875
        ;;
11697
11895
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11698
11896
      fi
11699
11897
      ;;
 
11898
      darwin*)
 
11899
        # PIC is the default on this platform
 
11900
        # Common symbols not allowed in MH_DYLIB files
 
11901
       case $cc_basename in
 
11902
         xlc*)
 
11903
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
11904
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
11905
         ;;
 
11906
       esac
 
11907
       ;;
11700
11908
 
11701
11909
    mingw* | pw32* | os2*)
11702
11910
      # This hack is so that the source file can tell whether it is being
11708
11916
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11709
11917
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11710
11918
      # not for PA HP-UX.
11711
 
      case "$host_cpu" in
 
11919
      case $host_cpu in
11712
11920
      hppa*64*|ia64*)
11713
11921
        # +Z the default
11714
11922
        ;;
11732
11940
      ;;
11733
11941
 
11734
11942
    linux*)
11735
 
      case $CC in
 
11943
      case $cc_basename in
11736
11944
      icc* | ecc*)
11737
11945
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11738
11946
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11739
11947
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11740
11948
        ;;
 
11949
      pgcc* | pgf77* | pgf90* | pgf95*)
 
11950
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
11951
        # which looks to be a dead project)
 
11952
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
11953
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
11954
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11955
        ;;
11741
11956
      ccc*)
11742
11957
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11743
11958
        # All Alpha code is PIC.
11758
11973
      ;;
11759
11974
 
11760
11975
    solaris*)
11761
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11762
11976
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11763
11977
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
11978
      case $cc_basename in
 
11979
      f77* | f90* | f95*)
 
11980
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
11981
      *)
 
11982
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
11983
      esac
11764
11984
      ;;
11765
11985
 
11766
11986
    sunos4*)
11782
12002
      fi
11783
12003
      ;;
11784
12004
 
 
12005
    unicos*)
 
12006
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
12007
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
12008
      ;;
 
12009
 
11785
12010
    uts4*)
11786
12011
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11787
12012
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11809
12034
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11810
12035
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11811
12036
fi
11812
 
case "$host_os" in
 
12037
case $host_os in
11813
12038
  # For platforms which do not support PIC, -DPIC is meaningless:
11814
12039
  *djgpp*)
11815
12040
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11842
12067
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11843
12068
  ;;
11844
12069
  cygwin* | mingw*)
11845
 
    _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'
 
12070
    _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'
11846
12071
  ;;
11847
12072
  linux*)
11848
12073
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11888
12113
  # rely on this symbol name, it's probably fine to never include it in
11889
12114
  # preloaded symbol tables.
11890
12115
  extract_expsyms_cmds=
11891
 
 
 
12116
  # Just being paranoid about ensuring that cc_basename is set.
 
12117
  _LT_CC_BASENAME([$compiler])
11892
12118
  case $host_os in
11893
12119
  cygwin* | mingw* | pw32*)
11894
12120
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11908
12134
    # If archive_cmds runs LD, not CC, wlarc should be empty
11909
12135
    wlarc='${wl}'
11910
12136
 
 
12137
    # Set some defaults for GNU ld with shared library support. These
 
12138
    # are reset later if shared libraries are not supported. Putting them
 
12139
    # here allows them to be overridden if necessary.
 
12140
    runpath_var=LD_RUN_PATH
 
12141
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
12142
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
12143
    # ancient GNU ld didn't support --whole-archive et. al.
 
12144
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
12145
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12146
      else
 
12147
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
12148
    fi
 
12149
    supports_anon_versioning=no
 
12150
    case `$LD -v 2>/dev/null` in
 
12151
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
12152
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
12153
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
12154
      *\ 2.11.*) ;; # other 2.11 versions
 
12155
      *) supports_anon_versioning=yes ;;
 
12156
    esac
 
12157
 
11911
12158
    # See if GNU ld supports shared libraries.
11912
12159
    case $host_os in
11913
12160
    aix3* | aix4* | aix5*)
11958
12205
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11959
12206
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
11960
12207
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11961
 
      _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'
 
12208
      _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'
11962
12209
 
11963
12210
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11964
12211
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11972
12219
        fi~
11973
12220
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
11974
12221
      else
11975
 
        ld_shlibs=no
 
12222
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
12223
      fi
 
12224
      ;;
 
12225
 
 
12226
    linux*)
 
12227
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12228
        tmp_addflag=
 
12229
        case $cc_basename,$host_cpu in
 
12230
        pgcc*)                          # Portland Group C compiler
 
12231
          _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'
 
12232
          tmp_addflag=' $pic_flag'
 
12233
          ;;
 
12234
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
12235
          _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'
 
12236
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
12237
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
12238
          tmp_addflag=' -i_dynamic' ;;
 
12239
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
12240
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
12241
        ifc* | ifort*)                  # Intel Fortran compiler
 
12242
          tmp_addflag=' -nofor_main' ;;
 
12243
        esac
 
12244
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12245
 
 
12246
        if test $supports_anon_versioning = yes; then
 
12247
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
12248
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12249
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
12250
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12251
        fi
 
12252
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
12253
      else
 
12254
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
11976
12255
      fi
11977
12256
      ;;
11978
12257
 
12014
12293
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12015
12294
      ;;
12016
12295
 
12017
 
  linux*)
12018
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12019
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12020
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
12021
 
      supports_anon_versioning=no
12022
 
      case `$LD -v 2>/dev/null` in
12023
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
12024
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12025
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12026
 
        *\ 2.11.*) ;; # other 2.11 versions
12027
 
        *) supports_anon_versioning=yes ;;
12028
 
      esac
12029
 
      if test $supports_anon_versioning = yes; then
12030
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
12031
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12032
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
12033
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12034
 
      else
12035
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
12036
 
      fi
12037
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
12038
 
    else
12039
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
12040
 
    fi
12041
 
    ;;
12042
 
 
12043
12296
    *)
12044
12297
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12045
12298
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12050
12303
      ;;
12051
12304
    esac
12052
12305
 
12053
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
12054
 
      runpath_var=LD_RUN_PATH
12055
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
12056
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
12057
 
      # ancient GNU ld didn't support --whole-archive et. al.
12058
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12059
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12060
 
      else
12061
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
12062
 
      fi
 
12306
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
12307
      runpath_var=
 
12308
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
12309
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
12310
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
12063
12311
    fi
12064
12312
  else
12065
12313
    # PORTME fill in a description of your system's linker (not GNU ld)
12123
12371
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12124
12372
 
12125
12373
      if test "$GCC" = yes; then
12126
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
12374
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
12127
12375
        # We only want to do this on AIX 4.2 and lower, the check
12128
12376
        # below for broken collect2 doesn't work under 4.3+
12129
12377
          collect2name=`${CC} -print-prog-name=collect2`
12144
12392
          fi
12145
12393
        esac
12146
12394
        shared_flag='-shared'
 
12395
        if test "$aix_use_runtimelinking" = yes; then
 
12396
          shared_flag="$shared_flag "'${wl}-G'
 
12397
        fi
12147
12398
      else
12148
12399
        # not using gcc
12149
12400
        if test "$host_cpu" = ia64; then
12188
12439
          # Exported symbols can be pulled into shared objects from archives
12189
12440
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
12190
12441
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12191
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
12442
          # This is similar to how AIX traditionally builds its shared libraries.
12192
12443
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12193
12444
        fi
12194
12445
      fi
12202
12453
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
12203
12454
      ;;
12204
12455
 
12205
 
    bsdi4*)
 
12456
    bsdi[[45]]*)
12206
12457
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
12207
12458
      ;;
12208
12459
 
12223
12474
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
12224
12475
      # FIXME: Should let the user specify the lib program.
12225
12476
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
12226
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
12477
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
12227
12478
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12228
12479
      ;;
12229
12480
 
12230
12481
    darwin* | rhapsody*)
12231
 
    if test "$GXX" = yes ; then
 
12482
      case $host_os in
 
12483
        rhapsody* | darwin1.[[012]])
 
12484
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
12485
         ;;
 
12486
       *) # Darwin 1.3 on
 
12487
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12488
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12489
         else
 
12490
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
12491
             10.[[012]])
 
12492
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12493
               ;;
 
12494
             10.*)
 
12495
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
12496
               ;;
 
12497
           esac
 
12498
         fi
 
12499
         ;;
 
12500
      esac
12232
12501
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12233
 
      case "$host_os" in
12234
 
      rhapsody* | darwin1.[[012]])
12235
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
12236
 
        ;;
12237
 
      *) # Darwin 1.3 on
12238
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12239
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12240
 
      else
12241
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
12242
 
          10.[[012]])
12243
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12244
 
            ;;
12245
 
          10.*)
12246
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
12247
 
            ;;
12248
 
        esac
12249
 
      fi
12250
 
        ;;
12251
 
      esac
12252
 
        lt_int_apple_cc_single_mod=no
12253
 
        output_verbose_link_cmd='echo'
12254
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12255
 
          lt_int_apple_cc_single_mod=yes
12256
 
        fi
12257
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12258
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12259
 
        else
12260
 
        _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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12261
 
      fi
12262
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12263
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12264
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12265
 
          _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}'
12266
 
        else
12267
 
          _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 $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12268
 
        fi
12269
 
          _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}'
12270
12502
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
12271
12503
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12272
12504
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12273
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
12505
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
12274
12506
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
12507
    if test "$GCC" = yes ; then
 
12508
        output_verbose_link_cmd='echo'
 
12509
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12510
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12511
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12512
      _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}'
 
12513
      _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}'
12275
12514
    else
12276
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
12515
      case $cc_basename in
 
12516
        xlc*)
 
12517
         output_verbose_link_cmd='echo'
 
12518
         _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'
 
12519
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12520
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12521
         _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}'
 
12522
          _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}'
 
12523
          ;;
 
12524
       *)
 
12525
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
12526
          ;;
 
12527
      esac
12277
12528
    fi
12278
12529
      ;;
12279
12530
 
12307
12558
      ;;
12308
12559
 
12309
12560
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12310
 
    freebsd* | kfreebsd*-gnu)
 
12561
    freebsd* | kfreebsd*-gnu | dragonfly*)
12311
12562
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12312
12563
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12313
12564
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12332
12583
 
12333
12584
    hpux10* | hpux11*)
12334
12585
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12335
 
        case "$host_cpu" in
 
12586
        case $host_cpu in
12336
12587
        hppa*64*|ia64*)
12337
12588
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12338
12589
          ;;
12341
12592
          ;;
12342
12593
        esac
12343
12594
      else
12344
 
        case "$host_cpu" in
 
12595
        case $host_cpu in
12345
12596
        hppa*64*|ia64*)
12346
12597
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12347
12598
          ;;
12351
12602
        esac
12352
12603
      fi
12353
12604
      if test "$with_gnu_ld" = no; then
12354
 
        case "$host_cpu" in
 
12605
        case $host_cpu in
12355
12606
        hppa*64*)
12356
12607
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12357
12608
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
12418
12669
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12419
12670
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12420
12671
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
12672
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12421
12673
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12422
12674
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12423
12675
      else
12463
12715
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12464
12716
        _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'
12465
12717
        _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~
12466
 
        $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'
 
12718
        $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'
12467
12719
 
12468
12720
        # Both c and cxx compiler support -rpath directly
12469
12721
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12482
12734
    solaris*)
12483
12735
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
12484
12736
      if test "$GCC" = yes; then
 
12737
        wlarc='${wl}'
12485
12738
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12486
12739
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12487
12740
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12488
12741
      else
 
12742
        wlarc=''
12489
12743
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12490
12744
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12491
12745
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12494
12748
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12495
12749
      case $host_os in
12496
12750
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12497
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12498
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
12751
      *)
 
12752
        # The compiler driver will combine linker options so we
 
12753
        # cannot just pass the convience library names through
 
12754
        # without $wl, iff we do not link with $LD.
 
12755
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
12756
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12757
        case $wlarc in
 
12758
        '')
 
12759
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
12760
        *)
 
12761
          _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' ;;
 
12762
        esac ;;
12499
12763
      esac
12500
12764
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12501
12765
      ;;
12756
13020
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12757
13021
# along with /bin/sed that truncates output.
12758
13022
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12759
 
  test ! -f $lt_ac_sed && break
 
13023
  test ! -f $lt_ac_sed && continue
12760
13024
  cat /dev/null > conftest.in
12761
13025
  lt_ac_count=0
12762
13026
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12781
13045
    fi
12782
13046
  done
12783
13047
done
 
13048
])
12784
13049
SED=$lt_cv_path_SED
12785
 
])
12786
13050
AC_MSG_RESULT([$SED])
12787
13051
])
12788
13052