~ubuntu-branches/ubuntu/lucid/vino/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2008-05-27 09:06:36 UTC
  • mfrom: (1.1.21 upstream) (2.1.31 hardy)
  • Revision ID: james.westby@ubuntu.com-20080527090636-lg1whxlkub1wtsw7
Tags: 2.22.2-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
          glib_save_LIBS="$LIBS"
259
259
          LIBS="$LIBS $INTLLIBS"
260
260
          AC_CHECK_FUNCS(dcgettext)
 
261
          MSGFMT_OPTS=
 
262
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
263
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
264
msgid ""
 
265
msgstr ""
 
266
"Content-Type: text/plain; charset=UTF-8\n"
 
267
"Project-Id-Version: test 1.0\n"
 
268
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
269
"Last-Translator: test <foo@bar.xx>\n"
 
270
"Language-Team: C <LL@li.org>\n"
 
271
"MIME-Version: 1.0\n"
 
272
"Content-Transfer-Encoding: 8bit\n"
 
273
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
274
          AC_SUBST(MSGFMT_OPTS)
261
275
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
262
276
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
263
277
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
429
443
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
430
444
glib_save_prefix="$prefix"
431
445
glib_save_exec_prefix="$exec_prefix"
 
446
glib_save_datarootdir="$datarootdir"
432
447
test "x$prefix" = xNONE && prefix=$ac_default_prefix
433
448
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
449
datarootdir=`eval echo "${datarootdir}"`
434
450
if test "x$CATOBJEXT" = "x.mo" ; then
435
451
  localedir=`eval echo "${libdir}/locale"`
436
452
else
438
454
fi
439
455
prefix="$glib_save_prefix"
440
456
exec_prefix="$glib_save_exec_prefix"
 
457
datarootdir="$glib_save_datarootdir"
441
458
AC_DEFINE_UNQUOTED($1, "$localedir",
442
459
  [Define the location where the catalogs will be installed])
443
460
])
450
467
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
451
468
])dnl
452
469
 
 
470
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
471
 
472
# Create a temporary file with TEST-FILE as its contents and pass the
 
473
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
474
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
475
AC_DEFUN([GLIB_RUN_PROG],
 
476
[cat >conftest.foo <<_ACEOF
 
477
$2
 
478
_ACEOF
 
479
if AC_RUN_LOG([$1 conftest.foo]); then
 
480
  m4_ifval([$3], [$3], [:])
 
481
m4_ifvaln([$4], [else $4])dnl
 
482
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
483
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
484
fi])
 
485
 
 
486
 
453
487
dnl GNOME_COMPILE_WARNINGS
454
488
dnl Turn on many useful compiler warnings
455
489
dnl For now, only works on GCC
547
581
 
548
582
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
549
583
  warnCXXFLAGS=
550
 
  if test "x$GCC" != xyes; then
551
 
    enable_compile_warnings=no
 
584
  if test "x$GXX" != xyes; then
 
585
    enable_cxx_warnings=no
552
586
  fi
553
587
  if test "x$enable_cxx_warnings" != "xno"; then
554
 
    if test "x$GCC" = "xyes"; then
 
588
    if test "x$GXX" = "xyes"; then
555
589
      case " $CXXFLAGS " in
556
590
      *[\ \     ]-Wall[\ \      ]*) ;;
557
591
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
574
608
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
575
609
   complCXXFLAGS=
576
610
   if test "x$enable_iso_cxx" != "xno"; then
577
 
     if test "x$GCC" = "xyes"; then
 
611
     if test "x$GXX" = "xyes"; then
578
612
      case " $CXXFLAGS " in
579
613
      *[\ \     ]-ansi[\ \      ]*) ;;
580
614
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
594
628
 
595
629
 
596
630
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
597
 
# serial 35 IT_PROG_INTLTOOL
 
631
# serial 36 IT_PROG_INTLTOOL
598
632
AC_DEFUN([IT_PROG_INTLTOOL],
599
633
[AC_PREREQ([2.50])dnl
600
634
 
607
641
esac
608
642
 
609
643
if test -n "$1"; then
610
 
    AC_MSG_CHECKING(for intltool >= $1)
 
644
    AC_MSG_CHECKING([for intltool >= $1])
611
645
 
612
646
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
613
647
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
636
670
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
637
671
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
638
672
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
673
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
639
674
 
640
675
AC_SUBST(INTLTOOL_DESKTOP_RULE)
641
676
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
655
690
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
656
691
AC_SUBST(INTLTOOL_THEME_RULE)
657
692
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
693
AC_SUBST(INTLTOOL_POLICY_RULE)
 
694
 
 
695
# Check the gettext tools to make sure they are GNU
 
696
AC_PATH_PROG(XGETTEXT, xgettext)
 
697
AC_PATH_PROG(MSGMERGE, msgmerge)
 
698
AC_PATH_PROG(MSGFMT, msgfmt)
 
699
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
700
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
701
fi
 
702
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
703
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
704
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
705
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
706
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
707
fi
658
708
 
659
709
# Use the tools built into the package, not the ones that are installed.
660
710
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
677
727
   fi
678
728
fi
679
729
 
680
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
681
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
682
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
683
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
684
 
 
685
730
# Substitute ALL_LINGUAS so we can use it in po/Makefile
686
731
AC_SUBST(ALL_LINGUAS)
687
 
    
 
732
 
 
733
# Set DATADIRNAME correctly if it is not set yet
 
734
# (copied from glib-gettext.m4)
 
735
if test -z "$DATADIRNAME"; then
 
736
  AC_LINK_IFELSE(
 
737
    [AC_LANG_PROGRAM([[]],
 
738
                     [[extern int _nl_msg_cat_cntr;
 
739
                       return _nl_msg_cat_cntr]])],
 
740
    [DATADIRNAME=share],
 
741
    [case $host in
 
742
    *-*-solaris*)
 
743
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
744
    dnl GNU format message catalog is always supported,
 
745
    dnl since both are added to the libc all together.
 
746
    dnl Hence, we'd like to go with DATADIRNAME=share
 
747
    dnl in this case.
 
748
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
749
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
750
    ;;
 
751
    *)
 
752
    [DATADIRNAME=lib]
 
753
    ;;
 
754
    esac])
 
755
fi
 
756
AC_SUBST(DATADIRNAME)
 
757
 
688
758
IT_PO_SUBDIR([po])
689
759
 
690
760
dnl The following is very similar to
707
777
for file in intltool-extract intltool-merge intltool-update; do
708
778
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
709
779
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
710
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
711
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
712
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
713
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
714
780
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
715
781
        < ${ac_aux_dir}/${file}.in > ${file}.out
716
782
  if cmp -s ${file} ${file}.out 2>/dev/null; then
725
791
],
726
792
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
727
793
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
728
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
729
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
730
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
794
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
731
795
 
732
796
])
733
797
 
774
838
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
775
839
 
776
840
 
777
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
778
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
779
 
dnl This file is free software; the Free Software Foundation
780
 
dnl gives unlimited permission to copy and/or distribute it,
781
 
dnl with or without modifications, as long as this notice is preserved.
782
 
 
783
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
784
 
 
785
 
# This test replaces the one in autoconf.
786
 
# Currently this macro should have the same name as the autoconf macro
787
 
# because gettext's gettext.m4 (distributed in the automake package)
788
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
789
 
# give these diagnostics:
790
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
791
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
792
 
 
793
 
undefine([AC_ISC_POSIX])
794
 
 
795
 
AC_DEFUN([AC_ISC_POSIX],
796
 
  [
797
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
798
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
799
 
  ]
800
 
)
801
 
 
802
841
dnl Autoconf macros for libgcrypt
803
842
dnl       Copyright (C) 2002, 2004 Free Software Foundation, Inc.
804
843
dnl
1071
1110
 
1072
1111
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1073
1112
 
1074
 
# serial 48 AC_PROG_LIBTOOL
 
1113
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
1075
1114
 
1076
1115
 
1077
1116
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1159
1198
AC_REQUIRE([AC_OBJEXT])dnl
1160
1199
AC_REQUIRE([AC_EXEEXT])dnl
1161
1200
dnl
1162
 
 
1163
1201
AC_LIBTOOL_SYS_MAX_CMD_LEN
1164
1202
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1165
1203
AC_LIBTOOL_OBJDIR
1234
1272
test -z "$ac_objext" && ac_objext=o
1235
1273
 
1236
1274
# Determine commands to create old-style static archives.
1237
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1275
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1238
1276
old_postinstall_cmds='chmod 644 $oldlib'
1239
1277
old_postuninstall_cmds=
1240
1278
 
1261
1299
  ;;
1262
1300
esac
1263
1301
 
 
1302
_LT_REQUIRED_DARWIN_CHECKS
 
1303
 
1264
1304
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1265
1305
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1266
1306
enable_win32_dll=yes, enable_win32_dll=no)
1321
1361
# Check for compiler boilerplate output or warnings with
1322
1362
# the simple compiler test code.
1323
1363
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1324
 
[ac_outfile=conftest.$ac_objext
1325
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1364
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1365
ac_outfile=conftest.$ac_objext
 
1366
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1326
1367
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1327
1368
_lt_compiler_boilerplate=`cat conftest.err`
1328
1369
$rm conftest*
1334
1375
# Check for linker boilerplate output or warnings with
1335
1376
# the simple link test code.
1336
1377
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1337
 
[ac_outfile=conftest.$ac_objext
1338
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1379
ac_outfile=conftest.$ac_objext
 
1380
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1339
1381
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1340
1382
_lt_linker_boilerplate=`cat conftest.err`
1341
 
$rm conftest*
 
1383
$rm -r conftest*
1342
1384
])# _LT_LINKER_BOILERPLATE
1343
1385
 
 
1386
# _LT_REQUIRED_DARWIN_CHECKS
 
1387
# --------------------------
 
1388
# Check for some things on darwin
 
1389
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1390
  case $host_os in
 
1391
    rhapsody* | darwin*)
 
1392
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
1393
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1394
 
 
1395
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
1396
      [lt_cv_apple_cc_single_mod=no
 
1397
      if test -z "${LT_MULTI_MODULE}"; then
 
1398
   # By default we will add the -single_module flag. You can override
 
1399
   # by either setting the environment variable LT_MULTI_MODULE
 
1400
   # non-empty at configure time, or by adding -multi_module to the
 
1401
   # link flags.
 
1402
   echo "int foo(void){return 1;}" > conftest.c
 
1403
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1404
     -dynamiclib ${wl}-single_module conftest.c
 
1405
   if test -f libconftest.dylib; then
 
1406
     lt_cv_apple_cc_single_mod=yes
 
1407
     rm -rf libconftest.dylib*
 
1408
   fi
 
1409
   rm conftest.c
 
1410
      fi])
 
1411
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
1412
      [lt_cv_ld_exported_symbols_list],
 
1413
      [lt_cv_ld_exported_symbols_list=no
 
1414
      save_LDFLAGS=$LDFLAGS
 
1415
      echo "_main" > conftest.sym
 
1416
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
1417
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
1418
   [lt_cv_ld_exported_symbols_list=yes],
 
1419
   [lt_cv_ld_exported_symbols_list=no])
 
1420
   LDFLAGS="$save_LDFLAGS"
 
1421
    ])
 
1422
    case $host_os in
 
1423
    rhapsody* | darwin1.[[0123]])
 
1424
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
1425
    darwin1.*)
 
1426
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1427
    darwin*)
 
1428
      # if running on 10.5 or later, the deployment target defaults
 
1429
      # to the OS version, if on x86, and 10.4, the deployment
 
1430
      # target defaults to 10.4. Don't you love it?
 
1431
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
1432
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1433
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1434
   10.[[012]]*)
 
1435
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1436
   10.*)
 
1437
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1438
      esac
 
1439
    ;;
 
1440
  esac
 
1441
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
1442
      _lt_dar_single_mod='$single_module'
 
1443
    fi
 
1444
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
1445
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1446
    else
 
1447
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1448
    fi
 
1449
    if test "$DSYMUTIL" != ":"; then
 
1450
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1451
    else
 
1452
      _lt_dsymutil=
 
1453
    fi
 
1454
    ;;
 
1455
  esac
 
1456
])
1344
1457
 
1345
1458
# _LT_AC_SYS_LIBPATH_AIX
1346
1459
# ----------------------
1351
1464
# If we don't find anything, use the default library path according
1352
1465
# to the aix ld manual.
1353
1466
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1354
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1355
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1356
 
}'`
 
1467
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1468
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1469
lt_aix_libpath_sed='
 
1470
    /Import File Strings/,/^$/ {
 
1471
        /^0/ {
 
1472
            s/^0  *\(.*\)$/\1/
 
1473
            p
 
1474
        }
 
1475
    }'
 
1476
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1357
1477
# Check for a 64-bit object if we didn't find anything.
1358
 
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; }
1359
 
}'`; fi],[])
 
1478
if test -z "$aix_libpath"; then
 
1479
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1480
fi],[])
1360
1481
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1361
1482
])# _LT_AC_SYS_LIBPATH_AIX
1362
1483
 
1587
1708
  rm -rf conftest*
1588
1709
  ;;
1589
1710
 
1590
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1711
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1712
s390*-*linux*|sparc*-*linux*)
1591
1713
  # Find out which ABI we are using.
1592
1714
  echo 'int i;' > conftest.$ac_ext
1593
1715
  if AC_TRY_EVAL(ac_compile); then
1594
1716
    case `/usr/bin/file conftest.o` in
1595
1717
    *32-bit*)
1596
1718
      case $host in
 
1719
        x86_64-*kfreebsd*-gnu)
 
1720
          LD="${LD-ld} -m elf_i386_fbsd"
 
1721
          ;;
1597
1722
        x86_64-*linux*)
1598
1723
          LD="${LD-ld} -m elf_i386"
1599
1724
          ;;
1610
1735
      ;;
1611
1736
    *64-bit*)
1612
1737
      case $host in
 
1738
        x86_64-*kfreebsd*-gnu)
 
1739
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1740
          ;;
1613
1741
        x86_64-*linux*)
1614
1742
          LD="${LD-ld} -m elf_x86_64"
1615
1743
          ;;
1650
1778
    *64-bit*)
1651
1779
      case $lt_cv_prog_gnu_ld in
1652
1780
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1653
 
      *)    LD="${LD-ld} -64" ;;
 
1781
      *)
 
1782
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1783
          LD="${LD-ld} -64"
 
1784
        fi
 
1785
        ;;
1654
1786
      esac
1655
1787
      ;;
1656
1788
    esac
1681
1813
AC_CACHE_CHECK([$1], [$2],
1682
1814
  [$2=no
1683
1815
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1684
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1816
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1685
1817
   lt_compiler_flag="$3"
1686
1818
   # Insert the option either (1) after the last *FLAGS variable, or
1687
1819
   # (2) before a word containing "conftest.", or (3) at the end.
1722
1854
# ------------------------------------------------------------
1723
1855
# Check whether the given compiler option works
1724
1856
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1725
 
[AC_CACHE_CHECK([$1], [$2],
 
1857
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1858
AC_CACHE_CHECK([$1], [$2],
1726
1859
  [$2=no
1727
1860
   save_LDFLAGS="$LDFLAGS"
1728
1861
   LDFLAGS="$LDFLAGS $3"
1729
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1862
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1730
1863
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1731
1864
     # The linker can only warn and ignore the option if not recognized
1732
1865
     # So say no if there are warnings
1742
1875
       $2=yes
1743
1876
     fi
1744
1877
   fi
1745
 
   $rm conftest*
 
1878
   $rm -r conftest*
1746
1879
   LDFLAGS="$save_LDFLAGS"
1747
1880
])
1748
1881
 
1840
1973
    fi
1841
1974
    ;;
1842
1975
  *)
1843
 
    # If test is not a shell built-in, we'll probably end up computing a
1844
 
    # maximum length that is only half of the actual maximum length, but
1845
 
    # we can't tell.
1846
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1847
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1976
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
1977
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1978
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
1979
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
1980
    else
 
1981
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1982
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1848
1983
               = "XX$teststring") >/dev/null 2>&1 &&
1849
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1850
 
            lt_cv_sys_max_cmd_len=$new_result &&
1851
 
            test $i != 17 # 1/2 MB should be enough
1852
 
    do
1853
 
      i=`expr $i + 1`
1854
 
      teststring=$teststring$teststring
1855
 
    done
1856
 
    teststring=
1857
 
    # Add a significant safety factor because C++ compilers can tack on massive
1858
 
    # amounts of additional arguments before passing them to the linker.
1859
 
    # It appears as though 1/2 is a usable value.
1860
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1984
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1985
              lt_cv_sys_max_cmd_len=$new_result &&
 
1986
              test $i != 17 # 1/2 MB should be enough
 
1987
      do
 
1988
        i=`expr $i + 1`
 
1989
        teststring=$teststring$teststring
 
1990
      done
 
1991
      teststring=
 
1992
      # Add a significant safety factor because C++ compilers can tack on massive
 
1993
      # amounts of additional arguments before passing them to the linker.
 
1994
      # It appears as though 1/2 is a usable value.
 
1995
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1996
    fi
1861
1997
    ;;
1862
1998
  esac
1863
1999
])
2010
2146
    AC_CHECK_FUNC([shl_load],
2011
2147
          [lt_cv_dlopen="shl_load"],
2012
2148
      [AC_CHECK_LIB([dld], [shl_load],
2013
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
2149
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2014
2150
        [AC_CHECK_FUNC([dlopen],
2015
2151
              [lt_cv_dlopen="dlopen"],
2016
2152
          [AC_CHECK_LIB([dl], [dlopen],
2018
2154
            [AC_CHECK_LIB([svld], [dlopen],
2019
2155
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2020
2156
              [AC_CHECK_LIB([dld], [dld_link],
2021
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
2157
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2022
2158
              ])
2023
2159
            ])
2024
2160
          ])
2084
2220
# ---------------------------------
2085
2221
# Check to see if options -c and -o are simultaneously supported by compiler
2086
2222
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2087
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2223
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2224
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2088
2225
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2089
2226
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2090
2227
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2092
2229
   mkdir conftest
2093
2230
   cd conftest
2094
2231
   mkdir out
2095
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2232
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2096
2233
 
2097
2234
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2098
2235
   # Insert the option either (1) after the last *FLAGS variable, or
2232
2369
   darwin*)
2233
2370
       if test -n "$STRIP" ; then
2234
2371
         striplib="$STRIP -x"
 
2372
         old_striplib="$STRIP -S"
2235
2373
         AC_MSG_RESULT([yes])
2236
2374
       else
2237
2375
  AC_MSG_RESULT([no])
2249
2387
# -----------------------------
2250
2388
# PORTME Fill in your ld.so characteristics
2251
2389
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2252
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
2390
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2391
AC_MSG_CHECKING([dynamic linker characteristics])
2253
2392
library_names_spec=
2254
2393
libname_spec='lib$name'
2255
2394
soname_spec=
2263
2402
version_type=none
2264
2403
dynamic_linker="$host_os ld.so"
2265
2404
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2405
m4_if($1,[],[
2266
2406
if test "$GCC" = yes; then
2267
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2268
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
2407
  case $host_os in
 
2408
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
2409
    *) lt_awk_arg="/^libraries:/" ;;
 
2410
  esac
 
2411
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2412
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2269
2413
    # if the path contains ";" then we assume it to be the separator
2270
2414
    # otherwise default to the standard path separator (i.e. ":") - it is
2271
2415
    # assumed that no part of a normal pathname contains ";" but that should
2272
2416
    # okay in the real world where ";" in dirpaths is itself problematic.
2273
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2417
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2274
2418
  else
2275
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2419
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2276
2420
  fi
 
2421
  # Ok, now we have the path, separated by spaces, we can step through it
 
2422
  # and add multilib dir if necessary.
 
2423
  lt_tmp_lt_search_path_spec=
 
2424
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
2425
  for lt_sys_path in $lt_search_path_spec; do
 
2426
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
2427
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
2428
    else
 
2429
      test -d "$lt_sys_path" && \
 
2430
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
2431
    fi
 
2432
  done
 
2433
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2434
BEGIN {RS=" "; FS="/|\n";} {
 
2435
  lt_foo="";
 
2436
  lt_count=0;
 
2437
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
2438
    if ($lt_i != "" && $lt_i != ".") {
 
2439
      if ($lt_i == "..") {
 
2440
        lt_count++;
 
2441
      } else {
 
2442
        if (lt_count == 0) {
 
2443
          lt_foo="/" $lt_i lt_foo;
 
2444
        } else {
 
2445
          lt_count--;
 
2446
        }
 
2447
      }
 
2448
    }
 
2449
  }
 
2450
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
2451
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
2452
}'`
 
2453
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2277
2454
else
2278
2455
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2279
 
fi
 
2456
fi])
2280
2457
need_lib_prefix=unknown
2281
2458
hardcode_into_libs=no
2282
2459
 
2294
2471
  soname_spec='${libname}${release}${shared_ext}$major'
2295
2472
  ;;
2296
2473
 
2297
 
aix4* | aix5*)
 
2474
aix[[4-9]]*)
2298
2475
  version_type=linux
2299
2476
  need_lib_prefix=no
2300
2477
  need_version=no
2433
2610
  shlibpath_overrides_runpath=yes
2434
2611
  shlibpath_var=DYLD_LIBRARY_PATH
2435
2612
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2436
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2437
 
  if test "$GCC" = yes; then
2438
 
    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"`
2439
 
  else
2440
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2441
 
  fi
 
2613
  m4_if([$1], [],[
 
2614
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2442
2615
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2443
2616
  ;;
2444
2617
 
2455
2628
  dynamic_linker=no
2456
2629
  ;;
2457
2630
 
2458
 
kfreebsd*-gnu)
2459
 
  version_type=linux
2460
 
  need_lib_prefix=no
2461
 
  need_version=no
2462
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2463
 
  soname_spec='${libname}${release}${shared_ext}$major'
2464
 
  shlibpath_var=LD_LIBRARY_PATH
2465
 
  shlibpath_overrides_runpath=no
2466
 
  hardcode_into_libs=yes
2467
 
  dynamic_linker='GNU ld.so'
2468
 
  ;;
2469
 
 
2470
2631
freebsd* | dragonfly*)
2471
2632
  # DragonFly does not have aout.  When/if they implement a new
2472
2633
  # versioning mechanism, adjust this.
2504
2665
    shlibpath_overrides_runpath=no
2505
2666
    hardcode_into_libs=yes
2506
2667
    ;;
2507
 
  freebsd*) # from 4.6 on
 
2668
  *) # from 4.6 on, and DragonFly
2508
2669
    shlibpath_overrides_runpath=yes
2509
2670
    hardcode_into_libs=yes
2510
2671
    ;;
2567
2728
  postinstall_cmds='chmod 555 $lib'
2568
2729
  ;;
2569
2730
 
2570
 
interix3*)
 
2731
interix[[3-9]]*)
2571
2732
  version_type=linux
2572
2733
  need_lib_prefix=no
2573
2734
  need_version=no
2622
2783
  ;;
2623
2784
 
2624
2785
# This must be Linux ELF.
2625
 
linux*)
 
2786
linux* | k*bsd*-gnu)
2626
2787
  version_type=linux
2627
2788
  need_lib_prefix=no
2628
2789
  need_version=no
2636
2797
  # before this can be enabled.
2637
2798
  hardcode_into_libs=yes
2638
2799
 
2639
 
  # find out which ABI we are using
2640
 
  libsuff=
2641
 
  case "$host_cpu" in
2642
 
  x86_64*|s390x*|powerpc64*)
2643
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2644
 
    if AC_TRY_EVAL(ac_compile); then
2645
 
      case `/usr/bin/file conftest.$ac_objext` in
2646
 
      *64-bit*)
2647
 
        libsuff=64
2648
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2649
 
        ;;
2650
 
      esac
2651
 
    fi
2652
 
    rm -rf conftest*
2653
 
    ;;
2654
 
  esac
2655
 
 
2656
2800
  # Append ld.so.conf contents to the search path
2657
2801
  if test -f /etc/ld.so.conf; then
2658
 
    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' ' '`
2659
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
2802
    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' ' '`
 
2803
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2660
2804
  fi
2661
2805
 
2662
2806
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2668
2812
  dynamic_linker='GNU/Linux ld.so'
2669
2813
  ;;
2670
2814
 
2671
 
knetbsd*-gnu)
 
2815
netbsdelf*-gnu)
2672
2816
  version_type=linux
2673
2817
  need_lib_prefix=no
2674
2818
  need_version=no
2677
2821
  shlibpath_var=LD_LIBRARY_PATH
2678
2822
  shlibpath_overrides_runpath=no
2679
2823
  hardcode_into_libs=yes
2680
 
  dynamic_linker='GNU ld.so'
 
2824
  dynamic_linker='NetBSD ld.elf_so'
2681
2825
  ;;
2682
2826
 
2683
2827
netbsd*)
2761
2905
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2762
2906
  ;;
2763
2907
 
 
2908
rdos*)
 
2909
  dynamic_linker=no
 
2910
  ;;
 
2911
 
2764
2912
solaris*)
2765
2913
  version_type=linux
2766
2914
  need_lib_prefix=no
2856
3004
AC_MSG_RESULT([$dynamic_linker])
2857
3005
test "$dynamic_linker" = no && can_build_shared=no
2858
3006
 
 
3007
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
3008
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
3009
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3010
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
3011
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
3012
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3013
 
2859
3014
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2860
3015
if test "$GCC" = yes; then
2861
3016
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2866
3021
# _LT_AC_TAGCONFIG
2867
3022
# ----------------
2868
3023
AC_DEFUN([_LT_AC_TAGCONFIG],
2869
 
[AC_ARG_WITH([tags],
 
3024
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3025
AC_ARG_WITH([tags],
2870
3026
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2871
3027
        [include additional configurations @<:@automatic@:>@])],
2872
3028
    [tagnames="$withval"])
3127
3283
 
3128
3284
# AC_PATH_TOOL_PREFIX
3129
3285
# -------------------
3130
 
# find a file program which can recognise shared library
 
3286
# find a file program which can recognize shared library
3131
3287
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3132
3288
[AC_REQUIRE([AC_PROG_EGREP])dnl
3133
3289
AC_MSG_CHECKING([for $1])
3190
3346
 
3191
3347
# AC_PATH_MAGIC
3192
3348
# -------------
3193
 
# find a file program which can recognise a shared library
 
3349
# find a file program which can recognize a shared library
3194
3350
AC_DEFUN([AC_PATH_MAGIC],
3195
3351
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3196
3352
if test -z "$lt_cv_path_MAGIC_CMD"; then
3337
3493
# how to check for library dependencies
3338
3494
#  -- PORTME fill in with the dynamic library characteristics
3339
3495
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3340
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3496
[AC_CACHE_CHECK([how to recognize dependent libraries],
3341
3497
lt_cv_deplibs_check_method,
3342
3498
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3343
3499
lt_cv_file_magic_test_file=
3354
3510
# whether `pass_all' will *always* work, you probably want this one.
3355
3511
 
3356
3512
case $host_os in
3357
 
aix4* | aix5*)
 
3513
aix[[4-9]]*)
3358
3514
  lt_cv_deplibs_check_method=pass_all
3359
3515
  ;;
3360
3516
 
3376
3532
 
3377
3533
mingw* | pw32*)
3378
3534
  # Base MSYS/MinGW do not provide the 'file' command needed by
3379
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3380
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3381
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3535
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
3536
  # unless we find 'file', for example because we are cross-compiling.
 
3537
  if ( file / ) >/dev/null 2>&1; then
 
3538
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3539
    lt_cv_file_magic_cmd='func_win32_libid'
 
3540
  else
 
3541
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3542
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3543
  fi
3382
3544
  ;;
3383
3545
 
3384
3546
darwin* | rhapsody*)
3385
3547
  lt_cv_deplibs_check_method=pass_all
3386
3548
  ;;
3387
3549
 
3388
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3550
freebsd* | dragonfly*)
3389
3551
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3390
3552
    case $host_cpu in
3391
3553
    i*86 )
3423
3585
  esac
3424
3586
  ;;
3425
3587
 
3426
 
interix3*)
 
3588
interix[[3-9]]*)
3427
3589
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3428
3590
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3429
3591
  ;;
3439
3601
  ;;
3440
3602
 
3441
3603
# This must be Linux ELF.
3442
 
linux*)
 
3604
linux* | k*bsd*-gnu)
3443
3605
  lt_cv_deplibs_check_method=pass_all
3444
3606
  ;;
3445
3607
 
3446
 
netbsd*)
 
3608
netbsd* | netbsdelf*-gnu)
3447
3609
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3448
3610
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3449
3611
  else
3473
3635
  lt_cv_deplibs_check_method=pass_all
3474
3636
  ;;
3475
3637
 
 
3638
rdos*)
 
3639
  lt_cv_deplibs_check_method=pass_all
 
3640
  ;;
 
3641
 
3476
3642
solaris*)
3477
3643
  lt_cv_deplibs_check_method=pass_all
3478
3644
  ;;
3525
3691
  lt_cv_path_NM="$NM"
3526
3692
else
3527
3693
  lt_nm_to_check="${ac_tool_prefix}nm"
3528
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3694
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3529
3695
    lt_nm_to_check="$lt_nm_to_check nm"
3530
3696
  fi
3531
3697
  for lt_tmp_nm in $lt_nm_to_check; do
3741
3907
_LT_AC_TAGVAR(objext, $1)=$objext
3742
3908
 
3743
3909
# Code to be used in simple compile tests
3744
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3910
lt_simple_compile_test_code="int some_variable = 0;"
3745
3911
 
3746
3912
# Code to be used in simple link tests
3747
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
3913
lt_simple_link_test_code='int main(){return(0);}'
3748
3914
 
3749
3915
_LT_AC_SYS_COMPILER
3750
3916
 
3780
3946
  fi
3781
3947
  ;;
3782
3948
 
3783
 
aix4* | aix5*)
 
3949
aix[[4-9]]*)
3784
3950
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3785
3951
    test "$enable_shared" = yes && enable_static=no
3786
3952
  fi
3837
4003
_LT_AC_TAGVAR(predeps, $1)=
3838
4004
_LT_AC_TAGVAR(postdeps, $1)=
3839
4005
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
4006
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3840
4007
 
3841
4008
# Source file extension for C++ test sources.
3842
4009
ac_ext=cpp
3846
4013
_LT_AC_TAGVAR(objext, $1)=$objext
3847
4014
 
3848
4015
# Code to be used in simple compile tests
3849
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
4016
lt_simple_compile_test_code="int some_variable = 0;"
3850
4017
 
3851
4018
# Code to be used in simple link tests
3852
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
4019
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3853
4020
 
3854
4021
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3855
4022
_LT_AC_SYS_COMPILER
3946
4113
    # FIXME: insert proper C++ library support
3947
4114
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3948
4115
    ;;
3949
 
  aix4* | aix5*)
 
4116
  aix[[4-9]]*)
3950
4117
    if test "$host_cpu" = ia64; then
3951
4118
      # On IA64, the linker does run time linking by default, so we don't
3952
4119
      # have to do anything special.
3959
4126
      # Test if we are trying to use run time linking or normal
3960
4127
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3961
4128
      # need to do runtime linking.
3962
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
4129
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3963
4130
        for ld_flag in $LDFLAGS; do
3964
4131
          case $ld_flag in
3965
4132
          *-brtl*)
3995
4162
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3996
4163
        then
3997
4164
          # We have reworked collect2
3998
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4165
          :
3999
4166
        else
4000
4167
          # We have old collect2
4001
4168
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4105
4272
    fi
4106
4273
  ;;
4107
4274
      darwin* | rhapsody*)
4108
 
        case $host_os in
4109
 
        rhapsody* | darwin1.[[012]])
4110
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4111
 
         ;;
4112
 
       *) # Darwin 1.3 on
4113
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4114
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4115
 
         else
4116
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
4117
 
             10.[[012]])
4118
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4119
 
               ;;
4120
 
             10.*)
4121
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4122
 
               ;;
4123
 
           esac
4124
 
         fi
4125
 
         ;;
4126
 
        esac
4127
4275
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4128
4276
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4129
4277
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4130
4278
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4131
4279
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4132
4280
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4133
 
 
4134
 
    if test "$GXX" = yes ; then
4135
 
      lt_int_apple_cc_single_mod=no
 
4281
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
4282
      if test "$GXX" = yes ; then
4136
4283
      output_verbose_link_cmd='echo'
4137
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4138
 
       lt_int_apple_cc_single_mod=yes
 
4284
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
4285
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
4286
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
4287
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
4288
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
4289
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
4290
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4139
4291
      fi
4140
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4141
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4142
 
      else
4143
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4144
 
        fi
4145
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4146
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4147
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4148
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4149
 
          else
4150
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4151
 
          fi
4152
 
            _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}'
4153
4292
      else
4154
4293
      case $cc_basename in
4155
4294
        xlc*)
4156
4295
         output_verbose_link_cmd='echo'
4157
 
          _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'
 
4296
          _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'
4158
4297
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4159
4298
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4160
 
          _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}'
 
4299
          _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}'
4161
4300
          _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}'
4162
4301
          ;;
4163
4302
       *)
4191
4330
  freebsd-elf*)
4192
4331
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4193
4332
    ;;
4194
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
4333
  freebsd* | dragonfly*)
4195
4334
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4196
4335
    # conventions
4197
4336
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4240
4379
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4241
4380
 
4242
4381
      case $host_cpu in
4243
 
      hppa*64*|ia64*)
4244
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4245
 
        ;;
 
4382
      hppa*64*|ia64*) ;;
4246
4383
      *)
4247
4384
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4248
4385
        ;;
4310
4447
        ;;
4311
4448
    esac
4312
4449
    ;;
4313
 
  interix3*)
 
4450
  interix[[3-9]]*)
4314
4451
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4315
4452
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4316
4453
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4350
4487
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4351
4488
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4352
4489
    ;;
4353
 
  linux*)
 
4490
  linux* | k*bsd*-gnu)
4354
4491
    case $cc_basename in
4355
4492
      KCC*)
4356
4493
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4402
4539
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4403
4540
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4404
4541
        ;;
4405
 
      pgCC*)
 
4542
      pgCC* | pgcpp*)
4406
4543
        # Portland Group C++ compiler
4407
4544
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4408
4545
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4430
4567
        # dependencies.
4431
4568
        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'
4432
4569
        ;;
 
4570
      *)
 
4571
        case `$CC -V 2>&1 | sed 5q` in
 
4572
        *Sun\ C*)
 
4573
          # Sun C++ 5.9
 
4574
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4575
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4576
          _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'
 
4577
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4578
          _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'
 
4579
 
 
4580
          # Not sure whether something based on
 
4581
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4582
          # would be better.
 
4583
          output_verbose_link_cmd='echo'
 
4584
 
 
4585
          # Archives containing C++ object files must be created using
 
4586
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4587
          # necessary to make sure instantiated templates are included
 
4588
          # in the archive.
 
4589
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4590
          ;;
 
4591
        esac
 
4592
        ;;
4433
4593
    esac
4434
4594
    ;;
4435
4595
  lynxos*)
4452
4612
        ;;
4453
4613
    esac
4454
4614
    ;;
4455
 
  netbsd*)
 
4615
  netbsd* | netbsdelf*-gnu)
4456
4616
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4457
4617
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4458
4618
      wlarc=
4468
4628
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4469
4629
    ;;
4470
4630
  openbsd*)
4471
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4472
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4473
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4474
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4475
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4476
 
      _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'
4477
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4478
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4631
    if test -f /usr/libexec/ld.so; then
 
4632
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4633
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4634
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4635
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4636
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4637
        _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'
 
4638
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4639
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4640
      fi
 
4641
      output_verbose_link_cmd='echo'
 
4642
    else
 
4643
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4479
4644
    fi
4480
 
    output_verbose_link_cmd='echo'
4481
4645
    ;;
4482
4646
  osf3*)
4483
4647
    case $cc_basename in
4639
4803
        case $host_os in
4640
4804
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4641
4805
          *)
4642
 
            # The C++ compiler is used as linker so we must use $wl
4643
 
            # flag to pass the commands to the underlying system
4644
 
            # linker. We must also pass each convience library through
4645
 
            # to the system linker between allextract/defaultextract.
4646
 
            # The C++ compiler will combine linker options so we
4647
 
            # cannot just pass the convience library names through
4648
 
            # without $wl.
 
4806
            # The compiler driver will combine and reorder linker options,
 
4807
            # but understands `-z linker_flag'.
4649
4808
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4650
 
            _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'
 
4809
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4651
4810
            ;;
4652
4811
        esac
4653
4812
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4694
4853
          fi
4695
4854
 
4696
4855
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4856
          case $host_os in
 
4857
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4858
          *)
 
4859
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4860
            ;;
 
4861
          esac
4697
4862
        fi
4698
4863
        ;;
4699
4864
    esac
4809
4974
# compiler output when linking a shared library.
4810
4975
# Parse the compiler output and extract the necessary
4811
4976
# objects, libraries and library flags.
4812
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4977
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4978
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4813
4979
dnl we can't use the lt_simple_compile_test_code here,
4814
4980
dnl because it contains code intended for an executable,
4815
4981
dnl not a library.  It's possible we should let each
4934
5100
 
4935
5101
$rm -f confest.$objext
4936
5102
 
 
5103
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
5104
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
5105
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
5106
fi
 
5107
 
4937
5108
# PORTME: override above test on systems where it is broken
4938
5109
ifelse([$1],[CXX],
4939
5110
[case $host_os in
4940
 
interix3*)
 
5111
interix[[3-9]]*)
4941
5112
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4942
5113
  # hack all around it, let's just trust "g++" to DTRT.
4943
5114
  _LT_AC_TAGVAR(predep_objects,$1)=
4945
5116
  _LT_AC_TAGVAR(postdeps,$1)=
4946
5117
  ;;
4947
5118
 
 
5119
linux*)
 
5120
  case `$CC -V 2>&1 | sed 5q` in
 
5121
  *Sun\ C*)
 
5122
    # Sun C++ 5.9
 
5123
    #
 
5124
    # The more standards-conforming stlport4 library is
 
5125
    # incompatible with the Cstd library. Avoid specifying
 
5126
    # it if it's in CXXFLAGS. Ignore libCrun as
 
5127
    # -library=stlport4 depends on it.
 
5128
    case " $CXX $CXXFLAGS " in
 
5129
    *" -library=stlport4 "*)
 
5130
      solaris_use_stlport4=yes
 
5131
      ;;
 
5132
    esac
 
5133
    if test "$solaris_use_stlport4" != yes; then
 
5134
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
5135
    fi
 
5136
    ;;
 
5137
  esac
 
5138
  ;;
 
5139
 
4948
5140
solaris*)
4949
5141
  case $cc_basename in
4950
5142
  CC*)
 
5143
    # The more standards-conforming stlport4 library is
 
5144
    # incompatible with the Cstd library. Avoid specifying
 
5145
    # it if it's in CXXFLAGS. Ignore libCrun as
 
5146
    # -library=stlport4 depends on it.
 
5147
    case " $CXX $CXXFLAGS " in
 
5148
    *" -library=stlport4 "*)
 
5149
      solaris_use_stlport4=yes
 
5150
      ;;
 
5151
    esac
 
5152
 
4951
5153
    # Adding this requires a known-good setup of shared libraries for
4952
5154
    # Sun compiler versions before 5.6, else PIC objects from an old
4953
5155
    # archive will be linked into the output, leading to subtle bugs.
4954
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
5156
    if test "$solaris_use_stlport4" != yes; then
 
5157
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
5158
    fi
4955
5159
    ;;
4956
5160
  esac
4957
5161
  ;;
4958
5162
esac
4959
5163
])
4960
 
 
4961
5164
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4962
5165
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4963
5166
esac
5000
5203
_LT_AC_TAGVAR(objext, $1)=$objext
5001
5204
 
5002
5205
# Code to be used in simple compile tests
5003
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
5206
lt_simple_compile_test_code="\
 
5207
      subroutine t
 
5208
      return
 
5209
      end
 
5210
"
5004
5211
 
5005
5212
# Code to be used in simple link tests
5006
 
lt_simple_link_test_code="      program t\n      end\n"
 
5213
lt_simple_link_test_code="\
 
5214
      program t
 
5215
      end
 
5216
"
5007
5217
 
5008
5218
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5009
5219
_LT_AC_SYS_COMPILER
5035
5245
    postinstall_cmds='$RANLIB $lib'
5036
5246
  fi
5037
5247
  ;;
5038
 
aix4* | aix5*)
 
5248
aix[[4-9]]*)
5039
5249
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5040
5250
    test "$enable_shared" = yes && enable_static=no
5041
5251
  fi
5082
5292
_LT_AC_TAGVAR(objext, $1)=$objext
5083
5293
 
5084
5294
# Code to be used in simple compile tests
5085
 
lt_simple_compile_test_code="class foo {}\n"
 
5295
lt_simple_compile_test_code="class foo {}"
5086
5296
 
5087
5297
# Code to be used in simple link tests
5088
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
5298
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5089
5299
 
5090
5300
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5091
5301
_LT_AC_SYS_COMPILER
5138
5348
_LT_AC_TAGVAR(objext, $1)=$objext
5139
5349
 
5140
5350
# Code to be used in simple compile tests
5141
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
5351
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5142
5352
 
5143
5353
# Code to be used in simple link tests
5144
5354
lt_simple_link_test_code="$lt_simple_compile_test_code"
5212
5422
    _LT_AC_TAGVAR(predeps, $1) \
5213
5423
    _LT_AC_TAGVAR(postdeps, $1) \
5214
5424
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
5425
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5215
5426
    _LT_AC_TAGVAR(archive_cmds, $1) \
5216
5427
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5217
5428
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5227
5438
    _LT_AC_TAGVAR(module_cmds, $1) \
5228
5439
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5229
5440
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
5441
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5230
5442
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5231
5443
    _LT_AC_TAGVAR(include_expsyms, $1); do
5232
5444
 
5273
5485
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5274
5486
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5275
5487
#
5276
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5488
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5277
5489
# Free Software Foundation, Inc.
5278
5490
#
5279
5491
# This file is part of GNU Libtool:
5363
5575
# Is the compiler the GNU C compiler?
5364
5576
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5365
5577
 
5366
 
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
5367
 
gcc_ver=\`gcc -dumpversion\`
5368
 
 
5369
5578
# An ERE matcher.
5370
5579
EGREP=$lt_EGREP
5371
5580
 
5499
5708
 
5500
5709
# Dependencies to place before the objects being linked to create a
5501
5710
# shared library.
5502
 
predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
5711
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5503
5712
 
5504
5713
# Dependencies to place after the objects being linked to create a
5505
5714
# shared library.
5506
 
postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
5715
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5507
5716
 
5508
5717
# Dependencies to place before the objects being linked to create a
5509
5718
# shared library.
5513
5722
# shared library.
5514
5723
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5515
5724
 
 
5725
# The directories searched by this compiler when creating a shared
 
5726
# library
 
5727
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5728
 
5516
5729
# The library search path used internally by the compiler when linking
5517
5730
# a shared library.
5518
 
compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
5731
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5519
5732
 
5520
5733
# Method to check whether dependent libraries are shared objects.
5521
5734
deplibs_check_method=$lt_deplibs_check_method
5595
5808
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5596
5809
 
5597
5810
# Compile-time system search path for libraries
5598
 
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
 
5811
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5599
5812
 
5600
5813
# Run-time system search path for libraries
5601
5814
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5602
5815
 
5603
5816
# Fix the shell variable \$srcfile for the compiler.
5604
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5817
fix_srcfile_path=$lt_fix_srcfile_path
5605
5818
 
5606
5819
# Set to yes if exported symbols are required.
5607
5820
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5684
5897
# ---------------------------------
5685
5898
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5686
5899
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5900
AC_REQUIRE([LT_AC_PROG_SED])
5687
5901
AC_REQUIRE([AC_PROG_NM])
5688
5902
AC_REQUIRE([AC_OBJEXT])
5689
5903
# Check for command to grab the raw symbol name followed by C symbol from nm.
5720
5934
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5721
5935
  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'"
5722
5936
  ;;
5723
 
linux*)
 
5937
linux* | k*bsd*-gnu)
5724
5938
  if test "$host_cpu" = ia64; then
5725
5939
    symcode='[[ABCDGIRSTW]]'
5726
5940
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5861
6075
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5862
6076
    cat conftest.$ac_ext >&5
5863
6077
  fi
5864
 
  rm -f conftest* conftst*
 
6078
  rm -rf conftest* conftst*
5865
6079
 
5866
6080
  # Do not use the global_symbol_pipe unless it works.
5867
6081
  if test "$pipe_works" = yes; then
5910
6124
      # like `-m68040'.
5911
6125
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5912
6126
      ;;
5913
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6127
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5914
6128
      # PIC is the default for these OSes.
5915
6129
      ;;
5916
 
    mingw* | os2* | pw32*)
 
6130
    mingw* | cygwin* | os2* | pw32*)
5917
6131
      # This hack is so that the source file can tell whether it is being
5918
6132
      # built for inclusion in a dll (and should export symbols for example).
5919
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6133
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
6134
      # (--disable-auto-import) libraries
 
6135
      m4_if([$1], [GCJ], [],
 
6136
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5920
6137
      ;;
5921
6138
    darwin* | rhapsody*)
5922
6139
      # PIC is the default on this platform
5927
6144
      # DJGPP does not support shared libraries at all
5928
6145
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5929
6146
      ;;
5930
 
    interix3*)
 
6147
    interix[[3-9]]*)
5931
6148
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5932
6149
      # Instead, we relocate shared libraries at runtime.
5933
6150
      ;;
5953
6170
    esac
5954
6171
  else
5955
6172
    case $host_os in
5956
 
      aix4* | aix5*)
 
6173
      aix[[4-9]]*)
5957
6174
        # All AIX code is PIC.
5958
6175
        if test "$host_cpu" = ia64; then
5959
6176
          # AIX 5 now supports IA64 processor
5993
6210
            ;;
5994
6211
        esac
5995
6212
        ;;
5996
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
6213
      freebsd* | dragonfly*)
5997
6214
        # FreeBSD uses GNU C++
5998
6215
        ;;
5999
6216
      hpux9* | hpux10* | hpux11*)
6036
6253
            ;;
6037
6254
        esac
6038
6255
        ;;
6039
 
      linux*)
 
6256
      linux* | k*bsd*-gnu)
6040
6257
        case $cc_basename in
6041
6258
          KCC*)
6042
6259
            # KAI C++ Compiler
6049
6266
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6050
6267
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6051
6268
            ;;
6052
 
          pgCC*)
 
6269
          pgCC* | pgcpp*)
6053
6270
            # Portland Group C++ compiler.
6054
6271
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6055
6272
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6063
6280
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6064
6281
            ;;
6065
6282
          *)
 
6283
            case `$CC -V 2>&1 | sed 5q` in
 
6284
            *Sun\ C*)
 
6285
              # Sun C++ 5.9
 
6286
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6287
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6288
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6289
              ;;
 
6290
            esac
6066
6291
            ;;
6067
6292
        esac
6068
6293
        ;;
6079
6304
            ;;
6080
6305
        esac
6081
6306
        ;;
6082
 
      netbsd*)
 
6307
      netbsd* | netbsdelf*-gnu)
6083
6308
        ;;
6084
6309
      osf3* | osf4* | osf5*)
6085
6310
        case $cc_basename in
6183
6408
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6184
6409
      ;;
6185
6410
 
6186
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6411
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6187
6412
      # PIC is the default for these OSes.
6188
6413
      ;;
6189
6414
 
6190
 
    mingw* | pw32* | os2*)
 
6415
    mingw* | cygwin* | pw32* | os2*)
6191
6416
      # This hack is so that the source file can tell whether it is being
6192
6417
      # built for inclusion in a dll (and should export symbols for example).
6193
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6418
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
6419
      # (--disable-auto-import) libraries
 
6420
      m4_if([$1], [GCJ], [],
 
6421
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6194
6422
      ;;
6195
6423
 
6196
6424
    darwin* | rhapsody*)
6199
6427
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6200
6428
      ;;
6201
6429
 
6202
 
    interix3*)
 
6430
    interix[[3-9]]*)
6203
6431
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6204
6432
      # Instead, we relocate shared libraries at runtime.
6205
6433
      ;;
6257
6485
       esac
6258
6486
       ;;
6259
6487
 
6260
 
    mingw* | pw32* | os2*)
 
6488
    mingw* | cygwin* | pw32* | os2*)
6261
6489
      # This hack is so that the source file can tell whether it is being
6262
6490
      # built for inclusion in a dll (and should export symbols for example).
6263
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6491
      m4_if([$1], [GCJ], [],
 
6492
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6264
6493
      ;;
6265
6494
 
6266
6495
    hpux9* | hpux10* | hpux11*)
6290
6519
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6291
6520
      ;;
6292
6521
 
6293
 
    linux*)
 
6522
    linux* | k*bsd*-gnu)
6294
6523
      case $cc_basename in
6295
6524
      icc* | ecc*)
6296
6525
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6309
6538
        # All Alpha code is PIC.
6310
6539
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6311
6540
        ;;
 
6541
      *)
 
6542
        case `$CC -V 2>&1 | sed 5q` in
 
6543
        *Sun\ C*)
 
6544
          # Sun C 5.9
 
6545
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6546
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6547
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6548
          ;;
 
6549
        *Sun\ F*)
 
6550
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
6551
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6552
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6553
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6554
          ;;
 
6555
        esac
 
6556
        ;;
6312
6557
      esac
6313
6558
      ;;
6314
6559
 
6318
6563
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6319
6564
      ;;
6320
6565
 
 
6566
    rdos*)
 
6567
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6568
      ;;
 
6569
 
6321
6570
    solaris*)
6322
6571
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6323
6572
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6377
6626
#
6378
6627
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6379
6628
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6380
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6629
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6381
6630
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6382
6631
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6383
6632
     "" | " "*) ;;
6401
6650
#
6402
6651
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6403
6652
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6404
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6653
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6405
6654
  $lt_tmp_static_flag,
6406
6655
  [],
6407
6656
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6412
6661
# ------------------------------------
6413
6662
# See if the linker supports building shared libraries.
6414
6663
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6415
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6664
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
6665
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6416
6666
ifelse([$1],[CXX],[
6417
6667
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6418
6668
  case $host_os in
6419
 
  aix4* | aix5*)
 
6669
  aix[[4-9]]*)
6420
6670
    # If we're using GNU nm, then we don't want the "-C" option.
6421
6671
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6422
6672
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6429
6679
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6430
6680
  ;;
6431
6681
  cygwin* | mingw*)
6432
 
    _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'
 
6682
    _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'
 
6683
  ;;
 
6684
  linux* | k*bsd*-gnu)
 
6685
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6433
6686
  ;;
6434
6687
  *)
6435
6688
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6436
6689
  ;;
6437
6690
  esac
 
6691
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6438
6692
],[
6439
6693
  runpath_var=
6440
6694
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6465
6719
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6466
6720
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6467
6721
  # as well as any symbol that contains `d'.
6468
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6722
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6469
6723
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6470
6724
  # platforms (ab)use it in PIC code, but their linkers get confused if
6471
6725
  # the symbol is explicitly referenced.  Since portable code cannot
6472
6726
  # rely on this symbol name, it's probably fine to never include it in
6473
6727
  # preloaded symbol tables.
 
6728
  # Exclude shared library initialization/finalization symbols.
 
6729
dnl Note also adjust exclude_expsyms for C++ above.
6474
6730
  extract_expsyms_cmds=
6475
6731
  # Just being paranoid about ensuring that cc_basename is set.
6476
6732
  _LT_CC_BASENAME([$compiler])
6520
6776
 
6521
6777
    # See if GNU ld supports shared libraries.
6522
6778
    case $host_os in
6523
 
    aix3* | aix4* | aix5*)
 
6779
    aix[[3-9]]*)
6524
6780
      # On AIX/PPC, the GNU linker is very broken
6525
6781
      if test "$host_cpu" != ia64; then
6526
6782
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6568
6824
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6569
6825
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6570
6826
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6571
 
      _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'
 
6827
      _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'
6572
6828
 
6573
6829
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6574
6830
        _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'
6586
6842
      fi
6587
6843
      ;;
6588
6844
 
6589
 
    interix3*)
 
6845
    interix[[3-9]]*)
6590
6846
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6591
6847
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
6848
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6601
6857
      _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'
6602
6858
      ;;
6603
6859
 
6604
 
    linux*)
 
6860
    gnu* | linux* | k*bsd*-gnu)
6605
6861
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6606
6862
        tmp_addflag=
6607
6863
        case $cc_basename,$host_cpu in
6619
6875
        ifc* | ifort*)                  # Intel Fortran compiler
6620
6876
          tmp_addflag=' -nofor_main' ;;
6621
6877
        esac
6622
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6878
        case `$CC -V 2>&1 | sed 5q` in
 
6879
        *Sun\ C*)                       # Sun C 5.9
 
6880
          _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'
 
6881
          tmp_sharedflag='-G' ;;
 
6882
        *Sun\ F*)                       # Sun Fortran 8.3
 
6883
          tmp_sharedflag='-G' ;;
 
6884
        *)
 
6885
          tmp_sharedflag='-shared' ;;
 
6886
        esac
 
6887
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6623
6888
 
6624
6889
        if test $supports_anon_versioning = yes; then
6625
6890
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6626
6891
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6627
6892
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6628
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6893
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6629
6894
        fi
 
6895
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6630
6896
      else
6631
6897
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6632
6898
      fi
6633
6899
      ;;
6634
6900
 
6635
 
    netbsd*)
 
6901
    netbsd* | netbsdelf*-gnu)
6636
6902
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6637
6903
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6638
6904
        wlarc=
6665
6931
 
6666
6932
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6667
6933
      case `$LD -v 2>&1` in
6668
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6934
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6669
6935
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6670
6936
        cat <<_LT_EOF 1>&2
6671
6937
 
6730
6996
      fi
6731
6997
      ;;
6732
6998
 
6733
 
    aix4* | aix5*)
 
6999
    aix[[4-9]]*)
6734
7000
      if test "$host_cpu" = ia64; then
6735
7001
        # On IA64, the linker does run time linking by default, so we don't
6736
7002
        # have to do anything special.
6750
7016
        # Test if we are trying to use run time linking or normal
6751
7017
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6752
7018
        # need to do runtime linking.
6753
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
7019
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6754
7020
          for ld_flag in $LDFLAGS; do
6755
7021
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6756
7022
            aix_use_runtimelinking=yes
6784
7050
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6785
7051
          then
6786
7052
          # We have reworked collect2
6787
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7053
          :
6788
7054
          else
6789
7055
          # We have old collect2
6790
7056
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6877
7143
      # The linker will automatically build a .lib file if we build a DLL.
6878
7144
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6879
7145
      # FIXME: Should let the user specify the lib program.
6880
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7146
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6881
7147
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6882
7148
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6883
7149
      ;;
6910
7176
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6911
7177
    if test "$GCC" = yes ; then
6912
7178
        output_verbose_link_cmd='echo'
6913
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6914
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6915
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6916
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6917
 
      _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}'
 
7179
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
7180
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
7181
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
7182
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6918
7183
    else
6919
7184
      case $cc_basename in
6920
7185
        xlc*)
6921
7186
         output_verbose_link_cmd='echo'
6922
 
         _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'
 
7187
         _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'
6923
7188
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6924
7189
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6925
 
         _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}'
 
7190
         _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}'
6926
7191
          _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}'
6927
7192
          ;;
6928
7193
       *)
6962
7227
      ;;
6963
7228
 
6964
7229
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6965
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7230
    freebsd* | dragonfly*)
6966
7231
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6967
7232
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6968
7233
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7064
7329
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7065
7330
      ;;
7066
7331
 
7067
 
    netbsd*)
 
7332
    netbsd* | netbsdelf*-gnu)
7068
7333
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7069
7334
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7070
7335
      else
7084
7349
      ;;
7085
7350
 
7086
7351
    openbsd*)
7087
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7088
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7089
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7090
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7091
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7092
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7093
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7352
      if test -f /usr/libexec/ld.so; then
 
7353
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7354
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7355
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7356
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7357
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7358
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7359
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7360
        else
 
7361
          case $host_os in
 
7362
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7363
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7364
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7365
             ;;
 
7366
           *)
 
7367
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7368
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7369
             ;;
 
7370
          esac
 
7371
        fi
7094
7372
      else
7095
 
       case $host_os in
7096
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7097
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7098
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7099
 
           ;;
7100
 
         *)
7101
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7102
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7103
 
           ;;
7104
 
       esac
 
7373
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7105
7374
      fi
7106
7375
      ;;
7107
7376
 
7160
7429
      case $host_os in
7161
7430
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7162
7431
      *)
7163
 
        # The compiler driver will combine linker options so we
7164
 
        # cannot just pass the convience library names through
7165
 
        # without $wl, iff we do not link with $LD.
7166
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7432
        # The compiler driver will combine and reorder linker options,
 
7433
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
7434
        # but is careful enough not to reorder.
7167
7435
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7168
 
        case $wlarc in
7169
 
        '')
7170
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7171
 
        *)
7172
 
          _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' ;;
7173
 
        esac ;;
 
7436
        if test "$GCC" = yes; then
 
7437
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7438
        else
 
7439
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7440
        fi
 
7441
        ;;
7174
7442
      esac
7175
7443
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7176
7444
      ;;
7227
7495
      fi
7228
7496
      ;;
7229
7497
 
7230
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7498
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7231
7499
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7232
7500
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7233
7501
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7302
7570
      # to ld, don't add -lc before -lgcc.
7303
7571
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7304
7572
      $rm conftest*
7305
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7573
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7306
7574
 
7307
7575
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7308
7576
        soname=conftest
7405
7673
[AC_CHECK_TOOL(RC, windres, no)
7406
7674
])
7407
7675
 
 
7676
 
 
7677
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7678
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7679
 
 
7680
# _AS_TEST_PREPARE
 
7681
# ----------------
 
7682
m4_ifndef([_AS_TEST_PREPARE],
 
7683
[m4_defun([_AS_TEST_PREPARE],
 
7684
[if test -x / >/dev/null 2>&1; then
 
7685
  as_executable_p='test -x'
 
7686
else
 
7687
  as_executable_p='test -f'
 
7688
fi
 
7689
])])# _AS_TEST_PREPARE
 
7690
 
 
7691
# AS_EXECUTABLE_P
 
7692
# ---------------
 
7693
# Check whether a file is executable.
 
7694
m4_ifndef([AS_EXECUTABLE_P],
 
7695
[m4_defun([AS_EXECUTABLE_P],
 
7696
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7697
$as_executable_p $1[]dnl
 
7698
])])# AS_EXECUTABLE_P
 
7699
 
7408
7700
# NOTE: This macro has been submitted for inclusion into   #
7409
7701
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7410
7702
#  a released version of Autoconf we should remove this    #
7425
7717
  test -z "$as_dir" && as_dir=.
7426
7718
  for lt_ac_prog in sed gsed; do
7427
7719
    for ac_exec_ext in '' $ac_executable_extensions; do
7428
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7720
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7429
7721
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7430
7722
      fi
7431
7723
    done
7616
7908
 
7617
7909
_PKG_TEXT
7618
7910
 
7619
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
7911
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7620
7912
                [$4])
7621
7913
else
7622
7914
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS