Diff for /embedaddon/libxml2/m4/libtool.m4 between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 23:37:58 version 1.1.1.2, 2013/07/22 01:22:22
Line 168  _LT_DECL([], [exeext], [0], [Executable file suffix (n Line 168  _LT_DECL([], [exeext], [0], [Executable file suffix (n
 dnl  dnl
 m4_require([_LT_FILEUTILS_DEFAULTS])dnl  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 m4_require([_LT_CHECK_SHELL_FEATURES])dnl  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
   m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
 m4_require([_LT_CMD_RELOAD])dnl  m4_require([_LT_CMD_RELOAD])dnl
 m4_require([_LT_CHECK_MAGIC_METHOD])dnl  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
 m4_require([_LT_CMD_OLD_ARCHIVE])dnl  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   m4_require([_LT_WITH_SYSROOT])dnl
   
 _LT_CONFIG_LIBTOOL_INIT([  _LT_CONFIG_LIBTOOL_INIT([
 # See if we are running on zsh, and set the options which allow our  # See if we are running on zsh, and set the options which allow our
Line 748  _LT_EOF Line 751  _LT_EOF
   # if finds mixed CR/LF and LF-only lines.  Since sed operates in    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   # text mode, it properly converts lines to CR/LF.  This bash problem    # text mode, it properly converts lines to CR/LF.  This bash problem
   # is reportedly fixed, but why not run on old versions too?    # is reportedly fixed, but why not run on old versions too?
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \  sed '$q' "$ltmain" >> "$cfgfile" \
    || (rm -f "$cfgfile"; exit 1)     || (rm -f "$cfgfile"; exit 1)
   
  _LT_PROG_XSI_SHELLFNS  _LT_PROG_REPLACE_SHELLFNS
   
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \   mv -f "$cfgfile" "$ofile" ||
    || (rm -f "$cfgfile"; exit 1) 
 
  mv -f "$cfgfile" "$ofile" || 
     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   chmod +x "$ofile"    chmod +x "$ofile"
 ],  ],
Line 1073  m4_defun([_LT_DARWIN_LINKER_FEATURES], Line 1073  m4_defun([_LT_DARWIN_LINKER_FEATURES],
   fi    fi
 ])  ])
   
# _LT_SYS_MODULE_PATH_AIX# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
# -----------------------# ----------------------------------
 # Links a minimal program and checks the executable  # Links a minimal program and checks the executable
 # for the system default hardcoded library path. In most cases,  # for the system default hardcoded library path. In most cases,
 # this is /usr/lib:/lib, but when the MPI compilers are used  # this is /usr/lib:/lib, but when the MPI compilers are used
 # the location of the communication and MPI libs are included too.  # the location of the communication and MPI libs are included too.
 # If we don't find anything, use the default library path according  # If we don't find anything, use the default library path according
 # to the aix ld manual.  # to the aix ld manual.
   # Store the results from the different compilers for each TAGNAME.
   # Allow to override them for all tags through lt_cv_aix_libpath.
 m4_defun([_LT_SYS_MODULE_PATH_AIX],  m4_defun([_LT_SYS_MODULE_PATH_AIX],
 [m4_require([_LT_DECL_SED])dnl  [m4_require([_LT_DECL_SED])dnl
AC_LINK_IFELSE(AC_LANG_PROGRAM,[if test "${lt_cv_aix_libpath+set}" = set; then
lt_aix_libpath_sed='  aix_libpath=$lt_cv_aix_libpath
    /Import File Strings/,/^$/ {else
        /^0/ {  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
            s/^0  *\(.*\)$/\1/  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
            p  lt_aix_libpath_sed='[
        }      /Import File Strings/,/^$/ {
    }'          /^0/ {
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`              s/^0  *\([^ ]*\) *$/\1/
# Check for a 64-bit object if we didn't find anything.              p
if test -z "$aix_libpath"; then          }
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`      }]'
fi],[])  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  # Check for a 64-bit object if we didn't find anything.
   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   fi],[])
   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
   fi
   ])
   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 fi
 ])# _LT_SYS_MODULE_PATH_AIX  ])# _LT_SYS_MODULE_PATH_AIX
   
   
Line 1121  ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO Line 1132  ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   
 AC_MSG_CHECKING([how to print strings])  AC_MSG_CHECKING([how to print strings])
 # Test print first, because it will be a builtin if present.  # Test print first, because it will be a builtin if present.
if test "X`print -r -- -n 2>/dev/null`" = X-n && \if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   ECHO='print -r --'    ECHO='print -r --'
 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then  elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
Line 1165  _LT_DECL([], [ECHO], [1], [An echo program that protec Line 1176  _LT_DECL([], [ECHO], [1], [An echo program that protec
 ])# _LT_PROG_ECHO_BACKSLASH  ])# _LT_PROG_ECHO_BACKSLASH
   
   
   # _LT_WITH_SYSROOT
   # ----------------
   AC_DEFUN([_LT_WITH_SYSROOT],
   [AC_MSG_CHECKING([for sysroot])
   AC_ARG_WITH([sysroot],
   [  --with-sysroot[=DIR] Search for dependent libraries within DIR
                           (or the compiler's sysroot if not specified).],
   [], [with_sysroot=no])
   
   dnl lt_sysroot will always be passed unquoted.  We quote it here
   dnl in case the user passed a directory name.
   lt_sysroot=
   case ${with_sysroot} in #(
    yes)
      if test "$GCC" = yes; then
        lt_sysroot=`$CC --print-sysroot 2>/dev/null`
      fi
      ;; #(
    /*)
      lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
      ;; #(
    no|'')
      ;; #(
    *)
      AC_MSG_RESULT([${with_sysroot}])
      AC_MSG_ERROR([The sysroot must be an absolute path.])
      ;;
   esac
   
    AC_MSG_RESULT([${lt_sysroot:-no}])
   _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   [dependent libraries, and in which our libraries should be installed.])])
   
 # _LT_ENABLE_LOCK  # _LT_ENABLE_LOCK
 # ---------------  # ---------------
 m4_defun([_LT_ENABLE_LOCK],  m4_defun([_LT_ENABLE_LOCK],
Line 1311  need_locks="$enable_libtool_lock" Line 1355  need_locks="$enable_libtool_lock"
 ])# _LT_ENABLE_LOCK  ])# _LT_ENABLE_LOCK
   
   
   # _LT_PROG_AR
   # -----------
   m4_defun([_LT_PROG_AR],
   [AC_CHECK_TOOLS(AR, [ar], false)
   : ${AR=ar}
   : ${AR_FLAGS=cru}
   _LT_DECL([], [AR], [1], [The archiver])
   _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
   
   AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
     [lt_cv_ar_at_file=no
      AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
        [echo conftest.$ac_objext > conftest.lst
         lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
         AC_TRY_EVAL([lt_ar_try])
         if test "$ac_status" -eq 0; then
           # Ensure the archiver fails upon bogus file names.
           rm -f conftest.$ac_objext libconftest.a
           AC_TRY_EVAL([lt_ar_try])
           if test "$ac_status" -ne 0; then
             lt_cv_ar_at_file=@
           fi
         fi
         rm -f conftest.* libconftest.a
        ])
     ])
   
   if test "x$lt_cv_ar_at_file" = xno; then
     archiver_list_spec=
   else
     archiver_list_spec=$lt_cv_ar_at_file
   fi
   _LT_DECL([], [archiver_list_spec], [1],
     [How to feed a file listing to the archiver])
   ])# _LT_PROG_AR
   
   
 # _LT_CMD_OLD_ARCHIVE  # _LT_CMD_OLD_ARCHIVE
 # -------------------  # -------------------
 m4_defun([_LT_CMD_OLD_ARCHIVE],  m4_defun([_LT_CMD_OLD_ARCHIVE],
[AC_CHECK_TOOL(AR, ar, false)[_LT_PROG_AR
test -z "$AR" && AR=ar 
test -z "$AR_FLAGS" && AR_FLAGS=cru 
_LT_DECL([], [AR], [1], [The archiver]) 
_LT_DECL([], [AR_FLAGS], [1]) 
   
 AC_CHECK_TOOL(STRIP, strip, :)  AC_CHECK_TOOL(STRIP, strip, :)
 test -z "$STRIP" && STRIP=:  test -z "$STRIP" && STRIP=:
Line 1658  else Line 1735  else
 /* When -fvisbility=hidden is used, assume the code has been annotated  /* When -fvisbility=hidden is used, assume the code has been annotated
    correspondingly for the symbols needed.  */     correspondingly for the symbols needed.  */
 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))  #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
void fnord () __attribute__((visibility("default")));int fnord () __attribute__((visibility("default")));
 #endif  #endif
   
void fnord () { int i=42; }int fnord () { return 42; }
 int main ()  int main ()
 {  {
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Line 2201  cygwin* | mingw* | pw32* | cegcc*) Line 2278  cygwin* | mingw* | pw32* | cegcc*)
   need_version=no    need_version=no
   need_lib_prefix=no    need_lib_prefix=no
   
  case $GCC,$host_os in  case $GCC,$cc_basename in
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)  yes,*)
     # gcc
     library_names_spec='$libname.dll.a'      library_names_spec='$libname.dll.a'
     # DLL is installed to $(libdir)/../bin by postinstall_cmds      # DLL is installed to $(libdir)/../bin by postinstall_cmds
     postinstall_cmds='base_file=`basename \${file}`~      postinstall_cmds='base_file=`basename \${file}`~
Line 2235  m4_if([$1], [],[ Line 2313  m4_if([$1], [],[
       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
       ;;        ;;
     esac      esac
       dynamic_linker='Win32 ld.exe'
     ;;      ;;
   
     *,cl*)
       # Native MSVC
       libname_spec='$name'
       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
       library_names_spec='${libname}.dll.lib'
   
       case $build_os in
       mingw*)
         sys_lib_search_path_spec=
         lt_save_ifs=$IFS
         IFS=';'
         for lt_path in $LIB
         do
           IFS=$lt_save_ifs
           # Let DOS variable expansion print the short 8.3 style file name.
           lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
           sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
         done
         IFS=$lt_save_ifs
         # Convert to MSYS style.
         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
         ;;
       cygwin*)
         # Convert to unix form, then to dos form, then back to unix form
         # but this time dos style (no spaces!) so that the unix form looks
         # like /cygdrive/c/PROGRA~1:/cygdr...
         sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
         sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
         sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
         ;;
       *)
         sys_lib_search_path_spec="$LIB"
         if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
           # It is most probably a Windows format PATH.
           sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
         else
           sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
         fi
         # FIXME: find the short name or the path components, as spaces are
         # common. (e.g. "Program Files" -> "PROGRA~1")
         ;;
       esac
   
       # DLL is installed to $(libdir)/../bin by postinstall_cmds
       postinstall_cmds='base_file=`basename \${file}`~
         dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
         dldir=$destdir/`dirname \$dlpath`~
         test -d \$dldir || mkdir -p \$dldir~
         $install_prog $dir/$dlname \$dldir/$dlname'
       postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
         dlpath=$dir/\$dldll~
          $RM \$dlpath'
       shlibpath_overrides_runpath=yes
       dynamic_linker='Win32 link.exe'
       ;;
   
   *)    *)
       # Assume MSVC wrapper
     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
       dynamic_linker='Win32 ld.exe'
     ;;      ;;
   esac    esac
   dynamic_linker='Win32 ld.exe'  
   # FIXME: first we should search . and the directory the executable is in    # FIXME: first we should search . and the directory the executable is in
   shlibpath_var=PATH    shlibpath_var=PATH
   ;;    ;;
Line 2949  case $reload_flag in Line 3085  case $reload_flag in
 esac  esac
 reload_cmds='$LD$reload_flag -o $output$reload_objs'  reload_cmds='$LD$reload_flag -o $output$reload_objs'
 case $host_os in  case $host_os in
     cygwin* | mingw* | pw32* | cegcc*)
       if test "$GCC" != yes; then
         reload_cmds=false
       fi
       ;;
   darwin*)    darwin*)
     if test "$GCC" = yes; then      if test "$GCC" = yes; then
       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Line 3167  tpf*) Line 3308  tpf*)
   ;;    ;;
 esac  esac
 ])  ])
   
   file_magic_glob=
   want_nocaseglob=no
   if test "$build" = "$host"; then
     case $host_os in
     mingw* | pw32*)
       if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
         want_nocaseglob=yes
       else
         file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
       fi
       ;;
     esac
   fi
   
 file_magic_cmd=$lt_cv_file_magic_cmd  file_magic_cmd=$lt_cv_file_magic_cmd
 deplibs_check_method=$lt_cv_deplibs_check_method  deplibs_check_method=$lt_cv_deplibs_check_method
 test -z "$deplibs_check_method" && deplibs_check_method=unknown  test -z "$deplibs_check_method" && deplibs_check_method=unknown
Line 3174  test -z "$deplibs_check_method" && deplibs_check_metho Line 3330  test -z "$deplibs_check_method" && deplibs_check_metho
 _LT_DECL([], [deplibs_check_method], [1],  _LT_DECL([], [deplibs_check_method], [1],
     [Method to check whether dependent libraries are shared objects])      [Method to check whether dependent libraries are shared objects])
 _LT_DECL([], [file_magic_cmd], [1],  _LT_DECL([], [file_magic_cmd], [1],
    [Command to use when deplibs_check_method == "file_magic"])    [Command to use when deplibs_check_method = "file_magic"])
 _LT_DECL([], [file_magic_glob], [1],
     [How to find potential files when deplibs_check_method = "file_magic"])
 _LT_DECL([], [want_nocaseglob], [1],
     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 ])# _LT_CHECK_MAGIC_METHOD  ])# _LT_CHECK_MAGIC_METHOD
   
   
Line 3277  dnl aclocal-1.4 backwards compatibility: Line 3437  dnl aclocal-1.4 backwards compatibility:
 dnl AC_DEFUN([AM_PROG_NM], [])  dnl AC_DEFUN([AM_PROG_NM], [])
 dnl AC_DEFUN([AC_PROG_NM], [])  dnl AC_DEFUN([AC_PROG_NM], [])
   
   # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
   # --------------------------------
   # how to determine the name of the shared library
   # associated with a specific link library.
   #  -- PORTME fill in with the dynamic library characteristics
   m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
   [m4_require([_LT_DECL_EGREP])
   m4_require([_LT_DECL_OBJDUMP])
   m4_require([_LT_DECL_DLLTOOL])
   AC_CACHE_CHECK([how to associate runtime and link libraries],
   lt_cv_sharedlib_from_linklib_cmd,
   [lt_cv_sharedlib_from_linklib_cmd='unknown'
   
   case $host_os in
   cygwin* | mingw* | pw32* | cegcc*)
     # two different shell functions defined in ltmain.sh
     # decide which to use based on capabilities of $DLLTOOL
     case `$DLLTOOL --help 2>&1` in
     *--identify-strict*)
       lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
       ;;
     *)
       lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
       ;;
     esac
     ;;
   *)
     # fallback: assume linklib IS sharedlib
     lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     ;;
   esac
   ])
   sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   
   _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
       [Command to associate shared and link libraries])
   ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
   
   
   # _LT_PATH_MANIFEST_TOOL
   # ----------------------
   # locate the manifest tool
   m4_defun([_LT_PATH_MANIFEST_TOOL],
   [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
   test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
     [lt_cv_path_mainfest_tool=no
     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     cat conftest.err >&AS_MESSAGE_LOG_FD
     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
       lt_cv_path_mainfest_tool=yes
     fi
     rm -f conftest*])
   if test "x$lt_cv_path_mainfest_tool" != xyes; then
     MANIFEST_TOOL=:
   fi
   _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
   ])# _LT_PATH_MANIFEST_TOOL
   
   
 # LT_LIB_M  # LT_LIB_M
 # --------  # --------
 # check for math library  # check for math library
Line 3403  esac Line 3624  esac
 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   
 # Transform an extracted symbol line into symbol name and symbol address  # Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
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'"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'"
   
 # Handle CRLF in mingw tool chain  # Handle CRLF in mingw tool chain
 opt_cr=  opt_cr=
Line 3440  for ac_symprfx in "" "_"; do Line 3661  for ac_symprfx in "" "_"; do
   else    else
     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   fi    fi
     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   
   # Check to see that the pipe works correctly.    # Check to see that the pipe works correctly.
   pipe_works=no    pipe_works=no
Line 3473  _LT_EOF Line 3695  _LT_EOF
       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then          if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
           cat <<_LT_EOF > conftest.$ac_ext            cat <<_LT_EOF > conftest.$ac_ext
   /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
   /* DATA imports from DLLs on WIN32 con't be const, because runtime
      relocations are performed -- see ld's documentation on pseudo-relocs.  */
   # define LT@&t@_DLSYM_CONST
   #elif defined(__osf__)
   /* This system does not cope well with relocations in const data.  */
   # define LT@&t@_DLSYM_CONST
   #else
   # define LT@&t@_DLSYM_CONST const
   #endif
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
Line 3484  _LT_EOF Line 3718  _LT_EOF
           cat <<_LT_EOF >> conftest.$ac_ext            cat <<_LT_EOF >> conftest.$ac_ext
   
 /* The mapping between symbol names and symbols.  */  /* The mapping between symbol names and symbols.  */
const struct {LT@&t@_DLSYM_CONST struct {
   const char *name;    const char *name;
   void       *address;    void       *address;
 }  }
Line 3510  static const void *lt_preloaded_setup() { Line 3744  static const void *lt_preloaded_setup() {
 _LT_EOF  _LT_EOF
           # Now try linking the two files.            # Now try linking the two files.
           mv conftest.$ac_objext conftstm.$ac_objext            mv conftest.$ac_objext conftstm.$ac_objext
          lt_save_LIBS="$LIBS"          lt_globsym_save_LIBS=$LIBS
          lt_save_CFLAGS="$CFLAGS"          lt_globsym_save_CFLAGS=$CFLAGS
           LIBS="conftstm.$ac_objext"            LIBS="conftstm.$ac_objext"
           CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"            CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
           if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then            if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
             pipe_works=yes              pipe_works=yes
           fi            fi
          LIBS="$lt_save_LIBS"          LIBS=$lt_globsym_save_LIBS
          CFLAGS="$lt_save_CFLAGS"          CFLAGS=$lt_globsym_save_CFLAGS
         else          else
           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD            echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
         fi          fi
Line 3551  else Line 3785  else
   AC_MSG_RESULT(ok)    AC_MSG_RESULT(ok)
 fi  fi
   
   # Response file support.
   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     nm_file_list_spec='@'
   elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
     nm_file_list_spec='@'
   fi
   
 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
     [Take the output of nm and produce a listing of raw symbols and C names])      [Take the output of nm and produce a listing of raw symbols and C names])
 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
Line 3561  _LT_DECL([global_symbol_to_c_name_address], Line 3802  _LT_DECL([global_symbol_to_c_name_address],
 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],      [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
     [Transform the output of nm in a C name address pair when lib prefix is needed])      [Transform the output of nm in a C name address pair when lib prefix is needed])
   _LT_DECL([], [nm_file_list_spec], [1],
       [Specify filename containing input files for $NM])
 ]) # _LT_CMD_GLOBAL_SYMBOLS  ]) # _LT_CMD_GLOBAL_SYMBOLS
   
   
Line 3572  _LT_TAGVAR(lt_prog_compiler_wl, $1)= Line 3815  _LT_TAGVAR(lt_prog_compiler_wl, $1)=
 _LT_TAGVAR(lt_prog_compiler_pic, $1)=  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 _LT_TAGVAR(lt_prog_compiler_static, $1)=  _LT_TAGVAR(lt_prog_compiler_static, $1)=
   
 AC_MSG_CHECKING([for $compiler option to produce PIC])  
 m4_if([$1], [CXX], [  m4_if([$1], [CXX], [
   # C++ specific cases for pic, static, wl, etc.    # C++ specific cases for pic, static, wl, etc.
   if test "$GXX" = yes; then    if test "$GXX" = yes; then
Line 3677  m4_if([$1], [CXX], [ Line 3919  m4_if([$1], [CXX], [
           ;;            ;;
         esac          esac
         ;;          ;;
         mingw* | cygwin* | os2* | pw32* | cegcc*)
           # This hack is so that the source file can tell whether it is being
           # built for inclusion in a dll (and should export symbols for example).
           m4_if([$1], [GCJ], [],
             [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
           ;;
       dgux*)        dgux*)
         case $cc_basename in          case $cc_basename in
           ec++*)            ec++*)
Line 4051  m4_if([$1], [CXX], [ Line 4299  m4_if([$1], [CXX], [
         _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'          _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
         _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'          _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
         ;;          ;;
         nagfor*)
           # NAG Fortran compiler
           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
           ;;
       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)        pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
         # Portland Group compilers (*not* the Pentium gcc compiler,          # Portland Group compilers (*not* the Pentium gcc compiler,
         # which looks to be a dead project)          # which looks to be a dead project)
Line 4170  case $host_os in Line 4424  case $host_os in
     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"      _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
     ;;      ;;
 esac  esac
 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])  
 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],  
         [How to pass a linker flag through the compiler])  
   
   AC_CACHE_CHECK([for $compiler option to produce PIC],
     [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
     [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
   _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
   
 #  #
 # Check to make sure the PIC flag actually works.  # Check to make sure the PIC flag actually works.
 #  #
Line 4191  fi Line 4447  fi
 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
         [Additional compiler flags for building library objects])          [Additional compiler flags for building library objects])
   
   _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
           [How to pass a linker flag through the compiler])
 #  #
 # Check to make sure the static flag actually works.  # Check to make sure the static flag actually works.
 #  #
Line 4211  _LT_TAGDECL([link_static_flag], [lt_prog_compiler_stat Line 4469  _LT_TAGDECL([link_static_flag], [lt_prog_compiler_stat
 m4_defun([_LT_LINKER_SHLIBS],  m4_defun([_LT_LINKER_SHLIBS],
 [AC_REQUIRE([LT_PATH_LD])dnl  [AC_REQUIRE([LT_PATH_LD])dnl
 AC_REQUIRE([LT_PATH_NM])dnl  AC_REQUIRE([LT_PATH_NM])dnl
   m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 m4_require([_LT_FILEUTILS_DEFAULTS])dnl  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 m4_require([_LT_DECL_EGREP])dnl  m4_require([_LT_DECL_EGREP])dnl
 m4_require([_LT_DECL_SED])dnl  m4_require([_LT_DECL_SED])dnl
Line 4219  m4_require([_LT_TAG_COMPILER])dnl Line 4478  m4_require([_LT_TAG_COMPILER])dnl
 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 m4_if([$1], [CXX], [  m4_if([$1], [CXX], [
   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
   case $host_os in    case $host_os in
   aix[[4-9]]*)    aix[[4-9]]*)
     # If we're using GNU nm, then we don't want the "-C" option.      # If we're using GNU nm, then we don't want the "-C" option.
Line 4233  m4_if([$1], [CXX], [ Line 4493  m4_if([$1], [CXX], [
     ;;      ;;
   pw32*)    pw32*)
     _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"      _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  ;;    ;;
   cygwin* | mingw* | cegcc*)    cygwin* | mingw* | cegcc*)
    _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'    case $cc_basename in
  ;;    cl*) ;;
     *)
       _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'
       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
       ;;
     esac
     ;;
   *)    *)
     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;    ;;
   esac    esac
   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']  
 ], [  ], [
   runpath_var=    runpath_var=
   _LT_TAGVAR(allow_undefined_flag, $1)=    _LT_TAGVAR(allow_undefined_flag, $1)=
Line 4409  _LT_EOF Line 4674  _LT_EOF
       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
       _LT_TAGVAR(always_export_symbols, $1)=no        _LT_TAGVAR(always_export_symbols, $1)=no
       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
      _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'      _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'
       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
   
       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
         _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'          _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'
Line 4457  _LT_EOF Line 4723  _LT_EOF
       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
          && test "$tmp_diet" = no           && test "$tmp_diet" = no
       then        then
        tmp_addflag=        tmp_addflag=' $pic_flag'
         tmp_sharedflag='-shared'          tmp_sharedflag='-shared'
         case $cc_basename,$host_cpu in          case $cc_basename,$host_cpu in
         pgcc*)                          # Portland Group C compiler          pgcc*)                          # Portland Group C compiler
Line 4527  _LT_EOF Line 4793  _LT_EOF
         _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
         wlarc=          wlarc=
       else        else
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        _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'        _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'
       fi        fi
       ;;        ;;
   
Line 4546  _LT_EOF Line 4812  _LT_EOF
   
 _LT_EOF  _LT_EOF
       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        _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'        _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'
       else        else
         _LT_TAGVAR(ld_shlibs, $1)=no          _LT_TAGVAR(ld_shlibs, $1)=no
       fi        fi
Line 4593  _LT_EOF Line 4859  _LT_EOF
   
     *)      *)
       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        _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'        _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'
       else        else
         _LT_TAGVAR(ld_shlibs, $1)=no          _LT_TAGVAR(ld_shlibs, $1)=no
       fi        fi
Line 4724  _LT_EOF Line 4990  _LT_EOF
         _LT_TAGVAR(allow_undefined_flag, $1)='-berok'          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
         # Determine the default libpath from the value encoded in an          # Determine the default libpath from the value encoded in an
         # empty executable.          # empty executable.
        _LT_SYS_MODULE_PATH_AIX        _LT_SYS_MODULE_PATH_AIX([$1])
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
         _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"          _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"
       else        else
Line 4735  _LT_EOF Line 5001  _LT_EOF
         else          else
          # Determine the default libpath from the value encoded in an           # Determine the default libpath from the value encoded in an
          # empty executable.           # empty executable.
         _LT_SYS_MODULE_PATH_AIX         _LT_SYS_MODULE_PATH_AIX([$1])
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
           # Warning - without using the other run time loading flags,            # Warning - without using the other run time loading flags,
           # -berok will link without error, but may produce a broken library.            # -berok will link without error, but may produce a broken library.
Line 4779  _LT_EOF Line 5045  _LT_EOF
       # Microsoft Visual C++.        # Microsoft Visual C++.
       # hardcode_libdir_flag_spec is actually meaningless, as there is        # hardcode_libdir_flag_spec is actually meaningless, as there is
       # no search path for DLLs.        # no search path for DLLs.
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '      case $cc_basename in
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported      cl*)
      # Tell ltmain to make .lib files, not .a files.        # Native MSVC
      libext=lib        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
      # Tell ltmain to make .dll files, not .so files.        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
      shrext_cmds=".dll"        _LT_TAGVAR(always_export_symbols, $1)=yes
      # FIXME: Setting linknames here is a bad hack.        _LT_TAGVAR(file_list_spec, $1)='@'
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='        # Tell ltmain to make .lib files, not .a files.
      # The linker will automatically build a .lib file if we build a DLL.        libext=lib
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'        # Tell ltmain to make .dll files, not .so files.
      # FIXME: Should let the user specify the lib program.        shrext_cmds=".dll"
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'        # FIXME: Setting linknames here is a bad hack.
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
           else
             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
           fi~
           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
           linknames='
         # The linker will not automatically build a static lib if we build a DLL.
         # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
         _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'
         # Don't use ranlib
         _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
         _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
           lt_tool_outputfile="@TOOL_OUTPUT@"~
           case $lt_outputfile in
             *.exe|*.EXE) ;;
             *)
               lt_outputfile="$lt_outputfile.exe"
               lt_tool_outputfile="$lt_tool_outputfile.exe"
               ;;
           esac~
           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
             $RM "$lt_outputfile.manifest";
           fi'
         ;;
       *)
         # Assume MSVC wrapper
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
         # Tell ltmain to make .lib files, not .a files.
         libext=lib
         # Tell ltmain to make .dll files, not .so files.
         shrext_cmds=".dll"
         # FIXME: Setting linknames here is a bad hack.
         _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
         # The linker will automatically build a .lib file if we build a DLL.
         _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
         # FIXME: Should let the user specify the lib program.
         _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
         ;;
       esac
       ;;        ;;
   
     darwin* | rhapsody*)      darwin* | rhapsody*)
Line 4830  _LT_EOF Line 5139  _LT_EOF
   
     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     freebsd* | dragonfly*)      freebsd* | dragonfly*)
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
       _LT_TAGVAR(hardcode_direct, $1)=yes        _LT_TAGVAR(hardcode_direct, $1)=yes
       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
Line 4838  _LT_EOF Line 5147  _LT_EOF
   
     hpux9*)      hpux9*)
       if test "$GCC" = yes; then        if test "$GCC" = yes; then
        _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'        _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'
       else        else
         _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'          _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'
       fi        fi
Line 4854  _LT_EOF Line 5163  _LT_EOF
   
     hpux10*)      hpux10*)
       if test "$GCC" = yes && test "$with_gnu_ld" = no; then        if test "$GCC" = yes && test "$with_gnu_ld" = no; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
       else        else
         _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'          _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
       fi        fi
Line 4878  _LT_EOF Line 5187  _LT_EOF
           _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
           ;;            ;;
         ia64*)          ia64*)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
           ;;            ;;
         *)          *)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
           ;;            ;;
         esac          esac
       else        else
Line 4928  _LT_EOF Line 5237  _LT_EOF
   
     irix5* | irix6* | nonstopux*)      irix5* | irix6* | nonstopux*)
       if test "$GCC" = yes; then        if test "$GCC" = yes; then
        _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'        _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'
         # Try to use the -exported_symbol ld option, if it does not          # Try to use the -exported_symbol ld option, if it does not
         # work, assume that -exports_file does not work either and          # work, assume that -exports_file does not work either and
         # implicitly export all symbols.          # implicitly export all symbols.
        save_LDFLAGS="$LDFLAGS"        # This should be the same for all languages, so no per-tag cache variable.
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
        AC_LINK_IFELSE(int foo(void) {},          [lt_cv_irix_exported_symbol],
          _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'          [save_LDFLAGS="$LDFLAGS"
        )           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
        LDFLAGS="$save_LDFLAGS"           AC_LINK_IFELSE(
              [AC_LANG_SOURCE(
                 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
                               [C++], [[int foo (void) { return 0; }]],
                               [Fortran 77], [[
       subroutine foo
       end]],
                               [Fortran], [[
       subroutine foo
       end]])])],
               [lt_cv_irix_exported_symbol=yes],
               [lt_cv_irix_exported_symbol=no])
            LDFLAGS="$save_LDFLAGS"])
         if test "$lt_cv_irix_exported_symbol" = yes; then
           _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'
         fi
       else        else
         _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'          _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'
         _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'          _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'
Line 5022  _LT_EOF Line 5346  _LT_EOF
     osf4* | osf5*)      # as osf3* with the addition of -msym flag      osf4* | osf5*)      # as osf3* with the addition of -msym flag
       if test "$GCC" = yes; then        if test "$GCC" = yes; then
         _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
        _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'        _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'
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
       else        else
         _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'          _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
Line 5041  _LT_EOF Line 5365  _LT_EOF
       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'        _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
       if test "$GCC" = yes; then        if test "$GCC" = yes; then
         wlarc='${wl}'          wlarc='${wl}'
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
         _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'          $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'
       else        else
         case `$CC -V 2>&1` in          case `$CC -V 2>&1` in
         *"Compilers 5.0"*)          *"Compilers 5.0"*)
Line 5315  _LT_TAGDECL([], [inherit_rpath], [0], Line 5639  _LT_TAGDECL([], [inherit_rpath], [0],
     to runtime path list])      to runtime path list])
 _LT_TAGDECL([], [link_all_deplibs], [0],  _LT_TAGDECL([], [link_all_deplibs], [0],
     [Whether libtool must link a program against all its dependency libraries])      [Whether libtool must link a program against all its dependency libraries])
 _LT_TAGDECL([], [fix_srcfile_path], [1],  
     [Fix the shell variable $srcfile for the compiler])  
 _LT_TAGDECL([], [always_export_symbols], [0],  _LT_TAGDECL([], [always_export_symbols], [0],
     [Set to "yes" if exported symbols are required])      [Set to "yes" if exported symbols are required])
 _LT_TAGDECL([], [export_symbols_cmds], [2],  _LT_TAGDECL([], [export_symbols_cmds], [2],
Line 5327  _LT_TAGDECL([], [include_expsyms], [1], Line 5649  _LT_TAGDECL([], [include_expsyms], [1],
     [Symbols that must always be exported])      [Symbols that must always be exported])
 _LT_TAGDECL([], [prelink_cmds], [2],  _LT_TAGDECL([], [prelink_cmds], [2],
     [Commands necessary for linking programs (against libraries) with templates])      [Commands necessary for linking programs (against libraries) with templates])
   _LT_TAGDECL([], [postlink_cmds], [2],
       [Commands necessary for finishing linking programs])
 _LT_TAGDECL([], [file_list_spec], [1],  _LT_TAGDECL([], [file_list_spec], [1],
     [Specify filename containing input files])      [Specify filename containing input files])
 dnl FIXME: Not yet implemented  dnl FIXME: Not yet implemented
Line 5428  CC="$lt_save_CC" Line 5752  CC="$lt_save_CC"
 m4_defun([_LT_LANG_CXX_CONFIG],  m4_defun([_LT_LANG_CXX_CONFIG],
 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 m4_require([_LT_DECL_EGREP])dnl  m4_require([_LT_DECL_EGREP])dnl
   m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     (test "X$CXX" != "Xg++"))) ; then      (test "X$CXX" != "Xg++"))) ; then
Line 5489  if test "$_lt_caught_CXX_error" != yes; then Line 5814  if test "$_lt_caught_CXX_error" != yes; then
   
   # Allow CC to be a program name with arguments.    # Allow CC to be a program name with arguments.
   lt_save_CC=$CC    lt_save_CC=$CC
     lt_save_CFLAGS=$CFLAGS
   lt_save_LD=$LD    lt_save_LD=$LD
   lt_save_GCC=$GCC    lt_save_GCC=$GCC
   GCC=$GXX    GCC=$GXX
Line 5506  if test "$_lt_caught_CXX_error" != yes; then Line 5832  if test "$_lt_caught_CXX_error" != yes; then
   fi    fi
   test -z "${LDCXX+set}" || LD=$LDCXX    test -z "${LDCXX+set}" || LD=$LDCXX
   CC=${CXX-"c++"}    CC=${CXX-"c++"}
     CFLAGS=$CXXFLAGS
   compiler=$CC    compiler=$CC
   _LT_TAGVAR(compiler, $1)=$CC    _LT_TAGVAR(compiler, $1)=$CC
   _LT_CC_BASENAME([$compiler])    _LT_CC_BASENAME([$compiler])
Line 5527  if test "$_lt_caught_CXX_error" != yes; then Line 5854  if test "$_lt_caught_CXX_error" != yes; then
       # Check if GNU C++ uses GNU ld as the underlying linker, since the        # Check if GNU C++ uses GNU ld as the underlying linker, since the
       # archiving commands below assume that GNU ld is being used.        # archiving commands below assume that GNU ld is being used.
       if test "$with_gnu_ld" = yes; then        if test "$with_gnu_ld" = yes; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
        _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'        _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'
   
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
Line 5669  if test "$_lt_caught_CXX_error" != yes; then Line 5996  if test "$_lt_caught_CXX_error" != yes; then
           _LT_TAGVAR(allow_undefined_flag, $1)='-berok'            _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
           # Determine the default libpath from the value encoded in an empty            # Determine the default libpath from the value encoded in an empty
           # executable.            # executable.
          _LT_SYS_MODULE_PATH_AIX          _LT_SYS_MODULE_PATH_AIX([$1])
           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
   
           _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"            _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"
Line 5681  if test "$_lt_caught_CXX_error" != yes; then Line 6008  if test "$_lt_caught_CXX_error" != yes; then
           else            else
             # Determine the default libpath from the value encoded in an              # Determine the default libpath from the value encoded in an
             # empty executable.              # empty executable.
            _LT_SYS_MODULE_PATH_AIX            _LT_SYS_MODULE_PATH_AIX([$1])
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
             # Warning - without using the other run time loading flags,              # Warning - without using the other run time loading flags,
             # -berok will link without error, but may produce a broken library.              # -berok will link without error, but may produce a broken library.
Line 5723  if test "$_lt_caught_CXX_error" != yes; then Line 6050  if test "$_lt_caught_CXX_error" != yes; then
         ;;          ;;
   
       cygwin* | mingw* | pw32* | cegcc*)        cygwin* | mingw* | pw32* | cegcc*)
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,        case $GXX,$cc_basename in
        # as there is no search path for DLLs.        ,cl* | no,cl*)
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'          # Native MSVC
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'          # hardcode_libdir_flag_spec is actually meaningless, as there is
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported          # no search path for DLLs.
        _LT_TAGVAR(always_export_symbols, $1)=no          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
           _LT_TAGVAR(always_export_symbols, $1)=yes
           _LT_TAGVAR(file_list_spec, $1)='@'
           # Tell ltmain to make .lib files, not .a files.
           libext=lib
           # Tell ltmain to make .dll files, not .so files.
           shrext_cmds=".dll"
           # FIXME: Setting linknames here is a bad hack.
           _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
           _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
             else
               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
             fi~
             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
             linknames='
           # The linker will not automatically build a static lib if we build a DLL.
           # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
           _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
           # Don't use ranlib
           _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
           _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
             lt_tool_outputfile="@TOOL_OUTPUT@"~
             case $lt_outputfile in
               *.exe|*.EXE) ;;
               *)
                 lt_outputfile="$lt_outputfile.exe"
                 lt_tool_outputfile="$lt_tool_outputfile.exe"
                 ;;
             esac~
             func_to_tool_file "$lt_outputfile"~
             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
               $RM "$lt_outputfile.manifest";
             fi'
           ;;
         *)
           # g++
           # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
           # as there is no search path for DLLs.
           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
           _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
           _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
           _LT_TAGVAR(always_export_symbols, $1)=no
           _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
          _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'            _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'
          # If the export-symbols file already is a .def file (1st line            # If the export-symbols file already is a .def file (1st line
          # is EXPORTS), use it as is; otherwise, prepend...            # is EXPORTS), use it as is; otherwise, prepend...
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
            cp $export_symbols $output_objdir/$soname.def;              cp $export_symbols $output_objdir/$soname.def;
          else            else
            echo EXPORTS > $output_objdir/$soname.def;              echo EXPORTS > $output_objdir/$soname.def;
            cat $export_symbols >> $output_objdir/$soname.def;              cat $export_symbols >> $output_objdir/$soname.def;
          fi~            fi~
          $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'            $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'
        else          else
          _LT_TAGVAR(ld_shlibs, $1)=no            _LT_TAGVAR(ld_shlibs, $1)=no
        fi          fi
        ;;          ;;
         esac
         ;;
       darwin* | rhapsody*)        darwin* | rhapsody*)
         _LT_DARWIN_LINKER_FEATURES($1)          _LT_DARWIN_LINKER_FEATURES($1)
         ;;          ;;
Line 5820  if test "$_lt_caught_CXX_error" != yes; then Line 6193  if test "$_lt_caught_CXX_error" != yes; then
             ;;              ;;
           *)            *)
             if test "$GXX" = yes; then              if test "$GXX" = yes; then
              _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'              _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'
             else              else
               # FIXME: insert proper C++ library support                # FIXME: insert proper C++ library support
               _LT_TAGVAR(ld_shlibs, $1)=no                _LT_TAGVAR(ld_shlibs, $1)=no
Line 5891  if test "$_lt_caught_CXX_error" != yes; then Line 6264  if test "$_lt_caught_CXX_error" != yes; then
                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'                      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
                     ;;                      ;;
                   ia64*)                    ia64*)
                    _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'                    _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'
                     ;;                      ;;
                   *)                    *)
                    _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'                    _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'
                     ;;                      ;;
                 esac                  esac
               fi                fi
Line 5935  if test "$_lt_caught_CXX_error" != yes; then Line 6308  if test "$_lt_caught_CXX_error" != yes; then
           *)            *)
             if test "$GXX" = yes; then              if test "$GXX" = yes; then
               if test "$with_gnu_ld" = no; then                if test "$with_gnu_ld" = no; then
                _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'                _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'
               else                else
                _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'                _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'
               fi                fi
             fi              fi
             _LT_TAGVAR(link_all_deplibs, $1)=yes              _LT_TAGVAR(link_all_deplibs, $1)=yes
Line 6215  if test "$_lt_caught_CXX_error" != yes; then Line 6588  if test "$_lt_caught_CXX_error" != yes; then
                   _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'                    _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'
                   ;;                    ;;
                 *)                  *)
                  _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'                  _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'
                   ;;                    ;;
               esac                esac
   
Line 6302  if test "$_lt_caught_CXX_error" != yes; then Line 6675  if test "$_lt_caught_CXX_error" != yes; then
             if test "$GXX" = yes && test "$with_gnu_ld" = no; then              if test "$GXX" = yes && test "$with_gnu_ld" = no; then
               _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'                _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
               if $CC --version | $GREP -v '^2\.7' > /dev/null; then                if $CC --version | $GREP -v '^2\.7' > /dev/null; then
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'                _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'
                 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~                  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
   
                 # Commands to make compiler produce verbose output that lists                  # Commands to make compiler produce verbose output that lists
                 # what "hidden" libraries, object files and flags are used when                  # what "hidden" libraries, object files and flags are used when
Line 6433  if test "$_lt_caught_CXX_error" != yes; then Line 6806  if test "$_lt_caught_CXX_error" != yes; then
   fi # test -n "$compiler"    fi # test -n "$compiler"
   
   CC=$lt_save_CC    CC=$lt_save_CC
     CFLAGS=$lt_save_CFLAGS
   LDCXX=$LD    LDCXX=$LD
   LD=$lt_save_LD    LD=$lt_save_LD
   GCC=$lt_save_GCC    GCC=$lt_save_GCC
Line 6447  AC_LANG_POP Line 6821  AC_LANG_POP
 ])# _LT_LANG_CXX_CONFIG  ])# _LT_LANG_CXX_CONFIG
   
   
   # _LT_FUNC_STRIPNAME_CNF
   # ----------------------
   # func_stripname_cnf prefix suffix name
   # strip PREFIX and SUFFIX off of NAME.
   # PREFIX and SUFFIX must not contain globbing or regex special
   # characters, hashes, percent signs, but SUFFIX may contain a leading
   # dot (in which case that matches only a dot).
   #
   # This function is identical to the (non-XSI) version of func_stripname,
   # except this one can be used by m4 code that may be executed by configure,
   # rather than the libtool script.
   m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
   AC_REQUIRE([_LT_DECL_SED])
   AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
   func_stripname_cnf ()
   {
     case ${2} in
     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     esac
   } # func_stripname_cnf
   ])# _LT_FUNC_STRIPNAME_CNF
   
 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 # ---------------------------------  # ---------------------------------
 # Figure out "hidden" library dependencies from verbose  # Figure out "hidden" library dependencies from verbose
Line 6455  AC_LANG_POP Line 6852  AC_LANG_POP
 # objects, libraries and library flags.  # objects, libraries and library flags.
 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 # Dependencies to place before and after the object being linked:  # Dependencies to place before and after the object being linked:
 _LT_TAGVAR(predep_objects, $1)=  _LT_TAGVAR(predep_objects, $1)=
 _LT_TAGVAR(postdep_objects, $1)=  _LT_TAGVAR(postdep_objects, $1)=
Line 6505  public class foo { Line 6903  public class foo {
 };  };
 _LT_EOF  _LT_EOF
 ])  ])
   
   _lt_libdeps_save_CFLAGS=$CFLAGS
   case "$CC $CFLAGS " in #(
   *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
   *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
   esac
   
 dnl Parse the compiler output and extract the necessary  dnl Parse the compiler output and extract the necessary
 dnl objects, libraries and library flags.  dnl objects, libraries and library flags.
 if AC_TRY_EVAL(ac_compile); then  if AC_TRY_EVAL(ac_compile); then
Line 6516  if AC_TRY_EVAL(ac_compile); then Line 6921  if AC_TRY_EVAL(ac_compile); then
   pre_test_object_deps_done=no    pre_test_object_deps_done=no
   
   for p in `eval "$output_verbose_link_cmd"`; do    for p in `eval "$output_verbose_link_cmd"`; do
    case $p in    case ${prev}${p} in
   
     -L* | -R* | -l*)      -L* | -R* | -l*)
        # Some compilers place space between "-{L,R}" and the path.         # Some compilers place space between "-{L,R}" and the path.
Line 6525  if AC_TRY_EVAL(ac_compile); then Line 6930  if AC_TRY_EVAL(ac_compile); then
           test $p = "-R"; then            test $p = "-R"; then
          prev=$p           prev=$p
          continue           continue
        else  
          prev=  
        fi         fi
   
          # Expand the sysroot to ease extracting the directories later.
          if test -z "$prev"; then
            case $p in
            -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
            -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
            -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
            esac
          fi
          case $p in
          =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
          esac
        if test "$pre_test_object_deps_done" = no; then         if test "$pre_test_object_deps_done" = no; then
         case $p in         case ${prev} in
         -L* | -R*)         -L | -R)
            # Internal compiler library paths should come after those             # Internal compiler library paths should come after those
            # provided the user.  The postdeps already come after the             # provided the user.  The postdeps already come after the
            # user supplied libs so there is no need to process them.             # user supplied libs so there is no need to process them.
Line 6551  if AC_TRY_EVAL(ac_compile); then Line 6965  if AC_TRY_EVAL(ac_compile); then
            _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"             _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
          fi           fi
        fi         fi
          prev=
        ;;         ;;
   
       *.lto.$objext) ;; # Ignore GCC LTO objects
     *.$objext)      *.$objext)
        # This assumes that the test object file only shows up         # This assumes that the test object file only shows up
        # once in the compiler output.         # once in the compiler output.
Line 6588  else Line 7004  else
 fi  fi
   
 $RM -f confest.$objext  $RM -f confest.$objext
   CFLAGS=$_lt_libdeps_save_CFLAGS
   
 # PORTME: override above test on systems where it is broken  # PORTME: override above test on systems where it is broken
 m4_if([$1], [CXX],  m4_if([$1], [CXX],
Line 6737  if test "$_lt_disable_F77" != yes; then Line 7154  if test "$_lt_disable_F77" != yes; then
   # Allow CC to be a program name with arguments.    # Allow CC to be a program name with arguments.
   lt_save_CC="$CC"    lt_save_CC="$CC"
   lt_save_GCC=$GCC    lt_save_GCC=$GCC
     lt_save_CFLAGS=$CFLAGS
   CC=${F77-"f77"}    CC=${F77-"f77"}
     CFLAGS=$FFLAGS
   compiler=$CC    compiler=$CC
   _LT_TAGVAR(compiler, $1)=$CC    _LT_TAGVAR(compiler, $1)=$CC
   _LT_CC_BASENAME([$compiler])    _LT_CC_BASENAME([$compiler])
Line 6791  if test "$_lt_disable_F77" != yes; then Line 7210  if test "$_lt_disable_F77" != yes; then
   
   GCC=$lt_save_GCC    GCC=$lt_save_GCC
   CC="$lt_save_CC"    CC="$lt_save_CC"
     CFLAGS="$lt_save_CFLAGS"
 fi # test "$_lt_disable_F77" != yes  fi # test "$_lt_disable_F77" != yes
   
 AC_LANG_POP  AC_LANG_POP
Line 6867  if test "$_lt_disable_FC" != yes; then Line 7287  if test "$_lt_disable_FC" != yes; then
   # Allow CC to be a program name with arguments.    # Allow CC to be a program name with arguments.
   lt_save_CC="$CC"    lt_save_CC="$CC"
   lt_save_GCC=$GCC    lt_save_GCC=$GCC
     lt_save_CFLAGS=$CFLAGS
   CC=${FC-"f95"}    CC=${FC-"f95"}
     CFLAGS=$FCFLAGS
   compiler=$CC    compiler=$CC
   GCC=$ac_cv_fc_compiler_gnu    GCC=$ac_cv_fc_compiler_gnu
   
Line 6923  if test "$_lt_disable_FC" != yes; then Line 7345  if test "$_lt_disable_FC" != yes; then
   fi # test -n "$compiler"    fi # test -n "$compiler"
   
   GCC=$lt_save_GCC    GCC=$lt_save_GCC
  CC="$lt_save_CC"  CC=$lt_save_CC
   CFLAGS=$lt_save_CFLAGS
 fi # test "$_lt_disable_FC" != yes  fi # test "$_lt_disable_FC" != yes
   
 AC_LANG_POP  AC_LANG_POP
Line 6960  _LT_COMPILER_BOILERPLATE Line 7383  _LT_COMPILER_BOILERPLATE
 _LT_LINKER_BOILERPLATE  _LT_LINKER_BOILERPLATE
   
 # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
lt_save_CC="$CC"lt_save_CC=$CC
 lt_save_CFLAGS=$CFLAGS
 lt_save_GCC=$GCC  lt_save_GCC=$GCC
 GCC=yes  GCC=yes
 CC=${GCJ-"gcj"}  CC=${GCJ-"gcj"}
   CFLAGS=$GCJFLAGS
 compiler=$CC  compiler=$CC
 _LT_TAGVAR(compiler, $1)=$CC  _LT_TAGVAR(compiler, $1)=$CC
 _LT_TAGVAR(LD, $1)="$LD"  _LT_TAGVAR(LD, $1)="$LD"
Line 6994  fi Line 7419  fi
 AC_LANG_RESTORE  AC_LANG_RESTORE
   
 GCC=$lt_save_GCC  GCC=$lt_save_GCC
CC="$lt_save_CC"CC=$lt_save_CC
 CFLAGS=$lt_save_CFLAGS
 ])# _LT_LANG_GCJ_CONFIG  ])# _LT_LANG_GCJ_CONFIG
   
   
Line 7029  _LT_LINKER_BOILERPLATE Line 7455  _LT_LINKER_BOILERPLATE
   
 # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
 lt_save_CC="$CC"  lt_save_CC="$CC"
   lt_save_CFLAGS=$CFLAGS
 lt_save_GCC=$GCC  lt_save_GCC=$GCC
 GCC=  GCC=
 CC=${RC-"windres"}  CC=${RC-"windres"}
   CFLAGS=
 compiler=$CC  compiler=$CC
 _LT_TAGVAR(compiler, $1)=$CC  _LT_TAGVAR(compiler, $1)=$CC
 _LT_CC_BASENAME([$compiler])  _LT_CC_BASENAME([$compiler])
Line 7044  fi Line 7472  fi
   
 GCC=$lt_save_GCC  GCC=$lt_save_GCC
 AC_LANG_RESTORE  AC_LANG_RESTORE
CC="$lt_save_CC"CC=$lt_save_CC
 CFLAGS=$lt_save_CFLAGS
 ])# _LT_LANG_RC_CONFIG  ])# _LT_LANG_RC_CONFIG
   
   
Line 7103  _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper] Line 7532  _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]
 AC_SUBST([OBJDUMP])  AC_SUBST([OBJDUMP])
 ])  ])
   
   # _LT_DECL_DLLTOOL
   # ----------------
   # Ensure DLLTOOL variable is set.
   m4_defun([_LT_DECL_DLLTOOL],
   [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   test -z "$DLLTOOL" && DLLTOOL=dlltool
   _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
   AC_SUBST([DLLTOOL])
   ])
   
 # _LT_DECL_SED  # _LT_DECL_SED
 # ------------  # ------------
Line 7196  m4_defun([_LT_CHECK_SHELL_FEATURES], Line 7634  m4_defun([_LT_CHECK_SHELL_FEATURES],
 # Try some XSI features  # Try some XSI features
 xsi_shell=no  xsi_shell=no
 ( _lt_dummy="a/b/c"  ( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, \      = c,a/b,b/c, \
     && eval 'test $(( 1 + 1 )) -eq 2 \      && eval 'test $(( 1 + 1 )) -eq 2 \
     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \      && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   && xsi_shell=yes    && xsi_shell=yes
Line 7236  _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into Line 7674  _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into
 ])# _LT_CHECK_SHELL_FEATURES  ])# _LT_CHECK_SHELL_FEATURES
   
   
# _LT_PROG_XSI_SHELLFNS# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
# ---------------------# ------------------------------------------------------
Bourne and XSI compatible variants of some useful shell functions.In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
m4_defun([_LT_PROG_XSI_SHELLFNS],# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
[case $xsi_shell inm4_defun([_LT_PROG_FUNCTION_REPLACE],
  yes)[dnl {
    cat << \_LT_EOF >> "$cfgfile"sed -e '/^$1 ()$/,/^} # $1 /c\
 $1 ()\
 {\
 m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
   && mv -f "$cfgfile.tmp" "$cfgfile" \
     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 test 0 -eq $? || _lt_function_replace_fail=:
 ])
   
 # func_dirname file append nondir_replacement  
 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,  
 # otherwise set result to NONDIR_REPLACEMENT.  
 func_dirname ()  
 {  
   case ${1} in  
     */*) func_dirname_result="${1%/*}${2}" ;;  
     *  ) func_dirname_result="${3}" ;;  
   esac  
 }  
   
# func_basename file# _LT_PROG_REPLACE_SHELLFNS
func_basename ()# -------------------------
{# Replace existing portable implementations of several shell functions with
  func_basename_result="${1##*/}"# equivalent extended shell implementations where those features are available..
}m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 [if test x"$xsi_shell" = xyes; then
   _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
     case ${1} in
       */*) func_dirname_result="${1%/*}${2}" ;;
       *  ) func_dirname_result="${3}" ;;
     esac])
   
# func_dirname_and_basename file append nondir_replacement  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
# perform func_basename and func_dirname in a single function    func_basename_result="${1##*/}"])
# call: 
#   dirname:  Compute the dirname of FILE.  If nonempty, 
#             add APPEND to the result, otherwise set result 
#             to NONDIR_REPLACEMENT. 
#             value returned in "$func_dirname_result" 
#   basename: Compute filename of FILE. 
#             value retuned in "$func_basename_result" 
# Implementation must be kept synchronized with func_dirname 
# and func_basename. For efficiency, we do not delegate to 
# those functions but instead duplicate the functionality here. 
func_dirname_and_basename () 
{ 
  case ${1} in 
    */*) func_dirname_result="${1%/*}${2}" ;; 
    *  ) func_dirname_result="${3}" ;; 
  esac 
  func_basename_result="${1##*/}" 
} 
   
# func_stripname prefix suffix name  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
# strip PREFIX and SUFFIX off of NAME.    case ${1} in
# PREFIX and SUFFIX must not contain globbing or regex special      */*) func_dirname_result="${1%/*}${2}" ;;
# characters, hashes, percent signs, but SUFFIX may contain a leading      *  ) func_dirname_result="${3}" ;;
# dot (in which case that matches only a dot).    esac
func_stripname ()    func_basename_result="${1##*/}"])
{ 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 
  # positional parameters, so assign one to ordinary parameter first. 
  func_stripname_result=${3} 
  func_stripname_result=${func_stripname_result#"${1}"} 
  func_stripname_result=${func_stripname_result%"${2}"} 
} 
   
# func_opt_split  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
func_opt_split ()    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
{    # positional parameters, so assign one to ordinary parameter first.
  func_opt_split_opt=${1%%=*}    func_stripname_result=${3}
  func_opt_split_arg=${1#*=}    func_stripname_result=${func_stripname_result#"${1}"}
}    func_stripname_result=${func_stripname_result%"${2}"}])
   
# func_lo2o object  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
func_lo2o ()    func_split_long_opt_name=${1%%=*}
{    func_split_long_opt_arg=${1#*=}])
  case ${1} in 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 
    *)    func_lo2o_result=${1} ;; 
  esac 
} 
   
# func_xform libobj-or-source  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
func_xform ()    func_split_short_opt_arg=${1#??}
{    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  func_xform_result=${1%.*}.lo 
} 
   
# func_arith arithmetic-term...  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
func_arith ()    case ${1} in
{      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  func_arith_result=$(( $[*] ))      *)    func_lo2o_result=${1} ;;
}    esac])
   
# func_len string  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
# STRING may not start with a hyphen. 
func_len () 
{ 
  func_len_result=${#1} 
} 
   
_LT_EOF  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
    ;; 
  *) # Bourne compatible functions. 
    cat << \_LT_EOF >> "$cfgfile" 
   
# func_dirname file append nondir_replacement  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,fi
# otherwise set result to NONDIR_REPLACEMENT. 
func_dirname () 
{ 
  # Extract subdirectory from the argument. 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 
  if test "X$func_dirname_result" = "X${1}"; then 
    func_dirname_result="${3}" 
  else 
    func_dirname_result="$func_dirname_result${2}" 
  fi 
} 
   
# func_basename fileif test x"$lt_shell_append" = xyes; then
func_basename ()  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
{ 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"` 
} 
   
dnl func_dirname_and_basename  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
dnl A portable version of this function is already defined in general.m4sh    func_quote_for_eval "${2}"
dnl so there is no need for it here.dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
     eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
   
# func_stripname prefix suffix name  # Save a `func_append' function call where possible by direct use of '+='
# strip PREFIX and SUFFIX off of NAME.  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
# PREFIX and SUFFIX must not contain globbing or regex special    && mv -f "$cfgfile.tmp" "$cfgfile" \
# characters, hashes, percent signs, but SUFFIX may contain a leading      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
# dot (in which case that matches only a dot).  test 0 -eq $? || _lt_function_replace_fail=:
# func_strip_suffix prefix nameelse
func_stripname ()  # Save a `func_append' function call even when '+=' is not available
{  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  case ${2} in    && mv -f "$cfgfile.tmp" "$cfgfile" \
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;  test 0 -eq $? || _lt_function_replace_fail=:
  esacfi
} 
   
# sed scripts:if test x"$_lt_function_replace_fail" = x":"; then
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
my_sed_long_arg='1s/^-[[^=]]*=//'fi
 ])
   
# func_opt_split# _LT_PATH_CONVERSION_FUNCTIONS
func_opt_split ()# -----------------------------
{# Determine which file name conversion functions should be used by
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`# for certain cross-compile configurations and native mingw.
}m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
# func_lo2o objectAC_REQUIRE([AC_CANONICAL_BUILD])dnl
func_lo2o ()AC_MSG_CHECKING([how to convert $build file names to $host format])
{AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`[case $host in
}  *-*-mingw* )
    case $build in
# func_xform libobj-or-source      *-*-mingw* ) # actually msys
func_xform ()        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
{        ;;
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`      *-*-cygwin* )
}        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
        ;;
# func_arith arithmetic-term...      * ) # otherwise, assume *nix
func_arith ()        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
{        ;;
  func_arith_result=`expr "$[@]"`    esac
}    ;;
  *-*-cygwin* )
# func_len string    case $build in
# STRING may not start with a hyphen.      *-*-mingw* ) # actually msys
func_len ()        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
{        ;;
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`      *-*-cygwin* )
}        lt_cv_to_host_file_cmd=func_convert_file_noop
        ;;
_LT_EOF      * ) # otherwise, assume *nix
         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
         ;;
     esac
     ;;
   * ) # unhandled hosts (and "normal" native builds)
     lt_cv_to_host_file_cmd=func_convert_file_noop
     ;;
 esac  esac
   ])
   to_host_file_cmd=$lt_cv_to_host_file_cmd
   AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
   _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
            [0], [convert $build file names to $host format])dnl
   
case $lt_shell_append inAC_MSG_CHECKING([how to convert $build file names to toolchain format])
  yes)AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
    cat << \_LT_EOF >> "$cfgfile"[#assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
# func_append var valuecase $host in
# Append VALUE to the end of shell variable VAR.  *-*-mingw* )
func_append ()    case $build in
{      *-*-mingw* ) # actually msys
  eval "$[1]+=\$[2]"        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
}        ;;
_LT_EOF    esac
     ;;      ;;
  *)esac
    cat << \_LT_EOF >> "$cfgfile" 
 
# func_append var value 
# Append VALUE to the end of shell variable VAR. 
func_append () 
{ 
  eval "$[1]=\$$[1]\$[2]" 
} 
 
_LT_EOF 
    ;; 
  esac 
 ])  ])
   to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
   _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
            [0], [convert $build files to toolchain format])dnl
   ])# _LT_PATH_CONVERSION_FUNCTIONS

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>