~ubuntu-branches/ubuntu/hardy/libgdiplus/hardy

« back to all changes in this revision

Viewing changes to cairo/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-12-18 13:08:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218130810-hlmitxfddf6h511j
Tags: 1.2.6-1ubuntu1
* Sync with Debian:
  - debian/control:
    + Add lpia and sparc to the architectures. We support them.
    + Change Maintainer to Ubuntu Mono Team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
14
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
20
 
16
 
# serial 48 AC_PROG_LIBTOOL
 
21
# serial 51 AC_PROG_LIBTOOL
17
22
 
18
23
 
19
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
176
181
test -z "$ac_objext" && ac_objext=o
177
182
 
178
183
# Determine commands to create old-style static archives.
179
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
180
185
old_postinstall_cmds='chmod 644 $oldlib'
181
186
old_postuninstall_cmds=
182
187
 
263
268
# Check for compiler boilerplate output or warnings with
264
269
# the simple compiler test code.
265
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266
 
[ac_outfile=conftest.$ac_objext
267
 
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
268
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269
275
_lt_compiler_boilerplate=`cat conftest.err`
270
276
$rm conftest*
276
282
# Check for linker boilerplate output or warnings with
277
283
# the simple link test code.
278
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
279
 
[ac_outfile=conftest.$ac_objext
280
 
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
281
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282
289
_lt_linker_boilerplate=`cat conftest.err`
283
290
$rm conftest*
293
300
# If we don't find anything, use the default library path according
294
301
# to the aix ld manual.
295
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
298
 
}'`
 
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"`
299
313
# Check for a 64-bit object if we didn't find anything.
300
 
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; }
301
 
}'`; 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],[])
302
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303
318
])# _LT_AC_SYS_LIBPATH_AIX
304
319
 
529
544
  rm -rf conftest*
530
545
  ;;
531
546
 
532
 
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*)
533
549
  # Find out which ABI we are using.
534
550
  echo 'int i;' > conftest.$ac_ext
535
551
  if AC_TRY_EVAL(ac_compile); then
536
552
    case `/usr/bin/file conftest.o` in
537
553
    *32-bit*)
538
554
      case $host in
 
555
        x86_64-*kfreebsd*-gnu)
 
556
          LD="${LD-ld} -m elf_i386_fbsd"
 
557
          ;;
539
558
        x86_64-*linux*)
540
559
          LD="${LD-ld} -m elf_i386"
541
560
          ;;
552
571
      ;;
553
572
    *64-bit*)
554
573
      case $host in
 
574
        x86_64-*kfreebsd*-gnu)
 
575
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
576
          ;;
555
577
        x86_64-*linux*)
556
578
          LD="${LD-ld} -m elf_x86_64"
557
579
          ;;
623
645
AC_CACHE_CHECK([$1], [$2],
624
646
  [$2=no
625
647
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
648
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
627
649
   lt_compiler_flag="$3"
628
650
   # Insert the option either (1) after the last *FLAGS variable, or
629
651
   # (2) before a word containing "conftest.", or (3) at the end.
664
686
# ------------------------------------------------------------
665
687
# Check whether the given compiler option works
666
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667
 
[AC_CACHE_CHECK([$1], [$2],
 
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
690
AC_CACHE_CHECK([$1], [$2],
668
691
  [$2=no
669
692
   save_LDFLAGS="$LDFLAGS"
670
693
   LDFLAGS="$LDFLAGS $3"
671
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
694
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
672
695
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673
696
     # The linker can only warn and ignore the option if not recognized
674
697
     # So say no if there are warnings
782
805
    fi
783
806
    ;;
784
807
  *)
785
 
    # If test is not a shell built-in, we'll probably end up computing a
786
 
    # maximum length that is only half of the actual maximum length, but
787
 
    # we can't tell.
788
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
 
    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` \
790
815
               = "XX$teststring") >/dev/null 2>&1 &&
791
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
 
            lt_cv_sys_max_cmd_len=$new_result &&
793
 
            test $i != 17 # 1/2 MB should be enough
794
 
    do
795
 
      i=`expr $i + 1`
796
 
      teststring=$teststring$teststring
797
 
    done
798
 
    teststring=
799
 
    # Add a significant safety factor because C++ compilers can tack on massive
800
 
    # amounts of additional arguments before passing them to the linker.
801
 
    # It appears as though 1/2 is a usable value.
802
 
    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
803
829
    ;;
804
830
  esac
805
831
])
1026
1052
# ---------------------------------
1027
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1028
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031
1058
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032
1059
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1034
1061
   mkdir conftest
1035
1062
   cd conftest
1036
1063
   mkdir out
1037
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1064
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1038
1065
 
1039
1066
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1040
1067
   # Insert the option either (1) after the last *FLAGS variable, or
1174
1201
   darwin*)
1175
1202
       if test -n "$STRIP" ; then
1176
1203
         striplib="$STRIP -x"
 
1204
         old_striplib="$STRIP -S"
1177
1205
         AC_MSG_RESULT([yes])
1178
1206
       else
1179
1207
  AC_MSG_RESULT([no])
1191
1219
# -----------------------------
1192
1220
# PORTME Fill in your ld.so characteristics
1193
1221
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1222
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1223
AC_MSG_CHECKING([dynamic linker characteristics])
1195
1224
library_names_spec=
1196
1225
libname_spec='lib$name'
1197
1226
soname_spec=
1205
1234
version_type=none
1206
1235
dynamic_linker="$host_os ld.so"
1207
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1237
m4_if($1,[],[
1208
1238
if test "$GCC" = yes; then
1209
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
 
  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
1211
1245
    # if the path contains ";" then we assume it to be the separator
1212
1246
    # otherwise default to the standard path separator (i.e. ":") - it is
1213
1247
    # assumed that no part of a normal pathname contains ";" but that should
1214
1248
    # okay in the real world where ";" in dirpaths is itself problematic.
1215
 
    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'`
1216
1250
  else
1217
 
    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"`
1218
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`
1219
1286
else
1220
1287
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221
 
fi
 
1288
fi])
1222
1289
need_lib_prefix=unknown
1223
1290
hardcode_into_libs=no
1224
1291
 
1375
1442
  shlibpath_overrides_runpath=yes
1376
1443
  shlibpath_var=DYLD_LIBRARY_PATH
1377
1444
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379
 
  if test "$GCC" = yes; then
1380
 
    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"`
1381
 
  else
1382
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1383
 
  fi
 
1445
  m4_if([$1], [],[
 
1446
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1384
1447
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385
1448
  ;;
1386
1449
 
1397
1460
  dynamic_linker=no
1398
1461
  ;;
1399
1462
 
1400
 
kfreebsd*-gnu)
1401
 
  version_type=linux
1402
 
  need_lib_prefix=no
1403
 
  need_version=no
1404
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1405
 
  soname_spec='${libname}${release}${shared_ext}$major'
1406
 
  shlibpath_var=LD_LIBRARY_PATH
1407
 
  shlibpath_overrides_runpath=no
1408
 
  hardcode_into_libs=yes
1409
 
  dynamic_linker='GNU ld.so'
1410
 
  ;;
1411
 
 
1412
1463
freebsd* | dragonfly*)
1413
1464
  # DragonFly does not have aout.  When/if they implement a new
1414
1465
  # versioning mechanism, adjust this.
1446
1497
    shlibpath_overrides_runpath=no
1447
1498
    hardcode_into_libs=yes
1448
1499
    ;;
1449
 
  freebsd*) # from 4.6 on
 
1500
  *) # from 4.6 on, and DragonFly
1450
1501
    shlibpath_overrides_runpath=yes
1451
1502
    hardcode_into_libs=yes
1452
1503
    ;;
1509
1560
  postinstall_cmds='chmod 555 $lib'
1510
1561
  ;;
1511
1562
 
1512
 
interix3*)
 
1563
interix[[3-9]]*)
1513
1564
  version_type=linux
1514
1565
  need_lib_prefix=no
1515
1566
  need_version=no
1564
1615
  ;;
1565
1616
 
1566
1617
# This must be Linux ELF.
1567
 
linux*)
 
1618
linux* | k*bsd*-gnu)
1568
1619
  version_type=linux
1569
1620
  need_lib_prefix=no
1570
1621
  need_version=no
1580
1631
 
1581
1632
  # Append ld.so.conf contents to the search path
1582
1633
  if test -f /etc/ld.so.conf; then
1583
 
    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' ' '`
 
1634
    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' ' '`
1584
1635
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1585
1636
  fi
1586
1637
 
1593
1644
  dynamic_linker='GNU/Linux ld.so'
1594
1645
  ;;
1595
1646
 
1596
 
knetbsd*-gnu)
1597
 
  version_type=linux
1598
 
  need_lib_prefix=no
1599
 
  need_version=no
1600
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1601
 
  soname_spec='${libname}${release}${shared_ext}$major'
1602
 
  shlibpath_var=LD_LIBRARY_PATH
1603
 
  shlibpath_overrides_runpath=no
1604
 
  hardcode_into_libs=yes
1605
 
  dynamic_linker='GNU ld.so'
1606
 
  ;;
1607
 
 
1608
1647
netbsd*)
1609
1648
  version_type=sunos
1610
1649
  need_lib_prefix=no
1686
1725
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1687
1726
  ;;
1688
1727
 
 
1728
rdos*)
 
1729
  dynamic_linker=no
 
1730
  ;;
 
1731
 
1689
1732
solaris*)
1690
1733
  version_type=linux
1691
1734
  need_lib_prefix=no
1791
1834
# _LT_AC_TAGCONFIG
1792
1835
# ----------------
1793
1836
AC_DEFUN([_LT_AC_TAGCONFIG],
1794
 
[AC_ARG_WITH([tags],
 
1837
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1838
AC_ARG_WITH([tags],
1795
1839
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1796
1840
        [include additional configurations @<:@automatic@:>@])],
1797
1841
    [tagnames="$withval"])
2052
2096
 
2053
2097
# AC_PATH_TOOL_PREFIX
2054
2098
# -------------------
2055
 
# find a file program which can recognise shared library
 
2099
# find a file program which can recognize shared library
2056
2100
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2057
2101
[AC_REQUIRE([AC_PROG_EGREP])dnl
2058
2102
AC_MSG_CHECKING([for $1])
2115
2159
 
2116
2160
# AC_PATH_MAGIC
2117
2161
# -------------
2118
 
# find a file program which can recognise a shared library
 
2162
# find a file program which can recognize a shared library
2119
2163
AC_DEFUN([AC_PATH_MAGIC],
2120
2164
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2121
2165
if test -z "$lt_cv_path_MAGIC_CMD"; then
2262
2306
# how to check for library dependencies
2263
2307
#  -- PORTME fill in with the dynamic library characteristics
2264
2308
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2265
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2309
[AC_CACHE_CHECK([how to recognize dependent libraries],
2266
2310
lt_cv_deplibs_check_method,
2267
2311
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2268
2312
lt_cv_file_magic_test_file=
2301
2345
 
2302
2346
mingw* | pw32*)
2303
2347
  # Base MSYS/MinGW do not provide the 'file' command needed by
2304
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2305
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2306
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2348
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2349
  # unless we find 'file', for example because we are cross-compiling.
 
2350
  if ( file / ) >/dev/null 2>&1; then
 
2351
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2352
    lt_cv_file_magic_cmd='func_win32_libid'
 
2353
  else
 
2354
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2355
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2356
  fi
2307
2357
  ;;
2308
2358
 
2309
2359
darwin* | rhapsody*)
2310
2360
  lt_cv_deplibs_check_method=pass_all
2311
2361
  ;;
2312
2362
 
2313
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2363
freebsd* | dragonfly*)
2314
2364
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2315
2365
    case $host_cpu in
2316
2366
    i*86 )
2348
2398
  esac
2349
2399
  ;;
2350
2400
 
2351
 
interix3*)
 
2401
interix[[3-9]]*)
2352
2402
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2353
2403
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2354
2404
  ;;
2364
2414
  ;;
2365
2415
 
2366
2416
# This must be Linux ELF.
2367
 
linux*)
 
2417
linux* | k*bsd*-gnu)
2368
2418
  lt_cv_deplibs_check_method=pass_all
2369
2419
  ;;
2370
2420
 
2398
2448
  lt_cv_deplibs_check_method=pass_all
2399
2449
  ;;
2400
2450
 
 
2451
rdos*)
 
2452
  lt_cv_deplibs_check_method=pass_all
 
2453
  ;;
 
2454
 
2401
2455
solaris*)
2402
2456
  lt_cv_deplibs_check_method=pass_all
2403
2457
  ;;
2450
2504
  lt_cv_path_NM="$NM"
2451
2505
else
2452
2506
  lt_nm_to_check="${ac_tool_prefix}nm"
2453
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2507
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2454
2508
    lt_nm_to_check="$lt_nm_to_check nm"
2455
2509
  fi
2456
2510
  for lt_tmp_nm in $lt_nm_to_check; do
2666
2720
_LT_AC_TAGVAR(objext, $1)=$objext
2667
2721
 
2668
2722
# Code to be used in simple compile tests
2669
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2723
lt_simple_compile_test_code="int some_variable = 0;"
2670
2724
 
2671
2725
# Code to be used in simple link tests
2672
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2726
lt_simple_link_test_code='int main(){return(0);}'
2673
2727
 
2674
2728
_LT_AC_SYS_COMPILER
2675
2729
 
2771
2825
_LT_AC_TAGVAR(objext, $1)=$objext
2772
2826
 
2773
2827
# Code to be used in simple compile tests
2774
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2828
lt_simple_compile_test_code="int some_variable = 0;"
2775
2829
 
2776
2830
# Code to be used in simple link tests
2777
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
2831
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2778
2832
 
2779
2833
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2780
2834
_LT_AC_SYS_COMPILER
2920
2974
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2921
2975
        then
2922
2976
          # We have reworked collect2
2923
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2977
          :
2924
2978
        else
2925
2979
          # We have old collect2
2926
2980
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3079
3133
      case $cc_basename in
3080
3134
        xlc*)
3081
3135
         output_verbose_link_cmd='echo'
3082
 
          _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'
 
3136
          _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'
3083
3137
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3084
3138
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3085
 
          _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}'
 
3139
          _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}'
3086
3140
          _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}'
3087
3141
          ;;
3088
3142
       *)
3116
3170
  freebsd-elf*)
3117
3171
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3118
3172
    ;;
3119
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3173
  freebsd* | dragonfly*)
3120
3174
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3121
3175
    # conventions
3122
3176
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3165
3219
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3166
3220
 
3167
3221
      case $host_cpu in
3168
 
      hppa*64*|ia64*)
3169
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3170
 
        ;;
 
3222
      hppa*64*|ia64*) ;;
3171
3223
      *)
3172
3224
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3173
3225
        ;;
3235
3287
        ;;
3236
3288
    esac
3237
3289
    ;;
3238
 
  interix3*)
 
3290
  interix[[3-9]]*)
3239
3291
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3240
3292
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3241
3293
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3275
3327
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3276
3328
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3277
3329
    ;;
3278
 
  linux*)
 
3330
  linux* | k*bsd*-gnu)
3279
3331
    case $cc_basename in
3280
3332
      KCC*)
3281
3333
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3355
3407
        # dependencies.
3356
3408
        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'
3357
3409
        ;;
 
3410
      *)
 
3411
        case `$CC -V 2>&1 | sed 5q` in
 
3412
        *Sun\ C*)
 
3413
          # Sun C++ 5.9
 
3414
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3415
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3416
          _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'
 
3417
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3418
          _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'
 
3419
 
 
3420
          # Not sure whether something based on
 
3421
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3422
          # would be better.
 
3423
          output_verbose_link_cmd='echo'
 
3424
 
 
3425
          # Archives containing C++ object files must be created using
 
3426
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3427
          # necessary to make sure instantiated templates are included
 
3428
          # in the archive.
 
3429
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3430
          ;;
 
3431
        esac
 
3432
        ;;
3358
3433
    esac
3359
3434
    ;;
3360
3435
  lynxos*)
3393
3468
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3394
3469
    ;;
3395
3470
  openbsd*)
3396
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3397
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3398
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3399
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3400
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3401
 
      _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'
3402
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3403
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3471
    if test -f /usr/libexec/ld.so; then
 
3472
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3473
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3474
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3475
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3476
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3477
        _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'
 
3478
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3479
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3480
      fi
 
3481
      output_verbose_link_cmd='echo'
 
3482
    else
 
3483
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3404
3484
    fi
3405
 
    output_verbose_link_cmd='echo'
3406
3485
    ;;
3407
3486
  osf3*)
3408
3487
    case $cc_basename in
3564
3643
        case $host_os in
3565
3644
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3566
3645
          *)
3567
 
            # The C++ compiler is used as linker so we must use $wl
3568
 
            # flag to pass the commands to the underlying system
3569
 
            # linker. We must also pass each convience library through
3570
 
            # to the system linker between allextract/defaultextract.
3571
 
            # The C++ compiler will combine linker options so we
3572
 
            # cannot just pass the convience library names through
3573
 
            # without $wl.
 
3646
            # The compiler driver will combine and reorder linker options,
 
3647
            # but understands `-z linker_flag'.
3574
3648
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3575
 
            _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'
 
3649
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3576
3650
            ;;
3577
3651
        esac
3578
3652
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3619
3693
          fi
3620
3694
 
3621
3695
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3696
          case $host_os in
 
3697
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3698
          *)
 
3699
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3700
            ;;
 
3701
          esac
3622
3702
        fi
3623
3703
        ;;
3624
3704
    esac
3862
3942
# PORTME: override above test on systems where it is broken
3863
3943
ifelse([$1],[CXX],
3864
3944
[case $host_os in
3865
 
interix3*)
 
3945
interix[[3-9]]*)
3866
3946
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
3867
3947
  # hack all around it, let's just trust "g++" to DTRT.
3868
3948
  _LT_AC_TAGVAR(predep_objects,$1)=
3870
3950
  _LT_AC_TAGVAR(postdeps,$1)=
3871
3951
  ;;
3872
3952
 
 
3953
linux*)
 
3954
  case `$CC -V 2>&1 | sed 5q` in
 
3955
  *Sun\ C*)
 
3956
    # Sun C++ 5.9
 
3957
    #
 
3958
    # The more standards-conforming stlport4 library is
 
3959
    # incompatible with the Cstd library. Avoid specifying
 
3960
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3961
    # -library=stlport4 depends on it.
 
3962
    case " $CXX $CXXFLAGS " in
 
3963
    *" -library=stlport4 "*)
 
3964
      solaris_use_stlport4=yes
 
3965
      ;;
 
3966
    esac
 
3967
    if test "$solaris_use_stlport4" != yes; then
 
3968
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3969
    fi
 
3970
    ;;
 
3971
  esac
 
3972
  ;;
 
3973
 
3873
3974
solaris*)
3874
3975
  case $cc_basename in
3875
3976
  CC*)
 
3977
    # The more standards-conforming stlport4 library is
 
3978
    # incompatible with the Cstd library. Avoid specifying
 
3979
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3980
    # -library=stlport4 depends on it.
 
3981
    case " $CXX $CXXFLAGS " in
 
3982
    *" -library=stlport4 "*)
 
3983
      solaris_use_stlport4=yes
 
3984
      ;;
 
3985
    esac
 
3986
 
3876
3987
    # Adding this requires a known-good setup of shared libraries for
3877
3988
    # Sun compiler versions before 5.6, else PIC objects from an old
3878
3989
    # archive will be linked into the output, leading to subtle bugs.
3879
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3990
    if test "$solaris_use_stlport4" != yes; then
 
3991
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3992
    fi
3880
3993
    ;;
3881
3994
  esac
3882
3995
  ;;
3925
4038
_LT_AC_TAGVAR(objext, $1)=$objext
3926
4039
 
3927
4040
# Code to be used in simple compile tests
3928
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4041
lt_simple_compile_test_code="\
 
4042
      subroutine t
 
4043
      return
 
4044
      end
 
4045
"
3929
4046
 
3930
4047
# Code to be used in simple link tests
3931
 
lt_simple_link_test_code="      program t\n      end\n"
 
4048
lt_simple_link_test_code="\
 
4049
      program t
 
4050
      end
 
4051
"
3932
4052
 
3933
4053
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3934
4054
_LT_AC_SYS_COMPILER
4007
4127
_LT_AC_TAGVAR(objext, $1)=$objext
4008
4128
 
4009
4129
# Code to be used in simple compile tests
4010
 
lt_simple_compile_test_code="class foo {}\n"
 
4130
lt_simple_compile_test_code="class foo {}"
4011
4131
 
4012
4132
# Code to be used in simple link tests
4013
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4133
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4014
4134
 
4015
4135
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4016
4136
_LT_AC_SYS_COMPILER
4063
4183
_LT_AC_TAGVAR(objext, $1)=$objext
4064
4184
 
4065
4185
# Code to be used in simple compile tests
4066
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4186
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4067
4187
 
4068
4188
# Code to be used in simple link tests
4069
4189
lt_simple_link_test_code="$lt_simple_compile_test_code"
4152
4272
    _LT_AC_TAGVAR(module_cmds, $1) \
4153
4273
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4154
4274
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4275
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4155
4276
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4156
4277
    _LT_AC_TAGVAR(include_expsyms, $1); do
4157
4278
 
4198
4319
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4199
4320
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4200
4321
#
4201
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4322
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4202
4323
# Free Software Foundation, Inc.
4203
4324
#
4204
4325
# This file is part of GNU Libtool:
4523
4644
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4524
4645
 
4525
4646
# Fix the shell variable \$srcfile for the compiler.
4526
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4647
fix_srcfile_path=$lt_fix_srcfile_path
4527
4648
 
4528
4649
# Set to yes if exported symbols are required.
4529
4650
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4606
4727
# ---------------------------------
4607
4728
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4608
4729
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4730
AC_REQUIRE([LT_AC_PROG_SED])
4609
4731
AC_REQUIRE([AC_PROG_NM])
4610
4732
AC_REQUIRE([AC_OBJEXT])
4611
4733
# Check for command to grab the raw symbol name followed by C symbol from nm.
4642
4764
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4643
4765
  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'"
4644
4766
  ;;
4645
 
linux*)
 
4767
linux* | k*bsd*-gnu)
4646
4768
  if test "$host_cpu" = ia64; then
4647
4769
    symcode='[[ABCDGIRSTW]]'
4648
4770
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4832
4954
      # like `-m68040'.
4833
4955
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4834
4956
      ;;
4835
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4957
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4836
4958
      # PIC is the default for these OSes.
4837
4959
      ;;
4838
 
    mingw* | os2* | pw32*)
 
4960
    mingw* | cygwin* | os2* | pw32*)
4839
4961
      # This hack is so that the source file can tell whether it is being
4840
4962
      # built for inclusion in a dll (and should export symbols for example).
 
4963
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4964
      # (--disable-auto-import) libraries
4841
4965
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4842
4966
      ;;
4843
4967
    darwin* | rhapsody*)
4849
4973
      # DJGPP does not support shared libraries at all
4850
4974
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4851
4975
      ;;
4852
 
    interix3*)
 
4976
    interix[[3-9]]*)
4853
4977
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4854
4978
      # Instead, we relocate shared libraries at runtime.
4855
4979
      ;;
4915
5039
            ;;
4916
5040
        esac
4917
5041
        ;;
4918
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5042
      freebsd* | dragonfly*)
4919
5043
        # FreeBSD uses GNU C++
4920
5044
        ;;
4921
5045
      hpux9* | hpux10* | hpux11*)
4958
5082
            ;;
4959
5083
        esac
4960
5084
        ;;
4961
 
      linux*)
 
5085
      linux* | k*bsd*-gnu)
4962
5086
        case $cc_basename in
4963
5087
          KCC*)
4964
5088
            # KAI C++ Compiler
4985
5109
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4986
5110
            ;;
4987
5111
          *)
 
5112
            case `$CC -V 2>&1 | sed 5q` in
 
5113
            *Sun\ C*)
 
5114
              # Sun C++ 5.9
 
5115
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5116
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5117
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5118
              ;;
 
5119
            esac
4988
5120
            ;;
4989
5121
        esac
4990
5122
        ;;
5105
5237
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5106
5238
      ;;
5107
5239
 
5108
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5240
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5109
5241
      # PIC is the default for these OSes.
5110
5242
      ;;
5111
5243
 
5112
 
    mingw* | pw32* | os2*)
 
5244
    mingw* | cygwin* | pw32* | os2*)
5113
5245
      # This hack is so that the source file can tell whether it is being
5114
5246
      # built for inclusion in a dll (and should export symbols for example).
 
5247
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5248
      # (--disable-auto-import) libraries
5115
5249
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5116
5250
      ;;
5117
5251
 
5121
5255
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5122
5256
      ;;
5123
5257
 
5124
 
    interix3*)
 
5258
    interix[[3-9]]*)
5125
5259
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5126
5260
      # Instead, we relocate shared libraries at runtime.
5127
5261
      ;;
5179
5313
       esac
5180
5314
       ;;
5181
5315
 
5182
 
    mingw* | pw32* | os2*)
 
5316
    mingw* | cygwin* | pw32* | os2*)
5183
5317
      # This hack is so that the source file can tell whether it is being
5184
5318
      # built for inclusion in a dll (and should export symbols for example).
5185
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5212
5346
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5213
5347
      ;;
5214
5348
 
5215
 
    linux*)
 
5349
    linux* | k*bsd*-gnu)
5216
5350
      case $cc_basename in
5217
5351
      icc* | ecc*)
5218
5352
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5231
5365
        # All Alpha code is PIC.
5232
5366
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5233
5367
        ;;
 
5368
      *)
 
5369
        case `$CC -V 2>&1 | sed 5q` in
 
5370
        *Sun\ C*)
 
5371
          # Sun C 5.9
 
5372
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5373
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5374
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5375
          ;;
 
5376
        *Sun\ F*)
 
5377
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5378
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5379
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5380
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5381
          ;;
 
5382
        esac
 
5383
        ;;
5234
5384
      esac
5235
5385
      ;;
5236
5386
 
5240
5390
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5241
5391
      ;;
5242
5392
 
 
5393
    rdos*)
 
5394
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5395
      ;;
 
5396
 
5243
5397
    solaris*)
5244
5398
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5245
5399
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5334
5488
# ------------------------------------
5335
5489
# See if the linker supports building shared libraries.
5336
5490
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5337
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5491
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5492
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5338
5493
ifelse([$1],[CXX],[
5339
5494
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5340
5495
  case $host_os in
5351
5506
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5352
5507
  ;;
5353
5508
  cygwin* | mingw*)
5354
 
    _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'
 
5509
    _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'
5355
5510
  ;;
5356
5511
  *)
5357
5512
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5490
5645
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5491
5646
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5492
5647
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5493
 
      _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'
 
5648
      _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'
5494
5649
 
5495
5650
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5496
5651
        _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'
5508
5663
      fi
5509
5664
      ;;
5510
5665
 
5511
 
    interix3*)
 
5666
    interix[[3-9]]*)
5512
5667
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5513
5668
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5514
5669
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5523
5678
      _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'
5524
5679
      ;;
5525
5680
 
5526
 
    linux*)
 
5681
    gnu* | linux* | k*bsd*-gnu)
5527
5682
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5528
5683
        tmp_addflag=
5529
5684
        case $cc_basename,$host_cpu in
5541
5696
        ifc* | ifort*)                  # Intel Fortran compiler
5542
5697
          tmp_addflag=' -nofor_main' ;;
5543
5698
        esac
5544
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5699
        case `$CC -V 2>&1 | sed 5q` in
 
5700
        *Sun\ C*)                       # Sun C 5.9
 
5701
          _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'
 
5702
          tmp_sharedflag='-G' ;;
 
5703
        *Sun\ F*)                       # Sun Fortran 8.3
 
5704
          tmp_sharedflag='-G' ;;
 
5705
        *)
 
5706
          tmp_sharedflag='-shared' ;;
 
5707
        esac
 
5708
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5545
5709
 
5546
5710
        if test $supports_anon_versioning = yes; then
5547
5711
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5548
5712
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5549
5713
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5550
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5714
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5551
5715
        fi
5552
5716
      else
5553
5717
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5587
5751
 
5588
5752
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5589
5753
      case `$LD -v 2>&1` in
5590
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5754
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5591
5755
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5592
5756
        cat <<_LT_EOF 1>&2
5593
5757
 
5706
5870
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5707
5871
          then
5708
5872
          # We have reworked collect2
5709
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5873
          :
5710
5874
          else
5711
5875
          # We have old collect2
5712
5876
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5799
5963
      # The linker will automatically build a .lib file if we build a DLL.
5800
5964
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5801
5965
      # FIXME: Should let the user specify the lib program.
5802
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5966
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5803
5967
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5804
5968
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5805
5969
      ;;
5841
6005
      case $cc_basename in
5842
6006
        xlc*)
5843
6007
         output_verbose_link_cmd='echo'
5844
 
         _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'
 
6008
         _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'
5845
6009
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5846
6010
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5847
 
         _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}'
 
6011
         _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}'
5848
6012
          _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}'
5849
6013
          ;;
5850
6014
       *)
5884
6048
      ;;
5885
6049
 
5886
6050
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5887
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6051
    freebsd* | dragonfly*)
5888
6052
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5889
6053
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5890
6054
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6006
6170
      ;;
6007
6171
 
6008
6172
    openbsd*)
6009
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6010
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6011
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6012
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6013
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6014
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6015
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6173
      if test -f /usr/libexec/ld.so; then
 
6174
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6175
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6176
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6177
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6178
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6179
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6180
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6181
        else
 
6182
          case $host_os in
 
6183
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6184
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6185
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6186
             ;;
 
6187
           *)
 
6188
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6189
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6190
             ;;
 
6191
          esac
 
6192
        fi
6016
6193
      else
6017
 
       case $host_os in
6018
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6019
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6020
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6021
 
           ;;
6022
 
         *)
6023
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6024
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6025
 
           ;;
6026
 
       esac
 
6194
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6027
6195
      fi
6028
6196
      ;;
6029
6197
 
6082
6250
      case $host_os in
6083
6251
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6084
6252
      *)
6085
 
        # The compiler driver will combine linker options so we
6086
 
        # cannot just pass the convience library names through
6087
 
        # without $wl, iff we do not link with $LD.
6088
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6253
        # The compiler driver will combine and reorder linker options,
 
6254
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6255
        # but is careful enough not to reorder.
6089
6256
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6090
 
        case $wlarc in
6091
 
        '')
6092
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6093
 
        *)
6094
 
          _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' ;;
6095
 
        esac ;;
 
6257
        if test "$GCC" = yes; then
 
6258
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6259
        else
 
6260
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6261
        fi
 
6262
        ;;
6096
6263
      esac
6097
6264
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6098
6265
      ;;
6149
6316
      fi
6150
6317
      ;;
6151
6318
 
6152
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6319
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6153
6320
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6154
6321
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6155
6322
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6224
6391
      # to ld, don't add -lc before -lgcc.
6225
6392
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6226
6393
      $rm conftest*
6227
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6394
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6228
6395
 
6229
6396
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6230
6397
        soname=conftest
6327
6494
[AC_CHECK_TOOL(RC, windres, no)
6328
6495
])
6329
6496
 
 
6497
 
 
6498
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6499
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6500
 
 
6501
# _AS_TEST_PREPARE
 
6502
# ----------------
 
6503
m4_ifndef([_AS_TEST_PREPARE],
 
6504
[m4_defun([_AS_TEST_PREPARE],
 
6505
[if test -x / >/dev/null 2>&1; then
 
6506
  as_executable_p='test -x'
 
6507
else
 
6508
  as_executable_p='test -f'
 
6509
fi
 
6510
])])# _AS_TEST_PREPARE
 
6511
 
 
6512
# AS_EXECUTABLE_P
 
6513
# ---------------
 
6514
# Check whether a file is executable.
 
6515
m4_ifndef([AS_EXECUTABLE_P],
 
6516
[m4_defun([AS_EXECUTABLE_P],
 
6517
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6518
$as_executable_p $1[]dnl
 
6519
])])# AS_EXECUTABLE_P
 
6520
 
6330
6521
# NOTE: This macro has been submitted for inclusion into   #
6331
6522
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6332
6523
#  a released version of Autoconf we should remove this    #
6347
6538
  test -z "$as_dir" && as_dir=.
6348
6539
  for lt_ac_prog in sed gsed; do
6349
6540
    for ac_exec_ext in '' $ac_executable_extensions; do
6350
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6541
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6351
6542
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6352
6543
      fi
6353
6544
    done
6354
6545
  done
6355
6546
done
 
6547
IFS=$as_save_IFS
6356
6548
lt_ac_max=0
6357
6549
lt_ac_count=0
6358
6550
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6385
6577
done
6386
6578
])
6387
6579
SED=$lt_cv_path_SED
 
6580
AC_SUBST([SED])
6388
6581
AC_MSG_RESULT([$SED])
6389
6582
])
6390
6583
 
6526
6719
 
6527
6720
_PKG_TEXT
6528
6721
])],
6529
 
                [$4])
 
6722
                [AC_MSG_RESULT([no])
 
6723
                $4])
6530
6724
elif test $pkg_failed = untried; then
6531
6725
        ifelse([$4], , [AC_MSG_FAILURE(dnl
6532
6726
[The pkg-config script could not be found or is too old.  Make sure it
6545
6739
fi[]dnl
6546
6740
])# PKG_CHECK_MODULES
6547
6741
 
6548
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
6742
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
6549
6743
#
6550
6744
# This file is free software; the Free Software Foundation
6551
6745
# gives unlimited permission to copy and/or distribute it,
6555
6749
# ----------------------------
6556
6750
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6557
6751
# generated from the m4 files accompanying Automake X.Y.
6558
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
6752
# (This private macro should not be called outside this file.)
 
6753
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6754
[am__api_version='1.10'
 
6755
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6756
dnl require some minimum version.  Point them to the right macro.
 
6757
m4_if([$1], [1.10], [],
 
6758
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6759
])
 
6760
 
 
6761
# _AM_AUTOCONF_VERSION(VERSION)
 
6762
# -----------------------------
 
6763
# aclocal traces this macro to find the Autoconf version.
 
6764
# This is a private macro too.  Using m4_define simplifies
 
6765
# the logic in aclocal, which can simply ignore this definition.
 
6766
m4_define([_AM_AUTOCONF_VERSION], [])
6559
6767
 
6560
6768
# AM_SET_CURRENT_AUTOMAKE_VERSION
6561
6769
# -------------------------------
6562
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
6770
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6563
6771
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6564
6772
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6565
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
6773
[AM_AUTOMAKE_VERSION([1.10])dnl
 
6774
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
6566
6775
 
6567
6776
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6568
6777
 
6619
6828
 
6620
6829
# AM_CONDITIONAL                                            -*- Autoconf -*-
6621
6830
 
6622
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
6831
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
6623
6832
# Free Software Foundation, Inc.
6624
6833
#
6625
6834
# This file is free software; the Free Software Foundation
6626
6835
# gives unlimited permission to copy and/or distribute it,
6627
6836
# with or without modifications, as long as this notice is preserved.
6628
6837
 
6629
 
# serial 7
 
6838
# serial 8
6630
6839
 
6631
6840
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6632
6841
# -------------------------------------
6635
6844
[AC_PREREQ(2.52)dnl
6636
6845
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
6637
6846
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6638
 
AC_SUBST([$1_TRUE])
6639
 
AC_SUBST([$1_FALSE])
 
6847
AC_SUBST([$1_TRUE])dnl
 
6848
AC_SUBST([$1_FALSE])dnl
 
6849
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6850
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6640
6851
if $2; then
6641
6852
  $1_TRUE=
6642
6853
  $1_FALSE='#'
6650
6861
Usually this means the macro was only invoked conditionally.]])
6651
6862
fi])])
6652
6863
 
6653
 
 
6654
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6864
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6655
6865
# Free Software Foundation, Inc.
6656
6866
#
6657
6867
# This file is free software; the Free Software Foundation
6658
6868
# gives unlimited permission to copy and/or distribute it,
6659
6869
# with or without modifications, as long as this notice is preserved.
6660
6870
 
6661
 
# serial 8
 
6871
# serial 9
6662
6872
 
6663
6873
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6664
6874
# written in clear, in which case automake, when reading aclocal.m4,
6686
6896
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
6687
6897
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
6688
6898
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6899
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
6689
6900
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
6690
6901
                   [depcc="$$1"   am_compiler_list=])
6691
6902
 
6751
6962
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6752
6963
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6753
6964
         >/dev/null 2>conftest.err &&
 
6965
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6754
6966
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6755
6967
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6756
6968
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6803
7015
  AMDEPBACKSLASH='\'
6804
7016
fi
6805
7017
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6806
 
AC_SUBST([AMDEPBACKSLASH])
 
7018
AC_SUBST([AMDEPBACKSLASH])dnl
 
7019
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6807
7020
])
6808
7021
 
6809
7022
# Generate code to set up dependency tracking.              -*- Autoconf -*-
6828
7041
  # some people rename them; so instead we look at the file content.
6829
7042
  # Grep'ing the first line is not enough: some people post-process
6830
7043
  # each Makefile.in and add a new line on top of each file to say so.
6831
 
  # So let's grep whole file.
6832
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
7044
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7045
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7046
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
6833
7047
    dirpart=`AS_DIRNAME("$mf")`
6834
7048
  else
6835
7049
    continue
6876
7090
 
6877
7091
# Do all the work for Automake.                             -*- Autoconf -*-
6878
7092
 
6879
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6880
 
# Free Software Foundation, Inc.
 
7093
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7094
# 2005, 2006 Free Software Foundation, Inc.
6881
7095
#
6882
7096
# This file is free software; the Free Software Foundation
6883
7097
# gives unlimited permission to copy and/or distribute it,
6900
7114
# arguments mandatory, and then we can depend on a new Autoconf
6901
7115
# release and drop the old call support.
6902
7116
AC_DEFUN([AM_INIT_AUTOMAKE],
6903
 
[AC_PREREQ([2.58])dnl
 
7117
[AC_PREREQ([2.60])dnl
6904
7118
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
6905
7119
dnl the ones we care about.
6906
7120
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6907
7121
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6908
7122
AC_REQUIRE([AC_PROG_INSTALL])dnl
6909
 
# test to see if srcdir already configured
6910
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6911
 
   test -f $srcdir/config.status; then
6912
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7123
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7124
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7125
  # is not polluted with repeated "-I."
 
7126
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7127
  # test to see if srcdir already configured
 
7128
  if test -f $srcdir/config.status; then
 
7129
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7130
  fi
6913
7131
fi
6914
7132
 
6915
7133
# test whether we have cygpath
6929
7147
 AC_SUBST([PACKAGE], [$1])dnl
6930
7148
 AC_SUBST([VERSION], [$2])],
6931
7149
[_AM_SET_OPTIONS([$1])dnl
 
7150
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7151
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7152
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
6932
7153
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6933
7154
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6934
7155
 
6964
7185
                  [_AM_DEPENDENCIES(CXX)],
6965
7186
                  [define([AC_PROG_CXX],
6966
7187
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7188
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7189
                  [_AM_DEPENDENCIES(OBJC)],
 
7190
                  [define([AC_PROG_OBJC],
 
7191
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
6967
7192
])
6968
7193
])
6969
7194
 
6999
7224
# Define $install_sh.
7000
7225
AC_DEFUN([AM_PROG_INSTALL_SH],
7001
7226
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7002
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
7227
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7003
7228
AC_SUBST(install_sh)])
7004
7229
 
7005
7230
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7077
7302
 
7078
7303
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7079
7304
 
7080
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
7305
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7081
7306
# Free Software Foundation, Inc.
7082
7307
#
7083
7308
# This file is free software; the Free Software Foundation
7084
7309
# gives unlimited permission to copy and/or distribute it,
7085
7310
# with or without modifications, as long as this notice is preserved.
7086
7311
 
7087
 
# serial 4
 
7312
# serial 5
7088
7313
 
7089
7314
# AM_MISSING_PROG(NAME, PROGRAM)
7090
7315
# ------------------------------
7100
7325
# If it does, set am_missing_run to use it, otherwise, to nothing.
7101
7326
AC_DEFUN([AM_MISSING_HAS_RUN],
7102
7327
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7328
AC_REQUIRE_AUX_FILE([missing])dnl
7103
7329
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7104
7330
# Use eval to expand $SHELL
7105
7331
if eval "$MISSING --run true"; then
7110
7336
fi
7111
7337
])
7112
7338
 
7113
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
7339
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7114
7340
#
7115
7341
# This file is free software; the Free Software Foundation
7116
7342
# gives unlimited permission to copy and/or distribute it,
7118
7344
 
7119
7345
# AM_PROG_MKDIR_P
7120
7346
# ---------------
7121
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7122
 
#
7123
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7124
 
# created by `make install' are always world readable, even if the
7125
 
# installer happens to have an overly restrictive umask (e.g. 077).
7126
 
# This was a mistake.  There are at least two reasons why we must not
7127
 
# use `-m 0755':
7128
 
#   - it causes special bits like SGID to be ignored,
7129
 
#   - it may be too restrictive (some setups expect 775 directories).
7130
 
#
7131
 
# Do not use -m 0755 and let people choose whatever they expect by
7132
 
# setting umask.
7133
 
#
7134
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7135
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7136
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7137
 
# concurrently, both version can detect that a/ is missing, but only
7138
 
# one can create it and the other will error out.  Consequently we
7139
 
# restrict ourselves to GNU make (using the --version option ensures
7140
 
# this.)
 
7347
# Check for `mkdir -p'.
7141
7348
AC_DEFUN([AM_PROG_MKDIR_P],
7142
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7143
 
  # We used to keeping the `.' as first argument, in order to
7144
 
  # allow $(mkdir_p) to be used without argument.  As in
7145
 
  #   $(mkdir_p) $(somedir)
7146
 
  # where $(somedir) is conditionally defined.  However this is wrong
7147
 
  # for two reasons:
7148
 
  #  1. if the package is installed by a user who cannot write `.'
7149
 
  #     make install will fail,
7150
 
  #  2. the above comment should most certainly read
7151
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7152
 
  #     so it does not work when $(somedir) is undefined and
7153
 
  #     $(DESTDIR) is not.
7154
 
  #  To support the latter case, we have to write
7155
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7156
 
  #  so the `.' trick is pointless.
7157
 
  mkdir_p='mkdir -p --'
7158
 
else
7159
 
  # On NextStep and OpenStep, the `mkdir' command does not
7160
 
  # recognize any option.  It will interpret all options as
7161
 
  # directories to create, and then abort because `.' already
7162
 
  # exists.
7163
 
  for d in ./-p ./--version;
7164
 
  do
7165
 
    test -d $d && rmdir $d
7166
 
  done
7167
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7168
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7169
 
    mkdir_p='$(mkinstalldirs)'
7170
 
  else
7171
 
    mkdir_p='$(install_sh) -d'
7172
 
  fi
7173
 
fi
7174
 
AC_SUBST([mkdir_p])])
 
7349
[AC_PREREQ([2.60])dnl
 
7350
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7351
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7352
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7353
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7354
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7355
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7356
dnl adjustment using top_builddir (which is defined more often than
 
7357
dnl MKDIR_P).
 
7358
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7359
case $mkdir_p in
 
7360
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7361
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7362
esac
 
7363
])
7175
7364
 
7176
7365
# Helper functions for option handling.                     -*- Autoconf -*-
7177
7366
 
7283
7472
if test "$cross_compiling" != no; then
7284
7473
  AC_CHECK_TOOL([STRIP], [strip], :)
7285
7474
fi
7286
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
7475
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7287
7476
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7288
7477
 
 
7478
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7479
#
 
7480
# This file is free software; the Free Software Foundation
 
7481
# gives unlimited permission to copy and/or distribute it,
 
7482
# with or without modifications, as long as this notice is preserved.
 
7483
 
 
7484
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7485
# ---------------------------
 
7486
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
7487
# This macro is traced by Automake.
 
7488
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7489
 
7289
7490
# Check how to create a tarball.                            -*- Autoconf -*-
7290
7491
 
7291
7492
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.