~ubuntu-branches/ubuntu/vivid/brasero/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-18 17:53:39 UTC
  • mfrom: (1.1.47 upstream) (1.4.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110518175339-so6a6fejezs5i1pc
Tags: 3.0.0-1ubuntu1
* Rebase from Debian and GNOME3 PPA. Remaining Ubuntu changes:
* debian/control:
  - Build-Depend on dh-autoreconf, libappindicator3-dev and
    liblaunchpad-integration-3.0-dev
  - Recommends: brasero-cdrkit
  - libbrasero-media3-1 Depends on dvd+rw-tools not growisofs and
    Suggests rather than Recommends gstreamer plugin packages
* debian/patches/010_lpi.patch:
  - Launchpad integration patch
* debian/patches/012_appindicator.patch:
  - Use application indicators
* debian/rules:
  - Include autoreconf.mk
* debian/watch:
  - Watch unstable releases also

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
741
741
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
742
742
 
743
743
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
744
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
744
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
745
745
 
746
746
all-am: $(gsettings_SCHEMAS:.xml=.valid)
747
747
uninstall-am: uninstall-gsettings-schemas
749
749
 
750
750
.SECONDARY: $(gsettings_SCHEMAS)
751
751
 
752
 
gsettings__base_list = \
753
 
  sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
754
 
  sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
755
 
 
756
 
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
752
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
757
753
        @$(NORMAL_INSTALL)
758
 
        test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
759
 
        @list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
760
 
        for p in $$list; do \
761
 
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
762
 
          echo "$$d$$p"; \
763
 
        done | $(gsettings__base_list) | \
764
 
        while read files; do \
765
 
          echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
766
 
          $(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
767
 
        done
768
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
754
        if test -n "$^"; then \
 
755
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
756
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
757
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
758
        fi
769
759
 
770
760
uninstall-gsettings-schemas:
771
761
        @$(NORMAL_UNINSTALL)
781
771
 
782
772
ifdef gsettings_ENUM_NAMESPACE
783
773
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
784
 
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
 
774
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
785
775
endif
786
776
'
787
777
  _GSETTINGS_SUBST(GSETTINGS_RULES)
1222
1212
dnl
1223
1213
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1224
1214
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1215
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1225
1216
m4_require([_LT_CMD_RELOAD])dnl
1226
1217
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1218
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1227
1219
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1228
1220
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1221
m4_require([_LT_WITH_SYSROOT])dnl
1229
1222
 
1230
1223
_LT_CONFIG_LIBTOOL_INIT([
1231
1224
# See if we are running on zsh, and set the options which allow our
1763
1756
 
1764
1757
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1765
1758
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1766
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1767
1759
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1768
1760
#
1769
1761
_LT_COPYING
1796
1788
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1797
1789
  # text mode, it properly converts lines to CR/LF.  This bash problem
1798
1790
  # is reportedly fixed, but why not run on old versions too?
1799
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1800
 
    || (rm -f "$cfgfile"; exit 1)
1801
 
 
1802
 
  _LT_PROG_XSI_SHELLFNS
1803
 
 
1804
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1805
 
    || (rm -f "$cfgfile"; exit 1)
1806
 
 
1807
 
  mv -f "$cfgfile" "$ofile" ||
 
1791
  sed '$q' "$ltmain" >> "$cfgfile" \
 
1792
     || (rm -f "$cfgfile"; exit 1)
 
1793
 
 
1794
  _LT_PROG_REPLACE_SHELLFNS
 
1795
 
 
1796
   mv -f "$cfgfile" "$ofile" ||
1808
1797
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1809
1798
  chmod +x "$ofile"
1810
1799
],
2121
2110
  fi
2122
2111
])
2123
2112
 
2124
 
# _LT_SYS_MODULE_PATH_AIX
2125
 
# -----------------------
 
2113
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
2114
# ----------------------------------
2126
2115
# Links a minimal program and checks the executable
2127
2116
# for the system default hardcoded library path. In most cases,
2128
2117
# this is /usr/lib:/lib, but when the MPI compilers are used
2129
2118
# the location of the communication and MPI libs are included too.
2130
2119
# If we don't find anything, use the default library path according
2131
2120
# to the aix ld manual.
 
2121
# Store the results from the different compilers for each TAGNAME.
 
2122
# Allow to override them for all tags through lt_cv_aix_libpath.
2132
2123
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2133
2124
[m4_require([_LT_DECL_SED])dnl
2134
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2135
 
lt_aix_libpath_sed='
2136
 
    /Import File Strings/,/^$/ {
2137
 
        /^0/ {
2138
 
            s/^0  *\(.*\)$/\1/
2139
 
            p
2140
 
        }
2141
 
    }'
2142
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2143
 
# Check for a 64-bit object if we didn't find anything.
2144
 
if test -z "$aix_libpath"; then
2145
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2146
 
fi],[])
2147
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
2125
if test "${lt_cv_aix_libpath+set}" = set; then
 
2126
  aix_libpath=$lt_cv_aix_libpath
 
2127
else
 
2128
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
2129
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
2130
  lt_aix_libpath_sed='[
 
2131
      /Import File Strings/,/^$/ {
 
2132
          /^0/ {
 
2133
              s/^0  *\([^ ]*\) *$/\1/
 
2134
              p
 
2135
          }
 
2136
      }]'
 
2137
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2138
  # Check for a 64-bit object if we didn't find anything.
 
2139
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2140
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2141
  fi],[])
 
2142
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
2143
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
2144
  fi
 
2145
  ])
 
2146
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
2147
fi
2148
2148
])# _LT_SYS_MODULE_PATH_AIX
2149
2149
 
2150
2150
 
2169
2169
 
2170
2170
AC_MSG_CHECKING([how to print strings])
2171
2171
# Test print first, because it will be a builtin if present.
2172
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
2172
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2173
2173
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2174
2174
  ECHO='print -r --'
2175
2175
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2213
2213
])# _LT_PROG_ECHO_BACKSLASH
2214
2214
 
2215
2215
 
 
2216
# _LT_WITH_SYSROOT
 
2217
# ----------------
 
2218
AC_DEFUN([_LT_WITH_SYSROOT],
 
2219
[AC_MSG_CHECKING([for sysroot])
 
2220
AC_ARG_WITH([sysroot],
 
2221
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
2222
                        (or the compiler's sysroot if not specified).],
 
2223
[], [with_sysroot=no])
 
2224
 
 
2225
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
2226
dnl in case the user passed a directory name.
 
2227
lt_sysroot=
 
2228
case ${with_sysroot} in #(
 
2229
 yes)
 
2230
   if test "$GCC" = yes; then
 
2231
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
2232
   fi
 
2233
   ;; #(
 
2234
 /*)
 
2235
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
2236
   ;; #(
 
2237
 no|'')
 
2238
   ;; #(
 
2239
 *)
 
2240
   AC_MSG_RESULT([${with_sysroot}])
 
2241
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
2242
   ;;
 
2243
esac
 
2244
 
 
2245
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
2246
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
2247
[dependent libraries, and in which our libraries should be installed.])])
 
2248
 
2216
2249
# _LT_ENABLE_LOCK
2217
2250
# ---------------
2218
2251
m4_defun([_LT_ENABLE_LOCK],
2359
2392
])# _LT_ENABLE_LOCK
2360
2393
 
2361
2394
 
 
2395
# _LT_PROG_AR
 
2396
# -----------
 
2397
m4_defun([_LT_PROG_AR],
 
2398
[AC_CHECK_TOOLS(AR, [ar], false)
 
2399
: ${AR=ar}
 
2400
: ${AR_FLAGS=cru}
 
2401
_LT_DECL([], [AR], [1], [The archiver])
 
2402
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
2403
 
 
2404
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
2405
  [lt_cv_ar_at_file=no
 
2406
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
2407
     [echo conftest.$ac_objext > conftest.lst
 
2408
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
2409
      AC_TRY_EVAL([lt_ar_try])
 
2410
      if test "$ac_status" -eq 0; then
 
2411
        # Ensure the archiver fails upon bogus file names.
 
2412
        rm -f conftest.$ac_objext libconftest.a
 
2413
        AC_TRY_EVAL([lt_ar_try])
 
2414
        if test "$ac_status" -ne 0; then
 
2415
          lt_cv_ar_at_file=@
 
2416
        fi
 
2417
      fi
 
2418
      rm -f conftest.* libconftest.a
 
2419
     ])
 
2420
  ])
 
2421
 
 
2422
if test "x$lt_cv_ar_at_file" = xno; then
 
2423
  archiver_list_spec=
 
2424
else
 
2425
  archiver_list_spec=$lt_cv_ar_at_file
 
2426
fi
 
2427
_LT_DECL([], [archiver_list_spec], [1],
 
2428
  [How to feed a file listing to the archiver])
 
2429
])# _LT_PROG_AR
 
2430
 
 
2431
 
2362
2432
# _LT_CMD_OLD_ARCHIVE
2363
2433
# -------------------
2364
2434
m4_defun([_LT_CMD_OLD_ARCHIVE],
2365
 
[AC_CHECK_TOOL(AR, ar, false)
2366
 
test -z "$AR" && AR=ar
2367
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2368
 
_LT_DECL([], [AR], [1], [The archiver])
2369
 
_LT_DECL([], [AR_FLAGS], [1])
 
2435
[_LT_PROG_AR
2370
2436
 
2371
2437
AC_CHECK_TOOL(STRIP, strip, :)
2372
2438
test -z "$STRIP" && STRIP=:
2706
2772
/* When -fvisbility=hidden is used, assume the code has been annotated
2707
2773
   correspondingly for the symbols needed.  */
2708
2774
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2709
 
void fnord () __attribute__((visibility("default")));
 
2775
int fnord () __attribute__((visibility("default")));
2710
2776
#endif
2711
2777
 
2712
 
void fnord () { int i=42; }
 
2778
int fnord () { return 42; }
2713
2779
int main ()
2714
2780
{
2715
2781
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3249
3315
  need_version=no
3250
3316
  need_lib_prefix=no
3251
3317
 
3252
 
  case $GCC,$host_os in
3253
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3318
  case $GCC,$cc_basename in
 
3319
  yes,*)
 
3320
    # gcc
3254
3321
    library_names_spec='$libname.dll.a'
3255
3322
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3256
3323
    postinstall_cmds='base_file=`basename \${file}`~
3283
3350
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3284
3351
      ;;
3285
3352
    esac
 
3353
    dynamic_linker='Win32 ld.exe'
 
3354
    ;;
 
3355
 
 
3356
  *,cl*)
 
3357
    # Native MSVC
 
3358
    libname_spec='$name'
 
3359
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3360
    library_names_spec='${libname}.dll.lib'
 
3361
 
 
3362
    case $build_os in
 
3363
    mingw*)
 
3364
      sys_lib_search_path_spec=
 
3365
      lt_save_ifs=$IFS
 
3366
      IFS=';'
 
3367
      for lt_path in $LIB
 
3368
      do
 
3369
        IFS=$lt_save_ifs
 
3370
        # Let DOS variable expansion print the short 8.3 style file name.
 
3371
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
3372
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
3373
      done
 
3374
      IFS=$lt_save_ifs
 
3375
      # Convert to MSYS style.
 
3376
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
3377
      ;;
 
3378
    cygwin*)
 
3379
      # Convert to unix form, then to dos form, then back to unix form
 
3380
      # but this time dos style (no spaces!) so that the unix form looks
 
3381
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
3382
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
3383
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
3384
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3385
      ;;
 
3386
    *)
 
3387
      sys_lib_search_path_spec="$LIB"
 
3388
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3389
        # It is most probably a Windows format PATH.
 
3390
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3391
      else
 
3392
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
3393
      fi
 
3394
      # FIXME: find the short name or the path components, as spaces are
 
3395
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
3396
      ;;
 
3397
    esac
 
3398
 
 
3399
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
3400
    postinstall_cmds='base_file=`basename \${file}`~
 
3401
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3402
      dldir=$destdir/`dirname \$dlpath`~
 
3403
      test -d \$dldir || mkdir -p \$dldir~
 
3404
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3405
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
3406
      dlpath=$dir/\$dldll~
 
3407
       $RM \$dlpath'
 
3408
    shlibpath_overrides_runpath=yes
 
3409
    dynamic_linker='Win32 link.exe'
3286
3410
    ;;
3287
3411
 
3288
3412
  *)
 
3413
    # Assume MSVC wrapper
3289
3414
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3415
    dynamic_linker='Win32 ld.exe'
3290
3416
    ;;
3291
3417
  esac
3292
 
  dynamic_linker='Win32 ld.exe'
3293
3418
  # FIXME: first we should search . and the directory the executable is in
3294
3419
  shlibpath_var=PATH
3295
3420
  ;;
3522
3647
  # before this can be enabled.
3523
3648
  hardcode_into_libs=yes
3524
3649
 
3525
 
  # Add ABI-specific directories to the system library path.
3526
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3527
 
 
3528
3650
  # Append ld.so.conf contents to the search path
3529
3651
  if test -f /etc/ld.so.conf; then
3530
3652
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
3531
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3532
 
 
 
3653
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3533
3654
  fi
3534
3655
 
3535
3656
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3997
4118
esac
3998
4119
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3999
4120
case $host_os in
 
4121
  cygwin* | mingw* | pw32* | cegcc*)
 
4122
    if test "$GCC" != yes; then
 
4123
      reload_cmds=false
 
4124
    fi
 
4125
    ;;
4000
4126
  darwin*)
4001
4127
    if test "$GCC" = yes; then
4002
4128
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4215
4341
  ;;
4216
4342
esac
4217
4343
])
 
4344
 
 
4345
file_magic_glob=
 
4346
want_nocaseglob=no
 
4347
if test "$build" = "$host"; then
 
4348
  case $host_os in
 
4349
  mingw* | pw32*)
 
4350
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
4351
      want_nocaseglob=yes
 
4352
    else
 
4353
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
4354
    fi
 
4355
    ;;
 
4356
  esac
 
4357
fi
 
4358
 
4218
4359
file_magic_cmd=$lt_cv_file_magic_cmd
4219
4360
deplibs_check_method=$lt_cv_deplibs_check_method
4220
4361
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4222
4363
_LT_DECL([], [deplibs_check_method], [1],
4223
4364
    [Method to check whether dependent libraries are shared objects])
4224
4365
_LT_DECL([], [file_magic_cmd], [1],
4225
 
    [Command to use when deplibs_check_method == "file_magic"])
 
4366
    [Command to use when deplibs_check_method = "file_magic"])
 
4367
_LT_DECL([], [file_magic_glob], [1],
 
4368
    [How to find potential files when deplibs_check_method = "file_magic"])
 
4369
_LT_DECL([], [want_nocaseglob], [1],
 
4370
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4226
4371
])# _LT_CHECK_MAGIC_METHOD
4227
4372
 
4228
4373
 
4325
4470
dnl AC_DEFUN([AM_PROG_NM], [])
4326
4471
dnl AC_DEFUN([AC_PROG_NM], [])
4327
4472
 
 
4473
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4474
# --------------------------------
 
4475
# how to determine the name of the shared library
 
4476
# associated with a specific link library.
 
4477
#  -- PORTME fill in with the dynamic library characteristics
 
4478
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
4479
[m4_require([_LT_DECL_EGREP])
 
4480
m4_require([_LT_DECL_OBJDUMP])
 
4481
m4_require([_LT_DECL_DLLTOOL])
 
4482
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
4483
lt_cv_sharedlib_from_linklib_cmd,
 
4484
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
4485
 
 
4486
case $host_os in
 
4487
cygwin* | mingw* | pw32* | cegcc*)
 
4488
  # two different shell functions defined in ltmain.sh
 
4489
  # decide which to use based on capabilities of $DLLTOOL
 
4490
  case `$DLLTOOL --help 2>&1` in
 
4491
  *--identify-strict*)
 
4492
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
4493
    ;;
 
4494
  *)
 
4495
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
4496
    ;;
 
4497
  esac
 
4498
  ;;
 
4499
*)
 
4500
  # fallback: assume linklib IS sharedlib
 
4501
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4502
  ;;
 
4503
esac
 
4504
])
 
4505
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
4506
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
4507
 
 
4508
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
4509
    [Command to associate shared and link libraries])
 
4510
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
4511
 
 
4512
 
 
4513
# _LT_PATH_MANIFEST_TOOL
 
4514
# ----------------------
 
4515
# locate the manifest tool
 
4516
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
4517
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
4518
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
4519
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
4520
  [lt_cv_path_mainfest_tool=no
 
4521
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
4522
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
4523
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4524
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
4525
    lt_cv_path_mainfest_tool=yes
 
4526
  fi
 
4527
  rm -f conftest*])
 
4528
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4529
  MANIFEST_TOOL=:
 
4530
fi
 
4531
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
4532
])# _LT_PATH_MANIFEST_TOOL
 
4533
 
4328
4534
 
4329
4535
# LT_LIB_M
4330
4536
# --------
4451
4657
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4452
4658
 
4453
4659
# Transform an extracted symbol line into symbol name and symbol address
4454
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4455
 
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'"
 
4660
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4661
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'"
4456
4662
 
4457
4663
# Handle CRLF in mingw tool chain
4458
4664
opt_cr=
4488
4694
  else
4489
4695
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4490
4696
  fi
 
4697
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4491
4698
 
4492
4699
  # Check to see that the pipe works correctly.
4493
4700
  pipe_works=no
4521
4728
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4522
4729
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4523
4730
          cat <<_LT_EOF > conftest.$ac_ext
 
4731
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
4732
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
4733
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4734
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
4735
# define LT@&t@_DLSYM_CONST
 
4736
#elif defined(__osf__)
 
4737
/* This system does not cope well with relocations in const data.  */
 
4738
# define LT@&t@_DLSYM_CONST
 
4739
#else
 
4740
# define LT@&t@_DLSYM_CONST const
 
4741
#endif
 
4742
 
4524
4743
#ifdef __cplusplus
4525
4744
extern "C" {
4526
4745
#endif
4532
4751
          cat <<_LT_EOF >> conftest.$ac_ext
4533
4752
 
4534
4753
/* The mapping between symbol names and symbols.  */
4535
 
const struct {
 
4754
LT@&t@_DLSYM_CONST struct {
4536
4755
  const char *name;
4537
4756
  void       *address;
4538
4757
}
4558
4777
_LT_EOF
4559
4778
          # Now try linking the two files.
4560
4779
          mv conftest.$ac_objext conftstm.$ac_objext
4561
 
          lt_save_LIBS="$LIBS"
4562
 
          lt_save_CFLAGS="$CFLAGS"
 
4780
          lt_globsym_save_LIBS=$LIBS
 
4781
          lt_globsym_save_CFLAGS=$CFLAGS
4563
4782
          LIBS="conftstm.$ac_objext"
4564
4783
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4565
4784
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4566
4785
            pipe_works=yes
4567
4786
          fi
4568
 
          LIBS="$lt_save_LIBS"
4569
 
          CFLAGS="$lt_save_CFLAGS"
 
4787
          LIBS=$lt_globsym_save_LIBS
 
4788
          CFLAGS=$lt_globsym_save_CFLAGS
4570
4789
        else
4571
4790
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4572
4791
        fi
4599
4818
  AC_MSG_RESULT(ok)
4600
4819
fi
4601
4820
 
 
4821
# Response file support.
 
4822
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4823
  nm_file_list_spec='@'
 
4824
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
4825
  nm_file_list_spec='@'
 
4826
fi
 
4827
 
4602
4828
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4603
4829
    [Take the output of nm and produce a listing of raw symbols and C names])
4604
4830
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4609
4835
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4610
4836
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4611
4837
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4838
_LT_DECL([], [nm_file_list_spec], [1],
 
4839
    [Specify filename containing input files for $NM])
4612
4840
]) # _LT_CMD_GLOBAL_SYMBOLS
4613
4841
 
4614
4842
 
4620
4848
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4621
4849
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4622
4850
 
4623
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
4624
4851
m4_if([$1], [CXX], [
4625
4852
  # C++ specific cases for pic, static, wl, etc.
4626
4853
  if test "$GXX" = yes; then
4725
4952
          ;;
4726
4953
        esac
4727
4954
        ;;
 
4955
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4956
        # This hack is so that the source file can tell whether it is being
 
4957
        # built for inclusion in a dll (and should export symbols for example).
 
4958
        m4_if([$1], [GCJ], [],
 
4959
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4960
        ;;
4728
4961
      dgux*)
4729
4962
        case $cc_basename in
4730
4963
          ec++*)
5099
5332
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5100
5333
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5101
5334
        ;;
 
5335
      nagfor*)
 
5336
        # NAG Fortran compiler
 
5337
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5338
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5339
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5340
        ;;
5102
5341
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5103
5342
        # Portland Group compilers (*not* the Pentium gcc compiler,
5104
5343
        # which looks to be a dead project)
5218
5457
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5219
5458
    ;;
5220
5459
esac
5221
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5222
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5223
 
        [How to pass a linker flag through the compiler])
 
5460
 
 
5461
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
5462
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
5463
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5464
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5224
5465
 
5225
5466
#
5226
5467
# Check to make sure the PIC flag actually works.
5239
5480
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5240
5481
        [Additional compiler flags for building library objects])
5241
5482
 
 
5483
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5484
        [How to pass a linker flag through the compiler])
5242
5485
#
5243
5486
# Check to make sure the static flag actually works.
5244
5487
#
5259
5502
m4_defun([_LT_LINKER_SHLIBS],
5260
5503
[AC_REQUIRE([LT_PATH_LD])dnl
5261
5504
AC_REQUIRE([LT_PATH_NM])dnl
 
5505
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5262
5506
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5263
5507
m4_require([_LT_DECL_EGREP])dnl
5264
5508
m4_require([_LT_DECL_SED])dnl
5267
5511
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5268
5512
m4_if([$1], [CXX], [
5269
5513
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5514
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5270
5515
  case $host_os in
5271
5516
  aix[[4-9]]*)
5272
5517
    # If we're using GNU nm, then we don't want the "-C" option.
5281
5526
    ;;
5282
5527
  pw32*)
5283
5528
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5284
 
  ;;
 
5529
    ;;
5285
5530
  cygwin* | mingw* | cegcc*)
5286
 
    _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'
5287
 
  ;;
 
5531
    case $cc_basename in
 
5532
    cl*) ;;
 
5533
    *)
 
5534
      _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'
 
5535
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
5536
      ;;
 
5537
    esac
 
5538
    ;;
5288
5539
  *)
5289
5540
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5290
 
  ;;
 
5541
    ;;
5291
5542
  esac
5292
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5293
5543
], [
5294
5544
  runpath_var=
5295
5545
  _LT_TAGVAR(allow_undefined_flag, $1)=
5457
5707
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5458
5708
      _LT_TAGVAR(always_export_symbols, $1)=no
5459
5709
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5460
 
      _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'
 
5710
      _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'
 
5711
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5461
5712
 
5462
5713
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5463
5714
        _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'
5505
5756
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5506
5757
         && test "$tmp_diet" = no
5507
5758
      then
5508
 
        tmp_addflag=
 
5759
        tmp_addflag=' $pic_flag'
5509
5760
        tmp_sharedflag='-shared'
5510
5761
        case $cc_basename,$host_cpu in
5511
5762
        pgcc*)                          # Portland Group C compiler
5575
5826
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5576
5827
        wlarc=
5577
5828
      else
5578
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5579
 
        _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'
 
5829
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5830
        _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'
5580
5831
      fi
5581
5832
      ;;
5582
5833
 
5594
5845
 
5595
5846
_LT_EOF
5596
5847
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5597
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5598
 
        _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'
 
5848
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5849
        _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'
5599
5850
      else
5600
5851
        _LT_TAGVAR(ld_shlibs, $1)=no
5601
5852
      fi
5641
5892
 
5642
5893
    *)
5643
5894
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5644
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5645
 
        _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'
 
5895
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5896
        _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'
5646
5897
      else
5647
5898
        _LT_TAGVAR(ld_shlibs, $1)=no
5648
5899
      fi
5772
6023
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5773
6024
        # Determine the default libpath from the value encoded in an
5774
6025
        # empty executable.
5775
 
        _LT_SYS_MODULE_PATH_AIX
 
6026
        _LT_SYS_MODULE_PATH_AIX([$1])
5776
6027
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5777
6028
        _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"
5778
6029
      else
5783
6034
        else
5784
6035
         # Determine the default libpath from the value encoded in an
5785
6036
         # empty executable.
5786
 
         _LT_SYS_MODULE_PATH_AIX
 
6037
         _LT_SYS_MODULE_PATH_AIX([$1])
5787
6038
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5788
6039
          # Warning - without using the other run time loading flags,
5789
6040
          # -berok will link without error, but may produce a broken library.
5827
6078
      # Microsoft Visual C++.
5828
6079
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5829
6080
      # no search path for DLLs.
5830
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5831
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5832
 
      # Tell ltmain to make .lib files, not .a files.
5833
 
      libext=lib
5834
 
      # Tell ltmain to make .dll files, not .so files.
5835
 
      shrext_cmds=".dll"
5836
 
      # FIXME: Setting linknames here is a bad hack.
5837
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5838
 
      # The linker will automatically build a .lib file if we build a DLL.
5839
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5840
 
      # FIXME: Should let the user specify the lib program.
5841
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5842
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5843
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6081
      case $cc_basename in
 
6082
      cl*)
 
6083
        # Native MSVC
 
6084
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6085
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6086
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6087
        _LT_TAGVAR(file_list_spec, $1)='@'
 
6088
        # Tell ltmain to make .lib files, not .a files.
 
6089
        libext=lib
 
6090
        # Tell ltmain to make .dll files, not .so files.
 
6091
        shrext_cmds=".dll"
 
6092
        # FIXME: Setting linknames here is a bad hack.
 
6093
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6094
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6095
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6096
          else
 
6097
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6098
          fi~
 
6099
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6100
          linknames='
 
6101
        # The linker will not automatically build a static lib if we build a DLL.
 
6102
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6103
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6104
        _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'
 
6105
        # Don't use ranlib
 
6106
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6107
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6108
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6109
          case $lt_outputfile in
 
6110
            *.exe|*.EXE) ;;
 
6111
            *)
 
6112
              lt_outputfile="$lt_outputfile.exe"
 
6113
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6114
              ;;
 
6115
          esac~
 
6116
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6117
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6118
            $RM "$lt_outputfile.manifest";
 
6119
          fi'
 
6120
        ;;
 
6121
      *)
 
6122
        # Assume MSVC wrapper
 
6123
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6124
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6125
        # Tell ltmain to make .lib files, not .a files.
 
6126
        libext=lib
 
6127
        # Tell ltmain to make .dll files, not .so files.
 
6128
        shrext_cmds=".dll"
 
6129
        # FIXME: Setting linknames here is a bad hack.
 
6130
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
6131
        # The linker will automatically build a .lib file if we build a DLL.
 
6132
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6133
        # FIXME: Should let the user specify the lib program.
 
6134
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6135
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6136
        ;;
 
6137
      esac
5844
6138
      ;;
5845
6139
 
5846
6140
    darwin* | rhapsody*)
5878
6172
 
5879
6173
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5880
6174
    freebsd* | dragonfly*)
5881
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6175
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5882
6176
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5883
6177
      _LT_TAGVAR(hardcode_direct, $1)=yes
5884
6178
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5886
6180
 
5887
6181
    hpux9*)
5888
6182
      if test "$GCC" = yes; then
5889
 
        _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'
 
6183
        _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'
5890
6184
      else
5891
6185
        _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'
5892
6186
      fi
5902
6196
 
5903
6197
    hpux10*)
5904
6198
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5905
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6199
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5906
6200
      else
5907
6201
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5908
6202
      fi
5926
6220
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5927
6221
          ;;
5928
6222
        ia64*)
5929
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6223
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5930
6224
          ;;
5931
6225
        *)
5932
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6226
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5933
6227
          ;;
5934
6228
        esac
5935
6229
      else
5976
6270
 
5977
6271
    irix5* | irix6* | nonstopux*)
5978
6272
      if test "$GCC" = yes; then
5979
 
        _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'
 
6273
        _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'
5980
6274
        # Try to use the -exported_symbol ld option, if it does not
5981
6275
        # work, assume that -exports_file does not work either and
5982
6276
        # implicitly export all symbols.
5983
 
        save_LDFLAGS="$LDFLAGS"
5984
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5985
 
        AC_LINK_IFELSE(int foo(void) {},
5986
 
          _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'
5987
 
        )
5988
 
        LDFLAGS="$save_LDFLAGS"
 
6277
        # This should be the same for all languages, so no per-tag cache variable.
 
6278
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
6279
          [lt_cv_irix_exported_symbol],
 
6280
          [save_LDFLAGS="$LDFLAGS"
 
6281
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6282
           AC_LINK_IFELSE(
 
6283
             [AC_LANG_SOURCE(
 
6284
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
6285
                              [C++], [[int foo (void) { return 0; }]],
 
6286
                              [Fortran 77], [[
 
6287
      subroutine foo
 
6288
      end]],
 
6289
                              [Fortran], [[
 
6290
      subroutine foo
 
6291
      end]])])],
 
6292
              [lt_cv_irix_exported_symbol=yes],
 
6293
              [lt_cv_irix_exported_symbol=no])
 
6294
           LDFLAGS="$save_LDFLAGS"])
 
6295
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
6296
          _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'
 
6297
        fi
5989
6298
      else
5990
6299
        _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'
5991
6300
        _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'
6070
6379
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6071
6380
      if test "$GCC" = yes; then
6072
6381
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6073
 
        _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'
 
6382
        _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'
6074
6383
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6075
6384
      else
6076
6385
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6089
6398
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6090
6399
      if test "$GCC" = yes; then
6091
6400
        wlarc='${wl}'
6092
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6401
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6093
6402
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6094
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6403
          $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'
6095
6404
      else
6096
6405
        case `$CC -V 2>&1` in
6097
6406
        *"Compilers 5.0"*)
6363
6672
    to runtime path list])
6364
6673
_LT_TAGDECL([], [link_all_deplibs], [0],
6365
6674
    [Whether libtool must link a program against all its dependency libraries])
6366
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6367
 
    [Fix the shell variable $srcfile for the compiler])
6368
6675
_LT_TAGDECL([], [always_export_symbols], [0],
6369
6676
    [Set to "yes" if exported symbols are required])
6370
6677
_LT_TAGDECL([], [export_symbols_cmds], [2],
6375
6682
    [Symbols that must always be exported])
6376
6683
_LT_TAGDECL([], [prelink_cmds], [2],
6377
6684
    [Commands necessary for linking programs (against libraries) with templates])
 
6685
_LT_TAGDECL([], [postlink_cmds], [2],
 
6686
    [Commands necessary for finishing linking programs])
6378
6687
_LT_TAGDECL([], [file_list_spec], [1],
6379
6688
    [Specify filename containing input files])
6380
6689
dnl FIXME: Not yet implemented
6472
6781
m4_defun([_LT_LANG_CXX_CONFIG],
6473
6782
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6474
6783
m4_require([_LT_DECL_EGREP])dnl
 
6784
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6475
6785
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6476
6786
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6477
6787
    (test "X$CXX" != "Xg++"))) ; then
6533
6843
 
6534
6844
  # Allow CC to be a program name with arguments.
6535
6845
  lt_save_CC=$CC
 
6846
  lt_save_CFLAGS=$CFLAGS
6536
6847
  lt_save_LD=$LD
6537
6848
  lt_save_GCC=$GCC
6538
6849
  GCC=$GXX
6550
6861
  fi
6551
6862
  test -z "${LDCXX+set}" || LD=$LDCXX
6552
6863
  CC=${CXX-"c++"}
 
6864
  CFLAGS=$CXXFLAGS
6553
6865
  compiler=$CC
6554
6866
  _LT_TAGVAR(compiler, $1)=$CC
6555
6867
  _LT_CC_BASENAME([$compiler])
6571
6883
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6572
6884
      # archiving commands below assume that GNU ld is being used.
6573
6885
      if test "$with_gnu_ld" = yes; then
6574
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6575
 
        _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'
 
6886
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6887
        _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'
6576
6888
 
6577
6889
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6578
6890
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6713
7025
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6714
7026
          # Determine the default libpath from the value encoded in an empty
6715
7027
          # executable.
6716
 
          _LT_SYS_MODULE_PATH_AIX
 
7028
          _LT_SYS_MODULE_PATH_AIX([$1])
6717
7029
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6718
7030
 
6719
7031
          _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"
6725
7037
          else
6726
7038
            # Determine the default libpath from the value encoded in an
6727
7039
            # empty executable.
6728
 
            _LT_SYS_MODULE_PATH_AIX
 
7040
            _LT_SYS_MODULE_PATH_AIX([$1])
6729
7041
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6730
7042
            # Warning - without using the other run time loading flags,
6731
7043
            # -berok will link without error, but may produce a broken library.
6767
7079
        ;;
6768
7080
 
6769
7081
      cygwin* | mingw* | pw32* | cegcc*)
6770
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6771
 
        # as there is no search path for DLLs.
6772
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6773
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6774
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6775
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6776
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7082
        case $GXX,$cc_basename in
 
7083
        ,cl* | no,cl*)
 
7084
          # Native MSVC
 
7085
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7086
          # no search path for DLLs.
 
7087
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7088
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7089
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
7090
          _LT_TAGVAR(file_list_spec, $1)='@'
 
7091
          # Tell ltmain to make .lib files, not .a files.
 
7092
          libext=lib
 
7093
          # Tell ltmain to make .dll files, not .so files.
 
7094
          shrext_cmds=".dll"
 
7095
          # FIXME: Setting linknames here is a bad hack.
 
7096
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
7097
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7098
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
7099
            else
 
7100
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
7101
            fi~
 
7102
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
7103
            linknames='
 
7104
          # The linker will not automatically build a static lib if we build a DLL.
 
7105
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
7106
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7107
          # Don't use ranlib
 
7108
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
7109
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
7110
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
7111
            case $lt_outputfile in
 
7112
              *.exe|*.EXE) ;;
 
7113
              *)
 
7114
                lt_outputfile="$lt_outputfile.exe"
 
7115
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
7116
                ;;
 
7117
            esac~
 
7118
            func_to_tool_file "$lt_outputfile"~
 
7119
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
7120
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
7121
              $RM "$lt_outputfile.manifest";
 
7122
            fi'
 
7123
          ;;
 
7124
        *)
 
7125
          # g++
 
7126
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7127
          # as there is no search path for DLLs.
 
7128
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7129
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
7130
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7131
          _LT_TAGVAR(always_export_symbols, $1)=no
 
7132
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6777
7133
 
6778
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6779
 
          _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'
6780
 
          # If the export-symbols file already is a .def file (1st line
6781
 
          # is EXPORTS), use it as is; otherwise, prepend...
6782
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6783
 
            cp $export_symbols $output_objdir/$soname.def;
6784
 
          else
6785
 
            echo EXPORTS > $output_objdir/$soname.def;
6786
 
            cat $export_symbols >> $output_objdir/$soname.def;
6787
 
          fi~
6788
 
          $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'
6789
 
        else
6790
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6791
 
        fi
6792
 
        ;;
 
7134
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7135
            _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'
 
7136
            # If the export-symbols file already is a .def file (1st line
 
7137
            # is EXPORTS), use it as is; otherwise, prepend...
 
7138
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7139
              cp $export_symbols $output_objdir/$soname.def;
 
7140
            else
 
7141
              echo EXPORTS > $output_objdir/$soname.def;
 
7142
              cat $export_symbols >> $output_objdir/$soname.def;
 
7143
            fi~
 
7144
            $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'
 
7145
          else
 
7146
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7147
          fi
 
7148
          ;;
 
7149
        esac
 
7150
        ;;
6793
7151
      darwin* | rhapsody*)
6794
7152
        _LT_DARWIN_LINKER_FEATURES($1)
6795
7153
        ;;
6864
7222
            ;;
6865
7223
          *)
6866
7224
            if test "$GXX" = yes; then
6867
 
              _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'
 
7225
              _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'
6868
7226
            else
6869
7227
              # FIXME: insert proper C++ library support
6870
7228
              _LT_TAGVAR(ld_shlibs, $1)=no
6935
7293
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6936
7294
                    ;;
6937
7295
                  ia64*)
6938
 
                    _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'
 
7296
                    _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'
6939
7297
                    ;;
6940
7298
                  *)
6941
 
                    _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'
 
7299
                    _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'
6942
7300
                    ;;
6943
7301
                esac
6944
7302
              fi
6979
7337
          *)
6980
7338
            if test "$GXX" = yes; then
6981
7339
              if test "$with_gnu_ld" = no; then
6982
 
                _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'
 
7340
                _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'
6983
7341
              else
6984
 
                _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'
 
7342
                _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'
6985
7343
              fi
6986
7344
            fi
6987
7345
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7259
7617
                  _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'
7260
7618
                  ;;
7261
7619
                *)
7262
 
                  _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'
 
7620
                  _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'
7263
7621
                  ;;
7264
7622
              esac
7265
7623
 
7346
7704
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7347
7705
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7348
7706
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7349
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7707
                _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'
7350
7708
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7351
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7709
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7352
7710
 
7353
7711
                # Commands to make compiler produce verbose output that lists
7354
7712
                # what "hidden" libraries, object files and flags are used when
7477
7835
  fi # test -n "$compiler"
7478
7836
 
7479
7837
  CC=$lt_save_CC
 
7838
  CFLAGS=$lt_save_CFLAGS
7480
7839
  LDCXX=$LD
7481
7840
  LD=$lt_save_LD
7482
7841
  GCC=$lt_save_GCC
7491
7850
])# _LT_LANG_CXX_CONFIG
7492
7851
 
7493
7852
 
 
7853
# _LT_FUNC_STRIPNAME_CNF
 
7854
# ----------------------
 
7855
# func_stripname_cnf prefix suffix name
 
7856
# strip PREFIX and SUFFIX off of NAME.
 
7857
# PREFIX and SUFFIX must not contain globbing or regex special
 
7858
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7859
# dot (in which case that matches only a dot).
 
7860
#
 
7861
# This function is identical to the (non-XSI) version of func_stripname,
 
7862
# except this one can be used by m4 code that may be executed by configure,
 
7863
# rather than the libtool script.
 
7864
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
7865
AC_REQUIRE([_LT_DECL_SED])
 
7866
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
7867
func_stripname_cnf ()
 
7868
{
 
7869
  case ${2} in
 
7870
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
7871
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
7872
  esac
 
7873
} # func_stripname_cnf
 
7874
])# _LT_FUNC_STRIPNAME_CNF
 
7875
 
7494
7876
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7495
7877
# ---------------------------------
7496
7878
# Figure out "hidden" library dependencies from verbose
7499
7881
# objects, libraries and library flags.
7500
7882
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7501
7883
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7884
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7502
7885
# Dependencies to place before and after the object being linked:
7503
7886
_LT_TAGVAR(predep_objects, $1)=
7504
7887
_LT_TAGVAR(postdep_objects, $1)=
7549
7932
};
7550
7933
_LT_EOF
7551
7934
])
 
7935
 
 
7936
_lt_libdeps_save_CFLAGS=$CFLAGS
 
7937
case "$CC $CFLAGS " in #(
 
7938
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
7939
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7940
esac
 
7941
 
7552
7942
dnl Parse the compiler output and extract the necessary
7553
7943
dnl objects, libraries and library flags.
7554
7944
if AC_TRY_EVAL(ac_compile); then
7560
7950
  pre_test_object_deps_done=no
7561
7951
 
7562
7952
  for p in `eval "$output_verbose_link_cmd"`; do
7563
 
    case $p in
 
7953
    case ${prev}${p} in
7564
7954
 
7565
7955
    -L* | -R* | -l*)
7566
7956
       # Some compilers place space between "-{L,R}" and the path.
7569
7959
          test $p = "-R"; then
7570
7960
         prev=$p
7571
7961
         continue
7572
 
       else
7573
 
         prev=
7574
7962
       fi
7575
7963
 
 
7964
       # Expand the sysroot to ease extracting the directories later.
 
7965
       if test -z "$prev"; then
 
7966
         case $p in
 
7967
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7968
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7969
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7970
         esac
 
7971
       fi
 
7972
       case $p in
 
7973
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7974
       esac
7576
7975
       if test "$pre_test_object_deps_done" = no; then
7577
 
         case $p in
7578
 
         -L* | -R*)
 
7976
         case ${prev} in
 
7977
         -L | -R)
7579
7978
           # Internal compiler library paths should come after those
7580
7979
           # provided the user.  The postdeps already come after the
7581
7980
           # user supplied libs so there is no need to process them.
7595
7994
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7596
7995
         fi
7597
7996
       fi
 
7997
       prev=
7598
7998
       ;;
7599
7999
 
 
8000
    *.lto.$objext) ;; # Ignore GCC LTO objects
7600
8001
    *.$objext)
7601
8002
       # This assumes that the test object file only shows up
7602
8003
       # once in the compiler output.
7632
8033
fi
7633
8034
 
7634
8035
$RM -f confest.$objext
 
8036
CFLAGS=$_lt_libdeps_save_CFLAGS
7635
8037
 
7636
8038
# PORTME: override above test on systems where it is broken
7637
8039
m4_if([$1], [CXX],
7781
8183
  # Allow CC to be a program name with arguments.
7782
8184
  lt_save_CC="$CC"
7783
8185
  lt_save_GCC=$GCC
 
8186
  lt_save_CFLAGS=$CFLAGS
7784
8187
  CC=${F77-"f77"}
 
8188
  CFLAGS=$FFLAGS
7785
8189
  compiler=$CC
7786
8190
  _LT_TAGVAR(compiler, $1)=$CC
7787
8191
  _LT_CC_BASENAME([$compiler])
7835
8239
 
7836
8240
  GCC=$lt_save_GCC
7837
8241
  CC="$lt_save_CC"
 
8242
  CFLAGS="$lt_save_CFLAGS"
7838
8243
fi # test "$_lt_disable_F77" != yes
7839
8244
 
7840
8245
AC_LANG_POP
7911
8316
  # Allow CC to be a program name with arguments.
7912
8317
  lt_save_CC="$CC"
7913
8318
  lt_save_GCC=$GCC
 
8319
  lt_save_CFLAGS=$CFLAGS
7914
8320
  CC=${FC-"f95"}
 
8321
  CFLAGS=$FCFLAGS
7915
8322
  compiler=$CC
7916
8323
  GCC=$ac_cv_fc_compiler_gnu
7917
8324
 
7967
8374
  fi # test -n "$compiler"
7968
8375
 
7969
8376
  GCC=$lt_save_GCC
7970
 
  CC="$lt_save_CC"
 
8377
  CC=$lt_save_CC
 
8378
  CFLAGS=$lt_save_CFLAGS
7971
8379
fi # test "$_lt_disable_FC" != yes
7972
8380
 
7973
8381
AC_LANG_POP
8004
8412
_LT_LINKER_BOILERPLATE
8005
8413
 
8006
8414
# Allow CC to be a program name with arguments.
8007
 
lt_save_CC="$CC"
 
8415
lt_save_CC=$CC
 
8416
lt_save_CFLAGS=$CFLAGS
8008
8417
lt_save_GCC=$GCC
8009
8418
GCC=yes
8010
8419
CC=${GCJ-"gcj"}
 
8420
CFLAGS=$GCJFLAGS
8011
8421
compiler=$CC
8012
8422
_LT_TAGVAR(compiler, $1)=$CC
8013
8423
_LT_TAGVAR(LD, $1)="$LD"
8034
8444
AC_LANG_RESTORE
8035
8445
 
8036
8446
GCC=$lt_save_GCC
8037
 
CC="$lt_save_CC"
 
8447
CC=$lt_save_CC
 
8448
CFLAGS=$lt_save_CFLAGS
8038
8449
])# _LT_LANG_GCJ_CONFIG
8039
8450
 
8040
8451
 
8069
8480
 
8070
8481
# Allow CC to be a program name with arguments.
8071
8482
lt_save_CC="$CC"
 
8483
lt_save_CFLAGS=$CFLAGS
8072
8484
lt_save_GCC=$GCC
8073
8485
GCC=
8074
8486
CC=${RC-"windres"}
 
8487
CFLAGS=
8075
8488
compiler=$CC
8076
8489
_LT_TAGVAR(compiler, $1)=$CC
8077
8490
_LT_CC_BASENAME([$compiler])
8084
8497
 
8085
8498
GCC=$lt_save_GCC
8086
8499
AC_LANG_RESTORE
8087
 
CC="$lt_save_CC"
 
8500
CC=$lt_save_CC
 
8501
CFLAGS=$lt_save_CFLAGS
8088
8502
])# _LT_LANG_RC_CONFIG
8089
8503
 
8090
8504
 
8143
8557
AC_SUBST([OBJDUMP])
8144
8558
])
8145
8559
 
 
8560
# _LT_DECL_DLLTOOL
 
8561
# ----------------
 
8562
# Ensure DLLTOOL variable is set.
 
8563
m4_defun([_LT_DECL_DLLTOOL],
 
8564
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8565
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8566
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
8567
AC_SUBST([DLLTOOL])
 
8568
])
8146
8569
 
8147
8570
# _LT_DECL_SED
8148
8571
# ------------
8234
8657
# Try some XSI features
8235
8658
xsi_shell=no
8236
8659
( _lt_dummy="a/b/c"
8237
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8238
 
      = c,a/b,, \
 
8660
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
8661
      = c,a/b,b/c, \
8239
8662
    && eval 'test $(( 1 + 1 )) -eq 2 \
8240
8663
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8241
8664
  && xsi_shell=yes
8274
8697
])# _LT_CHECK_SHELL_FEATURES
8275
8698
 
8276
8699
 
8277
 
# _LT_PROG_XSI_SHELLFNS
8278
 
# ---------------------
8279
 
# Bourne and XSI compatible variants of some useful shell functions.
8280
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8281
 
[case $xsi_shell in
8282
 
  yes)
8283
 
    cat << \_LT_EOF >> "$cfgfile"
8284
 
 
8285
 
# func_dirname file append nondir_replacement
8286
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8287
 
# otherwise set result to NONDIR_REPLACEMENT.
8288
 
func_dirname ()
8289
 
{
8290
 
  case ${1} in
8291
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8292
 
    *  ) func_dirname_result="${3}" ;;
8293
 
  esac
8294
 
}
8295
 
 
8296
 
# func_basename file
8297
 
func_basename ()
8298
 
{
8299
 
  func_basename_result="${1##*/}"
8300
 
}
8301
 
 
8302
 
# func_dirname_and_basename file append nondir_replacement
8303
 
# perform func_basename and func_dirname in a single function
8304
 
# call:
8305
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8306
 
#             add APPEND to the result, otherwise set result
8307
 
#             to NONDIR_REPLACEMENT.
8308
 
#             value returned in "$func_dirname_result"
8309
 
#   basename: Compute filename of FILE.
8310
 
#             value retuned in "$func_basename_result"
8311
 
# Implementation must be kept synchronized with func_dirname
8312
 
# and func_basename. For efficiency, we do not delegate to
8313
 
# those functions but instead duplicate the functionality here.
8314
 
func_dirname_and_basename ()
8315
 
{
8316
 
  case ${1} in
8317
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8318
 
    *  ) func_dirname_result="${3}" ;;
8319
 
  esac
8320
 
  func_basename_result="${1##*/}"
8321
 
}
8322
 
 
8323
 
# func_stripname prefix suffix name
8324
 
# strip PREFIX and SUFFIX off of NAME.
8325
 
# PREFIX and SUFFIX must not contain globbing or regex special
8326
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8327
 
# dot (in which case that matches only a dot).
8328
 
func_stripname ()
8329
 
{
8330
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8331
 
  # positional parameters, so assign one to ordinary parameter first.
8332
 
  func_stripname_result=${3}
8333
 
  func_stripname_result=${func_stripname_result#"${1}"}
8334
 
  func_stripname_result=${func_stripname_result%"${2}"}
8335
 
}
8336
 
 
8337
 
# func_opt_split
8338
 
func_opt_split ()
8339
 
{
8340
 
  func_opt_split_opt=${1%%=*}
8341
 
  func_opt_split_arg=${1#*=}
8342
 
}
8343
 
 
8344
 
# func_lo2o object
8345
 
func_lo2o ()
8346
 
{
8347
 
  case ${1} in
8348
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8349
 
    *)    func_lo2o_result=${1} ;;
8350
 
  esac
8351
 
}
8352
 
 
8353
 
# func_xform libobj-or-source
8354
 
func_xform ()
8355
 
{
8356
 
  func_xform_result=${1%.*}.lo
8357
 
}
8358
 
 
8359
 
# func_arith arithmetic-term...
8360
 
func_arith ()
8361
 
{
8362
 
  func_arith_result=$(( $[*] ))
8363
 
}
8364
 
 
8365
 
# func_len string
8366
 
# STRING may not start with a hyphen.
8367
 
func_len ()
8368
 
{
8369
 
  func_len_result=${#1}
8370
 
}
8371
 
 
8372
 
_LT_EOF
8373
 
    ;;
8374
 
  *) # Bourne compatible functions.
8375
 
    cat << \_LT_EOF >> "$cfgfile"
8376
 
 
8377
 
# func_dirname file append nondir_replacement
8378
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8379
 
# otherwise set result to NONDIR_REPLACEMENT.
8380
 
func_dirname ()
8381
 
{
8382
 
  # Extract subdirectory from the argument.
8383
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8384
 
  if test "X$func_dirname_result" = "X${1}"; then
8385
 
    func_dirname_result="${3}"
8386
 
  else
8387
 
    func_dirname_result="$func_dirname_result${2}"
8388
 
  fi
8389
 
}
8390
 
 
8391
 
# func_basename file
8392
 
func_basename ()
8393
 
{
8394
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8395
 
}
8396
 
 
8397
 
dnl func_dirname_and_basename
8398
 
dnl A portable version of this function is already defined in general.m4sh
8399
 
dnl so there is no need for it here.
8400
 
 
8401
 
# func_stripname prefix suffix name
8402
 
# strip PREFIX and SUFFIX off of NAME.
8403
 
# PREFIX and SUFFIX must not contain globbing or regex special
8404
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8405
 
# dot (in which case that matches only a dot).
8406
 
# func_strip_suffix prefix name
8407
 
func_stripname ()
8408
 
{
8409
 
  case ${2} in
8410
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8411
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8412
 
  esac
8413
 
}
8414
 
 
8415
 
# sed scripts:
8416
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8417
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8418
 
 
8419
 
# func_opt_split
8420
 
func_opt_split ()
8421
 
{
8422
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8423
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8424
 
}
8425
 
 
8426
 
# func_lo2o object
8427
 
func_lo2o ()
8428
 
{
8429
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8430
 
}
8431
 
 
8432
 
# func_xform libobj-or-source
8433
 
func_xform ()
8434
 
{
8435
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8436
 
}
8437
 
 
8438
 
# func_arith arithmetic-term...
8439
 
func_arith ()
8440
 
{
8441
 
  func_arith_result=`expr "$[@]"`
8442
 
}
8443
 
 
8444
 
# func_len string
8445
 
# STRING may not start with a hyphen.
8446
 
func_len ()
8447
 
{
8448
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8449
 
}
8450
 
 
8451
 
_LT_EOF
8452
 
esac
8453
 
 
8454
 
case $lt_shell_append in
8455
 
  yes)
8456
 
    cat << \_LT_EOF >> "$cfgfile"
8457
 
 
8458
 
# func_append var value
8459
 
# Append VALUE to the end of shell variable VAR.
8460
 
func_append ()
8461
 
{
8462
 
  eval "$[1]+=\$[2]"
8463
 
}
8464
 
_LT_EOF
8465
 
    ;;
8466
 
  *)
8467
 
    cat << \_LT_EOF >> "$cfgfile"
8468
 
 
8469
 
# func_append var value
8470
 
# Append VALUE to the end of shell variable VAR.
8471
 
func_append ()
8472
 
{
8473
 
  eval "$[1]=\$$[1]\$[2]"
8474
 
}
8475
 
 
8476
 
_LT_EOF
8477
 
    ;;
8478
 
  esac
8479
 
])
 
8700
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
8701
# ------------------------------------------------------
 
8702
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
8703
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
8704
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
8705
[dnl {
 
8706
sed -e '/^$1 ()$/,/^} # $1 /c\
 
8707
$1 ()\
 
8708
{\
 
8709
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
8710
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
8711
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8712
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8713
test 0 -eq $? || _lt_function_replace_fail=:
 
8714
])
 
8715
 
 
8716
 
 
8717
# _LT_PROG_REPLACE_SHELLFNS
 
8718
# -------------------------
 
8719
# Replace existing portable implementations of several shell functions with
 
8720
# equivalent extended shell implementations where those features are available..
 
8721
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
8722
[if test x"$xsi_shell" = xyes; then
 
8723
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
8724
    case ${1} in
 
8725
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8726
      *  ) func_dirname_result="${3}" ;;
 
8727
    esac])
 
8728
 
 
8729
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
8730
    func_basename_result="${1##*/}"])
 
8731
 
 
8732
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
8733
    case ${1} in
 
8734
      */*) func_dirname_result="${1%/*}${2}" ;;
 
8735
      *  ) func_dirname_result="${3}" ;;
 
8736
    esac
 
8737
    func_basename_result="${1##*/}"])
 
8738
 
 
8739
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
8740
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8741
    # positional parameters, so assign one to ordinary parameter first.
 
8742
    func_stripname_result=${3}
 
8743
    func_stripname_result=${func_stripname_result#"${1}"}
 
8744
    func_stripname_result=${func_stripname_result%"${2}"}])
 
8745
 
 
8746
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
8747
    func_split_long_opt_name=${1%%=*}
 
8748
    func_split_long_opt_arg=${1#*=}])
 
8749
 
 
8750
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
8751
    func_split_short_opt_arg=${1#??}
 
8752
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
8753
 
 
8754
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
8755
    case ${1} in
 
8756
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8757
      *)    func_lo2o_result=${1} ;;
 
8758
    esac])
 
8759
 
 
8760
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
8761
 
 
8762
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
8763
 
 
8764
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
8765
fi
 
8766
 
 
8767
if test x"$lt_shell_append" = xyes; then
 
8768
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
8769
 
 
8770
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
8771
    func_quote_for_eval "${2}"
 
8772
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
8773
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
8774
 
 
8775
  # Save a `func_append' function call where possible by direct use of '+='
 
8776
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
8777
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8778
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8779
  test 0 -eq $? || _lt_function_replace_fail=:
 
8780
else
 
8781
  # Save a `func_append' function call even when '+=' is not available
 
8782
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
8783
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
8784
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
8785
  test 0 -eq $? || _lt_function_replace_fail=:
 
8786
fi
 
8787
 
 
8788
if test x"$_lt_function_replace_fail" = x":"; then
 
8789
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
8790
fi
 
8791
])
 
8792
 
 
8793
# _LT_PATH_CONVERSION_FUNCTIONS
 
8794
# -----------------------------
 
8795
# Determine which file name conversion functions should be used by
 
8796
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
8797
# for certain cross-compile configurations and native mingw.
 
8798
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
8799
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8800
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
8801
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
8802
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
8803
[case $host in
 
8804
  *-*-mingw* )
 
8805
    case $build in
 
8806
      *-*-mingw* ) # actually msys
 
8807
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
8808
        ;;
 
8809
      *-*-cygwin* )
 
8810
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
8811
        ;;
 
8812
      * ) # otherwise, assume *nix
 
8813
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
8814
        ;;
 
8815
    esac
 
8816
    ;;
 
8817
  *-*-cygwin* )
 
8818
    case $build in
 
8819
      *-*-mingw* ) # actually msys
 
8820
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
8821
        ;;
 
8822
      *-*-cygwin* )
 
8823
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
8824
        ;;
 
8825
      * ) # otherwise, assume *nix
 
8826
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
8827
        ;;
 
8828
    esac
 
8829
    ;;
 
8830
  * ) # unhandled hosts (and "normal" native builds)
 
8831
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
8832
    ;;
 
8833
esac
 
8834
])
 
8835
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
8836
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
8837
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
8838
         [0], [convert $build file names to $host format])dnl
 
8839
 
 
8840
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
8841
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
8842
[#assume ordinary cross tools, or native build.
 
8843
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
8844
case $host in
 
8845
  *-*-mingw* )
 
8846
    case $build in
 
8847
      *-*-mingw* ) # actually msys
 
8848
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
8849
        ;;
 
8850
    esac
 
8851
    ;;
 
8852
esac
 
8853
])
 
8854
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
8855
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
8856
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
8857
         [0], [convert $build files to toolchain format])dnl
 
8858
])# _LT_PATH_CONVERSION_FUNCTIONS
8480
8859
 
8481
8860
# Helper functions for option handling.                    -*- Autoconf -*-
8482
8861
#
8975
9354
# unlimited permission to copy and/or distribute it, with or without
8976
9355
# modifications, as long as this notice is preserved.
8977
9356
 
8978
 
# Generated from ltversion.in.
 
9357
# @configure_input@
8979
9358
 
8980
 
# serial 3175 ltversion.m4
 
9359
# serial 3293 ltversion.m4
8981
9360
# This file is part of GNU Libtool
8982
9361
 
8983
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
8984
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
 
9362
m4_define([LT_PACKAGE_VERSION], [2.4])
 
9363
m4_define([LT_PACKAGE_REVISION], [1.3293])
8985
9364
 
8986
9365
AC_DEFUN([LTVERSION_VERSION],
8987
 
[macro_version='2.2.10'
8988
 
macro_revision='1.3175'
 
9366
[macro_version='2.4'
 
9367
macro_revision='1.3293'
8989
9368
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8990
9369
_LT_DECL(, macro_revision, 0)
8991
9370
])
9259
9638
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9260
9639
installed software in a non-standard prefix.
9261
9640
 
9262
 
_PKG_TEXT])
 
9641
_PKG_TEXT])[]dnl
9263
9642
        ])
9264
9643
elif test $pkg_failed = untried; then
9265
9644
        AC_MSG_RESULT([no])
9270
9649
 
9271
9650
_PKG_TEXT
9272
9651
 
9273
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
9652
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9274
9653
        ])
9275
9654
else
9276
9655
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS