~ubuntu-branches/ubuntu/karmic/centerim/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Avelar (Fixxxer)
  • Date: 2007-09-30 20:15:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070930201520-gevbtc30gd09830x
Tags: 4.22.1.20071003-1
* Updated with the master branch development from 2007-10-03
* Removed the patch to build the package; it was built with the 
  centerim-20071003.tar.gz file, the latest mob branch snapshot.
* Updated with NMU security patch for CVE-2007-3713 report
* Fixed the FTBFS bug with GCC 4.3: missing some 'includes' (Closes: #417132)
* Fixed the FTBFS if build twice in a row (Closes: #442523, #424153, #442525)
* Fixed centericq segfault on some circustance (Closes: #363272)
* Fixed centericq failed with CPP error message (Closes: #295808)
* Fixed centericq: Cannot connect to AIM (Closes: #325456)
* Fixed centericq clumsily concocts creations where word wrap 
  wantonly works wrongly (Closes: #349133)
* Fixed centericq: users with blank names corrupt contact list 
  (Closes: #239263)
* Fixed centericq: CenterICQ fiendishly devours apostrophes sent from 
   users of Trillian (Closes: #266214)
* Fixed centericq: Yahoo contacts not deleted on the server side i
  (Closes: #303071)
* Fixed centericq: AIM shows some characters as HTML entities 
  (Closes: #263383)
* Fixed centericq: SSL support on Jabber (Closes: #223537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
 
181
181
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
182
182
 
183
 
# serial 48 AC_PROG_LIBTOOL
 
183
# serial 51 AC_PROG_LIBTOOL
184
184
 
185
185
 
186
186
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
343
343
test -z "$ac_objext" && ac_objext=o
344
344
 
345
345
# Determine commands to create old-style static archives.
346
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
346
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
347
347
old_postinstall_cmds='chmod 644 $oldlib'
348
348
old_postuninstall_cmds=
349
349
 
386
386
    [pic_mode=default])
387
387
test -z "$pic_mode" && pic_mode=default
388
388
 
 
389
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
 
390
#
 
391
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
 
392
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
 
393
#        calls AC_LIBTOOL_CONFIG and creates libtool.
 
394
#
 
395
_LT_VERSION_CHECK
 
396
 
389
397
# Use C for the default configuration in the libtool script
390
398
tagname=
391
399
AC_LIBTOOL_LANG_C_CONFIG
393
401
])# AC_LIBTOOL_SETUP
394
402
 
395
403
 
 
404
# _LT_VERSION_CHECK
 
405
# -----------------
 
406
AC_DEFUN([_LT_VERSION_CHECK],
 
407
[AC_MSG_CHECKING([for correct ltmain.sh version])
 
408
if test "x$ltmain" = "x" ; then
 
409
  AC_MSG_RESULT(no)
 
410
  AC_MSG_ERROR([
 
411
 
 
412
*** @<:@Gentoo@:>@ sanity check failed! ***
 
413
*** \$ltmain is not defined, please check the patch for consistency! ***
 
414
])
 
415
fi
 
416
gentoo_lt_version="1.5.24"
 
417
gentoo_ltmain_version=`sed -n '/^[[     ]]*VERSION=/{s/^[[      ]]*VERSION=//;p;q;}' "$ltmain"`
 
418
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
 
419
  AC_MSG_RESULT(no)
 
420
  AC_MSG_ERROR([
 
421
 
 
422
*** @<:@Gentoo@:>@ sanity check failed! ***
 
423
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
424
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
425
 
 
426
Please run:
 
427
 
 
428
  libtoolize --copy --force
 
429
 
 
430
if appropriate, please contact the maintainer of this
 
431
package (or your distribution) for help.
 
432
])
 
433
else
 
434
  AC_MSG_RESULT(yes)
 
435
fi
 
436
])# _LT_VERSION_CHECK
 
437
 
 
438
 
396
439
# _LT_AC_SYS_COMPILER
397
440
# -------------------
398
441
AC_DEFUN([_LT_AC_SYS_COMPILER],
430
473
# Check for compiler boilerplate output or warnings with
431
474
# the simple compiler test code.
432
475
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
433
 
[ac_outfile=conftest.$ac_objext
434
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
476
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
477
ac_outfile=conftest.$ac_objext
 
478
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
435
479
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
436
480
_lt_compiler_boilerplate=`cat conftest.err`
437
481
$rm conftest*
443
487
# Check for linker boilerplate output or warnings with
444
488
# the simple link test code.
445
489
AC_DEFUN([_LT_LINKER_BOILERPLATE],
446
 
[ac_outfile=conftest.$ac_objext
447
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
490
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
491
ac_outfile=conftest.$ac_objext
 
492
echo "$lt_simple_link_test_code" >conftest.$ac_ext
448
493
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
449
494
_lt_linker_boilerplate=`cat conftest.err`
450
495
$rm conftest*
460
505
# If we don't find anything, use the default library path according
461
506
# to the aix ld manual.
462
507
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
463
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
464
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
465
 
}'`
 
508
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
509
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
510
lt_aix_libpath_sed='
 
511
    /Import File Strings/,/^$/ {
 
512
        /^0/ {
 
513
            s/^0  *\(.*\)$/\1/
 
514
            p
 
515
        }
 
516
    }'
 
517
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
466
518
# Check for a 64-bit object if we didn't find anything.
467
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
468
 
}'`; fi],[])
 
519
if test -z "$aix_libpath"; then
 
520
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
521
fi],[])
469
522
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
470
523
])# _LT_AC_SYS_LIBPATH_AIX
471
524
 
696
749
  rm -rf conftest*
697
750
  ;;
698
751
 
699
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
752
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
753
s390*-*linux*|sparc*-*linux*)
700
754
  # Find out which ABI we are using.
701
755
  echo 'int i;' > conftest.$ac_ext
702
756
  if AC_TRY_EVAL(ac_compile); then
703
757
    case `/usr/bin/file conftest.o` in
704
758
    *32-bit*)
705
759
      case $host in
 
760
        x86_64-*kfreebsd*-gnu)
 
761
          LD="${LD-ld} -m elf_i386_fbsd"
 
762
          ;;
706
763
        x86_64-*linux*)
707
764
          LD="${LD-ld} -m elf_i386"
708
765
          ;;
719
776
      ;;
720
777
    *64-bit*)
721
778
      case $host in
 
779
        x86_64-*kfreebsd*-gnu)
 
780
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
781
          ;;
722
782
        x86_64-*linux*)
723
783
          LD="${LD-ld} -m elf_x86_64"
724
784
          ;;
790
850
AC_CACHE_CHECK([$1], [$2],
791
851
  [$2=no
792
852
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
793
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
853
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
794
854
   lt_compiler_flag="$3"
795
855
   # Insert the option either (1) after the last *FLAGS variable, or
796
856
   # (2) before a word containing "conftest.", or (3) at the end.
831
891
# ------------------------------------------------------------
832
892
# Check whether the given compiler option works
833
893
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
834
 
[AC_CACHE_CHECK([$1], [$2],
 
894
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
895
AC_CACHE_CHECK([$1], [$2],
835
896
  [$2=no
836
897
   save_LDFLAGS="$LDFLAGS"
837
898
   LDFLAGS="$LDFLAGS $3"
838
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
899
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
839
900
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
840
901
     # The linker can only warn and ignore the option if not recognized
841
902
     # So say no if there are warnings
949
1010
    fi
950
1011
    ;;
951
1012
  *)
952
 
    # If test is not a shell built-in, we'll probably end up computing a
953
 
    # maximum length that is only half of the actual maximum length, but
954
 
    # we can't tell.
955
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
956
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1013
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1014
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1015
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1016
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1017
    else
 
1018
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1019
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
957
1020
               = "XX$teststring") >/dev/null 2>&1 &&
958
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
959
 
            lt_cv_sys_max_cmd_len=$new_result &&
960
 
            test $i != 17 # 1/2 MB should be enough
961
 
    do
962
 
      i=`expr $i + 1`
963
 
      teststring=$teststring$teststring
964
 
    done
965
 
    teststring=
966
 
    # Add a significant safety factor because C++ compilers can tack on massive
967
 
    # amounts of additional arguments before passing them to the linker.
968
 
    # It appears as though 1/2 is a usable value.
969
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1021
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1022
              lt_cv_sys_max_cmd_len=$new_result &&
 
1023
              test $i != 17 # 1/2 MB should be enough
 
1024
      do
 
1025
        i=`expr $i + 1`
 
1026
        teststring=$teststring$teststring
 
1027
      done
 
1028
      teststring=
 
1029
      # Add a significant safety factor because C++ compilers can tack on massive
 
1030
      # amounts of additional arguments before passing them to the linker.
 
1031
      # It appears as though 1/2 is a usable value.
 
1032
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1033
    fi
970
1034
    ;;
971
1035
  esac
972
1036
])
1193
1257
# ---------------------------------
1194
1258
# Check to see if options -c and -o are simultaneously supported by compiler
1195
1259
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1196
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1260
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1261
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1197
1262
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1198
1263
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1199
1264
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1201
1266
   mkdir conftest
1202
1267
   cd conftest
1203
1268
   mkdir out
1204
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1269
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1205
1270
 
1206
1271
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1207
1272
   # Insert the option either (1) after the last *FLAGS variable, or
1341
1406
   darwin*)
1342
1407
       if test -n "$STRIP" ; then
1343
1408
         striplib="$STRIP -x"
 
1409
         old_striplib="$STRIP -S"
1344
1410
         AC_MSG_RESULT([yes])
1345
1411
       else
1346
1412
  AC_MSG_RESULT([no])
1358
1424
# -----------------------------
1359
1425
# PORTME Fill in your ld.so characteristics
1360
1426
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1361
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1427
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1428
AC_MSG_CHECKING([dynamic linker characteristics])
1362
1429
library_names_spec=
1363
1430
libname_spec='lib$name'
1364
1431
soname_spec=
1372
1439
version_type=none
1373
1440
dynamic_linker="$host_os ld.so"
1374
1441
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1442
m4_if($1,[],[
1375
1443
if test "$GCC" = yes; then
1376
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1377
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1444
  case $host_os in
 
1445
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1446
    *) lt_awk_arg="/^libraries:/" ;;
 
1447
  esac
 
1448
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1449
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1378
1450
    # if the path contains ";" then we assume it to be the separator
1379
1451
    # otherwise default to the standard path separator (i.e. ":") - it is
1380
1452
    # assumed that no part of a normal pathname contains ";" but that should
1381
1453
    # okay in the real world where ";" in dirpaths is itself problematic.
1382
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1454
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1383
1455
  else
1384
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1456
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1385
1457
  fi
 
1458
  # Ok, now we have the path, separated by spaces, we can step through it
 
1459
  # and add multilib dir if necessary.
 
1460
  lt_tmp_lt_search_path_spec=
 
1461
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1462
  for lt_sys_path in $lt_search_path_spec; do
 
1463
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1464
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1465
    else
 
1466
      test -d "$lt_sys_path" && \
 
1467
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1468
    fi
 
1469
  done
 
1470
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1471
BEGIN {RS=" "; FS="/|\n";} {
 
1472
  lt_foo="";
 
1473
  lt_count=0;
 
1474
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1475
    if ($lt_i != "" && $lt_i != ".") {
 
1476
      if ($lt_i == "..") {
 
1477
        lt_count++;
 
1478
      } else {
 
1479
        if (lt_count == 0) {
 
1480
          lt_foo="/" $lt_i lt_foo;
 
1481
        } else {
 
1482
          lt_count--;
 
1483
        }
 
1484
      }
 
1485
    }
 
1486
  }
 
1487
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1488
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1489
}'`
 
1490
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1386
1491
else
1387
1492
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1388
 
fi
 
1493
fi])
1389
1494
need_lib_prefix=unknown
1390
1495
hardcode_into_libs=no
1391
1496
 
1542
1647
  shlibpath_overrides_runpath=yes
1543
1648
  shlibpath_var=DYLD_LIBRARY_PATH
1544
1649
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1545
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1546
 
  if test "$GCC" = yes; then
1547
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1548
 
  else
1549
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1550
 
  fi
 
1650
  m4_if([$1], [],[
 
1651
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1551
1652
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1552
1653
  ;;
1553
1654
 
1564
1665
  dynamic_linker=no
1565
1666
  ;;
1566
1667
 
1567
 
kfreebsd*-gnu)
1568
 
  version_type=linux
1569
 
  need_lib_prefix=no
1570
 
  need_version=no
1571
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1572
 
  soname_spec='${libname}${release}${shared_ext}$major'
1573
 
  shlibpath_var=LD_LIBRARY_PATH
1574
 
  shlibpath_overrides_runpath=no
1575
 
  hardcode_into_libs=yes
1576
 
  dynamic_linker='GNU ld.so'
1577
 
  ;;
1578
 
 
1579
1668
freebsd* | dragonfly*)
1580
1669
  # DragonFly does not have aout.  When/if they implement a new
1581
1670
  # versioning mechanism, adjust this.
1587
1676
    *) objformat=elf ;;
1588
1677
    esac
1589
1678
  fi
1590
 
  version_type=freebsd-$objformat
 
1679
  # Handle Gentoo/FreeBSD as it was Linux
 
1680
  case $host_vendor in
 
1681
    gentoo)
 
1682
      version_type=linux ;;
 
1683
    *)
 
1684
      version_type=freebsd-$objformat ;;
 
1685
  esac
 
1686
 
1591
1687
  case $version_type in
1592
1688
    freebsd-elf*)
1593
1689
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1598
1694
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1599
1695
      need_version=yes
1600
1696
      ;;
 
1697
    linux)
 
1698
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1699
      soname_spec='${libname}${release}${shared_ext}$major'
 
1700
      need_lib_prefix=no
 
1701
      need_version=no
 
1702
      ;;
1601
1703
  esac
1602
1704
  shlibpath_var=LD_LIBRARY_PATH
1603
1705
  case $host_os in
1613
1715
    shlibpath_overrides_runpath=no
1614
1716
    hardcode_into_libs=yes
1615
1717
    ;;
1616
 
  freebsd*) # from 4.6 on
 
1718
  *) # from 4.6 on, and DragonFly
1617
1719
    shlibpath_overrides_runpath=yes
1618
1720
    hardcode_into_libs=yes
1619
1721
    ;;
1676
1778
  postinstall_cmds='chmod 555 $lib'
1677
1779
  ;;
1678
1780
 
1679
 
interix3*)
 
1781
interix[[3-9]]*)
1680
1782
  version_type=linux
1681
1783
  need_lib_prefix=no
1682
1784
  need_version=no
1731
1833
  ;;
1732
1834
 
1733
1835
# This must be Linux ELF.
1734
 
linux*)
 
1836
linux* | k*bsd*-gnu)
1735
1837
  version_type=linux
1736
1838
  need_lib_prefix=no
1737
1839
  need_version=no
1747
1849
 
1748
1850
  # Append ld.so.conf contents to the search path
1749
1851
  if test -f /etc/ld.so.conf; then
1750
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1852
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1751
1853
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1752
1854
  fi
1753
1855
 
1760
1862
  dynamic_linker='GNU/Linux ld.so'
1761
1863
  ;;
1762
1864
 
1763
 
knetbsd*-gnu)
1764
 
  version_type=linux
1765
 
  need_lib_prefix=no
1766
 
  need_version=no
1767
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1768
 
  soname_spec='${libname}${release}${shared_ext}$major'
1769
 
  shlibpath_var=LD_LIBRARY_PATH
1770
 
  shlibpath_overrides_runpath=no
1771
 
  hardcode_into_libs=yes
1772
 
  dynamic_linker='GNU ld.so'
1773
 
  ;;
1774
 
 
1775
1865
netbsd*)
1776
1866
  version_type=sunos
1777
1867
  need_lib_prefix=no
1853
1943
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1854
1944
  ;;
1855
1945
 
 
1946
rdos*)
 
1947
  dynamic_linker=no
 
1948
  ;;
 
1949
 
1856
1950
solaris*)
1857
1951
  version_type=linux
1858
1952
  need_lib_prefix=no
1958
2052
# _LT_AC_TAGCONFIG
1959
2053
# ----------------
1960
2054
AC_DEFUN([_LT_AC_TAGCONFIG],
1961
 
[AC_ARG_WITH([tags],
 
2055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2056
AC_ARG_WITH([tags],
1962
2057
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1963
2058
        [include additional configurations @<:@automatic@:>@])],
1964
2059
    [tagnames="$withval"])
2219
2314
 
2220
2315
# AC_PATH_TOOL_PREFIX
2221
2316
# -------------------
2222
 
# find a file program which can recognise shared library
 
2317
# find a file program which can recognize shared library
2223
2318
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2224
2319
[AC_REQUIRE([AC_PROG_EGREP])dnl
2225
2320
AC_MSG_CHECKING([for $1])
2282
2377
 
2283
2378
# AC_PATH_MAGIC
2284
2379
# -------------
2285
 
# find a file program which can recognise a shared library
 
2380
# find a file program which can recognize a shared library
2286
2381
AC_DEFUN([AC_PATH_MAGIC],
2287
2382
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2288
2383
if test -z "$lt_cv_path_MAGIC_CMD"; then
2429
2524
# how to check for library dependencies
2430
2525
#  -- PORTME fill in with the dynamic library characteristics
2431
2526
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2432
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2527
[AC_CACHE_CHECK([how to recognize dependent libraries],
2433
2528
lt_cv_deplibs_check_method,
2434
2529
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2435
2530
lt_cv_file_magic_test_file=
2468
2563
 
2469
2564
mingw* | pw32*)
2470
2565
  # Base MSYS/MinGW do not provide the 'file' command needed by
2471
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2472
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2473
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2566
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2567
  # unless we find 'file', for example because we are cross-compiling.
 
2568
  if ( file / ) >/dev/null 2>&1; then
 
2569
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2570
    lt_cv_file_magic_cmd='func_win32_libid'
 
2571
  else
 
2572
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2573
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2574
  fi
2474
2575
  ;;
2475
2576
 
2476
2577
darwin* | rhapsody*)
2477
2578
  lt_cv_deplibs_check_method=pass_all
2478
2579
  ;;
2479
2580
 
2480
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2581
freebsd* | dragonfly*)
2481
2582
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2482
2583
    case $host_cpu in
2483
2584
    i*86 )
2515
2616
  esac
2516
2617
  ;;
2517
2618
 
2518
 
interix3*)
 
2619
interix[[3-9]]*)
2519
2620
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2520
2621
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2521
2622
  ;;
2531
2632
  ;;
2532
2633
 
2533
2634
# This must be Linux ELF.
2534
 
linux*)
 
2635
linux* | k*bsd*-gnu)
2535
2636
  lt_cv_deplibs_check_method=pass_all
2536
2637
  ;;
2537
2638
 
2565
2666
  lt_cv_deplibs_check_method=pass_all
2566
2667
  ;;
2567
2668
 
 
2669
rdos*)
 
2670
  lt_cv_deplibs_check_method=pass_all
 
2671
  ;;
 
2672
 
2568
2673
solaris*)
2569
2674
  lt_cv_deplibs_check_method=pass_all
2570
2675
  ;;
2617
2722
  lt_cv_path_NM="$NM"
2618
2723
else
2619
2724
  lt_nm_to_check="${ac_tool_prefix}nm"
2620
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2725
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2621
2726
    lt_nm_to_check="$lt_nm_to_check nm"
2622
2727
  fi
2623
2728
  for lt_tmp_nm in $lt_nm_to_check; do
2833
2938
_LT_AC_TAGVAR(objext, $1)=$objext
2834
2939
 
2835
2940
# Code to be used in simple compile tests
2836
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2941
lt_simple_compile_test_code="int some_variable = 0;"
2837
2942
 
2838
2943
# Code to be used in simple link tests
2839
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2944
lt_simple_link_test_code='int main(){return(0);}'
2840
2945
 
2841
2946
_LT_AC_SYS_COMPILER
2842
2947
 
2938
3043
_LT_AC_TAGVAR(objext, $1)=$objext
2939
3044
 
2940
3045
# Code to be used in simple compile tests
2941
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3046
lt_simple_compile_test_code="int some_variable = 0;"
2942
3047
 
2943
3048
# Code to be used in simple link tests
2944
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3049
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2945
3050
 
2946
3051
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2947
3052
_LT_AC_SYS_COMPILER
3087
3192
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3088
3193
        then
3089
3194
          # We have reworked collect2
3090
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3195
          :
3091
3196
        else
3092
3197
          # We have old collect2
3093
3198
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3246
3351
      case $cc_basename in
3247
3352
        xlc*)
3248
3353
         output_verbose_link_cmd='echo'
3249
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
3354
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3250
3355
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3251
3356
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3252
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3357
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3253
3358
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3254
3359
          ;;
3255
3360
       *)
3283
3388
  freebsd-elf*)
3284
3389
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3285
3390
    ;;
3286
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3391
  freebsd* | dragonfly*)
3287
3392
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3288
3393
    # conventions
3289
3394
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3332
3437
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3333
3438
 
3334
3439
      case $host_cpu in
3335
 
      hppa*64*|ia64*)
3336
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3337
 
        ;;
 
3440
      hppa*64*|ia64*) ;;
3338
3441
      *)
3339
3442
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3340
3443
        ;;
3402
3505
        ;;
3403
3506
    esac
3404
3507
    ;;
3405
 
  interix3*)
 
3508
  interix[[3-9]]*)
3406
3509
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3407
3510
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3408
3511
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3442
3545
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3443
3546
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3444
3547
    ;;
3445
 
  linux*)
 
3548
  linux* | k*bsd*-gnu)
3446
3549
    case $cc_basename in
3447
3550
      KCC*)
3448
3551
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3522
3625
        # dependencies.
3523
3626
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3524
3627
        ;;
 
3628
      *)
 
3629
        case `$CC -V 2>&1 | sed 5q` in
 
3630
        *Sun\ C*)
 
3631
          # Sun C++ 5.9
 
3632
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3633
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3634
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3635
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3636
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3637
 
 
3638
          # Not sure whether something based on
 
3639
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3640
          # would be better.
 
3641
          output_verbose_link_cmd='echo'
 
3642
 
 
3643
          # Archives containing C++ object files must be created using
 
3644
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3645
          # necessary to make sure instantiated templates are included
 
3646
          # in the archive.
 
3647
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3648
          ;;
 
3649
        esac
 
3650
        ;;
3525
3651
    esac
3526
3652
    ;;
3527
3653
  lynxos*)
3560
3686
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3561
3687
    ;;
3562
3688
  openbsd*)
3563
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3564
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3565
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3566
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3567
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3568
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3569
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3570
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3689
    if test -f /usr/libexec/ld.so; then
 
3690
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3691
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3692
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3693
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3694
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3695
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3696
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3697
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3698
      fi
 
3699
      output_verbose_link_cmd='echo'
 
3700
    else
 
3701
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3571
3702
    fi
3572
 
    output_verbose_link_cmd='echo'
3573
3703
    ;;
3574
3704
  osf3*)
3575
3705
    case $cc_basename in
3731
3861
        case $host_os in
3732
3862
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3733
3863
          *)
3734
 
            # The C++ compiler is used as linker so we must use $wl
3735
 
            # flag to pass the commands to the underlying system
3736
 
            # linker. We must also pass each convience library through
3737
 
            # to the system linker between allextract/defaultextract.
3738
 
            # The C++ compiler will combine linker options so we
3739
 
            # cannot just pass the convience library names through
3740
 
            # without $wl.
 
3864
            # The compiler driver will combine and reorder linker options,
 
3865
            # but understands `-z linker_flag'.
3741
3866
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3742
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3867
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3743
3868
            ;;
3744
3869
        esac
3745
3870
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3786
3911
          fi
3787
3912
 
3788
3913
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3914
          case $host_os in
 
3915
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3916
          *)
 
3917
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3918
            ;;
 
3919
          esac
3789
3920
        fi
3790
3921
        ;;
3791
3922
    esac
4029
4160
# PORTME: override above test on systems where it is broken
4030
4161
ifelse([$1],[CXX],
4031
4162
[case $host_os in
4032
 
interix3*)
 
4163
interix[[3-9]]*)
4033
4164
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4034
4165
  # hack all around it, let's just trust "g++" to DTRT.
4035
4166
  _LT_AC_TAGVAR(predep_objects,$1)=
4037
4168
  _LT_AC_TAGVAR(postdeps,$1)=
4038
4169
  ;;
4039
4170
 
 
4171
linux*)
 
4172
  case `$CC -V 2>&1 | sed 5q` in
 
4173
  *Sun\ C*)
 
4174
    # Sun C++ 5.9
 
4175
    #
 
4176
    # The more standards-conforming stlport4 library is
 
4177
    # incompatible with the Cstd library. Avoid specifying
 
4178
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4179
    # -library=stlport4 depends on it.
 
4180
    case " $CXX $CXXFLAGS " in
 
4181
    *" -library=stlport4 "*)
 
4182
      solaris_use_stlport4=yes
 
4183
      ;;
 
4184
    esac
 
4185
    if test "$solaris_use_stlport4" != yes; then
 
4186
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4187
    fi
 
4188
    ;;
 
4189
  esac
 
4190
  ;;
 
4191
 
4040
4192
solaris*)
4041
4193
  case $cc_basename in
4042
4194
  CC*)
 
4195
    # The more standards-conforming stlport4 library is
 
4196
    # incompatible with the Cstd library. Avoid specifying
 
4197
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4198
    # -library=stlport4 depends on it.
 
4199
    case " $CXX $CXXFLAGS " in
 
4200
    *" -library=stlport4 "*)
 
4201
      solaris_use_stlport4=yes
 
4202
      ;;
 
4203
    esac
 
4204
 
4043
4205
    # Adding this requires a known-good setup of shared libraries for
4044
4206
    # Sun compiler versions before 5.6, else PIC objects from an old
4045
4207
    # archive will be linked into the output, leading to subtle bugs.
4046
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4208
    if test "$solaris_use_stlport4" != yes; then
 
4209
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4210
    fi
4047
4211
    ;;
4048
4212
  esac
4049
4213
  ;;
4092
4256
_LT_AC_TAGVAR(objext, $1)=$objext
4093
4257
 
4094
4258
# Code to be used in simple compile tests
4095
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4259
lt_simple_compile_test_code="\
 
4260
      subroutine t
 
4261
      return
 
4262
      end
 
4263
"
4096
4264
 
4097
4265
# Code to be used in simple link tests
4098
 
lt_simple_link_test_code="      program t\n      end\n"
 
4266
lt_simple_link_test_code="\
 
4267
      program t
 
4268
      end
 
4269
"
4099
4270
 
4100
4271
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4101
4272
_LT_AC_SYS_COMPILER
4174
4345
_LT_AC_TAGVAR(objext, $1)=$objext
4175
4346
 
4176
4347
# Code to be used in simple compile tests
4177
 
lt_simple_compile_test_code="class foo {}\n"
 
4348
lt_simple_compile_test_code="class foo {}"
4178
4349
 
4179
4350
# Code to be used in simple link tests
4180
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4351
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4181
4352
 
4182
4353
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4183
4354
_LT_AC_SYS_COMPILER
4230
4401
_LT_AC_TAGVAR(objext, $1)=$objext
4231
4402
 
4232
4403
# Code to be used in simple compile tests
4233
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4404
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4234
4405
 
4235
4406
# Code to be used in simple link tests
4236
4407
lt_simple_link_test_code="$lt_simple_compile_test_code"
4319
4490
    _LT_AC_TAGVAR(module_cmds, $1) \
4320
4491
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4321
4492
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4493
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4322
4494
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4323
4495
    _LT_AC_TAGVAR(include_expsyms, $1); do
4324
4496
 
4365
4537
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4366
4538
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4367
4539
#
4368
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4540
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4369
4541
# Free Software Foundation, Inc.
4370
4542
#
4371
4543
# This file is part of GNU Libtool:
4690
4862
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4691
4863
 
4692
4864
# Fix the shell variable \$srcfile for the compiler.
4693
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4865
fix_srcfile_path=$lt_fix_srcfile_path
4694
4866
 
4695
4867
# Set to yes if exported symbols are required.
4696
4868
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4773
4945
# ---------------------------------
4774
4946
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4775
4947
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4948
AC_REQUIRE([LT_AC_PROG_SED])
4776
4949
AC_REQUIRE([AC_PROG_NM])
4777
4950
AC_REQUIRE([AC_OBJEXT])
4778
4951
# Check for command to grab the raw symbol name followed by C symbol from nm.
4809
4982
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4810
4983
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4811
4984
  ;;
4812
 
linux*)
 
4985
linux* | k*bsd*-gnu)
4813
4986
  if test "$host_cpu" = ia64; then
4814
4987
    symcode='[[ABCDGIRSTW]]'
4815
4988
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4999
5172
      # like `-m68040'.
5000
5173
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5001
5174
      ;;
5002
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5175
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5003
5176
      # PIC is the default for these OSes.
5004
5177
      ;;
5005
 
    mingw* | os2* | pw32*)
 
5178
    mingw* | cygwin* | os2* | pw32*)
5006
5179
      # This hack is so that the source file can tell whether it is being
5007
5180
      # built for inclusion in a dll (and should export symbols for example).
 
5181
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5182
      # (--disable-auto-import) libraries
5008
5183
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5009
5184
      ;;
5010
5185
    darwin* | rhapsody*)
5016
5191
      # DJGPP does not support shared libraries at all
5017
5192
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5018
5193
      ;;
5019
 
    interix3*)
 
5194
    interix[[3-9]]*)
5020
5195
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5021
5196
      # Instead, we relocate shared libraries at runtime.
5022
5197
      ;;
5082
5257
            ;;
5083
5258
        esac
5084
5259
        ;;
5085
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5260
      freebsd* | dragonfly*)
5086
5261
        # FreeBSD uses GNU C++
5087
5262
        ;;
5088
5263
      hpux9* | hpux10* | hpux11*)
5125
5300
            ;;
5126
5301
        esac
5127
5302
        ;;
5128
 
      linux*)
 
5303
      linux* | k*bsd*-gnu)
5129
5304
        case $cc_basename in
5130
5305
          KCC*)
5131
5306
            # KAI C++ Compiler
5152
5327
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5153
5328
            ;;
5154
5329
          *)
 
5330
            case `$CC -V 2>&1 | sed 5q` in
 
5331
            *Sun\ C*)
 
5332
              # Sun C++ 5.9
 
5333
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5334
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5335
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5336
              ;;
 
5337
            esac
5155
5338
            ;;
5156
5339
        esac
5157
5340
        ;;
5272
5455
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5273
5456
      ;;
5274
5457
 
5275
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5458
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5276
5459
      # PIC is the default for these OSes.
5277
5460
      ;;
5278
5461
 
5279
 
    mingw* | pw32* | os2*)
 
5462
    mingw* | cygwin* | pw32* | os2*)
5280
5463
      # This hack is so that the source file can tell whether it is being
5281
5464
      # built for inclusion in a dll (and should export symbols for example).
 
5465
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5466
      # (--disable-auto-import) libraries
5282
5467
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5283
5468
      ;;
5284
5469
 
5288
5473
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5289
5474
      ;;
5290
5475
 
5291
 
    interix3*)
 
5476
    interix[[3-9]]*)
5292
5477
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5293
5478
      # Instead, we relocate shared libraries at runtime.
5294
5479
      ;;
5346
5531
       esac
5347
5532
       ;;
5348
5533
 
5349
 
    mingw* | pw32* | os2*)
 
5534
    mingw* | cygwin* | pw32* | os2*)
5350
5535
      # This hack is so that the source file can tell whether it is being
5351
5536
      # built for inclusion in a dll (and should export symbols for example).
5352
5537
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5379
5564
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5380
5565
      ;;
5381
5566
 
5382
 
    linux*)
 
5567
    linux* | k*bsd*-gnu)
5383
5568
      case $cc_basename in
5384
5569
      icc* | ecc*)
5385
5570
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5398
5583
        # All Alpha code is PIC.
5399
5584
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5400
5585
        ;;
 
5586
      *)
 
5587
        case `$CC -V 2>&1 | sed 5q` in
 
5588
        *Sun\ C*)
 
5589
          # Sun C 5.9
 
5590
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5591
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5592
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5593
          ;;
 
5594
        *Sun\ F*)
 
5595
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5596
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5597
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5598
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5599
          ;;
 
5600
        esac
 
5601
        ;;
5401
5602
      esac
5402
5603
      ;;
5403
5604
 
5407
5608
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5408
5609
      ;;
5409
5610
 
 
5611
    rdos*)
 
5612
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5613
      ;;
 
5614
 
5410
5615
    solaris*)
5411
5616
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5412
5617
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5501
5706
# ------------------------------------
5502
5707
# See if the linker supports building shared libraries.
5503
5708
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5504
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5709
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5710
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5505
5711
ifelse([$1],[CXX],[
5506
5712
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5507
5713
  case $host_os in
5518
5724
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5519
5725
  ;;
5520
5726
  cygwin* | mingw*)
5521
 
    _LT_AC_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'
 
5727
    _LT_AC_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'
5522
5728
  ;;
5523
5729
  *)
5524
5730
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5657
5863
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5658
5864
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5659
5865
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5660
 
      _LT_AC_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'
 
5866
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5661
5867
 
5662
5868
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5663
5869
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5675
5881
      fi
5676
5882
      ;;
5677
5883
 
5678
 
    interix3*)
 
5884
    interix[[3-9]]*)
5679
5885
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5680
5886
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5681
5887
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5690
5896
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5691
5897
      ;;
5692
5898
 
5693
 
    linux*)
 
5899
    gnu* | linux* | k*bsd*-gnu)
5694
5900
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5695
5901
        tmp_addflag=
5696
5902
        case $cc_basename,$host_cpu in
5708
5914
        ifc* | ifort*)                  # Intel Fortran compiler
5709
5915
          tmp_addflag=' -nofor_main' ;;
5710
5916
        esac
5711
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5917
        case `$CC -V 2>&1 | sed 5q` in
 
5918
        *Sun\ C*)                       # Sun C 5.9
 
5919
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5920
          tmp_sharedflag='-G' ;;
 
5921
        *Sun\ F*)                       # Sun Fortran 8.3
 
5922
          tmp_sharedflag='-G' ;;
 
5923
        *)
 
5924
          tmp_sharedflag='-shared' ;;
 
5925
        esac
 
5926
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5712
5927
 
5713
5928
        if test $supports_anon_versioning = yes; then
5714
5929
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5715
5930
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5716
5931
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5717
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5932
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5718
5933
        fi
5719
5934
      else
5720
5935
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5754
5969
 
5755
5970
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5756
5971
      case `$LD -v 2>&1` in
5757
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5972
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5758
5973
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5759
5974
        cat <<_LT_EOF 1>&2
5760
5975
 
5873
6088
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5874
6089
          then
5875
6090
          # We have reworked collect2
5876
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6091
          :
5877
6092
          else
5878
6093
          # We have old collect2
5879
6094
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5966
6181
      # The linker will automatically build a .lib file if we build a DLL.
5967
6182
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5968
6183
      # FIXME: Should let the user specify the lib program.
5969
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6184
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5970
6185
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5971
6186
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5972
6187
      ;;
6008
6223
      case $cc_basename in
6009
6224
        xlc*)
6010
6225
         output_verbose_link_cmd='echo'
6011
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6226
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6012
6227
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6013
6228
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6014
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6229
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6015
6230
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6016
6231
          ;;
6017
6232
       *)
6051
6266
      ;;
6052
6267
 
6053
6268
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6054
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6269
    freebsd* | dragonfly*)
6055
6270
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6056
6271
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6057
6272
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6173
6388
      ;;
6174
6389
 
6175
6390
    openbsd*)
6176
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6177
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6178
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6179
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6180
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6181
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6182
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6391
      if test -f /usr/libexec/ld.so; then
 
6392
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6393
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6394
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6395
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6396
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6397
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6398
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6399
        else
 
6400
          case $host_os in
 
6401
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6402
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6403
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6404
             ;;
 
6405
           *)
 
6406
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6407
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6408
             ;;
 
6409
          esac
 
6410
        fi
6183
6411
      else
6184
 
       case $host_os in
6185
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6186
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6188
 
           ;;
6189
 
         *)
6190
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6191
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6192
 
           ;;
6193
 
       esac
 
6412
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6194
6413
      fi
6195
6414
      ;;
6196
6415
 
6249
6468
      case $host_os in
6250
6469
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6251
6470
      *)
6252
 
        # The compiler driver will combine linker options so we
6253
 
        # cannot just pass the convience library names through
6254
 
        # without $wl, iff we do not link with $LD.
6255
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6471
        # The compiler driver will combine and reorder linker options,
 
6472
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6473
        # but is careful enough not to reorder.
6256
6474
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6257
 
        case $wlarc in
6258
 
        '')
6259
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6260
 
        *)
6261
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6262
 
        esac ;;
 
6475
        if test "$GCC" = yes; then
 
6476
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6477
        else
 
6478
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6479
        fi
 
6480
        ;;
6263
6481
      esac
6264
6482
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6265
6483
      ;;
6316
6534
      fi
6317
6535
      ;;
6318
6536
 
6319
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6537
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6320
6538
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6321
6539
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6322
6540
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6391
6609
      # to ld, don't add -lc before -lgcc.
6392
6610
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6393
6611
      $rm conftest*
6394
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6612
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6395
6613
 
6396
6614
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6397
6615
        soname=conftest
6494
6712
[AC_CHECK_TOOL(RC, windres, no)
6495
6713
])
6496
6714
 
 
6715
 
 
6716
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6717
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6718
 
 
6719
# _AS_TEST_PREPARE
 
6720
# ----------------
 
6721
m4_ifndef([_AS_TEST_PREPARE],
 
6722
[m4_defun([_AS_TEST_PREPARE],
 
6723
[if test -x / >/dev/null 2>&1; then
 
6724
  as_executable_p='test -x'
 
6725
else
 
6726
  as_executable_p='test -f'
 
6727
fi
 
6728
])])# _AS_TEST_PREPARE
 
6729
 
 
6730
# AS_EXECUTABLE_P
 
6731
# ---------------
 
6732
# Check whether a file is executable.
 
6733
m4_ifndef([AS_EXECUTABLE_P],
 
6734
[m4_defun([AS_EXECUTABLE_P],
 
6735
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6736
$as_executable_p $1[]dnl
 
6737
])])# AS_EXECUTABLE_P
 
6738
 
6497
6739
# NOTE: This macro has been submitted for inclusion into   #
6498
6740
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6499
6741
#  a released version of Autoconf we should remove this    #
6514
6756
  test -z "$as_dir" && as_dir=.
6515
6757
  for lt_ac_prog in sed gsed; do
6516
6758
    for ac_exec_ext in '' $ac_executable_extensions; do
6517
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6759
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6518
6760
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6519
6761
      fi
6520
6762
    done
6521
6763
  done
6522
6764
done
 
6765
IFS=$as_save_IFS
6523
6766
lt_ac_max=0
6524
6767
lt_ac_count=0
6525
6768
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6552
6795
done
6553
6796
])
6554
6797
SED=$lt_cv_path_SED
 
6798
AC_SUBST([SED])
6555
6799
AC_MSG_RESULT([$SED])
6556
6800
])
6557
6801