~ubuntu-branches/ubuntu/quantal/thunar/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2011-01-04 21:32:59 UTC
  • mfrom: (1.1.29 upstream)
  • Revision ID: james.westby@ubuntu.com-20110104213259-mz1w46d83r9s7egt
Tags: 1.1.6-0ubuntu1
* New upstream development release.
* Bump xfce4-panel-dev b-dep to >= 4.7.7 to force using the new abi.

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.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
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'.])])
878
878
dnl
879
879
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
880
880
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
881
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
881
882
m4_require([_LT_CMD_RELOAD])dnl
882
883
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
884
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
883
885
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
884
886
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
887
m4_require([_LT_WITH_SYSROOT])dnl
885
888
 
886
889
_LT_CONFIG_LIBTOOL_INIT([
887
890
# See if we are running on zsh, and set the options which allow our
1452
1455
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1453
1456
  # text mode, it properly converts lines to CR/LF.  This bash problem
1454
1457
  # is reportedly fixed, but why not run on old versions too?
1455
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1456
 
    || (rm -f "$cfgfile"; exit 1)
1457
 
 
1458
 
  _LT_PROG_XSI_SHELLFNS
1459
 
 
1460
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1461
 
    || (rm -f "$cfgfile"; exit 1)
1462
 
 
1463
 
  mv -f "$cfgfile" "$ofile" ||
 
1458
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1459
     || (rm -f "$cfgfile"; exit 1)
 
1460
 
 
1461
  _LT_PROG_REPLACE_SHELLFNS
 
1462
 
 
1463
   mv -f "$cfgfile" "$ofile" ||
1464
1464
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1465
1465
  chmod +x "$ofile"
1466
1466
],
1777
1777
  fi
1778
1778
])
1779
1779
 
1780
 
# _LT_SYS_MODULE_PATH_AIX
1781
 
# -----------------------
 
1780
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1781
# ----------------------------------
1782
1782
# Links a minimal program and checks the executable
1783
1783
# for the system default hardcoded library path. In most cases,
1784
1784
# this is /usr/lib:/lib, but when the MPI compilers are used
1785
1785
# the location of the communication and MPI libs are included too.
1786
1786
# If we don't find anything, use the default library path according
1787
1787
# to the aix ld manual.
 
1788
# Store the results from the different compilers for each TAGNAME.
 
1789
# Allow to override them for all tags through lt_cv_aix_libpath.
1788
1790
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1789
1791
[m4_require([_LT_DECL_SED])dnl
1790
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1791
 
lt_aix_libpath_sed='
1792
 
    /Import File Strings/,/^$/ {
1793
 
        /^0/ {
1794
 
            s/^0  *\(.*\)$/\1/
1795
 
            p
1796
 
        }
1797
 
    }'
1798
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1799
 
# Check for a 64-bit object if we didn't find anything.
1800
 
if test -z "$aix_libpath"; then
1801
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1802
 
fi],[])
1803
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1792
if test "${lt_cv_aix_libpath+set}" = set; then
 
1793
  aix_libpath=$lt_cv_aix_libpath
 
1794
else
 
1795
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1796
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1797
  lt_aix_libpath_sed='[
 
1798
      /Import File Strings/,/^$/ {
 
1799
          /^0/ {
 
1800
              s/^0  *\([^ ]*\) *$/\1/
 
1801
              p
 
1802
          }
 
1803
      }]'
 
1804
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1805
  # Check for a 64-bit object if we didn't find anything.
 
1806
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1807
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1808
  fi],[])
 
1809
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1810
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1811
  fi
 
1812
  ])
 
1813
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1814
fi
1804
1815
])# _LT_SYS_MODULE_PATH_AIX
1805
1816
 
1806
1817
 
1825
1836
 
1826
1837
AC_MSG_CHECKING([how to print strings])
1827
1838
# Test print first, because it will be a builtin if present.
1828
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1839
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1829
1840
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1830
1841
  ECHO='print -r --'
1831
1842
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1869
1880
])# _LT_PROG_ECHO_BACKSLASH
1870
1881
 
1871
1882
 
 
1883
# _LT_WITH_SYSROOT
 
1884
# ----------------
 
1885
AC_DEFUN([_LT_WITH_SYSROOT],
 
1886
[AC_MSG_CHECKING([for sysroot])
 
1887
AC_ARG_WITH([sysroot],
 
1888
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1889
                        (or the compiler's sysroot if not specified).],
 
1890
[], [with_sysroot=no])
 
1891
 
 
1892
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1893
dnl in case the user passed a directory name.
 
1894
lt_sysroot=
 
1895
case ${with_sysroot} in #(
 
1896
 yes)
 
1897
   if test "$GCC" = yes; then
 
1898
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1899
   fi
 
1900
   ;; #(
 
1901
 /*)
 
1902
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1903
   ;; #(
 
1904
 no|'')
 
1905
   ;; #(
 
1906
 *)
 
1907
   AC_MSG_RESULT([${with_sysroot}])
 
1908
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1909
   ;;
 
1910
esac
 
1911
 
 
1912
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1913
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1914
[dependent libraries, and in which our libraries should be installed.])])
 
1915
 
1872
1916
# _LT_ENABLE_LOCK
1873
1917
# ---------------
1874
1918
m4_defun([_LT_ENABLE_LOCK],
2015
2059
])# _LT_ENABLE_LOCK
2016
2060
 
2017
2061
 
 
2062
# _LT_PROG_AR
 
2063
# -----------
 
2064
m4_defun([_LT_PROG_AR],
 
2065
[AC_CHECK_TOOLS(AR, [ar], false)
 
2066
: ${AR=ar}
 
2067
: ${AR_FLAGS=cru}
 
2068
_LT_DECL([], [AR], [1], [The archiver])
 
2069
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2070
 
 
2071
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2072
  [lt_cv_ar_at_file=no
 
2073
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2074
     [echo conftest.$ac_objext > conftest.lst
 
2075
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2076
      AC_TRY_EVAL([lt_ar_try])
 
2077
      if test "$ac_status" -eq 0; then
 
2078
        # Ensure the archiver fails upon bogus file names.
 
2079
        rm -f conftest.$ac_objext libconftest.a
 
2080
        AC_TRY_EVAL([lt_ar_try])
 
2081
        if test "$ac_status" -ne 0; then
 
2082
          lt_cv_ar_at_file=@
 
2083
        fi
 
2084
      fi
 
2085
      rm -f conftest.* libconftest.a
 
2086
     ])
 
2087
  ])
 
2088
 
 
2089
if test "x$lt_cv_ar_at_file" = xno; then
 
2090
  archiver_list_spec=
 
2091
else
 
2092
  archiver_list_spec=$lt_cv_ar_at_file
 
2093
fi
 
2094
_LT_DECL([], [archiver_list_spec], [1],
 
2095
  [How to feed a file listing to the archiver])
 
2096
])# _LT_PROG_AR
 
2097
 
 
2098
 
2018
2099
# _LT_CMD_OLD_ARCHIVE
2019
2100
# -------------------
2020
2101
m4_defun([_LT_CMD_OLD_ARCHIVE],
2021
 
[AC_CHECK_TOOL(AR, ar, false)
2022
 
test -z "$AR" && AR=ar
2023
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2024
 
_LT_DECL([], [AR], [1], [The archiver])
2025
 
_LT_DECL([], [AR_FLAGS], [1])
 
2102
[_LT_PROG_AR
2026
2103
 
2027
2104
AC_CHECK_TOOL(STRIP, strip, :)
2028
2105
test -z "$STRIP" && STRIP=:
2362
2439
/* When -fvisbility=hidden is used, assume the code has been annotated
2363
2440
   correspondingly for the symbols needed.  */
2364
2441
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2365
 
void fnord () __attribute__((visibility("default")));
 
2442
int fnord () __attribute__((visibility("default")));
2366
2443
#endif
2367
2444
 
2368
 
void fnord () { int i=42; }
 
2445
int fnord () { return 42; }
2369
2446
int main ()
2370
2447
{
2371
2448
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2905
2982
  need_version=no
2906
2983
  need_lib_prefix=no
2907
2984
 
2908
 
  case $GCC,$host_os in
2909
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2985
  case $GCC,$cc_basename in
 
2986
  yes,*)
 
2987
    # gcc
2910
2988
    library_names_spec='$libname.dll.a'
2911
2989
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2912
2990
    postinstall_cmds='base_file=`basename \${file}`~
2939
3017
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2940
3018
      ;;
2941
3019
    esac
 
3020
    dynamic_linker='Win32 ld.exe'
 
3021
    ;;
 
3022
 
 
3023
  *,cl*)
 
3024
    # Native MSVC
 
3025
    libname_spec='$name'
 
3026
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3027
    library_names_spec='${libname}.dll.lib'
 
3028
 
 
3029
    case $build_os in
 
3030
    mingw*)
 
3031
      sys_lib_search_path_spec=
 
3032
      lt_save_ifs=$IFS
 
3033
      IFS=';'
 
3034
      for lt_path in $LIB
 
3035
      do
 
3036
        IFS=$lt_save_ifs
 
3037
        # Let DOS variable expansion print the short 8.3 style file name.
 
3038
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3039
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3040
      done
 
3041
      IFS=$lt_save_ifs
 
3042
      # Convert to MSYS style.
 
3043
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3044
      ;;
 
3045
    cygwin*)
 
3046
      # Convert to unix form, then to dos form, then back to unix form
 
3047
      # but this time dos style (no spaces!) so that the unix form looks
 
3048
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3049
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3050
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3051
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3052
      ;;
 
3053
    *)
 
3054
      sys_lib_search_path_spec="$LIB"
 
3055
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3056
        # It is most probably a Windows format PATH.
 
3057
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3058
      else
 
3059
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3060
      fi
 
3061
      # FIXME: find the short name or the path components, as spaces are
 
3062
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3063
      ;;
 
3064
    esac
 
3065
 
 
3066
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3067
    postinstall_cmds='base_file=`basename \${file}`~
 
3068
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3069
      dldir=$destdir/`dirname \$dlpath`~
 
3070
      test -d \$dldir || mkdir -p \$dldir~
 
3071
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3072
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3073
      dlpath=$dir/\$dldll~
 
3074
       $RM \$dlpath'
 
3075
    shlibpath_overrides_runpath=yes
 
3076
    dynamic_linker='Win32 link.exe'
2942
3077
    ;;
2943
3078
 
2944
3079
  *)
 
3080
    # Assume MSVC wrapper
2945
3081
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3082
    dynamic_linker='Win32 ld.exe'
2946
3083
    ;;
2947
3084
  esac
2948
 
  dynamic_linker='Win32 ld.exe'
2949
3085
  # FIXME: first we should search . and the directory the executable is in
2950
3086
  shlibpath_var=PATH
2951
3087
  ;;
3178
3314
  # before this can be enabled.
3179
3315
  hardcode_into_libs=yes
3180
3316
 
3181
 
  # Add ABI-specific directories to the system library path.
3182
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3183
 
 
3184
3317
  # Append ld.so.conf contents to the search path
3185
3318
  if test -f /etc/ld.so.conf; then
3186
3319
    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' ' '`
3187
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3188
 
 
 
3320
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3189
3321
  fi
3190
3322
 
3191
3323
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3653
3785
esac
3654
3786
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3655
3787
case $host_os in
 
3788
  cygwin* | mingw* | pw32* | cegcc*)
 
3789
    if test "$GCC" != yes; then
 
3790
      reload_cmds=false
 
3791
    fi
 
3792
    ;;
3656
3793
  darwin*)
3657
3794
    if test "$GCC" = yes; then
3658
3795
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3871
4008
  ;;
3872
4009
esac
3873
4010
])
 
4011
 
 
4012
file_magic_glob=
 
4013
want_nocaseglob=no
 
4014
if test "$build" = "$host"; then
 
4015
  case $host_os in
 
4016
  mingw* | pw32*)
 
4017
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4018
      want_nocaseglob=yes
 
4019
    else
 
4020
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4021
    fi
 
4022
    ;;
 
4023
  esac
 
4024
fi
 
4025
 
3874
4026
file_magic_cmd=$lt_cv_file_magic_cmd
3875
4027
deplibs_check_method=$lt_cv_deplibs_check_method
3876
4028
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3878
4030
_LT_DECL([], [deplibs_check_method], [1],
3879
4031
    [Method to check whether dependent libraries are shared objects])
3880
4032
_LT_DECL([], [file_magic_cmd], [1],
3881
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4033
    [Command to use when deplibs_check_method = "file_magic"])
 
4034
_LT_DECL([], [file_magic_glob], [1],
 
4035
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4036
_LT_DECL([], [want_nocaseglob], [1],
 
4037
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3882
4038
])# _LT_CHECK_MAGIC_METHOD
3883
4039
 
3884
4040
 
3981
4137
dnl AC_DEFUN([AM_PROG_NM], [])
3982
4138
dnl AC_DEFUN([AC_PROG_NM], [])
3983
4139
 
 
4140
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4141
# --------------------------------
 
4142
# how to determine the name of the shared library
 
4143
# associated with a specific link library.
 
4144
#  -- PORTME fill in with the dynamic library characteristics
 
4145
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4146
[m4_require([_LT_DECL_EGREP])
 
4147
m4_require([_LT_DECL_OBJDUMP])
 
4148
m4_require([_LT_DECL_DLLTOOL])
 
4149
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4150
lt_cv_sharedlib_from_linklib_cmd,
 
4151
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4152
 
 
4153
case $host_os in
 
4154
cygwin* | mingw* | pw32* | cegcc*)
 
4155
  # two different shell functions defined in ltmain.sh
 
4156
  # decide which to use based on capabilities of $DLLTOOL
 
4157
  case `$DLLTOOL --help 2>&1` in
 
4158
  *--identify-strict*)
 
4159
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4160
    ;;
 
4161
  *)
 
4162
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4163
    ;;
 
4164
  esac
 
4165
  ;;
 
4166
*)
 
4167
  # fallback: assume linklib IS sharedlib
 
4168
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4169
  ;;
 
4170
esac
 
4171
])
 
4172
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4173
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4174
 
 
4175
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4176
    [Command to associate shared and link libraries])
 
4177
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4178
 
 
4179
 
 
4180
# _LT_PATH_MANIFEST_TOOL
 
4181
# ----------------------
 
4182
# locate the manifest tool
 
4183
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4184
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4185
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4186
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4187
  [lt_cv_path_mainfest_tool=no
 
4188
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4189
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4190
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4191
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4192
    lt_cv_path_mainfest_tool=yes
 
4193
  fi
 
4194
  rm -f conftest*])
 
4195
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4196
  MANIFEST_TOOL=:
 
4197
fi
 
4198
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4199
])# _LT_PATH_MANIFEST_TOOL
 
4200
 
3984
4201
 
3985
4202
# LT_LIB_M
3986
4203
# --------
4107
4324
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4108
4325
 
4109
4326
# Transform an extracted symbol line into symbol name and symbol address
4110
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4111
 
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'"
 
4327
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4328
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'"
4112
4329
 
4113
4330
# Handle CRLF in mingw tool chain
4114
4331
opt_cr=
4144
4361
  else
4145
4362
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4146
4363
  fi
 
4364
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4147
4365
 
4148
4366
  # Check to see that the pipe works correctly.
4149
4367
  pipe_works=no
4177
4395
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4178
4396
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4179
4397
          cat <<_LT_EOF > conftest.$ac_ext
 
4398
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4399
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4400
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4401
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4402
# define LT@&t@_DLSYM_CONST
 
4403
#elif defined(__osf__)
 
4404
/* This system does not cope well with relocations in const data.  */
 
4405
# define LT@&t@_DLSYM_CONST
 
4406
#else
 
4407
# define LT@&t@_DLSYM_CONST const
 
4408
#endif
 
4409
 
4180
4410
#ifdef __cplusplus
4181
4411
extern "C" {
4182
4412
#endif
4188
4418
          cat <<_LT_EOF >> conftest.$ac_ext
4189
4419
 
4190
4420
/* The mapping between symbol names and symbols.  */
4191
 
const struct {
 
4421
LT@&t@_DLSYM_CONST struct {
4192
4422
  const char *name;
4193
4423
  void       *address;
4194
4424
}
4214
4444
_LT_EOF
4215
4445
          # Now try linking the two files.
4216
4446
          mv conftest.$ac_objext conftstm.$ac_objext
4217
 
          lt_save_LIBS="$LIBS"
4218
 
          lt_save_CFLAGS="$CFLAGS"
 
4447
          lt_globsym_save_LIBS=$LIBS
 
4448
          lt_globsym_save_CFLAGS=$CFLAGS
4219
4449
          LIBS="conftstm.$ac_objext"
4220
4450
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4221
4451
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4222
4452
            pipe_works=yes
4223
4453
          fi
4224
 
          LIBS="$lt_save_LIBS"
4225
 
          CFLAGS="$lt_save_CFLAGS"
 
4454
          LIBS=$lt_globsym_save_LIBS
 
4455
          CFLAGS=$lt_globsym_save_CFLAGS
4226
4456
        else
4227
4457
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4228
4458
        fi
4255
4485
  AC_MSG_RESULT(ok)
4256
4486
fi
4257
4487
 
 
4488
# Response file support.
 
4489
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4490
  nm_file_list_spec='@'
 
4491
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4492
  nm_file_list_spec='@'
 
4493
fi
 
4494
 
4258
4495
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4259
4496
    [Take the output of nm and produce a listing of raw symbols and C names])
4260
4497
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4265
4502
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4266
4503
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4267
4504
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4505
_LT_DECL([], [nm_file_list_spec], [1],
 
4506
    [Specify filename containing input files for $NM])
4268
4507
]) # _LT_CMD_GLOBAL_SYMBOLS
4269
4508
 
4270
4509
 
4276
4515
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4277
4516
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4278
4517
 
4279
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4280
4518
m4_if([$1], [CXX], [
4281
4519
  # C++ specific cases for pic, static, wl, etc.
4282
4520
  if test "$GXX" = yes; then
4381
4619
          ;;
4382
4620
        esac
4383
4621
        ;;
 
4622
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4623
        # This hack is so that the source file can tell whether it is being
 
4624
        # built for inclusion in a dll (and should export symbols for example).
 
4625
        m4_if([$1], [GCJ], [],
 
4626
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4627
        ;;
4384
4628
      dgux*)
4385
4629
        case $cc_basename in
4386
4630
          ec++*)
4755
4999
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4756
5000
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4757
5001
        ;;
 
5002
      nagfor*)
 
5003
        # NAG Fortran compiler
 
5004
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5005
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5006
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5007
        ;;
4758
5008
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4759
5009
        # Portland Group compilers (*not* the Pentium gcc compiler,
4760
5010
        # which looks to be a dead project)
4874
5124
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4875
5125
    ;;
4876
5126
esac
4877
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4878
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4879
 
        [How to pass a linker flag through the compiler])
 
5127
 
 
5128
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5129
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5130
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5131
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4880
5132
 
4881
5133
#
4882
5134
# Check to make sure the PIC flag actually works.
4895
5147
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4896
5148
        [Additional compiler flags for building library objects])
4897
5149
 
 
5150
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5151
        [How to pass a linker flag through the compiler])
4898
5152
#
4899
5153
# Check to make sure the static flag actually works.
4900
5154
#
4915
5169
m4_defun([_LT_LINKER_SHLIBS],
4916
5170
[AC_REQUIRE([LT_PATH_LD])dnl
4917
5171
AC_REQUIRE([LT_PATH_NM])dnl
 
5172
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4918
5173
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4919
5174
m4_require([_LT_DECL_EGREP])dnl
4920
5175
m4_require([_LT_DECL_SED])dnl
4923
5178
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4924
5179
m4_if([$1], [CXX], [
4925
5180
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5181
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4926
5182
  case $host_os in
4927
5183
  aix[[4-9]]*)
4928
5184
    # If we're using GNU nm, then we don't want the "-C" option.
4937
5193
    ;;
4938
5194
  pw32*)
4939
5195
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4940
 
  ;;
 
5196
    ;;
4941
5197
  cygwin* | mingw* | cegcc*)
4942
 
    _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'
4943
 
  ;;
 
5198
    case $cc_basename in
 
5199
    cl*) ;;
 
5200
    *)
 
5201
      _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'
 
5202
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5203
      ;;
 
5204
    esac
 
5205
    ;;
4944
5206
  *)
4945
5207
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4946
 
  ;;
 
5208
    ;;
4947
5209
  esac
4948
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4949
5210
], [
4950
5211
  runpath_var=
4951
5212
  _LT_TAGVAR(allow_undefined_flag, $1)=
5113
5374
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5114
5375
      _LT_TAGVAR(always_export_symbols, $1)=no
5115
5376
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5116
 
      _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'
 
5377
      _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'
 
5378
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5117
5379
 
5118
5380
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5119
5381
        _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'
5161
5423
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5162
5424
         && test "$tmp_diet" = no
5163
5425
      then
5164
 
        tmp_addflag=
 
5426
        tmp_addflag=' $pic_flag'
5165
5427
        tmp_sharedflag='-shared'
5166
5428
        case $cc_basename,$host_cpu in
5167
5429
        pgcc*)                          # Portland Group C compiler
5231
5493
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5232
5494
        wlarc=
5233
5495
      else
5234
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5235
 
        _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'
 
5496
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5497
        _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'
5236
5498
      fi
5237
5499
      ;;
5238
5500
 
5250
5512
 
5251
5513
_LT_EOF
5252
5514
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5253
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5254
 
        _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'
 
5515
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5516
        _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'
5255
5517
      else
5256
5518
        _LT_TAGVAR(ld_shlibs, $1)=no
5257
5519
      fi
5297
5559
 
5298
5560
    *)
5299
5561
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5300
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5301
 
        _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'
 
5562
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5563
        _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'
5302
5564
      else
5303
5565
        _LT_TAGVAR(ld_shlibs, $1)=no
5304
5566
      fi
5428
5690
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5429
5691
        # Determine the default libpath from the value encoded in an
5430
5692
        # empty executable.
5431
 
        _LT_SYS_MODULE_PATH_AIX
 
5693
        _LT_SYS_MODULE_PATH_AIX([$1])
5432
5694
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5433
5695
        _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"
5434
5696
      else
5439
5701
        else
5440
5702
         # Determine the default libpath from the value encoded in an
5441
5703
         # empty executable.
5442
 
         _LT_SYS_MODULE_PATH_AIX
 
5704
         _LT_SYS_MODULE_PATH_AIX([$1])
5443
5705
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5444
5706
          # Warning - without using the other run time loading flags,
5445
5707
          # -berok will link without error, but may produce a broken library.
5483
5745
      # Microsoft Visual C++.
5484
5746
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5485
5747
      # no search path for DLLs.
5486
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5487
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5488
 
      # Tell ltmain to make .lib files, not .a files.
5489
 
      libext=lib
5490
 
      # Tell ltmain to make .dll files, not .so files.
5491
 
      shrext_cmds=".dll"
5492
 
      # FIXME: Setting linknames here is a bad hack.
5493
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5494
 
      # The linker will automatically build a .lib file if we build a DLL.
5495
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5496
 
      # FIXME: Should let the user specify the lib program.
5497
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5498
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5499
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5748
      case $cc_basename in
 
5749
      cl*)
 
5750
        # Native MSVC
 
5751
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5752
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5753
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5754
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5755
        # Tell ltmain to make .lib files, not .a files.
 
5756
        libext=lib
 
5757
        # Tell ltmain to make .dll files, not .so files.
 
5758
        shrext_cmds=".dll"
 
5759
        # FIXME: Setting linknames here is a bad hack.
 
5760
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5761
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5762
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5763
          else
 
5764
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5765
          fi~
 
5766
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5767
          linknames='
 
5768
        # The linker will not automatically build a static lib if we build a DLL.
 
5769
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5770
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5771
        _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'
 
5772
        # Don't use ranlib
 
5773
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5774
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5775
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5776
          case $lt_outputfile in
 
5777
            *.exe|*.EXE) ;;
 
5778
            *)
 
5779
              lt_outputfile="$lt_outputfile.exe"
 
5780
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5781
              ;;
 
5782
          esac~
 
5783
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5784
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5785
            $RM "$lt_outputfile.manifest";
 
5786
          fi'
 
5787
        ;;
 
5788
      *)
 
5789
        # Assume MSVC wrapper
 
5790
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5791
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5792
        # Tell ltmain to make .lib files, not .a files.
 
5793
        libext=lib
 
5794
        # Tell ltmain to make .dll files, not .so files.
 
5795
        shrext_cmds=".dll"
 
5796
        # FIXME: Setting linknames here is a bad hack.
 
5797
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5798
        # The linker will automatically build a .lib file if we build a DLL.
 
5799
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5800
        # FIXME: Should let the user specify the lib program.
 
5801
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5802
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5803
        ;;
 
5804
      esac
5500
5805
      ;;
5501
5806
 
5502
5807
    darwin* | rhapsody*)
5534
5839
 
5535
5840
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5536
5841
    freebsd* | dragonfly*)
5537
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5842
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5538
5843
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5539
5844
      _LT_TAGVAR(hardcode_direct, $1)=yes
5540
5845
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5542
5847
 
5543
5848
    hpux9*)
5544
5849
      if test "$GCC" = yes; then
5545
 
        _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'
 
5850
        _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'
5546
5851
      else
5547
5852
        _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'
5548
5853
      fi
5558
5863
 
5559
5864
    hpux10*)
5560
5865
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5561
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5866
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5562
5867
      else
5563
5868
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5564
5869
      fi
5582
5887
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5583
5888
          ;;
5584
5889
        ia64*)
5585
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5890
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5586
5891
          ;;
5587
5892
        *)
5588
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5893
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5589
5894
          ;;
5590
5895
        esac
5591
5896
      else
5632
5937
 
5633
5938
    irix5* | irix6* | nonstopux*)
5634
5939
      if test "$GCC" = yes; then
5635
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5940
        _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'
5636
5941
        # Try to use the -exported_symbol ld option, if it does not
5637
5942
        # work, assume that -exports_file does not work either and
5638
5943
        # implicitly export all symbols.
5639
 
        save_LDFLAGS="$LDFLAGS"
5640
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5641
 
        AC_LINK_IFELSE(int foo(void) {},
5642
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5643
 
        )
5644
 
        LDFLAGS="$save_LDFLAGS"
 
5944
        # This should be the same for all languages, so no per-tag cache variable.
 
5945
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5946
          [lt_cv_irix_exported_symbol],
 
5947
          [save_LDFLAGS="$LDFLAGS"
 
5948
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5949
           AC_LINK_IFELSE(
 
5950
             [AC_LANG_SOURCE(
 
5951
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5952
                              [C++], [[int foo (void) { return 0; }]],
 
5953
                              [Fortran 77], [[
 
5954
      subroutine foo
 
5955
      end]],
 
5956
                              [Fortran], [[
 
5957
      subroutine foo
 
5958
      end]])])],
 
5959
              [lt_cv_irix_exported_symbol=yes],
 
5960
              [lt_cv_irix_exported_symbol=no])
 
5961
           LDFLAGS="$save_LDFLAGS"])
 
5962
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5963
          _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'
 
5964
        fi
5645
5965
      else
5646
5966
        _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'
5647
5967
        _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'
5726
6046
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5727
6047
      if test "$GCC" = yes; then
5728
6048
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5729
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6049
        _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'
5730
6050
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5731
6051
      else
5732
6052
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5745
6065
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5746
6066
      if test "$GCC" = yes; then
5747
6067
        wlarc='${wl}'
5748
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6068
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5749
6069
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5750
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6070
          $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'
5751
6071
      else
5752
6072
        case `$CC -V 2>&1` in
5753
6073
        *"Compilers 5.0"*)
6019
6339
    to runtime path list])
6020
6340
_LT_TAGDECL([], [link_all_deplibs], [0],
6021
6341
    [Whether libtool must link a program against all its dependency libraries])
6022
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6023
 
    [Fix the shell variable $srcfile for the compiler])
6024
6342
_LT_TAGDECL([], [always_export_symbols], [0],
6025
6343
    [Set to "yes" if exported symbols are required])
6026
6344
_LT_TAGDECL([], [export_symbols_cmds], [2],
6031
6349
    [Symbols that must always be exported])
6032
6350
_LT_TAGDECL([], [prelink_cmds], [2],
6033
6351
    [Commands necessary for linking programs (against libraries) with templates])
 
6352
_LT_TAGDECL([], [postlink_cmds], [2],
 
6353
    [Commands necessary for finishing linking programs])
6034
6354
_LT_TAGDECL([], [file_list_spec], [1],
6035
6355
    [Specify filename containing input files])
6036
6356
dnl FIXME: Not yet implemented
6128
6448
m4_defun([_LT_LANG_CXX_CONFIG],
6129
6449
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6130
6450
m4_require([_LT_DECL_EGREP])dnl
 
6451
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6131
6452
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6132
6453
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6133
6454
    (test "X$CXX" != "Xg++"))) ; then
6189
6510
 
6190
6511
  # Allow CC to be a program name with arguments.
6191
6512
  lt_save_CC=$CC
 
6513
  lt_save_CFLAGS=$CFLAGS
6192
6514
  lt_save_LD=$LD
6193
6515
  lt_save_GCC=$GCC
6194
6516
  GCC=$GXX
6206
6528
  fi
6207
6529
  test -z "${LDCXX+set}" || LD=$LDCXX
6208
6530
  CC=${CXX-"c++"}
 
6531
  CFLAGS=$CXXFLAGS
6209
6532
  compiler=$CC
6210
6533
  _LT_TAGVAR(compiler, $1)=$CC
6211
6534
  _LT_CC_BASENAME([$compiler])
6227
6550
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6228
6551
      # archiving commands below assume that GNU ld is being used.
6229
6552
      if test "$with_gnu_ld" = yes; then
6230
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6231
 
        _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'
 
6553
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6554
        _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'
6232
6555
 
6233
6556
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6234
6557
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6369
6692
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6370
6693
          # Determine the default libpath from the value encoded in an empty
6371
6694
          # executable.
6372
 
          _LT_SYS_MODULE_PATH_AIX
 
6695
          _LT_SYS_MODULE_PATH_AIX([$1])
6373
6696
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6374
6697
 
6375
6698
          _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"
6381
6704
          else
6382
6705
            # Determine the default libpath from the value encoded in an
6383
6706
            # empty executable.
6384
 
            _LT_SYS_MODULE_PATH_AIX
 
6707
            _LT_SYS_MODULE_PATH_AIX([$1])
6385
6708
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6386
6709
            # Warning - without using the other run time loading flags,
6387
6710
            # -berok will link without error, but may produce a broken library.
6423
6746
        ;;
6424
6747
 
6425
6748
      cygwin* | mingw* | pw32* | cegcc*)
6426
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6427
 
        # as there is no search path for DLLs.
6428
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6429
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6430
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6431
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6432
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6749
        case $GXX,$cc_basename in
 
6750
        ,cl* | no,cl*)
 
6751
          # Native MSVC
 
6752
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6753
          # no search path for DLLs.
 
6754
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6755
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6756
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6757
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6758
          # Tell ltmain to make .lib files, not .a files.
 
6759
          libext=lib
 
6760
          # Tell ltmain to make .dll files, not .so files.
 
6761
          shrext_cmds=".dll"
 
6762
          # FIXME: Setting linknames here is a bad hack.
 
6763
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6764
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6765
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6766
            else
 
6767
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6768
            fi~
 
6769
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6770
            linknames='
 
6771
          # The linker will not automatically build a static lib if we build a DLL.
 
6772
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6773
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6774
          # Don't use ranlib
 
6775
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6776
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6777
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6778
            case $lt_outputfile in
 
6779
              *.exe|*.EXE) ;;
 
6780
              *)
 
6781
                lt_outputfile="$lt_outputfile.exe"
 
6782
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6783
                ;;
 
6784
            esac~
 
6785
            func_to_tool_file "$lt_outputfile"~
 
6786
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6787
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6788
              $RM "$lt_outputfile.manifest";
 
6789
            fi'
 
6790
          ;;
 
6791
        *)
 
6792
          # g++
 
6793
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6794
          # as there is no search path for DLLs.
 
6795
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6796
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6797
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6798
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6799
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6433
6800
 
6434
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6435
 
          _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'
6436
 
          # If the export-symbols file already is a .def file (1st line
6437
 
          # is EXPORTS), use it as is; otherwise, prepend...
6438
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6439
 
            cp $export_symbols $output_objdir/$soname.def;
6440
 
          else
6441
 
            echo EXPORTS > $output_objdir/$soname.def;
6442
 
            cat $export_symbols >> $output_objdir/$soname.def;
6443
 
          fi~
6444
 
          $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'
6445
 
        else
6446
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6447
 
        fi
6448
 
        ;;
 
6801
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6802
            _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'
 
6803
            # If the export-symbols file already is a .def file (1st line
 
6804
            # is EXPORTS), use it as is; otherwise, prepend...
 
6805
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6806
              cp $export_symbols $output_objdir/$soname.def;
 
6807
            else
 
6808
              echo EXPORTS > $output_objdir/$soname.def;
 
6809
              cat $export_symbols >> $output_objdir/$soname.def;
 
6810
            fi~
 
6811
            $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'
 
6812
          else
 
6813
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6814
          fi
 
6815
          ;;
 
6816
        esac
 
6817
        ;;
6449
6818
      darwin* | rhapsody*)
6450
6819
        _LT_DARWIN_LINKER_FEATURES($1)
6451
6820
        ;;
6520
6889
            ;;
6521
6890
          *)
6522
6891
            if test "$GXX" = yes; then
6523
 
              _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'
 
6892
              _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'
6524
6893
            else
6525
6894
              # FIXME: insert proper C++ library support
6526
6895
              _LT_TAGVAR(ld_shlibs, $1)=no
6591
6960
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6592
6961
                    ;;
6593
6962
                  ia64*)
6594
 
                    _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'
 
6963
                    _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'
6595
6964
                    ;;
6596
6965
                  *)
6597
 
                    _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'
 
6966
                    _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'
6598
6967
                    ;;
6599
6968
                esac
6600
6969
              fi
6635
7004
          *)
6636
7005
            if test "$GXX" = yes; then
6637
7006
              if test "$with_gnu_ld" = no; then
6638
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7007
                _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'
6639
7008
              else
6640
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
7009
                _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'
6641
7010
              fi
6642
7011
            fi
6643
7012
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6915
7284
                  _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'
6916
7285
                  ;;
6917
7286
                *)
6918
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7287
                  _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'
6919
7288
                  ;;
6920
7289
              esac
6921
7290
 
7002
7371
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7003
7372
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7004
7373
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7005
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7374
                _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'
7006
7375
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7007
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7376
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7008
7377
 
7009
7378
                # Commands to make compiler produce verbose output that lists
7010
7379
                # what "hidden" libraries, object files and flags are used when
7133
7502
  fi # test -n "$compiler"
7134
7503
 
7135
7504
  CC=$lt_save_CC
 
7505
  CFLAGS=$lt_save_CFLAGS
7136
7506
  LDCXX=$LD
7137
7507
  LD=$lt_save_LD
7138
7508
  GCC=$lt_save_GCC
7147
7517
])# _LT_LANG_CXX_CONFIG
7148
7518
 
7149
7519
 
 
7520
# _LT_FUNC_STRIPNAME_CNF
 
7521
# ----------------------
 
7522
# func_stripname_cnf prefix suffix name
 
7523
# strip PREFIX and SUFFIX off of NAME.
 
7524
# PREFIX and SUFFIX must not contain globbing or regex special
 
7525
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7526
# dot (in which case that matches only a dot).
 
7527
#
 
7528
# This function is identical to the (non-XSI) version of func_stripname,
 
7529
# except this one can be used by m4 code that may be executed by configure,
 
7530
# rather than the libtool script.
 
7531
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7532
AC_REQUIRE([_LT_DECL_SED])
 
7533
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7534
func_stripname_cnf ()
 
7535
{
 
7536
  case ${2} in
 
7537
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7538
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7539
  esac
 
7540
} # func_stripname_cnf
 
7541
])# _LT_FUNC_STRIPNAME_CNF
 
7542
 
7150
7543
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7151
7544
# ---------------------------------
7152
7545
# Figure out "hidden" library dependencies from verbose
7155
7548
# objects, libraries and library flags.
7156
7549
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7157
7550
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7551
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7158
7552
# Dependencies to place before and after the object being linked:
7159
7553
_LT_TAGVAR(predep_objects, $1)=
7160
7554
_LT_TAGVAR(postdep_objects, $1)=
7205
7599
};
7206
7600
_LT_EOF
7207
7601
])
 
7602
 
 
7603
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7604
case "$CC $CFLAGS " in #(
 
7605
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7606
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7607
esac
 
7608
 
7208
7609
dnl Parse the compiler output and extract the necessary
7209
7610
dnl objects, libraries and library flags.
7210
7611
if AC_TRY_EVAL(ac_compile); then
7216
7617
  pre_test_object_deps_done=no
7217
7618
 
7218
7619
  for p in `eval "$output_verbose_link_cmd"`; do
7219
 
    case $p in
 
7620
    case ${prev}${p} in
7220
7621
 
7221
7622
    -L* | -R* | -l*)
7222
7623
       # Some compilers place space between "-{L,R}" and the path.
7225
7626
          test $p = "-R"; then
7226
7627
         prev=$p
7227
7628
         continue
7228
 
       else
7229
 
         prev=
7230
7629
       fi
7231
7630
 
 
7631
       # Expand the sysroot to ease extracting the directories later.
 
7632
       if test -z "$prev"; then
 
7633
         case $p in
 
7634
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7635
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7636
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7637
         esac
 
7638
       fi
 
7639
       case $p in
 
7640
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7641
       esac
7232
7642
       if test "$pre_test_object_deps_done" = no; then
7233
 
         case $p in
7234
 
         -L* | -R*)
 
7643
         case ${prev} in
 
7644
         -L | -R)
7235
7645
           # Internal compiler library paths should come after those
7236
7646
           # provided the user.  The postdeps already come after the
7237
7647
           # user supplied libs so there is no need to process them.
7251
7661
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7252
7662
         fi
7253
7663
       fi
 
7664
       prev=
7254
7665
       ;;
7255
7666
 
 
7667
    *.lto.$objext) ;; # Ignore GCC LTO objects
7256
7668
    *.$objext)
7257
7669
       # This assumes that the test object file only shows up
7258
7670
       # once in the compiler output.
7288
7700
fi
7289
7701
 
7290
7702
$RM -f confest.$objext
 
7703
CFLAGS=$_lt_libdeps_save_CFLAGS
7291
7704
 
7292
7705
# PORTME: override above test on systems where it is broken
7293
7706
m4_if([$1], [CXX],
7437
7850
  # Allow CC to be a program name with arguments.
7438
7851
  lt_save_CC="$CC"
7439
7852
  lt_save_GCC=$GCC
 
7853
  lt_save_CFLAGS=$CFLAGS
7440
7854
  CC=${F77-"f77"}
 
7855
  CFLAGS=$FFLAGS
7441
7856
  compiler=$CC
7442
7857
  _LT_TAGVAR(compiler, $1)=$CC
7443
7858
  _LT_CC_BASENAME([$compiler])
7491
7906
 
7492
7907
  GCC=$lt_save_GCC
7493
7908
  CC="$lt_save_CC"
 
7909
  CFLAGS="$lt_save_CFLAGS"
7494
7910
fi # test "$_lt_disable_F77" != yes
7495
7911
 
7496
7912
AC_LANG_POP
7567
7983
  # Allow CC to be a program name with arguments.
7568
7984
  lt_save_CC="$CC"
7569
7985
  lt_save_GCC=$GCC
 
7986
  lt_save_CFLAGS=$CFLAGS
7570
7987
  CC=${FC-"f95"}
 
7988
  CFLAGS=$FCFLAGS
7571
7989
  compiler=$CC
7572
7990
  GCC=$ac_cv_fc_compiler_gnu
7573
7991
 
7623
8041
  fi # test -n "$compiler"
7624
8042
 
7625
8043
  GCC=$lt_save_GCC
7626
 
  CC="$lt_save_CC"
 
8044
  CC=$lt_save_CC
 
8045
  CFLAGS=$lt_save_CFLAGS
7627
8046
fi # test "$_lt_disable_FC" != yes
7628
8047
 
7629
8048
AC_LANG_POP
7660
8079
_LT_LINKER_BOILERPLATE
7661
8080
 
7662
8081
# Allow CC to be a program name with arguments.
7663
 
lt_save_CC="$CC"
 
8082
lt_save_CC=$CC
 
8083
lt_save_CFLAGS=$CFLAGS
7664
8084
lt_save_GCC=$GCC
7665
8085
GCC=yes
7666
8086
CC=${GCJ-"gcj"}
 
8087
CFLAGS=$GCJFLAGS
7667
8088
compiler=$CC
7668
8089
_LT_TAGVAR(compiler, $1)=$CC
7669
8090
_LT_TAGVAR(LD, $1)="$LD"
7690
8111
AC_LANG_RESTORE
7691
8112
 
7692
8113
GCC=$lt_save_GCC
7693
 
CC="$lt_save_CC"
 
8114
CC=$lt_save_CC
 
8115
CFLAGS=$lt_save_CFLAGS
7694
8116
])# _LT_LANG_GCJ_CONFIG
7695
8117
 
7696
8118
 
7725
8147
 
7726
8148
# Allow CC to be a program name with arguments.
7727
8149
lt_save_CC="$CC"
 
8150
lt_save_CFLAGS=$CFLAGS
7728
8151
lt_save_GCC=$GCC
7729
8152
GCC=
7730
8153
CC=${RC-"windres"}
 
8154
CFLAGS=
7731
8155
compiler=$CC
7732
8156
_LT_TAGVAR(compiler, $1)=$CC
7733
8157
_LT_CC_BASENAME([$compiler])
7740
8164
 
7741
8165
GCC=$lt_save_GCC
7742
8166
AC_LANG_RESTORE
7743
 
CC="$lt_save_CC"
 
8167
CC=$lt_save_CC
 
8168
CFLAGS=$lt_save_CFLAGS
7744
8169
])# _LT_LANG_RC_CONFIG
7745
8170
 
7746
8171
 
7799
8224
AC_SUBST([OBJDUMP])
7800
8225
])
7801
8226
 
 
8227
# _LT_DECL_DLLTOOL
 
8228
# ----------------
 
8229
# Ensure DLLTOOL variable is set.
 
8230
m4_defun([_LT_DECL_DLLTOOL],
 
8231
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8232
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8233
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8234
AC_SUBST([DLLTOOL])
 
8235
])
7802
8236
 
7803
8237
# _LT_DECL_SED
7804
8238
# ------------
7890
8324
# Try some XSI features
7891
8325
xsi_shell=no
7892
8326
( _lt_dummy="a/b/c"
7893
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7894
 
      = c,a/b,, \
 
8327
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8328
      = c,a/b,b/c, \
7895
8329
    && eval 'test $(( 1 + 1 )) -eq 2 \
7896
8330
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7897
8331
  && xsi_shell=yes
7930
8364
])# _LT_CHECK_SHELL_FEATURES
7931
8365
 
7932
8366
 
7933
 
# _LT_PROG_XSI_SHELLFNS
7934
 
# ---------------------
7935
 
# Bourne and XSI compatible variants of some useful shell functions.
7936
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7937
 
[case $xsi_shell in
7938
 
  yes)
7939
 
    cat << \_LT_EOF >> "$cfgfile"
7940
 
 
7941
 
# func_dirname file append nondir_replacement
7942
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7943
 
# otherwise set result to NONDIR_REPLACEMENT.
7944
 
func_dirname ()
7945
 
{
7946
 
  case ${1} in
7947
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7948
 
    *  ) func_dirname_result="${3}" ;;
7949
 
  esac
7950
 
}
7951
 
 
7952
 
# func_basename file
7953
 
func_basename ()
7954
 
{
7955
 
  func_basename_result="${1##*/}"
7956
 
}
7957
 
 
7958
 
# func_dirname_and_basename file append nondir_replacement
7959
 
# perform func_basename and func_dirname in a single function
7960
 
# call:
7961
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7962
 
#             add APPEND to the result, otherwise set result
7963
 
#             to NONDIR_REPLACEMENT.
7964
 
#             value returned in "$func_dirname_result"
7965
 
#   basename: Compute filename of FILE.
7966
 
#             value retuned in "$func_basename_result"
7967
 
# Implementation must be kept synchronized with func_dirname
7968
 
# and func_basename. For efficiency, we do not delegate to
7969
 
# those functions but instead duplicate the functionality here.
7970
 
func_dirname_and_basename ()
7971
 
{
7972
 
  case ${1} in
7973
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7974
 
    *  ) func_dirname_result="${3}" ;;
7975
 
  esac
7976
 
  func_basename_result="${1##*/}"
7977
 
}
7978
 
 
7979
 
# func_stripname prefix suffix name
7980
 
# strip PREFIX and SUFFIX off of NAME.
7981
 
# PREFIX and SUFFIX must not contain globbing or regex special
7982
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7983
 
# dot (in which case that matches only a dot).
7984
 
func_stripname ()
7985
 
{
7986
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7987
 
  # positional parameters, so assign one to ordinary parameter first.
7988
 
  func_stripname_result=${3}
7989
 
  func_stripname_result=${func_stripname_result#"${1}"}
7990
 
  func_stripname_result=${func_stripname_result%"${2}"}
7991
 
}
7992
 
 
7993
 
# func_opt_split
7994
 
func_opt_split ()
7995
 
{
7996
 
  func_opt_split_opt=${1%%=*}
7997
 
  func_opt_split_arg=${1#*=}
7998
 
}
7999
 
 
8000
 
# func_lo2o object
8001
 
func_lo2o ()
8002
 
{
8003
 
  case ${1} in
8004
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8005
 
    *)    func_lo2o_result=${1} ;;
8006
 
  esac
8007
 
}
8008
 
 
8009
 
# func_xform libobj-or-source
8010
 
func_xform ()
8011
 
{
8012
 
  func_xform_result=${1%.*}.lo
8013
 
}
8014
 
 
8015
 
# func_arith arithmetic-term...
8016
 
func_arith ()
8017
 
{
8018
 
  func_arith_result=$(( $[*] ))
8019
 
}
8020
 
 
8021
 
# func_len string
8022
 
# STRING may not start with a hyphen.
8023
 
func_len ()
8024
 
{
8025
 
  func_len_result=${#1}
8026
 
}
8027
 
 
8028
 
_LT_EOF
8029
 
    ;;
8030
 
  *) # Bourne compatible functions.
8031
 
    cat << \_LT_EOF >> "$cfgfile"
8032
 
 
8033
 
# func_dirname file append nondir_replacement
8034
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8035
 
# otherwise set result to NONDIR_REPLACEMENT.
8036
 
func_dirname ()
8037
 
{
8038
 
  # Extract subdirectory from the argument.
8039
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8040
 
  if test "X$func_dirname_result" = "X${1}"; then
8041
 
    func_dirname_result="${3}"
8042
 
  else
8043
 
    func_dirname_result="$func_dirname_result${2}"
8044
 
  fi
8045
 
}
8046
 
 
8047
 
# func_basename file
8048
 
func_basename ()
8049
 
{
8050
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8051
 
}
8052
 
 
8053
 
dnl func_dirname_and_basename
8054
 
dnl A portable version of this function is already defined in general.m4sh
8055
 
dnl so there is no need for it here.
8056
 
 
8057
 
# func_stripname prefix suffix name
8058
 
# strip PREFIX and SUFFIX off of NAME.
8059
 
# PREFIX and SUFFIX must not contain globbing or regex special
8060
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8061
 
# dot (in which case that matches only a dot).
8062
 
# func_strip_suffix prefix name
8063
 
func_stripname ()
8064
 
{
8065
 
  case ${2} in
8066
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8067
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8068
 
  esac
8069
 
}
8070
 
 
8071
 
# sed scripts:
8072
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8073
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8074
 
 
8075
 
# func_opt_split
8076
 
func_opt_split ()
8077
 
{
8078
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8079
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8080
 
}
8081
 
 
8082
 
# func_lo2o object
8083
 
func_lo2o ()
8084
 
{
8085
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8086
 
}
8087
 
 
8088
 
# func_xform libobj-or-source
8089
 
func_xform ()
8090
 
{
8091
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8092
 
}
8093
 
 
8094
 
# func_arith arithmetic-term...
8095
 
func_arith ()
8096
 
{
8097
 
  func_arith_result=`expr "$[@]"`
8098
 
}
8099
 
 
8100
 
# func_len string
8101
 
# STRING may not start with a hyphen.
8102
 
func_len ()
8103
 
{
8104
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8105
 
}
8106
 
 
8107
 
_LT_EOF
8108
 
esac
8109
 
 
8110
 
case $lt_shell_append in
8111
 
  yes)
8112
 
    cat << \_LT_EOF >> "$cfgfile"
8113
 
 
8114
 
# func_append var value
8115
 
# Append VALUE to the end of shell variable VAR.
8116
 
func_append ()
8117
 
{
8118
 
  eval "$[1]+=\$[2]"
8119
 
}
8120
 
_LT_EOF
8121
 
    ;;
8122
 
  *)
8123
 
    cat << \_LT_EOF >> "$cfgfile"
8124
 
 
8125
 
# func_append var value
8126
 
# Append VALUE to the end of shell variable VAR.
8127
 
func_append ()
8128
 
{
8129
 
  eval "$[1]=\$$[1]\$[2]"
8130
 
}
8131
 
 
8132
 
_LT_EOF
8133
 
    ;;
8134
 
  esac
8135
 
])
 
8367
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8368
# ------------------------------------------------------
 
8369
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8370
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8371
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8372
[dnl {
 
8373
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8374
$1 ()\
 
8375
{\
 
8376
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8377
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8378
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8379
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8380
test 0 -eq $? || _lt_function_replace_fail=:
 
8381
])
 
8382
 
 
8383
 
 
8384
# _LT_PROG_REPLACE_SHELLFNS
 
8385
# -------------------------
 
8386
# Replace existing portable implementations of several shell functions with
 
8387
# equivalent extended shell implementations where those features are available..
 
8388
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8389
[if test x"$xsi_shell" = xyes; then
 
8390
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8391
    case ${1} in
 
8392
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8393
      *  ) func_dirname_result="${3}" ;;
 
8394
    esac])
 
8395
 
 
8396
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8397
    func_basename_result="${1##*/}"])
 
8398
 
 
8399
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8400
    case ${1} in
 
8401
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8402
      *  ) func_dirname_result="${3}" ;;
 
8403
    esac
 
8404
    func_basename_result="${1##*/}"])
 
8405
 
 
8406
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8407
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8408
    # positional parameters, so assign one to ordinary parameter first.
 
8409
    func_stripname_result=${3}
 
8410
    func_stripname_result=${func_stripname_result#"${1}"}
 
8411
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8412
 
 
8413
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8414
    func_split_long_opt_name=${1%%=*}
 
8415
    func_split_long_opt_arg=${1#*=}])
 
8416
 
 
8417
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8418
    func_split_short_opt_arg=${1#??}
 
8419
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8420
 
 
8421
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8422
    case ${1} in
 
8423
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8424
      *)    func_lo2o_result=${1} ;;
 
8425
    esac])
 
8426
 
 
8427
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8428
 
 
8429
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8430
 
 
8431
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8432
fi
 
8433
 
 
8434
if test x"$lt_shell_append" = xyes; then
 
8435
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8436
 
 
8437
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8438
    func_quote_for_eval "${2}"
 
8439
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8440
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8441
 
 
8442
  # Save a `func_append' function call where possible by direct use of '+='
 
8443
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8444
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8445
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8446
  test 0 -eq $? || _lt_function_replace_fail=:
 
8447
else
 
8448
  # Save a `func_append' function call even when '+=' is not available
 
8449
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8450
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8451
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8452
  test 0 -eq $? || _lt_function_replace_fail=:
 
8453
fi
 
8454
 
 
8455
if test x"$_lt_function_replace_fail" = x":"; then
 
8456
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8457
fi
 
8458
])
 
8459
 
 
8460
# _LT_PATH_CONVERSION_FUNCTIONS
 
8461
# -----------------------------
 
8462
# Determine which file name conversion functions should be used by
 
8463
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8464
# for certain cross-compile configurations and native mingw.
 
8465
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8466
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8467
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8468
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8469
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8470
[case $host in
 
8471
  *-*-mingw* )
 
8472
    case $build in
 
8473
      *-*-mingw* ) # actually msys
 
8474
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8475
        ;;
 
8476
      *-*-cygwin* )
 
8477
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8478
        ;;
 
8479
      * ) # otherwise, assume *nix
 
8480
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8481
        ;;
 
8482
    esac
 
8483
    ;;
 
8484
  *-*-cygwin* )
 
8485
    case $build in
 
8486
      *-*-mingw* ) # actually msys
 
8487
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8488
        ;;
 
8489
      *-*-cygwin* )
 
8490
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8491
        ;;
 
8492
      * ) # otherwise, assume *nix
 
8493
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8494
        ;;
 
8495
    esac
 
8496
    ;;
 
8497
  * ) # unhandled hosts (and "normal" native builds)
 
8498
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8499
    ;;
 
8500
esac
 
8501
])
 
8502
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8503
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8504
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8505
         [0], [convert $build file names to $host format])dnl
 
8506
 
 
8507
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8508
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8509
[#assume ordinary cross tools, or native build.
 
8510
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8511
case $host in
 
8512
  *-*-mingw* )
 
8513
    case $build in
 
8514
      *-*-mingw* ) # actually msys
 
8515
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8516
        ;;
 
8517
    esac
 
8518
    ;;
 
8519
esac
 
8520
])
 
8521
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8522
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8523
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8524
         [0], [convert $build files to toolchain format])dnl
 
8525
])# _LT_PATH_CONVERSION_FUNCTIONS
8136
8526
 
8137
8527
# Helper functions for option handling.                    -*- Autoconf -*-
8138
8528
#
8631
9021
# unlimited permission to copy and/or distribute it, with or without
8632
9022
# modifications, as long as this notice is preserved.
8633
9023
 
8634
 
# Generated from ltversion.in.
 
9024
# @configure_input@
8635
9025
 
8636
 
# serial 3175 ltversion.m4
 
9026
# serial 3293 ltversion.m4
8637
9027
# This file is part of GNU Libtool
8638
9028
 
8639
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
8640
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
 
9029
m4_define([LT_PACKAGE_VERSION], [2.4])
 
9030
m4_define([LT_PACKAGE_REVISION], [1.3293])
8641
9031
 
8642
9032
AC_DEFUN([LTVERSION_VERSION],
8643
 
[macro_version='2.2.10'
8644
 
macro_revision='1.3175'
 
9033
[macro_version='2.4'
 
9034
macro_revision='1.3293'
8645
9035
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8646
9036
_LT_DECL(, macro_revision, 0)
8647
9037
])
8915
9305
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8916
9306
installed software in a non-standard prefix.
8917
9307
 
8918
 
_PKG_TEXT])
 
9308
_PKG_TEXT])[]dnl
8919
9309
        ])
8920
9310
elif test $pkg_failed = untried; then
8921
9311
        AC_MSG_RESULT([no])
8926
9316
 
8927
9317
_PKG_TEXT
8928
9318
 
8929
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
9319
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
8930
9320
        ])
8931
9321
else
8932
9322
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS