~ubuntu-branches/ubuntu/quantal/gnome-terminal/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-23 10:10:15 UTC
  • mfrom: (1.3.48)
  • Revision ID: package-import@ubuntu.com-20120223101015-sb0kd6k0r7faewrs
Tags: 3.3.0-0ubuntu1
* New upstream release.
  - Add gconf setting to change default encoding (LP: #3923)
  - Should work now on Broadway

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
 
[m4_warning([this file was generated for autoconf 2.65.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
1016
1016
AC_SUBST([am__untar])
1017
1017
]) # _AM_PROG_TAR
1018
1018
 
 
1019
dnl AM_GCONF_SOURCE_2
 
1020
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
 
1021
dnl  (i.e. pass to gconftool-2
 
1022
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
 
1023
dnl  you should install foo.schemas files
 
1024
dnl
 
1025
 
 
1026
AC_DEFUN([AM_GCONF_SOURCE_2],
 
1027
[
 
1028
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
1029
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
1030
  else
 
1031
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
1032
  fi
 
1033
 
 
1034
  AC_ARG_WITH([gconf-source],
 
1035
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
1036
                             [Config database for installing schema files.]),
 
1037
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
 
1038
 
 
1039
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
1040
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
1041
 
 
1042
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
1043
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
1044
  fi
 
1045
 
 
1046
  AC_ARG_WITH([gconf-schema-file-dir],
 
1047
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
1048
                             [Directory for installing schema files.]),
 
1049
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
 
1050
 
 
1051
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
1052
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
1053
 
 
1054
  AC_ARG_ENABLE(schemas-install,
 
1055
        AC_HELP_STRING([--disable-schemas-install],
 
1056
                       [Disable the schemas installation]),
 
1057
     [case ${enableval} in
 
1058
       yes|no) ;;
 
1059
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
 
1060
      esac])
 
1061
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
1062
])
 
1063
 
1019
1064
# gnome-common.m4
 
1065
#
 
1066
# serial 3
1020
1067
1021
1068
 
1022
1069
dnl GNOME_COMMON_INIT
1023
1070
 
1024
 
AC_DEFUN([GNOME_COMMON_INIT],
 
1071
AU_DEFUN([GNOME_COMMON_INIT],
1025
1072
[
1026
1073
  dnl this macro should come after AC_CONFIG_MACRO_DIR
1027
1074
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
1034
1081
  fi
1035
1082
 
1036
1083
  AC_SUBST([ACLOCAL_AMFLAGS])
1037
 
])
 
1084
],
 
1085
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
1086
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
1087
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
1038
1088
 
1039
1089
AC_DEFUN([GNOME_DEBUG_CHECK],
1040
1090
[
1463
1513
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1464
1514
#
1465
1515
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1466
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1516
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1517
#                 Inc.
1467
1518
#   Written by Gordon Matzigkeit, 1996
1468
1519
#
1469
1520
# This file is free software; the Free Software Foundation gives
1472
1523
 
1473
1524
m4_define([_LT_COPYING], [dnl
1474
1525
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1475
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1526
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
 
1527
#                 Inc.
1476
1528
#   Written by Gordon Matzigkeit, 1996
1477
1529
#
1478
1530
#   This file is part of GNU Libtool.
1499
1551
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1500
1552
])
1501
1553
 
1502
 
# serial 56 LT_INIT
 
1554
# serial 57 LT_INIT
1503
1555
 
1504
1556
 
1505
1557
# LT_PREREQ(VERSION)
1528
1580
# ------------------
1529
1581
AC_DEFUN([LT_INIT],
1530
1582
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1583
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1531
1584
AC_BEFORE([$0], [LT_LANG])dnl
1532
1585
AC_BEFORE([$0], [LT_OUTPUT])dnl
1533
1586
AC_BEFORE([$0], [LTDL_INIT])dnl
1544
1597
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1545
1598
m4_require([_LT_PROG_LTMAIN])dnl
1546
1599
 
 
1600
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
 
1601
 
1547
1602
dnl Parse OPTIONS
1548
1603
_LT_SET_OPTIONS([$0], [$1])
1549
1604
 
1580
1635
    *) break;;
1581
1636
  esac
1582
1637
done
1583
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1638
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1584
1639
])
1585
1640
 
1586
1641
 
1600
1655
m4_defun([_LT_SETUP],
1601
1656
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1602
1657
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1658
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
 
1659
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
1660
 
1603
1661
_LT_DECL([], [host_alias], [0], [The host system])dnl
1604
1662
_LT_DECL([], [host], [0])dnl
1605
1663
_LT_DECL([], [host_os], [0])dnl
1622
1680
dnl
1623
1681
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1624
1682
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1683
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1625
1684
m4_require([_LT_CMD_RELOAD])dnl
1626
1685
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1686
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1627
1687
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1628
1688
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1689
m4_require([_LT_WITH_SYSROOT])dnl
1629
1690
 
1630
1691
_LT_CONFIG_LIBTOOL_INIT([
1631
1692
# See if we are running on zsh, and set the options which allow our
1641
1702
_LT_CHECK_OBJDIR
1642
1703
 
1643
1704
m4_require([_LT_TAG_COMPILER])dnl
1644
 
_LT_PROG_ECHO_BACKSLASH
1645
1705
 
1646
1706
case $host_os in
1647
1707
aix3*)
1655
1715
  ;;
1656
1716
esac
1657
1717
 
1658
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1659
 
# metacharacters that are still active within double-quoted strings.
1660
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1661
 
 
1662
 
# Same as above, but do not quote variable references.
1663
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1664
 
 
1665
 
# Sed substitution to delay expansion of an escaped shell variable in a
1666
 
# double_quote_subst'ed string.
1667
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1668
 
 
1669
 
# Sed substitution to delay expansion of an escaped single quote.
1670
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1671
 
 
1672
 
# Sed substitution to avoid accidental globbing in evaled expressions
1673
 
no_glob_subst='s/\*/\\\*/g'
1674
 
 
1675
1718
# Global variables:
1676
1719
ofile=libtool
1677
1720
can_build_shared=yes
1712
1755
])# _LT_SETUP
1713
1756
 
1714
1757
 
 
1758
# _LT_PREPARE_SED_QUOTE_VARS
 
1759
# --------------------------
 
1760
# Define a few sed substitution that help us do robust quoting.
 
1761
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
 
1762
[# Backslashify metacharacters that are still active within
 
1763
# double-quoted strings.
 
1764
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1765
 
 
1766
# Same as above, but do not quote variable references.
 
1767
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1768
 
 
1769
# Sed substitution to delay expansion of an escaped shell variable in a
 
1770
# double_quote_subst'ed string.
 
1771
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1772
 
 
1773
# Sed substitution to delay expansion of an escaped single quote.
 
1774
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1775
 
 
1776
# Sed substitution to avoid accidental globbing in evaled expressions
 
1777
no_glob_subst='s/\*/\\\*/g'
 
1778
])
 
1779
 
1715
1780
# _LT_PROG_LTMAIN
1716
1781
# ---------------
1717
1782
# Note that this code is called both from `configure', and `config.status'
1864
1929
# declaration there will have the same value as in `configure'.  VARNAME
1865
1930
# must have a single quote delimited value for this to work.
1866
1931
m4_define([_LT_CONFIG_STATUS_DECLARE],
1867
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1932
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1868
1933
 
1869
1934
 
1870
1935
# _LT_CONFIG_STATUS_DECLARATIONS
1874
1939
# embedded single quotes properly.  In configure, this macro expands
1875
1940
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1876
1941
#
1877
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1942
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1878
1943
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1879
1944
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1880
1945
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1973
2038
LTCFLAGS='$LTCFLAGS'
1974
2039
compiler='$compiler_DEFAULT'
1975
2040
 
 
2041
# A function that is used when there is no print builtin or printf.
 
2042
func_fallback_echo ()
 
2043
{
 
2044
  eval 'cat <<_LTECHO_EOF
 
2045
\$[]1
 
2046
_LTECHO_EOF'
 
2047
}
 
2048
 
1976
2049
# Quote evaled strings.
1977
2050
for var in lt_decl_all_varnames([[ \
1978
2051
]], lt_decl_quote_varnames); do
1979
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2052
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1980
2053
    *[[\\\\\\\`\\"\\\$]]*)
1981
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
2054
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1982
2055
      ;;
1983
2056
    *)
1984
2057
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1989
2062
# Double-quote double-evaled strings.
1990
2063
for var in lt_decl_all_varnames([[ \
1991
2064
]], lt_decl_dquote_varnames); do
1992
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2065
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1993
2066
    *[[\\\\\\\`\\"\\\$]]*)
1994
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
2067
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1995
2068
      ;;
1996
2069
    *)
1997
2070
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1999
2072
    esac
2000
2073
done
2001
2074
 
2002
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
2003
 
case \$lt_ECHO in
2004
 
*'\\\[$]0 --fallback-echo"')dnl "
2005
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2006
 
  ;;
2007
 
esac
2008
 
 
2009
2075
_LT_OUTPUT_LIBTOOL_INIT
2010
2076
])
2011
2077
 
 
2078
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 
2079
# ------------------------------------
 
2080
# Generate a child script FILE with all initialization necessary to
 
2081
# reuse the environment learned by the parent script, and make the
 
2082
# file executable.  If COMMENT is supplied, it is inserted after the
 
2083
# `#!' sequence but before initialization text begins.  After this
 
2084
# macro, additional text can be appended to FILE to form the body of
 
2085
# the child script.  The macro ends with non-zero status if the
 
2086
# file could not be fully written (such as if the disk is full).
 
2087
m4_ifdef([AS_INIT_GENERATED],
 
2088
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 
2089
[m4_defun([_LT_GENERATED_FILE_INIT],
 
2090
[m4_require([AS_PREPARE])]dnl
 
2091
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 
2092
[lt_write_fail=0
 
2093
cat >$1 <<_ASEOF || lt_write_fail=1
 
2094
#! $SHELL
 
2095
# Generated by $as_me.
 
2096
$2
 
2097
SHELL=\${CONFIG_SHELL-$SHELL}
 
2098
export SHELL
 
2099
_ASEOF
 
2100
cat >>$1 <<\_ASEOF || lt_write_fail=1
 
2101
AS_SHELL_SANITIZE
 
2102
_AS_PREPARE
 
2103
exec AS_MESSAGE_FD>&1
 
2104
_ASEOF
 
2105
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
2106
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2012
2107
 
2013
2108
# LT_OUTPUT
2014
2109
# ---------
2018
2113
AC_DEFUN([LT_OUTPUT],
2019
2114
[: ${CONFIG_LT=./config.lt}
2020
2115
AC_MSG_NOTICE([creating $CONFIG_LT])
2021
 
cat >"$CONFIG_LT" <<_LTEOF
2022
 
#! $SHELL
2023
 
# Generated by $as_me.
2024
 
# Run this file to recreate a libtool stub with the current configuration.
 
2116
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 
2117
[# Run this file to recreate a libtool stub with the current configuration.])
2025
2118
 
 
2119
cat >>"$CONFIG_LT" <<\_LTEOF
2026
2120
lt_cl_silent=false
2027
 
SHELL=\${CONFIG_SHELL-$SHELL}
2028
 
_LTEOF
2029
 
 
2030
 
cat >>"$CONFIG_LT" <<\_LTEOF
2031
 
AS_SHELL_SANITIZE
2032
 
_AS_PREPARE
2033
 
 
2034
 
exec AS_MESSAGE_FD>&1
2035
2121
exec AS_MESSAGE_LOG_FD>>config.log
2036
2122
{
2037
2123
  echo
2057
2143
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2058
2144
configured by $[0], generated by m4_PACKAGE_STRING.
2059
2145
 
2060
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
2146
Copyright (C) 2010 Free Software Foundation, Inc.
2061
2147
This config.lt script is free software; the Free Software Foundation
2062
2148
gives unlimited permision to copy, distribute and modify it."
2063
2149
 
2102
2188
# appending to config.log, which fails on DOS, as config.log is still kept
2103
2189
# open by configure.  Here we exec the FD to /dev/null, effectively closing
2104
2190
# config.log, so it can be properly (re)opened and appended to by config.lt.
2105
 
if test "$no_create" != yes; then
2106
 
  lt_cl_success=:
2107
 
  test "$silent" = yes &&
2108
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
2109
 
  exec AS_MESSAGE_LOG_FD>/dev/null
2110
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2111
 
  exec AS_MESSAGE_LOG_FD>>config.log
2112
 
  $lt_cl_success || AS_EXIT(1)
2113
 
fi
 
2191
lt_cl_success=:
 
2192
test "$silent" = yes &&
 
2193
  lt_config_lt_args="$lt_config_lt_args --quiet"
 
2194
exec AS_MESSAGE_LOG_FD>/dev/null
 
2195
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
2196
exec AS_MESSAGE_LOG_FD>>config.log
 
2197
$lt_cl_success || AS_EXIT(1)
2114
2198
])# LT_OUTPUT
2115
2199
 
2116
2200
 
2173
2257
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
2174
2258
  # text mode, it properly converts lines to CR/LF.  This bash problem
2175
2259
  # is reportedly fixed, but why not run on old versions too?
2176
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
2177
 
    || (rm -f "$cfgfile"; exit 1)
2178
 
 
2179
 
  _LT_PROG_XSI_SHELLFNS
2180
 
 
2181
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2182
 
    || (rm -f "$cfgfile"; exit 1)
2183
 
 
2184
 
  mv -f "$cfgfile" "$ofile" ||
 
2260
  sed '$q' "$ltmain" >> "$cfgfile" \
 
2261
     || (rm -f "$cfgfile"; exit 1)
 
2262
 
 
2263
  _LT_PROG_REPLACE_SHELLFNS
 
2264
 
 
2265
   mv -f "$cfgfile" "$ofile" ||
2185
2266
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2186
2267
  chmod +x "$ofile"
2187
2268
],
2287
2368
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2288
2369
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2289
2370
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
2371
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2290
2372
dnl aclocal-1.4 backwards compatibility:
2291
2373
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2292
2374
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2293
2375
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2294
2376
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
2377
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2295
2378
 
2296
2379
 
2297
2380
# _LT_TAG_COMPILER
2396
2479
        [lt_cv_ld_exported_symbols_list=no])
2397
2480
        LDFLAGS="$save_LDFLAGS"
2398
2481
    ])
 
2482
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 
2483
      [lt_cv_ld_force_load=no
 
2484
      cat > conftest.c << _LT_EOF
 
2485
int forced_loaded() { return 2;}
 
2486
_LT_EOF
 
2487
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 
2488
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 
2489
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 
2490
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 
2491
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 
2492
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 
2493
      cat > conftest.c << _LT_EOF
 
2494
int main() { return 0;}
 
2495
_LT_EOF
 
2496
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 
2497
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
2498
      _lt_result=$?
 
2499
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
2500
        lt_cv_ld_force_load=yes
 
2501
      else
 
2502
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
2503
      fi
 
2504
        rm -f conftest.err libconftest.a conftest conftest.c
 
2505
        rm -rf conftest.dSYM
 
2506
    ])
2399
2507
    case $host_os in
2400
2508
    rhapsody* | darwin1.[[012]])
2401
2509
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2423
2531
    else
2424
2532
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2425
2533
    fi
2426
 
    if test "$DSYMUTIL" != ":"; then
 
2534
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2427
2535
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2428
2536
    else
2429
2537
      _lt_dsymutil=
2443
2551
  _LT_TAGVAR(hardcode_direct, $1)=no
2444
2552
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2445
2553
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2446
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2554
  if test "$lt_cv_ld_force_load" = "yes"; then
 
2555
    _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\"`'
 
2556
  else
 
2557
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2558
  fi
2447
2559
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2448
2560
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2449
2561
  case $cc_basename in
2451
2563
     *) _lt_dar_can_shared=$GCC ;;
2452
2564
  esac
2453
2565
  if test "$_lt_dar_can_shared" = "yes"; then
2454
 
    output_verbose_link_cmd=echo
 
2566
    output_verbose_link_cmd=func_echo_all
2455
2567
    _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}"
2456
2568
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2457
2569
    _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}"
2467
2579
  fi
2468
2580
])
2469
2581
 
2470
 
# _LT_SYS_MODULE_PATH_AIX
2471
 
# -----------------------
 
2582
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
2583
# ----------------------------------
2472
2584
# Links a minimal program and checks the executable
2473
2585
# for the system default hardcoded library path. In most cases,
2474
2586
# this is /usr/lib:/lib, but when the MPI compilers are used
2475
2587
# the location of the communication and MPI libs are included too.
2476
2588
# If we don't find anything, use the default library path according
2477
2589
# to the aix ld manual.
 
2590
# Store the results from the different compilers for each TAGNAME.
 
2591
# Allow to override them for all tags through lt_cv_aix_libpath.
2478
2592
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2479
2593
[m4_require([_LT_DECL_SED])dnl
2480
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2481
 
lt_aix_libpath_sed='
2482
 
    /Import File Strings/,/^$/ {
2483
 
        /^0/ {
2484
 
            s/^0  *\(.*\)$/\1/
2485
 
            p
2486
 
        }
2487
 
    }'
2488
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2489
 
# Check for a 64-bit object if we didn't find anything.
2490
 
if test -z "$aix_libpath"; then
2491
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2492
 
fi],[])
2493
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
2594
if test "${lt_cv_aix_libpath+set}" = set; then
 
2595
  aix_libpath=$lt_cv_aix_libpath
 
2596
else
 
2597
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
2598
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
2599
  lt_aix_libpath_sed='[
 
2600
      /Import File Strings/,/^$/ {
 
2601
          /^0/ {
 
2602
              s/^0  *\([^ ]*\) *$/\1/
 
2603
              p
 
2604
          }
 
2605
      }]'
 
2606
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2607
  # Check for a 64-bit object if we didn't find anything.
 
2608
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2609
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2610
  fi],[])
 
2611
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2612
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
2613
  fi
 
2614
  ])
 
2615
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
2616
fi
2494
2617
])# _LT_SYS_MODULE_PATH_AIX
2495
2618
 
2496
2619
 
2497
2620
# _LT_SHELL_INIT(ARG)
2498
2621
# -------------------
2499
2622
m4_define([_LT_SHELL_INIT],
2500
 
[ifdef([AC_DIVERSION_NOTICE],
2501
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2502
 
         [AC_DIVERT_PUSH(NOTICE)])
2503
 
$1
2504
 
AC_DIVERT_POP
2505
 
])# _LT_SHELL_INIT
 
2623
[m4_divert_text([M4SH-INIT], [$1
 
2624
])])# _LT_SHELL_INIT
 
2625
 
2506
2626
 
2507
2627
 
2508
2628
# _LT_PROG_ECHO_BACKSLASH
2509
2629
# -----------------------
2510
 
# Add some code to the start of the generated configure script which
2511
 
# will find an echo command which doesn't interpret backslashes.
 
2630
# Find how we can fake an echo command that does not interpret backslash.
 
2631
# In particular, with Autoconf 2.60 or later we add some code to the start
 
2632
# of the generated configure script which will find a shell with a builtin
 
2633
# printf (which we can use as an echo command).
2512
2634
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2513
 
[_LT_SHELL_INIT([
2514
 
# Check that we are running under the correct shell.
2515
 
SHELL=${CONFIG_SHELL-/bin/sh}
2516
 
 
2517
 
case X$lt_ECHO in
2518
 
X*--fallback-echo)
2519
 
  # Remove one level of quotation (which was required for Make).
2520
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2521
 
  ;;
 
2635
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2636
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2637
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2638
 
 
2639
AC_MSG_CHECKING([how to print strings])
 
2640
# Test print first, because it will be a builtin if present.
 
2641
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2642
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2643
  ECHO='print -r --'
 
2644
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2645
  ECHO='printf %s\n'
 
2646
else
 
2647
  # Use this function as a fallback that always works.
 
2648
  func_fallback_echo ()
 
2649
  {
 
2650
    eval 'cat <<_LTECHO_EOF
 
2651
$[]1
 
2652
_LTECHO_EOF'
 
2653
  }
 
2654
  ECHO='func_fallback_echo'
 
2655
fi
 
2656
 
 
2657
# func_echo_all arg...
 
2658
# Invoke $ECHO with all args, space-separated.
 
2659
func_echo_all ()
 
2660
{
 
2661
    $ECHO "$*" 
 
2662
}
 
2663
 
 
2664
case "$ECHO" in
 
2665
  printf*) AC_MSG_RESULT([printf]) ;;
 
2666
  print*) AC_MSG_RESULT([print -r]) ;;
 
2667
  *) AC_MSG_RESULT([cat]) ;;
2522
2668
esac
2523
2669
 
2524
 
ECHO=${lt_ECHO-echo}
2525
 
if test "X[$]1" = X--no-reexec; then
2526
 
  # Discard the --no-reexec flag, and continue.
2527
 
  shift
2528
 
elif test "X[$]1" = X--fallback-echo; then
2529
 
  # Avoid inline document here, it may be left over
2530
 
  :
2531
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2532
 
  # Yippee, $ECHO works!
2533
 
  :
2534
 
else
2535
 
  # Restart under the correct shell.
2536
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2537
 
fi
2538
 
 
2539
 
if test "X[$]1" = X--fallback-echo; then
2540
 
  # used as fallback echo
2541
 
  shift
2542
 
  cat <<_LT_EOF
2543
 
[$]*
2544
 
_LT_EOF
2545
 
  exit 0
2546
 
fi
2547
 
 
2548
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2549
 
# if CDPATH is set.
2550
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2551
 
 
2552
 
if test -z "$lt_ECHO"; then
2553
 
  if test "X${echo_test_string+set}" != Xset; then
2554
 
    # find a string as large as possible, as long as the shell can cope with it
2555
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2556
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2557
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2558
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2559
 
      then
2560
 
        break
2561
 
      fi
2562
 
    done
2563
 
  fi
2564
 
 
2565
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2566
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2567
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
2568
 
    :
2569
 
  else
2570
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
2571
 
    # backslashes.  This makes it impossible to quote backslashes using
2572
 
    #   echo "$something" | sed 's/\\/\\\\/g'
2573
 
    #
2574
 
    # So, first we look for a working echo in the user's PATH.
2575
 
 
2576
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2577
 
    for dir in $PATH /usr/ucb; do
2578
 
      IFS="$lt_save_ifs"
2579
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2580
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2581
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2582
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2583
 
        ECHO="$dir/echo"
2584
 
        break
2585
 
      fi
2586
 
    done
2587
 
    IFS="$lt_save_ifs"
2588
 
 
2589
 
    if test "X$ECHO" = Xecho; then
2590
 
      # We didn't find a better echo, so look for alternatives.
2591
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2592
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2593
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2594
 
        # This shell has a builtin print -r that does the trick.
2595
 
        ECHO='print -r'
2596
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2597
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
2598
 
        # If we have ksh, try running configure again with it.
2599
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2600
 
        export ORIGINAL_CONFIG_SHELL
2601
 
        CONFIG_SHELL=/bin/ksh
2602
 
        export CONFIG_SHELL
2603
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2604
 
      else
2605
 
        # Try using printf.
2606
 
        ECHO='printf %s\n'
2607
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2608
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2609
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2610
 
          # Cool, printf works
2611
 
          :
2612
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2613
 
             test "X$echo_testing_string" = 'X\t' &&
2614
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2615
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2616
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2617
 
          export CONFIG_SHELL
2618
 
          SHELL="$CONFIG_SHELL"
2619
 
          export SHELL
2620
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2621
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2622
 
             test "X$echo_testing_string" = 'X\t' &&
2623
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2624
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2625
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2626
 
        else
2627
 
          # maybe with a smaller string...
2628
 
          prev=:
2629
 
 
2630
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2631
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2632
 
            then
2633
 
              break
2634
 
            fi
2635
 
            prev="$cmd"
2636
 
          done
2637
 
 
2638
 
          if test "$prev" != 'sed 50q "[$]0"'; then
2639
 
            echo_test_string=`eval $prev`
2640
 
            export echo_test_string
2641
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2642
 
          else
2643
 
            # Oops.  We lost completely, so just stick with echo.
2644
 
            ECHO=echo
2645
 
          fi
2646
 
        fi
2647
 
      fi
2648
 
    fi
2649
 
  fi
2650
 
fi
2651
 
 
2652
 
# Copy echo and quote the copy suitably for passing to libtool from
2653
 
# the Makefile, instead of quoting the original, which is used later.
2654
 
lt_ECHO=$ECHO
2655
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2656
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2657
 
fi
2658
 
 
2659
 
AC_SUBST(lt_ECHO)
2660
 
])
 
2670
m4_ifdef([_AS_DETECT_SUGGESTED],
 
2671
[_AS_DETECT_SUGGESTED([
 
2672
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 
2673
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2674
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2675
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2676
    PATH=/empty FPATH=/empty; export PATH FPATH
 
2677
    test "X`printf %s $ECHO`" = "X$ECHO" \
 
2678
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 
2679
 
2661
2680
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2662
 
_LT_DECL([], [ECHO], [1],
2663
 
    [An echo program that does not interpret backslashes])
 
2681
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2664
2682
])# _LT_PROG_ECHO_BACKSLASH
2665
2683
 
2666
2684
 
 
2685
# _LT_WITH_SYSROOT
 
2686
# ----------------
 
2687
AC_DEFUN([_LT_WITH_SYSROOT],
 
2688
[AC_MSG_CHECKING([for sysroot])
 
2689
AC_ARG_WITH([sysroot],
 
2690
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
2691
                        (or the compiler's sysroot if not specified).],
 
2692
[], [with_sysroot=no])
 
2693
 
 
2694
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
2695
dnl in case the user passed a directory name.
 
2696
lt_sysroot=
 
2697
case ${with_sysroot} in #(
 
2698
 yes)
 
2699
   if test "$GCC" = yes; then
 
2700
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
2701
   fi
 
2702
   ;; #(
 
2703
 /*)
 
2704
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
2705
   ;; #(
 
2706
 no|'')
 
2707
   ;; #(
 
2708
 *)
 
2709
   AC_MSG_RESULT([${with_sysroot}])
 
2710
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
2711
   ;;
 
2712
esac
 
2713
 
 
2714
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
2715
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
2716
[dependent libraries, and in which our libraries should be installed.])])
 
2717
 
2667
2718
# _LT_ENABLE_LOCK
2668
2719
# ---------------
2669
2720
m4_defun([_LT_ENABLE_LOCK],
2692
2743
  ;;
2693
2744
*-*-irix6*)
2694
2745
  # Find out which ABI we are using.
2695
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
2746
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2696
2747
  if AC_TRY_EVAL(ac_compile); then
2697
2748
    if test "$lt_cv_prog_gnu_ld" = yes; then
2698
2749
      case `/usr/bin/file conftest.$ac_objext` in
2810
2861
])# _LT_ENABLE_LOCK
2811
2862
 
2812
2863
 
 
2864
# _LT_PROG_AR
 
2865
# -----------
 
2866
m4_defun([_LT_PROG_AR],
 
2867
[AC_CHECK_TOOLS(AR, [ar], false)
 
2868
: ${AR=ar}
 
2869
: ${AR_FLAGS=cru}
 
2870
_LT_DECL([], [AR], [1], [The archiver])
 
2871
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2872
 
 
2873
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2874
  [lt_cv_ar_at_file=no
 
2875
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2876
     [echo conftest.$ac_objext > conftest.lst
 
2877
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2878
      AC_TRY_EVAL([lt_ar_try])
 
2879
      if test "$ac_status" -eq 0; then
 
2880
        # Ensure the archiver fails upon bogus file names.
 
2881
        rm -f conftest.$ac_objext libconftest.a
 
2882
        AC_TRY_EVAL([lt_ar_try])
 
2883
        if test "$ac_status" -ne 0; then
 
2884
          lt_cv_ar_at_file=@
 
2885
        fi
 
2886
      fi
 
2887
      rm -f conftest.* libconftest.a
 
2888
     ])
 
2889
  ])
 
2890
 
 
2891
if test "x$lt_cv_ar_at_file" = xno; then
 
2892
  archiver_list_spec=
 
2893
else
 
2894
  archiver_list_spec=$lt_cv_ar_at_file
 
2895
fi
 
2896
_LT_DECL([], [archiver_list_spec], [1],
 
2897
  [How to feed a file listing to the archiver])
 
2898
])# _LT_PROG_AR
 
2899
 
 
2900
 
2813
2901
# _LT_CMD_OLD_ARCHIVE
2814
2902
# -------------------
2815
2903
m4_defun([_LT_CMD_OLD_ARCHIVE],
2816
 
[AC_CHECK_TOOL(AR, ar, false)
2817
 
test -z "$AR" && AR=ar
2818
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2819
 
_LT_DECL([], [AR], [1], [The archiver])
2820
 
_LT_DECL([], [AR_FLAGS], [1])
 
2904
[_LT_PROG_AR
2821
2905
 
2822
2906
AC_CHECK_TOOL(STRIP, strip, :)
2823
2907
test -z "$STRIP" && STRIP=:
2844
2928
  esac
2845
2929
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2846
2930
fi
 
2931
 
 
2932
case $host_os in
 
2933
  darwin*)
 
2934
    lock_old_archive_extraction=yes ;;
 
2935
  *)
 
2936
    lock_old_archive_extraction=no ;;
 
2937
esac
2847
2938
_LT_DECL([], [old_postinstall_cmds], [2])
2848
2939
_LT_DECL([], [old_postuninstall_cmds], [2])
2849
2940
_LT_TAGDECL([], [old_archive_cmds], [2],
2850
2941
    [Commands used to build an old-style archive])
 
2942
_LT_DECL([], [lock_old_archive_extraction], [0],
 
2943
    [Whether to use a lock for old archive extraction])
2851
2944
])# _LT_CMD_OLD_ARCHIVE
2852
2945
 
2853
2946
 
2872
2965
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2873
2966
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2874
2967
   -e 's:$: $lt_compiler_flag:'`
2875
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2968
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2876
2969
   (eval "$lt_compile" 2>conftest.err)
2877
2970
   ac_status=$?
2878
2971
   cat conftest.err >&AS_MESSAGE_LOG_FD
2879
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2972
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2880
2973
   if (exit $ac_status) && test -s "$ac_outfile"; then
2881
2974
     # The compiler can only warn and ignore the option if not recognized
2882
2975
     # So say no if there are warnings other than the usual output.
2883
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2976
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2884
2977
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2885
2978
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2886
2979
       $2=yes
2920
3013
     if test -s conftest.err; then
2921
3014
       # Append any errors to the config.log.
2922
3015
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2923
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
3016
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2924
3017
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2925
3018
       if diff conftest.exp conftest.er2 >/dev/null; then
2926
3019
         $2=yes
2983
3076
    lt_cv_sys_max_cmd_len=8192;
2984
3077
    ;;
2985
3078
 
 
3079
  mint*)
 
3080
    # On MiNT this can take a long time and run out of memory.
 
3081
    lt_cv_sys_max_cmd_len=8192;
 
3082
    ;;
 
3083
 
2986
3084
  amigaos*)
2987
3085
    # On AmigaOS with pdksh, this test takes hours, literally.
2988
3086
    # So we just punt and use a minimum line length of 8192.
3047
3145
      # If test is not a shell built-in, we'll probably end up computing a
3048
3146
      # maximum length that is only half of the actual maximum length, but
3049
3147
      # we can't tell.
3050
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3051
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
3148
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
3149
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3052
3150
              test $i != 17 # 1/2 MB should be enough
3053
3151
      do
3054
3152
        i=`expr $i + 1`
3099
3197
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3100
3198
  lt_status=$lt_dlunknown
3101
3199
  cat > conftest.$ac_ext <<_LT_EOF
3102
 
[#line __oline__ "configure"
 
3200
[#line $LINENO "configure"
3103
3201
#include "confdefs.h"
3104
3202
 
3105
3203
#if HAVE_DLFCN_H
3140
3238
#  endif
3141
3239
#endif
3142
3240
 
3143
 
void fnord() { int i=42;}
 
3241
/* When -fvisbility=hidden is used, assume the code has been annotated
 
3242
   correspondingly for the symbols needed.  */
 
3243
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
3244
int fnord () __attribute__((visibility("default")));
 
3245
#endif
 
3246
 
 
3247
int fnord () { return 42; }
3144
3248
int main ()
3145
3249
{
3146
3250
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3149
3253
  if (self)
3150
3254
    {
3151
3255
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
3152
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
3256
      else
 
3257
        {
 
3258
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
3259
          else puts (dlerror ());
 
3260
        }
3153
3261
      /* dlclose (self); */
3154
3262
    }
3155
3263
  else
3325
3433
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3326
3434
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3327
3435
   -e 's:$: $lt_compiler_flag:'`
3328
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
3436
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3329
3437
   (eval "$lt_compile" 2>out/conftest.err)
3330
3438
   ac_status=$?
3331
3439
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
3332
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
3440
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3333
3441
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
3334
3442
   then
3335
3443
     # The compiler can only warn and ignore the option if not recognized
3336
3444
     # So say no if there are warnings
3337
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
3445
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3338
3446
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3339
3447
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3340
3448
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3493
3601
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3494
3602
m4_require([_LT_DECL_OBJDUMP])dnl
3495
3603
m4_require([_LT_DECL_SED])dnl
 
3604
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3496
3605
AC_MSG_CHECKING([dynamic linker characteristics])
3497
3606
m4_if([$1],
3498
3607
        [], [
3501
3610
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3502
3611
    *) lt_awk_arg="/^libraries:/" ;;
3503
3612
  esac
3504
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3505
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3613
  case $host_os in
 
3614
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 
3615
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
3616
  esac
 
3617
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
3618
  case $lt_search_path_spec in
 
3619
  *\;*)
3506
3620
    # if the path contains ";" then we assume it to be the separator
3507
3621
    # otherwise default to the standard path separator (i.e. ":") - it is
3508
3622
    # assumed that no part of a normal pathname contains ";" but that should
3509
3623
    # okay in the real world where ";" in dirpaths is itself problematic.
3510
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3511
 
  else
3512
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3513
 
  fi
 
3624
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
3625
    ;;
 
3626
  *)
 
3627
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
3628
    ;;
 
3629
  esac
3514
3630
  # Ok, now we have the path, separated by spaces, we can step through it
3515
3631
  # and add multilib dir if necessary.
3516
3632
  lt_tmp_lt_search_path_spec=
3523
3639
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3524
3640
    fi
3525
3641
  done
3526
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3642
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3527
3643
BEGIN {RS=" "; FS="/|\n";} {
3528
3644
  lt_foo="";
3529
3645
  lt_count=0;
3543
3659
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3544
3660
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3545
3661
}'`
3546
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3662
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
3663
  # for these hosts.
 
3664
  case $host_os in
 
3665
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
3666
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
3667
  esac
 
3668
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3547
3669
else
3548
3670
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3549
3671
fi])
3631
3753
  m68k)
3632
3754
    library_names_spec='$libname.ixlibrary $libname.a'
3633
3755
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3634
 
    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'
 
3756
    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'
3635
3757
    ;;
3636
3758
  esac
3637
3759
  ;;
3662
3784
  need_version=no
3663
3785
  need_lib_prefix=no
3664
3786
 
3665
 
  case $GCC,$host_os in
3666
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3787
  case $GCC,$cc_basename in
 
3788
  yes,*)
 
3789
    # gcc
3667
3790
    library_names_spec='$libname.dll.a'
3668
3791
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3669
3792
    postinstall_cmds='base_file=`basename \${file}`~
3684
3807
    cygwin*)
3685
3808
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3686
3809
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3687
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
3810
m4_if([$1], [],[
 
3811
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3688
3812
      ;;
3689
3813
    mingw* | cegcc*)
3690
3814
      # MinGW DLLs use traditional 'lib' prefix
3691
3815
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3692
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3693
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3694
 
        # It is most probably a Windows format PATH printed by
3695
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3696
 
        # path with ; separators, and with drive letters. We can handle the
3697
 
        # drive letters (cygwin fileutils understands them), so leave them,
3698
 
        # especially as we might pass files found there to a mingw objdump,
3699
 
        # which wouldn't understand a cygwinified path. Ahh.
3700
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3701
 
      else
3702
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3703
 
      fi
3704
3816
      ;;
3705
3817
    pw32*)
3706
3818
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3707
3819
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3708
3820
      ;;
3709
3821
    esac
 
3822
    dynamic_linker='Win32 ld.exe'
 
3823
    ;;
 
3824
 
 
3825
  *,cl*)
 
3826
    # Native MSVC
 
3827
    libname_spec='$name'
 
3828
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3829
    library_names_spec='${libname}.dll.lib'
 
3830
 
 
3831
    case $build_os in
 
3832
    mingw*)
 
3833
      sys_lib_search_path_spec=
 
3834
      lt_save_ifs=$IFS
 
3835
      IFS=';'
 
3836
      for lt_path in $LIB
 
3837
      do
 
3838
        IFS=$lt_save_ifs
 
3839
        # Let DOS variable expansion print the short 8.3 style file name.
 
3840
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3841
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3842
      done
 
3843
      IFS=$lt_save_ifs
 
3844
      # Convert to MSYS style.
 
3845
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3846
      ;;
 
3847
    cygwin*)
 
3848
      # Convert to unix form, then to dos form, then back to unix form
 
3849
      # but this time dos style (no spaces!) so that the unix form looks
 
3850
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3851
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3852
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3853
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3854
      ;;
 
3855
    *)
 
3856
      sys_lib_search_path_spec="$LIB"
 
3857
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3858
        # It is most probably a Windows format PATH.
 
3859
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3860
      else
 
3861
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3862
      fi
 
3863
      # FIXME: find the short name or the path components, as spaces are
 
3864
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3865
      ;;
 
3866
    esac
 
3867
 
 
3868
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3869
    postinstall_cmds='base_file=`basename \${file}`~
 
3870
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3871
      dldir=$destdir/`dirname \$dlpath`~
 
3872
      test -d \$dldir || mkdir -p \$dldir~
 
3873
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3874
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3875
      dlpath=$dir/\$dldll~
 
3876
       $RM \$dlpath'
 
3877
    shlibpath_overrides_runpath=yes
 
3878
    dynamic_linker='Win32 link.exe'
3710
3879
    ;;
3711
3880
 
3712
3881
  *)
 
3882
    # Assume MSVC wrapper
3713
3883
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3884
    dynamic_linker='Win32 ld.exe'
3714
3885
    ;;
3715
3886
  esac
3716
 
  dynamic_linker='Win32 ld.exe'
3717
3887
  # FIXME: first we should search . and the directory the executable is in
3718
3888
  shlibpath_var=PATH
3719
3889
  ;;
3800
3970
  hardcode_into_libs=yes
3801
3971
  ;;
3802
3972
 
 
3973
haiku*)
 
3974
  version_type=linux
 
3975
  need_lib_prefix=no
 
3976
  need_version=no
 
3977
  dynamic_linker="$host_os runtime_loader"
 
3978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
3979
  soname_spec='${libname}${release}${shared_ext}$major'
 
3980
  shlibpath_var=LIBRARY_PATH
 
3981
  shlibpath_overrides_runpath=yes
 
3982
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
3983
  hardcode_into_libs=yes
 
3984
  ;;
 
3985
 
3803
3986
hpux9* | hpux10* | hpux11*)
3804
3987
  # Give a soname corresponding to the major version so that dld.sl refuses to
3805
3988
  # link against other versions.
3842
4025
    soname_spec='${libname}${release}${shared_ext}$major'
3843
4026
    ;;
3844
4027
  esac
3845
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
4028
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3846
4029
  postinstall_cmds='chmod 555 $lib'
 
4030
  # or fails outright, so override atomically:
 
4031
  install_override_mode=555
3847
4032
  ;;
3848
4033
 
3849
4034
interix[[3-9]]*)
3901
4086
  ;;
3902
4087
 
3903
4088
# This must be Linux ELF.
3904
 
linux* | k*bsd*-gnu)
 
4089
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3905
4090
  version_type=linux
3906
4091
  need_lib_prefix=no
3907
4092
  need_version=no
3910
4095
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3911
4096
  shlibpath_var=LD_LIBRARY_PATH
3912
4097
  shlibpath_overrides_runpath=no
 
4098
 
3913
4099
  # Some binutils ld are patched to set DT_RUNPATH
3914
 
  save_LDFLAGS=$LDFLAGS
3915
 
  save_libdir=$libdir
3916
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3917
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3918
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3919
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3920
 
       [shlibpath_overrides_runpath=yes])])
3921
 
  LDFLAGS=$save_LDFLAGS
3922
 
  libdir=$save_libdir
 
4100
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
4101
    [lt_cv_shlibpath_overrides_runpath=no
 
4102
    save_LDFLAGS=$LDFLAGS
 
4103
    save_libdir=$libdir
 
4104
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
4105
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
4106
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
4107
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
4108
         [lt_cv_shlibpath_overrides_runpath=yes])])
 
4109
    LDFLAGS=$save_LDFLAGS
 
4110
    libdir=$save_libdir
 
4111
    ])
 
4112
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3923
4113
 
3924
4114
  # This implies no fast_install, which is unacceptable.
3925
4115
  # Some rework will be needed to allow for fast_install
3931
4121
 
3932
4122
  # Append ld.so.conf contents to the search path
3933
4123
  if test -f /etc/ld.so.conf; then
3934
 
    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' ' '`
 
4124
    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' ' '`
3935
4125
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
4126
 
3936
4127
  fi
3937
4128
 
3938
4129
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4164
4355
    The last name is the one that the linker finds with -lNAME]])
4165
4356
_LT_DECL([], [soname_spec], [1],
4166
4357
    [[The coded name of the library, if different from the real name]])
 
4358
_LT_DECL([], [install_override_mode], [1],
 
4359
    [Permission mode override for installation of shared libraries])
4167
4360
_LT_DECL([], [postinstall_cmds], [2],
4168
4361
    [Command to use after installation of a shared archive])
4169
4362
_LT_DECL([], [postuninstall_cmds], [2],
4276
4469
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4277
4470
m4_require([_LT_DECL_SED])dnl
4278
4471
m4_require([_LT_DECL_EGREP])dnl
 
4472
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4279
4473
 
4280
4474
AC_ARG_WITH([gnu-ld],
4281
4475
    [AS_HELP_STRING([--with-gnu-ld],
4397
4591
esac
4398
4592
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4399
4593
case $host_os in
 
4594
  cygwin* | mingw* | pw32* | cegcc*)
 
4595
    if test "$GCC" != yes; then
 
4596
      reload_cmds=false
 
4597
    fi
 
4598
    ;;
4400
4599
  darwin*)
4401
4600
    if test "$GCC" = yes; then
4402
4601
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4405
4604
    fi
4406
4605
    ;;
4407
4606
esac
4408
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4409
 
_LT_DECL([], [reload_cmds], [2])dnl
 
4607
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4608
_LT_TAGDECL([], [reload_cmds], [2])dnl
4410
4609
])# _LT_CMD_RELOAD
4411
4610
 
4412
4611
 
4458
4657
  # Base MSYS/MinGW do not provide the 'file' command needed by
4459
4658
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4460
4659
  # unless we find 'file', for example because we are cross-compiling.
4461
 
  if ( file / ) >/dev/null 2>&1; then
 
4660
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
4661
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4462
4662
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4463
4663
    lt_cv_file_magic_cmd='func_win32_libid'
4464
4664
  else
4465
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4665
    # Keep this pattern in sync with the one in func_win32_libid.
 
4666
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4466
4667
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4467
4668
  fi
4468
4669
  ;;
4469
4670
 
4470
 
cegcc)
 
4671
cegcc*)
4471
4672
  # use the weaker test based on 'objdump'. See mingw*.
4472
4673
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4473
4674
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4497
4698
  lt_cv_deplibs_check_method=pass_all
4498
4699
  ;;
4499
4700
 
 
4701
haiku*)
 
4702
  lt_cv_deplibs_check_method=pass_all
 
4703
  ;;
 
4704
 
4500
4705
hpux10.20* | hpux11*)
4501
4706
  lt_cv_file_magic_cmd=/usr/bin/file
4502
4707
  case $host_cpu in
4505
4710
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4506
4711
    ;;
4507
4712
  hppa*64*)
4508
 
    [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]']
 
4713
    [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]']
4509
4714
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4510
4715
    ;;
4511
4716
  *)
4512
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
4717
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4513
4718
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4514
4719
    ;;
4515
4720
  esac
4531
4736
  ;;
4532
4737
 
4533
4738
# This must be Linux ELF.
4534
 
linux* | k*bsd*-gnu)
 
4739
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4535
4740
  lt_cv_deplibs_check_method=pass_all
4536
4741
  ;;
4537
4742
 
4609
4814
  ;;
4610
4815
esac
4611
4816
])
 
4817
 
 
4818
file_magic_glob=
 
4819
want_nocaseglob=no
 
4820
if test "$build" = "$host"; then
 
4821
  case $host_os in
 
4822
  mingw* | pw32*)
 
4823
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4824
      want_nocaseglob=yes
 
4825
    else
 
4826
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4827
    fi
 
4828
    ;;
 
4829
  esac
 
4830
fi
 
4831
 
4612
4832
file_magic_cmd=$lt_cv_file_magic_cmd
4613
4833
deplibs_check_method=$lt_cv_deplibs_check_method
4614
4834
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4616
4836
_LT_DECL([], [deplibs_check_method], [1],
4617
4837
    [Method to check whether dependent libraries are shared objects])
4618
4838
_LT_DECL([], [file_magic_cmd], [1],
4619
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4839
    [Command to use when deplibs_check_method = "file_magic"])
 
4840
_LT_DECL([], [file_magic_glob], [1],
 
4841
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4842
_LT_DECL([], [want_nocaseglob], [1],
 
4843
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4620
4844
])# _LT_CHECK_MAGIC_METHOD
4621
4845
 
4622
4846
 
4673
4897
  NM="$lt_cv_path_NM"
4674
4898
else
4675
4899
  # Didn't find any BSD compatible name lister, look for dumpbin.
4676
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4900
  if test -n "$DUMPBIN"; then :
 
4901
    # Let the user override the test.
 
4902
  else
 
4903
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 
4904
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4905
    *COFF*)
 
4906
      DUMPBIN="$DUMPBIN -symbols"
 
4907
      ;;
 
4908
    *)
 
4909
      DUMPBIN=:
 
4910
      ;;
 
4911
    esac
 
4912
  fi
4677
4913
  AC_SUBST([DUMPBIN])
4678
4914
  if test "$DUMPBIN" != ":"; then
4679
4915
    NM="$DUMPBIN"
4686
4922
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4687
4923
  [lt_cv_nm_interface="BSD nm"
4688
4924
  echo "int some_variable = 0;" > conftest.$ac_ext
4689
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4925
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4690
4926
  (eval "$ac_compile" 2>conftest.err)
4691
4927
  cat conftest.err >&AS_MESSAGE_LOG_FD
4692
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4928
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4693
4929
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4694
4930
  cat conftest.err >&AS_MESSAGE_LOG_FD
4695
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4931
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4696
4932
  cat conftest.out >&AS_MESSAGE_LOG_FD
4697
4933
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4698
4934
    lt_cv_nm_interface="MS dumpbin"
4707
4943
dnl AC_DEFUN([AM_PROG_NM], [])
4708
4944
dnl AC_DEFUN([AC_PROG_NM], [])
4709
4945
 
 
4946
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4947
# --------------------------------
 
4948
# how to determine the name of the shared library
 
4949
# associated with a specific link library.
 
4950
#  -- PORTME fill in with the dynamic library characteristics
 
4951
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4952
[m4_require([_LT_DECL_EGREP])
 
4953
m4_require([_LT_DECL_OBJDUMP])
 
4954
m4_require([_LT_DECL_DLLTOOL])
 
4955
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4956
lt_cv_sharedlib_from_linklib_cmd,
 
4957
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4958
 
 
4959
case $host_os in
 
4960
cygwin* | mingw* | pw32* | cegcc*)
 
4961
  # two different shell functions defined in ltmain.sh
 
4962
  # decide which to use based on capabilities of $DLLTOOL
 
4963
  case `$DLLTOOL --help 2>&1` in
 
4964
  *--identify-strict*)
 
4965
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4966
    ;;
 
4967
  *)
 
4968
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4969
    ;;
 
4970
  esac
 
4971
  ;;
 
4972
*)
 
4973
  # fallback: assume linklib IS sharedlib
 
4974
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4975
  ;;
 
4976
esac
 
4977
])
 
4978
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4979
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4980
 
 
4981
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4982
    [Command to associate shared and link libraries])
 
4983
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4984
 
 
4985
 
 
4986
# _LT_PATH_MANIFEST_TOOL
 
4987
# ----------------------
 
4988
# locate the manifest tool
 
4989
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4990
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4991
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4992
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4993
  [lt_cv_path_mainfest_tool=no
 
4994
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4995
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4996
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4997
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4998
    lt_cv_path_mainfest_tool=yes
 
4999
  fi
 
5000
  rm -f conftest*])
 
5001
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
5002
  MANIFEST_TOOL=:
 
5003
fi
 
5004
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
5005
])# _LT_PATH_MANIFEST_TOOL
 
5006
 
4710
5007
 
4711
5008
# LT_LIB_M
4712
5009
# --------
4715
5012
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4716
5013
LIBM=
4717
5014
case $host in
4718
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
5015
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4719
5016
  # These system don't have libm, or don't need it
4720
5017
  ;;
4721
5018
*-ncr-sysv4.3*)
4743
5040
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4744
5041
 
4745
5042
if test "$GCC" = yes; then
4746
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5043
  case $cc_basename in
 
5044
  nvcc*)
 
5045
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 
5046
  *)
 
5047
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 
5048
  esac
4747
5049
 
4748
5050
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4749
5051
    lt_cv_prog_compiler_rtti_exceptions,
4760
5062
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4761
5063
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4762
5064
AC_REQUIRE([AC_PROG_CC])dnl
 
5065
AC_REQUIRE([AC_PROG_AWK])dnl
4763
5066
AC_REQUIRE([LT_PATH_NM])dnl
4764
5067
AC_REQUIRE([LT_PATH_LD])dnl
4765
5068
m4_require([_LT_DECL_SED])dnl
4827
5130
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4828
5131
 
4829
5132
# Transform an extracted symbol line into symbol name and symbol address
4830
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4831
 
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'"
 
5133
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5134
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'"
4832
5135
 
4833
5136
# Handle CRLF in mingw tool chain
4834
5137
opt_cr=
4864
5167
  else
4865
5168
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4866
5169
  fi
 
5170
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4867
5171
 
4868
5172
  # Check to see that the pipe works correctly.
4869
5173
  pipe_works=no
4885
5189
  if AC_TRY_EVAL(ac_compile); then
4886
5190
    # Now try to grab the symbols.
4887
5191
    nlist=conftest.nm
4888
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
5192
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4889
5193
      # Try sorting and uniquifying the output.
4890
5194
      if sort "$nlist" | uniq > "$nlist"T; then
4891
5195
        mv -f "$nlist"T "$nlist"
4897
5201
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4898
5202
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4899
5203
          cat <<_LT_EOF > conftest.$ac_ext
 
5204
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
5205
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
5206
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
5207
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
5208
# define LT@&t@_DLSYM_CONST
 
5209
#elif defined(__osf__)
 
5210
/* This system does not cope well with relocations in const data.  */
 
5211
# define LT@&t@_DLSYM_CONST
 
5212
#else
 
5213
# define LT@&t@_DLSYM_CONST const
 
5214
#endif
 
5215
 
4900
5216
#ifdef __cplusplus
4901
5217
extern "C" {
4902
5218
#endif
4908
5224
          cat <<_LT_EOF >> conftest.$ac_ext
4909
5225
 
4910
5226
/* The mapping between symbol names and symbols.  */
4911
 
const struct {
 
5227
LT@&t@_DLSYM_CONST struct {
4912
5228
  const char *name;
4913
5229
  void       *address;
4914
5230
}
4934
5250
_LT_EOF
4935
5251
          # Now try linking the two files.
4936
5252
          mv conftest.$ac_objext conftstm.$ac_objext
4937
 
          lt_save_LIBS="$LIBS"
4938
 
          lt_save_CFLAGS="$CFLAGS"
 
5253
          lt_globsym_save_LIBS=$LIBS
 
5254
          lt_globsym_save_CFLAGS=$CFLAGS
4939
5255
          LIBS="conftstm.$ac_objext"
4940
5256
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4941
5257
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4942
5258
            pipe_works=yes
4943
5259
          fi
4944
 
          LIBS="$lt_save_LIBS"
4945
 
          CFLAGS="$lt_save_CFLAGS"
 
5260
          LIBS=$lt_globsym_save_LIBS
 
5261
          CFLAGS=$lt_globsym_save_CFLAGS
4946
5262
        else
4947
5263
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4948
5264
        fi
4975
5291
  AC_MSG_RESULT(ok)
4976
5292
fi
4977
5293
 
 
5294
# Response file support.
 
5295
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5296
  nm_file_list_spec='@'
 
5297
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
5298
  nm_file_list_spec='@'
 
5299
fi
 
5300
 
4978
5301
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4979
5302
    [Take the output of nm and produce a listing of raw symbols and C names])
4980
5303
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4985
5308
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4986
5309
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4987
5310
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
5311
_LT_DECL([], [nm_file_list_spec], [1],
 
5312
    [Specify filename containing input files for $NM])
4988
5313
]) # _LT_CMD_GLOBAL_SYMBOLS
4989
5314
 
4990
5315
 
4996
5321
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4997
5322
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4998
5323
 
4999
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
5000
5324
m4_if([$1], [CXX], [
5001
5325
  # C++ specific cases for pic, static, wl, etc.
5002
5326
  if test "$GXX" = yes; then
5047
5371
      # DJGPP does not support shared libraries at all
5048
5372
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5049
5373
      ;;
 
5374
    haiku*)
 
5375
      # PIC is the default for Haiku.
 
5376
      # The "-static" flag exists, but is broken.
 
5377
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5378
      ;;
5050
5379
    interix[[3-9]]*)
5051
5380
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5052
5381
      # Instead, we relocate shared libraries at runtime.
5096
5425
          ;;
5097
5426
        esac
5098
5427
        ;;
 
5428
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
5429
        # This hack is so that the source file can tell whether it is being
 
5430
        # built for inclusion in a dll (and should export symbols for example).
 
5431
        m4_if([$1], [GCJ], [],
 
5432
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5433
        ;;
5099
5434
      dgux*)
5100
5435
        case $cc_basename in
5101
5436
          ec++*)
5152
5487
            ;;
5153
5488
        esac
5154
5489
        ;;
5155
 
      linux* | k*bsd*-gnu)
 
5490
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5156
5491
        case $cc_basename in
5157
5492
          KCC*)
5158
5493
            # KAI C++ Compiler
5185
5520
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5186
5521
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5187
5522
            ;;
5188
 
          xlc* | xlC*)
5189
 
            # IBM XL 8.0 on PPC
 
5523
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 
5524
            # IBM XL 8.0, 9.0 on PPC and BlueGene
5190
5525
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5191
5526
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5192
5527
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5248
5583
        ;;
5249
5584
      solaris*)
5250
5585
        case $cc_basename in
5251
 
          CC*)
 
5586
          CC* | sunCC*)
5252
5587
            # Sun C++ 4.2, 5.x and Centerline C++
5253
5588
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5254
5589
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5352
5687
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5353
5688
      ;;
5354
5689
 
 
5690
    haiku*)
 
5691
      # PIC is the default for Haiku.
 
5692
      # The "-static" flag exists, but is broken.
 
5693
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5694
      ;;
 
5695
 
5355
5696
    hpux*)
5356
5697
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5357
5698
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5394
5735
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5395
5736
      ;;
5396
5737
    esac
 
5738
 
 
5739
    case $cc_basename in
 
5740
    nvcc*) # Cuda Compiler Driver 2.2
 
5741
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 
5742
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
5743
      ;;
 
5744
    esac
5397
5745
  else
5398
5746
    # PORTME Check for flag to pass linker flags through the system compiler.
5399
5747
    case $host_os in
5436
5784
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5437
5785
      ;;
5438
5786
 
5439
 
    linux* | k*bsd*-gnu)
 
5787
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
5440
5788
      case $cc_basename in
5441
5789
      # old Intel for x86_64 which still supported -KPIC.
5442
5790
      ecc*)
5457
5805
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5458
5806
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5459
5807
        ;;
5460
 
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5808
      nagfor*)
 
5809
        # NAG Fortran compiler
 
5810
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5811
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5812
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5813
        ;;
 
5814
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5461
5815
        # Portland Group compilers (*not* the Pentium gcc compiler,
5462
5816
        # which looks to be a dead project)
5463
5817
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5469
5823
        # All Alpha code is PIC.
5470
5824
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5471
5825
        ;;
5472
 
      xl*)
5473
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5826
      xl* | bgxl* | bgf* | mpixl*)
 
5827
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5474
5828
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5475
5829
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5476
5830
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5477
5831
        ;;
5478
5832
      *)
5479
5833
        case `$CC -V 2>&1 | sed 5q` in
 
5834
        *Sun\ F* | *Sun*Fortran*)
 
5835
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5836
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5837
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5838
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5839
          ;;
5480
5840
        *Sun\ C*)
5481
5841
          # Sun C 5.9
5482
5842
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5483
5843
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484
5844
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5485
5845
          ;;
5486
 
        *Sun\ F*)
5487
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5488
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5489
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5490
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5491
 
          ;;
5492
5846
        esac
5493
5847
        ;;
5494
5848
      esac
5519
5873
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5520
5874
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5521
5875
      case $cc_basename in
5522
 
      f77* | f90* | f95*)
 
5876
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5523
5877
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5524
5878
      *)
5525
5879
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5576
5930
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5577
5931
    ;;
5578
5932
esac
5579
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5580
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5581
 
        [How to pass a linker flag through the compiler])
 
5933
 
 
5934
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5935
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5936
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5937
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5582
5938
 
5583
5939
#
5584
5940
# Check to make sure the PIC flag actually works.
5597
5953
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5598
5954
        [Additional compiler flags for building library objects])
5599
5955
 
 
5956
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5957
        [How to pass a linker flag through the compiler])
5600
5958
#
5601
5959
# Check to make sure the static flag actually works.
5602
5960
#
5617
5975
m4_defun([_LT_LINKER_SHLIBS],
5618
5976
[AC_REQUIRE([LT_PATH_LD])dnl
5619
5977
AC_REQUIRE([LT_PATH_NM])dnl
 
5978
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5620
5979
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5621
5980
m4_require([_LT_DECL_EGREP])dnl
5622
5981
m4_require([_LT_DECL_SED])dnl
5625
5984
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5626
5985
m4_if([$1], [CXX], [
5627
5986
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5987
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5628
5988
  case $host_os in
5629
5989
  aix[[4-9]]*)
5630
5990
    # If we're using GNU nm, then we don't want the "-C" option.
5631
5991
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5992
    # Also, AIX nm treats weak defined symbols like other global defined
 
5993
    # symbols, whereas GNU nm marks them as "W".
5632
5994
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5633
 
      _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'
 
5995
      _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'
5634
5996
    else
5635
5997
      _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'
5636
5998
    fi
5637
5999
    ;;
5638
6000
  pw32*)
5639
6001
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5640
 
  ;;
 
6002
    ;;
5641
6003
  cygwin* | mingw* | cegcc*)
5642
 
    _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'
5643
 
  ;;
 
6004
    case $cc_basename in
 
6005
    cl*) ;;
 
6006
    *)
 
6007
      _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'
 
6008
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
6009
      ;;
 
6010
    esac
 
6011
    ;;
5644
6012
  *)
5645
6013
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5646
 
  ;;
 
6014
    ;;
5647
6015
  esac
5648
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5649
6016
], [
5650
6017
  runpath_var=
5651
6018
  _LT_TAGVAR(allow_undefined_flag, $1)=
5708
6075
  esac
5709
6076
 
5710
6077
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
6078
 
 
6079
  # On some targets, GNU ld is compatible enough with the native linker
 
6080
  # that we're better off using the native interface for both.
 
6081
  lt_use_gnu_ld_interface=no
5711
6082
  if test "$with_gnu_ld" = yes; then
 
6083
    case $host_os in
 
6084
      aix*)
 
6085
        # The AIX port of GNU ld has always aspired to compatibility
 
6086
        # with the native linker.  However, as the warning in the GNU ld
 
6087
        # block says, versions before 2.19.5* couldn't really create working
 
6088
        # shared libraries, regardless of the interface used.
 
6089
        case `$LD -v 2>&1` in
 
6090
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
6091
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 
6092
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 
6093
          *)
 
6094
            lt_use_gnu_ld_interface=yes
 
6095
            ;;
 
6096
        esac
 
6097
        ;;
 
6098
      *)
 
6099
        lt_use_gnu_ld_interface=yes
 
6100
        ;;
 
6101
    esac
 
6102
  fi
 
6103
 
 
6104
  if test "$lt_use_gnu_ld_interface" = yes; then
5712
6105
    # If archive_cmds runs LD, not CC, wlarc should be empty
5713
6106
    wlarc='${wl}'
5714
6107
 
5726
6119
    fi
5727
6120
    supports_anon_versioning=no
5728
6121
    case `$LD -v 2>&1` in
 
6122
      *GNU\ gold*) supports_anon_versioning=yes ;;
5729
6123
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5730
6124
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5731
6125
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5741
6135
        _LT_TAGVAR(ld_shlibs, $1)=no
5742
6136
        cat <<_LT_EOF 1>&2
5743
6137
 
5744
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6138
*** Warning: the GNU linker, at least up to release 2.19, is reported
5745
6139
*** to be unable to reliably create shared libraries on AIX.
5746
6140
*** Therefore, libtool is disabling shared libraries support.  If you
5747
 
*** really care for shared libraries, you may want to modify your PATH
5748
 
*** so that a non-GNU linker is found, and then restart.
 
6141
*** really care for shared libraries, you may want to install binutils
 
6142
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
6143
*** You will then need to restart the configuration process.
5749
6144
 
5750
6145
_LT_EOF
5751
6146
      fi
5781
6176
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5782
6177
      # as there is no search path for DLLs.
5783
6178
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6179
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5784
6180
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5785
6181
      _LT_TAGVAR(always_export_symbols, $1)=no
5786
6182
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5787
 
      _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'
 
6183
      _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'
 
6184
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5788
6185
 
5789
6186
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5790
6187
        _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'
5802
6199
      fi
5803
6200
      ;;
5804
6201
 
 
6202
    haiku*)
 
6203
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6204
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6205
      ;;
 
6206
 
5805
6207
    interix[[3-9]]*)
5806
6208
      _LT_TAGVAR(hardcode_direct, $1)=no
5807
6209
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5817
6219
      _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'
5818
6220
      ;;
5819
6221
 
5820
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
6222
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5821
6223
      tmp_diet=no
5822
6224
      if test "$host_os" = linux-dietlibc; then
5823
6225
        case $cc_basename in
5827
6229
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5828
6230
         && test "$tmp_diet" = no
5829
6231
      then
5830
 
        tmp_addflag=
 
6232
        tmp_addflag=' $pic_flag'
5831
6233
        tmp_sharedflag='-shared'
5832
6234
        case $cc_basename,$host_cpu in
5833
6235
        pgcc*)                          # Portland Group C compiler
5834
 
          _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'
 
6236
          _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'
5835
6237
          tmp_addflag=' $pic_flag'
5836
6238
          ;;
5837
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5838
 
          _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'
 
6239
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
6240
                                        # Portland Group f77 and f90 compilers
 
6241
          _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'
5839
6242
          tmp_addflag=' $pic_flag -Mnomain' ;;
5840
6243
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5841
6244
          tmp_addflag=' -i_dynamic' ;;
5846
6249
        lf95*)                          # Lahey Fortran 8.1
5847
6250
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5848
6251
          tmp_sharedflag='--shared' ;;
5849
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
6252
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5850
6253
          tmp_sharedflag='-qmkshrobj'
5851
6254
          tmp_addflag= ;;
 
6255
        nvcc*)  # Cuda Compiler Driver 2.2
 
6256
          _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'
 
6257
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6258
          ;;
5852
6259
        esac
5853
6260
        case `$CC -V 2>&1 | sed 5q` in
5854
6261
        *Sun\ C*)                       # Sun C 5.9
5855
 
          _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'
 
6262
          _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'
5856
6263
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5857
6264
          tmp_sharedflag='-G' ;;
5858
6265
        *Sun\ F*)                       # Sun Fortran 8.3
5868
6275
        fi
5869
6276
 
5870
6277
        case $cc_basename in
5871
 
        xlf*)
 
6278
        xlf* | bgf* | bgxlf* | mpixlf*)
5872
6279
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5873
6280
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5874
6281
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5875
6282
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5876
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
6283
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5877
6284
          if test "x$supports_anon_versioning" = xyes; then
5878
6285
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5879
6286
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5880
6287
              echo "local: *; };" >> $output_objdir/$libname.ver~
5881
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
6288
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5882
6289
          fi
5883
6290
          ;;
5884
6291
        esac
5892
6299
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5893
6300
        wlarc=
5894
6301
      else
5895
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5896
 
        _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'
 
6302
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6303
        _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'
5897
6304
      fi
5898
6305
      ;;
5899
6306
 
5911
6318
 
5912
6319
_LT_EOF
5913
6320
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5914
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5915
 
        _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'
 
6321
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6322
        _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'
5916
6323
      else
5917
6324
        _LT_TAGVAR(ld_shlibs, $1)=no
5918
6325
      fi
5958
6365
 
5959
6366
    *)
5960
6367
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5961
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5962
 
        _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'
 
6368
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6369
        _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'
5963
6370
      else
5964
6371
        _LT_TAGVAR(ld_shlibs, $1)=no
5965
6372
      fi
5999
6406
      else
6000
6407
        # If we're using GNU nm, then we don't want the "-C" option.
6001
6408
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6409
        # Also, AIX nm treats weak defined symbols like other global
 
6410
        # defined symbols, whereas GNU nm marks them as "W".
6002
6411
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6003
 
          _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'
 
6412
          _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'
6004
6413
        else
6005
6414
          _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'
6006
6415
        fi
6087
6496
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6088
6497
        # Determine the default libpath from the value encoded in an
6089
6498
        # empty executable.
6090
 
        _LT_SYS_MODULE_PATH_AIX
 
6499
        _LT_SYS_MODULE_PATH_AIX([$1])
6091
6500
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6092
 
        _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"
 
6501
        _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"
6093
6502
      else
6094
6503
        if test "$host_cpu" = ia64; then
6095
6504
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6098
6507
        else
6099
6508
         # Determine the default libpath from the value encoded in an
6100
6509
         # empty executable.
6101
 
         _LT_SYS_MODULE_PATH_AIX
 
6510
         _LT_SYS_MODULE_PATH_AIX([$1])
6102
6511
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6103
6512
          # Warning - without using the other run time loading flags,
6104
6513
          # -berok will link without error, but may produce a broken library.
6105
6514
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6106
6515
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6107
 
          # Exported symbols can be pulled into shared objects from archives
6108
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6516
          if test "$with_gnu_ld" = yes; then
 
6517
            # We only use this code for GNU lds that support --whole-archive.
 
6518
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6519
          else
 
6520
            # Exported symbols can be pulled into shared objects from archives
 
6521
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6522
          fi
6109
6523
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6110
6524
          # This is similar to how AIX traditionally builds its shared libraries.
6111
6525
          _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'
6137
6551
      # Microsoft Visual C++.
6138
6552
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6139
6553
      # no search path for DLLs.
6140
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6141
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6142
 
      # Tell ltmain to make .lib files, not .a files.
6143
 
      libext=lib
6144
 
      # Tell ltmain to make .dll files, not .so files.
6145
 
      shrext_cmds=".dll"
6146
 
      # FIXME: Setting linknames here is a bad hack.
6147
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6148
 
      # The linker will automatically build a .lib file if we build a DLL.
6149
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6150
 
      # FIXME: Should let the user specify the lib program.
6151
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6152
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6153
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6554
      case $cc_basename in
 
6555
      cl*)
 
6556
        # Native MSVC
 
6557
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6558
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6559
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6560
        _LT_TAGVAR(file_list_spec, $1)='@'
 
6561
        # Tell ltmain to make .lib files, not .a files.
 
6562
        libext=lib
 
6563
        # Tell ltmain to make .dll files, not .so files.
 
6564
        shrext_cmds=".dll"
 
6565
        # FIXME: Setting linknames here is a bad hack.
 
6566
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6567
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6568
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6569
          else
 
6570
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6571
          fi~
 
6572
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6573
          linknames='
 
6574
        # The linker will not automatically build a static lib if we build a DLL.
 
6575
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6576
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6577
        _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'
 
6578
        # Don't use ranlib
 
6579
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6580
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6581
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6582
          case $lt_outputfile in
 
6583
            *.exe|*.EXE) ;;
 
6584
            *)
 
6585
              lt_outputfile="$lt_outputfile.exe"
 
6586
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6587
              ;;
 
6588
          esac~
 
6589
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6590
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6591
            $RM "$lt_outputfile.manifest";
 
6592
          fi'
 
6593
        ;;
 
6594
      *)
 
6595
        # Assume MSVC wrapper
 
6596
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6597
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6598
        # Tell ltmain to make .lib files, not .a files.
 
6599
        libext=lib
 
6600
        # Tell ltmain to make .dll files, not .so files.
 
6601
        shrext_cmds=".dll"
 
6602
        # FIXME: Setting linknames here is a bad hack.
 
6603
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
6604
        # The linker will automatically build a .lib file if we build a DLL.
 
6605
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6606
        # FIXME: Should let the user specify the lib program.
 
6607
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6608
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6609
        ;;
 
6610
      esac
6154
6611
      ;;
6155
6612
 
6156
6613
    darwin* | rhapsody*)
6188
6645
 
6189
6646
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6190
6647
    freebsd* | dragonfly*)
6191
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6648
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6192
6649
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6193
6650
      _LT_TAGVAR(hardcode_direct, $1)=yes
6194
6651
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6196
6653
 
6197
6654
    hpux9*)
6198
6655
      if test "$GCC" = yes; then
6199
 
        _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'
 
6656
        _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'
6200
6657
      else
6201
6658
        _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'
6202
6659
      fi
6211
6668
      ;;
6212
6669
 
6213
6670
    hpux10*)
6214
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6215
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6671
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6672
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6216
6673
      else
6217
6674
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6218
6675
      fi
6230
6687
      ;;
6231
6688
 
6232
6689
    hpux11*)
6233
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6690
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6234
6691
        case $host_cpu in
6235
6692
        hppa*64*)
6236
6693
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6237
6694
          ;;
6238
6695
        ia64*)
6239
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6696
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6240
6697
          ;;
6241
6698
        *)
6242
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6699
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6243
6700
          ;;
6244
6701
        esac
6245
6702
      else
6251
6708
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6252
6709
          ;;
6253
6710
        *)
6254
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6711
        m4_if($1, [], [
 
6712
          # Older versions of the 11.00 compiler do not understand -b yet
 
6713
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
6714
          _LT_LINKER_OPTION([if $CC understands -b],
 
6715
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 
6716
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
6717
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 
6718
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6255
6719
          ;;
6256
6720
        esac
6257
6721
      fi
6279
6743
 
6280
6744
    irix5* | irix6* | nonstopux*)
6281
6745
      if test "$GCC" = yes; then
6282
 
        _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'
 
6746
        _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'
6283
6747
        # Try to use the -exported_symbol ld option, if it does not
6284
6748
        # work, assume that -exports_file does not work either and
6285
6749
        # implicitly export all symbols.
6286
 
        save_LDFLAGS="$LDFLAGS"
6287
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6288
 
        AC_LINK_IFELSE(int foo(void) {},
6289
 
          _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'
6290
 
        )
6291
 
        LDFLAGS="$save_LDFLAGS"
 
6750
        # This should be the same for all languages, so no per-tag cache variable.
 
6751
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
6752
          [lt_cv_irix_exported_symbol],
 
6753
          [save_LDFLAGS="$LDFLAGS"
 
6754
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6755
           AC_LINK_IFELSE(
 
6756
             [AC_LANG_SOURCE(
 
6757
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
6758
                              [C++], [[int foo (void) { return 0; }]],
 
6759
                              [Fortran 77], [[
 
6760
      subroutine foo
 
6761
      end]],
 
6762
                              [Fortran], [[
 
6763
      subroutine foo
 
6764
      end]])])],
 
6765
              [lt_cv_irix_exported_symbol=yes],
 
6766
              [lt_cv_irix_exported_symbol=no])
 
6767
           LDFLAGS="$save_LDFLAGS"])
 
6768
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6769
          _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'
 
6770
        fi
6292
6771
      else
6293
 
        _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'
6294
 
        _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'
 
6772
        _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'
 
6773
        _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'
6295
6774
      fi
6296
6775
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6297
6776
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6353
6832
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6354
6833
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6355
6834
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6356
 
      _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'
 
6835
      _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'
6357
6836
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6358
6837
      ;;
6359
6838
 
6360
6839
    osf3*)
6361
6840
      if test "$GCC" = yes; then
6362
6841
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6363
 
        _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'
 
6842
        _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'
6364
6843
      else
6365
6844
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6366
 
        _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'
 
6845
        _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'
6367
6846
      fi
6368
6847
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6369
6848
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6373
6852
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6374
6853
      if test "$GCC" = yes; then
6375
6854
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6376
 
        _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'
 
6855
        _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'
6377
6856
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6378
6857
      else
6379
6858
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6380
 
        _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'
 
6859
        _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'
6381
6860
        _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~
6382
 
        $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'
 
6861
        $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'
6383
6862
 
6384
6863
        # Both c and cxx compiler support -rpath directly
6385
6864
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6392
6871
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6393
6872
      if test "$GCC" = yes; then
6394
6873
        wlarc='${wl}'
6395
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6874
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6396
6875
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6397
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6876
          $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'
6398
6877
      else
6399
6878
        case `$CC -V 2>&1` in
6400
6879
        *"Compilers 5.0"*)
6570
7049
      # Test whether the compiler implicitly links with -lc since on some
6571
7050
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6572
7051
      # to ld, don't add -lc before -lgcc.
6573
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6574
 
      $RM conftest*
6575
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7052
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 
7053
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
7054
        [$RM conftest*
 
7055
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6576
7056
 
6577
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6578
 
        soname=conftest
6579
 
        lib=conftest
6580
 
        libobjs=conftest.$ac_objext
6581
 
        deplibs=
6582
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6583
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6584
 
        compiler_flags=-v
6585
 
        linker_flags=-v
6586
 
        verstring=
6587
 
        output_objdir=.
6588
 
        libname=conftest
6589
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6590
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
6591
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6592
 
        then
6593
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6594
 
        else
6595
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6596
 
        fi
6597
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6598
 
      else
6599
 
        cat conftest.err 1>&5
6600
 
      fi
6601
 
      $RM conftest*
6602
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
7057
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
7058
          soname=conftest
 
7059
          lib=conftest
 
7060
          libobjs=conftest.$ac_objext
 
7061
          deplibs=
 
7062
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
7063
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
7064
          compiler_flags=-v
 
7065
          linker_flags=-v
 
7066
          verstring=
 
7067
          output_objdir=.
 
7068
          libname=conftest
 
7069
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
7070
          _LT_TAGVAR(allow_undefined_flag, $1)=
 
7071
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
7072
          then
 
7073
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7074
          else
 
7075
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7076
          fi
 
7077
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7078
        else
 
7079
          cat conftest.err 1>&5
 
7080
        fi
 
7081
        $RM conftest*
 
7082
        ])
 
7083
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6603
7084
      ;;
6604
7085
    esac
6605
7086
  fi
6664
7145
    to runtime path list])
6665
7146
_LT_TAGDECL([], [link_all_deplibs], [0],
6666
7147
    [Whether libtool must link a program against all its dependency libraries])
6667
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6668
 
    [Fix the shell variable $srcfile for the compiler])
6669
7148
_LT_TAGDECL([], [always_export_symbols], [0],
6670
7149
    [Set to "yes" if exported symbols are required])
6671
7150
_LT_TAGDECL([], [export_symbols_cmds], [2],
6676
7155
    [Symbols that must always be exported])
6677
7156
_LT_TAGDECL([], [prelink_cmds], [2],
6678
7157
    [Commands necessary for linking programs (against libraries) with templates])
 
7158
_LT_TAGDECL([], [postlink_cmds], [2],
 
7159
    [Commands necessary for finishing linking programs])
6679
7160
_LT_TAGDECL([], [file_list_spec], [1],
6680
7161
    [Specify filename containing input files])
6681
7162
dnl FIXME: Not yet implemented
6765
7246
])# _LT_LANG_C_CONFIG
6766
7247
 
6767
7248
 
6768
 
# _LT_PROG_CXX
6769
 
# ------------
6770
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6771
 
# compiler, we have our own version here.
6772
 
m4_defun([_LT_PROG_CXX],
6773
 
[
6774
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6775
 
AC_PROG_CXX
 
7249
# _LT_LANG_CXX_CONFIG([TAG])
 
7250
# --------------------------
 
7251
# Ensure that the configuration variables for a C++ compiler are suitably
 
7252
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
7253
# the compiler configuration to `libtool'.
 
7254
m4_defun([_LT_LANG_CXX_CONFIG],
 
7255
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7256
m4_require([_LT_DECL_EGREP])dnl
 
7257
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6776
7258
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6777
7259
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6778
7260
    (test "X$CXX" != "Xg++"))) ; then
6780
7262
else
6781
7263
  _lt_caught_CXX_error=yes
6782
7264
fi
6783
 
popdef([AC_MSG_ERROR])
6784
 
])# _LT_PROG_CXX
6785
 
 
6786
 
dnl aclocal-1.4 backwards compatibility:
6787
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
6788
 
 
6789
 
 
6790
 
# _LT_LANG_CXX_CONFIG([TAG])
6791
 
# --------------------------
6792
 
# Ensure that the configuration variables for a C++ compiler are suitably
6793
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6794
 
# the compiler configuration to `libtool'.
6795
 
m4_defun([_LT_LANG_CXX_CONFIG],
6796
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6797
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6798
 
m4_require([_LT_DECL_EGREP])dnl
6799
7265
 
6800
7266
AC_LANG_PUSH(C++)
6801
7267
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6817
7283
_LT_TAGVAR(module_expsym_cmds, $1)=
6818
7284
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6819
7285
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7286
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
7287
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6820
7288
_LT_TAGVAR(no_undefined_flag, $1)=
6821
7289
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6822
7290
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6848
7316
 
6849
7317
  # Allow CC to be a program name with arguments.
6850
7318
  lt_save_CC=$CC
 
7319
  lt_save_CFLAGS=$CFLAGS
6851
7320
  lt_save_LD=$LD
6852
7321
  lt_save_GCC=$GCC
6853
7322
  GCC=$GXX
6865
7334
  fi
6866
7335
  test -z "${LDCXX+set}" || LD=$LDCXX
6867
7336
  CC=${CXX-"c++"}
 
7337
  CFLAGS=$CXXFLAGS
6868
7338
  compiler=$CC
6869
7339
  _LT_TAGVAR(compiler, $1)=$CC
6870
7340
  _LT_CC_BASENAME([$compiler])
6886
7356
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6887
7357
      # archiving commands below assume that GNU ld is being used.
6888
7358
      if test "$with_gnu_ld" = yes; then
6889
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6890
 
        _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'
 
7359
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7360
        _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'
6891
7361
 
6892
7362
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6893
7363
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6919
7389
      # Commands to make compiler produce verbose output that lists
6920
7390
      # what "hidden" libraries, object files and flags are used when
6921
7391
      # linking a shared library.
6922
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7392
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6923
7393
 
6924
7394
    else
6925
7395
      GXX=no
7028
7498
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7029
7499
          # Determine the default libpath from the value encoded in an empty
7030
7500
          # executable.
7031
 
          _LT_SYS_MODULE_PATH_AIX
 
7501
          _LT_SYS_MODULE_PATH_AIX([$1])
7032
7502
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7033
7503
 
7034
 
          _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"
 
7504
          _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"
7035
7505
        else
7036
7506
          if test "$host_cpu" = ia64; then
7037
7507
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7040
7510
          else
7041
7511
            # Determine the default libpath from the value encoded in an
7042
7512
            # empty executable.
7043
 
            _LT_SYS_MODULE_PATH_AIX
 
7513
            _LT_SYS_MODULE_PATH_AIX([$1])
7044
7514
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7045
7515
            # Warning - without using the other run time loading flags,
7046
7516
            # -berok will link without error, but may produce a broken library.
7047
7517
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7048
7518
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7049
 
            # Exported symbols can be pulled into shared objects from archives
7050
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7519
            if test "$with_gnu_ld" = yes; then
 
7520
              # We only use this code for GNU lds that support --whole-archive.
 
7521
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7522
            else
 
7523
              # Exported symbols can be pulled into shared objects from archives
 
7524
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7525
            fi
7051
7526
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7052
7527
            # This is similar to how AIX traditionally builds its shared
7053
7528
            # libraries.
7077
7552
        ;;
7078
7553
 
7079
7554
      cygwin* | mingw* | pw32* | cegcc*)
7080
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7081
 
        # as there is no search path for DLLs.
7082
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7083
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7084
 
        _LT_TAGVAR(always_export_symbols, $1)=no
7085
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7555
        case $GXX,$cc_basename in
 
7556
        ,cl* | no,cl*)
 
7557
          # Native MSVC
 
7558
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7559
          # no search path for DLLs.
 
7560
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7561
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7562
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
7563
          _LT_TAGVAR(file_list_spec, $1)='@'
 
7564
          # Tell ltmain to make .lib files, not .a files.
 
7565
          libext=lib
 
7566
          # Tell ltmain to make .dll files, not .so files.
 
7567
          shrext_cmds=".dll"
 
7568
          # FIXME: Setting linknames here is a bad hack.
 
7569
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
7570
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7571
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
7572
            else
 
7573
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
7574
            fi~
 
7575
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
7576
            linknames='
 
7577
          # The linker will not automatically build a static lib if we build a DLL.
 
7578
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
7579
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7580
          # Don't use ranlib
 
7581
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
7582
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
7583
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
7584
            case $lt_outputfile in
 
7585
              *.exe|*.EXE) ;;
 
7586
              *)
 
7587
                lt_outputfile="$lt_outputfile.exe"
 
7588
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
7589
                ;;
 
7590
            esac~
 
7591
            func_to_tool_file "$lt_outputfile"~
 
7592
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
7593
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
7594
              $RM "$lt_outputfile.manifest";
 
7595
            fi'
 
7596
          ;;
 
7597
        *)
 
7598
          # g++
 
7599
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7600
          # as there is no search path for DLLs.
 
7601
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7602
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
7603
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7604
          _LT_TAGVAR(always_export_symbols, $1)=no
 
7605
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7086
7606
 
7087
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7088
 
          _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'
7089
 
          # If the export-symbols file already is a .def file (1st line
7090
 
          # is EXPORTS), use it as is; otherwise, prepend...
7091
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7092
 
            cp $export_symbols $output_objdir/$soname.def;
7093
 
          else
7094
 
            echo EXPORTS > $output_objdir/$soname.def;
7095
 
            cat $export_symbols >> $output_objdir/$soname.def;
7096
 
          fi~
7097
 
          $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'
7098
 
        else
7099
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7100
 
        fi
7101
 
        ;;
 
7607
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7608
            _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'
 
7609
            # If the export-symbols file already is a .def file (1st line
 
7610
            # is EXPORTS), use it as is; otherwise, prepend...
 
7611
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7612
              cp $export_symbols $output_objdir/$soname.def;
 
7613
            else
 
7614
              echo EXPORTS > $output_objdir/$soname.def;
 
7615
              cat $export_symbols >> $output_objdir/$soname.def;
 
7616
            fi~
 
7617
            $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'
 
7618
          else
 
7619
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7620
          fi
 
7621
          ;;
 
7622
        esac
 
7623
        ;;
7102
7624
      darwin* | rhapsody*)
7103
7625
        _LT_DARWIN_LINKER_FEATURES($1)
7104
7626
        ;;
7140
7662
      gnu*)
7141
7663
        ;;
7142
7664
 
 
7665
      haiku*)
 
7666
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7667
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7668
        ;;
 
7669
 
7143
7670
      hpux9*)
7144
7671
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7145
7672
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7164
7691
            # explicitly linking system object files so we need to strip them
7165
7692
            # from the output so that they don't get included in the library
7166
7693
            # dependencies.
7167
 
            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'
 
7694
            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"'
7168
7695
            ;;
7169
7696
          *)
7170
7697
            if test "$GXX" = yes; then
7171
 
              _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'
 
7698
              _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'
7172
7699
            else
7173
7700
              # FIXME: insert proper C++ library support
7174
7701
              _LT_TAGVAR(ld_shlibs, $1)=no
7229
7756
            # explicitly linking system object files so we need to strip them
7230
7757
            # from the output so that they don't get included in the library
7231
7758
            # dependencies.
7232
 
            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'
 
7759
            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"'
7233
7760
            ;;
7234
7761
          *)
7235
7762
            if test "$GXX" = yes; then
7239
7766
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7240
7767
                    ;;
7241
7768
                  ia64*)
7242
 
                    _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'
 
7769
                    _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'
7243
7770
                    ;;
7244
7771
                  *)
7245
 
                    _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'
 
7772
                    _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'
7246
7773
                    ;;
7247
7774
                esac
7248
7775
              fi
7272
7799
        case $cc_basename in
7273
7800
          CC*)
7274
7801
            # SGI C++
7275
 
            _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'
 
7802
            _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'
7276
7803
 
7277
7804
            # Archives containing C++ object files must be created using
7278
7805
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7283
7810
          *)
7284
7811
            if test "$GXX" = yes; then
7285
7812
              if test "$with_gnu_ld" = no; then
7286
 
                _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'
 
7813
                _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'
7287
7814
              else
7288
 
                _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'
 
7815
                _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'
7289
7816
              fi
7290
7817
            fi
7291
7818
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7296
7823
        _LT_TAGVAR(inherit_rpath, $1)=yes
7297
7824
        ;;
7298
7825
 
7299
 
      linux* | k*bsd*-gnu)
 
7826
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
7300
7827
        case $cc_basename in
7301
7828
          KCC*)
7302
7829
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7314
7841
            # explicitly linking system object files so we need to strip them
7315
7842
            # from the output so that they don't get included in the library
7316
7843
            # dependencies.
7317
 
            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'
 
7844
            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"'
7318
7845
 
7319
7846
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7320
7847
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7351
7878
          pgCC* | pgcpp*)
7352
7879
            # Portland Group C++ compiler
7353
7880
            case `$CC -V` in
7354
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7881
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7355
7882
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7356
7883
                rm -rf $tpldir~
7357
7884
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7358
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7885
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7359
7886
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7360
7887
                rm -rf $tpldir~
7361
7888
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7362
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7889
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7363
7890
                $RANLIB $oldlib'
7364
7891
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7365
7892
                rm -rf $tpldir~
7366
7893
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7367
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7894
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7368
7895
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7369
7896
                rm -rf $tpldir~
7370
7897
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7371
 
                $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'
 
7898
                $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'
7372
7899
              ;;
7373
 
            *) # Version 6 will use weak symbols
 
7900
            *) # Version 6 and above use weak symbols
7374
7901
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7375
7902
              _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'
7376
7903
              ;;
7378
7905
 
7379
7906
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7380
7907
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7381
 
            _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'
 
7908
            _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'
7382
7909
            ;;
7383
7910
          cxx*)
7384
7911
            # Compaq C++
7397
7924
            # explicitly linking system object files so we need to strip them
7398
7925
            # from the output so that they don't get included in the library
7399
7926
            # dependencies.
7400
 
            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'
 
7927
            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'
7401
7928
            ;;
7402
 
          xl*)
 
7929
          xl* | mpixl* | bgxl*)
7403
7930
            # IBM XL 8.0 on PPC, with GNU ld
7404
7931
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7405
7932
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7419
7946
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7420
7947
              _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'
7421
7948
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7422
 
              _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'
 
7949
              _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'
7423
7950
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7424
7951
 
7425
7952
              # Not sure whether something based on
7426
7953
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7427
7954
              # would be better.
7428
 
              output_verbose_link_cmd='echo'
 
7955
              output_verbose_link_cmd='func_echo_all'
7429
7956
 
7430
7957
              # Archives containing C++ object files must be created using
7431
7958
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7494
8021
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7495
8022
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7496
8023
          fi
7497
 
          output_verbose_link_cmd=echo
 
8024
          output_verbose_link_cmd=func_echo_all
7498
8025
        else
7499
8026
          _LT_TAGVAR(ld_shlibs, $1)=no
7500
8027
        fi
7529
8056
            case $host in
7530
8057
              osf3*)
7531
8058
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7532
 
                _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'
 
8059
                _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'
7533
8060
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7534
8061
                ;;
7535
8062
              *)
7536
8063
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7537
 
                _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'
 
8064
                _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'
7538
8065
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7539
8066
                  echo "-hidden">> $lib.exp~
7540
 
                  $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~
 
8067
                  $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~
7541
8068
                  $RM $lib.exp'
7542
8069
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7543
8070
                ;;
7553
8080
            # explicitly linking system object files so we need to strip them
7554
8081
            # from the output so that they don't get included in the library
7555
8082
            # dependencies.
7556
 
            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'
 
8083
            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"'
7557
8084
            ;;
7558
8085
          *)
7559
8086
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7560
8087
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7561
8088
              case $host in
7562
8089
                osf3*)
7563
 
                  _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'
 
8090
                  _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'
7564
8091
                  ;;
7565
8092
                *)
7566
 
                  _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'
 
8093
                  _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'
7567
8094
                  ;;
7568
8095
              esac
7569
8096
 
7573
8100
              # Commands to make compiler produce verbose output that lists
7574
8101
              # what "hidden" libraries, object files and flags are used when
7575
8102
              # linking a shared library.
7576
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8103
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7577
8104
 
7578
8105
            else
7579
8106
              # FIXME: insert proper C++ library support
7609
8136
 
7610
8137
      solaris*)
7611
8138
        case $cc_basename in
7612
 
          CC*)
 
8139
          CC* | sunCC*)
7613
8140
            # Sun C++ 4.2, 5.x and Centerline C++
7614
8141
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7615
8142
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7630
8157
            esac
7631
8158
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7632
8159
 
7633
 
            output_verbose_link_cmd='echo'
 
8160
            output_verbose_link_cmd='func_echo_all'
7634
8161
 
7635
8162
            # Archives containing C++ object files must be created using
7636
8163
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7650
8177
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7651
8178
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7652
8179
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7653
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
8180
                _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'
7654
8181
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7655
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
8182
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7656
8183
 
7657
8184
                # Commands to make compiler produce verbose output that lists
7658
8185
                # what "hidden" libraries, object files and flags are used when
7659
8186
                # linking a shared library.
7660
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8187
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7661
8188
              else
7662
8189
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7663
8190
                # platform.
7668
8195
                # Commands to make compiler produce verbose output that lists
7669
8196
                # what "hidden" libraries, object files and flags are used when
7670
8197
                # linking a shared library.
7671
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
8198
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7672
8199
              fi
7673
8200
 
7674
8201
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7722
8249
          CC*)
7723
8250
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7724
8251
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8252
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 
8253
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
8254
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 
8255
              '"$_LT_TAGVAR(reload_cmds, $1)"
7725
8256
            ;;
7726
8257
          *)
7727
8258
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7777
8308
  fi # test -n "$compiler"
7778
8309
 
7779
8310
  CC=$lt_save_CC
 
8311
  CFLAGS=$lt_save_CFLAGS
7780
8312
  LDCXX=$LD
7781
8313
  LD=$lt_save_LD
7782
8314
  GCC=$lt_save_GCC
7791
8323
])# _LT_LANG_CXX_CONFIG
7792
8324
 
7793
8325
 
 
8326
# _LT_FUNC_STRIPNAME_CNF
 
8327
# ----------------------
 
8328
# func_stripname_cnf prefix suffix name
 
8329
# strip PREFIX and SUFFIX off of NAME.
 
8330
# PREFIX and SUFFIX must not contain globbing or regex special
 
8331
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8332
# dot (in which case that matches only a dot).
 
8333
#
 
8334
# This function is identical to the (non-XSI) version of func_stripname,
 
8335
# except this one can be used by m4 code that may be executed by configure,
 
8336
# rather than the libtool script.
 
8337
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
8338
AC_REQUIRE([_LT_DECL_SED])
 
8339
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
8340
func_stripname_cnf ()
 
8341
{
 
8342
  case ${2} in
 
8343
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8344
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8345
  esac
 
8346
} # func_stripname_cnf
 
8347
])# _LT_FUNC_STRIPNAME_CNF
 
8348
 
7794
8349
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7795
8350
# ---------------------------------
7796
8351
# Figure out "hidden" library dependencies from verbose
7799
8354
# objects, libraries and library flags.
7800
8355
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7801
8356
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
8357
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7802
8358
# Dependencies to place before and after the object being linked:
7803
8359
_LT_TAGVAR(predep_objects, $1)=
7804
8360
_LT_TAGVAR(postdep_objects, $1)=
7849
8405
};
7850
8406
_LT_EOF
7851
8407
])
 
8408
 
 
8409
_lt_libdeps_save_CFLAGS=$CFLAGS
 
8410
case "$CC $CFLAGS " in #(
 
8411
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
8412
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
8413
esac
 
8414
 
7852
8415
dnl Parse the compiler output and extract the necessary
7853
8416
dnl objects, libraries and library flags.
7854
8417
if AC_TRY_EVAL(ac_compile); then
7860
8423
  pre_test_object_deps_done=no
7861
8424
 
7862
8425
  for p in `eval "$output_verbose_link_cmd"`; do
7863
 
    case $p in
 
8426
    case ${prev}${p} in
7864
8427
 
7865
8428
    -L* | -R* | -l*)
7866
8429
       # Some compilers place space between "-{L,R}" and the path.
7869
8432
          test $p = "-R"; then
7870
8433
         prev=$p
7871
8434
         continue
7872
 
       else
7873
 
         prev=
7874
8435
       fi
7875
8436
 
 
8437
       # Expand the sysroot to ease extracting the directories later.
 
8438
       if test -z "$prev"; then
 
8439
         case $p in
 
8440
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
8441
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
8442
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
8443
         esac
 
8444
       fi
 
8445
       case $p in
 
8446
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
8447
       esac
7876
8448
       if test "$pre_test_object_deps_done" = no; then
7877
 
         case $p in
7878
 
         -L* | -R*)
 
8449
         case ${prev} in
 
8450
         -L | -R)
7879
8451
           # Internal compiler library paths should come after those
7880
8452
           # provided the user.  The postdeps already come after the
7881
8453
           # user supplied libs so there is no need to process them.
7895
8467
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7896
8468
         fi
7897
8469
       fi
 
8470
       prev=
7898
8471
       ;;
7899
8472
 
 
8473
    *.lto.$objext) ;; # Ignore GCC LTO objects
7900
8474
    *.$objext)
7901
8475
       # This assumes that the test object file only shows up
7902
8476
       # once in the compiler output.
7932
8506
fi
7933
8507
 
7934
8508
$RM -f confest.$objext
 
8509
CFLAGS=$_lt_libdeps_save_CFLAGS
7935
8510
 
7936
8511
# PORTME: override above test on systems where it is broken
7937
8512
m4_if([$1], [CXX],
7968
8543
 
7969
8544
solaris*)
7970
8545
  case $cc_basename in
7971
 
  CC*)
 
8546
  CC* | sunCC*)
7972
8547
    # The more standards-conforming stlport4 library is
7973
8548
    # incompatible with the Cstd library. Avoid specifying
7974
8549
    # it if it's in CXXFLAGS. Ignore libCrun as
8012
8587
])# _LT_SYS_HIDDEN_LIBDEPS
8013
8588
 
8014
8589
 
8015
 
# _LT_PROG_F77
8016
 
# ------------
8017
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
8018
 
# if there is no fortran compiler, we have our own version here.
8019
 
m4_defun([_LT_PROG_F77],
8020
 
[
8021
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
8022
 
AC_PROG_F77
8023
 
if test -z "$F77" || test "X$F77" = "Xno"; then
8024
 
  _lt_disable_F77=yes
8025
 
fi
8026
 
popdef([AC_MSG_ERROR])
8027
 
])# _LT_PROG_F77
8028
 
 
8029
 
dnl aclocal-1.4 backwards compatibility:
8030
 
dnl AC_DEFUN([_LT_PROG_F77], [])
8031
 
 
8032
 
 
8033
8590
# _LT_LANG_F77_CONFIG([TAG])
8034
8591
# --------------------------
8035
8592
# Ensure that the configuration variables for a Fortran 77 compiler are
8036
8593
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8037
8594
# to write the compiler configuration to `libtool'.
8038
8595
m4_defun([_LT_LANG_F77_CONFIG],
8039
 
[AC_REQUIRE([_LT_PROG_F77])dnl
8040
 
AC_LANG_PUSH(Fortran 77)
 
8596
[AC_LANG_PUSH(Fortran 77)
 
8597
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8598
  _lt_disable_F77=yes
 
8599
fi
8041
8600
 
8042
8601
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8043
8602
_LT_TAGVAR(allow_undefined_flag, $1)=
8056
8615
_LT_TAGVAR(module_expsym_cmds, $1)=
8057
8616
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8058
8617
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8618
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8619
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8059
8620
_LT_TAGVAR(no_undefined_flag, $1)=
8060
8621
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8061
8622
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8095
8656
  # Allow CC to be a program name with arguments.
8096
8657
  lt_save_CC="$CC"
8097
8658
  lt_save_GCC=$GCC
 
8659
  lt_save_CFLAGS=$CFLAGS
8098
8660
  CC=${F77-"f77"}
 
8661
  CFLAGS=$FFLAGS
8099
8662
  compiler=$CC
8100
8663
  _LT_TAGVAR(compiler, $1)=$CC
8101
8664
  _LT_CC_BASENAME([$compiler])
8149
8712
 
8150
8713
  GCC=$lt_save_GCC
8151
8714
  CC="$lt_save_CC"
 
8715
  CFLAGS="$lt_save_CFLAGS"
8152
8716
fi # test "$_lt_disable_F77" != yes
8153
8717
 
8154
8718
AC_LANG_POP
8155
8719
])# _LT_LANG_F77_CONFIG
8156
8720
 
8157
8721
 
8158
 
# _LT_PROG_FC
8159
 
# -----------
8160
 
# Since AC_PROG_FC is broken, in that it returns the empty string
8161
 
# if there is no fortran compiler, we have our own version here.
8162
 
m4_defun([_LT_PROG_FC],
8163
 
[
8164
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
8165
 
AC_PROG_FC
8166
 
if test -z "$FC" || test "X$FC" = "Xno"; then
8167
 
  _lt_disable_FC=yes
8168
 
fi
8169
 
popdef([AC_MSG_ERROR])
8170
 
])# _LT_PROG_FC
8171
 
 
8172
 
dnl aclocal-1.4 backwards compatibility:
8173
 
dnl AC_DEFUN([_LT_PROG_FC], [])
8174
 
 
8175
 
 
8176
8722
# _LT_LANG_FC_CONFIG([TAG])
8177
8723
# -------------------------
8178
8724
# Ensure that the configuration variables for a Fortran compiler are
8179
8725
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8180
8726
# to write the compiler configuration to `libtool'.
8181
8727
m4_defun([_LT_LANG_FC_CONFIG],
8182
 
[AC_REQUIRE([_LT_PROG_FC])dnl
8183
 
AC_LANG_PUSH(Fortran)
 
8728
[AC_LANG_PUSH(Fortran)
 
8729
 
 
8730
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8731
  _lt_disable_FC=yes
 
8732
fi
8184
8733
 
8185
8734
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8186
8735
_LT_TAGVAR(allow_undefined_flag, $1)=
8199
8748
_LT_TAGVAR(module_expsym_cmds, $1)=
8200
8749
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8201
8750
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8751
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8752
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8202
8753
_LT_TAGVAR(no_undefined_flag, $1)=
8203
8754
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8204
8755
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8238
8789
  # Allow CC to be a program name with arguments.
8239
8790
  lt_save_CC="$CC"
8240
8791
  lt_save_GCC=$GCC
 
8792
  lt_save_CFLAGS=$CFLAGS
8241
8793
  CC=${FC-"f95"}
 
8794
  CFLAGS=$FCFLAGS
8242
8795
  compiler=$CC
8243
8796
  GCC=$ac_cv_fc_compiler_gnu
8244
8797
 
8294
8847
  fi # test -n "$compiler"
8295
8848
 
8296
8849
  GCC=$lt_save_GCC
8297
 
  CC="$lt_save_CC"
 
8850
  CC=$lt_save_CC
 
8851
  CFLAGS=$lt_save_CFLAGS
8298
8852
fi # test "$_lt_disable_FC" != yes
8299
8853
 
8300
8854
AC_LANG_POP
8331
8885
_LT_LINKER_BOILERPLATE
8332
8886
 
8333
8887
# Allow CC to be a program name with arguments.
8334
 
lt_save_CC="$CC"
 
8888
lt_save_CC=$CC
 
8889
lt_save_CFLAGS=$CFLAGS
8335
8890
lt_save_GCC=$GCC
8336
8891
GCC=yes
8337
8892
CC=${GCJ-"gcj"}
 
8893
CFLAGS=$GCJFLAGS
8338
8894
compiler=$CC
8339
8895
_LT_TAGVAR(compiler, $1)=$CC
8340
8896
_LT_TAGVAR(LD, $1)="$LD"
8344
8900
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8345
8901
 
8346
8902
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8903
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8904
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8347
8905
 
8348
8906
if test -n "$compiler"; then
8349
8907
  _LT_COMPILER_NO_RTTI($1)
8359
8917
AC_LANG_RESTORE
8360
8918
 
8361
8919
GCC=$lt_save_GCC
8362
 
CC="$lt_save_CC"
 
8920
CC=$lt_save_CC
 
8921
CFLAGS=$lt_save_CFLAGS
8363
8922
])# _LT_LANG_GCJ_CONFIG
8364
8923
 
8365
8924
 
8394
8953
 
8395
8954
# Allow CC to be a program name with arguments.
8396
8955
lt_save_CC="$CC"
 
8956
lt_save_CFLAGS=$CFLAGS
8397
8957
lt_save_GCC=$GCC
8398
8958
GCC=
8399
8959
CC=${RC-"windres"}
 
8960
CFLAGS=
8400
8961
compiler=$CC
8401
8962
_LT_TAGVAR(compiler, $1)=$CC
8402
8963
_LT_CC_BASENAME([$compiler])
8409
8970
 
8410
8971
GCC=$lt_save_GCC
8411
8972
AC_LANG_RESTORE
8412
 
CC="$lt_save_CC"
 
8973
CC=$lt_save_CC
 
8974
CFLAGS=$lt_save_CFLAGS
8413
8975
])# _LT_LANG_RC_CONFIG
8414
8976
 
8415
8977
 
8468
9030
AC_SUBST([OBJDUMP])
8469
9031
])
8470
9032
 
 
9033
# _LT_DECL_DLLTOOL
 
9034
# ----------------
 
9035
# Ensure DLLTOOL variable is set.
 
9036
m4_defun([_LT_DECL_DLLTOOL],
 
9037
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
9038
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
9039
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
9040
AC_SUBST([DLLTOOL])
 
9041
])
8471
9042
 
8472
9043
# _LT_DECL_SED
8473
9044
# ------------
8559
9130
# Try some XSI features
8560
9131
xsi_shell=no
8561
9132
( _lt_dummy="a/b/c"
8562
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8563
 
      = c,a/b,, \
 
9133
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
9134
      = c,a/b,b/c, \
8564
9135
    && eval 'test $(( 1 + 1 )) -eq 2 \
8565
9136
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8566
9137
  && xsi_shell=yes
8599
9170
])# _LT_CHECK_SHELL_FEATURES
8600
9171
 
8601
9172
 
8602
 
# _LT_PROG_XSI_SHELLFNS
8603
 
# ---------------------
8604
 
# Bourne and XSI compatible variants of some useful shell functions.
8605
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8606
 
[case $xsi_shell in
8607
 
  yes)
8608
 
    cat << \_LT_EOF >> "$cfgfile"
8609
 
 
8610
 
# func_dirname file append nondir_replacement
8611
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8612
 
# otherwise set result to NONDIR_REPLACEMENT.
8613
 
func_dirname ()
8614
 
{
8615
 
  case ${1} in
8616
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8617
 
    *  ) func_dirname_result="${3}" ;;
8618
 
  esac
8619
 
}
8620
 
 
8621
 
# func_basename file
8622
 
func_basename ()
8623
 
{
8624
 
  func_basename_result="${1##*/}"
8625
 
}
8626
 
 
8627
 
# func_dirname_and_basename file append nondir_replacement
8628
 
# perform func_basename and func_dirname in a single function
8629
 
# call:
8630
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8631
 
#             add APPEND to the result, otherwise set result
8632
 
#             to NONDIR_REPLACEMENT.
8633
 
#             value returned in "$func_dirname_result"
8634
 
#   basename: Compute filename of FILE.
8635
 
#             value retuned in "$func_basename_result"
8636
 
# Implementation must be kept synchronized with func_dirname
8637
 
# and func_basename. For efficiency, we do not delegate to
8638
 
# those functions but instead duplicate the functionality here.
8639
 
func_dirname_and_basename ()
8640
 
{
8641
 
  case ${1} in
8642
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8643
 
    *  ) func_dirname_result="${3}" ;;
8644
 
  esac
8645
 
  func_basename_result="${1##*/}"
8646
 
}
8647
 
 
8648
 
# func_stripname prefix suffix name
8649
 
# strip PREFIX and SUFFIX off of NAME.
8650
 
# PREFIX and SUFFIX must not contain globbing or regex special
8651
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8652
 
# dot (in which case that matches only a dot).
8653
 
func_stripname ()
8654
 
{
8655
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8656
 
  # positional parameters, so assign one to ordinary parameter first.
8657
 
  func_stripname_result=${3}
8658
 
  func_stripname_result=${func_stripname_result#"${1}"}
8659
 
  func_stripname_result=${func_stripname_result%"${2}"}
8660
 
}
8661
 
 
8662
 
# func_opt_split
8663
 
func_opt_split ()
8664
 
{
8665
 
  func_opt_split_opt=${1%%=*}
8666
 
  func_opt_split_arg=${1#*=}
8667
 
}
8668
 
 
8669
 
# func_lo2o object
8670
 
func_lo2o ()
8671
 
{
8672
 
  case ${1} in
8673
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8674
 
    *)    func_lo2o_result=${1} ;;
8675
 
  esac
8676
 
}
8677
 
 
8678
 
# func_xform libobj-or-source
8679
 
func_xform ()
8680
 
{
8681
 
  func_xform_result=${1%.*}.lo
8682
 
}
8683
 
 
8684
 
# func_arith arithmetic-term...
8685
 
func_arith ()
8686
 
{
8687
 
  func_arith_result=$(( $[*] ))
8688
 
}
8689
 
 
8690
 
# func_len string
8691
 
# STRING may not start with a hyphen.
8692
 
func_len ()
8693
 
{
8694
 
  func_len_result=${#1}
8695
 
}
8696
 
 
8697
 
_LT_EOF
8698
 
    ;;
8699
 
  *) # Bourne compatible functions.
8700
 
    cat << \_LT_EOF >> "$cfgfile"
8701
 
 
8702
 
# func_dirname file append nondir_replacement
8703
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8704
 
# otherwise set result to NONDIR_REPLACEMENT.
8705
 
func_dirname ()
8706
 
{
8707
 
  # Extract subdirectory from the argument.
8708
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8709
 
  if test "X$func_dirname_result" = "X${1}"; then
8710
 
    func_dirname_result="${3}"
8711
 
  else
8712
 
    func_dirname_result="$func_dirname_result${2}"
8713
 
  fi
8714
 
}
8715
 
 
8716
 
# func_basename file
8717
 
func_basename ()
8718
 
{
8719
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8720
 
}
8721
 
 
8722
 
dnl func_dirname_and_basename
8723
 
dnl A portable version of this function is already defined in general.m4sh
8724
 
dnl so there is no need for it here.
8725
 
 
8726
 
# func_stripname prefix suffix name
8727
 
# strip PREFIX and SUFFIX off of NAME.
8728
 
# PREFIX and SUFFIX must not contain globbing or regex special
8729
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8730
 
# dot (in which case that matches only a dot).
8731
 
# func_strip_suffix prefix name
8732
 
func_stripname ()
8733
 
{
8734
 
  case ${2} in
8735
 
    .*) func_stripname_result=`$ECHO "X${3}" \
8736
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8737
 
    *)  func_stripname_result=`$ECHO "X${3}" \
8738
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8739
 
  esac
8740
 
}
8741
 
 
8742
 
# sed scripts:
8743
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8744
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8745
 
 
8746
 
# func_opt_split
8747
 
func_opt_split ()
8748
 
{
8749
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8750
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8751
 
}
8752
 
 
8753
 
# func_lo2o object
8754
 
func_lo2o ()
8755
 
{
8756
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8757
 
}
8758
 
 
8759
 
# func_xform libobj-or-source
8760
 
func_xform ()
8761
 
{
8762
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8763
 
}
8764
 
 
8765
 
# func_arith arithmetic-term...
8766
 
func_arith ()
8767
 
{
8768
 
  func_arith_result=`expr "$[@]"`
8769
 
}
8770
 
 
8771
 
# func_len string
8772
 
# STRING may not start with a hyphen.
8773
 
func_len ()
8774
 
{
8775
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8776
 
}
8777
 
 
8778
 
_LT_EOF
8779
 
esac
8780
 
 
8781
 
case $lt_shell_append in
8782
 
  yes)
8783
 
    cat << \_LT_EOF >> "$cfgfile"
8784
 
 
8785
 
# func_append var value
8786
 
# Append VALUE to the end of shell variable VAR.
8787
 
func_append ()
8788
 
{
8789
 
  eval "$[1]+=\$[2]"
8790
 
}
8791
 
_LT_EOF
8792
 
    ;;
8793
 
  *)
8794
 
    cat << \_LT_EOF >> "$cfgfile"
8795
 
 
8796
 
# func_append var value
8797
 
# Append VALUE to the end of shell variable VAR.
8798
 
func_append ()
8799
 
{
8800
 
  eval "$[1]=\$$[1]\$[2]"
8801
 
}
8802
 
 
8803
 
_LT_EOF
8804
 
    ;;
8805
 
  esac
8806
 
])
 
9173
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
9174
# ------------------------------------------------------
 
9175
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
9176
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
9177
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
9178
[dnl {
 
9179
sed -e '/^$1 ()$/,/^} # $1 /c\
 
9180
$1 ()\
 
9181
{\
 
9182
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
9183
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
9184
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
9185
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
9186
test 0 -eq $? || _lt_function_replace_fail=:
 
9187
])
 
9188
 
 
9189
 
 
9190
# _LT_PROG_REPLACE_SHELLFNS
 
9191
# -------------------------
 
9192
# Replace existing portable implementations of several shell functions with
 
9193
# equivalent extended shell implementations where those features are available..
 
9194
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
9195
[if test x"$xsi_shell" = xyes; then
 
9196
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
9197
    case ${1} in
 
9198
      */*) func_dirname_result="${1%/*}${2}" ;;
 
9199
      *  ) func_dirname_result="${3}" ;;
 
9200
    esac])
 
9201
 
 
9202
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
9203
    func_basename_result="${1##*/}"])
 
9204
 
 
9205
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
9206
    case ${1} in
 
9207
      */*) func_dirname_result="${1%/*}${2}" ;;
 
9208
      *  ) func_dirname_result="${3}" ;;
 
9209
    esac
 
9210
    func_basename_result="${1##*/}"])
 
9211
 
 
9212
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
9213
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
9214
    # positional parameters, so assign one to ordinary parameter first.
 
9215
    func_stripname_result=${3}
 
9216
    func_stripname_result=${func_stripname_result#"${1}"}
 
9217
    func_stripname_result=${func_stripname_result%"${2}"}])
 
9218
 
 
9219
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
9220
    func_split_long_opt_name=${1%%=*}
 
9221
    func_split_long_opt_arg=${1#*=}])
 
9222
 
 
9223
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
9224
    func_split_short_opt_arg=${1#??}
 
9225
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
9226
 
 
9227
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
9228
    case ${1} in
 
9229
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
9230
      *)    func_lo2o_result=${1} ;;
 
9231
    esac])
 
9232
 
 
9233
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
9234
 
 
9235
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
9236
 
 
9237
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
9238
fi
 
9239
 
 
9240
if test x"$lt_shell_append" = xyes; then
 
9241
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
9242
 
 
9243
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
9244
    func_quote_for_eval "${2}"
 
9245
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
9246
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
9247
 
 
9248
  # Save a `func_append' function call where possible by direct use of '+='
 
9249
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
9250
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
9251
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
9252
  test 0 -eq $? || _lt_function_replace_fail=:
 
9253
else
 
9254
  # Save a `func_append' function call even when '+=' is not available
 
9255
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
9256
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
9257
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
9258
  test 0 -eq $? || _lt_function_replace_fail=:
 
9259
fi
 
9260
 
 
9261
if test x"$_lt_function_replace_fail" = x":"; then
 
9262
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
9263
fi
 
9264
])
 
9265
 
 
9266
# _LT_PATH_CONVERSION_FUNCTIONS
 
9267
# -----------------------------
 
9268
# Determine which file name conversion functions should be used by
 
9269
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
9270
# for certain cross-compile configurations and native mingw.
 
9271
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
9272
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
9273
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
9274
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
9275
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
9276
[case $host in
 
9277
  *-*-mingw* )
 
9278
    case $build in
 
9279
      *-*-mingw* ) # actually msys
 
9280
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
9281
        ;;
 
9282
      *-*-cygwin* )
 
9283
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
9284
        ;;
 
9285
      * ) # otherwise, assume *nix
 
9286
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
9287
        ;;
 
9288
    esac
 
9289
    ;;
 
9290
  *-*-cygwin* )
 
9291
    case $build in
 
9292
      *-*-mingw* ) # actually msys
 
9293
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
9294
        ;;
 
9295
      *-*-cygwin* )
 
9296
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
9297
        ;;
 
9298
      * ) # otherwise, assume *nix
 
9299
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
9300
        ;;
 
9301
    esac
 
9302
    ;;
 
9303
  * ) # unhandled hosts (and "normal" native builds)
 
9304
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
9305
    ;;
 
9306
esac
 
9307
])
 
9308
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
9309
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
9310
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
9311
         [0], [convert $build file names to $host format])dnl
 
9312
 
 
9313
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
9314
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
9315
[#assume ordinary cross tools, or native build.
 
9316
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
9317
case $host in
 
9318
  *-*-mingw* )
 
9319
    case $build in
 
9320
      *-*-mingw* ) # actually msys
 
9321
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
9322
        ;;
 
9323
    esac
 
9324
    ;;
 
9325
esac
 
9326
])
 
9327
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
9328
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
9329
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
9330
         [0], [convert $build files to toolchain format])dnl
 
9331
])# _LT_PATH_CONVERSION_FUNCTIONS
8807
9332
 
8808
9333
# Helper functions for option handling.                    -*- Autoconf -*-
8809
9334
#
8810
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9335
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
 
9336
#   Inc.
8811
9337
#   Written by Gary V. Vaughan, 2004
8812
9338
#
8813
9339
# This file is free software; the Free Software Foundation gives
8814
9340
# unlimited permission to copy and/or distribute it, with or without
8815
9341
# modifications, as long as this notice is preserved.
8816
9342
 
8817
 
# serial 6 ltoptions.m4
 
9343
# serial 7 ltoptions.m4
8818
9344
 
8819
9345
# This is to help aclocal find these macros, as it can't see m4_define.
8820
9346
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8929
9455
[enable_win32_dll=yes
8930
9456
 
8931
9457
case $host in
8932
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
9458
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8933
9459
  AC_CHECK_TOOL(AS, as, false)
8934
9460
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8935
9461
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8937
9463
esac
8938
9464
 
8939
9465
test -z "$AS" && AS=as
8940
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
9466
_LT_DECL([], [AS],      [1], [Assembler program])dnl
8941
9467
 
8942
9468
test -z "$DLLTOOL" && DLLTOOL=dlltool
8943
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
9469
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8944
9470
 
8945
9471
test -z "$OBJDUMP" && OBJDUMP=objdump
8946
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
9472
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8947
9473
])# win32-dll
8948
9474
 
8949
9475
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9301
9827
# unlimited permission to copy and/or distribute it, with or without
9302
9828
# modifications, as long as this notice is preserved.
9303
9829
 
9304
 
# Generated from ltversion.in.
 
9830
# @configure_input@
9305
9831
 
9306
 
# serial 3017 ltversion.m4
 
9832
# serial 3293 ltversion.m4
9307
9833
# This file is part of GNU Libtool
9308
9834
 
9309
 
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
9310
 
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
9835
m4_define([LT_PACKAGE_VERSION], [2.4])
 
9836
m4_define([LT_PACKAGE_REVISION], [1.3293])
9311
9837
 
9312
9838
AC_DEFUN([LTVERSION_VERSION],
9313
 
[macro_version='2.2.6b'
9314
 
macro_revision='1.3017'
 
9839
[macro_version='2.4'
 
9840
macro_revision='1.3293'
9315
9841
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9316
9842
_LT_DECL(, macro_revision, 0)
9317
9843
])
9318
9844
 
9319
9845
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9320
9846
#
9321
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
9847
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9322
9848
#   Written by Scott James Remnant, 2004.
9323
9849
#
9324
9850
# This file is free software; the Free Software Foundation gives
9325
9851
# unlimited permission to copy and/or distribute it, with or without
9326
9852
# modifications, as long as this notice is preserved.
9327
9853
 
9328
 
# serial 4 lt~obsolete.m4
 
9854
# serial 5 lt~obsolete.m4
9329
9855
 
9330
9856
# These exist entirely to fool aclocal when bootstrapping libtool.
9331
9857
#
9395
9921
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
9396
9922
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
9397
9923
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
9398
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
9399
9924
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9400
9925
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9401
9926
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9408
9933
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9409
9934
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9410
9935
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
9936
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
 
9937
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
 
9938
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
 
9939
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
 
9940
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
 
9941
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
 
9942
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9411
9943
 
9412
9944
# nls.m4 serial 5 (gettext-0.18)
9413
9945
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9443
9975
])
9444
9976
 
9445
9977
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
9978
# serial 1 (pkg-config-0.24)
9446
9979
9447
9980
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9448
9981
#
9470
10003
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9471
10004
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9472
10005
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9473
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
10006
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
10007
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
10008
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
10009
 
9474
10010
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9475
10011
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9476
10012
fi
9483
10019
                AC_MSG_RESULT([no])
9484
10020
                PKG_CONFIG=""
9485
10021
        fi
9486
 
                
9487
10022
fi[]dnl
9488
10023
])# PKG_PROG_PKG_CONFIG
9489
10024
 
9492
10027
# Check to see whether a particular set of modules exists.  Similar
9493
10028
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9494
10029
#
9495
 
#
9496
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9497
 
# this or PKG_CHECK_MODULES is called, or make sure to call
9498
 
# PKG_CHECK_EXISTS manually
 
10030
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
10031
# only at the first occurence in configure.ac, so if the first place
 
10032
# it's called might be skipped (such as if it is within an "if", you
 
10033
# have to call PKG_CHECK_EXISTS manually
9499
10034
# --------------------------------------------------------------
9500
10035
AC_DEFUN([PKG_CHECK_EXISTS],
9501
10036
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9502
10037
if test -n "$PKG_CONFIG" && \
9503
10038
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9504
 
  m4_ifval([$2], [$2], [:])
 
10039
  m4_default([$2], [:])
9505
10040
m4_ifvaln([$3], [else
9506
10041
  $3])dnl
9507
10042
fi])
9508
10043
 
9509
 
 
9510
10044
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9511
10045
# ---------------------------------------------
9512
10046
m4_define([_PKG_CONFIG],
9559
10093
See the pkg-config man page for more details.])
9560
10094
 
9561
10095
if test $pkg_failed = yes; then
 
10096
        AC_MSG_RESULT([no])
9562
10097
        _PKG_SHORT_ERRORS_SUPPORTED
9563
10098
        if test $_pkg_short_errors_supported = yes; then
9564
10099
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9568
10103
        # Put the nasty error message in config.log where it belongs
9569
10104
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9570
10105
 
9571
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
10106
        m4_default([$4], [AC_MSG_ERROR(
9572
10107
[Package requirements ($2) were not met:
9573
10108
 
9574
10109
$$1_PKG_ERRORS
9576
10111
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9577
10112
installed software in a non-standard prefix.
9578
10113
 
9579
 
_PKG_TEXT
9580
 
])],
9581
 
                [AC_MSG_RESULT([no])
9582
 
                $4])
 
10114
_PKG_TEXT])
 
10115
        ])
9583
10116
elif test $pkg_failed = untried; then
9584
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
10117
        AC_MSG_RESULT([no])
 
10118
        m4_default([$4], [AC_MSG_FAILURE(
9585
10119
[The pkg-config script could not be found or is too old.  Make sure it
9586
10120
is in your PATH or set the PKG_CONFIG environment variable to the full
9587
10121
path to pkg-config.
9588
10122
 
9589
10123
_PKG_TEXT
9590
10124
 
9591
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9592
 
                [$4])
 
10125
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
10126
        ])
9593
10127
else
9594
10128
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9595
10129
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9596
10130
        AC_MSG_RESULT([yes])
9597
 
        ifelse([$3], , :, [$3])
 
10131
        $3
9598
10132
fi[]dnl
9599
10133
])# PKG_CHECK_MODULES
9600
10134
 
9601
 
dnl AM_GCONF_SOURCE_2
9602
 
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
9603
 
dnl  (i.e. pass to gconftool-2
9604
 
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
9605
 
dnl  you should install foo.schemas files
9606
 
dnl
9607
 
 
9608
 
AC_DEFUN([AM_GCONF_SOURCE_2],
9609
 
[
9610
 
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
9611
 
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9612
 
  else
9613
 
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
9614
 
  fi
9615
 
 
9616
 
  AC_ARG_WITH([gconf-source],
9617
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
9618
 
                             [Config database for installing schema files.]),
9619
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
9620
 
 
9621
 
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
9622
 
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
9623
 
 
9624
 
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
9625
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
9626
 
  fi
9627
 
 
9628
 
  AC_ARG_WITH([gconf-schema-file-dir],
9629
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
9630
 
                             [Directory for installing schema files.]),
9631
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
9632
 
 
9633
 
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
9634
 
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
9635
 
 
9636
 
  AC_ARG_ENABLE(schemas-install,
9637
 
        AC_HELP_STRING([--disable-schemas-install],
9638
 
                       [Disable the schemas installation]),
9639
 
     [case ${enableval} in
9640
 
       yes|no) ;;
9641
 
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
9642
 
      esac])
9643
 
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
9644
 
])
9645
 
 
9646
10135
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9647
10136
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9648
10137
#