~jmccrohan/lcd4linux/debian

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Jonathan McCrohan
  • Date: 2012-03-08 21:20:23 UTC
  • mfrom: (0.1.6)
  • Revision ID: jmccrohan@gmail.com-20120308212023-bp8mnjylot3kugaz
* New upstream snapshot
   - adds new DPF driver
   - adds new TeakLCM driver
   - adds new Futaba VFD driver
   - adds new Samsung SPF driver 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1348
1348
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1349
1349
#
1350
1350
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1351
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1352
 
#                 Foundation, Inc.
 
1351
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1353
1352
#   Written by Gordon Matzigkeit, 1996
1354
1353
#
1355
1354
# This file is free software; the Free Software Foundation gives
1358
1357
 
1359
1358
m4_define([_LT_COPYING], [dnl
1360
1359
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1361
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1362
 
#                 Foundation, Inc.
 
1360
#                 2006, 2007, 2008 Free Software Foundation, Inc.
1363
1361
#   Written by Gordon Matzigkeit, 1996
1364
1362
#
1365
1363
#   This file is part of GNU Libtool.
1386
1384
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1387
1385
])
1388
1386
 
1389
 
# serial 57 LT_INIT
 
1387
# serial 56 LT_INIT
1390
1388
 
1391
1389
 
1392
1390
# LT_PREREQ(VERSION)
1415
1413
# ------------------
1416
1414
AC_DEFUN([LT_INIT],
1417
1415
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1418
 
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1419
1416
AC_BEFORE([$0], [LT_LANG])dnl
1420
1417
AC_BEFORE([$0], [LT_OUTPUT])dnl
1421
1418
AC_BEFORE([$0], [LTDL_INIT])dnl
1432
1429
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1433
1430
m4_require([_LT_PROG_LTMAIN])dnl
1434
1431
 
1435
 
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1436
 
 
1437
1432
dnl Parse OPTIONS
1438
1433
_LT_SET_OPTIONS([$0], [$1])
1439
1434
 
1470
1465
    *) break;;
1471
1466
  esac
1472
1467
done
1473
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
1468
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1474
1469
])
1475
1470
 
1476
1471
 
1490
1485
m4_defun([_LT_SETUP],
1491
1486
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1492
1487
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1493
 
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1494
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1495
 
 
1496
 
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
1497
 
dnl
1498
1488
_LT_DECL([], [host_alias], [0], [The host system])dnl
1499
1489
_LT_DECL([], [host], [0])dnl
1500
1490
_LT_DECL([], [host_os], [0])dnl
1517
1507
dnl
1518
1508
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1519
1509
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1520
 
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1521
1510
m4_require([_LT_CMD_RELOAD])dnl
1522
1511
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1523
 
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1524
1512
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1525
1513
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1526
 
m4_require([_LT_WITH_SYSROOT])dnl
1527
1514
 
1528
1515
_LT_CONFIG_LIBTOOL_INIT([
1529
1516
# See if we are running on zsh, and set the options which allow our
1539
1526
_LT_CHECK_OBJDIR
1540
1527
 
1541
1528
m4_require([_LT_TAG_COMPILER])dnl
 
1529
_LT_PROG_ECHO_BACKSLASH
1542
1530
 
1543
1531
case $host_os in
1544
1532
aix3*)
1552
1540
  ;;
1553
1541
esac
1554
1542
 
 
1543
# Sed substitution that helps us do robust quoting.  It backslashifies
 
1544
# metacharacters that are still active within double-quoted strings.
 
1545
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1546
 
 
1547
# Same as above, but do not quote variable references.
 
1548
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1549
 
 
1550
# Sed substitution to delay expansion of an escaped shell variable in a
 
1551
# double_quote_subst'ed string.
 
1552
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1553
 
 
1554
# Sed substitution to delay expansion of an escaped single quote.
 
1555
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1556
 
 
1557
# Sed substitution to avoid accidental globbing in evaled expressions
 
1558
no_glob_subst='s/\*/\\\*/g'
 
1559
 
1555
1560
# Global variables:
1556
1561
ofile=libtool
1557
1562
can_build_shared=yes
1592
1597
])# _LT_SETUP
1593
1598
 
1594
1599
 
1595
 
# _LT_PREPARE_SED_QUOTE_VARS
1596
 
# --------------------------
1597
 
# Define a few sed substitution that help us do robust quoting.
1598
 
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1599
 
[# Backslashify metacharacters that are still active within
1600
 
# double-quoted strings.
1601
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1602
 
 
1603
 
# Same as above, but do not quote variable references.
1604
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1605
 
 
1606
 
# Sed substitution to delay expansion of an escaped shell variable in a
1607
 
# double_quote_subst'ed string.
1608
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1609
 
 
1610
 
# Sed substitution to delay expansion of an escaped single quote.
1611
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1612
 
 
1613
 
# Sed substitution to avoid accidental globbing in evaled expressions
1614
 
no_glob_subst='s/\*/\\\*/g'
1615
 
])
1616
 
 
1617
1600
# _LT_PROG_LTMAIN
1618
1601
# ---------------
1619
1602
# Note that this code is called both from `configure', and `config.status'
1766
1749
# declaration there will have the same value as in `configure'.  VARNAME
1767
1750
# must have a single quote delimited value for this to work.
1768
1751
m4_define([_LT_CONFIG_STATUS_DECLARE],
1769
 
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
 
1752
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1770
1753
 
1771
1754
 
1772
1755
# _LT_CONFIG_STATUS_DECLARATIONS
1776
1759
# embedded single quotes properly.  In configure, this macro expands
1777
1760
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1778
1761
#
1779
 
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
 
1762
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1780
1763
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1781
1764
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1782
1765
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1875
1858
LTCFLAGS='$LTCFLAGS'
1876
1859
compiler='$compiler_DEFAULT'
1877
1860
 
1878
 
# A function that is used when there is no print builtin or printf.
1879
 
func_fallback_echo ()
1880
 
{
1881
 
  eval 'cat <<_LTECHO_EOF
1882
 
\$[]1
1883
 
_LTECHO_EOF'
1884
 
}
1885
 
 
1886
1861
# Quote evaled strings.
1887
1862
for var in lt_decl_all_varnames([[ \
1888
1863
]], lt_decl_quote_varnames); do
1889
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1864
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1890
1865
    *[[\\\\\\\`\\"\\\$]]*)
1891
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1866
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1892
1867
      ;;
1893
1868
    *)
1894
1869
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1899
1874
# Double-quote double-evaled strings.
1900
1875
for var in lt_decl_all_varnames([[ \
1901
1876
]], lt_decl_dquote_varnames); do
1902
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
1877
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1903
1878
    *[[\\\\\\\`\\"\\\$]]*)
1904
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1879
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1905
1880
      ;;
1906
1881
    *)
1907
1882
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1909
1884
    esac
1910
1885
done
1911
1886
 
 
1887
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1888
case \$lt_ECHO in
 
1889
*'\\\[$]0 --fallback-echo"')dnl "
 
1890
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1891
  ;;
 
1892
esac
 
1893
 
1912
1894
_LT_OUTPUT_LIBTOOL_INIT
1913
1895
])
1914
1896
 
1915
 
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1916
 
# ------------------------------------
1917
 
# Generate a child script FILE with all initialization necessary to
1918
 
# reuse the environment learned by the parent script, and make the
1919
 
# file executable.  If COMMENT is supplied, it is inserted after the
1920
 
# `#!' sequence but before initialization text begins.  After this
1921
 
# macro, additional text can be appended to FILE to form the body of
1922
 
# the child script.  The macro ends with non-zero status if the
1923
 
# file could not be fully written (such as if the disk is full).
1924
 
m4_ifdef([AS_INIT_GENERATED],
1925
 
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1926
 
[m4_defun([_LT_GENERATED_FILE_INIT],
1927
 
[m4_require([AS_PREPARE])]dnl
1928
 
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1929
 
[lt_write_fail=0
1930
 
cat >$1 <<_ASEOF || lt_write_fail=1
1931
 
#! $SHELL
1932
 
# Generated by $as_me.
1933
 
$2
1934
 
SHELL=\${CONFIG_SHELL-$SHELL}
1935
 
export SHELL
1936
 
_ASEOF
1937
 
cat >>$1 <<\_ASEOF || lt_write_fail=1
1938
 
AS_SHELL_SANITIZE
1939
 
_AS_PREPARE
1940
 
exec AS_MESSAGE_FD>&1
1941
 
_ASEOF
1942
 
test $lt_write_fail = 0 && chmod +x $1[]dnl
1943
 
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1944
1897
 
1945
1898
# LT_OUTPUT
1946
1899
# ---------
1950
1903
AC_DEFUN([LT_OUTPUT],
1951
1904
[: ${CONFIG_LT=./config.lt}
1952
1905
AC_MSG_NOTICE([creating $CONFIG_LT])
1953
 
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1954
 
[# Run this file to recreate a libtool stub with the current configuration.])
 
1906
cat >"$CONFIG_LT" <<_LTEOF
 
1907
#! $SHELL
 
1908
# Generated by $as_me.
 
1909
# Run this file to recreate a libtool stub with the current configuration.
1955
1910
 
1956
 
cat >>"$CONFIG_LT" <<\_LTEOF
1957
1911
lt_cl_silent=false
 
1912
SHELL=\${CONFIG_SHELL-$SHELL}
 
1913
_LTEOF
 
1914
 
 
1915
cat >>"$CONFIG_LT" <<\_LTEOF
 
1916
AS_SHELL_SANITIZE
 
1917
_AS_PREPARE
 
1918
 
 
1919
exec AS_MESSAGE_FD>&1
1958
1920
exec AS_MESSAGE_LOG_FD>>config.log
1959
1921
{
1960
1922
  echo
1980
1942
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1981
1943
configured by $[0], generated by m4_PACKAGE_STRING.
1982
1944
 
1983
 
Copyright (C) 2011 Free Software Foundation, Inc.
 
1945
Copyright (C) 2008 Free Software Foundation, Inc.
1984
1946
This config.lt script is free software; the Free Software Foundation
1985
1947
gives unlimited permision to copy, distribute and modify it."
1986
1948
 
2025
1987
# appending to config.log, which fails on DOS, as config.log is still kept
2026
1988
# open by configure.  Here we exec the FD to /dev/null, effectively closing
2027
1989
# config.log, so it can be properly (re)opened and appended to by config.lt.
2028
 
lt_cl_success=:
2029
 
test "$silent" = yes &&
2030
 
  lt_config_lt_args="$lt_config_lt_args --quiet"
2031
 
exec AS_MESSAGE_LOG_FD>/dev/null
2032
 
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2033
 
exec AS_MESSAGE_LOG_FD>>config.log
2034
 
$lt_cl_success || AS_EXIT(1)
 
1990
if test "$no_create" != yes; then
 
1991
  lt_cl_success=:
 
1992
  test "$silent" = yes &&
 
1993
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1994
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1995
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1996
  exec AS_MESSAGE_LOG_FD>>config.log
 
1997
  $lt_cl_success || AS_EXIT(1)
 
1998
fi
2035
1999
])# LT_OUTPUT
2036
2000
 
2037
2001
 
2061
2025
 
2062
2026
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2063
2027
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2064
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2065
2028
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2066
2029
#
2067
2030
_LT_COPYING
2094
2057
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
2095
2058
  # text mode, it properly converts lines to CR/LF.  This bash problem
2096
2059
  # is reportedly fixed, but why not run on old versions too?
2097
 
  sed '$q' "$ltmain" >> "$cfgfile" \
2098
 
     || (rm -f "$cfgfile"; exit 1)
2099
 
 
2100
 
  _LT_PROG_REPLACE_SHELLFNS
2101
 
 
2102
 
   mv -f "$cfgfile" "$ofile" ||
 
2060
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
2061
    || (rm -f "$cfgfile"; exit 1)
 
2062
 
 
2063
  _LT_PROG_XSI_SHELLFNS
 
2064
 
 
2065
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
2066
    || (rm -f "$cfgfile"; exit 1)
 
2067
 
 
2068
  mv -f "$cfgfile" "$ofile" ||
2103
2069
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2104
2070
  chmod +x "$ofile"
2105
2071
],
2144
2110
m4_case([$1],
2145
2111
  [C],                  [_LT_LANG(C)],
2146
2112
  [C++],                [_LT_LANG(CXX)],
2147
 
  [Go],                 [_LT_LANG(GO)],
2148
2113
  [Java],               [_LT_LANG(GCJ)],
2149
2114
  [Fortran 77],         [_LT_LANG(F77)],
2150
2115
  [Fortran],            [_LT_LANG(FC)],
2166
2131
])# _LT_LANG
2167
2132
 
2168
2133
 
2169
 
m4_ifndef([AC_PROG_GO], [
2170
 
# NOTE: This macro has been submitted for inclusion into   #
2171
 
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
2172
 
#  a released version of Autoconf we should remove this    #
2173
 
#  macro and use it instead.                               #
2174
 
m4_defun([AC_PROG_GO],
2175
 
[AC_LANG_PUSH(Go)dnl
2176
 
AC_ARG_VAR([GOC],     [Go compiler command])dnl
2177
 
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2178
 
_AC_ARG_VAR_LDFLAGS()dnl
2179
 
AC_CHECK_TOOL(GOC, gccgo)
2180
 
if test -z "$GOC"; then
2181
 
  if test -n "$ac_tool_prefix"; then
2182
 
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2183
 
  fi
2184
 
fi
2185
 
if test -z "$GOC"; then
2186
 
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2187
 
fi
2188
 
])#m4_defun
2189
 
])#m4_ifndef
2190
 
 
2191
 
 
2192
2134
# _LT_LANG_DEFAULT_CONFIG
2193
2135
# -----------------------
2194
2136
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2219
2161
       m4_ifdef([LT_PROG_GCJ],
2220
2162
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2221
2163
 
2222
 
AC_PROVIDE_IFELSE([AC_PROG_GO],
2223
 
  [LT_LANG(GO)],
2224
 
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2225
 
 
2226
2164
AC_PROVIDE_IFELSE([LT_PROG_RC],
2227
2165
  [LT_LANG(RC)],
2228
2166
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2233
2171
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2234
2172
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2235
2173
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2236
 
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2237
2174
dnl aclocal-1.4 backwards compatibility:
2238
2175
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2239
2176
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2240
2177
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2241
2178
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2242
 
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2243
2179
 
2244
2180
 
2245
2181
# _LT_TAG_COMPILER
2325
2261
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2326
2262
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2327
2263
        _lt_result=$?
2328
 
        # If there is a non-empty error log, and "single_module"
2329
 
        # appears in it, assume the flag caused a linker warning
2330
 
        if test -s conftest.err && $GREP single_module conftest.err; then
2331
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
2332
 
        # Otherwise, if the output was created with a 0 exit code from
2333
 
        # the compiler, it worked.
2334
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
2264
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
2335
2265
          lt_cv_apple_cc_single_mod=yes
2336
2266
        else
2337
2267
          cat conftest.err >&AS_MESSAGE_LOG_FD
2339
2269
        rm -rf libconftest.dylib*
2340
2270
        rm -f conftest.*
2341
2271
      fi])
2342
 
 
2343
2272
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2344
2273
      [lt_cv_ld_exported_symbols_list],
2345
2274
      [lt_cv_ld_exported_symbols_list=no
2351
2280
        [lt_cv_ld_exported_symbols_list=no])
2352
2281
        LDFLAGS="$save_LDFLAGS"
2353
2282
    ])
2354
 
 
2355
 
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2356
 
      [lt_cv_ld_force_load=no
2357
 
      cat > conftest.c << _LT_EOF
2358
 
int forced_loaded() { return 2;}
2359
 
_LT_EOF
2360
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2361
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2362
 
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2363
 
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2364
 
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2365
 
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2366
 
      cat > conftest.c << _LT_EOF
2367
 
int main() { return 0;}
2368
 
_LT_EOF
2369
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2370
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2371
 
      _lt_result=$?
2372
 
      if test -s conftest.err && $GREP force_load conftest.err; then
2373
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2374
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2375
 
        lt_cv_ld_force_load=yes
2376
 
      else
2377
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2378
 
      fi
2379
 
        rm -f conftest.err libconftest.a conftest conftest.c
2380
 
        rm -rf conftest.dSYM
2381
 
    ])
2382
2283
    case $host_os in
2383
2284
    rhapsody* | darwin1.[[012]])
2384
2285
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2406
2307
    else
2407
2308
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2408
2309
    fi
2409
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
2310
    if test "$DSYMUTIL" != ":"; then
2410
2311
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2411
2312
    else
2412
2313
      _lt_dsymutil=
2416
2317
])
2417
2318
 
2418
2319
 
2419
 
# _LT_DARWIN_LINKER_FEATURES([TAG])
2420
 
# ---------------------------------
 
2320
# _LT_DARWIN_LINKER_FEATURES
 
2321
# --------------------------
2421
2322
# Checks for linker and compiler features on darwin
2422
2323
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2423
2324
[
2426
2327
  _LT_TAGVAR(hardcode_direct, $1)=no
2427
2328
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2428
2329
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2429
 
  if test "$lt_cv_ld_force_load" = "yes"; then
2430
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2431
 
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
2432
 
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2433
 
  else
2434
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2435
 
  fi
 
2330
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2436
2331
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2437
2332
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2438
2333
  case $cc_basename in
2440
2335
     *) _lt_dar_can_shared=$GCC ;;
2441
2336
  esac
2442
2337
  if test "$_lt_dar_can_shared" = "yes"; then
2443
 
    output_verbose_link_cmd=func_echo_all
 
2338
    output_verbose_link_cmd=echo
2444
2339
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
2445
2340
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2446
2341
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
2456
2351
  fi
2457
2352
])
2458
2353
 
2459
 
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2460
 
# ----------------------------------
 
2354
# _LT_SYS_MODULE_PATH_AIX
 
2355
# -----------------------
2461
2356
# Links a minimal program and checks the executable
2462
2357
# for the system default hardcoded library path. In most cases,
2463
2358
# this is /usr/lib:/lib, but when the MPI compilers are used
2464
2359
# the location of the communication and MPI libs are included too.
2465
2360
# If we don't find anything, use the default library path according
2466
2361
# to the aix ld manual.
2467
 
# Store the results from the different compilers for each TAGNAME.
2468
 
# Allow to override them for all tags through lt_cv_aix_libpath.
2469
2362
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2470
2363
[m4_require([_LT_DECL_SED])dnl
2471
 
if test "${lt_cv_aix_libpath+set}" = set; then
2472
 
  aix_libpath=$lt_cv_aix_libpath
2473
 
else
2474
 
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2475
 
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2476
 
  lt_aix_libpath_sed='[
2477
 
      /Import File Strings/,/^$/ {
2478
 
          /^0/ {
2479
 
              s/^0  *\([^ ]*\) *$/\1/
2480
 
              p
2481
 
          }
2482
 
      }]'
2483
 
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2484
 
  # Check for a 64-bit object if we didn't find anything.
2485
 
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2486
 
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2487
 
  fi],[])
2488
 
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2489
 
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2490
 
  fi
2491
 
  ])
2492
 
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2493
 
fi
 
2364
AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
2365
lt_aix_libpath_sed='
 
2366
    /Import File Strings/,/^$/ {
 
2367
        /^0/ {
 
2368
            s/^0  *\(.*\)$/\1/
 
2369
            p
 
2370
        }
 
2371
    }'
 
2372
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2373
# Check for a 64-bit object if we didn't find anything.
 
2374
if test -z "$aix_libpath"; then
 
2375
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2376
fi],[])
 
2377
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2494
2378
])# _LT_SYS_MODULE_PATH_AIX
2495
2379
 
2496
2380
 
2497
2381
# _LT_SHELL_INIT(ARG)
2498
2382
# -------------------
2499
2383
m4_define([_LT_SHELL_INIT],
2500
 
[m4_divert_text([M4SH-INIT], [$1
2501
 
])])# _LT_SHELL_INIT
2502
 
 
 
2384
[ifdef([AC_DIVERSION_NOTICE],
 
2385
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
2386
         [AC_DIVERT_PUSH(NOTICE)])
 
2387
$1
 
2388
AC_DIVERT_POP
 
2389
])# _LT_SHELL_INIT
2503
2390
 
2504
2391
 
2505
2392
# _LT_PROG_ECHO_BACKSLASH
2506
2393
# -----------------------
2507
 
# Find how we can fake an echo command that does not interpret backslash.
2508
 
# In particular, with Autoconf 2.60 or later we add some code to the start
2509
 
# of the generated configure script which will find a shell with a builtin
2510
 
# printf (which we can use as an echo command).
 
2394
# Add some code to the start of the generated configure script which
 
2395
# will find an echo command which doesn't interpret backslashes.
2511
2396
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2512
 
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2513
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2514
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2515
 
 
2516
 
AC_MSG_CHECKING([how to print strings])
2517
 
# Test print first, because it will be a builtin if present.
2518
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2519
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2520
 
  ECHO='print -r --'
2521
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2522
 
  ECHO='printf %s\n'
 
2397
[_LT_SHELL_INIT([
 
2398
# Check that we are running under the correct shell.
 
2399
SHELL=${CONFIG_SHELL-/bin/sh}
 
2400
 
 
2401
case X$lt_ECHO in
 
2402
X*--fallback-echo)
 
2403
  # Remove one level of quotation (which was required for Make).
 
2404
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2405
  ;;
 
2406
esac
 
2407
 
 
2408
ECHO=${lt_ECHO-echo}
 
2409
if test "X[$]1" = X--no-reexec; then
 
2410
  # Discard the --no-reexec flag, and continue.
 
2411
  shift
 
2412
elif test "X[$]1" = X--fallback-echo; then
 
2413
  # Avoid inline document here, it may be left over
 
2414
  :
 
2415
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2416
  # Yippee, $ECHO works!
 
2417
  :
2523
2418
else
2524
 
  # Use this function as a fallback that always works.
2525
 
  func_fallback_echo ()
2526
 
  {
2527
 
    eval 'cat <<_LTECHO_EOF
2528
 
$[]1
2529
 
_LTECHO_EOF'
2530
 
  }
2531
 
  ECHO='func_fallback_echo'
2532
 
fi
2533
 
 
2534
 
# func_echo_all arg...
2535
 
# Invoke $ECHO with all args, space-separated.
2536
 
func_echo_all ()
2537
 
{
2538
 
    $ECHO "$*" 
2539
 
}
2540
 
 
2541
 
case "$ECHO" in
2542
 
  printf*) AC_MSG_RESULT([printf]) ;;
2543
 
  print*) AC_MSG_RESULT([print -r]) ;;
2544
 
  *) AC_MSG_RESULT([cat]) ;;
2545
 
esac
2546
 
 
2547
 
m4_ifdef([_AS_DETECT_SUGGESTED],
2548
 
[_AS_DETECT_SUGGESTED([
2549
 
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2550
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2551
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2552
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2553
 
    PATH=/empty FPATH=/empty; export PATH FPATH
2554
 
    test "X`printf %s $ECHO`" = "X$ECHO" \
2555
 
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2556
 
 
 
2419
  # Restart under the correct shell.
 
2420
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2421
fi
 
2422
 
 
2423
if test "X[$]1" = X--fallback-echo; then
 
2424
  # used as fallback echo
 
2425
  shift
 
2426
  cat <<_LT_EOF
 
2427
[$]*
 
2428
_LT_EOF
 
2429
  exit 0
 
2430
fi
 
2431
 
 
2432
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
2433
# if CDPATH is set.
 
2434
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
2435
 
 
2436
if test -z "$lt_ECHO"; then
 
2437
  if test "X${echo_test_string+set}" != Xset; then
 
2438
    # find a string as large as possible, as long as the shell can cope with it
 
2439
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2440
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2441
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2442
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2443
      then
 
2444
        break
 
2445
      fi
 
2446
    done
 
2447
  fi
 
2448
 
 
2449
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2450
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2451
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2452
    :
 
2453
  else
 
2454
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2455
    # backslashes.  This makes it impossible to quote backslashes using
 
2456
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2457
    #
 
2458
    # So, first we look for a working echo in the user's PATH.
 
2459
 
 
2460
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2461
    for dir in $PATH /usr/ucb; do
 
2462
      IFS="$lt_save_ifs"
 
2463
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2464
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2465
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2466
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2467
        ECHO="$dir/echo"
 
2468
        break
 
2469
      fi
 
2470
    done
 
2471
    IFS="$lt_save_ifs"
 
2472
 
 
2473
    if test "X$ECHO" = Xecho; then
 
2474
      # We didn't find a better echo, so look for alternatives.
 
2475
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2476
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2477
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2478
        # This shell has a builtin print -r that does the trick.
 
2479
        ECHO='print -r'
 
2480
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2481
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2482
        # If we have ksh, try running configure again with it.
 
2483
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2484
        export ORIGINAL_CONFIG_SHELL
 
2485
        CONFIG_SHELL=/bin/ksh
 
2486
        export CONFIG_SHELL
 
2487
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2488
      else
 
2489
        # Try using printf.
 
2490
        ECHO='printf %s\n'
 
2491
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2492
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2493
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2494
          # Cool, printf works
 
2495
          :
 
2496
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2497
             test "X$echo_testing_string" = 'X\t' &&
 
2498
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2499
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2500
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2501
          export CONFIG_SHELL
 
2502
          SHELL="$CONFIG_SHELL"
 
2503
          export SHELL
 
2504
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2505
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2506
             test "X$echo_testing_string" = 'X\t' &&
 
2507
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2508
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2509
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2510
        else
 
2511
          # maybe with a smaller string...
 
2512
          prev=:
 
2513
 
 
2514
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2515
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2516
            then
 
2517
              break
 
2518
            fi
 
2519
            prev="$cmd"
 
2520
          done
 
2521
 
 
2522
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2523
            echo_test_string=`eval $prev`
 
2524
            export echo_test_string
 
2525
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2526
          else
 
2527
            # Oops.  We lost completely, so just stick with echo.
 
2528
            ECHO=echo
 
2529
          fi
 
2530
        fi
 
2531
      fi
 
2532
    fi
 
2533
  fi
 
2534
fi
 
2535
 
 
2536
# Copy echo and quote the copy suitably for passing to libtool from
 
2537
# the Makefile, instead of quoting the original, which is used later.
 
2538
lt_ECHO=$ECHO
 
2539
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2540
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2541
fi
 
2542
 
 
2543
AC_SUBST(lt_ECHO)
 
2544
])
2557
2545
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2558
 
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 
2546
_LT_DECL([], [ECHO], [1],
 
2547
    [An echo program that does not interpret backslashes])
2559
2548
])# _LT_PROG_ECHO_BACKSLASH
2560
2549
 
2561
2550
 
2562
 
# _LT_WITH_SYSROOT
2563
 
# ----------------
2564
 
AC_DEFUN([_LT_WITH_SYSROOT],
2565
 
[AC_MSG_CHECKING([for sysroot])
2566
 
AC_ARG_WITH([sysroot],
2567
 
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
2568
 
                        (or the compiler's sysroot if not specified).],
2569
 
[], [with_sysroot=no])
2570
 
 
2571
 
dnl lt_sysroot will always be passed unquoted.  We quote it here
2572
 
dnl in case the user passed a directory name.
2573
 
lt_sysroot=
2574
 
case ${with_sysroot} in #(
2575
 
 yes)
2576
 
   if test "$GCC" = yes; then
2577
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2578
 
   fi
2579
 
   ;; #(
2580
 
 /*)
2581
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
2582
 
   ;; #(
2583
 
 no|'')
2584
 
   ;; #(
2585
 
 *)
2586
 
   AC_MSG_RESULT([${with_sysroot}])
2587
 
   AC_MSG_ERROR([The sysroot must be an absolute path.])
2588
 
   ;;
2589
 
esac
2590
 
 
2591
 
 AC_MSG_RESULT([${lt_sysroot:-no}])
2592
 
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2593
 
[dependent libraries, and in which our libraries should be installed.])])
2594
 
 
2595
2551
# _LT_ENABLE_LOCK
2596
2552
# ---------------
2597
2553
m4_defun([_LT_ENABLE_LOCK],
2620
2576
  ;;
2621
2577
*-*-irix6*)
2622
2578
  # Find out which ABI we are using.
2623
 
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 
2579
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2624
2580
  if AC_TRY_EVAL(ac_compile); then
2625
2581
    if test "$lt_cv_prog_gnu_ld" = yes; then
2626
2582
      case `/usr/bin/file conftest.$ac_objext` in
2713
2669
    CFLAGS="$SAVE_CFLAGS"
2714
2670
  fi
2715
2671
  ;;
2716
 
*-*solaris*)
 
2672
sparc*-*solaris*)
2717
2673
  # Find out which ABI we are using.
2718
2674
  echo 'int i;' > conftest.$ac_ext
2719
2675
  if AC_TRY_EVAL(ac_compile); then
2720
2676
    case `/usr/bin/file conftest.o` in
2721
2677
    *64-bit*)
2722
2678
      case $lt_cv_prog_gnu_ld in
2723
 
      yes*)
2724
 
        case $host in
2725
 
        i?86-*-solaris*)
2726
 
          LD="${LD-ld} -m elf_x86_64"
2727
 
          ;;
2728
 
        sparc*-*-solaris*)
2729
 
          LD="${LD-ld} -m elf64_sparc"
2730
 
          ;;
2731
 
        esac
2732
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
2733
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2734
 
          LD="${LD-ld}_sol2"
2735
 
        fi
2736
 
        ;;
 
2679
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2737
2680
      *)
2738
2681
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2739
2682
          LD="${LD-ld} -64"
2751
2694
])# _LT_ENABLE_LOCK
2752
2695
 
2753
2696
 
2754
 
# _LT_PROG_AR
2755
 
# -----------
2756
 
m4_defun([_LT_PROG_AR],
2757
 
[AC_CHECK_TOOLS(AR, [ar], false)
2758
 
: ${AR=ar}
2759
 
: ${AR_FLAGS=cru}
2760
 
_LT_DECL([], [AR], [1], [The archiver])
2761
 
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2762
 
 
2763
 
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2764
 
  [lt_cv_ar_at_file=no
2765
 
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2766
 
     [echo conftest.$ac_objext > conftest.lst
2767
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2768
 
      AC_TRY_EVAL([lt_ar_try])
2769
 
      if test "$ac_status" -eq 0; then
2770
 
        # Ensure the archiver fails upon bogus file names.
2771
 
        rm -f conftest.$ac_objext libconftest.a
2772
 
        AC_TRY_EVAL([lt_ar_try])
2773
 
        if test "$ac_status" -ne 0; then
2774
 
          lt_cv_ar_at_file=@
2775
 
        fi
2776
 
      fi
2777
 
      rm -f conftest.* libconftest.a
2778
 
     ])
2779
 
  ])
2780
 
 
2781
 
if test "x$lt_cv_ar_at_file" = xno; then
2782
 
  archiver_list_spec=
2783
 
else
2784
 
  archiver_list_spec=$lt_cv_ar_at_file
2785
 
fi
2786
 
_LT_DECL([], [archiver_list_spec], [1],
2787
 
  [How to feed a file listing to the archiver])
2788
 
])# _LT_PROG_AR
2789
 
 
2790
 
 
2791
2697
# _LT_CMD_OLD_ARCHIVE
2792
2698
# -------------------
2793
2699
m4_defun([_LT_CMD_OLD_ARCHIVE],
2794
 
[_LT_PROG_AR
 
2700
[AC_CHECK_TOOL(AR, ar, false)
 
2701
test -z "$AR" && AR=ar
 
2702
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2703
_LT_DECL([], [AR], [1], [The archiver])
 
2704
_LT_DECL([], [AR_FLAGS], [1])
2795
2705
 
2796
2706
AC_CHECK_TOOL(STRIP, strip, :)
2797
2707
test -z "$STRIP" && STRIP=:
2810
2720
if test -n "$RANLIB"; then
2811
2721
  case $host_os in
2812
2722
  openbsd*)
2813
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
2723
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2814
2724
    ;;
2815
2725
  *)
2816
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
2726
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2817
2727
    ;;
2818
2728
  esac
2819
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
2729
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2820
2730
fi
2821
 
 
2822
 
case $host_os in
2823
 
  darwin*)
2824
 
    lock_old_archive_extraction=yes ;;
2825
 
  *)
2826
 
    lock_old_archive_extraction=no ;;
2827
 
esac
2828
2731
_LT_DECL([], [old_postinstall_cmds], [2])
2829
2732
_LT_DECL([], [old_postuninstall_cmds], [2])
2830
2733
_LT_TAGDECL([], [old_archive_cmds], [2],
2831
2734
    [Commands used to build an old-style archive])
2832
 
_LT_DECL([], [lock_old_archive_extraction], [0],
2833
 
    [Whether to use a lock for old archive extraction])
2834
2735
])# _LT_CMD_OLD_ARCHIVE
2835
2736
 
2836
2737
 
2855
2756
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2856
2757
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2857
2758
   -e 's:$: $lt_compiler_flag:'`
2858
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2759
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2859
2760
   (eval "$lt_compile" 2>conftest.err)
2860
2761
   ac_status=$?
2861
2762
   cat conftest.err >&AS_MESSAGE_LOG_FD
2862
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2763
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2863
2764
   if (exit $ac_status) && test -s "$ac_outfile"; then
2864
2765
     # The compiler can only warn and ignore the option if not recognized
2865
2766
     # So say no if there are warnings other than the usual output.
2866
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
2767
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2867
2768
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2868
2769
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2869
2770
       $2=yes
2903
2804
     if test -s conftest.err; then
2904
2805
       # Append any errors to the config.log.
2905
2806
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2906
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
2807
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2907
2808
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2908
2809
       if diff conftest.exp conftest.er2 >/dev/null; then
2909
2810
         $2=yes
2966
2867
    lt_cv_sys_max_cmd_len=8192;
2967
2868
    ;;
2968
2869
 
2969
 
  mint*)
2970
 
    # On MiNT this can take a long time and run out of memory.
2971
 
    lt_cv_sys_max_cmd_len=8192;
2972
 
    ;;
2973
 
 
2974
2870
  amigaos*)
2975
2871
    # On AmigaOS with pdksh, this test takes hours, literally.
2976
2872
    # So we just punt and use a minimum line length of 8192.
2996
2892
    lt_cv_sys_max_cmd_len=196608
2997
2893
    ;;
2998
2894
 
2999
 
  os2*)
3000
 
    # The test takes a long time on OS/2.
3001
 
    lt_cv_sys_max_cmd_len=8192
3002
 
    ;;
3003
 
 
3004
2895
  osf*)
3005
2896
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3006
2897
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3040
2931
      # If test is not a shell built-in, we'll probably end up computing a
3041
2932
      # maximum length that is only half of the actual maximum length, but
3042
2933
      # we can't tell.
3043
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3044
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
2934
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2935
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3045
2936
              test $i != 17 # 1/2 MB should be enough
3046
2937
      do
3047
2938
        i=`expr $i + 1`
3092
2983
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3093
2984
  lt_status=$lt_dlunknown
3094
2985
  cat > conftest.$ac_ext <<_LT_EOF
3095
 
[#line $LINENO "configure"
 
2986
[#line __oline__ "configure"
3096
2987
#include "confdefs.h"
3097
2988
 
3098
2989
#if HAVE_DLFCN_H
3133
3024
#  endif
3134
3025
#endif
3135
3026
 
3136
 
/* When -fvisbility=hidden is used, assume the code has been annotated
3137
 
   correspondingly for the symbols needed.  */
3138
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3139
 
int fnord () __attribute__((visibility("default")));
3140
 
#endif
3141
 
 
3142
 
int fnord () { return 42; }
 
3027
void fnord() { int i=42;}
3143
3028
int main ()
3144
3029
{
3145
3030
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3148
3033
  if (self)
3149
3034
    {
3150
3035
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
3151
 
      else
3152
 
        {
3153
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
3154
 
          else puts (dlerror ());
3155
 
        }
 
3036
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3156
3037
      /* dlclose (self); */
3157
3038
    }
3158
3039
  else
3328
3209
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3329
3210
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3330
3211
   -e 's:$: $lt_compiler_flag:'`
3331
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3212
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3332
3213
   (eval "$lt_compile" 2>out/conftest.err)
3333
3214
   ac_status=$?
3334
3215
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
3335
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3216
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3336
3217
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
3337
3218
   then
3338
3219
     # The compiler can only warn and ignore the option if not recognized
3339
3220
     # So say no if there are warnings
3340
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
3221
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3341
3222
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3342
3223
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3343
3224
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3496
3377
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3497
3378
m4_require([_LT_DECL_OBJDUMP])dnl
3498
3379
m4_require([_LT_DECL_SED])dnl
3499
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3500
3380
AC_MSG_CHECKING([dynamic linker characteristics])
3501
3381
m4_if([$1],
3502
3382
        [], [
3505
3385
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3506
3386
    *) lt_awk_arg="/^libraries:/" ;;
3507
3387
  esac
3508
 
  case $host_os in
3509
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3510
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
3511
 
  esac
3512
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3513
 
  case $lt_search_path_spec in
3514
 
  *\;*)
 
3388
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3389
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3515
3390
    # if the path contains ";" then we assume it to be the separator
3516
3391
    # otherwise default to the standard path separator (i.e. ":") - it is
3517
3392
    # assumed that no part of a normal pathname contains ";" but that should
3518
3393
    # okay in the real world where ";" in dirpaths is itself problematic.
3519
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3520
 
    ;;
3521
 
  *)
3522
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3523
 
    ;;
3524
 
  esac
 
3394
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3395
  else
 
3396
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3397
  fi
3525
3398
  # Ok, now we have the path, separated by spaces, we can step through it
3526
3399
  # and add multilib dir if necessary.
3527
3400
  lt_tmp_lt_search_path_spec=
3534
3407
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3535
3408
    fi
3536
3409
  done
3537
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
3410
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3538
3411
BEGIN {RS=" "; FS="/|\n";} {
3539
3412
  lt_foo="";
3540
3413
  lt_count=0;
3554
3427
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3555
3428
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3556
3429
}'`
3557
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
3558
 
  # for these hosts.
3559
 
  case $host_os in
3560
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
3561
 
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
3562
 
  esac
3563
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
3430
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3564
3431
else
3565
3432
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3566
3433
fi])
3586
3453
 
3587
3454
case $host_os in
3588
3455
aix3*)
3589
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3456
  version_type=linux
3590
3457
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3591
3458
  shlibpath_var=LIBPATH
3592
3459
 
3595
3462
  ;;
3596
3463
 
3597
3464
aix[[4-9]]*)
3598
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3465
  version_type=linux
3599
3466
  need_lib_prefix=no
3600
3467
  need_version=no
3601
3468
  hardcode_into_libs=yes
3648
3515
  m68k)
3649
3516
    library_names_spec='$libname.ixlibrary $libname.a'
3650
3517
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3651
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
3518
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3652
3519
    ;;
3653
3520
  esac
3654
3521
  ;;
3660
3527
  ;;
3661
3528
 
3662
3529
bsdi[[45]]*)
3663
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3530
  version_type=linux
3664
3531
  need_version=no
3665
3532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3666
3533
  soname_spec='${libname}${release}${shared_ext}$major'
3679
3546
  need_version=no
3680
3547
  need_lib_prefix=no
3681
3548
 
3682
 
  case $GCC,$cc_basename in
3683
 
  yes,*)
3684
 
    # gcc
 
3549
  case $GCC,$host_os in
 
3550
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3685
3551
    library_names_spec='$libname.dll.a'
3686
3552
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3687
3553
    postinstall_cmds='base_file=`basename \${file}`~
3702
3568
    cygwin*)
3703
3569
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3704
3570
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3705
 
m4_if([$1], [],[
3706
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 
3571
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3707
3572
      ;;
3708
3573
    mingw* | cegcc*)
3709
3574
      # MinGW DLLs use traditional 'lib' prefix
3710
3575
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3576
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3577
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3578
        # It is most probably a Windows format PATH printed by
 
3579
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
3580
        # path with ; separators, and with drive letters. We can handle the
 
3581
        # drive letters (cygwin fileutils understands them), so leave them,
 
3582
        # especially as we might pass files found there to a mingw objdump,
 
3583
        # which wouldn't understand a cygwinified path. Ahh.
 
3584
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3585
      else
 
3586
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3587
      fi
3711
3588
      ;;
3712
3589
    pw32*)
3713
3590
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3714
3591
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3715
3592
      ;;
3716
3593
    esac
3717
 
    dynamic_linker='Win32 ld.exe'
3718
 
    ;;
3719
 
 
3720
 
  *,cl*)
3721
 
    # Native MSVC
3722
 
    libname_spec='$name'
3723
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3724
 
    library_names_spec='${libname}.dll.lib'
3725
 
 
3726
 
    case $build_os in
3727
 
    mingw*)
3728
 
      sys_lib_search_path_spec=
3729
 
      lt_save_ifs=$IFS
3730
 
      IFS=';'
3731
 
      for lt_path in $LIB
3732
 
      do
3733
 
        IFS=$lt_save_ifs
3734
 
        # Let DOS variable expansion print the short 8.3 style file name.
3735
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3736
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3737
 
      done
3738
 
      IFS=$lt_save_ifs
3739
 
      # Convert to MSYS style.
3740
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3741
 
      ;;
3742
 
    cygwin*)
3743
 
      # Convert to unix form, then to dos form, then back to unix form
3744
 
      # but this time dos style (no spaces!) so that the unix form looks
3745
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
3746
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3747
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3748
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3749
 
      ;;
3750
 
    *)
3751
 
      sys_lib_search_path_spec="$LIB"
3752
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3753
 
        # It is most probably a Windows format PATH.
3754
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3755
 
      else
3756
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3757
 
      fi
3758
 
      # FIXME: find the short name or the path components, as spaces are
3759
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
3760
 
      ;;
3761
 
    esac
3762
 
 
3763
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3764
 
    postinstall_cmds='base_file=`basename \${file}`~
3765
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3766
 
      dldir=$destdir/`dirname \$dlpath`~
3767
 
      test -d \$dldir || mkdir -p \$dldir~
3768
 
      $install_prog $dir/$dlname \$dldir/$dlname'
3769
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3770
 
      dlpath=$dir/\$dldll~
3771
 
       $RM \$dlpath'
3772
 
    shlibpath_overrides_runpath=yes
3773
 
    dynamic_linker='Win32 link.exe'
3774
3594
    ;;
3775
3595
 
3776
3596
  *)
3777
 
    # Assume MSVC wrapper
3778
3597
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3779
 
    dynamic_linker='Win32 ld.exe'
3780
3598
    ;;
3781
3599
  esac
 
3600
  dynamic_linker='Win32 ld.exe'
3782
3601
  # FIXME: first we should search . and the directory the executable is in
3783
3602
  shlibpath_var=PATH
3784
3603
  ;;
3799
3618
  ;;
3800
3619
 
3801
3620
dgux*)
3802
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3621
  version_type=linux
3803
3622
  need_lib_prefix=no
3804
3623
  need_version=no
3805
3624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3807
3626
  shlibpath_var=LD_LIBRARY_PATH
3808
3627
  ;;
3809
3628
 
 
3629
freebsd1*)
 
3630
  dynamic_linker=no
 
3631
  ;;
 
3632
 
3810
3633
freebsd* | dragonfly*)
3811
3634
  # DragonFly does not have aout.  When/if they implement a new
3812
3635
  # versioning mechanism, adjust this.
3814
3637
    objformat=`/usr/bin/objformat`
3815
3638
  else
3816
3639
    case $host_os in
3817
 
    freebsd[[23]].*) objformat=aout ;;
 
3640
    freebsd[[123]]*) objformat=aout ;;
3818
3641
    *) objformat=elf ;;
3819
3642
    esac
3820
3643
  fi
3832
3655
  esac
3833
3656
  shlibpath_var=LD_LIBRARY_PATH
3834
3657
  case $host_os in
3835
 
  freebsd2.*)
 
3658
  freebsd2*)
3836
3659
    shlibpath_overrides_runpath=yes
3837
3660
    ;;
3838
3661
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3852
3675
  ;;
3853
3676
 
3854
3677
gnu*)
3855
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3678
  version_type=linux
3856
3679
  need_lib_prefix=no
3857
3680
  need_version=no
3858
3681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3859
3682
  soname_spec='${libname}${release}${shared_ext}$major'
3860
3683
  shlibpath_var=LD_LIBRARY_PATH
3861
 
  shlibpath_overrides_runpath=no
3862
 
  hardcode_into_libs=yes
3863
 
  ;;
3864
 
 
3865
 
haiku*)
3866
 
  version_type=linux # correct to gnu/linux during the next big refactor
3867
 
  need_lib_prefix=no
3868
 
  need_version=no
3869
 
  dynamic_linker="$host_os runtime_loader"
3870
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3871
 
  soname_spec='${libname}${release}${shared_ext}$major'
3872
 
  shlibpath_var=LIBRARY_PATH
3873
 
  shlibpath_overrides_runpath=yes
3874
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3875
3684
  hardcode_into_libs=yes
3876
3685
  ;;
3877
3686
 
3917
3726
    soname_spec='${libname}${release}${shared_ext}$major'
3918
3727
    ;;
3919
3728
  esac
3920
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
3729
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3921
3730
  postinstall_cmds='chmod 555 $lib'
3922
 
  # or fails outright, so override atomically:
3923
 
  install_override_mode=555
3924
3731
  ;;
3925
3732
 
3926
3733
interix[[3-9]]*)
3927
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3734
  version_type=linux
3928
3735
  need_lib_prefix=no
3929
3736
  need_version=no
3930
3737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3940
3747
    nonstopux*) version_type=nonstopux ;;
3941
3748
    *)
3942
3749
        if test "$lt_cv_prog_gnu_ld" = yes; then
3943
 
                version_type=linux # correct to gnu/linux during the next big refactor
 
3750
                version_type=linux
3944
3751
        else
3945
3752
                version_type=irix
3946
3753
        fi ;;
3977
3784
  dynamic_linker=no
3978
3785
  ;;
3979
3786
 
3980
 
# This must be glibc/ELF.
3981
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3982
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3787
# This must be Linux ELF.
 
3788
linux* | k*bsd*-gnu)
 
3789
  version_type=linux
3983
3790
  need_lib_prefix=no
3984
3791
  need_version=no
3985
3792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3987
3794
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3988
3795
  shlibpath_var=LD_LIBRARY_PATH
3989
3796
  shlibpath_overrides_runpath=no
3990
 
 
3991
3797
  # Some binutils ld are patched to set DT_RUNPATH
3992
 
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3993
 
    [lt_cv_shlibpath_overrides_runpath=no
3994
 
    save_LDFLAGS=$LDFLAGS
3995
 
    save_libdir=$libdir
3996
 
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3997
 
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3998
 
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3999
 
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4000
 
         [lt_cv_shlibpath_overrides_runpath=yes])])
4001
 
    LDFLAGS=$save_LDFLAGS
4002
 
    libdir=$save_libdir
4003
 
    ])
4004
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
3798
  save_LDFLAGS=$LDFLAGS
 
3799
  save_libdir=$libdir
 
3800
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3801
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3802
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3803
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3804
       [shlibpath_overrides_runpath=yes])])
 
3805
  LDFLAGS=$save_LDFLAGS
 
3806
  libdir=$save_libdir
4005
3807
 
4006
3808
  # This implies no fast_install, which is unacceptable.
4007
3809
  # Some rework will be needed to allow for fast_install
4010
3812
 
4011
3813
  # Append ld.so.conf contents to the search path
4012
3814
  if test -f /etc/ld.so.conf; then
4013
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
3815
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
4014
3816
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4015
3817
  fi
4016
3818
 
4023
3825
  dynamic_linker='GNU/Linux ld.so'
4024
3826
  ;;
4025
3827
 
4026
 
netbsdelf*-gnu)
4027
 
  version_type=linux
4028
 
  need_lib_prefix=no
4029
 
  need_version=no
4030
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4031
 
  soname_spec='${libname}${release}${shared_ext}$major'
4032
 
  shlibpath_var=LD_LIBRARY_PATH
4033
 
  shlibpath_overrides_runpath=no
4034
 
  hardcode_into_libs=yes
4035
 
  dynamic_linker='NetBSD ld.elf_so'
4036
 
  ;;
4037
 
 
4038
3828
netbsd*)
4039
3829
  version_type=sunos
4040
3830
  need_lib_prefix=no
4054
3844
  ;;
4055
3845
 
4056
3846
newsos6)
4057
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3847
  version_type=linux
4058
3848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4059
3849
  shlibpath_var=LD_LIBRARY_PATH
4060
3850
  shlibpath_overrides_runpath=yes
4123
3913
  ;;
4124
3914
 
4125
3915
solaris*)
4126
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3916
  version_type=linux
4127
3917
  need_lib_prefix=no
4128
3918
  need_version=no
4129
3919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4148
3938
  ;;
4149
3939
 
4150
3940
sysv4 | sysv4.3*)
4151
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3941
  version_type=linux
4152
3942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4153
3943
  soname_spec='${libname}${release}${shared_ext}$major'
4154
3944
  shlibpath_var=LD_LIBRARY_PATH
4172
3962
 
4173
3963
sysv4*MP*)
4174
3964
  if test -d /usr/nec ;then
4175
 
    version_type=linux # correct to gnu/linux during the next big refactor
 
3965
    version_type=linux
4176
3966
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4177
3967
    soname_spec='$libname${shared_ext}.$major'
4178
3968
    shlibpath_var=LD_LIBRARY_PATH
4203
3993
 
4204
3994
tpf*)
4205
3995
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
4206
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
3996
  version_type=linux
4207
3997
  need_lib_prefix=no
4208
3998
  need_version=no
4209
3999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4213
4003
  ;;
4214
4004
 
4215
4005
uts4*)
4216
 
  version_type=linux # correct to gnu/linux during the next big refactor
 
4006
  version_type=linux
4217
4007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4218
4008
  soname_spec='${libname}${release}${shared_ext}$major'
4219
4009
  shlibpath_var=LD_LIBRARY_PATH
4255
4045
    The last name is the one that the linker finds with -lNAME]])
4256
4046
_LT_DECL([], [soname_spec], [1],
4257
4047
    [[The coded name of the library, if different from the real name]])
4258
 
_LT_DECL([], [install_override_mode], [1],
4259
 
    [Permission mode override for installation of shared libraries])
4260
4048
_LT_DECL([], [postinstall_cmds], [2],
4261
4049
    [Command to use after installation of a shared archive])
4262
4050
_LT_DECL([], [postuninstall_cmds], [2],
4369
4157
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4370
4158
m4_require([_LT_DECL_SED])dnl
4371
4159
m4_require([_LT_DECL_EGREP])dnl
4372
 
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4373
4160
 
4374
4161
AC_ARG_WITH([gnu-ld],
4375
4162
    [AS_HELP_STRING([--with-gnu-ld],
4491
4278
esac
4492
4279
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4493
4280
case $host_os in
4494
 
  cygwin* | mingw* | pw32* | cegcc*)
4495
 
    if test "$GCC" != yes; then
4496
 
      reload_cmds=false
4497
 
    fi
4498
 
    ;;
4499
4281
  darwin*)
4500
4282
    if test "$GCC" = yes; then
4501
4283
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4504
4286
    fi
4505
4287
    ;;
4506
4288
esac
4507
 
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4508
 
_LT_TAGDECL([], [reload_cmds], [2])dnl
 
4289
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4290
_LT_DECL([], [reload_cmds], [2])dnl
4509
4291
])# _LT_CMD_RELOAD
4510
4292
 
4511
4293
 
4557
4339
  # Base MSYS/MinGW do not provide the 'file' command needed by
4558
4340
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4559
4341
  # unless we find 'file', for example because we are cross-compiling.
4560
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4561
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
4342
  if ( file / ) >/dev/null 2>&1; then
4562
4343
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4563
4344
    lt_cv_file_magic_cmd='func_win32_libid'
4564
4345
  else
4565
 
    # Keep this pattern in sync with the one in func_win32_libid.
4566
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
4346
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4567
4347
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4568
4348
  fi
4569
4349
  ;;
4570
4350
 
4571
 
cegcc*)
 
4351
cegcc)
4572
4352
  # use the weaker test based on 'objdump'. See mingw*.
4573
4353
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4574
4354
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4598
4378
  lt_cv_deplibs_check_method=pass_all
4599
4379
  ;;
4600
4380
 
4601
 
haiku*)
4602
 
  lt_cv_deplibs_check_method=pass_all
4603
 
  ;;
4604
 
 
4605
4381
hpux10.20* | hpux11*)
4606
4382
  lt_cv_file_magic_cmd=/usr/bin/file
4607
4383
  case $host_cpu in
4610
4386
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4611
4387
    ;;
4612
4388
  hppa*64*)
4613
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
 
4389
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4614
4390
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4615
4391
    ;;
4616
4392
  *)
4617
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 
4393
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4618
4394
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4619
4395
    ;;
4620
4396
  esac
4635
4411
  lt_cv_deplibs_check_method=pass_all
4636
4412
  ;;
4637
4413
 
4638
 
# This must be glibc/ELF.
4639
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4414
# This must be Linux ELF.
 
4415
linux* | k*bsd*-gnu)
4640
4416
  lt_cv_deplibs_check_method=pass_all
4641
4417
  ;;
4642
4418
 
4643
 
netbsd* | netbsdelf*-gnu)
 
4419
netbsd*)
4644
4420
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4645
4421
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4646
4422
  else
4714
4490
  ;;
4715
4491
esac
4716
4492
])
4717
 
 
4718
 
file_magic_glob=
4719
 
want_nocaseglob=no
4720
 
if test "$build" = "$host"; then
4721
 
  case $host_os in
4722
 
  mingw* | pw32*)
4723
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4724
 
      want_nocaseglob=yes
4725
 
    else
4726
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4727
 
    fi
4728
 
    ;;
4729
 
  esac
4730
 
fi
4731
 
 
4732
4493
file_magic_cmd=$lt_cv_file_magic_cmd
4733
4494
deplibs_check_method=$lt_cv_deplibs_check_method
4734
4495
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4736
4497
_LT_DECL([], [deplibs_check_method], [1],
4737
4498
    [Method to check whether dependent libraries are shared objects])
4738
4499
_LT_DECL([], [file_magic_cmd], [1],
4739
 
    [Command to use when deplibs_check_method = "file_magic"])
4740
 
_LT_DECL([], [file_magic_glob], [1],
4741
 
    [How to find potential files when deplibs_check_method = "file_magic"])
4742
 
_LT_DECL([], [want_nocaseglob], [1],
4743
 
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 
4500
    [Command to use when deplibs_check_method == "file_magic"])
4744
4501
])# _LT_CHECK_MAGIC_METHOD
4745
4502
 
4746
4503
 
4797
4554
  NM="$lt_cv_path_NM"
4798
4555
else
4799
4556
  # Didn't find any BSD compatible name lister, look for dumpbin.
4800
 
  if test -n "$DUMPBIN"; then :
4801
 
    # Let the user override the test.
4802
 
  else
4803
 
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4804
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4805
 
    *COFF*)
4806
 
      DUMPBIN="$DUMPBIN -symbols"
4807
 
      ;;
4808
 
    *)
4809
 
      DUMPBIN=:
4810
 
      ;;
4811
 
    esac
4812
 
  fi
 
4557
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4813
4558
  AC_SUBST([DUMPBIN])
4814
4559
  if test "$DUMPBIN" != ":"; then
4815
4560
    NM="$DUMPBIN"
4822
4567
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4823
4568
  [lt_cv_nm_interface="BSD nm"
4824
4569
  echo "int some_variable = 0;" > conftest.$ac_ext
4825
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4570
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4826
4571
  (eval "$ac_compile" 2>conftest.err)
4827
4572
  cat conftest.err >&AS_MESSAGE_LOG_FD
4828
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4573
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4829
4574
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4830
4575
  cat conftest.err >&AS_MESSAGE_LOG_FD
4831
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 
4576
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4832
4577
  cat conftest.out >&AS_MESSAGE_LOG_FD
4833
4578
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4834
4579
    lt_cv_nm_interface="MS dumpbin"
4843
4588
dnl AC_DEFUN([AM_PROG_NM], [])
4844
4589
dnl AC_DEFUN([AC_PROG_NM], [])
4845
4590
 
4846
 
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4847
 
# --------------------------------
4848
 
# how to determine the name of the shared library
4849
 
# associated with a specific link library.
4850
 
#  -- PORTME fill in with the dynamic library characteristics
4851
 
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4852
 
[m4_require([_LT_DECL_EGREP])
4853
 
m4_require([_LT_DECL_OBJDUMP])
4854
 
m4_require([_LT_DECL_DLLTOOL])
4855
 
AC_CACHE_CHECK([how to associate runtime and link libraries],
4856
 
lt_cv_sharedlib_from_linklib_cmd,
4857
 
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4858
 
 
4859
 
case $host_os in
4860
 
cygwin* | mingw* | pw32* | cegcc*)
4861
 
  # two different shell functions defined in ltmain.sh
4862
 
  # decide which to use based on capabilities of $DLLTOOL
4863
 
  case `$DLLTOOL --help 2>&1` in
4864
 
  *--identify-strict*)
4865
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4866
 
    ;;
4867
 
  *)
4868
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4869
 
    ;;
4870
 
  esac
4871
 
  ;;
4872
 
*)
4873
 
  # fallback: assume linklib IS sharedlib
4874
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4875
 
  ;;
4876
 
esac
4877
 
])
4878
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4879
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4880
 
 
4881
 
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4882
 
    [Command to associate shared and link libraries])
4883
 
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4884
 
 
4885
 
 
4886
 
# _LT_PATH_MANIFEST_TOOL
4887
 
# ----------------------
4888
 
# locate the manifest tool
4889
 
m4_defun([_LT_PATH_MANIFEST_TOOL],
4890
 
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4891
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4892
 
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4893
 
  [lt_cv_path_mainfest_tool=no
4894
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4895
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4896
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4897
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4898
 
    lt_cv_path_mainfest_tool=yes
4899
 
  fi
4900
 
  rm -f conftest*])
4901
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4902
 
  MANIFEST_TOOL=:
4903
 
fi
4904
 
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4905
 
])# _LT_PATH_MANIFEST_TOOL
4906
 
 
4907
4591
 
4908
4592
# LT_LIB_M
4909
4593
# --------
4912
4596
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4913
4597
LIBM=
4914
4598
case $host in
4915
 
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 
4599
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4916
4600
  # These system don't have libm, or don't need it
4917
4601
  ;;
4918
4602
*-ncr-sysv4.3*)
4940
4624
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4941
4625
 
4942
4626
if test "$GCC" = yes; then
4943
 
  case $cc_basename in
4944
 
  nvcc*)
4945
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4946
 
  *)
4947
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4948
 
  esac
 
4627
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4949
4628
 
4950
4629
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4951
4630
    lt_cv_prog_compiler_rtti_exceptions,
4962
4641
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4963
4642
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4964
4643
AC_REQUIRE([AC_PROG_CC])dnl
4965
 
AC_REQUIRE([AC_PROG_AWK])dnl
4966
4644
AC_REQUIRE([LT_PATH_NM])dnl
4967
4645
AC_REQUIRE([LT_PATH_LD])dnl
4968
4646
m4_require([_LT_DECL_SED])dnl
5030
4708
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5031
4709
 
5032
4710
# Transform an extracted symbol line into symbol name and symbol address
5033
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
5034
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
4711
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4712
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5035
4713
 
5036
4714
# Handle CRLF in mingw tool chain
5037
4715
opt_cr=
5055
4733
    # which start with @ or ?.
5056
4734
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
5057
4735
"     {last_section=section; section=\$ 3};"\
5058
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5059
4736
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5060
4737
"     \$ 0!~/External *\|/{next};"\
5061
4738
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5068
4745
  else
5069
4746
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5070
4747
  fi
5071
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5072
4748
 
5073
4749
  # Check to see that the pipe works correctly.
5074
4750
  pipe_works=no
5090
4766
  if AC_TRY_EVAL(ac_compile); then
5091
4767
    # Now try to grab the symbols.
5092
4768
    nlist=conftest.nm
5093
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 
4769
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5094
4770
      # Try sorting and uniquifying the output.
5095
4771
      if sort "$nlist" | uniq > "$nlist"T; then
5096
4772
        mv -f "$nlist"T "$nlist"
5102
4778
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5103
4779
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5104
4780
          cat <<_LT_EOF > conftest.$ac_ext
5105
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5106
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5107
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5108
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5109
 
# define LT@&t@_DLSYM_CONST
5110
 
#elif defined(__osf__)
5111
 
/* This system does not cope well with relocations in const data.  */
5112
 
# define LT@&t@_DLSYM_CONST
5113
 
#else
5114
 
# define LT@&t@_DLSYM_CONST const
5115
 
#endif
5116
 
 
5117
4781
#ifdef __cplusplus
5118
4782
extern "C" {
5119
4783
#endif
5125
4789
          cat <<_LT_EOF >> conftest.$ac_ext
5126
4790
 
5127
4791
/* The mapping between symbol names and symbols.  */
5128
 
LT@&t@_DLSYM_CONST struct {
 
4792
const struct {
5129
4793
  const char *name;
5130
4794
  void       *address;
5131
4795
}
5151
4815
_LT_EOF
5152
4816
          # Now try linking the two files.
5153
4817
          mv conftest.$ac_objext conftstm.$ac_objext
5154
 
          lt_globsym_save_LIBS=$LIBS
5155
 
          lt_globsym_save_CFLAGS=$CFLAGS
 
4818
          lt_save_LIBS="$LIBS"
 
4819
          lt_save_CFLAGS="$CFLAGS"
5156
4820
          LIBS="conftstm.$ac_objext"
5157
4821
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5158
4822
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5159
4823
            pipe_works=yes
5160
4824
          fi
5161
 
          LIBS=$lt_globsym_save_LIBS
5162
 
          CFLAGS=$lt_globsym_save_CFLAGS
 
4825
          LIBS="$lt_save_LIBS"
 
4826
          CFLAGS="$lt_save_CFLAGS"
5163
4827
        else
5164
4828
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5165
4829
        fi
5192
4856
  AC_MSG_RESULT(ok)
5193
4857
fi
5194
4858
 
5195
 
# Response file support.
5196
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5197
 
  nm_file_list_spec='@'
5198
 
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
5199
 
  nm_file_list_spec='@'
5200
 
fi
5201
 
 
5202
4859
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5203
4860
    [Take the output of nm and produce a listing of raw symbols and C names])
5204
4861
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5209
4866
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5210
4867
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5211
4868
    [Transform the output of nm in a C name address pair when lib prefix is needed])
5212
 
_LT_DECL([], [nm_file_list_spec], [1],
5213
 
    [Specify filename containing input files for $NM])
5214
4869
]) # _LT_CMD_GLOBAL_SYMBOLS
5215
4870
 
5216
4871
 
5222
4877
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5223
4878
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5224
4879
 
 
4880
AC_MSG_CHECKING([for $compiler option to produce PIC])
5225
4881
m4_if([$1], [CXX], [
5226
4882
  # C++ specific cases for pic, static, wl, etc.
5227
4883
  if test "$GXX" = yes; then
5272
4928
      # DJGPP does not support shared libraries at all
5273
4929
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5274
4930
      ;;
5275
 
    haiku*)
5276
 
      # PIC is the default for Haiku.
5277
 
      # The "-static" flag exists, but is broken.
5278
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
5279
 
      ;;
5280
4931
    interix[[3-9]]*)
5281
4932
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5282
4933
      # Instead, we relocate shared libraries at runtime.
5326
4977
          ;;
5327
4978
        esac
5328
4979
        ;;
5329
 
      mingw* | cygwin* | os2* | pw32* | cegcc*)
5330
 
        # This hack is so that the source file can tell whether it is being
5331
 
        # built for inclusion in a dll (and should export symbols for example).
5332
 
        m4_if([$1], [GCJ], [],
5333
 
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5334
 
        ;;
5335
4980
      dgux*)
5336
4981
        case $cc_basename in
5337
4982
          ec++*)
5388
5033
            ;;
5389
5034
        esac
5390
5035
        ;;
5391
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5036
      linux* | k*bsd*-gnu)
5392
5037
        case $cc_basename in
5393
5038
          KCC*)
5394
5039
            # KAI C++ Compiler
5421
5066
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5422
5067
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5423
5068
            ;;
5424
 
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
5425
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
5069
          xlc* | xlC*)
 
5070
            # IBM XL 8.0 on PPC
5426
5071
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5427
5072
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5428
5073
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5452
5097
            ;;
5453
5098
        esac
5454
5099
        ;;
5455
 
      netbsd* | netbsdelf*-gnu)
 
5100
      netbsd*)
5456
5101
        ;;
5457
5102
      *qnx* | *nto*)
5458
5103
        # QNX uses GNU C++, but need to define -shared option too, otherwise
5484
5129
        ;;
5485
5130
      solaris*)
5486
5131
        case $cc_basename in
5487
 
          CC* | sunCC*)
 
5132
          CC*)
5488
5133
            # Sun C++ 4.2, 5.x and Centerline C++
5489
5134
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5490
5135
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5588
5233
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5589
5234
      ;;
5590
5235
 
5591
 
    haiku*)
5592
 
      # PIC is the default for Haiku.
5593
 
      # The "-static" flag exists, but is broken.
5594
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
5595
 
      ;;
5596
 
 
5597
5236
    hpux*)
5598
5237
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5599
5238
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5636
5275
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5637
5276
      ;;
5638
5277
    esac
5639
 
 
5640
 
    case $cc_basename in
5641
 
    nvcc*) # Cuda Compiler Driver 2.2
5642
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5643
 
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5644
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
5645
 
      fi
5646
 
      ;;
5647
 
    esac
5648
5278
  else
5649
5279
    # PORTME Check for flag to pass linker flags through the system compiler.
5650
5280
    case $host_os in
5687
5317
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5688
5318
      ;;
5689
5319
 
5690
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5320
    linux* | k*bsd*-gnu)
5691
5321
      case $cc_basename in
5692
5322
      # old Intel for x86_64 which still supported -KPIC.
5693
5323
      ecc*)
5708
5338
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5709
5339
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5710
5340
        ;;
5711
 
      nagfor*)
5712
 
        # NAG Fortran compiler
5713
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5714
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5715
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5716
 
        ;;
5717
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
5341
      pgcc* | pgf77* | pgf90* | pgf95*)
5718
5342
        # Portland Group compilers (*not* the Pentium gcc compiler,
5719
5343
        # which looks to be a dead project)
5720
5344
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5726
5350
        # All Alpha code is PIC.
5727
5351
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5728
5352
        ;;
5729
 
      xl* | bgxl* | bgf* | mpixl*)
5730
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
5353
      xl*)
 
5354
        # IBM XL C 8.0/Fortran 10.1 on PPC
5731
5355
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5732
5356
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5733
5357
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5734
5358
        ;;
5735
5359
      *)
5736
5360
        case `$CC -V 2>&1 | sed 5q` in
5737
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 
5361
        *Sun\ C*)
 
5362
          # Sun C 5.9
 
5363
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5364
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5365
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5366
          ;;
 
5367
        *Sun\ F*)
5738
5368
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5739
5369
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5740
5370
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5741
5371
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5742
5372
          ;;
5743
 
        *Sun\ F* | *Sun*Fortran*)
5744
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5745
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5746
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5747
 
          ;;
5748
 
        *Sun\ C*)
5749
 
          # Sun C 5.9
5750
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5751
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5752
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5753
 
          ;;
5754
 
        *Intel*\ [[CF]]*Compiler*)
5755
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5756
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5757
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5758
 
          ;;
5759
 
        *Portland\ Group*)
5760
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5761
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5762
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5763
 
          ;;
5764
5373
        esac
5765
5374
        ;;
5766
5375
      esac
5791
5400
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5792
5401
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5793
5402
      case $cc_basename in
5794
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
5403
      f77* | f90* | f95*)
5795
5404
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5796
5405
      *)
5797
5406
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5848
5457
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5849
5458
    ;;
5850
5459
esac
5851
 
 
5852
 
AC_CACHE_CHECK([for $compiler option to produce PIC],
5853
 
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5854
 
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5855
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 
5460
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5461
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5462
        [How to pass a linker flag through the compiler])
5856
5463
 
5857
5464
#
5858
5465
# Check to make sure the PIC flag actually works.
5871
5478
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5872
5479
        [Additional compiler flags for building library objects])
5873
5480
 
5874
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5875
 
        [How to pass a linker flag through the compiler])
5876
5481
#
5877
5482
# Check to make sure the static flag actually works.
5878
5483
#
5893
5498
m4_defun([_LT_LINKER_SHLIBS],
5894
5499
[AC_REQUIRE([LT_PATH_LD])dnl
5895
5500
AC_REQUIRE([LT_PATH_NM])dnl
5896
 
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5897
5501
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5898
5502
m4_require([_LT_DECL_EGREP])dnl
5899
5503
m4_require([_LT_DECL_SED])dnl
5902
5506
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5903
5507
m4_if([$1], [CXX], [
5904
5508
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5905
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5906
5509
  case $host_os in
5907
5510
  aix[[4-9]]*)
5908
5511
    # If we're using GNU nm, then we don't want the "-C" option.
5909
5512
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5910
 
    # Also, AIX nm treats weak defined symbols like other global defined
5911
 
    # symbols, whereas GNU nm marks them as "W".
5912
5513
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5913
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5514
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5914
5515
    else
5915
5516
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5916
5517
    fi
5917
5518
    ;;
5918
5519
  pw32*)
5919
5520
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5920
 
    ;;
 
5521
  ;;
5921
5522
  cygwin* | mingw* | cegcc*)
5922
 
    case $cc_basename in
5923
 
    cl*)
5924
 
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5925
 
      ;;
5926
 
    *)
5927
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5928
 
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5929
 
      ;;
5930
 
    esac
5931
 
    ;;
5932
 
  linux* | k*bsd*-gnu | gnu*)
5933
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
5934
 
    ;;
 
5523
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
5524
  ;;
5935
5525
  *)
5936
5526
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5937
 
    ;;
 
5527
  ;;
5938
5528
  esac
 
5529
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5939
5530
], [
5940
5531
  runpath_var=
5941
5532
  _LT_TAGVAR(allow_undefined_flag, $1)=
5950
5541
  _LT_TAGVAR(hardcode_direct, $1)=no
5951
5542
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5952
5543
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5544
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5953
5545
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5954
5546
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5955
5547
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5994
5586
  openbsd*)
5995
5587
    with_gnu_ld=no
5996
5588
    ;;
5997
 
  linux* | k*bsd*-gnu | gnu*)
5998
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
5999
 
    ;;
6000
5589
  esac
6001
5590
 
6002
5591
  _LT_TAGVAR(ld_shlibs, $1)=yes
6003
 
 
6004
 
  # On some targets, GNU ld is compatible enough with the native linker
6005
 
  # that we're better off using the native interface for both.
6006
 
  lt_use_gnu_ld_interface=no
6007
5592
  if test "$with_gnu_ld" = yes; then
6008
 
    case $host_os in
6009
 
      aix*)
6010
 
        # The AIX port of GNU ld has always aspired to compatibility
6011
 
        # with the native linker.  However, as the warning in the GNU ld
6012
 
        # block says, versions before 2.19.5* couldn't really create working
6013
 
        # shared libraries, regardless of the interface used.
6014
 
        case `$LD -v 2>&1` in
6015
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
6016
 
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
6017
 
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
6018
 
          *)
6019
 
            lt_use_gnu_ld_interface=yes
6020
 
            ;;
6021
 
        esac
6022
 
        ;;
6023
 
      *)
6024
 
        lt_use_gnu_ld_interface=yes
6025
 
        ;;
6026
 
    esac
6027
 
  fi
6028
 
 
6029
 
  if test "$lt_use_gnu_ld_interface" = yes; then
6030
5593
    # If archive_cmds runs LD, not CC, wlarc should be empty
6031
5594
    wlarc='${wl}'
6032
5595
 
6044
5607
    fi
6045
5608
    supports_anon_versioning=no
6046
5609
    case `$LD -v 2>&1` in
6047
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
6048
5610
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6049
5611
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6050
5612
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6060
5622
        _LT_TAGVAR(ld_shlibs, $1)=no
6061
5623
        cat <<_LT_EOF 1>&2
6062
5624
 
6063
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
5625
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6064
5626
*** to be unable to reliably create shared libraries on AIX.
6065
5627
*** Therefore, libtool is disabling shared libraries support.  If you
6066
 
*** really care for shared libraries, you may want to install binutils
6067
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
6068
 
*** You will then need to restart the configuration process.
 
5628
*** really care for shared libraries, you may want to modify your PATH
 
5629
*** so that a non-GNU linker is found, and then restart.
6069
5630
 
6070
5631
_LT_EOF
6071
5632
      fi
6101
5662
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6102
5663
      # as there is no search path for DLLs.
6103
5664
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6104
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6105
5665
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6106
5666
      _LT_TAGVAR(always_export_symbols, $1)=no
6107
5667
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6108
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6109
 
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5668
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6110
5669
 
6111
5670
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6112
5671
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6124
5683
      fi
6125
5684
      ;;
6126
5685
 
6127
 
    haiku*)
6128
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6129
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6130
 
      ;;
6131
 
 
6132
5686
    interix[[3-9]]*)
6133
5687
      _LT_TAGVAR(hardcode_direct, $1)=no
6134
5688
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6144
5698
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6145
5699
      ;;
6146
5700
 
6147
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
5701
    gnu* | linux* | tpf* | k*bsd*-gnu)
6148
5702
      tmp_diet=no
6149
5703
      if test "$host_os" = linux-dietlibc; then
6150
5704
        case $cc_basename in
6154
5708
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6155
5709
         && test "$tmp_diet" = no
6156
5710
      then
6157
 
        tmp_addflag=' $pic_flag'
 
5711
        tmp_addflag=
6158
5712
        tmp_sharedflag='-shared'
6159
5713
        case $cc_basename,$host_cpu in
6160
5714
        pgcc*)                          # Portland Group C compiler
6161
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5715
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6162
5716
          tmp_addflag=' $pic_flag'
6163
5717
          ;;
6164
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
6165
 
                                        # Portland Group f77 and f90 compilers
6166
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5718
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5719
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6167
5720
          tmp_addflag=' $pic_flag -Mnomain' ;;
6168
5721
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6169
5722
          tmp_addflag=' -i_dynamic' ;;
6174
5727
        lf95*)                          # Lahey Fortran 8.1
6175
5728
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6176
5729
          tmp_sharedflag='--shared' ;;
6177
 
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
5730
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
6178
5731
          tmp_sharedflag='-qmkshrobj'
6179
5732
          tmp_addflag= ;;
6180
 
        nvcc*)  # Cuda Compiler Driver 2.2
6181
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6182
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6183
 
          ;;
6184
5733
        esac
6185
5734
        case `$CC -V 2>&1 | sed 5q` in
6186
5735
        *Sun\ C*)                       # Sun C 5.9
6187
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
5736
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6188
5737
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6189
5738
          tmp_sharedflag='-G' ;;
6190
5739
        *Sun\ F*)                       # Sun Fortran 8.3
6200
5749
        fi
6201
5750
 
6202
5751
        case $cc_basename in
6203
 
        xlf* | bgf* | bgxlf* | mpixlf*)
 
5752
        xlf*)
6204
5753
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6205
5754
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6206
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6207
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
5755
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5756
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5757
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6208
5758
          if test "x$supports_anon_versioning" = xyes; then
6209
5759
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6210
5760
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6211
5761
              echo "local: *; };" >> $output_objdir/$libname.ver~
6212
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5762
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6213
5763
          fi
6214
5764
          ;;
6215
5765
        esac
6218
5768
      fi
6219
5769
      ;;
6220
5770
 
6221
 
    netbsd* | netbsdelf*-gnu)
 
5771
    netbsd*)
6222
5772
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6223
5773
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6224
5774
        wlarc=
6225
5775
      else
6226
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6227
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5776
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5777
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6228
5778
      fi
6229
5779
      ;;
6230
5780
 
6242
5792
 
6243
5793
_LT_EOF
6244
5794
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6245
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6246
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5795
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5796
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6247
5797
      else
6248
5798
        _LT_TAGVAR(ld_shlibs, $1)=no
6249
5799
      fi
6289
5839
 
6290
5840
    *)
6291
5841
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6292
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6293
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5842
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5843
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6294
5844
      else
6295
5845
        _LT_TAGVAR(ld_shlibs, $1)=no
6296
5846
      fi
6330
5880
      else
6331
5881
        # If we're using GNU nm, then we don't want the "-C" option.
6332
5882
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6333
 
        # Also, AIX nm treats weak defined symbols like other global
6334
 
        # defined symbols, whereas GNU nm marks them as "W".
6335
5883
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6336
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
5884
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6337
5885
        else
6338
5886
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6339
5887
        fi
6395
5943
        if test "$aix_use_runtimelinking" = yes; then
6396
5944
          shared_flag="$shared_flag "'${wl}-G'
6397
5945
        fi
6398
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
6399
5946
      else
6400
5947
        # not using gcc
6401
5948
        if test "$host_cpu" = ia64; then
6421
5968
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6422
5969
        # Determine the default libpath from the value encoded in an
6423
5970
        # empty executable.
6424
 
        _LT_SYS_MODULE_PATH_AIX([$1])
 
5971
        _LT_SYS_MODULE_PATH_AIX
6425
5972
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6426
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5973
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6427
5974
      else
6428
5975
        if test "$host_cpu" = ia64; then
6429
5976
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6432
5979
        else
6433
5980
         # Determine the default libpath from the value encoded in an
6434
5981
         # empty executable.
6435
 
         _LT_SYS_MODULE_PATH_AIX([$1])
 
5982
         _LT_SYS_MODULE_PATH_AIX
6436
5983
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6437
5984
          # Warning - without using the other run time loading flags,
6438
5985
          # -berok will link without error, but may produce a broken library.
6439
5986
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6440
5987
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6441
 
          if test "$with_gnu_ld" = yes; then
6442
 
            # We only use this code for GNU lds that support --whole-archive.
6443
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6444
 
          else
6445
 
            # Exported symbols can be pulled into shared objects from archives
6446
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6447
 
          fi
 
5988
          # Exported symbols can be pulled into shared objects from archives
 
5989
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6448
5990
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6449
5991
          # This is similar to how AIX traditionally builds its shared libraries.
6450
5992
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6476
6018
      # Microsoft Visual C++.
6477
6019
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6478
6020
      # no search path for DLLs.
6479
 
      case $cc_basename in
6480
 
      cl*)
6481
 
        # Native MSVC
6482
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6483
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6484
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6485
 
        _LT_TAGVAR(file_list_spec, $1)='@'
6486
 
        # Tell ltmain to make .lib files, not .a files.
6487
 
        libext=lib
6488
 
        # Tell ltmain to make .dll files, not .so files.
6489
 
        shrext_cmds=".dll"
6490
 
        # FIXME: Setting linknames here is a bad hack.
6491
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6492
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6493
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6494
 
          else
6495
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6496
 
          fi~
6497
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6498
 
          linknames='
6499
 
        # The linker will not automatically build a static lib if we build a DLL.
6500
 
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6501
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6502
 
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6503
 
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6504
 
        # Don't use ranlib
6505
 
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6506
 
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6507
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
6508
 
          case $lt_outputfile in
6509
 
            *.exe|*.EXE) ;;
6510
 
            *)
6511
 
              lt_outputfile="$lt_outputfile.exe"
6512
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
6513
 
              ;;
6514
 
          esac~
6515
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6516
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6517
 
            $RM "$lt_outputfile.manifest";
6518
 
          fi'
6519
 
        ;;
6520
 
      *)
6521
 
        # Assume MSVC wrapper
6522
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6523
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6524
 
        # Tell ltmain to make .lib files, not .a files.
6525
 
        libext=lib
6526
 
        # Tell ltmain to make .dll files, not .so files.
6527
 
        shrext_cmds=".dll"
6528
 
        # FIXME: Setting linknames here is a bad hack.
6529
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6530
 
        # The linker will automatically build a .lib file if we build a DLL.
6531
 
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6532
 
        # FIXME: Should let the user specify the lib program.
6533
 
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6534
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6535
 
        ;;
6536
 
      esac
 
6021
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6022
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6023
      # Tell ltmain to make .lib files, not .a files.
 
6024
      libext=lib
 
6025
      # Tell ltmain to make .dll files, not .so files.
 
6026
      shrext_cmds=".dll"
 
6027
      # FIXME: Setting linknames here is a bad hack.
 
6028
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6029
      # The linker will automatically build a .lib file if we build a DLL.
 
6030
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6031
      # FIXME: Should let the user specify the lib program.
 
6032
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6033
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6034
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6537
6035
      ;;
6538
6036
 
6539
6037
    darwin* | rhapsody*)
6546
6044
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6547
6045
      ;;
6548
6046
 
 
6047
    freebsd1*)
 
6048
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6049
      ;;
 
6050
 
6549
6051
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6550
6052
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6551
6053
    # does not break anything, and helps significantly (at the cost of a little
6558
6060
      ;;
6559
6061
 
6560
6062
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6561
 
    freebsd2.*)
 
6063
    freebsd2*)
6562
6064
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6563
6065
      _LT_TAGVAR(hardcode_direct, $1)=yes
6564
6066
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6567
6069
 
6568
6070
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6569
6071
    freebsd* | dragonfly*)
6570
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6072
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6571
6073
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6572
6074
      _LT_TAGVAR(hardcode_direct, $1)=yes
6573
6075
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6575
6077
 
6576
6078
    hpux9*)
6577
6079
      if test "$GCC" = yes; then
6578
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6080
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6579
6081
      else
6580
6082
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6581
6083
      fi
6590
6092
      ;;
6591
6093
 
6592
6094
    hpux10*)
6593
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6594
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6095
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6096
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6595
6097
      else
6596
6098
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6597
6099
      fi
6598
6100
      if test "$with_gnu_ld" = no; then
6599
6101
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6102
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6600
6103
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6601
6104
        _LT_TAGVAR(hardcode_direct, $1)=yes
6602
6105
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6608
6111
      ;;
6609
6112
 
6610
6113
    hpux11*)
6611
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6114
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6612
6115
        case $host_cpu in
6613
6116
        hppa*64*)
6614
6117
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6615
6118
          ;;
6616
6119
        ia64*)
6617
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6120
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6618
6121
          ;;
6619
6122
        *)
6620
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6123
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6621
6124
          ;;
6622
6125
        esac
6623
6126
      else
6629
6132
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6630
6133
          ;;
6631
6134
        *)
6632
 
        m4_if($1, [], [
6633
 
          # Older versions of the 11.00 compiler do not understand -b yet
6634
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
6635
 
          _LT_LINKER_OPTION([if $CC understands -b],
6636
 
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
6637
 
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6638
 
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
6639
 
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 
6135
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6640
6136
          ;;
6641
6137
        esac
6642
6138
      fi
6664
6160
 
6665
6161
    irix5* | irix6* | nonstopux*)
6666
6162
      if test "$GCC" = yes; then
6667
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6163
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6668
6164
        # Try to use the -exported_symbol ld option, if it does not
6669
6165
        # work, assume that -exports_file does not work either and
6670
6166
        # implicitly export all symbols.
6671
 
        # This should be the same for all languages, so no per-tag cache variable.
6672
 
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6673
 
          [lt_cv_irix_exported_symbol],
6674
 
          [save_LDFLAGS="$LDFLAGS"
6675
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6676
 
           AC_LINK_IFELSE(
6677
 
             [AC_LANG_SOURCE(
6678
 
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6679
 
                              [C++], [[int foo (void) { return 0; }]],
6680
 
                              [Fortran 77], [[
6681
 
      subroutine foo
6682
 
      end]],
6683
 
                              [Fortran], [[
6684
 
      subroutine foo
6685
 
      end]])])],
6686
 
              [lt_cv_irix_exported_symbol=yes],
6687
 
              [lt_cv_irix_exported_symbol=no])
6688
 
           LDFLAGS="$save_LDFLAGS"])
6689
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
6690
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6691
 
        fi
 
6167
        save_LDFLAGS="$LDFLAGS"
 
6168
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6169
        AC_LINK_IFELSE(
 
6170
          [AC_LANG_SOURCE(
 
6171
             [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
6172
                           [C++], [[int foo (void) { return 0; }]],
 
6173
                           [Fortran 77], [[
 
6174
       subroutine foo
 
6175
       end]],
 
6176
                           [Fortran], [[
 
6177
       subroutine foo
 
6178
       end]])])], [
 
6179
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
6180
        ])
 
6181
        LDFLAGS="$save_LDFLAGS"
6692
6182
      else
6693
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6694
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
6183
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6184
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6695
6185
      fi
6696
6186
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6697
6187
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6700
6190
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6701
6191
      ;;
6702
6192
 
6703
 
    netbsd* | netbsdelf*-gnu)
 
6193
    netbsd*)
6704
6194
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6705
6195
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6706
6196
      else
6753
6243
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6754
6244
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6755
6245
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6756
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
6246
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6757
6247
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6758
6248
      ;;
6759
6249
 
6760
6250
    osf3*)
6761
6251
      if test "$GCC" = yes; then
6762
6252
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6763
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6253
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6764
6254
      else
6765
6255
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6766
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6256
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6767
6257
      fi
6768
6258
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6769
6259
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6773
6263
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6774
6264
      if test "$GCC" = yes; then
6775
6265
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6776
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6266
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6777
6267
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6778
6268
      else
6779
6269
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6780
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
6270
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6781
6271
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6782
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
6272
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6783
6273
 
6784
6274
        # Both c and cxx compiler support -rpath directly
6785
6275
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6792
6282
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6793
6283
      if test "$GCC" = yes; then
6794
6284
        wlarc='${wl}'
6795
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6285
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6796
6286
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6797
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6287
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6798
6288
      else
6799
6289
        case `$CC -V 2>&1` in
6800
6290
        *"Compilers 5.0"*)
6970
6460
      # Test whether the compiler implicitly links with -lc since on some
6971
6461
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6972
6462
      # to ld, don't add -lc before -lgcc.
6973
 
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6974
 
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6975
 
        [$RM conftest*
6976
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6463
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
6464
      $RM conftest*
 
6465
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6977
6466
 
6978
 
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6979
 
          soname=conftest
6980
 
          lib=conftest
6981
 
          libobjs=conftest.$ac_objext
6982
 
          deplibs=
6983
 
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6984
 
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6985
 
          compiler_flags=-v
6986
 
          linker_flags=-v
6987
 
          verstring=
6988
 
          output_objdir=.
6989
 
          libname=conftest
6990
 
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6991
 
          _LT_TAGVAR(allow_undefined_flag, $1)=
6992
 
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6993
 
          then
6994
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6995
 
          else
6996
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6997
 
          fi
6998
 
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6999
 
        else
7000
 
          cat conftest.err 1>&5
7001
 
        fi
7002
 
        $RM conftest*
7003
 
        ])
7004
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 
6467
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6468
        soname=conftest
 
6469
        lib=conftest
 
6470
        libobjs=conftest.$ac_objext
 
6471
        deplibs=
 
6472
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6473
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
6474
        compiler_flags=-v
 
6475
        linker_flags=-v
 
6476
        verstring=
 
6477
        output_objdir=.
 
6478
        libname=conftest
 
6479
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6480
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6481
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
6482
        then
 
6483
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6484
        else
 
6485
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6486
        fi
 
6487
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6488
      else
 
6489
        cat conftest.err 1>&5
 
6490
      fi
 
6491
      $RM conftest*
 
6492
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7005
6493
      ;;
7006
6494
    esac
7007
6495
  fi
7038
6526
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7039
6527
    [Flag to hardcode $libdir into a binary during linking.
7040
6528
    This must work even if $libdir does not exist])
 
6529
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6530
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6531
    during linking.  This must work even if $libdir does not exist]])
7041
6532
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7042
6533
    [Whether we need a single "-rpath" flag with a separated argument])
7043
6534
_LT_TAGDECL([], [hardcode_direct], [0],
7063
6554
    to runtime path list])
7064
6555
_LT_TAGDECL([], [link_all_deplibs], [0],
7065
6556
    [Whether libtool must link a program against all its dependency libraries])
 
6557
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6558
    [Fix the shell variable $srcfile for the compiler])
7066
6559
_LT_TAGDECL([], [always_export_symbols], [0],
7067
6560
    [Set to "yes" if exported symbols are required])
7068
6561
_LT_TAGDECL([], [export_symbols_cmds], [2],
7073
6566
    [Symbols that must always be exported])
7074
6567
_LT_TAGDECL([], [prelink_cmds], [2],
7075
6568
    [Commands necessary for linking programs (against libraries) with templates])
7076
 
_LT_TAGDECL([], [postlink_cmds], [2],
7077
 
    [Commands necessary for finishing linking programs])
7078
6569
_LT_TAGDECL([], [file_list_spec], [1],
7079
6570
    [Specify filename containing input files])
7080
6571
dnl FIXME: Not yet implemented
7164
6655
])# _LT_LANG_C_CONFIG
7165
6656
 
7166
6657
 
7167
 
# _LT_LANG_CXX_CONFIG([TAG])
7168
 
# --------------------------
7169
 
# Ensure that the configuration variables for a C++ compiler are suitably
7170
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
7171
 
# the compiler configuration to `libtool'.
7172
 
m4_defun([_LT_LANG_CXX_CONFIG],
7173
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7174
 
m4_require([_LT_DECL_EGREP])dnl
7175
 
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 
6658
# _LT_PROG_CXX
 
6659
# ------------
 
6660
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6661
# compiler, we have our own version here.
 
6662
m4_defun([_LT_PROG_CXX],
 
6663
[
 
6664
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6665
AC_PROG_CXX
7176
6666
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7177
6667
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7178
6668
    (test "X$CXX" != "Xg++"))) ; then
7180
6670
else
7181
6671
  _lt_caught_CXX_error=yes
7182
6672
fi
 
6673
popdef([AC_MSG_ERROR])
 
6674
])# _LT_PROG_CXX
 
6675
 
 
6676
dnl aclocal-1.4 backwards compatibility:
 
6677
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6678
 
 
6679
 
 
6680
# _LT_LANG_CXX_CONFIG([TAG])
 
6681
# --------------------------
 
6682
# Ensure that the configuration variables for a C++ compiler are suitably
 
6683
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6684
# the compiler configuration to `libtool'.
 
6685
m4_defun([_LT_LANG_CXX_CONFIG],
 
6686
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6687
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6688
m4_require([_LT_DECL_EGREP])dnl
7183
6689
 
7184
6690
AC_LANG_PUSH(C++)
7185
6691
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7191
6697
_LT_TAGVAR(hardcode_direct, $1)=no
7192
6698
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7193
6699
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6700
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7194
6701
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7195
6702
_LT_TAGVAR(hardcode_minus_L, $1)=no
7196
6703
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7200
6707
_LT_TAGVAR(module_expsym_cmds, $1)=
7201
6708
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7202
6709
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7203
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7204
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7205
6710
_LT_TAGVAR(no_undefined_flag, $1)=
7206
6711
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7207
6712
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7233
6738
 
7234
6739
  # Allow CC to be a program name with arguments.
7235
6740
  lt_save_CC=$CC
7236
 
  lt_save_CFLAGS=$CFLAGS
7237
6741
  lt_save_LD=$LD
7238
6742
  lt_save_GCC=$GCC
7239
6743
  GCC=$GXX
7251
6755
  fi
7252
6756
  test -z "${LDCXX+set}" || LD=$LDCXX
7253
6757
  CC=${CXX-"c++"}
7254
 
  CFLAGS=$CXXFLAGS
7255
6758
  compiler=$CC
7256
6759
  _LT_TAGVAR(compiler, $1)=$CC
7257
6760
  _LT_CC_BASENAME([$compiler])
7273
6776
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
7274
6777
      # archiving commands below assume that GNU ld is being used.
7275
6778
      if test "$with_gnu_ld" = yes; then
7276
 
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7277
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6779
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6780
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7278
6781
 
7279
6782
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7280
6783
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7306
6809
      # Commands to make compiler produce verbose output that lists
7307
6810
      # what "hidden" libraries, object files and flags are used when
7308
6811
      # linking a shared library.
7309
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
6812
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7310
6813
 
7311
6814
    else
7312
6815
      GXX=no
7415
6918
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7416
6919
          # Determine the default libpath from the value encoded in an empty
7417
6920
          # executable.
7418
 
          _LT_SYS_MODULE_PATH_AIX([$1])
 
6921
          _LT_SYS_MODULE_PATH_AIX
7419
6922
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7420
6923
 
7421
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6924
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7422
6925
        else
7423
6926
          if test "$host_cpu" = ia64; then
7424
6927
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7427
6930
          else
7428
6931
            # Determine the default libpath from the value encoded in an
7429
6932
            # empty executable.
7430
 
            _LT_SYS_MODULE_PATH_AIX([$1])
 
6933
            _LT_SYS_MODULE_PATH_AIX
7431
6934
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7432
6935
            # Warning - without using the other run time loading flags,
7433
6936
            # -berok will link without error, but may produce a broken library.
7434
6937
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7435
6938
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7436
 
            if test "$with_gnu_ld" = yes; then
7437
 
              # We only use this code for GNU lds that support --whole-archive.
7438
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7439
 
            else
7440
 
              # Exported symbols can be pulled into shared objects from archives
7441
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7442
 
            fi
 
6939
            # Exported symbols can be pulled into shared objects from archives
 
6940
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7443
6941
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7444
6942
            # This is similar to how AIX traditionally builds its shared
7445
6943
            # libraries.
7469
6967
        ;;
7470
6968
 
7471
6969
      cygwin* | mingw* | pw32* | cegcc*)
7472
 
        case $GXX,$cc_basename in
7473
 
        ,cl* | no,cl*)
7474
 
          # Native MSVC
7475
 
          # hardcode_libdir_flag_spec is actually meaningless, as there is
7476
 
          # no search path for DLLs.
7477
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7478
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7479
 
          _LT_TAGVAR(always_export_symbols, $1)=yes
7480
 
          _LT_TAGVAR(file_list_spec, $1)='@'
7481
 
          # Tell ltmain to make .lib files, not .a files.
7482
 
          libext=lib
7483
 
          # Tell ltmain to make .dll files, not .so files.
7484
 
          shrext_cmds=".dll"
7485
 
          # FIXME: Setting linknames here is a bad hack.
7486
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7487
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7488
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7489
 
            else
7490
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7491
 
            fi~
7492
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7493
 
            linknames='
7494
 
          # The linker will not automatically build a static lib if we build a DLL.
7495
 
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7496
 
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7497
 
          # Don't use ranlib
7498
 
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7499
 
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7500
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
7501
 
            case $lt_outputfile in
7502
 
              *.exe|*.EXE) ;;
7503
 
              *)
7504
 
                lt_outputfile="$lt_outputfile.exe"
7505
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
7506
 
                ;;
7507
 
            esac~
7508
 
            func_to_tool_file "$lt_outputfile"~
7509
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7510
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7511
 
              $RM "$lt_outputfile.manifest";
7512
 
            fi'
7513
 
          ;;
7514
 
        *)
7515
 
          # g++
7516
 
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7517
 
          # as there is no search path for DLLs.
7518
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7519
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7520
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7521
 
          _LT_TAGVAR(always_export_symbols, $1)=no
7522
 
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6970
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6971
        # as there is no search path for DLLs.
 
6972
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6973
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6974
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6975
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7523
6976
 
7524
 
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7525
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7526
 
            # If the export-symbols file already is a .def file (1st line
7527
 
            # is EXPORTS), use it as is; otherwise, prepend...
7528
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7529
 
              cp $export_symbols $output_objdir/$soname.def;
7530
 
            else
7531
 
              echo EXPORTS > $output_objdir/$soname.def;
7532
 
              cat $export_symbols >> $output_objdir/$soname.def;
7533
 
            fi~
7534
 
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7535
 
          else
7536
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7537
 
          fi
7538
 
          ;;
7539
 
        esac
7540
 
        ;;
 
6977
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6978
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6979
          # If the export-symbols file already is a .def file (1st line
 
6980
          # is EXPORTS), use it as is; otherwise, prepend...
 
6981
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6982
            cp $export_symbols $output_objdir/$soname.def;
 
6983
          else
 
6984
            echo EXPORTS > $output_objdir/$soname.def;
 
6985
            cat $export_symbols >> $output_objdir/$soname.def;
 
6986
          fi~
 
6987
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6988
        else
 
6989
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6990
        fi
 
6991
        ;;
7541
6992
      darwin* | rhapsody*)
7542
6993
        _LT_DARWIN_LINKER_FEATURES($1)
7543
6994
        ;;
7560
7011
        esac
7561
7012
        ;;
7562
7013
 
7563
 
      freebsd2.*)
 
7014
      freebsd[[12]]*)
7564
7015
        # C++ shared libraries reported to be fairly broken before
7565
7016
        # switch to ELF
7566
7017
        _LT_TAGVAR(ld_shlibs, $1)=no
7579
7030
      gnu*)
7580
7031
        ;;
7581
7032
 
7582
 
      haiku*)
7583
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7584
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7585
 
        ;;
7586
 
 
7587
7033
      hpux9*)
7588
7034
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7589
7035
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7608
7054
            # explicitly linking system object files so we need to strip them
7609
7055
            # from the output so that they don't get included in the library
7610
7056
            # dependencies.
7611
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7057
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7612
7058
            ;;
7613
7059
          *)
7614
7060
            if test "$GXX" = yes; then
7615
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7061
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7616
7062
            else
7617
7063
              # FIXME: insert proper C++ library support
7618
7064
              _LT_TAGVAR(ld_shlibs, $1)=no
7673
7119
            # explicitly linking system object files so we need to strip them
7674
7120
            # from the output so that they don't get included in the library
7675
7121
            # dependencies.
7676
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7122
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7677
7123
            ;;
7678
7124
          *)
7679
7125
            if test "$GXX" = yes; then
7683
7129
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7684
7130
                    ;;
7685
7131
                  ia64*)
7686
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7132
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7687
7133
                    ;;
7688
7134
                  *)
7689
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7135
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7690
7136
                    ;;
7691
7137
                esac
7692
7138
              fi
7716
7162
        case $cc_basename in
7717
7163
          CC*)
7718
7164
            # SGI C++
7719
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7165
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7720
7166
 
7721
7167
            # Archives containing C++ object files must be created using
7722
7168
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7727
7173
          *)
7728
7174
            if test "$GXX" = yes; then
7729
7175
              if test "$with_gnu_ld" = no; then
7730
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7176
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7731
7177
              else
7732
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
7178
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
7733
7179
              fi
7734
7180
            fi
7735
7181
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7740
7186
        _LT_TAGVAR(inherit_rpath, $1)=yes
7741
7187
        ;;
7742
7188
 
7743
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7189
      linux* | k*bsd*-gnu)
7744
7190
        case $cc_basename in
7745
7191
          KCC*)
7746
7192
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7758
7204
            # explicitly linking system object files so we need to strip them
7759
7205
            # from the output so that they don't get included in the library
7760
7206
            # dependencies.
7761
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7207
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7762
7208
 
7763
7209
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7764
7210
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7795
7241
          pgCC* | pgcpp*)
7796
7242
            # Portland Group C++ compiler
7797
7243
            case `$CC -V` in
7798
 
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 
7244
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
7799
7245
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7800
7246
                rm -rf $tpldir~
7801
7247
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7802
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
7248
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
7803
7249
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7804
7250
                rm -rf $tpldir~
7805
7251
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7806
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
7252
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
7807
7253
                $RANLIB $oldlib'
7808
7254
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7809
7255
                rm -rf $tpldir~
7810
7256
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7811
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7257
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7812
7258
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7813
7259
                rm -rf $tpldir~
7814
7260
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7815
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
7261
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7816
7262
              ;;
7817
 
            *) # Version 6 and above use weak symbols
 
7263
            *) # Version 6 will use weak symbols
7818
7264
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7819
7265
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7820
7266
              ;;
7822
7268
 
7823
7269
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7824
7270
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7825
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7271
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7826
7272
            ;;
7827
7273
          cxx*)
7828
7274
            # Compaq C++
7841
7287
            # explicitly linking system object files so we need to strip them
7842
7288
            # from the output so that they don't get included in the library
7843
7289
            # dependencies.
7844
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
7290
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7845
7291
            ;;
7846
 
          xl* | mpixl* | bgxl*)
 
7292
          xl*)
7847
7293
            # IBM XL 8.0 on PPC, with GNU ld
7848
7294
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7849
7295
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7863
7309
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7864
7310
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7865
7311
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7866
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
7312
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7867
7313
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7868
7314
 
7869
7315
              # Not sure whether something based on
7870
7316
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7871
7317
              # would be better.
7872
 
              output_verbose_link_cmd='func_echo_all'
 
7318
              output_verbose_link_cmd='echo'
7873
7319
 
7874
7320
              # Archives containing C++ object files must be created using
7875
7321
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7938
7384
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7939
7385
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7940
7386
          fi
7941
 
          output_verbose_link_cmd=func_echo_all
 
7387
          output_verbose_link_cmd=echo
7942
7388
        else
7943
7389
          _LT_TAGVAR(ld_shlibs, $1)=no
7944
7390
        fi
7973
7419
            case $host in
7974
7420
              osf3*)
7975
7421
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7976
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7422
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7977
7423
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7978
7424
                ;;
7979
7425
              *)
7980
7426
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7981
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
7427
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7982
7428
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7983
7429
                  echo "-hidden">> $lib.exp~
7984
 
                  $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~
 
7430
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7985
7431
                  $RM $lib.exp'
7986
7432
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7987
7433
                ;;
7997
7443
            # explicitly linking system object files so we need to strip them
7998
7444
            # from the output so that they don't get included in the library
7999
7445
            # dependencies.
8000
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
7446
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
8001
7447
            ;;
8002
7448
          *)
8003
7449
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8004
7450
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8005
7451
              case $host in
8006
7452
                osf3*)
8007
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7453
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8008
7454
                  ;;
8009
7455
                *)
8010
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7456
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8011
7457
                  ;;
8012
7458
              esac
8013
7459
 
8017
7463
              # Commands to make compiler produce verbose output that lists
8018
7464
              # what "hidden" libraries, object files and flags are used when
8019
7465
              # linking a shared library.
8020
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7466
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8021
7467
 
8022
7468
            else
8023
7469
              # FIXME: insert proper C++ library support
8053
7499
 
8054
7500
      solaris*)
8055
7501
        case $cc_basename in
8056
 
          CC* | sunCC*)
 
7502
          CC*)
8057
7503
            # Sun C++ 4.2, 5.x and Centerline C++
8058
7504
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8059
7505
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8074
7520
            esac
8075
7521
            _LT_TAGVAR(link_all_deplibs, $1)=yes
8076
7522
 
8077
 
            output_verbose_link_cmd='func_echo_all'
 
7523
            output_verbose_link_cmd='echo'
8078
7524
 
8079
7525
            # Archives containing C++ object files must be created using
8080
7526
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
8094
7540
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8095
7541
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8096
7542
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8097
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7543
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8098
7544
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8099
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7545
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8100
7546
 
8101
7547
                # Commands to make compiler produce verbose output that lists
8102
7548
                # what "hidden" libraries, object files and flags are used when
8103
7549
                # linking a shared library.
8104
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7550
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8105
7551
              else
8106
7552
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
8107
7553
                # platform.
8112
7558
                # Commands to make compiler produce verbose output that lists
8113
7559
                # what "hidden" libraries, object files and flags are used when
8114
7560
                # linking a shared library.
8115
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
7561
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8116
7562
              fi
8117
7563
 
8118
7564
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8166
7612
          CC*)
8167
7613
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168
7614
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8169
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
8170
 
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
8171
 
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
8172
 
              '"$_LT_TAGVAR(reload_cmds, $1)"
8173
7615
            ;;
8174
7616
          *)
8175
7617
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8225
7667
  fi # test -n "$compiler"
8226
7668
 
8227
7669
  CC=$lt_save_CC
8228
 
  CFLAGS=$lt_save_CFLAGS
8229
7670
  LDCXX=$LD
8230
7671
  LD=$lt_save_LD
8231
7672
  GCC=$lt_save_GCC
8240
7681
])# _LT_LANG_CXX_CONFIG
8241
7682
 
8242
7683
 
8243
 
# _LT_FUNC_STRIPNAME_CNF
8244
 
# ----------------------
8245
 
# func_stripname_cnf prefix suffix name
8246
 
# strip PREFIX and SUFFIX off of NAME.
8247
 
# PREFIX and SUFFIX must not contain globbing or regex special
8248
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8249
 
# dot (in which case that matches only a dot).
8250
 
#
8251
 
# This function is identical to the (non-XSI) version of func_stripname,
8252
 
# except this one can be used by m4 code that may be executed by configure,
8253
 
# rather than the libtool script.
8254
 
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
8255
 
AC_REQUIRE([_LT_DECL_SED])
8256
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
8257
 
func_stripname_cnf ()
8258
 
{
8259
 
  case ${2} in
8260
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8261
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8262
 
  esac
8263
 
} # func_stripname_cnf
8264
 
])# _LT_FUNC_STRIPNAME_CNF
8265
 
 
8266
7684
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8267
7685
# ---------------------------------
8268
7686
# Figure out "hidden" library dependencies from verbose
8271
7689
# objects, libraries and library flags.
8272
7690
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8273
7691
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8274
 
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
8275
7692
# Dependencies to place before and after the object being linked:
8276
7693
_LT_TAGVAR(predep_objects, $1)=
8277
7694
_LT_TAGVAR(postdep_objects, $1)=
8321
7738
  }
8322
7739
};
8323
7740
_LT_EOF
8324
 
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8325
 
package foo
8326
 
func foo() {
8327
 
}
8328
 
_LT_EOF
8329
7741
])
8330
 
 
8331
 
_lt_libdeps_save_CFLAGS=$CFLAGS
8332
 
case "$CC $CFLAGS " in #(
8333
 
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8334
 
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8335
 
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8336
 
esac
8337
 
 
8338
7742
dnl Parse the compiler output and extract the necessary
8339
7743
dnl objects, libraries and library flags.
8340
7744
if AC_TRY_EVAL(ac_compile); then
8346
7750
  pre_test_object_deps_done=no
8347
7751
 
8348
7752
  for p in `eval "$output_verbose_link_cmd"`; do
8349
 
    case ${prev}${p} in
 
7753
    case $p in
8350
7754
 
8351
7755
    -L* | -R* | -l*)
8352
7756
       # Some compilers place space between "-{L,R}" and the path.
8355
7759
          test $p = "-R"; then
8356
7760
         prev=$p
8357
7761
         continue
 
7762
       else
 
7763
         prev=
8358
7764
       fi
8359
7765
 
8360
 
       # Expand the sysroot to ease extracting the directories later.
8361
 
       if test -z "$prev"; then
8362
 
         case $p in
8363
 
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
8364
 
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
8365
 
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
8366
 
         esac
8367
 
       fi
8368
 
       case $p in
8369
 
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8370
 
       esac
8371
7766
       if test "$pre_test_object_deps_done" = no; then
8372
 
         case ${prev} in
8373
 
         -L | -R)
 
7767
         case $p in
 
7768
         -L* | -R*)
8374
7769
           # Internal compiler library paths should come after those
8375
7770
           # provided the user.  The postdeps already come after the
8376
7771
           # user supplied libs so there is no need to process them.
8390
7785
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8391
7786
         fi
8392
7787
       fi
8393
 
       prev=
8394
7788
       ;;
8395
7789
 
8396
 
    *.lto.$objext) ;; # Ignore GCC LTO objects
8397
7790
    *.$objext)
8398
7791
       # This assumes that the test object file only shows up
8399
7792
       # once in the compiler output.
8429
7822
fi
8430
7823
 
8431
7824
$RM -f confest.$objext
8432
 
CFLAGS=$_lt_libdeps_save_CFLAGS
8433
7825
 
8434
7826
# PORTME: override above test on systems where it is broken
8435
7827
m4_if([$1], [CXX],
8466
7858
 
8467
7859
solaris*)
8468
7860
  case $cc_basename in
8469
 
  CC* | sunCC*)
 
7861
  CC*)
8470
7862
    # The more standards-conforming stlport4 library is
8471
7863
    # incompatible with the Cstd library. Avoid specifying
8472
7864
    # it if it's in CXXFLAGS. Ignore libCrun as
8510
7902
])# _LT_SYS_HIDDEN_LIBDEPS
8511
7903
 
8512
7904
 
 
7905
# _LT_PROG_F77
 
7906
# ------------
 
7907
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7908
# if there is no fortran compiler, we have our own version here.
 
7909
m4_defun([_LT_PROG_F77],
 
7910
[
 
7911
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7912
AC_PROG_F77
 
7913
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7914
  _lt_disable_F77=yes
 
7915
fi
 
7916
popdef([AC_MSG_ERROR])
 
7917
])# _LT_PROG_F77
 
7918
 
 
7919
dnl aclocal-1.4 backwards compatibility:
 
7920
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7921
 
 
7922
 
8513
7923
# _LT_LANG_F77_CONFIG([TAG])
8514
7924
# --------------------------
8515
7925
# Ensure that the configuration variables for a Fortran 77 compiler are
8516
7926
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8517
7927
# to write the compiler configuration to `libtool'.
8518
7928
m4_defun([_LT_LANG_F77_CONFIG],
8519
 
[AC_LANG_PUSH(Fortran 77)
8520
 
if test -z "$F77" || test "X$F77" = "Xno"; then
8521
 
  _lt_disable_F77=yes
8522
 
fi
 
7929
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7930
AC_LANG_PUSH(Fortran 77)
8523
7931
 
8524
7932
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8525
7933
_LT_TAGVAR(allow_undefined_flag, $1)=
8529
7937
_LT_TAGVAR(hardcode_direct, $1)=no
8530
7938
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8531
7939
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7940
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8532
7941
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8533
7942
_LT_TAGVAR(hardcode_minus_L, $1)=no
8534
7943
_LT_TAGVAR(hardcode_automatic, $1)=no
8537
7946
_LT_TAGVAR(module_expsym_cmds, $1)=
8538
7947
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8539
7948
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8540
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8541
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8542
7949
_LT_TAGVAR(no_undefined_flag, $1)=
8543
7950
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8544
7951
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8578
7985
  # Allow CC to be a program name with arguments.
8579
7986
  lt_save_CC="$CC"
8580
7987
  lt_save_GCC=$GCC
8581
 
  lt_save_CFLAGS=$CFLAGS
8582
7988
  CC=${F77-"f77"}
8583
 
  CFLAGS=$FFLAGS
8584
7989
  compiler=$CC
8585
7990
  _LT_TAGVAR(compiler, $1)=$CC
8586
7991
  _LT_CC_BASENAME([$compiler])
8634
8039
 
8635
8040
  GCC=$lt_save_GCC
8636
8041
  CC="$lt_save_CC"
8637
 
  CFLAGS="$lt_save_CFLAGS"
8638
8042
fi # test "$_lt_disable_F77" != yes
8639
8043
 
8640
8044
AC_LANG_POP
8641
8045
])# _LT_LANG_F77_CONFIG
8642
8046
 
8643
8047
 
 
8048
# _LT_PROG_FC
 
8049
# -----------
 
8050
# Since AC_PROG_FC is broken, in that it returns the empty string
 
8051
# if there is no fortran compiler, we have our own version here.
 
8052
m4_defun([_LT_PROG_FC],
 
8053
[
 
8054
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
8055
AC_PROG_FC
 
8056
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8057
  _lt_disable_FC=yes
 
8058
fi
 
8059
popdef([AC_MSG_ERROR])
 
8060
])# _LT_PROG_FC
 
8061
 
 
8062
dnl aclocal-1.4 backwards compatibility:
 
8063
dnl AC_DEFUN([_LT_PROG_FC], [])
 
8064
 
 
8065
 
8644
8066
# _LT_LANG_FC_CONFIG([TAG])
8645
8067
# -------------------------
8646
8068
# Ensure that the configuration variables for a Fortran compiler are
8647
8069
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8648
8070
# to write the compiler configuration to `libtool'.
8649
8071
m4_defun([_LT_LANG_FC_CONFIG],
8650
 
[AC_LANG_PUSH(Fortran)
8651
 
 
8652
 
if test -z "$FC" || test "X$FC" = "Xno"; then
8653
 
  _lt_disable_FC=yes
8654
 
fi
 
8072
[AC_REQUIRE([_LT_PROG_FC])dnl
 
8073
AC_LANG_PUSH(Fortran)
8655
8074
 
8656
8075
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8657
8076
_LT_TAGVAR(allow_undefined_flag, $1)=
8661
8080
_LT_TAGVAR(hardcode_direct, $1)=no
8662
8081
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8663
8082
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
8083
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8664
8084
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8665
8085
_LT_TAGVAR(hardcode_minus_L, $1)=no
8666
8086
_LT_TAGVAR(hardcode_automatic, $1)=no
8669
8089
_LT_TAGVAR(module_expsym_cmds, $1)=
8670
8090
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8671
8091
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8672
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8673
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8674
8092
_LT_TAGVAR(no_undefined_flag, $1)=
8675
8093
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8676
8094
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8710
8128
  # Allow CC to be a program name with arguments.
8711
8129
  lt_save_CC="$CC"
8712
8130
  lt_save_GCC=$GCC
8713
 
  lt_save_CFLAGS=$CFLAGS
8714
8131
  CC=${FC-"f95"}
8715
 
  CFLAGS=$FCFLAGS
8716
8132
  compiler=$CC
8717
8133
  GCC=$ac_cv_fc_compiler_gnu
8718
8134
 
8768
8184
  fi # test -n "$compiler"
8769
8185
 
8770
8186
  GCC=$lt_save_GCC
8771
 
  CC=$lt_save_CC
8772
 
  CFLAGS=$lt_save_CFLAGS
 
8187
  CC="$lt_save_CC"
8773
8188
fi # test "$_lt_disable_FC" != yes
8774
8189
 
8775
8190
AC_LANG_POP
8806
8221
_LT_LINKER_BOILERPLATE
8807
8222
 
8808
8223
# Allow CC to be a program name with arguments.
8809
 
lt_save_CC=$CC
8810
 
lt_save_CFLAGS=$CFLAGS
 
8224
lt_save_CC="$CC"
8811
8225
lt_save_GCC=$GCC
8812
8226
GCC=yes
8813
8227
CC=${GCJ-"gcj"}
8814
 
CFLAGS=$GCJFLAGS
8815
8228
compiler=$CC
8816
8229
_LT_TAGVAR(compiler, $1)=$CC
8817
8230
_LT_TAGVAR(LD, $1)="$LD"
8821
8234
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8822
8235
 
8823
8236
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8824
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8825
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8826
8237
 
8827
8238
if test -n "$compiler"; then
8828
8239
  _LT_COMPILER_NO_RTTI($1)
8838
8249
AC_LANG_RESTORE
8839
8250
 
8840
8251
GCC=$lt_save_GCC
8841
 
CC=$lt_save_CC
8842
 
CFLAGS=$lt_save_CFLAGS
 
8252
CC="$lt_save_CC"
8843
8253
])# _LT_LANG_GCJ_CONFIG
8844
8254
 
8845
8255
 
8846
 
# _LT_LANG_GO_CONFIG([TAG])
8847
 
# --------------------------
8848
 
# Ensure that the configuration variables for the GNU Go compiler
8849
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8850
 
# to write the compiler configuration to `libtool'.
8851
 
m4_defun([_LT_LANG_GO_CONFIG],
8852
 
[AC_REQUIRE([LT_PROG_GO])dnl
8853
 
AC_LANG_SAVE
8854
 
 
8855
 
# Source file extension for Go test sources.
8856
 
ac_ext=go
8857
 
 
8858
 
# Object file extension for compiled Go test sources.
8859
 
objext=o
8860
 
_LT_TAGVAR(objext, $1)=$objext
8861
 
 
8862
 
# Code to be used in simple compile tests
8863
 
lt_simple_compile_test_code="package main; func main() { }"
8864
 
 
8865
 
# Code to be used in simple link tests
8866
 
lt_simple_link_test_code='package main; func main() { }'
8867
 
 
8868
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8869
 
_LT_TAG_COMPILER
8870
 
 
8871
 
# save warnings/boilerplate of simple test code
8872
 
_LT_COMPILER_BOILERPLATE
8873
 
_LT_LINKER_BOILERPLATE
8874
 
 
8875
 
# Allow CC to be a program name with arguments.
8876
 
lt_save_CC=$CC
8877
 
lt_save_CFLAGS=$CFLAGS
8878
 
lt_save_GCC=$GCC
8879
 
GCC=yes
8880
 
CC=${GOC-"gccgo"}
8881
 
CFLAGS=$GOFLAGS
8882
 
compiler=$CC
8883
 
_LT_TAGVAR(compiler, $1)=$CC
8884
 
_LT_TAGVAR(LD, $1)="$LD"
8885
 
_LT_CC_BASENAME([$compiler])
8886
 
 
8887
 
# Go did not exist at the time GCC didn't implicitly link libc in.
8888
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8889
 
 
8890
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8891
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8892
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8893
 
 
8894
 
if test -n "$compiler"; then
8895
 
  _LT_COMPILER_NO_RTTI($1)
8896
 
  _LT_COMPILER_PIC($1)
8897
 
  _LT_COMPILER_C_O($1)
8898
 
  _LT_COMPILER_FILE_LOCKS($1)
8899
 
  _LT_LINKER_SHLIBS($1)
8900
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
8901
 
 
8902
 
  _LT_CONFIG($1)
8903
 
fi
8904
 
 
8905
 
AC_LANG_RESTORE
8906
 
 
8907
 
GCC=$lt_save_GCC
8908
 
CC=$lt_save_CC
8909
 
CFLAGS=$lt_save_CFLAGS
8910
 
])# _LT_LANG_GO_CONFIG
8911
 
 
8912
 
 
8913
8256
# _LT_LANG_RC_CONFIG([TAG])
8914
8257
# -------------------------
8915
8258
# Ensure that the configuration variables for the Windows resource compiler
8941
8284
 
8942
8285
# Allow CC to be a program name with arguments.
8943
8286
lt_save_CC="$CC"
8944
 
lt_save_CFLAGS=$CFLAGS
8945
8287
lt_save_GCC=$GCC
8946
8288
GCC=
8947
8289
CC=${RC-"windres"}
8948
 
CFLAGS=
8949
8290
compiler=$CC
8950
8291
_LT_TAGVAR(compiler, $1)=$CC
8951
8292
_LT_CC_BASENAME([$compiler])
8958
8299
 
8959
8300
GCC=$lt_save_GCC
8960
8301
AC_LANG_RESTORE
8961
 
CC=$lt_save_CC
8962
 
CFLAGS=$lt_save_CFLAGS
 
8302
CC="$lt_save_CC"
8963
8303
])# _LT_LANG_RC_CONFIG
8964
8304
 
8965
8305
 
8979
8319
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8980
8320
 
8981
8321
 
8982
 
# LT_PROG_GO
8983
 
# ----------
8984
 
AC_DEFUN([LT_PROG_GO],
8985
 
[AC_CHECK_TOOL(GOC, gccgo,)
8986
 
])
8987
 
 
8988
 
 
8989
8322
# LT_PROG_RC
8990
8323
# ----------
8991
8324
AC_DEFUN([LT_PROG_RC],
9025
8358
AC_SUBST([OBJDUMP])
9026
8359
])
9027
8360
 
9028
 
# _LT_DECL_DLLTOOL
9029
 
# ----------------
9030
 
# Ensure DLLTOOL variable is set.
9031
 
m4_defun([_LT_DECL_DLLTOOL],
9032
 
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9033
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
9034
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
9035
 
AC_SUBST([DLLTOOL])
9036
 
])
9037
8361
 
9038
8362
# _LT_DECL_SED
9039
8363
# ------------
9125
8449
# Try some XSI features
9126
8450
xsi_shell=no
9127
8451
( _lt_dummy="a/b/c"
9128
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9129
 
      = c,a/b,b/c, \
 
8452
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8453
      = c,a/b,, \
9130
8454
    && eval 'test $(( 1 + 1 )) -eq 2 \
9131
8455
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9132
8456
  && xsi_shell=yes
9165
8489
])# _LT_CHECK_SHELL_FEATURES
9166
8490
 
9167
8491
 
9168
 
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
9169
 
# ------------------------------------------------------
9170
 
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
9171
 
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
9172
 
m4_defun([_LT_PROG_FUNCTION_REPLACE],
9173
 
[dnl {
9174
 
sed -e '/^$1 ()$/,/^} # $1 /c\
9175
 
$1 ()\
9176
 
{\
9177
 
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
9178
 
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
9179
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
9180
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9181
 
test 0 -eq $? || _lt_function_replace_fail=:
9182
 
])
9183
 
 
9184
 
 
9185
 
# _LT_PROG_REPLACE_SHELLFNS
9186
 
# -------------------------
9187
 
# Replace existing portable implementations of several shell functions with
9188
 
# equivalent extended shell implementations where those features are available..
9189
 
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
9190
 
[if test x"$xsi_shell" = xyes; then
9191
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
9192
 
    case ${1} in
9193
 
      */*) func_dirname_result="${1%/*}${2}" ;;
9194
 
      *  ) func_dirname_result="${3}" ;;
9195
 
    esac])
9196
 
 
9197
 
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9198
 
    func_basename_result="${1##*/}"])
9199
 
 
9200
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9201
 
    case ${1} in
9202
 
      */*) func_dirname_result="${1%/*}${2}" ;;
9203
 
      *  ) func_dirname_result="${3}" ;;
9204
 
    esac
9205
 
    func_basename_result="${1##*/}"])
9206
 
 
9207
 
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
9208
 
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9209
 
    # positional parameters, so assign one to ordinary parameter first.
9210
 
    func_stripname_result=${3}
9211
 
    func_stripname_result=${func_stripname_result#"${1}"}
9212
 
    func_stripname_result=${func_stripname_result%"${2}"}])
9213
 
 
9214
 
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
9215
 
    func_split_long_opt_name=${1%%=*}
9216
 
    func_split_long_opt_arg=${1#*=}])
9217
 
 
9218
 
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
9219
 
    func_split_short_opt_arg=${1#??}
9220
 
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
9221
 
 
9222
 
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
9223
 
    case ${1} in
9224
 
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9225
 
      *)    func_lo2o_result=${1} ;;
9226
 
    esac])
9227
 
 
9228
 
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
9229
 
 
9230
 
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
9231
 
 
9232
 
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
9233
 
fi
9234
 
 
9235
 
if test x"$lt_shell_append" = xyes; then
9236
 
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
9237
 
 
9238
 
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
9239
 
    func_quote_for_eval "${2}"
9240
 
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
9241
 
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
9242
 
 
9243
 
  # Save a `func_append' function call where possible by direct use of '+='
9244
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
9245
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
9246
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9247
 
  test 0 -eq $? || _lt_function_replace_fail=:
9248
 
else
9249
 
  # Save a `func_append' function call even when '+=' is not available
9250
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
9251
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
9252
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9253
 
  test 0 -eq $? || _lt_function_replace_fail=:
9254
 
fi
9255
 
 
9256
 
if test x"$_lt_function_replace_fail" = x":"; then
9257
 
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
9258
 
fi
9259
 
])
9260
 
 
9261
 
# _LT_PATH_CONVERSION_FUNCTIONS
9262
 
# -----------------------------
9263
 
# Determine which file name conversion functions should be used by
9264
 
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
9265
 
# for certain cross-compile configurations and native mingw.
9266
 
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
9267
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9268
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
9269
 
AC_MSG_CHECKING([how to convert $build file names to $host format])
9270
 
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
9271
 
[case $host in
9272
 
  *-*-mingw* )
9273
 
    case $build in
9274
 
      *-*-mingw* ) # actually msys
9275
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9276
 
        ;;
9277
 
      *-*-cygwin* )
9278
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9279
 
        ;;
9280
 
      * ) # otherwise, assume *nix
9281
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9282
 
        ;;
9283
 
    esac
9284
 
    ;;
9285
 
  *-*-cygwin* )
9286
 
    case $build in
9287
 
      *-*-mingw* ) # actually msys
9288
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9289
 
        ;;
9290
 
      *-*-cygwin* )
9291
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
9292
 
        ;;
9293
 
      * ) # otherwise, assume *nix
9294
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9295
 
        ;;
9296
 
    esac
9297
 
    ;;
9298
 
  * ) # unhandled hosts (and "normal" native builds)
9299
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
9300
 
    ;;
9301
 
esac
9302
 
])
9303
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
9304
 
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9305
 
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9306
 
         [0], [convert $build file names to $host format])dnl
9307
 
 
9308
 
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9309
 
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9310
 
[#assume ordinary cross tools, or native build.
9311
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
9312
 
case $host in
9313
 
  *-*-mingw* )
9314
 
    case $build in
9315
 
      *-*-mingw* ) # actually msys
9316
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9317
 
        ;;
9318
 
    esac
9319
 
    ;;
9320
 
esac
9321
 
])
9322
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9323
 
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9324
 
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9325
 
         [0], [convert $build files to toolchain format])dnl
9326
 
])# _LT_PATH_CONVERSION_FUNCTIONS
 
8492
# _LT_PROG_XSI_SHELLFNS
 
8493
# ---------------------
 
8494
# Bourne and XSI compatible variants of some useful shell functions.
 
8495
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8496
[case $xsi_shell in
 
8497
  yes)
 
8498
    cat << \_LT_EOF >> "$cfgfile"
 
8499
 
 
8500
# func_dirname file append nondir_replacement
 
8501
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8502
# otherwise set result to NONDIR_REPLACEMENT.
 
8503
func_dirname ()
 
8504
{
 
8505
  case ${1} in
 
8506
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8507
    *  ) func_dirname_result="${3}" ;;
 
8508
  esac
 
8509
}
 
8510
 
 
8511
# func_basename file
 
8512
func_basename ()
 
8513
{
 
8514
  func_basename_result="${1##*/}"
 
8515
}
 
8516
 
 
8517
# func_dirname_and_basename file append nondir_replacement
 
8518
# perform func_basename and func_dirname in a single function
 
8519
# call:
 
8520
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8521
#             add APPEND to the result, otherwise set result
 
8522
#             to NONDIR_REPLACEMENT.
 
8523
#             value returned in "$func_dirname_result"
 
8524
#   basename: Compute filename of FILE.
 
8525
#             value retuned in "$func_basename_result"
 
8526
# Implementation must be kept synchronized with func_dirname
 
8527
# and func_basename. For efficiency, we do not delegate to
 
8528
# those functions but instead duplicate the functionality here.
 
8529
func_dirname_and_basename ()
 
8530
{
 
8531
  case ${1} in
 
8532
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8533
    *  ) func_dirname_result="${3}" ;;
 
8534
  esac
 
8535
  func_basename_result="${1##*/}"
 
8536
}
 
8537
 
 
8538
# func_stripname prefix suffix name
 
8539
# strip PREFIX and SUFFIX off of NAME.
 
8540
# PREFIX and SUFFIX must not contain globbing or regex special
 
8541
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8542
# dot (in which case that matches only a dot).
 
8543
func_stripname ()
 
8544
{
 
8545
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8546
  # positional parameters, so assign one to ordinary parameter first.
 
8547
  func_stripname_result=${3}
 
8548
  func_stripname_result=${func_stripname_result#"${1}"}
 
8549
  func_stripname_result=${func_stripname_result%"${2}"}
 
8550
}
 
8551
 
 
8552
# func_opt_split
 
8553
func_opt_split ()
 
8554
{
 
8555
  func_opt_split_opt=${1%%=*}
 
8556
  func_opt_split_arg=${1#*=}
 
8557
}
 
8558
 
 
8559
# func_lo2o object
 
8560
func_lo2o ()
 
8561
{
 
8562
  case ${1} in
 
8563
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8564
    *)    func_lo2o_result=${1} ;;
 
8565
  esac
 
8566
}
 
8567
 
 
8568
# func_xform libobj-or-source
 
8569
func_xform ()
 
8570
{
 
8571
  func_xform_result=${1%.*}.lo
 
8572
}
 
8573
 
 
8574
# func_arith arithmetic-term...
 
8575
func_arith ()
 
8576
{
 
8577
  func_arith_result=$(( $[*] ))
 
8578
}
 
8579
 
 
8580
# func_len string
 
8581
# STRING may not start with a hyphen.
 
8582
func_len ()
 
8583
{
 
8584
  func_len_result=${#1}
 
8585
}
 
8586
 
 
8587
_LT_EOF
 
8588
    ;;
 
8589
  *) # Bourne compatible functions.
 
8590
    cat << \_LT_EOF >> "$cfgfile"
 
8591
 
 
8592
# func_dirname file append nondir_replacement
 
8593
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8594
# otherwise set result to NONDIR_REPLACEMENT.
 
8595
func_dirname ()
 
8596
{
 
8597
  # Extract subdirectory from the argument.
 
8598
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8599
  if test "X$func_dirname_result" = "X${1}"; then
 
8600
    func_dirname_result="${3}"
 
8601
  else
 
8602
    func_dirname_result="$func_dirname_result${2}"
 
8603
  fi
 
8604
}
 
8605
 
 
8606
# func_basename file
 
8607
func_basename ()
 
8608
{
 
8609
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8610
}
 
8611
 
 
8612
dnl func_dirname_and_basename
 
8613
dnl A portable version of this function is already defined in general.m4sh
 
8614
dnl so there is no need for it here.
 
8615
 
 
8616
# func_stripname prefix suffix name
 
8617
# strip PREFIX and SUFFIX off of NAME.
 
8618
# PREFIX and SUFFIX must not contain globbing or regex special
 
8619
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8620
# dot (in which case that matches only a dot).
 
8621
# func_strip_suffix prefix name
 
8622
func_stripname ()
 
8623
{
 
8624
  case ${2} in
 
8625
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8626
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8627
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8628
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8629
  esac
 
8630
}
 
8631
 
 
8632
# sed scripts:
 
8633
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8634
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8635
 
 
8636
# func_opt_split
 
8637
func_opt_split ()
 
8638
{
 
8639
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8640
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8641
}
 
8642
 
 
8643
# func_lo2o object
 
8644
func_lo2o ()
 
8645
{
 
8646
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8647
}
 
8648
 
 
8649
# func_xform libobj-or-source
 
8650
func_xform ()
 
8651
{
 
8652
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8653
}
 
8654
 
 
8655
# func_arith arithmetic-term...
 
8656
func_arith ()
 
8657
{
 
8658
  func_arith_result=`expr "$[@]"`
 
8659
}
 
8660
 
 
8661
# func_len string
 
8662
# STRING may not start with a hyphen.
 
8663
func_len ()
 
8664
{
 
8665
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8666
}
 
8667
 
 
8668
_LT_EOF
 
8669
esac
 
8670
 
 
8671
case $lt_shell_append in
 
8672
  yes)
 
8673
    cat << \_LT_EOF >> "$cfgfile"
 
8674
 
 
8675
# func_append var value
 
8676
# Append VALUE to the end of shell variable VAR.
 
8677
func_append ()
 
8678
{
 
8679
  eval "$[1]+=\$[2]"
 
8680
}
 
8681
_LT_EOF
 
8682
    ;;
 
8683
  *)
 
8684
    cat << \_LT_EOF >> "$cfgfile"
 
8685
 
 
8686
# func_append var value
 
8687
# Append VALUE to the end of shell variable VAR.
 
8688
func_append ()
 
8689
{
 
8690
  eval "$[1]=\$$[1]\$[2]"
 
8691
}
 
8692
 
 
8693
_LT_EOF
 
8694
    ;;
 
8695
  esac
 
8696
])
9327
8697
 
9328
8698
# Helper functions for option handling.                    -*- Autoconf -*-
9329
8699
#
9330
 
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
9331
 
#   Inc.
 
8700
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9332
8701
#   Written by Gary V. Vaughan, 2004
9333
8702
#
9334
8703
# This file is free software; the Free Software Foundation gives
9335
8704
# unlimited permission to copy and/or distribute it, with or without
9336
8705
# modifications, as long as this notice is preserved.
9337
8706
 
9338
 
# serial 7 ltoptions.m4
 
8707
# serial 6 ltoptions.m4
9339
8708
 
9340
8709
# This is to help aclocal find these macros, as it can't see m4_define.
9341
8710
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9450
8819
[enable_win32_dll=yes
9451
8820
 
9452
8821
case $host in
9453
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
8822
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9454
8823
  AC_CHECK_TOOL(AS, as, false)
9455
8824
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9456
8825
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
9458
8827
esac
9459
8828
 
9460
8829
test -z "$AS" && AS=as
9461
 
_LT_DECL([], [AS],      [1], [Assembler program])dnl
 
8830
_LT_DECL([], [AS],      [0], [Assembler program])dnl
9462
8831
 
9463
8832
test -z "$DLLTOOL" && DLLTOOL=dlltool
9464
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
 
8833
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
9465
8834
 
9466
8835
test -z "$OBJDUMP" && OBJDUMP=objdump
9467
 
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
 
8836
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
9468
8837
])# win32-dll
9469
8838
 
9470
8839
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9650
9019
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
9651
9020
m4_define([_LT_WITH_PIC],
9652
9021
[AC_ARG_WITH([pic],
9653
 
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
 
9022
    [AS_HELP_STRING([--with-pic],
9654
9023
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9655
 
    [lt_p=${PACKAGE-default}
9656
 
    case $withval in
9657
 
    yes|no) pic_mode=$withval ;;
9658
 
    *)
9659
 
      pic_mode=default
9660
 
      # Look at the argument we got.  We use all the common list separators.
9661
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9662
 
      for lt_pkg in $withval; do
9663
 
        IFS="$lt_save_ifs"
9664
 
        if test "X$lt_pkg" = "X$lt_p"; then
9665
 
          pic_mode=yes
9666
 
        fi
9667
 
      done
9668
 
      IFS="$lt_save_ifs"
9669
 
      ;;
9670
 
    esac],
 
9024
    [pic_mode="$withval"],
9671
9025
    [pic_mode=default])
9672
9026
 
9673
9027
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9837
9191
# unlimited permission to copy and/or distribute it, with or without
9838
9192
# modifications, as long as this notice is preserved.
9839
9193
 
9840
 
# @configure_input@
 
9194
# Generated from ltversion.in.
9841
9195
 
9842
 
# serial 3337 ltversion.m4
 
9196
# serial 3018 ltversion.m4
9843
9197
# This file is part of GNU Libtool
9844
9198
 
9845
 
m4_define([LT_PACKAGE_VERSION], [2.4.2])
9846
 
m4_define([LT_PACKAGE_REVISION], [1.3337])
 
9199
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
 
9200
m4_define([LT_PACKAGE_REVISION], [1.3018])
9847
9201
 
9848
9202
AC_DEFUN([LTVERSION_VERSION],
9849
 
[macro_version='2.4.2'
9850
 
macro_revision='1.3337'
 
9203
[macro_version='2.2.6b'
 
9204
macro_revision='1.3018'
9851
9205
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9852
9206
_LT_DECL(, macro_revision, 0)
9853
9207
])
9854
9208
 
9855
9209
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9856
9210
#
9857
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
9211
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
9858
9212
#   Written by Scott James Remnant, 2004.
9859
9213
#
9860
9214
# This file is free software; the Free Software Foundation gives
9861
9215
# unlimited permission to copy and/or distribute it, with or without
9862
9216
# modifications, as long as this notice is preserved.
9863
9217
 
9864
 
# serial 5 lt~obsolete.m4
 
9218
# serial 4 lt~obsolete.m4
9865
9219
 
9866
9220
# These exist entirely to fool aclocal when bootstrapping libtool.
9867
9221
#
9931
9285
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
9932
9286
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
9933
9287
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
9288
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
9934
9289
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9935
9290
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9936
9291
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9943
9298
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9944
9299
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9945
9300
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9946
 
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9947
 
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9948
 
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9949
 
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9950
 
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
9951
 
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9952
 
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9953
9301
 
9954
9302
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9955
9303
# serial 1 (pkg-config-0.24)
9979
9327
# ----------------------------------
9980
9328
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9981
9329
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9982
 
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
9983
 
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
9330
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9984
9331
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9985
9332
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9986
9333
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
10026
9373
    pkg_cv_[]$1="$$1"
10027
9374
 elif test -n "$PKG_CONFIG"; then
10028
9375
    PKG_CHECK_EXISTS([$3],
10029
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
10030
 
                      test "x$?" != "x0" && pkg_failed=yes ],
 
9376
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
10031
9377
                     [pkg_failed=yes])
10032
9378
 else
10033
9379
    pkg_failed=untried
10075
9421
        AC_MSG_RESULT([no])
10076
9422
        _PKG_SHORT_ERRORS_SUPPORTED
10077
9423
        if test $_pkg_short_errors_supported = yes; then
10078
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
9424
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
10079
9425
        else 
10080
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
9426
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
10081
9427
        fi
10082
9428
        # Put the nasty error message in config.log where it belongs
10083
9429
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD