~ubuntu-branches/ubuntu/karmic/exif/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2009-04-19 18:51:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090419185142-il2ml98wjrup7zus
Tags: 0.6.17-1
* New upstream release:
  - Fix some bugs:
    + use locale settings instead of UTF-8 (Closes: #236610)
    + Fix command line usage issues with some options (Closes: #497477)
    + Fix some tags format (Closes: #339070)
  - Remove patches merged upstream:
    + 01_swedish_translation
    + 02_default_ifd
  - Update existing patches.
* Switch packaging to debhelper 7
* Bump the B-D on libexif-dev to >= 0.6.17 since this version is now
  required.
* Bump Standards-Version to 3.8.1
* Drop hardcoded rpath in exif binary.
* Add DM-Upload-Allowed field in debian/control.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20
20
 
21
 
# serial 48 AC_PROG_LIBTOOL
 
21
# serial 51 AC_PROG_LIBTOOL
22
22
 
23
23
 
24
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
181
181
test -z "$ac_objext" && ac_objext=o
182
182
 
183
183
# Determine commands to create old-style static archives.
184
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
185
185
old_postinstall_cmds='chmod 644 $oldlib'
186
186
old_postuninstall_cmds=
187
187
 
268
268
# Check for compiler boilerplate output or warnings with
269
269
# the simple compiler test code.
270
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
271
 
[ac_outfile=conftest.$ac_objext
272
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
272
ac_outfile=conftest.$ac_objext
 
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
275
_lt_compiler_boilerplate=`cat conftest.err`
275
276
$rm conftest*
281
282
# Check for linker boilerplate output or warnings with
282
283
# the simple link test code.
283
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
 
[ac_outfile=conftest.$ac_objext
285
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
286
ac_outfile=conftest.$ac_objext
 
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
289
_lt_linker_boilerplate=`cat conftest.err`
288
290
$rm conftest*
298
300
# If we don't find anything, use the default library path according
299
301
# to the aix ld manual.
300
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
301
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
302
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
303
 
}'`
 
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
305
lt_aix_libpath_sed='
 
306
    /Import File Strings/,/^$/ {
 
307
        /^0/ {
 
308
            s/^0  *\(.*\)$/\1/
 
309
            p
 
310
        }
 
311
    }'
 
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
313
# Check for a 64-bit object if we didn't find anything.
305
 
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; }
306
 
}'`; fi],[])
 
314
if test -z "$aix_libpath"; then
 
315
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
316
fi],[])
307
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
318
])# _LT_AC_SYS_LIBPATH_AIX
309
319
 
534
544
  rm -rf conftest*
535
545
  ;;
536
546
 
537
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
548
s390*-*linux*|sparc*-*linux*)
538
549
  # Find out which ABI we are using.
539
550
  echo 'int i;' > conftest.$ac_ext
540
551
  if AC_TRY_EVAL(ac_compile); then
541
552
    case `/usr/bin/file conftest.o` in
542
553
    *32-bit*)
543
554
      case $host in
 
555
        x86_64-*kfreebsd*-gnu)
 
556
          LD="${LD-ld} -m elf_i386_fbsd"
 
557
          ;;
544
558
        x86_64-*linux*)
545
559
          LD="${LD-ld} -m elf_i386"
546
560
          ;;
557
571
      ;;
558
572
    *64-bit*)
559
573
      case $host in
 
574
        x86_64-*kfreebsd*-gnu)
 
575
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
576
          ;;
560
577
        x86_64-*linux*)
561
578
          LD="${LD-ld} -m elf_x86_64"
562
579
          ;;
628
645
AC_CACHE_CHECK([$1], [$2],
629
646
  [$2=no
630
647
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
631
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
648
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
632
649
   lt_compiler_flag="$3"
633
650
   # Insert the option either (1) after the last *FLAGS variable, or
634
651
   # (2) before a word containing "conftest.", or (3) at the end.
669
686
# ------------------------------------------------------------
670
687
# Check whether the given compiler option works
671
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
672
 
[AC_CACHE_CHECK([$1], [$2],
 
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
690
AC_CACHE_CHECK([$1], [$2],
673
691
  [$2=no
674
692
   save_LDFLAGS="$LDFLAGS"
675
693
   LDFLAGS="$LDFLAGS $3"
676
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
694
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
677
695
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
678
696
     # The linker can only warn and ignore the option if not recognized
679
697
     # So say no if there are warnings
787
805
    fi
788
806
    ;;
789
807
  *)
790
 
    # If test is not a shell built-in, we'll probably end up computing a
791
 
    # maximum length that is only half of the actual maximum length, but
792
 
    # we can't tell.
793
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
794
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
808
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
809
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
810
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
811
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
812
    else
 
813
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
814
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
815
               = "XX$teststring") >/dev/null 2>&1 &&
796
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
797
 
            lt_cv_sys_max_cmd_len=$new_result &&
798
 
            test $i != 17 # 1/2 MB should be enough
799
 
    do
800
 
      i=`expr $i + 1`
801
 
      teststring=$teststring$teststring
802
 
    done
803
 
    teststring=
804
 
    # Add a significant safety factor because C++ compilers can tack on massive
805
 
    # amounts of additional arguments before passing them to the linker.
806
 
    # It appears as though 1/2 is a usable value.
807
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
816
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
817
              lt_cv_sys_max_cmd_len=$new_result &&
 
818
              test $i != 17 # 1/2 MB should be enough
 
819
      do
 
820
        i=`expr $i + 1`
 
821
        teststring=$teststring$teststring
 
822
      done
 
823
      teststring=
 
824
      # Add a significant safety factor because C++ compilers can tack on massive
 
825
      # amounts of additional arguments before passing them to the linker.
 
826
      # It appears as though 1/2 is a usable value.
 
827
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
828
    fi
808
829
    ;;
809
830
  esac
810
831
])
1031
1052
# ---------------------------------
1032
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1033
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1034
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1035
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1036
1058
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1037
1059
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1039
1061
   mkdir conftest
1040
1062
   cd conftest
1041
1063
   mkdir out
1042
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1064
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1043
1065
 
1044
1066
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1045
1067
   # Insert the option either (1) after the last *FLAGS variable, or
1179
1201
   darwin*)
1180
1202
       if test -n "$STRIP" ; then
1181
1203
         striplib="$STRIP -x"
 
1204
         old_striplib="$STRIP -S"
1182
1205
         AC_MSG_RESULT([yes])
1183
1206
       else
1184
1207
  AC_MSG_RESULT([no])
1196
1219
# -----------------------------
1197
1220
# PORTME Fill in your ld.so characteristics
1198
1221
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1199
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1222
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1223
AC_MSG_CHECKING([dynamic linker characteristics])
1200
1224
library_names_spec=
1201
1225
libname_spec='lib$name'
1202
1226
soname_spec=
1210
1234
version_type=none
1211
1235
dynamic_linker="$host_os ld.so"
1212
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1237
m4_if($1,[],[
1213
1238
if test "$GCC" = yes; then
1214
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1215
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1239
  case $host_os in
 
1240
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1241
    *) lt_awk_arg="/^libraries:/" ;;
 
1242
  esac
 
1243
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1244
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1245
    # if the path contains ";" then we assume it to be the separator
1217
1246
    # otherwise default to the standard path separator (i.e. ":") - it is
1218
1247
    # assumed that no part of a normal pathname contains ";" but that should
1219
1248
    # okay in the real world where ";" in dirpaths is itself problematic.
1220
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1249
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1221
1250
  else
1222
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1251
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1223
1252
  fi
 
1253
  # Ok, now we have the path, separated by spaces, we can step through it
 
1254
  # and add multilib dir if necessary.
 
1255
  lt_tmp_lt_search_path_spec=
 
1256
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1257
  for lt_sys_path in $lt_search_path_spec; do
 
1258
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1259
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1260
    else
 
1261
      test -d "$lt_sys_path" && \
 
1262
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1263
    fi
 
1264
  done
 
1265
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1266
BEGIN {RS=" "; FS="/|\n";} {
 
1267
  lt_foo="";
 
1268
  lt_count=0;
 
1269
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1270
    if ($lt_i != "" && $lt_i != ".") {
 
1271
      if ($lt_i == "..") {
 
1272
        lt_count++;
 
1273
      } else {
 
1274
        if (lt_count == 0) {
 
1275
          lt_foo="/" $lt_i lt_foo;
 
1276
        } else {
 
1277
          lt_count--;
 
1278
        }
 
1279
      }
 
1280
    }
 
1281
  }
 
1282
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1283
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1284
}'`
 
1285
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1224
1286
else
1225
1287
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1226
 
fi
 
1288
fi])
1227
1289
need_lib_prefix=unknown
1228
1290
hardcode_into_libs=no
1229
1291
 
1380
1442
  shlibpath_overrides_runpath=yes
1381
1443
  shlibpath_var=DYLD_LIBRARY_PATH
1382
1444
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1383
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1384
 
  if test "$GCC" = yes; then
1385
 
    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"`
1386
 
  else
1387
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1388
 
  fi
 
1445
  m4_if([$1], [],[
 
1446
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1389
1447
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1390
1448
  ;;
1391
1449
 
1402
1460
  dynamic_linker=no
1403
1461
  ;;
1404
1462
 
1405
 
kfreebsd*-gnu)
1406
 
  version_type=linux
1407
 
  need_lib_prefix=no
1408
 
  need_version=no
1409
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1410
 
  soname_spec='${libname}${release}${shared_ext}$major'
1411
 
  shlibpath_var=LD_LIBRARY_PATH
1412
 
  shlibpath_overrides_runpath=no
1413
 
  hardcode_into_libs=yes
1414
 
  dynamic_linker='GNU ld.so'
1415
 
  ;;
1416
 
 
1417
1463
freebsd* | dragonfly*)
1418
1464
  # DragonFly does not have aout.  When/if they implement a new
1419
1465
  # versioning mechanism, adjust this.
1451
1497
    shlibpath_overrides_runpath=no
1452
1498
    hardcode_into_libs=yes
1453
1499
    ;;
1454
 
  freebsd*) # from 4.6 on
 
1500
  *) # from 4.6 on, and DragonFly
1455
1501
    shlibpath_overrides_runpath=yes
1456
1502
    hardcode_into_libs=yes
1457
1503
    ;;
1514
1560
  postinstall_cmds='chmod 555 $lib'
1515
1561
  ;;
1516
1562
 
1517
 
interix3*)
 
1563
interix[[3-9]]*)
1518
1564
  version_type=linux
1519
1565
  need_lib_prefix=no
1520
1566
  need_version=no
1569
1615
  ;;
1570
1616
 
1571
1617
# This must be Linux ELF.
1572
 
linux*)
 
1618
linux* | k*bsd*-gnu)
1573
1619
  version_type=linux
1574
1620
  need_lib_prefix=no
1575
1621
  need_version=no
1602
1648
 
1603
1649
  # Append ld.so.conf contents to the search path
1604
1650
  if test -f /etc/ld.so.conf; then
1605
 
    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/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1651
    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' ' '`
1606
1652
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1607
1653
  fi
1608
1654
 
1615
1661
  dynamic_linker='GNU/Linux ld.so'
1616
1662
  ;;
1617
1663
 
1618
 
knetbsd*-gnu)
1619
 
  version_type=linux
1620
 
  need_lib_prefix=no
1621
 
  need_version=no
1622
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1623
 
  soname_spec='${libname}${release}${shared_ext}$major'
1624
 
  shlibpath_var=LD_LIBRARY_PATH
1625
 
  shlibpath_overrides_runpath=no
1626
 
  hardcode_into_libs=yes
1627
 
  dynamic_linker='GNU ld.so'
1628
 
  ;;
1629
 
 
1630
1664
netbsd*)
1631
1665
  version_type=sunos
1632
1666
  need_lib_prefix=no
1708
1742
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1709
1743
  ;;
1710
1744
 
 
1745
rdos*)
 
1746
  dynamic_linker=no
 
1747
  ;;
 
1748
 
1711
1749
solaris*)
1712
1750
  version_type=linux
1713
1751
  need_lib_prefix=no
1813
1851
# _LT_AC_TAGCONFIG
1814
1852
# ----------------
1815
1853
AC_DEFUN([_LT_AC_TAGCONFIG],
1816
 
[AC_ARG_WITH([tags],
 
1854
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1855
AC_ARG_WITH([tags],
1817
1856
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1818
1857
        [include additional configurations @<:@automatic@:>@])],
1819
1858
    [tagnames="$withval"])
2074
2113
 
2075
2114
# AC_PATH_TOOL_PREFIX
2076
2115
# -------------------
2077
 
# find a file program which can recognise shared library
 
2116
# find a file program which can recognize shared library
2078
2117
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2079
2118
[AC_REQUIRE([AC_PROG_EGREP])dnl
2080
2119
AC_MSG_CHECKING([for $1])
2137
2176
 
2138
2177
# AC_PATH_MAGIC
2139
2178
# -------------
2140
 
# find a file program which can recognise a shared library
 
2179
# find a file program which can recognize a shared library
2141
2180
AC_DEFUN([AC_PATH_MAGIC],
2142
2181
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2143
2182
if test -z "$lt_cv_path_MAGIC_CMD"; then
2284
2323
# how to check for library dependencies
2285
2324
#  -- PORTME fill in with the dynamic library characteristics
2286
2325
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2287
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2326
[AC_CACHE_CHECK([how to recognize dependent libraries],
2288
2327
lt_cv_deplibs_check_method,
2289
2328
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2290
2329
lt_cv_file_magic_test_file=
2323
2362
 
2324
2363
mingw* | pw32*)
2325
2364
  # Base MSYS/MinGW do not provide the 'file' command needed by
2326
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2327
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2328
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2365
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2366
  # unless we find 'file', for example because we are cross-compiling.
 
2367
  if ( file / ) >/dev/null 2>&1; then
 
2368
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2369
    lt_cv_file_magic_cmd='func_win32_libid'
 
2370
  else
 
2371
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2372
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2373
  fi
2329
2374
  ;;
2330
2375
 
2331
2376
darwin* | rhapsody*)
2332
2377
  lt_cv_deplibs_check_method=pass_all
2333
2378
  ;;
2334
2379
 
2335
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2380
freebsd* | dragonfly*)
2336
2381
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2337
2382
    case $host_cpu in
2338
2383
    i*86 )
2370
2415
  esac
2371
2416
  ;;
2372
2417
 
2373
 
interix3*)
 
2418
interix[[3-9]]*)
2374
2419
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2375
2420
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2376
2421
  ;;
2386
2431
  ;;
2387
2432
 
2388
2433
# This must be Linux ELF.
2389
 
linux*)
 
2434
linux* | k*bsd*-gnu)
2390
2435
  lt_cv_deplibs_check_method=pass_all
2391
2436
  ;;
2392
2437
 
2420
2465
  lt_cv_deplibs_check_method=pass_all
2421
2466
  ;;
2422
2467
 
 
2468
rdos*)
 
2469
  lt_cv_deplibs_check_method=pass_all
 
2470
  ;;
 
2471
 
2423
2472
solaris*)
2424
2473
  lt_cv_deplibs_check_method=pass_all
2425
2474
  ;;
2472
2521
  lt_cv_path_NM="$NM"
2473
2522
else
2474
2523
  lt_nm_to_check="${ac_tool_prefix}nm"
2475
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2524
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2476
2525
    lt_nm_to_check="$lt_nm_to_check nm"
2477
2526
  fi
2478
2527
  for lt_tmp_nm in $lt_nm_to_check; do
2688
2737
_LT_AC_TAGVAR(objext, $1)=$objext
2689
2738
 
2690
2739
# Code to be used in simple compile tests
2691
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2740
lt_simple_compile_test_code="int some_variable = 0;"
2692
2741
 
2693
2742
# Code to be used in simple link tests
2694
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2743
lt_simple_link_test_code='int main(){return(0);}'
2695
2744
 
2696
2745
_LT_AC_SYS_COMPILER
2697
2746
 
2793
2842
_LT_AC_TAGVAR(objext, $1)=$objext
2794
2843
 
2795
2844
# Code to be used in simple compile tests
2796
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2845
lt_simple_compile_test_code="int some_variable = 0;"
2797
2846
 
2798
2847
# Code to be used in simple link tests
2799
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2848
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2800
2849
 
2801
2850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2802
2851
_LT_AC_SYS_COMPILER
2942
2991
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2943
2992
        then
2944
2993
          # We have reworked collect2
2945
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2994
          :
2946
2995
        else
2947
2996
          # We have old collect2
2948
2997
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3101
3150
      case $cc_basename in
3102
3151
        xlc*)
3103
3152
         output_verbose_link_cmd='echo'
3104
 
          _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'
 
3153
          _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'
3105
3154
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3106
3155
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3107
 
          _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}'
 
3156
          _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}'
3108
3157
          _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}'
3109
3158
          ;;
3110
3159
       *)
3138
3187
  freebsd-elf*)
3139
3188
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
3189
    ;;
3141
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3190
  freebsd* | dragonfly*)
3142
3191
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3143
3192
    # conventions
3144
3193
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3187
3236
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3188
3237
 
3189
3238
      case $host_cpu in
3190
 
      hppa*64*|ia64*)
3191
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3192
 
        ;;
 
3239
      hppa*64*|ia64*) ;;
3193
3240
      *)
3194
3241
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3195
3242
        ;;
3257
3304
        ;;
3258
3305
    esac
3259
3306
    ;;
3260
 
  interix3*)
 
3307
  interix[[3-9]]*)
3261
3308
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3262
3309
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3263
3310
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3297
3344
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3298
3345
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3299
3346
    ;;
3300
 
  linux*)
 
3347
  linux* | k*bsd*-gnu)
3301
3348
    case $cc_basename in
3302
3349
      KCC*)
3303
3350
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3377
3424
        # dependencies.
3378
3425
        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'
3379
3426
        ;;
 
3427
      *)
 
3428
        case `$CC -V 2>&1 | sed 5q` in
 
3429
        *Sun\ C*)
 
3430
          # Sun C++ 5.9
 
3431
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3432
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3433
          _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'
 
3434
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3435
          _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'
 
3436
 
 
3437
          # Not sure whether something based on
 
3438
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3439
          # would be better.
 
3440
          output_verbose_link_cmd='echo'
 
3441
 
 
3442
          # Archives containing C++ object files must be created using
 
3443
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3444
          # necessary to make sure instantiated templates are included
 
3445
          # in the archive.
 
3446
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3447
          ;;
 
3448
        esac
 
3449
        ;;
3380
3450
    esac
3381
3451
    ;;
3382
3452
  lynxos*)
3415
3485
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3416
3486
    ;;
3417
3487
  openbsd*)
3418
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3419
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3420
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3421
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3422
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3423
 
      _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'
3424
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3425
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3488
    if test -f /usr/libexec/ld.so; then
 
3489
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3490
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3491
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3492
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3493
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3494
        _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'
 
3495
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3496
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3497
      fi
 
3498
      output_verbose_link_cmd='echo'
 
3499
    else
 
3500
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3426
3501
    fi
3427
 
    output_verbose_link_cmd='echo'
3428
3502
    ;;
3429
3503
  osf3*)
3430
3504
    case $cc_basename in
3586
3660
        case $host_os in
3587
3661
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3588
3662
          *)
3589
 
            # The C++ compiler is used as linker so we must use $wl
3590
 
            # flag to pass the commands to the underlying system
3591
 
            # linker. We must also pass each convience library through
3592
 
            # to the system linker between allextract/defaultextract.
3593
 
            # The C++ compiler will combine linker options so we
3594
 
            # cannot just pass the convience library names through
3595
 
            # without $wl.
 
3663
            # The compiler driver will combine and reorder linker options,
 
3664
            # but understands `-z linker_flag'.
3596
3665
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3597
 
            _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'
 
3666
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3598
3667
            ;;
3599
3668
        esac
3600
3669
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3641
3710
          fi
3642
3711
 
3643
3712
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3713
          case $host_os in
 
3714
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3715
          *)
 
3716
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3717
            ;;
 
3718
          esac
3644
3719
        fi
3645
3720
        ;;
3646
3721
    esac
3884
3959
# PORTME: override above test on systems where it is broken
3885
3960
ifelse([$1],[CXX],
3886
3961
[case $host_os in
3887
 
interix3*)
 
3962
interix[[3-9]]*)
3888
3963
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3889
3964
  # hack all around it, let's just trust "g++" to DTRT.
3890
3965
  _LT_AC_TAGVAR(predep_objects,$1)=
3892
3967
  _LT_AC_TAGVAR(postdeps,$1)=
3893
3968
  ;;
3894
3969
 
 
3970
linux*)
 
3971
  case `$CC -V 2>&1 | sed 5q` in
 
3972
  *Sun\ C*)
 
3973
    # Sun C++ 5.9
 
3974
    #
 
3975
    # The more standards-conforming stlport4 library is
 
3976
    # incompatible with the Cstd library. Avoid specifying
 
3977
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3978
    # -library=stlport4 depends on it.
 
3979
    case " $CXX $CXXFLAGS " in
 
3980
    *" -library=stlport4 "*)
 
3981
      solaris_use_stlport4=yes
 
3982
      ;;
 
3983
    esac
 
3984
    if test "$solaris_use_stlport4" != yes; then
 
3985
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3986
    fi
 
3987
    ;;
 
3988
  esac
 
3989
  ;;
 
3990
 
3895
3991
solaris*)
3896
3992
  case $cc_basename in
3897
3993
  CC*)
 
3994
    # The more standards-conforming stlport4 library is
 
3995
    # incompatible with the Cstd library. Avoid specifying
 
3996
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3997
    # -library=stlport4 depends on it.
 
3998
    case " $CXX $CXXFLAGS " in
 
3999
    *" -library=stlport4 "*)
 
4000
      solaris_use_stlport4=yes
 
4001
      ;;
 
4002
    esac
 
4003
 
3898
4004
    # Adding this requires a known-good setup of shared libraries for
3899
4005
    # Sun compiler versions before 5.6, else PIC objects from an old
3900
4006
    # archive will be linked into the output, leading to subtle bugs.
3901
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4007
    if test "$solaris_use_stlport4" != yes; then
 
4008
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4009
    fi
3902
4010
    ;;
3903
4011
  esac
3904
4012
  ;;
3947
4055
_LT_AC_TAGVAR(objext, $1)=$objext
3948
4056
 
3949
4057
# Code to be used in simple compile tests
3950
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4058
lt_simple_compile_test_code="\
 
4059
      subroutine t
 
4060
      return
 
4061
      end
 
4062
"
3951
4063
 
3952
4064
# Code to be used in simple link tests
3953
 
lt_simple_link_test_code="      program t\n      end\n"
 
4065
lt_simple_link_test_code="\
 
4066
      program t
 
4067
      end
 
4068
"
3954
4069
 
3955
4070
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3956
4071
_LT_AC_SYS_COMPILER
4029
4144
_LT_AC_TAGVAR(objext, $1)=$objext
4030
4145
 
4031
4146
# Code to be used in simple compile tests
4032
 
lt_simple_compile_test_code="class foo {}\n"
 
4147
lt_simple_compile_test_code="class foo {}"
4033
4148
 
4034
4149
# Code to be used in simple link tests
4035
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4150
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4036
4151
 
4037
4152
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4038
4153
_LT_AC_SYS_COMPILER
4047
4162
compiler=$CC
4048
4163
_LT_AC_TAGVAR(compiler, $1)=$CC
4049
4164
_LT_CC_BASENAME([$compiler])
 
4165
_LT_AC_TAGVAR(LD, $1)="$LD"
4050
4166
 
4051
4167
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4052
4168
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4085
4201
_LT_AC_TAGVAR(objext, $1)=$objext
4086
4202
 
4087
4203
# Code to be used in simple compile tests
4088
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4204
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4089
4205
 
4090
4206
# Code to be used in simple link tests
4091
4207
lt_simple_link_test_code="$lt_simple_compile_test_code"
4174
4290
    _LT_AC_TAGVAR(module_cmds, $1) \
4175
4291
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4176
4292
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4293
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4177
4294
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4178
4295
    _LT_AC_TAGVAR(include_expsyms, $1); do
4179
4296
 
4220
4337
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4221
4338
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4222
4339
#
4223
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4340
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4224
4341
# Free Software Foundation, Inc.
4225
4342
#
4226
4343
# This file is part of GNU Libtool:
4548
4665
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4549
4666
 
4550
4667
# Fix the shell variable \$srcfile for the compiler.
4551
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4668
fix_srcfile_path=$lt_fix_srcfile_path
4552
4669
 
4553
4670
# Set to yes if exported symbols are required.
4554
4671
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4631
4748
# ---------------------------------
4632
4749
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4633
4750
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4751
AC_REQUIRE([LT_AC_PROG_SED])
4634
4752
AC_REQUIRE([AC_PROG_NM])
4635
4753
AC_REQUIRE([AC_OBJEXT])
4636
4754
# Check for command to grab the raw symbol name followed by C symbol from nm.
4667
4785
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4668
4786
  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'"
4669
4787
  ;;
4670
 
linux*)
 
4788
linux* | k*bsd*-gnu)
4671
4789
  if test "$host_cpu" = ia64; then
4672
4790
    symcode='[[ABCDGIRSTW]]'
4673
4791
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4857
4975
      # like `-m68040'.
4858
4976
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4859
4977
      ;;
4860
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4978
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4861
4979
      # PIC is the default for these OSes.
4862
4980
      ;;
4863
 
    mingw* | os2* | pw32*)
 
4981
    mingw* | cygwin* | os2* | pw32*)
4864
4982
      # This hack is so that the source file can tell whether it is being
4865
4983
      # built for inclusion in a dll (and should export symbols for example).
 
4984
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4985
      # (--disable-auto-import) libraries
4866
4986
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4867
4987
      ;;
4868
4988
    darwin* | rhapsody*)
4874
4994
      # DJGPP does not support shared libraries at all
4875
4995
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4876
4996
      ;;
4877
 
    interix3*)
 
4997
    interix[[3-9]]*)
4878
4998
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4879
4999
      # Instead, we relocate shared libraries at runtime.
4880
5000
      ;;
4940
5060
            ;;
4941
5061
        esac
4942
5062
        ;;
4943
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5063
      freebsd* | dragonfly*)
4944
5064
        # FreeBSD uses GNU C++
4945
5065
        ;;
4946
5066
      hpux9* | hpux10* | hpux11*)
4983
5103
            ;;
4984
5104
        esac
4985
5105
        ;;
4986
 
      linux*)
 
5106
      linux* | k*bsd*-gnu)
4987
5107
        case $cc_basename in
4988
5108
          KCC*)
4989
5109
            # KAI C++ Compiler
5010
5130
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5011
5131
            ;;
5012
5132
          *)
 
5133
            case `$CC -V 2>&1 | sed 5q` in
 
5134
            *Sun\ C*)
 
5135
              # Sun C++ 5.9
 
5136
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5137
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5138
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5139
              ;;
 
5140
            esac
5013
5141
            ;;
5014
5142
        esac
5015
5143
        ;;
5130
5258
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5131
5259
      ;;
5132
5260
 
5133
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5261
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5134
5262
      # PIC is the default for these OSes.
5135
5263
      ;;
5136
5264
 
5137
 
    mingw* | pw32* | os2*)
 
5265
    mingw* | cygwin* | pw32* | os2*)
5138
5266
      # This hack is so that the source file can tell whether it is being
5139
5267
      # built for inclusion in a dll (and should export symbols for example).
 
5268
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5269
      # (--disable-auto-import) libraries
5140
5270
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5141
5271
      ;;
5142
5272
 
5146
5276
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5147
5277
      ;;
5148
5278
 
5149
 
    interix3*)
 
5279
    interix[[3-9]]*)
5150
5280
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5151
5281
      # Instead, we relocate shared libraries at runtime.
5152
5282
      ;;
5204
5334
       esac
5205
5335
       ;;
5206
5336
 
5207
 
    mingw* | pw32* | os2*)
 
5337
    mingw* | cygwin* | pw32* | os2*)
5208
5338
      # This hack is so that the source file can tell whether it is being
5209
5339
      # built for inclusion in a dll (and should export symbols for example).
5210
5340
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5237
5367
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5238
5368
      ;;
5239
5369
 
5240
 
    linux*)
 
5370
    linux* | k*bsd*-gnu)
5241
5371
      case $cc_basename in
5242
5372
      icc* | ecc*)
5243
5373
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5256
5386
        # All Alpha code is PIC.
5257
5387
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5258
5388
        ;;
 
5389
      *)
 
5390
        case `$CC -V 2>&1 | sed 5q` in
 
5391
        *Sun\ C*)
 
5392
          # Sun C 5.9
 
5393
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5394
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5395
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5396
          ;;
 
5397
        *Sun\ F*)
 
5398
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5399
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5400
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5401
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5402
          ;;
 
5403
        esac
 
5404
        ;;
5259
5405
      esac
5260
5406
      ;;
5261
5407
 
5265
5411
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5266
5412
      ;;
5267
5413
 
 
5414
    rdos*)
 
5415
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5416
      ;;
 
5417
 
5268
5418
    solaris*)
5269
5419
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5270
5420
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5359
5509
# ------------------------------------
5360
5510
# See if the linker supports building shared libraries.
5361
5511
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5362
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5512
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5513
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5363
5514
ifelse([$1],[CXX],[
5364
5515
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5365
5516
  case $host_os in
5376
5527
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5377
5528
  ;;
5378
5529
  cygwin* | mingw*)
5379
 
    _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'
 
5530
    _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'
5380
5531
  ;;
5381
5532
  *)
5382
5533
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5515
5666
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5516
5667
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5517
5668
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5518
 
      _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'
 
5669
      _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'
5519
5670
 
5520
5671
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5521
5672
        _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'
5533
5684
      fi
5534
5685
      ;;
5535
5686
 
5536
 
    interix3*)
 
5687
    interix[[3-9]]*)
5537
5688
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5538
5689
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5539
5690
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5548
5699
      _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'
5549
5700
      ;;
5550
5701
 
5551
 
    linux*)
 
5702
    gnu* | linux* | k*bsd*-gnu)
5552
5703
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5553
5704
        tmp_addflag=
5554
5705
        case $cc_basename,$host_cpu in
5566
5717
        ifc* | ifort*)                  # Intel Fortran compiler
5567
5718
          tmp_addflag=' -nofor_main' ;;
5568
5719
        esac
5569
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5720
        case `$CC -V 2>&1 | sed 5q` in
 
5721
        *Sun\ C*)                       # Sun C 5.9
 
5722
          _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'
 
5723
          tmp_sharedflag='-G' ;;
 
5724
        *Sun\ F*)                       # Sun Fortran 8.3
 
5725
          tmp_sharedflag='-G' ;;
 
5726
        *)
 
5727
          tmp_sharedflag='-shared' ;;
 
5728
        esac
 
5729
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5570
5730
 
5571
5731
        if test $supports_anon_versioning = yes; then
5572
5732
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5573
5733
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5574
5734
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5575
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5735
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5576
5736
        fi
5577
5737
      else
5578
5738
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5612
5772
 
5613
5773
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5614
5774
      case `$LD -v 2>&1` in
5615
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5775
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5616
5776
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5617
5777
        cat <<_LT_EOF 1>&2
5618
5778
 
5731
5891
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5732
5892
          then
5733
5893
          # We have reworked collect2
5734
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5894
          :
5735
5895
          else
5736
5896
          # We have old collect2
5737
5897
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5824
5984
      # The linker will automatically build a .lib file if we build a DLL.
5825
5985
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5826
5986
      # FIXME: Should let the user specify the lib program.
5827
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5987
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5828
5988
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5829
5989
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5830
5990
      ;;
5866
6026
      case $cc_basename in
5867
6027
        xlc*)
5868
6028
         output_verbose_link_cmd='echo'
5869
 
         _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'
 
6029
         _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'
5870
6030
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5871
6031
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5872
 
         _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}'
 
6032
         _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}'
5873
6033
          _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}'
5874
6034
          ;;
5875
6035
       *)
5909
6069
      ;;
5910
6070
 
5911
6071
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5912
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6072
    freebsd* | dragonfly*)
5913
6073
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5914
6074
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5915
6075
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6031
6191
      ;;
6032
6192
 
6033
6193
    openbsd*)
6034
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6035
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6036
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6037
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6038
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6039
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6040
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6194
      if test -f /usr/libexec/ld.so; then
 
6195
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6196
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6197
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6198
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6199
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6200
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6201
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6202
        else
 
6203
          case $host_os in
 
6204
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6205
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6206
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6207
             ;;
 
6208
           *)
 
6209
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6210
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6211
             ;;
 
6212
          esac
 
6213
        fi
6041
6214
      else
6042
 
       case $host_os in
6043
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6044
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6045
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6046
 
           ;;
6047
 
         *)
6048
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6049
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6050
 
           ;;
6051
 
       esac
 
6215
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6052
6216
      fi
6053
6217
      ;;
6054
6218
 
6107
6271
      case $host_os in
6108
6272
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6109
6273
      *)
6110
 
        # The compiler driver will combine linker options so we
6111
 
        # cannot just pass the convience library names through
6112
 
        # without $wl, iff we do not link with $LD.
6113
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6274
        # The compiler driver will combine and reorder linker options,
 
6275
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6276
        # but is careful enough not to reorder.
6114
6277
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6115
 
        case $wlarc in
6116
 
        '')
6117
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6118
 
        *)
6119
 
          _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' ;;
6120
 
        esac ;;
 
6278
        if test "$GCC" = yes; then
 
6279
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6280
        else
 
6281
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6282
        fi
 
6283
        ;;
6121
6284
      esac
6122
6285
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6123
6286
      ;;
6174
6337
      fi
6175
6338
      ;;
6176
6339
 
6177
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6340
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6178
6341
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6179
6342
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6180
6343
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6249
6412
      # to ld, don't add -lc before -lgcc.
6250
6413
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6251
6414
      $rm conftest*
6252
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6415
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6253
6416
 
6254
6417
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6255
6418
        soname=conftest
6352
6515
[AC_CHECK_TOOL(RC, windres, no)
6353
6516
])
6354
6517
 
 
6518
 
 
6519
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6520
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6521
 
 
6522
# _AS_TEST_PREPARE
 
6523
# ----------------
 
6524
m4_ifndef([_AS_TEST_PREPARE],
 
6525
[m4_defun([_AS_TEST_PREPARE],
 
6526
[if test -x / >/dev/null 2>&1; then
 
6527
  as_executable_p='test -x'
 
6528
else
 
6529
  as_executable_p='test -f'
 
6530
fi
 
6531
])])# _AS_TEST_PREPARE
 
6532
 
 
6533
# AS_EXECUTABLE_P
 
6534
# ---------------
 
6535
# Check whether a file is executable.
 
6536
m4_ifndef([AS_EXECUTABLE_P],
 
6537
[m4_defun([AS_EXECUTABLE_P],
 
6538
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6539
$as_executable_p $1[]dnl
 
6540
])])# AS_EXECUTABLE_P
 
6541
 
6355
6542
# NOTE: This macro has been submitted for inclusion into   #
6356
6543
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6357
6544
#  a released version of Autoconf we should remove this    #
6372
6559
  test -z "$as_dir" && as_dir=.
6373
6560
  for lt_ac_prog in sed gsed; do
6374
6561
    for ac_exec_ext in '' $ac_executable_extensions; do
6375
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6562
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6376
6563
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6377
6564
      fi
6378
6565
    done