~ubuntu-branches/debian/wheezy/libnice/wheezy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2011-09-13 18:28:21 UTC
  • mfrom: (1.2.6 upstream) (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20110913182821-5jd0qabf4w68lf2v
Tags: 0.1.1-1
* New upstream release.
* debian/control:
  - Bump Standards-Version to 3.9.2 (no further changes)
  - Make libnice-dev Depends against libglib2.0-dev instead of just
    Recommending it
* Follow multi-arch specification

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'.])])
251
251
dnl
252
252
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
253
253
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
254
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
254
255
m4_require([_LT_CMD_RELOAD])dnl
255
256
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
257
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
256
258
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
257
259
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
260
m4_require([_LT_WITH_SYSROOT])dnl
258
261
 
259
262
_LT_CONFIG_LIBTOOL_INIT([
260
263
# See if we are running on zsh, and set the options which allow our
825
828
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
826
829
  # text mode, it properly converts lines to CR/LF.  This bash problem
827
830
  # is reportedly fixed, but why not run on old versions too?
828
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
829
 
    || (rm -f "$cfgfile"; exit 1)
830
 
 
831
 
  _LT_PROG_XSI_SHELLFNS
832
 
 
833
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
834
 
    || (rm -f "$cfgfile"; exit 1)
835
 
 
836
 
  mv -f "$cfgfile" "$ofile" ||
 
831
  sed '$q' "$ltmain" >> "$cfgfile" \
 
832
     || (rm -f "$cfgfile"; exit 1)
 
833
 
 
834
  _LT_PROG_REPLACE_SHELLFNS
 
835
 
 
836
   mv -f "$cfgfile" "$ofile" ||
837
837
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
838
838
  chmod +x "$ofile"
839
839
],
1150
1150
  fi
1151
1151
])
1152
1152
 
1153
 
# _LT_SYS_MODULE_PATH_AIX
1154
 
# -----------------------
 
1153
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 
1154
# ----------------------------------
1155
1155
# Links a minimal program and checks the executable
1156
1156
# for the system default hardcoded library path. In most cases,
1157
1157
# this is /usr/lib:/lib, but when the MPI compilers are used
1158
1158
# the location of the communication and MPI libs are included too.
1159
1159
# If we don't find anything, use the default library path according
1160
1160
# to the aix ld manual.
 
1161
# Store the results from the different compilers for each TAGNAME.
 
1162
# Allow to override them for all tags through lt_cv_aix_libpath.
1161
1163
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1162
1164
[m4_require([_LT_DECL_SED])dnl
1163
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1164
 
lt_aix_libpath_sed='
1165
 
    /Import File Strings/,/^$/ {
1166
 
        /^0/ {
1167
 
            s/^0  *\(.*\)$/\1/
1168
 
            p
1169
 
        }
1170
 
    }'
1171
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1172
 
# Check for a 64-bit object if we didn't find anything.
1173
 
if test -z "$aix_libpath"; then
1174
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1175
 
fi],[])
1176
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1165
if test "${lt_cv_aix_libpath+set}" = set; then
 
1166
  aix_libpath=$lt_cv_aix_libpath
 
1167
else
 
1168
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 
1169
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 
1170
  lt_aix_libpath_sed='[
 
1171
      /Import File Strings/,/^$/ {
 
1172
          /^0/ {
 
1173
              s/^0  *\([^ ]*\) *$/\1/
 
1174
              p
 
1175
          }
 
1176
      }]'
 
1177
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1178
  # Check for a 64-bit object if we didn't find anything.
 
1179
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1180
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1181
  fi],[])
 
1182
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 
1183
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1184
  fi
 
1185
  ])
 
1186
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 
1187
fi
1177
1188
])# _LT_SYS_MODULE_PATH_AIX
1178
1189
 
1179
1190
 
1198
1209
 
1199
1210
AC_MSG_CHECKING([how to print strings])
1200
1211
# Test print first, because it will be a builtin if present.
1201
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
 
1212
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1202
1213
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1203
1214
  ECHO='print -r --'
1204
1215
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1242
1253
])# _LT_PROG_ECHO_BACKSLASH
1243
1254
 
1244
1255
 
 
1256
# _LT_WITH_SYSROOT
 
1257
# ----------------
 
1258
AC_DEFUN([_LT_WITH_SYSROOT],
 
1259
[AC_MSG_CHECKING([for sysroot])
 
1260
AC_ARG_WITH([sysroot],
 
1261
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 
1262
                        (or the compiler's sysroot if not specified).],
 
1263
[], [with_sysroot=no])
 
1264
 
 
1265
dnl lt_sysroot will always be passed unquoted.  We quote it here
 
1266
dnl in case the user passed a directory name.
 
1267
lt_sysroot=
 
1268
case ${with_sysroot} in #(
 
1269
 yes)
 
1270
   if test "$GCC" = yes; then
 
1271
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
1272
   fi
 
1273
   ;; #(
 
1274
 /*)
 
1275
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
1276
   ;; #(
 
1277
 no|'')
 
1278
   ;; #(
 
1279
 *)
 
1280
   AC_MSG_RESULT([${with_sysroot}])
 
1281
   AC_MSG_ERROR([The sysroot must be an absolute path.])
 
1282
   ;;
 
1283
esac
 
1284
 
 
1285
 AC_MSG_RESULT([${lt_sysroot:-no}])
 
1286
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 
1287
[dependent libraries, and in which our libraries should be installed.])])
 
1288
 
1245
1289
# _LT_ENABLE_LOCK
1246
1290
# ---------------
1247
1291
m4_defun([_LT_ENABLE_LOCK],
1388
1432
])# _LT_ENABLE_LOCK
1389
1433
 
1390
1434
 
 
1435
# _LT_PROG_AR
 
1436
# -----------
 
1437
m4_defun([_LT_PROG_AR],
 
1438
[AC_CHECK_TOOLS(AR, [ar], false)
 
1439
: ${AR=ar}
 
1440
: ${AR_FLAGS=cru}
 
1441
_LT_DECL([], [AR], [1], [The archiver])
 
1442
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
1443
 
 
1444
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 
1445
  [lt_cv_ar_at_file=no
 
1446
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 
1447
     [echo conftest.$ac_objext > conftest.lst
 
1448
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 
1449
      AC_TRY_EVAL([lt_ar_try])
 
1450
      if test "$ac_status" -eq 0; then
 
1451
        # Ensure the archiver fails upon bogus file names.
 
1452
        rm -f conftest.$ac_objext libconftest.a
 
1453
        AC_TRY_EVAL([lt_ar_try])
 
1454
        if test "$ac_status" -ne 0; then
 
1455
          lt_cv_ar_at_file=@
 
1456
        fi
 
1457
      fi
 
1458
      rm -f conftest.* libconftest.a
 
1459
     ])
 
1460
  ])
 
1461
 
 
1462
if test "x$lt_cv_ar_at_file" = xno; then
 
1463
  archiver_list_spec=
 
1464
else
 
1465
  archiver_list_spec=$lt_cv_ar_at_file
 
1466
fi
 
1467
_LT_DECL([], [archiver_list_spec], [1],
 
1468
  [How to feed a file listing to the archiver])
 
1469
])# _LT_PROG_AR
 
1470
 
 
1471
 
1391
1472
# _LT_CMD_OLD_ARCHIVE
1392
1473
# -------------------
1393
1474
m4_defun([_LT_CMD_OLD_ARCHIVE],
1394
 
[AC_CHECK_TOOL(AR, ar, false)
1395
 
test -z "$AR" && AR=ar
1396
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1397
 
_LT_DECL([], [AR], [1], [The archiver])
1398
 
_LT_DECL([], [AR_FLAGS], [1])
 
1475
[_LT_PROG_AR
1399
1476
 
1400
1477
AC_CHECK_TOOL(STRIP, strip, :)
1401
1478
test -z "$STRIP" && STRIP=:
1735
1812
/* When -fvisbility=hidden is used, assume the code has been annotated
1736
1813
   correspondingly for the symbols needed.  */
1737
1814
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1738
 
void fnord () __attribute__((visibility("default")));
 
1815
int fnord () __attribute__((visibility("default")));
1739
1816
#endif
1740
1817
 
1741
 
void fnord () { int i=42; }
 
1818
int fnord () { return 42; }
1742
1819
int main ()
1743
1820
{
1744
1821
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2278
2355
  need_version=no
2279
2356
  need_lib_prefix=no
2280
2357
 
2281
 
  case $GCC,$host_os in
2282
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2358
  case $GCC,$cc_basename in
 
2359
  yes,*)
 
2360
    # gcc
2283
2361
    library_names_spec='$libname.dll.a'
2284
2362
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2285
2363
    postinstall_cmds='base_file=`basename \${file}`~
2312
2390
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2313
2391
      ;;
2314
2392
    esac
 
2393
    dynamic_linker='Win32 ld.exe'
 
2394
    ;;
 
2395
 
 
2396
  *,cl*)
 
2397
    # Native MSVC
 
2398
    libname_spec='$name'
 
2399
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2400
    library_names_spec='${libname}.dll.lib'
 
2401
 
 
2402
    case $build_os in
 
2403
    mingw*)
 
2404
      sys_lib_search_path_spec=
 
2405
      lt_save_ifs=$IFS
 
2406
      IFS=';'
 
2407
      for lt_path in $LIB
 
2408
      do
 
2409
        IFS=$lt_save_ifs
 
2410
        # Let DOS variable expansion print the short 8.3 style file name.
 
2411
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
2412
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
2413
      done
 
2414
      IFS=$lt_save_ifs
 
2415
      # Convert to MSYS style.
 
2416
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 
2417
      ;;
 
2418
    cygwin*)
 
2419
      # Convert to unix form, then to dos form, then back to unix form
 
2420
      # but this time dos style (no spaces!) so that the unix form looks
 
2421
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
2422
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
2423
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
2424
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2425
      ;;
 
2426
    *)
 
2427
      sys_lib_search_path_spec="$LIB"
 
2428
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2429
        # It is most probably a Windows format PATH.
 
2430
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2431
      else
 
2432
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
2433
      fi
 
2434
      # FIXME: find the short name or the path components, as spaces are
 
2435
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
2436
      ;;
 
2437
    esac
 
2438
 
 
2439
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2440
    postinstall_cmds='base_file=`basename \${file}`~
 
2441
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2442
      dldir=$destdir/`dirname \$dlpath`~
 
2443
      test -d \$dldir || mkdir -p \$dldir~
 
2444
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2445
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2446
      dlpath=$dir/\$dldll~
 
2447
       $RM \$dlpath'
 
2448
    shlibpath_overrides_runpath=yes
 
2449
    dynamic_linker='Win32 link.exe'
2315
2450
    ;;
2316
2451
 
2317
2452
  *)
 
2453
    # Assume MSVC wrapper
2318
2454
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2455
    dynamic_linker='Win32 ld.exe'
2319
2456
    ;;
2320
2457
  esac
2321
 
  dynamic_linker='Win32 ld.exe'
2322
2458
  # FIXME: first we should search . and the directory the executable is in
2323
2459
  shlibpath_var=PATH
2324
2460
  ;;
3026
3162
esac
3027
3163
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3028
3164
case $host_os in
 
3165
  cygwin* | mingw* | pw32* | cegcc*)
 
3166
    if test "$GCC" != yes; then
 
3167
      reload_cmds=false
 
3168
    fi
 
3169
    ;;
3029
3170
  darwin*)
3030
3171
    if test "$GCC" = yes; then
3031
3172
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3244
3385
  ;;
3245
3386
esac
3246
3387
])
 
3388
 
 
3389
file_magic_glob=
 
3390
want_nocaseglob=no
 
3391
if test "$build" = "$host"; then
 
3392
  case $host_os in
 
3393
  mingw* | pw32*)
 
3394
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
3395
      want_nocaseglob=yes
 
3396
    else
 
3397
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 
3398
    fi
 
3399
    ;;
 
3400
  esac
 
3401
fi
 
3402
 
3247
3403
file_magic_cmd=$lt_cv_file_magic_cmd
3248
3404
deplibs_check_method=$lt_cv_deplibs_check_method
3249
3405
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3251
3407
_LT_DECL([], [deplibs_check_method], [1],
3252
3408
    [Method to check whether dependent libraries are shared objects])
3253
3409
_LT_DECL([], [file_magic_cmd], [1],
3254
 
    [Command to use when deplibs_check_method == "file_magic"])
 
3410
    [Command to use when deplibs_check_method = "file_magic"])
 
3411
_LT_DECL([], [file_magic_glob], [1],
 
3412
    [How to find potential files when deplibs_check_method = "file_magic"])
 
3413
_LT_DECL([], [want_nocaseglob], [1],
 
3414
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3255
3415
])# _LT_CHECK_MAGIC_METHOD
3256
3416
 
3257
3417
 
3354
3514
dnl AC_DEFUN([AM_PROG_NM], [])
3355
3515
dnl AC_DEFUN([AC_PROG_NM], [])
3356
3516
 
 
3517
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3518
# --------------------------------
 
3519
# how to determine the name of the shared library
 
3520
# associated with a specific link library.
 
3521
#  -- PORTME fill in with the dynamic library characteristics
 
3522
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 
3523
[m4_require([_LT_DECL_EGREP])
 
3524
m4_require([_LT_DECL_OBJDUMP])
 
3525
m4_require([_LT_DECL_DLLTOOL])
 
3526
AC_CACHE_CHECK([how to associate runtime and link libraries],
 
3527
lt_cv_sharedlib_from_linklib_cmd,
 
3528
[lt_cv_sharedlib_from_linklib_cmd='unknown'
 
3529
 
 
3530
case $host_os in
 
3531
cygwin* | mingw* | pw32* | cegcc*)
 
3532
  # two different shell functions defined in ltmain.sh
 
3533
  # decide which to use based on capabilities of $DLLTOOL
 
3534
  case `$DLLTOOL --help 2>&1` in
 
3535
  *--identify-strict*)
 
3536
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
3537
    ;;
 
3538
  *)
 
3539
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
3540
    ;;
 
3541
  esac
 
3542
  ;;
 
3543
*)
 
3544
  # fallback: assume linklib IS sharedlib
 
3545
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
3546
  ;;
 
3547
esac
 
3548
])
 
3549
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
3550
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
3551
 
 
3552
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 
3553
    [Command to associate shared and link libraries])
 
3554
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 
3555
 
 
3556
 
 
3557
# _LT_PATH_MANIFEST_TOOL
 
3558
# ----------------------
 
3559
# locate the manifest tool
 
3560
m4_defun([_LT_PATH_MANIFEST_TOOL],
 
3561
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 
3562
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
3563
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 
3564
  [lt_cv_path_mainfest_tool=no
 
3565
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 
3566
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
3567
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3568
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
3569
    lt_cv_path_mainfest_tool=yes
 
3570
  fi
 
3571
  rm -f conftest*])
 
3572
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
3573
  MANIFEST_TOOL=:
 
3574
fi
 
3575
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 
3576
])# _LT_PATH_MANIFEST_TOOL
 
3577
 
3357
3578
 
3358
3579
# LT_LIB_M
3359
3580
# --------
3480
3701
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3481
3702
 
3482
3703
# Transform an extracted symbol line into symbol name and symbol address
3483
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3484
 
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'"
 
3704
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3705
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'"
3485
3706
 
3486
3707
# Handle CRLF in mingw tool chain
3487
3708
opt_cr=
3517
3738
  else
3518
3739
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3519
3740
  fi
 
3741
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3520
3742
 
3521
3743
  # Check to see that the pipe works correctly.
3522
3744
  pipe_works=no
3550
3772
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3551
3773
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3552
3774
          cat <<_LT_EOF > conftest.$ac_ext
 
3775
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
3776
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
3777
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
3778
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
3779
# define LT@&t@_DLSYM_CONST
 
3780
#elif defined(__osf__)
 
3781
/* This system does not cope well with relocations in const data.  */
 
3782
# define LT@&t@_DLSYM_CONST
 
3783
#else
 
3784
# define LT@&t@_DLSYM_CONST const
 
3785
#endif
 
3786
 
3553
3787
#ifdef __cplusplus
3554
3788
extern "C" {
3555
3789
#endif
3561
3795
          cat <<_LT_EOF >> conftest.$ac_ext
3562
3796
 
3563
3797
/* The mapping between symbol names and symbols.  */
3564
 
const struct {
 
3798
LT@&t@_DLSYM_CONST struct {
3565
3799
  const char *name;
3566
3800
  void       *address;
3567
3801
}
3587
3821
_LT_EOF
3588
3822
          # Now try linking the two files.
3589
3823
          mv conftest.$ac_objext conftstm.$ac_objext
3590
 
          lt_save_LIBS="$LIBS"
3591
 
          lt_save_CFLAGS="$CFLAGS"
 
3824
          lt_globsym_save_LIBS=$LIBS
 
3825
          lt_globsym_save_CFLAGS=$CFLAGS
3592
3826
          LIBS="conftstm.$ac_objext"
3593
3827
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3594
3828
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3595
3829
            pipe_works=yes
3596
3830
          fi
3597
 
          LIBS="$lt_save_LIBS"
3598
 
          CFLAGS="$lt_save_CFLAGS"
 
3831
          LIBS=$lt_globsym_save_LIBS
 
3832
          CFLAGS=$lt_globsym_save_CFLAGS
3599
3833
        else
3600
3834
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3601
3835
        fi
3628
3862
  AC_MSG_RESULT(ok)
3629
3863
fi
3630
3864
 
 
3865
# Response file support.
 
3866
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3867
  nm_file_list_spec='@'
 
3868
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 
3869
  nm_file_list_spec='@'
 
3870
fi
 
3871
 
3631
3872
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3632
3873
    [Take the output of nm and produce a listing of raw symbols and C names])
3633
3874
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3638
3879
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3639
3880
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3640
3881
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3882
_LT_DECL([], [nm_file_list_spec], [1],
 
3883
    [Specify filename containing input files for $NM])
3641
3884
]) # _LT_CMD_GLOBAL_SYMBOLS
3642
3885
 
3643
3886
 
3649
3892
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3650
3893
_LT_TAGVAR(lt_prog_compiler_static, $1)=
3651
3894
 
3652
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
3653
3895
m4_if([$1], [CXX], [
3654
3896
  # C++ specific cases for pic, static, wl, etc.
3655
3897
  if test "$GXX" = yes; then
3754
3996
          ;;
3755
3997
        esac
3756
3998
        ;;
 
3999
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
4000
        # This hack is so that the source file can tell whether it is being
 
4001
        # built for inclusion in a dll (and should export symbols for example).
 
4002
        m4_if([$1], [GCJ], [],
 
4003
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4004
        ;;
3757
4005
      dgux*)
3758
4006
        case $cc_basename in
3759
4007
          ec++*)
4128
4376
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4129
4377
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4130
4378
        ;;
 
4379
      nagfor*)
 
4380
        # NAG Fortran compiler
 
4381
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
4382
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4383
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4384
        ;;
4131
4385
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4132
4386
        # Portland Group compilers (*not* the Pentium gcc compiler,
4133
4387
        # which looks to be a dead project)
4247
4501
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4248
4502
    ;;
4249
4503
esac
4250
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4251
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4252
 
        [How to pass a linker flag through the compiler])
 
4504
 
 
4505
AC_CACHE_CHECK([for $compiler option to produce PIC],
 
4506
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 
4507
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4508
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4253
4509
 
4254
4510
#
4255
4511
# Check to make sure the PIC flag actually works.
4268
4524
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4269
4525
        [Additional compiler flags for building library objects])
4270
4526
 
 
4527
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4528
        [How to pass a linker flag through the compiler])
4271
4529
#
4272
4530
# Check to make sure the static flag actually works.
4273
4531
#
4288
4546
m4_defun([_LT_LINKER_SHLIBS],
4289
4547
[AC_REQUIRE([LT_PATH_LD])dnl
4290
4548
AC_REQUIRE([LT_PATH_NM])dnl
 
4549
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4291
4550
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4292
4551
m4_require([_LT_DECL_EGREP])dnl
4293
4552
m4_require([_LT_DECL_SED])dnl
4296
4555
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4297
4556
m4_if([$1], [CXX], [
4298
4557
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4558
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4299
4559
  case $host_os in
4300
4560
  aix[[4-9]]*)
4301
4561
    # If we're using GNU nm, then we don't want the "-C" option.
4310
4570
    ;;
4311
4571
  pw32*)
4312
4572
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4313
 
  ;;
 
4573
    ;;
4314
4574
  cygwin* | mingw* | cegcc*)
4315
 
    _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'
4316
 
  ;;
 
4575
    case $cc_basename in
 
4576
    cl*) ;;
 
4577
    *)
 
4578
      _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'
 
4579
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 
4580
      ;;
 
4581
    esac
 
4582
    ;;
4317
4583
  *)
4318
4584
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4319
 
  ;;
 
4585
    ;;
4320
4586
  esac
4321
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4322
4587
], [
4323
4588
  runpath_var=
4324
4589
  _LT_TAGVAR(allow_undefined_flag, $1)=
4486
4751
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4487
4752
      _LT_TAGVAR(always_export_symbols, $1)=no
4488
4753
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4489
 
      _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'
 
4754
      _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'
 
4755
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4490
4756
 
4491
4757
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4492
4758
        _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'
4534
4800
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4535
4801
         && test "$tmp_diet" = no
4536
4802
      then
4537
 
        tmp_addflag=
 
4803
        tmp_addflag=' $pic_flag'
4538
4804
        tmp_sharedflag='-shared'
4539
4805
        case $cc_basename,$host_cpu in
4540
4806
        pgcc*)                          # Portland Group C compiler
4604
4870
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4605
4871
        wlarc=
4606
4872
      else
4607
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4608
 
        _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'
 
4873
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4874
        _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'
4609
4875
      fi
4610
4876
      ;;
4611
4877
 
4623
4889
 
4624
4890
_LT_EOF
4625
4891
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4626
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4627
 
        _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'
 
4892
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4893
        _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'
4628
4894
      else
4629
4895
        _LT_TAGVAR(ld_shlibs, $1)=no
4630
4896
      fi
4670
4936
 
4671
4937
    *)
4672
4938
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4673
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4674
 
        _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'
 
4939
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4940
        _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'
4675
4941
      else
4676
4942
        _LT_TAGVAR(ld_shlibs, $1)=no
4677
4943
      fi
4801
5067
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4802
5068
        # Determine the default libpath from the value encoded in an
4803
5069
        # empty executable.
4804
 
        _LT_SYS_MODULE_PATH_AIX
 
5070
        _LT_SYS_MODULE_PATH_AIX([$1])
4805
5071
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4806
5072
        _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"
4807
5073
      else
4812
5078
        else
4813
5079
         # Determine the default libpath from the value encoded in an
4814
5080
         # empty executable.
4815
 
         _LT_SYS_MODULE_PATH_AIX
 
5081
         _LT_SYS_MODULE_PATH_AIX([$1])
4816
5082
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4817
5083
          # Warning - without using the other run time loading flags,
4818
5084
          # -berok will link without error, but may produce a broken library.
4856
5122
      # Microsoft Visual C++.
4857
5123
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4858
5124
      # no search path for DLLs.
4859
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4860
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4861
 
      # Tell ltmain to make .lib files, not .a files.
4862
 
      libext=lib
4863
 
      # Tell ltmain to make .dll files, not .so files.
4864
 
      shrext_cmds=".dll"
4865
 
      # FIXME: Setting linknames here is a bad hack.
4866
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4867
 
      # The linker will automatically build a .lib file if we build a DLL.
4868
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4869
 
      # FIXME: Should let the user specify the lib program.
4870
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4871
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4872
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5125
      case $cc_basename in
 
5126
      cl*)
 
5127
        # Native MSVC
 
5128
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5129
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5130
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5131
        _LT_TAGVAR(file_list_spec, $1)='@'
 
5132
        # Tell ltmain to make .lib files, not .a files.
 
5133
        libext=lib
 
5134
        # Tell ltmain to make .dll files, not .so files.
 
5135
        shrext_cmds=".dll"
 
5136
        # FIXME: Setting linknames here is a bad hack.
 
5137
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
5138
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5139
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
5140
          else
 
5141
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
5142
          fi~
 
5143
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
5144
          linknames='
 
5145
        # The linker will not automatically build a static lib if we build a DLL.
 
5146
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5147
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5148
        _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'
 
5149
        # Don't use ranlib
 
5150
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
5151
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
5152
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
5153
          case $lt_outputfile in
 
5154
            *.exe|*.EXE) ;;
 
5155
            *)
 
5156
              lt_outputfile="$lt_outputfile.exe"
 
5157
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
5158
              ;;
 
5159
          esac~
 
5160
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
5161
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
5162
            $RM "$lt_outputfile.manifest";
 
5163
          fi'
 
5164
        ;;
 
5165
      *)
 
5166
        # Assume MSVC wrapper
 
5167
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5168
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5169
        # Tell ltmain to make .lib files, not .a files.
 
5170
        libext=lib
 
5171
        # Tell ltmain to make .dll files, not .so files.
 
5172
        shrext_cmds=".dll"
 
5173
        # FIXME: Setting linknames here is a bad hack.
 
5174
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
5175
        # The linker will automatically build a .lib file if we build a DLL.
 
5176
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
5177
        # FIXME: Should let the user specify the lib program.
 
5178
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5179
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5180
        ;;
 
5181
      esac
4873
5182
      ;;
4874
5183
 
4875
5184
    darwin* | rhapsody*)
4907
5216
 
4908
5217
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4909
5218
    freebsd* | dragonfly*)
4910
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5219
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4911
5220
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4912
5221
      _LT_TAGVAR(hardcode_direct, $1)=yes
4913
5222
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4915
5224
 
4916
5225
    hpux9*)
4917
5226
      if test "$GCC" = yes; then
4918
 
        _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'
 
5227
        _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'
4919
5228
      else
4920
5229
        _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'
4921
5230
      fi
4931
5240
 
4932
5241
    hpux10*)
4933
5242
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4934
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5243
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4935
5244
      else
4936
5245
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4937
5246
      fi
4955
5264
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4956
5265
          ;;
4957
5266
        ia64*)
4958
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5267
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4959
5268
          ;;
4960
5269
        *)
4961
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5270
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4962
5271
          ;;
4963
5272
        esac
4964
5273
      else
5005
5314
 
5006
5315
    irix5* | irix6* | nonstopux*)
5007
5316
      if test "$GCC" = yes; then
5008
 
        _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'
 
5317
        _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'
5009
5318
        # Try to use the -exported_symbol ld option, if it does not
5010
5319
        # work, assume that -exports_file does not work either and
5011
5320
        # implicitly export all symbols.
5012
 
        save_LDFLAGS="$LDFLAGS"
5013
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5014
 
        AC_LINK_IFELSE(int foo(void) {},
5015
 
          _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'
5016
 
        )
5017
 
        LDFLAGS="$save_LDFLAGS"
 
5321
        # This should be the same for all languages, so no per-tag cache variable.
 
5322
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 
5323
          [lt_cv_irix_exported_symbol],
 
5324
          [save_LDFLAGS="$LDFLAGS"
 
5325
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5326
           AC_LINK_IFELSE(
 
5327
             [AC_LANG_SOURCE(
 
5328
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 
5329
                              [C++], [[int foo (void) { return 0; }]],
 
5330
                              [Fortran 77], [[
 
5331
      subroutine foo
 
5332
      end]],
 
5333
                              [Fortran], [[
 
5334
      subroutine foo
 
5335
      end]])])],
 
5336
              [lt_cv_irix_exported_symbol=yes],
 
5337
              [lt_cv_irix_exported_symbol=no])
 
5338
           LDFLAGS="$save_LDFLAGS"])
 
5339
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
5340
          _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'
 
5341
        fi
5018
5342
      else
5019
5343
        _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'
5020
5344
        _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'
5099
5423
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5100
5424
      if test "$GCC" = yes; then
5101
5425
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5102
 
        _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'
 
5426
        _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'
5103
5427
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5104
5428
      else
5105
5429
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5118
5442
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5119
5443
      if test "$GCC" = yes; then
5120
5444
        wlarc='${wl}'
5121
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5445
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5122
5446
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5123
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5447
          $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'
5124
5448
      else
5125
5449
        case `$CC -V 2>&1` in
5126
5450
        *"Compilers 5.0"*)
5392
5716
    to runtime path list])
5393
5717
_LT_TAGDECL([], [link_all_deplibs], [0],
5394
5718
    [Whether libtool must link a program against all its dependency libraries])
5395
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5396
 
    [Fix the shell variable $srcfile for the compiler])
5397
5719
_LT_TAGDECL([], [always_export_symbols], [0],
5398
5720
    [Set to "yes" if exported symbols are required])
5399
5721
_LT_TAGDECL([], [export_symbols_cmds], [2],
5404
5726
    [Symbols that must always be exported])
5405
5727
_LT_TAGDECL([], [prelink_cmds], [2],
5406
5728
    [Commands necessary for linking programs (against libraries) with templates])
 
5729
_LT_TAGDECL([], [postlink_cmds], [2],
 
5730
    [Commands necessary for finishing linking programs])
5407
5731
_LT_TAGDECL([], [file_list_spec], [1],
5408
5732
    [Specify filename containing input files])
5409
5733
dnl FIXME: Not yet implemented
5501
5825
m4_defun([_LT_LANG_CXX_CONFIG],
5502
5826
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5503
5827
m4_require([_LT_DECL_EGREP])dnl
 
5828
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5504
5829
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5505
5830
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5506
5831
    (test "X$CXX" != "Xg++"))) ; then
5562
5887
 
5563
5888
  # Allow CC to be a program name with arguments.
5564
5889
  lt_save_CC=$CC
 
5890
  lt_save_CFLAGS=$CFLAGS
5565
5891
  lt_save_LD=$LD
5566
5892
  lt_save_GCC=$GCC
5567
5893
  GCC=$GXX
5579
5905
  fi
5580
5906
  test -z "${LDCXX+set}" || LD=$LDCXX
5581
5907
  CC=${CXX-"c++"}
 
5908
  CFLAGS=$CXXFLAGS
5582
5909
  compiler=$CC
5583
5910
  _LT_TAGVAR(compiler, $1)=$CC
5584
5911
  _LT_CC_BASENAME([$compiler])
5600
5927
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5601
5928
      # archiving commands below assume that GNU ld is being used.
5602
5929
      if test "$with_gnu_ld" = yes; then
5603
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5604
 
        _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'
 
5930
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5931
        _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'
5605
5932
 
5606
5933
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5607
5934
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5742
6069
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5743
6070
          # Determine the default libpath from the value encoded in an empty
5744
6071
          # executable.
5745
 
          _LT_SYS_MODULE_PATH_AIX
 
6072
          _LT_SYS_MODULE_PATH_AIX([$1])
5746
6073
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5747
6074
 
5748
6075
          _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"
5754
6081
          else
5755
6082
            # Determine the default libpath from the value encoded in an
5756
6083
            # empty executable.
5757
 
            _LT_SYS_MODULE_PATH_AIX
 
6084
            _LT_SYS_MODULE_PATH_AIX([$1])
5758
6085
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5759
6086
            # Warning - without using the other run time loading flags,
5760
6087
            # -berok will link without error, but may produce a broken library.
5796
6123
        ;;
5797
6124
 
5798
6125
      cygwin* | mingw* | pw32* | cegcc*)
5799
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5800
 
        # as there is no search path for DLLs.
5801
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5802
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5803
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5804
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5805
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6126
        case $GXX,$cc_basename in
 
6127
        ,cl* | no,cl*)
 
6128
          # Native MSVC
 
6129
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6130
          # no search path for DLLs.
 
6131
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6132
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6133
          _LT_TAGVAR(always_export_symbols, $1)=yes
 
6134
          _LT_TAGVAR(file_list_spec, $1)='@'
 
6135
          # Tell ltmain to make .lib files, not .a files.
 
6136
          libext=lib
 
6137
          # Tell ltmain to make .dll files, not .so files.
 
6138
          shrext_cmds=".dll"
 
6139
          # FIXME: Setting linknames here is a bad hack.
 
6140
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
6141
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6142
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
6143
            else
 
6144
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
6145
            fi~
 
6146
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6147
            linknames='
 
6148
          # The linker will not automatically build a static lib if we build a DLL.
 
6149
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6150
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6151
          # Don't use ranlib
 
6152
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 
6153
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 
6154
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6155
            case $lt_outputfile in
 
6156
              *.exe|*.EXE) ;;
 
6157
              *)
 
6158
                lt_outputfile="$lt_outputfile.exe"
 
6159
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
6160
                ;;
 
6161
            esac~
 
6162
            func_to_tool_file "$lt_outputfile"~
 
6163
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
6164
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6165
              $RM "$lt_outputfile.manifest";
 
6166
            fi'
 
6167
          ;;
 
6168
        *)
 
6169
          # g++
 
6170
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6171
          # as there is no search path for DLLs.
 
6172
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6173
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
6174
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6175
          _LT_TAGVAR(always_export_symbols, $1)=no
 
6176
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5806
6177
 
5807
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5808
 
          _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'
5809
 
          # If the export-symbols file already is a .def file (1st line
5810
 
          # is EXPORTS), use it as is; otherwise, prepend...
5811
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5812
 
            cp $export_symbols $output_objdir/$soname.def;
5813
 
          else
5814
 
            echo EXPORTS > $output_objdir/$soname.def;
5815
 
            cat $export_symbols >> $output_objdir/$soname.def;
5816
 
          fi~
5817
 
          $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'
5818
 
        else
5819
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5820
 
        fi
5821
 
        ;;
 
6178
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6179
            _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'
 
6180
            # If the export-symbols file already is a .def file (1st line
 
6181
            # is EXPORTS), use it as is; otherwise, prepend...
 
6182
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6183
              cp $export_symbols $output_objdir/$soname.def;
 
6184
            else
 
6185
              echo EXPORTS > $output_objdir/$soname.def;
 
6186
              cat $export_symbols >> $output_objdir/$soname.def;
 
6187
            fi~
 
6188
            $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'
 
6189
          else
 
6190
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6191
          fi
 
6192
          ;;
 
6193
        esac
 
6194
        ;;
5822
6195
      darwin* | rhapsody*)
5823
6196
        _LT_DARWIN_LINKER_FEATURES($1)
5824
6197
        ;;
5893
6266
            ;;
5894
6267
          *)
5895
6268
            if test "$GXX" = yes; then
5896
 
              _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'
 
6269
              _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'
5897
6270
            else
5898
6271
              # FIXME: insert proper C++ library support
5899
6272
              _LT_TAGVAR(ld_shlibs, $1)=no
5964
6337
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5965
6338
                    ;;
5966
6339
                  ia64*)
5967
 
                    _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'
 
6340
                    _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'
5968
6341
                    ;;
5969
6342
                  *)
5970
 
                    _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'
 
6343
                    _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'
5971
6344
                    ;;
5972
6345
                esac
5973
6346
              fi
6008
6381
          *)
6009
6382
            if test "$GXX" = yes; then
6010
6383
              if test "$with_gnu_ld" = no; then
6011
 
                _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'
 
6384
                _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'
6012
6385
              else
6013
 
                _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'
 
6386
                _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'
6014
6387
              fi
6015
6388
            fi
6016
6389
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6288
6661
                  _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'
6289
6662
                  ;;
6290
6663
                *)
6291
 
                  _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'
 
6664
                  _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'
6292
6665
                  ;;
6293
6666
              esac
6294
6667
 
6375
6748
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6376
6749
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6377
6750
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6378
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6751
                _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'
6379
6752
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6380
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6753
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6381
6754
 
6382
6755
                # Commands to make compiler produce verbose output that lists
6383
6756
                # what "hidden" libraries, object files and flags are used when
6506
6879
  fi # test -n "$compiler"
6507
6880
 
6508
6881
  CC=$lt_save_CC
 
6882
  CFLAGS=$lt_save_CFLAGS
6509
6883
  LDCXX=$LD
6510
6884
  LD=$lt_save_LD
6511
6885
  GCC=$lt_save_GCC
6520
6894
])# _LT_LANG_CXX_CONFIG
6521
6895
 
6522
6896
 
 
6897
# _LT_FUNC_STRIPNAME_CNF
 
6898
# ----------------------
 
6899
# func_stripname_cnf prefix suffix name
 
6900
# strip PREFIX and SUFFIX off of NAME.
 
6901
# PREFIX and SUFFIX must not contain globbing or regex special
 
6902
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
6903
# dot (in which case that matches only a dot).
 
6904
#
 
6905
# This function is identical to the (non-XSI) version of func_stripname,
 
6906
# except this one can be used by m4 code that may be executed by configure,
 
6907
# rather than the libtool script.
 
6908
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 
6909
AC_REQUIRE([_LT_DECL_SED])
 
6910
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 
6911
func_stripname_cnf ()
 
6912
{
 
6913
  case ${2} in
 
6914
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
6915
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
6916
  esac
 
6917
} # func_stripname_cnf
 
6918
])# _LT_FUNC_STRIPNAME_CNF
 
6919
 
6523
6920
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6524
6921
# ---------------------------------
6525
6922
# Figure out "hidden" library dependencies from verbose
6528
6925
# objects, libraries and library flags.
6529
6926
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6530
6927
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6928
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6531
6929
# Dependencies to place before and after the object being linked:
6532
6930
_LT_TAGVAR(predep_objects, $1)=
6533
6931
_LT_TAGVAR(postdep_objects, $1)=
6578
6976
};
6579
6977
_LT_EOF
6580
6978
])
 
6979
 
 
6980
_lt_libdeps_save_CFLAGS=$CFLAGS
 
6981
case "$CC $CFLAGS " in #(
 
6982
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
6983
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
6984
esac
 
6985
 
6581
6986
dnl Parse the compiler output and extract the necessary
6582
6987
dnl objects, libraries and library flags.
6583
6988
if AC_TRY_EVAL(ac_compile); then
6589
6994
  pre_test_object_deps_done=no
6590
6995
 
6591
6996
  for p in `eval "$output_verbose_link_cmd"`; do
6592
 
    case $p in
 
6997
    case ${prev}${p} in
6593
6998
 
6594
6999
    -L* | -R* | -l*)
6595
7000
       # Some compilers place space between "-{L,R}" and the path.
6598
7003
          test $p = "-R"; then
6599
7004
         prev=$p
6600
7005
         continue
6601
 
       else
6602
 
         prev=
6603
7006
       fi
6604
7007
 
 
7008
       # Expand the sysroot to ease extracting the directories later.
 
7009
       if test -z "$prev"; then
 
7010
         case $p in
 
7011
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
7012
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
7013
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
7014
         esac
 
7015
       fi
 
7016
       case $p in
 
7017
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
7018
       esac
6605
7019
       if test "$pre_test_object_deps_done" = no; then
6606
 
         case $p in
6607
 
         -L* | -R*)
 
7020
         case ${prev} in
 
7021
         -L | -R)
6608
7022
           # Internal compiler library paths should come after those
6609
7023
           # provided the user.  The postdeps already come after the
6610
7024
           # user supplied libs so there is no need to process them.
6624
7038
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6625
7039
         fi
6626
7040
       fi
 
7041
       prev=
6627
7042
       ;;
6628
7043
 
 
7044
    *.lto.$objext) ;; # Ignore GCC LTO objects
6629
7045
    *.$objext)
6630
7046
       # This assumes that the test object file only shows up
6631
7047
       # once in the compiler output.
6661
7077
fi
6662
7078
 
6663
7079
$RM -f confest.$objext
 
7080
CFLAGS=$_lt_libdeps_save_CFLAGS
6664
7081
 
6665
7082
# PORTME: override above test on systems where it is broken
6666
7083
m4_if([$1], [CXX],
6810
7227
  # Allow CC to be a program name with arguments.
6811
7228
  lt_save_CC="$CC"
6812
7229
  lt_save_GCC=$GCC
 
7230
  lt_save_CFLAGS=$CFLAGS
6813
7231
  CC=${F77-"f77"}
 
7232
  CFLAGS=$FFLAGS
6814
7233
  compiler=$CC
6815
7234
  _LT_TAGVAR(compiler, $1)=$CC
6816
7235
  _LT_CC_BASENAME([$compiler])
6864
7283
 
6865
7284
  GCC=$lt_save_GCC
6866
7285
  CC="$lt_save_CC"
 
7286
  CFLAGS="$lt_save_CFLAGS"
6867
7287
fi # test "$_lt_disable_F77" != yes
6868
7288
 
6869
7289
AC_LANG_POP
6940
7360
  # Allow CC to be a program name with arguments.
6941
7361
  lt_save_CC="$CC"
6942
7362
  lt_save_GCC=$GCC
 
7363
  lt_save_CFLAGS=$CFLAGS
6943
7364
  CC=${FC-"f95"}
 
7365
  CFLAGS=$FCFLAGS
6944
7366
  compiler=$CC
6945
7367
  GCC=$ac_cv_fc_compiler_gnu
6946
7368
 
6996
7418
  fi # test -n "$compiler"
6997
7419
 
6998
7420
  GCC=$lt_save_GCC
6999
 
  CC="$lt_save_CC"
 
7421
  CC=$lt_save_CC
 
7422
  CFLAGS=$lt_save_CFLAGS
7000
7423
fi # test "$_lt_disable_FC" != yes
7001
7424
 
7002
7425
AC_LANG_POP
7033
7456
_LT_LINKER_BOILERPLATE
7034
7457
 
7035
7458
# Allow CC to be a program name with arguments.
7036
 
lt_save_CC="$CC"
 
7459
lt_save_CC=$CC
 
7460
lt_save_CFLAGS=$CFLAGS
7037
7461
lt_save_GCC=$GCC
7038
7462
GCC=yes
7039
7463
CC=${GCJ-"gcj"}
 
7464
CFLAGS=$GCJFLAGS
7040
7465
compiler=$CC
7041
7466
_LT_TAGVAR(compiler, $1)=$CC
7042
7467
_LT_TAGVAR(LD, $1)="$LD"
7063
7488
AC_LANG_RESTORE
7064
7489
 
7065
7490
GCC=$lt_save_GCC
7066
 
CC="$lt_save_CC"
 
7491
CC=$lt_save_CC
 
7492
CFLAGS=$lt_save_CFLAGS
7067
7493
])# _LT_LANG_GCJ_CONFIG
7068
7494
 
7069
7495
 
7098
7524
 
7099
7525
# Allow CC to be a program name with arguments.
7100
7526
lt_save_CC="$CC"
 
7527
lt_save_CFLAGS=$CFLAGS
7101
7528
lt_save_GCC=$GCC
7102
7529
GCC=
7103
7530
CC=${RC-"windres"}
 
7531
CFLAGS=
7104
7532
compiler=$CC
7105
7533
_LT_TAGVAR(compiler, $1)=$CC
7106
7534
_LT_CC_BASENAME([$compiler])
7113
7541
 
7114
7542
GCC=$lt_save_GCC
7115
7543
AC_LANG_RESTORE
7116
 
CC="$lt_save_CC"
 
7544
CC=$lt_save_CC
 
7545
CFLAGS=$lt_save_CFLAGS
7117
7546
])# _LT_LANG_RC_CONFIG
7118
7547
 
7119
7548
 
7172
7601
AC_SUBST([OBJDUMP])
7173
7602
])
7174
7603
 
 
7604
# _LT_DECL_DLLTOOL
 
7605
# ----------------
 
7606
# Ensure DLLTOOL variable is set.
 
7607
m4_defun([_LT_DECL_DLLTOOL],
 
7608
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7609
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7610
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 
7611
AC_SUBST([DLLTOOL])
 
7612
])
7175
7613
 
7176
7614
# _LT_DECL_SED
7177
7615
# ------------
7263
7701
# Try some XSI features
7264
7702
xsi_shell=no
7265
7703
( _lt_dummy="a/b/c"
7266
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7267
 
      = c,a/b,, \
 
7704
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
7705
      = c,a/b,b/c, \
7268
7706
    && eval 'test $(( 1 + 1 )) -eq 2 \
7269
7707
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7270
7708
  && xsi_shell=yes
7303
7741
])# _LT_CHECK_SHELL_FEATURES
7304
7742
 
7305
7743
 
7306
 
# _LT_PROG_XSI_SHELLFNS
7307
 
# ---------------------
7308
 
# Bourne and XSI compatible variants of some useful shell functions.
7309
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7310
 
[case $xsi_shell in
7311
 
  yes)
7312
 
    cat << \_LT_EOF >> "$cfgfile"
7313
 
 
7314
 
# func_dirname file append nondir_replacement
7315
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7316
 
# otherwise set result to NONDIR_REPLACEMENT.
7317
 
func_dirname ()
7318
 
{
7319
 
  case ${1} in
7320
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7321
 
    *  ) func_dirname_result="${3}" ;;
7322
 
  esac
7323
 
}
7324
 
 
7325
 
# func_basename file
7326
 
func_basename ()
7327
 
{
7328
 
  func_basename_result="${1##*/}"
7329
 
}
7330
 
 
7331
 
# func_dirname_and_basename file append nondir_replacement
7332
 
# perform func_basename and func_dirname in a single function
7333
 
# call:
7334
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7335
 
#             add APPEND to the result, otherwise set result
7336
 
#             to NONDIR_REPLACEMENT.
7337
 
#             value returned in "$func_dirname_result"
7338
 
#   basename: Compute filename of FILE.
7339
 
#             value retuned in "$func_basename_result"
7340
 
# Implementation must be kept synchronized with func_dirname
7341
 
# and func_basename. For efficiency, we do not delegate to
7342
 
# those functions but instead duplicate the functionality here.
7343
 
func_dirname_and_basename ()
7344
 
{
7345
 
  case ${1} in
7346
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7347
 
    *  ) func_dirname_result="${3}" ;;
7348
 
  esac
7349
 
  func_basename_result="${1##*/}"
7350
 
}
7351
 
 
7352
 
# func_stripname prefix suffix name
7353
 
# strip PREFIX and SUFFIX off of NAME.
7354
 
# PREFIX and SUFFIX must not contain globbing or regex special
7355
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7356
 
# dot (in which case that matches only a dot).
7357
 
func_stripname ()
7358
 
{
7359
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7360
 
  # positional parameters, so assign one to ordinary parameter first.
7361
 
  func_stripname_result=${3}
7362
 
  func_stripname_result=${func_stripname_result#"${1}"}
7363
 
  func_stripname_result=${func_stripname_result%"${2}"}
7364
 
}
7365
 
 
7366
 
# func_opt_split
7367
 
func_opt_split ()
7368
 
{
7369
 
  func_opt_split_opt=${1%%=*}
7370
 
  func_opt_split_arg=${1#*=}
7371
 
}
7372
 
 
7373
 
# func_lo2o object
7374
 
func_lo2o ()
7375
 
{
7376
 
  case ${1} in
7377
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7378
 
    *)    func_lo2o_result=${1} ;;
7379
 
  esac
7380
 
}
7381
 
 
7382
 
# func_xform libobj-or-source
7383
 
func_xform ()
7384
 
{
7385
 
  func_xform_result=${1%.*}.lo
7386
 
}
7387
 
 
7388
 
# func_arith arithmetic-term...
7389
 
func_arith ()
7390
 
{
7391
 
  func_arith_result=$(( $[*] ))
7392
 
}
7393
 
 
7394
 
# func_len string
7395
 
# STRING may not start with a hyphen.
7396
 
func_len ()
7397
 
{
7398
 
  func_len_result=${#1}
7399
 
}
7400
 
 
7401
 
_LT_EOF
7402
 
    ;;
7403
 
  *) # Bourne compatible functions.
7404
 
    cat << \_LT_EOF >> "$cfgfile"
7405
 
 
7406
 
# func_dirname file append nondir_replacement
7407
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7408
 
# otherwise set result to NONDIR_REPLACEMENT.
7409
 
func_dirname ()
7410
 
{
7411
 
  # Extract subdirectory from the argument.
7412
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7413
 
  if test "X$func_dirname_result" = "X${1}"; then
7414
 
    func_dirname_result="${3}"
7415
 
  else
7416
 
    func_dirname_result="$func_dirname_result${2}"
7417
 
  fi
7418
 
}
7419
 
 
7420
 
# func_basename file
7421
 
func_basename ()
7422
 
{
7423
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7424
 
}
7425
 
 
7426
 
dnl func_dirname_and_basename
7427
 
dnl A portable version of this function is already defined in general.m4sh
7428
 
dnl so there is no need for it here.
7429
 
 
7430
 
# func_stripname prefix suffix name
7431
 
# strip PREFIX and SUFFIX off of NAME.
7432
 
# PREFIX and SUFFIX must not contain globbing or regex special
7433
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7434
 
# dot (in which case that matches only a dot).
7435
 
# func_strip_suffix prefix name
7436
 
func_stripname ()
7437
 
{
7438
 
  case ${2} in
7439
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7440
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7441
 
  esac
7442
 
}
7443
 
 
7444
 
# sed scripts:
7445
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7446
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7447
 
 
7448
 
# func_opt_split
7449
 
func_opt_split ()
7450
 
{
7451
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7452
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7453
 
}
7454
 
 
7455
 
# func_lo2o object
7456
 
func_lo2o ()
7457
 
{
7458
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7459
 
}
7460
 
 
7461
 
# func_xform libobj-or-source
7462
 
func_xform ()
7463
 
{
7464
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7465
 
}
7466
 
 
7467
 
# func_arith arithmetic-term...
7468
 
func_arith ()
7469
 
{
7470
 
  func_arith_result=`expr "$[@]"`
7471
 
}
7472
 
 
7473
 
# func_len string
7474
 
# STRING may not start with a hyphen.
7475
 
func_len ()
7476
 
{
7477
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7478
 
}
7479
 
 
7480
 
_LT_EOF
7481
 
esac
7482
 
 
7483
 
case $lt_shell_append in
7484
 
  yes)
7485
 
    cat << \_LT_EOF >> "$cfgfile"
7486
 
 
7487
 
# func_append var value
7488
 
# Append VALUE to the end of shell variable VAR.
7489
 
func_append ()
7490
 
{
7491
 
  eval "$[1]+=\$[2]"
7492
 
}
7493
 
_LT_EOF
7494
 
    ;;
7495
 
  *)
7496
 
    cat << \_LT_EOF >> "$cfgfile"
7497
 
 
7498
 
# func_append var value
7499
 
# Append VALUE to the end of shell variable VAR.
7500
 
func_append ()
7501
 
{
7502
 
  eval "$[1]=\$$[1]\$[2]"
7503
 
}
7504
 
 
7505
 
_LT_EOF
7506
 
    ;;
7507
 
  esac
7508
 
])
 
7744
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
 
7745
# ------------------------------------------------------
 
7746
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
 
7747
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
 
7748
m4_defun([_LT_PROG_FUNCTION_REPLACE],
 
7749
[dnl {
 
7750
sed -e '/^$1 ()$/,/^} # $1 /c\
 
7751
$1 ()\
 
7752
{\
 
7753
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
 
7754
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
 
7755
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7756
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7757
test 0 -eq $? || _lt_function_replace_fail=:
 
7758
])
 
7759
 
 
7760
 
 
7761
# _LT_PROG_REPLACE_SHELLFNS
 
7762
# -------------------------
 
7763
# Replace existing portable implementations of several shell functions with
 
7764
# equivalent extended shell implementations where those features are available..
 
7765
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
 
7766
[if test x"$xsi_shell" = xyes; then
 
7767
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
 
7768
    case ${1} in
 
7769
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7770
      *  ) func_dirname_result="${3}" ;;
 
7771
    esac])
 
7772
 
 
7773
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
 
7774
    func_basename_result="${1##*/}"])
 
7775
 
 
7776
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
 
7777
    case ${1} in
 
7778
      */*) func_dirname_result="${1%/*}${2}" ;;
 
7779
      *  ) func_dirname_result="${3}" ;;
 
7780
    esac
 
7781
    func_basename_result="${1##*/}"])
 
7782
 
 
7783
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
 
7784
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7785
    # positional parameters, so assign one to ordinary parameter first.
 
7786
    func_stripname_result=${3}
 
7787
    func_stripname_result=${func_stripname_result#"${1}"}
 
7788
    func_stripname_result=${func_stripname_result%"${2}"}])
 
7789
 
 
7790
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
 
7791
    func_split_long_opt_name=${1%%=*}
 
7792
    func_split_long_opt_arg=${1#*=}])
 
7793
 
 
7794
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
 
7795
    func_split_short_opt_arg=${1#??}
 
7796
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
 
7797
 
 
7798
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
 
7799
    case ${1} in
 
7800
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7801
      *)    func_lo2o_result=${1} ;;
 
7802
    esac])
 
7803
 
 
7804
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
 
7805
 
 
7806
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
 
7807
 
 
7808
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
 
7809
fi
 
7810
 
 
7811
if test x"$lt_shell_append" = xyes; then
 
7812
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
 
7813
 
 
7814
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
 
7815
    func_quote_for_eval "${2}"
 
7816
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
 
7817
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
 
7818
 
 
7819
  # Save a `func_append' function call where possible by direct use of '+='
 
7820
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
7821
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7822
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7823
  test 0 -eq $? || _lt_function_replace_fail=:
 
7824
else
 
7825
  # Save a `func_append' function call even when '+=' is not available
 
7826
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
7827
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
7828
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
7829
  test 0 -eq $? || _lt_function_replace_fail=:
 
7830
fi
 
7831
 
 
7832
if test x"$_lt_function_replace_fail" = x":"; then
 
7833
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
 
7834
fi
 
7835
])
 
7836
 
 
7837
# _LT_PATH_CONVERSION_FUNCTIONS
 
7838
# -----------------------------
 
7839
# Determine which file name conversion functions should be used by
 
7840
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 
7841
# for certain cross-compile configurations and native mingw.
 
7842
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 
7843
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7844
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
7845
AC_MSG_CHECKING([how to convert $build file names to $host format])
 
7846
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 
7847
[case $host in
 
7848
  *-*-mingw* )
 
7849
    case $build in
 
7850
      *-*-mingw* ) # actually msys
 
7851
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
7852
        ;;
 
7853
      *-*-cygwin* )
 
7854
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
7855
        ;;
 
7856
      * ) # otherwise, assume *nix
 
7857
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
7858
        ;;
 
7859
    esac
 
7860
    ;;
 
7861
  *-*-cygwin* )
 
7862
    case $build in
 
7863
      *-*-mingw* ) # actually msys
 
7864
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
7865
        ;;
 
7866
      *-*-cygwin* )
 
7867
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
7868
        ;;
 
7869
      * ) # otherwise, assume *nix
 
7870
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
7871
        ;;
 
7872
    esac
 
7873
    ;;
 
7874
  * ) # unhandled hosts (and "normal" native builds)
 
7875
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
7876
    ;;
 
7877
esac
 
7878
])
 
7879
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
7880
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 
7881
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 
7882
         [0], [convert $build file names to $host format])dnl
 
7883
 
 
7884
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 
7885
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 
7886
[#assume ordinary cross tools, or native build.
 
7887
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
7888
case $host in
 
7889
  *-*-mingw* )
 
7890
    case $build in
 
7891
      *-*-mingw* ) # actually msys
 
7892
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
7893
        ;;
 
7894
    esac
 
7895
    ;;
 
7896
esac
 
7897
])
 
7898
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
7899
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 
7900
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 
7901
         [0], [convert $build files to toolchain format])dnl
 
7902
])# _LT_PATH_CONVERSION_FUNCTIONS
7509
7903
 
7510
7904
# Helper functions for option handling.                    -*- Autoconf -*-
7511
7905
#
8004
8398
# unlimited permission to copy and/or distribute it, with or without
8005
8399
# modifications, as long as this notice is preserved.
8006
8400
 
8007
 
# Generated from ltversion.in.
 
8401
# @configure_input@
8008
8402
 
8009
 
# serial 3175 ltversion.m4
 
8403
# serial 3293 ltversion.m4
8010
8404
# This file is part of GNU Libtool
8011
8405
 
8012
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
8013
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
 
8406
m4_define([LT_PACKAGE_VERSION], [2.4])
 
8407
m4_define([LT_PACKAGE_REVISION], [1.3293])
8014
8408
 
8015
8409
AC_DEFUN([LTVERSION_VERSION],
8016
 
[macro_version='2.2.10'
8017
 
macro_revision='1.3175'
 
8410
[macro_version='2.4'
 
8411
macro_revision='1.3293'
8018
8412
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8019
8413
_LT_DECL(, macro_revision, 0)
8020
8414
])