~ubuntu-branches/ubuntu/oneiric/libgdata/oneiric-backports

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Evan Broder
  • Date: 2011-11-15 21:59:48 UTC
  • mfrom: (4.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20111115215948-e17s889ocgu5fv4f
Tags: 0.10.1-1~oneiric1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
1223
1223
])
1224
1224
 
1225
1225
dnl -*- mode: autoconf -*-
1226
 
 
1227
 
# serial 1
1228
 
 
1229
 
dnl Usage:
1230
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
1231
 
AC_DEFUN([GTK_DOC_CHECK],
1232
 
[
1233
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1234
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1235
 
 
1236
 
  dnl check for tools we added during development
1237
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
1238
 
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
1239
 
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
1240
 
 
1241
 
  dnl for overriding the documentation installation directory
1242
 
  AC_ARG_WITH([html-dir],
1243
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
1244
 
    [with_html_dir='${datadir}/gtk-doc/html'])
1245
 
  HTML_DIR="$with_html_dir"
1246
 
  AC_SUBST([HTML_DIR])
1247
 
 
1248
 
  dnl enable/disable documentation building
1249
 
  AC_ARG_ENABLE([gtk-doc],
1250
 
    AS_HELP_STRING([--enable-gtk-doc],
1251
 
                   [use gtk-doc to build documentation [[default=no]]]),,
1252
 
    [enable_gtk_doc=no])
1253
 
 
1254
 
  if test x$enable_gtk_doc = xyes; then
1255
 
    ifelse([$1],[],
1256
 
      [PKG_CHECK_EXISTS([gtk-doc],,
1257
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1258
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
1259
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
1260
 
  fi
1261
 
 
1262
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
1263
 
  AC_MSG_RESULT($enable_gtk_doc)
1264
 
 
1265
 
  dnl enable/disable output formats
1266
 
  AC_ARG_ENABLE([gtk-doc-html],
1267
 
    AS_HELP_STRING([--enable-gtk-doc-html],
1268
 
                   [build documentation in html format [[default=yes]]]),,
1269
 
    [enable_gtk_doc_html=yes])
1270
 
    AC_ARG_ENABLE([gtk-doc-pdf],
1271
 
      AS_HELP_STRING([--enable-gtk-doc-pdf],
1272
 
                     [build documentation in pdf format [[default=no]]]),,
1273
 
      [enable_gtk_doc_pdf=no])
1274
 
 
1275
 
  if test -z "$GTKDOC_MKPDF"; then
1276
 
    enable_gtk_doc_pdf=no
1277
 
  fi
1278
 
 
1279
 
 
1280
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
1281
 
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
1282
 
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
1283
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
1284
 
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
1285
 
])
1286
 
 
1287
 
 
1288
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1289
 
# serial 40 IT_PROG_INTLTOOL
1290
 
AC_DEFUN([IT_PROG_INTLTOOL], [
1291
 
AC_PREREQ([2.50])dnl
1292
 
AC_REQUIRE([AM_NLS])dnl
1293
 
 
1294
 
case "$am__api_version" in
1295
 
    1.[01234])
1296
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1297
 
    ;;
1298
 
    *)
1299
 
    ;;
1300
 
esac
1301
 
 
1302
 
if test -n "$1"; then
1303
 
    AC_MSG_CHECKING([for intltool >= $1])
1304
 
 
1305
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1306
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1307
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1308
 
    ]
1309
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1310
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1311
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
1312
 
fi
1313
 
 
1314
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1315
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1316
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1317
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1318
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1319
 
fi
1320
 
 
1321
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.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 $< [$]@' 
1322
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@' 
1323
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1324
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.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 $< [$]@' 
1325
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1326
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.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 $< [$]@' 
1327
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1328
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.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 $< [$]@' 
1329
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@' 
1330
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.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 $< [$]@' 
1331
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.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 $< [$]@' 
1332
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
1333
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.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 $< [$]@' 
1334
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
1335
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.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 $< [$]@' 
1336
 
  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 $< [$]@' 
1337
 
    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 $< [$]@' 
1338
 
    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 $< [$]@'
1339
 
   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 $< [$]@'
1340
 
 
1341
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1342
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1343
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
1344
 
_IT_SUBST(INTLTOOL_PROP_RULE)
1345
 
_IT_SUBST(INTLTOOL_OAF_RULE)
1346
 
_IT_SUBST(INTLTOOL_PONG_RULE)
1347
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
1348
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
1349
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1350
 
_IT_SUBST(INTLTOOL_UI_RULE)
1351
 
_IT_SUBST(INTLTOOL_XAM_RULE)
1352
 
_IT_SUBST(INTLTOOL_KBD_RULE)
1353
 
_IT_SUBST(INTLTOOL_XML_RULE)
1354
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1355
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
1356
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1357
 
_IT_SUBST(INTLTOOL_THEME_RULE)
1358
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1359
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
1360
 
 
1361
 
# Check the gettext tools to make sure they are GNU
1362
 
AC_PATH_PROG(XGETTEXT, xgettext)
1363
 
AC_PATH_PROG(MSGMERGE, msgmerge)
1364
 
AC_PATH_PROG(MSGFMT, msgfmt)
1365
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1366
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1367
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1368
 
fi
1369
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1370
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1371
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1372
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1373
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1374
 
fi
1375
 
 
1376
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
1377
 
if test -z "$INTLTOOL_PERL"; then
1378
 
   AC_MSG_ERROR([perl not found])
1379
 
fi
1380
 
AC_MSG_CHECKING([for perl >= 5.8.1])
1381
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1382
 
if test $? -ne 0; then
1383
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1384
 
else
1385
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1386
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
1387
 
fi
1388
 
if test "x$2" != "xno-xml"; then
1389
 
   AC_MSG_CHECKING([for XML::Parser])
1390
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1391
 
       AC_MSG_RESULT([ok])
1392
 
   else
1393
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1394
 
   fi
1395
 
fi
1396
 
 
1397
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1398
 
AC_SUBST(ALL_LINGUAS)
1399
 
 
1400
 
# Set DATADIRNAME correctly if it is not set yet
1401
 
# (copied from glib-gettext.m4)
1402
 
if test -z "$DATADIRNAME"; then
1403
 
  AC_LINK_IFELSE(
1404
 
    [AC_LANG_PROGRAM([[]],
1405
 
                     [[extern int _nl_msg_cat_cntr;
1406
 
                       return _nl_msg_cat_cntr]])],
1407
 
    [DATADIRNAME=share],
1408
 
    [case $host in
1409
 
    *-*-solaris*)
1410
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
1411
 
    dnl GNU format message catalog is always supported,
1412
 
    dnl since both are added to the libc all together.
1413
 
    dnl Hence, we'd like to go with DATADIRNAME=share
1414
 
    dnl in this case.
1415
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
1416
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
1417
 
    ;;
1418
 
    *)
1419
 
    [DATADIRNAME=lib]
1420
 
    ;;
1421
 
    esac])
1422
 
fi
1423
 
AC_SUBST(DATADIRNAME)
1424
 
 
1425
 
IT_PO_SUBDIR([po])
1426
 
 
1427
 
])
1428
 
 
1429
 
 
1430
 
# IT_PO_SUBDIR(DIRNAME)
1431
 
# ---------------------
1432
 
# All po subdirs have to be declared with this macro; the subdir "po" is
1433
 
# declared by IT_PROG_INTLTOOL.
1434
 
#
1435
 
AC_DEFUN([IT_PO_SUBDIR],
1436
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1437
 
dnl
1438
 
dnl The following CONFIG_COMMANDS should be executed at the very end
1439
 
dnl of config.status.
1440
 
AC_CONFIG_COMMANDS_PRE([
1441
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1442
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1443
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1444
 
    fi
1445
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1446
 
    >"$1/stamp-it.tmp"
1447
 
    [sed '/^#/d
1448
 
         s/^[[].*] *//
1449
 
         /^[    ]*$/d
1450
 
        '"s|^|  $ac_top_srcdir/|" \
1451
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1452
 
    ]
1453
 
    [sed '/^POTFILES =/,/[^\\]$/ {
1454
 
                /^POTFILES =/!d
1455
 
                r $1/POTFILES
1456
 
          }
1457
 
         ' "$1/Makefile.in" >"$1/Makefile"]
1458
 
    rm -f "$1/Makefile.tmp"
1459
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
1460
 
  ])
1461
 
])dnl
1462
 
])
1463
 
 
1464
 
# _IT_SUBST(VARIABLE)
1465
 
# -------------------
1466
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1467
 
#
1468
 
AC_DEFUN([_IT_SUBST],
1469
 
[
1470
 
AC_SUBST([$1])
1471
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1472
 
]
1473
 
)
1474
 
 
1475
 
# deprecated macros
1476
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1477
 
# A hint is needed for aclocal from Automake <= 1.9.4:
1478
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1479
 
 
1480
 
 
1481
 
dnl -*- mode: autoconf -*-
1482
1226
dnl Copyright 2009 Johan Dahlin
1483
1227
dnl
1484
1228
dnl This file is free software; the author(s) gives unlimited
1573
1317
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
1574
1318
])
1575
1319
 
1576
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1577
 
#
1578
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1579
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1580
 
#                 Inc.
1581
 
#   Written by Gordon Matzigkeit, 1996
1582
 
#
1583
 
# This file is free software; the Free Software Foundation gives
1584
 
# unlimited permission to copy and/or distribute it, with or without
1585
 
# modifications, as long as this notice is preserved.
1586
 
 
1587
 
m4_define([_LT_COPYING], [dnl
1588
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1589
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1590
 
#                 Inc.
1591
 
#   Written by Gordon Matzigkeit, 1996
1592
 
#
1593
 
#   This file is part of GNU Libtool.
1594
 
#
1595
 
# GNU Libtool is free software; you can redistribute it and/or
1596
 
# modify it under the terms of the GNU General Public License as
1597
 
# published by the Free Software Foundation; either version 2 of
1598
 
# the License, or (at your option) any later version.
1599
 
#
1600
 
# As a special exception to the GNU General Public License,
1601
 
# if you distribute this file as part of a program or library that
1602
 
# is built using GNU Libtool, you may include this file under the
1603
 
# same distribution terms that you use for the rest of that program.
1604
 
#
1605
 
# GNU Libtool is distributed in the hope that it will be useful,
1606
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1607
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1608
 
# GNU General Public License for more details.
1609
 
#
1610
 
# You should have received a copy of the GNU General Public License
1611
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
1612
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1613
 
# obtained by writing to the Free Software Foundation, Inc.,
1614
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1615
 
])
1616
 
 
1617
 
# serial 57 LT_INIT
1618
 
 
1619
 
 
1620
 
# LT_PREREQ(VERSION)
1621
 
# ------------------
1622
 
# Complain and exit if this libtool version is less that VERSION.
1623
 
m4_defun([LT_PREREQ],
1624
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1625
 
       [m4_default([$3],
1626
 
                   [m4_fatal([Libtool version $1 or higher is required],
1627
 
                             63)])],
1628
 
       [$2])])
1629
 
 
1630
 
 
1631
 
# _LT_CHECK_BUILDDIR
1632
 
# ------------------
1633
 
# Complain if the absolute build directory name contains unusual characters
1634
 
m4_defun([_LT_CHECK_BUILDDIR],
1635
 
[case `pwd` in
1636
 
  *\ * | *\     *)
1637
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1638
 
esac
1639
 
])
1640
 
 
1641
 
 
1642
 
# LT_INIT([OPTIONS])
1643
 
# ------------------
1644
 
AC_DEFUN([LT_INIT],
1645
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1646
 
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1647
 
AC_BEFORE([$0], [LT_LANG])dnl
1648
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
1649
 
AC_BEFORE([$0], [LTDL_INIT])dnl
1650
 
m4_require([_LT_CHECK_BUILDDIR])dnl
1651
 
 
1652
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1653
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1654
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1655
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1656
 
dnl unless we require an AC_DEFUNed macro:
1657
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1658
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
1659
 
AC_REQUIRE([LTVERSION_VERSION])dnl
1660
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1661
 
m4_require([_LT_PROG_LTMAIN])dnl
1662
 
 
1663
 
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1664
 
 
1665
 
dnl Parse OPTIONS
1666
 
_LT_SET_OPTIONS([$0], [$1])
1667
 
 
1668
 
# This can be used to rebuild libtool when needed
1669
 
LIBTOOL_DEPS="$ltmain"
1670
 
 
1671
 
# Always use our own libtool.
1672
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1673
 
AC_SUBST(LIBTOOL)dnl
1674
 
 
1675
 
_LT_SETUP
1676
 
 
1677
 
# Only expand once:
1678
 
m4_define([LT_INIT])
1679
 
])# LT_INIT
1680
 
 
1681
 
# Old names:
1682
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1683
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1684
 
dnl aclocal-1.4 backwards compatibility:
1685
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1686
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1687
 
 
1688
 
 
1689
 
# _LT_CC_BASENAME(CC)
1690
 
# -------------------
1691
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1692
 
m4_defun([_LT_CC_BASENAME],
1693
 
[for cc_temp in $1""; do
1694
 
  case $cc_temp in
1695
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1696
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1697
 
    \-*) ;;
1698
 
    *) break;;
1699
 
  esac
1700
 
done
1701
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1702
 
])
1703
 
 
1704
 
 
1705
 
# _LT_FILEUTILS_DEFAULTS
1706
 
# ----------------------
1707
 
# It is okay to use these file commands and assume they have been set
1708
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1709
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
1710
 
[: ${CP="cp -f"}
1711
 
: ${MV="mv -f"}
1712
 
: ${RM="rm -f"}
1713
 
])# _LT_FILEUTILS_DEFAULTS
1714
 
 
1715
 
 
1716
 
# _LT_SETUP
1717
 
# ---------
1718
 
m4_defun([_LT_SETUP],
1719
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1720
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1721
 
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1722
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1723
 
 
1724
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
1725
 
_LT_DECL([], [host], [0])dnl
1726
 
_LT_DECL([], [host_os], [0])dnl
1727
 
dnl
1728
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
1729
 
_LT_DECL([], [build], [0])dnl
1730
 
_LT_DECL([], [build_os], [0])dnl
1731
 
dnl
1732
 
AC_REQUIRE([AC_PROG_CC])dnl
1733
 
AC_REQUIRE([LT_PATH_LD])dnl
1734
 
AC_REQUIRE([LT_PATH_NM])dnl
1735
 
dnl
1736
 
AC_REQUIRE([AC_PROG_LN_S])dnl
1737
 
test -z "$LN_S" && LN_S="ln -s"
1738
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1739
 
dnl
1740
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1741
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1742
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1743
 
dnl
1744
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1745
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1746
 
m4_require([_LT_CMD_RELOAD])dnl
1747
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1748
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1749
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1750
 
 
1751
 
_LT_CONFIG_LIBTOOL_INIT([
1752
 
# See if we are running on zsh, and set the options which allow our
1753
 
# commands through without removal of \ escapes INIT.
1754
 
if test -n "\${ZSH_VERSION+set}" ; then
1755
 
   setopt NO_GLOB_SUBST
1756
 
fi
1757
 
])
1758
 
if test -n "${ZSH_VERSION+set}" ; then
1759
 
   setopt NO_GLOB_SUBST
1760
 
fi
1761
 
 
1762
 
_LT_CHECK_OBJDIR
1763
 
 
1764
 
m4_require([_LT_TAG_COMPILER])dnl
1765
 
 
1766
 
case $host_os in
1767
 
aix3*)
1768
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1769
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1770
 
  # vanish in a puff of smoke.
1771
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1772
 
    COLLECT_NAMES=
1773
 
    export COLLECT_NAMES
1774
 
  fi
1775
 
  ;;
1776
 
esac
1777
 
 
1778
 
# Global variables:
1779
 
ofile=libtool
1780
 
can_build_shared=yes
1781
 
 
1782
 
# All known linkers require a `.a' archive for static linking (except MSVC,
1783
 
# which needs '.lib').
1784
 
libext=a
1785
 
 
1786
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
1787
 
 
1788
 
old_CC="$CC"
1789
 
old_CFLAGS="$CFLAGS"
1790
 
 
1791
 
# Set sane defaults for various variables
1792
 
test -z "$CC" && CC=cc
1793
 
test -z "$LTCC" && LTCC=$CC
1794
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1795
 
test -z "$LD" && LD=ld
1796
 
test -z "$ac_objext" && ac_objext=o
1797
 
 
1798
 
_LT_CC_BASENAME([$compiler])
1799
 
 
1800
 
# Only perform the check for file, if the check method requires it
1801
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1802
 
case $deplibs_check_method in
1803
 
file_magic*)
1804
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1805
 
    _LT_PATH_MAGIC
1806
 
  fi
1807
 
  ;;
1808
 
esac
1809
 
 
1810
 
# Use C for the default configuration in the libtool script
1811
 
LT_SUPPORTED_TAG([CC])
1812
 
_LT_LANG_C_CONFIG
1813
 
_LT_LANG_DEFAULT_CONFIG
1814
 
_LT_CONFIG_COMMANDS
1815
 
])# _LT_SETUP
1816
 
 
1817
 
 
1818
 
# _LT_PREPARE_SED_QUOTE_VARS
1819
 
# --------------------------
1820
 
# Define a few sed substitution that help us do robust quoting.
1821
 
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1822
 
[# Backslashify metacharacters that are still active within
1823
 
# double-quoted strings.
1824
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1825
 
 
1826
 
# Same as above, but do not quote variable references.
1827
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1828
 
 
1829
 
# Sed substitution to delay expansion of an escaped shell variable in a
1830
 
# double_quote_subst'ed string.
1831
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1832
 
 
1833
 
# Sed substitution to delay expansion of an escaped single quote.
1834
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1835
 
 
1836
 
# Sed substitution to avoid accidental globbing in evaled expressions
1837
 
no_glob_subst='s/\*/\\\*/g'
1838
 
])
1839
 
 
1840
 
# _LT_PROG_LTMAIN
1841
 
# ---------------
1842
 
# Note that this code is called both from `configure', and `config.status'
1843
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
1844
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1845
 
# so we pass a copy along to make sure it has a sensible value anyway.
1846
 
m4_defun([_LT_PROG_LTMAIN],
1847
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1848
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1849
 
ltmain="$ac_aux_dir/ltmain.sh"
1850
 
])# _LT_PROG_LTMAIN
1851
 
 
1852
 
 
1853
 
 
1854
 
# So that we can recreate a full libtool script including additional
1855
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1856
 
# in macros and then make a single call at the end using the `libtool'
1857
 
# label.
1858
 
 
1859
 
 
1860
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1861
 
# ----------------------------------------
1862
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1863
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1864
 
[m4_ifval([$1],
1865
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1866
 
                     [$1
1867
 
])])])
1868
 
 
1869
 
# Initialize.
1870
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1871
 
 
1872
 
 
1873
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
1874
 
# ------------------------------
1875
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1876
 
m4_define([_LT_CONFIG_LIBTOOL],
1877
 
[m4_ifval([$1],
1878
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1879
 
                     [$1
1880
 
])])])
1881
 
 
1882
 
# Initialize.
1883
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1884
 
 
1885
 
 
1886
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1887
 
# -----------------------------------------------------
1888
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1889
 
[_LT_CONFIG_LIBTOOL([$1])
1890
 
_LT_CONFIG_LIBTOOL_INIT([$2])
1891
 
])
1892
 
 
1893
 
 
1894
 
# _LT_FORMAT_COMMENT([COMMENT])
1895
 
# -----------------------------
1896
 
# Add leading comment marks to the start of each line, and a trailing
1897
 
# full-stop to the whole comment if one is not present already.
1898
 
m4_define([_LT_FORMAT_COMMENT],
1899
 
[m4_ifval([$1], [
1900
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1901
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1902
 
)])
1903
 
 
1904
 
 
1905
 
 
1906
 
 
1907
 
 
1908
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1909
 
# -------------------------------------------------------------------
1910
 
# CONFIGNAME is the name given to the value in the libtool script.
1911
 
# VARNAME is the (base) name used in the configure script.
1912
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1913
 
# VARNAME.  Any other value will be used directly.
1914
 
m4_define([_LT_DECL],
1915
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1916
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1917
 
        [m4_ifval([$1], [$1], [$2])])
1918
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1919
 
    m4_ifval([$4],
1920
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1921
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
1922
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
1923
 
])
1924
 
 
1925
 
 
1926
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1927
 
# --------------------------------------------------------
1928
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1929
 
 
1930
 
 
1931
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1932
 
# ------------------------------------------------
1933
 
m4_define([lt_decl_tag_varnames],
1934
 
[_lt_decl_filter([tagged?], [yes], $@)])
1935
 
 
1936
 
 
1937
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1938
 
# ---------------------------------------------------------
1939
 
m4_define([_lt_decl_filter],
1940
 
[m4_case([$#],
1941
 
  [0], [m4_fatal([$0: too few arguments: $#])],
1942
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1943
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1944
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1945
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1946
 
])
1947
 
 
1948
 
 
1949
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1950
 
# --------------------------------------------------
1951
 
m4_define([lt_decl_quote_varnames],
1952
 
[_lt_decl_filter([value], [1], $@)])
1953
 
 
1954
 
 
1955
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1956
 
# ---------------------------------------------------
1957
 
m4_define([lt_decl_dquote_varnames],
1958
 
[_lt_decl_filter([value], [2], $@)])
1959
 
 
1960
 
 
1961
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1962
 
# ---------------------------------------------------
1963
 
m4_define([lt_decl_varnames_tagged],
1964
 
[m4_assert([$# <= 2])dnl
1965
 
_$0(m4_quote(m4_default([$1], [[, ]])),
1966
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1967
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1968
 
m4_define([_lt_decl_varnames_tagged],
1969
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1970
 
 
1971
 
 
1972
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1973
 
# ------------------------------------------------
1974
 
m4_define([lt_decl_all_varnames],
1975
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1976
 
     m4_if([$2], [],
1977
 
           m4_quote(lt_decl_varnames),
1978
 
        m4_quote(m4_shift($@))))[]dnl
1979
 
])
1980
 
m4_define([_lt_decl_all_varnames],
1981
 
[lt_join($@, lt_decl_varnames_tagged([$1],
1982
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1983
 
])
1984
 
 
1985
 
 
1986
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1987
 
# ------------------------------------
1988
 
# Quote a variable value, and forward it to `config.status' so that its
1989
 
# declaration there will have the same value as in `configure'.  VARNAME
1990
 
# must have a single quote delimited value for this to work.
1991
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
1992
 
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1993
 
 
1994
 
 
1995
 
# _LT_CONFIG_STATUS_DECLARATIONS
1996
 
# ------------------------------
1997
 
# We delimit libtool config variables with single quotes, so when
1998
 
# we write them to config.status, we have to be sure to quote all
1999
 
# embedded single quotes properly.  In configure, this macro expands
2000
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2001
 
#
2002
 
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2003
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2004
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2005
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2006
 
 
2007
 
 
2008
 
# _LT_LIBTOOL_TAGS
2009
 
# ----------------
2010
 
# Output comment and list of tags supported by the script
2011
 
m4_defun([_LT_LIBTOOL_TAGS],
2012
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2013
 
available_tags="_LT_TAGS"dnl
2014
 
])
2015
 
 
2016
 
 
2017
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2018
 
# -----------------------------------
2019
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
2020
 
# expand to a commented shell variable setting:
2021
 
#
2022
 
#    # Some comment about what VAR is for.
2023
 
#    visible_name=$lt_internal_name
2024
 
m4_define([_LT_LIBTOOL_DECLARE],
2025
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2026
 
                                           [description])))[]dnl
2027
 
m4_pushdef([_libtool_name],
2028
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2029
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2030
 
    [0], [_libtool_name=[$]$1],
2031
 
    [1], [_libtool_name=$lt_[]$1],
2032
 
    [2], [_libtool_name=$lt_[]$1],
2033
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2034
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2035
 
])
2036
 
 
2037
 
 
2038
 
# _LT_LIBTOOL_CONFIG_VARS
2039
 
# -----------------------
2040
 
# Produce commented declarations of non-tagged libtool config variables
2041
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2042
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
2043
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
2044
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2045
 
[m4_foreach([_lt_var],
2046
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2047
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2048
 
 
2049
 
 
2050
 
# _LT_LIBTOOL_TAG_VARS(TAG)
2051
 
# -------------------------
2052
 
m4_define([_LT_LIBTOOL_TAG_VARS],
2053
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2054
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2055
 
 
2056
 
 
2057
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
2058
 
# ------------------------------
2059
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2060
 
 
2061
 
 
2062
 
# _LT_CONFIG_COMMANDS
2063
 
# -------------------
2064
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
2065
 
# variables for single and double quote escaping we saved from calls
2066
 
# to _LT_DECL, we can put quote escaped variables declarations
2067
 
# into `config.status', and then the shell code to quote escape them in
2068
 
# for loops in `config.status'.  Finally, any additional code accumulated
2069
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2070
 
m4_defun([_LT_CONFIG_COMMANDS],
2071
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
2072
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
2073
 
        dnl instead of duplicating it all over again into config.status,
2074
 
        dnl then we will have config.status run $CONFIG_LT later, so it
2075
 
        dnl needs to know what name is stored there:
2076
 
        [AC_CONFIG_COMMANDS([libtool],
2077
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2078
 
    dnl If the libtool generation code is destined for config.status,
2079
 
    dnl expand the accumulated commands and init code now:
2080
 
    [AC_CONFIG_COMMANDS([libtool],
2081
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2082
 
])#_LT_CONFIG_COMMANDS
2083
 
 
2084
 
 
2085
 
# Initialize.
2086
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2087
 
[
2088
 
 
2089
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2090
 
# if CDPATH is set.
2091
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2092
 
 
2093
 
sed_quote_subst='$sed_quote_subst'
2094
 
double_quote_subst='$double_quote_subst'
2095
 
delay_variable_subst='$delay_variable_subst'
2096
 
_LT_CONFIG_STATUS_DECLARATIONS
2097
 
LTCC='$LTCC'
2098
 
LTCFLAGS='$LTCFLAGS'
2099
 
compiler='$compiler_DEFAULT'
2100
 
 
2101
 
# A function that is used when there is no print builtin or printf.
2102
 
func_fallback_echo ()
2103
 
{
2104
 
  eval 'cat <<_LTECHO_EOF
2105
 
\$[]1
2106
 
_LTECHO_EOF'
2107
 
}
2108
 
 
2109
 
# Quote evaled strings.
2110
 
for var in lt_decl_all_varnames([[ \
2111
 
]], lt_decl_quote_varnames); do
2112
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2113
 
    *[[\\\\\\\`\\"\\\$]]*)
2114
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2115
 
      ;;
2116
 
    *)
2117
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2118
 
      ;;
2119
 
    esac
2120
 
done
2121
 
 
2122
 
# Double-quote double-evaled strings.
2123
 
for var in lt_decl_all_varnames([[ \
2124
 
]], lt_decl_dquote_varnames); do
2125
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2126
 
    *[[\\\\\\\`\\"\\\$]]*)
2127
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2128
 
      ;;
2129
 
    *)
2130
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2131
 
      ;;
2132
 
    esac
2133
 
done
2134
 
 
2135
 
_LT_OUTPUT_LIBTOOL_INIT
2136
 
])
2137
 
 
2138
 
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2139
 
# ------------------------------------
2140
 
# Generate a child script FILE with all initialization necessary to
2141
 
# reuse the environment learned by the parent script, and make the
2142
 
# file executable.  If COMMENT is supplied, it is inserted after the
2143
 
# `#!' sequence but before initialization text begins.  After this
2144
 
# macro, additional text can be appended to FILE to form the body of
2145
 
# the child script.  The macro ends with non-zero status if the
2146
 
# file could not be fully written (such as if the disk is full).
2147
 
m4_ifdef([AS_INIT_GENERATED],
2148
 
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2149
 
[m4_defun([_LT_GENERATED_FILE_INIT],
2150
 
[m4_require([AS_PREPARE])]dnl
2151
 
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2152
 
[lt_write_fail=0
2153
 
cat >$1 <<_ASEOF || lt_write_fail=1
2154
 
#! $SHELL
2155
 
# Generated by $as_me.
2156
 
$2
2157
 
SHELL=\${CONFIG_SHELL-$SHELL}
2158
 
export SHELL
2159
 
_ASEOF
2160
 
cat >>$1 <<\_ASEOF || lt_write_fail=1
2161
 
AS_SHELL_SANITIZE
2162
 
_AS_PREPARE
2163
 
exec AS_MESSAGE_FD>&1
2164
 
_ASEOF
2165
 
test $lt_write_fail = 0 && chmod +x $1[]dnl
2166
 
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2167
 
 
2168
 
# LT_OUTPUT
2169
 
# ---------
2170
 
# This macro allows early generation of the libtool script (before
2171
 
# AC_OUTPUT is called), incase it is used in configure for compilation
2172
 
# tests.
2173
 
AC_DEFUN([LT_OUTPUT],
2174
 
[: ${CONFIG_LT=./config.lt}
2175
 
AC_MSG_NOTICE([creating $CONFIG_LT])
2176
 
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
2177
 
[# Run this file to recreate a libtool stub with the current configuration.])
2178
 
 
2179
 
cat >>"$CONFIG_LT" <<\_LTEOF
2180
 
lt_cl_silent=false
2181
 
exec AS_MESSAGE_LOG_FD>>config.log
2182
 
{
2183
 
  echo
2184
 
  AS_BOX([Running $as_me.])
2185
 
} >&AS_MESSAGE_LOG_FD
2186
 
 
2187
 
lt_cl_help="\
2188
 
\`$as_me' creates a local libtool stub from the current configuration,
2189
 
for use in further configure time tests before the real libtool is
2190
 
generated.
2191
 
 
2192
 
Usage: $[0] [[OPTIONS]]
2193
 
 
2194
 
  -h, --help      print this help, then exit
2195
 
  -V, --version   print version number, then exit
2196
 
  -q, --quiet     do not print progress messages
2197
 
  -d, --debug     don't remove temporary files
2198
 
 
2199
 
Report bugs to <bug-libtool@gnu.org>."
2200
 
 
2201
 
lt_cl_version="\
2202
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2203
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2204
 
configured by $[0], generated by m4_PACKAGE_STRING.
2205
 
 
2206
 
Copyright (C) 2010 Free Software Foundation, Inc.
2207
 
This config.lt script is free software; the Free Software Foundation
2208
 
gives unlimited permision to copy, distribute and modify it."
2209
 
 
2210
 
while test $[#] != 0
2211
 
do
2212
 
  case $[1] in
2213
 
    --version | --v* | -V )
2214
 
      echo "$lt_cl_version"; exit 0 ;;
2215
 
    --help | --h* | -h )
2216
 
      echo "$lt_cl_help"; exit 0 ;;
2217
 
    --debug | --d* | -d )
2218
 
      debug=: ;;
2219
 
    --quiet | --q* | --silent | --s* | -q )
2220
 
      lt_cl_silent=: ;;
2221
 
 
2222
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
2223
 
Try \`$[0] --help' for more information.]) ;;
2224
 
 
2225
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
2226
 
Try \`$[0] --help' for more information.]) ;;
2227
 
  esac
2228
 
  shift
2229
 
done
2230
 
 
2231
 
if $lt_cl_silent; then
2232
 
  exec AS_MESSAGE_FD>/dev/null
2233
 
fi
2234
 
_LTEOF
2235
 
 
2236
 
cat >>"$CONFIG_LT" <<_LTEOF
2237
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2238
 
_LTEOF
2239
 
 
2240
 
cat >>"$CONFIG_LT" <<\_LTEOF
2241
 
AC_MSG_NOTICE([creating $ofile])
2242
 
_LT_OUTPUT_LIBTOOL_COMMANDS
2243
 
AS_EXIT(0)
2244
 
_LTEOF
2245
 
chmod +x "$CONFIG_LT"
2246
 
 
2247
 
# configure is writing to config.log, but config.lt does its own redirection,
2248
 
# appending to config.log, which fails on DOS, as config.log is still kept
2249
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
2250
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
2251
 
lt_cl_success=:
2252
 
test "$silent" = yes &&
2253
 
  lt_config_lt_args="$lt_config_lt_args --quiet"
2254
 
exec AS_MESSAGE_LOG_FD>/dev/null
2255
 
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2256
 
exec AS_MESSAGE_LOG_FD>>config.log
2257
 
$lt_cl_success || AS_EXIT(1)
2258
 
])# LT_OUTPUT
2259
 
 
2260
 
 
2261
 
# _LT_CONFIG(TAG)
2262
 
# ---------------
2263
 
# If TAG is the built-in tag, create an initial libtool script with a
2264
 
# default configuration from the untagged config vars.  Otherwise add code
2265
 
# to config.status for appending the configuration named by TAG from the
2266
 
# matching tagged config vars.
2267
 
m4_defun([_LT_CONFIG],
2268
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2269
 
_LT_CONFIG_SAVE_COMMANDS([
2270
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2271
 
  m4_if(_LT_TAG, [C], [
2272
 
    # See if we are running on zsh, and set the options which allow our
2273
 
    # commands through without removal of \ escapes.
2274
 
    if test -n "${ZSH_VERSION+set}" ; then
2275
 
      setopt NO_GLOB_SUBST
2276
 
    fi
2277
 
 
2278
 
    cfgfile="${ofile}T"
2279
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2280
 
    $RM "$cfgfile"
2281
 
 
2282
 
    cat <<_LT_EOF >> "$cfgfile"
2283
 
#! $SHELL
2284
 
 
2285
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2286
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2287
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2288
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2289
 
#
2290
 
_LT_COPYING
2291
 
_LT_LIBTOOL_TAGS
2292
 
 
2293
 
# ### BEGIN LIBTOOL CONFIG
2294
 
_LT_LIBTOOL_CONFIG_VARS
2295
 
_LT_LIBTOOL_TAG_VARS
2296
 
# ### END LIBTOOL CONFIG
2297
 
 
2298
 
_LT_EOF
2299
 
 
2300
 
  case $host_os in
2301
 
  aix3*)
2302
 
    cat <<\_LT_EOF >> "$cfgfile"
2303
 
# AIX sometimes has problems with the GCC collect2 program.  For some
2304
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
2305
 
# vanish in a puff of smoke.
2306
 
if test "X${COLLECT_NAMES+set}" != Xset; then
2307
 
  COLLECT_NAMES=
2308
 
  export COLLECT_NAMES
2309
 
fi
2310
 
_LT_EOF
2311
 
    ;;
2312
 
  esac
2313
 
 
2314
 
  _LT_PROG_LTMAIN
2315
 
 
2316
 
  # We use sed instead of cat because bash on DJGPP gets confused if
2317
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
2318
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
2319
 
  # is reportedly fixed, but why not run on old versions too?
2320
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
2321
 
    || (rm -f "$cfgfile"; exit 1)
2322
 
 
2323
 
  _LT_PROG_XSI_SHELLFNS
2324
 
 
2325
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2326
 
    || (rm -f "$cfgfile"; exit 1)
2327
 
 
2328
 
  mv -f "$cfgfile" "$ofile" ||
2329
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2330
 
  chmod +x "$ofile"
2331
 
],
2332
 
[cat <<_LT_EOF >> "$ofile"
2333
 
 
2334
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2335
 
dnl in a comment (ie after a #).
2336
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
2337
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
2338
 
# ### END LIBTOOL TAG CONFIG: $1
2339
 
_LT_EOF
2340
 
])dnl /m4_if
2341
 
],
2342
 
[m4_if([$1], [], [
2343
 
    PACKAGE='$PACKAGE'
2344
 
    VERSION='$VERSION'
2345
 
    TIMESTAMP='$TIMESTAMP'
2346
 
    RM='$RM'
2347
 
    ofile='$ofile'], [])
2348
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
2349
 
])# _LT_CONFIG
2350
 
 
2351
 
 
2352
 
# LT_SUPPORTED_TAG(TAG)
2353
 
# ---------------------
2354
 
# Trace this macro to discover what tags are supported by the libtool
2355
 
# --tag option, using:
2356
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
2357
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
2358
 
 
2359
 
 
2360
 
# C support is built-in for now
2361
 
m4_define([_LT_LANG_C_enabled], [])
2362
 
m4_define([_LT_TAGS], [])
2363
 
 
2364
 
 
2365
 
# LT_LANG(LANG)
2366
 
# -------------
2367
 
# Enable libtool support for the given language if not already enabled.
2368
 
AC_DEFUN([LT_LANG],
2369
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
2370
 
m4_case([$1],
2371
 
  [C],                  [_LT_LANG(C)],
2372
 
  [C++],                [_LT_LANG(CXX)],
2373
 
  [Java],               [_LT_LANG(GCJ)],
2374
 
  [Fortran 77],         [_LT_LANG(F77)],
2375
 
  [Fortran],            [_LT_LANG(FC)],
2376
 
  [Windows Resource],   [_LT_LANG(RC)],
2377
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
2378
 
    [_LT_LANG($1)],
2379
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
2380
 
])# LT_LANG
2381
 
 
2382
 
 
2383
 
# _LT_LANG(LANGNAME)
2384
 
# ------------------
2385
 
m4_defun([_LT_LANG],
2386
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
2387
 
  [LT_SUPPORTED_TAG([$1])dnl
2388
 
  m4_append([_LT_TAGS], [$1 ])dnl
2389
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
2390
 
  _LT_LANG_$1_CONFIG($1)])dnl
2391
 
])# _LT_LANG
2392
 
 
2393
 
 
2394
 
# _LT_LANG_DEFAULT_CONFIG
2395
 
# -----------------------
2396
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2397
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
2398
 
  [LT_LANG(CXX)],
2399
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2400
 
 
2401
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
2402
 
  [LT_LANG(F77)],
2403
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2404
 
 
2405
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
2406
 
  [LT_LANG(FC)],
2407
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2408
 
 
2409
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2410
 
dnl pulling things in needlessly.
2411
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2412
 
  [LT_LANG(GCJ)],
2413
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2414
 
    [LT_LANG(GCJ)],
2415
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2416
 
      [LT_LANG(GCJ)],
2417
 
      [m4_ifdef([AC_PROG_GCJ],
2418
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2419
 
       m4_ifdef([A][M_PROG_GCJ],
2420
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2421
 
       m4_ifdef([LT_PROG_GCJ],
2422
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2423
 
 
2424
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
2425
 
  [LT_LANG(RC)],
2426
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2427
 
])# _LT_LANG_DEFAULT_CONFIG
2428
 
 
2429
 
# Obsolete macros:
2430
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2431
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2432
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2433
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2434
 
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2435
 
dnl aclocal-1.4 backwards compatibility:
2436
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2437
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2438
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2439
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2440
 
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2441
 
 
2442
 
 
2443
 
# _LT_TAG_COMPILER
2444
 
# ----------------
2445
 
m4_defun([_LT_TAG_COMPILER],
2446
 
[AC_REQUIRE([AC_PROG_CC])dnl
2447
 
 
2448
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2449
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2450
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2451
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2452
 
 
2453
 
# If no C compiler was specified, use CC.
2454
 
LTCC=${LTCC-"$CC"}
2455
 
 
2456
 
# If no C compiler flags were specified, use CFLAGS.
2457
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2458
 
 
2459
 
# Allow CC to be a program name with arguments.
2460
 
compiler=$CC
2461
 
])# _LT_TAG_COMPILER
2462
 
 
2463
 
 
2464
 
# _LT_COMPILER_BOILERPLATE
2465
 
# ------------------------
2466
 
# Check for compiler boilerplate output or warnings with
2467
 
# the simple compiler test code.
2468
 
m4_defun([_LT_COMPILER_BOILERPLATE],
2469
 
[m4_require([_LT_DECL_SED])dnl
2470
 
ac_outfile=conftest.$ac_objext
2471
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2472
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2473
 
_lt_compiler_boilerplate=`cat conftest.err`
2474
 
$RM conftest*
2475
 
])# _LT_COMPILER_BOILERPLATE
2476
 
 
2477
 
 
2478
 
# _LT_LINKER_BOILERPLATE
2479
 
# ----------------------
2480
 
# Check for linker boilerplate output or warnings with
2481
 
# the simple link test code.
2482
 
m4_defun([_LT_LINKER_BOILERPLATE],
2483
 
[m4_require([_LT_DECL_SED])dnl
2484
 
ac_outfile=conftest.$ac_objext
2485
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2486
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2487
 
_lt_linker_boilerplate=`cat conftest.err`
2488
 
$RM -r conftest*
2489
 
])# _LT_LINKER_BOILERPLATE
2490
 
 
2491
 
# _LT_REQUIRED_DARWIN_CHECKS
2492
 
# -------------------------
2493
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2494
 
  case $host_os in
2495
 
    rhapsody* | darwin*)
2496
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2497
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2498
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
2499
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
2500
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
2501
 
    _LT_DECL([], [DSYMUTIL], [1],
2502
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
2503
 
    _LT_DECL([], [NMEDIT], [1],
2504
 
      [Tool to change global to local symbols on Mac OS X])
2505
 
    _LT_DECL([], [LIPO], [1],
2506
 
      [Tool to manipulate fat objects and archives on Mac OS X])
2507
 
    _LT_DECL([], [OTOOL], [1],
2508
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
2509
 
    _LT_DECL([], [OTOOL64], [1],
2510
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2511
 
 
2512
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2513
 
      [lt_cv_apple_cc_single_mod=no
2514
 
      if test -z "${LT_MULTI_MODULE}"; then
2515
 
        # By default we will add the -single_module flag. You can override
2516
 
        # by either setting the environment variable LT_MULTI_MODULE
2517
 
        # non-empty at configure time, or by adding -multi_module to the
2518
 
        # link flags.
2519
 
        rm -rf libconftest.dylib*
2520
 
        echo "int foo(void){return 1;}" > conftest.c
2521
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2522
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
2523
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2524
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2525
 
        _lt_result=$?
2526
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
2527
 
          lt_cv_apple_cc_single_mod=yes
2528
 
        else
2529
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
2530
 
        fi
2531
 
        rm -rf libconftest.dylib*
2532
 
        rm -f conftest.*
2533
 
      fi])
2534
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2535
 
      [lt_cv_ld_exported_symbols_list],
2536
 
      [lt_cv_ld_exported_symbols_list=no
2537
 
      save_LDFLAGS=$LDFLAGS
2538
 
      echo "_main" > conftest.sym
2539
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2540
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2541
 
        [lt_cv_ld_exported_symbols_list=yes],
2542
 
        [lt_cv_ld_exported_symbols_list=no])
2543
 
        LDFLAGS="$save_LDFLAGS"
2544
 
    ])
2545
 
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2546
 
      [lt_cv_ld_force_load=no
2547
 
      cat > conftest.c << _LT_EOF
2548
 
int forced_loaded() { return 2;}
2549
 
_LT_EOF
2550
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2551
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2552
 
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2553
 
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2554
 
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2555
 
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2556
 
      cat > conftest.c << _LT_EOF
2557
 
int main() { return 0;}
2558
 
_LT_EOF
2559
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2560
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2561
 
      _lt_result=$?
2562
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
2563
 
        lt_cv_ld_force_load=yes
2564
 
      else
2565
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2566
 
      fi
2567
 
        rm -f conftest.err libconftest.a conftest conftest.c
2568
 
        rm -rf conftest.dSYM
2569
 
    ])
2570
 
    case $host_os in
2571
 
    rhapsody* | darwin1.[[012]])
2572
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2573
 
    darwin1.*)
2574
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2575
 
    darwin*) # darwin 5.x on
2576
 
      # if running on 10.5 or later, the deployment target defaults
2577
 
      # to the OS version, if on x86, and 10.4, the deployment
2578
 
      # target defaults to 10.4. Don't you love it?
2579
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2580
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2581
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2582
 
        10.[[012]]*)
2583
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2584
 
        10.*)
2585
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2586
 
      esac
2587
 
    ;;
2588
 
  esac
2589
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2590
 
      _lt_dar_single_mod='$single_module'
2591
 
    fi
2592
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2593
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2594
 
    else
2595
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2596
 
    fi
2597
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2598
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2599
 
    else
2600
 
      _lt_dsymutil=
2601
 
    fi
2602
 
    ;;
2603
 
  esac
2604
 
])
2605
 
 
2606
 
 
2607
 
# _LT_DARWIN_LINKER_FEATURES
2608
 
# --------------------------
2609
 
# Checks for linker and compiler features on darwin
2610
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2611
 
[
2612
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2613
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2614
 
  _LT_TAGVAR(hardcode_direct, $1)=no
2615
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2616
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2617
 
  if test "$lt_cv_ld_force_load" = "yes"; then
2618
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2619
 
  else
2620
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2621
 
  fi
2622
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2623
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2624
 
  case $cc_basename in
2625
 
     ifort*) _lt_dar_can_shared=yes ;;
2626
 
     *) _lt_dar_can_shared=$GCC ;;
2627
 
  esac
2628
 
  if test "$_lt_dar_can_shared" = "yes"; then
2629
 
    output_verbose_link_cmd=func_echo_all
2630
 
    _LT_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}"
2631
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2632
 
    _LT_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}"
2633
 
    _LT_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}"
2634
 
    m4_if([$1], [CXX],
2635
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2636
 
      _LT_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}"
2637
 
      _LT_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}"
2638
 
    fi
2639
 
],[])
2640
 
  else
2641
 
  _LT_TAGVAR(ld_shlibs, $1)=no
2642
 
  fi
2643
 
])
2644
 
 
2645
 
# _LT_SYS_MODULE_PATH_AIX
2646
 
# -----------------------
2647
 
# Links a minimal program and checks the executable
2648
 
# for the system default hardcoded library path. In most cases,
2649
 
# this is /usr/lib:/lib, but when the MPI compilers are used
2650
 
# the location of the communication and MPI libs are included too.
2651
 
# If we don't find anything, use the default library path according
2652
 
# to the aix ld manual.
2653
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2654
 
[m4_require([_LT_DECL_SED])dnl
2655
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2656
 
lt_aix_libpath_sed='
2657
 
    /Import File Strings/,/^$/ {
2658
 
        /^0/ {
2659
 
            s/^0  *\(.*\)$/\1/
2660
 
            p
2661
 
        }
2662
 
    }'
2663
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2664
 
# Check for a 64-bit object if we didn't find anything.
2665
 
if test -z "$aix_libpath"; then
2666
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2667
 
fi],[])
2668
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2669
 
])# _LT_SYS_MODULE_PATH_AIX
2670
 
 
2671
 
 
2672
 
# _LT_SHELL_INIT(ARG)
2673
 
# -------------------
2674
 
m4_define([_LT_SHELL_INIT],
2675
 
[m4_divert_text([M4SH-INIT], [$1
2676
 
])])# _LT_SHELL_INIT
2677
 
 
2678
 
 
2679
 
 
2680
 
# _LT_PROG_ECHO_BACKSLASH
2681
 
# -----------------------
2682
 
# Find how we can fake an echo command that does not interpret backslash.
2683
 
# In particular, with Autoconf 2.60 or later we add some code to the start
2684
 
# of the generated configure script which will find a shell with a builtin
2685
 
# printf (which we can use as an echo command).
2686
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2687
 
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2688
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2689
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2690
 
 
2691
 
AC_MSG_CHECKING([how to print strings])
2692
 
# Test print first, because it will be a builtin if present.
2693
 
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2694
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2695
 
  ECHO='print -r --'
2696
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2697
 
  ECHO='printf %s\n'
2698
 
else
2699
 
  # Use this function as a fallback that always works.
2700
 
  func_fallback_echo ()
2701
 
  {
2702
 
    eval 'cat <<_LTECHO_EOF
2703
 
$[]1
2704
 
_LTECHO_EOF'
2705
 
  }
2706
 
  ECHO='func_fallback_echo'
2707
 
fi
2708
 
 
2709
 
# func_echo_all arg...
2710
 
# Invoke $ECHO with all args, space-separated.
2711
 
func_echo_all ()
2712
 
{
2713
 
    $ECHO "$*" 
2714
 
}
2715
 
 
2716
 
case "$ECHO" in
2717
 
  printf*) AC_MSG_RESULT([printf]) ;;
2718
 
  print*) AC_MSG_RESULT([print -r]) ;;
2719
 
  *) AC_MSG_RESULT([cat]) ;;
2720
 
esac
2721
 
 
2722
 
m4_ifdef([_AS_DETECT_SUGGESTED],
2723
 
[_AS_DETECT_SUGGESTED([
2724
 
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2725
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2726
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2727
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2728
 
    PATH=/empty FPATH=/empty; export PATH FPATH
2729
 
    test "X`printf %s $ECHO`" = "X$ECHO" \
2730
 
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2731
 
 
2732
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2733
 
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2734
 
])# _LT_PROG_ECHO_BACKSLASH
2735
 
 
2736
 
 
2737
 
# _LT_ENABLE_LOCK
2738
 
# ---------------
2739
 
m4_defun([_LT_ENABLE_LOCK],
2740
 
[AC_ARG_ENABLE([libtool-lock],
2741
 
  [AS_HELP_STRING([--disable-libtool-lock],
2742
 
    [avoid locking (might break parallel builds)])])
2743
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2744
 
 
2745
 
# Some flags need to be propagated to the compiler or linker for good
2746
 
# libtool support.
2747
 
case $host in
2748
 
ia64-*-hpux*)
2749
 
  # Find out which ABI we are using.
2750
 
  echo 'int i;' > conftest.$ac_ext
2751
 
  if AC_TRY_EVAL(ac_compile); then
2752
 
    case `/usr/bin/file conftest.$ac_objext` in
2753
 
      *ELF-32*)
2754
 
        HPUX_IA64_MODE="32"
2755
 
        ;;
2756
 
      *ELF-64*)
2757
 
        HPUX_IA64_MODE="64"
2758
 
        ;;
2759
 
    esac
2760
 
  fi
2761
 
  rm -rf conftest*
2762
 
  ;;
2763
 
*-*-irix6*)
2764
 
  # Find out which ABI we are using.
2765
 
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2766
 
  if AC_TRY_EVAL(ac_compile); then
2767
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
2768
 
      case `/usr/bin/file conftest.$ac_objext` in
2769
 
        *32-bit*)
2770
 
          LD="${LD-ld} -melf32bsmip"
2771
 
          ;;
2772
 
        *N32*)
2773
 
          LD="${LD-ld} -melf32bmipn32"
2774
 
          ;;
2775
 
        *64-bit*)
2776
 
          LD="${LD-ld} -melf64bmip"
2777
 
        ;;
2778
 
      esac
2779
 
    else
2780
 
      case `/usr/bin/file conftest.$ac_objext` in
2781
 
        *32-bit*)
2782
 
          LD="${LD-ld} -32"
2783
 
          ;;
2784
 
        *N32*)
2785
 
          LD="${LD-ld} -n32"
2786
 
          ;;
2787
 
        *64-bit*)
2788
 
          LD="${LD-ld} -64"
2789
 
          ;;
2790
 
      esac
2791
 
    fi
2792
 
  fi
2793
 
  rm -rf conftest*
2794
 
  ;;
2795
 
 
2796
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2797
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2798
 
  # Find out which ABI we are using.
2799
 
  echo 'int i;' > conftest.$ac_ext
2800
 
  if AC_TRY_EVAL(ac_compile); then
2801
 
    case `/usr/bin/file conftest.o` in
2802
 
      *32-bit*)
2803
 
        case $host in
2804
 
          x86_64-*kfreebsd*-gnu)
2805
 
            LD="${LD-ld} -m elf_i386_fbsd"
2806
 
            ;;
2807
 
          x86_64-*linux*)
2808
 
            LD="${LD-ld} -m elf_i386"
2809
 
            ;;
2810
 
          ppc64-*linux*|powerpc64-*linux*)
2811
 
            LD="${LD-ld} -m elf32ppclinux"
2812
 
            ;;
2813
 
          s390x-*linux*)
2814
 
            LD="${LD-ld} -m elf_s390"
2815
 
            ;;
2816
 
          sparc64-*linux*)
2817
 
            LD="${LD-ld} -m elf32_sparc"
2818
 
            ;;
2819
 
        esac
2820
 
        ;;
2821
 
      *64-bit*)
2822
 
        case $host in
2823
 
          x86_64-*kfreebsd*-gnu)
2824
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
2825
 
            ;;
2826
 
          x86_64-*linux*)
2827
 
            LD="${LD-ld} -m elf_x86_64"
2828
 
            ;;
2829
 
          ppc*-*linux*|powerpc*-*linux*)
2830
 
            LD="${LD-ld} -m elf64ppc"
2831
 
            ;;
2832
 
          s390*-*linux*|s390*-*tpf*)
2833
 
            LD="${LD-ld} -m elf64_s390"
2834
 
            ;;
2835
 
          sparc*-*linux*)
2836
 
            LD="${LD-ld} -m elf64_sparc"
2837
 
            ;;
2838
 
        esac
2839
 
        ;;
2840
 
    esac
2841
 
  fi
2842
 
  rm -rf conftest*
2843
 
  ;;
2844
 
 
2845
 
*-*-sco3.2v5*)
2846
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2847
 
  SAVE_CFLAGS="$CFLAGS"
2848
 
  CFLAGS="$CFLAGS -belf"
2849
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2850
 
    [AC_LANG_PUSH(C)
2851
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2852
 
     AC_LANG_POP])
2853
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2854
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2855
 
    CFLAGS="$SAVE_CFLAGS"
2856
 
  fi
2857
 
  ;;
2858
 
sparc*-*solaris*)
2859
 
  # Find out which ABI we are using.
2860
 
  echo 'int i;' > conftest.$ac_ext
2861
 
  if AC_TRY_EVAL(ac_compile); then
2862
 
    case `/usr/bin/file conftest.o` in
2863
 
    *64-bit*)
2864
 
      case $lt_cv_prog_gnu_ld in
2865
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2866
 
      *)
2867
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2868
 
          LD="${LD-ld} -64"
2869
 
        fi
2870
 
        ;;
2871
 
      esac
2872
 
      ;;
2873
 
    esac
2874
 
  fi
2875
 
  rm -rf conftest*
2876
 
  ;;
2877
 
esac
2878
 
 
2879
 
need_locks="$enable_libtool_lock"
2880
 
])# _LT_ENABLE_LOCK
2881
 
 
2882
 
 
2883
 
# _LT_CMD_OLD_ARCHIVE
2884
 
# -------------------
2885
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
2886
 
[AC_CHECK_TOOL(AR, ar, false)
2887
 
test -z "$AR" && AR=ar
2888
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2889
 
_LT_DECL([], [AR], [1], [The archiver])
2890
 
_LT_DECL([], [AR_FLAGS], [1])
2891
 
 
2892
 
AC_CHECK_TOOL(STRIP, strip, :)
2893
 
test -z "$STRIP" && STRIP=:
2894
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2895
 
 
2896
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2897
 
test -z "$RANLIB" && RANLIB=:
2898
 
_LT_DECL([], [RANLIB], [1],
2899
 
    [Commands used to install an old-style archive])
2900
 
 
2901
 
# Determine commands to create old-style static archives.
2902
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2903
 
old_postinstall_cmds='chmod 644 $oldlib'
2904
 
old_postuninstall_cmds=
2905
 
 
2906
 
if test -n "$RANLIB"; then
2907
 
  case $host_os in
2908
 
  openbsd*)
2909
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2910
 
    ;;
2911
 
  *)
2912
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2913
 
    ;;
2914
 
  esac
2915
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2916
 
fi
2917
 
 
2918
 
case $host_os in
2919
 
  darwin*)
2920
 
    lock_old_archive_extraction=yes ;;
2921
 
  *)
2922
 
    lock_old_archive_extraction=no ;;
2923
 
esac
2924
 
_LT_DECL([], [old_postinstall_cmds], [2])
2925
 
_LT_DECL([], [old_postuninstall_cmds], [2])
2926
 
_LT_TAGDECL([], [old_archive_cmds], [2],
2927
 
    [Commands used to build an old-style archive])
2928
 
_LT_DECL([], [lock_old_archive_extraction], [0],
2929
 
    [Whether to use a lock for old archive extraction])
2930
 
])# _LT_CMD_OLD_ARCHIVE
2931
 
 
2932
 
 
2933
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2934
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2935
 
# ----------------------------------------------------------------
2936
 
# Check whether the given compiler option works
2937
 
AC_DEFUN([_LT_COMPILER_OPTION],
2938
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2939
 
m4_require([_LT_DECL_SED])dnl
2940
 
AC_CACHE_CHECK([$1], [$2],
2941
 
  [$2=no
2942
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2943
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2944
 
   lt_compiler_flag="$3"
2945
 
   # Insert the option either (1) after the last *FLAGS variable, or
2946
 
   # (2) before a word containing "conftest.", or (3) at the end.
2947
 
   # Note that $ac_compile itself does not contain backslashes and begins
2948
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2949
 
   # The option is referenced via a variable to avoid confusing sed.
2950
 
   lt_compile=`echo "$ac_compile" | $SED \
2951
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2952
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2953
 
   -e 's:$: $lt_compiler_flag:'`
2954
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2955
 
   (eval "$lt_compile" 2>conftest.err)
2956
 
   ac_status=$?
2957
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
2958
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2959
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
2960
 
     # The compiler can only warn and ignore the option if not recognized
2961
 
     # So say no if there are warnings other than the usual output.
2962
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2963
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2964
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2965
 
       $2=yes
2966
 
     fi
2967
 
   fi
2968
 
   $RM conftest*
2969
 
])
2970
 
 
2971
 
if test x"[$]$2" = xyes; then
2972
 
    m4_if([$5], , :, [$5])
2973
 
else
2974
 
    m4_if([$6], , :, [$6])
2975
 
fi
2976
 
])# _LT_COMPILER_OPTION
2977
 
 
2978
 
# Old name:
2979
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2980
 
dnl aclocal-1.4 backwards compatibility:
2981
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2982
 
 
2983
 
 
2984
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2985
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2986
 
# ----------------------------------------------------
2987
 
# Check whether the given linker option works
2988
 
AC_DEFUN([_LT_LINKER_OPTION],
2989
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2990
 
m4_require([_LT_DECL_SED])dnl
2991
 
AC_CACHE_CHECK([$1], [$2],
2992
 
  [$2=no
2993
 
   save_LDFLAGS="$LDFLAGS"
2994
 
   LDFLAGS="$LDFLAGS $3"
2995
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2996
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2997
 
     # The linker can only warn and ignore the option if not recognized
2998
 
     # So say no if there are warnings
2999
 
     if test -s conftest.err; then
3000
 
       # Append any errors to the config.log.
3001
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
3002
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
3003
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3004
 
       if diff conftest.exp conftest.er2 >/dev/null; then
3005
 
         $2=yes
3006
 
       fi
3007
 
     else
3008
 
       $2=yes
3009
 
     fi
3010
 
   fi
3011
 
   $RM -r conftest*
3012
 
   LDFLAGS="$save_LDFLAGS"
3013
 
])
3014
 
 
3015
 
if test x"[$]$2" = xyes; then
3016
 
    m4_if([$4], , :, [$4])
3017
 
else
3018
 
    m4_if([$5], , :, [$5])
3019
 
fi
3020
 
])# _LT_LINKER_OPTION
3021
 
 
3022
 
# Old name:
3023
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3024
 
dnl aclocal-1.4 backwards compatibility:
3025
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3026
 
 
3027
 
 
3028
 
# LT_CMD_MAX_LEN
3029
 
#---------------
3030
 
AC_DEFUN([LT_CMD_MAX_LEN],
3031
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3032
 
# find the maximum length of command line arguments
3033
 
AC_MSG_CHECKING([the maximum length of command line arguments])
3034
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3035
 
  i=0
3036
 
  teststring="ABCD"
3037
 
 
3038
 
  case $build_os in
3039
 
  msdosdjgpp*)
3040
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3041
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3042
 
    # during glob expansion).  Even if it were fixed, the result of this
3043
 
    # check would be larger than it should be.
3044
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3045
 
    ;;
3046
 
 
3047
 
  gnu*)
3048
 
    # Under GNU Hurd, this test is not required because there is
3049
 
    # no limit to the length of command line arguments.
3050
 
    # Libtool will interpret -1 as no limit whatsoever
3051
 
    lt_cv_sys_max_cmd_len=-1;
3052
 
    ;;
3053
 
 
3054
 
  cygwin* | mingw* | cegcc*)
3055
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3056
 
    # about 5 minutes as the teststring grows exponentially.
3057
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
3058
 
    # you end up with a "frozen" computer, even though with patience
3059
 
    # the test eventually succeeds (with a max line length of 256k).
3060
 
    # Instead, let's just punt: use the minimum linelength reported by
3061
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
3062
 
    lt_cv_sys_max_cmd_len=8192;
3063
 
    ;;
3064
 
 
3065
 
  mint*)
3066
 
    # On MiNT this can take a long time and run out of memory.
3067
 
    lt_cv_sys_max_cmd_len=8192;
3068
 
    ;;
3069
 
 
3070
 
  amigaos*)
3071
 
    # On AmigaOS with pdksh, this test takes hours, literally.
3072
 
    # So we just punt and use a minimum line length of 8192.
3073
 
    lt_cv_sys_max_cmd_len=8192;
3074
 
    ;;
3075
 
 
3076
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3077
 
    # This has been around since 386BSD, at least.  Likely further.
3078
 
    if test -x /sbin/sysctl; then
3079
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3080
 
    elif test -x /usr/sbin/sysctl; then
3081
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3082
 
    else
3083
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3084
 
    fi
3085
 
    # And add a safety zone
3086
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3087
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3088
 
    ;;
3089
 
 
3090
 
  interix*)
3091
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3092
 
    lt_cv_sys_max_cmd_len=196608
3093
 
    ;;
3094
 
 
3095
 
  osf*)
3096
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3097
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3098
 
    # nice to cause kernel panics so lets avoid the loop below.
3099
 
    # First set a reasonable default.
3100
 
    lt_cv_sys_max_cmd_len=16384
3101
 
    #
3102
 
    if test -x /sbin/sysconfig; then
3103
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3104
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3105
 
      esac
3106
 
    fi
3107
 
    ;;
3108
 
  sco3.2v5*)
3109
 
    lt_cv_sys_max_cmd_len=102400
3110
 
    ;;
3111
 
  sysv5* | sco5v6* | sysv4.2uw2*)
3112
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3113
 
    if test -n "$kargmax"; then
3114
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
3115
 
    else
3116
 
      lt_cv_sys_max_cmd_len=32768
3117
 
    fi
3118
 
    ;;
3119
 
  *)
3120
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3121
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
3122
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3123
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3124
 
    else
3125
 
      # Make teststring a little bigger before we do anything with it.
3126
 
      # a 1K string should be a reasonable start.
3127
 
      for i in 1 2 3 4 5 6 7 8 ; do
3128
 
        teststring=$teststring$teststring
3129
 
      done
3130
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3131
 
      # If test is not a shell built-in, we'll probably end up computing a
3132
 
      # maximum length that is only half of the actual maximum length, but
3133
 
      # we can't tell.
3134
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3135
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3136
 
              test $i != 17 # 1/2 MB should be enough
3137
 
      do
3138
 
        i=`expr $i + 1`
3139
 
        teststring=$teststring$teststring
3140
 
      done
3141
 
      # Only check the string length outside the loop.
3142
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3143
 
      teststring=
3144
 
      # Add a significant safety factor because C++ compilers can tack on
3145
 
      # massive amounts of additional arguments before passing them to the
3146
 
      # linker.  It appears as though 1/2 is a usable value.
3147
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3148
 
    fi
3149
 
    ;;
3150
 
  esac
3151
 
])
3152
 
if test -n $lt_cv_sys_max_cmd_len ; then
3153
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3154
 
else
3155
 
  AC_MSG_RESULT(none)
3156
 
fi
3157
 
max_cmd_len=$lt_cv_sys_max_cmd_len
3158
 
_LT_DECL([], [max_cmd_len], [0],
3159
 
    [What is the maximum length of a command?])
3160
 
])# LT_CMD_MAX_LEN
3161
 
 
3162
 
# Old name:
3163
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3164
 
dnl aclocal-1.4 backwards compatibility:
3165
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3166
 
 
3167
 
 
3168
 
# _LT_HEADER_DLFCN
3169
 
# ----------------
3170
 
m4_defun([_LT_HEADER_DLFCN],
3171
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3172
 
])# _LT_HEADER_DLFCN
3173
 
 
3174
 
 
3175
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3176
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3177
 
# ----------------------------------------------------------------
3178
 
m4_defun([_LT_TRY_DLOPEN_SELF],
3179
 
[m4_require([_LT_HEADER_DLFCN])dnl
3180
 
if test "$cross_compiling" = yes; then :
3181
 
  [$4]
3182
 
else
3183
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3184
 
  lt_status=$lt_dlunknown
3185
 
  cat > conftest.$ac_ext <<_LT_EOF
3186
 
[#line $LINENO "configure"
3187
 
#include "confdefs.h"
3188
 
 
3189
 
#if HAVE_DLFCN_H
3190
 
#include <dlfcn.h>
3191
 
#endif
3192
 
 
3193
 
#include <stdio.h>
3194
 
 
3195
 
#ifdef RTLD_GLOBAL
3196
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
3197
 
#else
3198
 
#  ifdef DL_GLOBAL
3199
 
#    define LT_DLGLOBAL         DL_GLOBAL
3200
 
#  else
3201
 
#    define LT_DLGLOBAL         0
3202
 
#  endif
3203
 
#endif
3204
 
 
3205
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3206
 
   find out it does not work in some platform. */
3207
 
#ifndef LT_DLLAZY_OR_NOW
3208
 
#  ifdef RTLD_LAZY
3209
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
3210
 
#  else
3211
 
#    ifdef DL_LAZY
3212
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
3213
 
#    else
3214
 
#      ifdef RTLD_NOW
3215
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
3216
 
#      else
3217
 
#        ifdef DL_NOW
3218
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
3219
 
#        else
3220
 
#          define LT_DLLAZY_OR_NOW      0
3221
 
#        endif
3222
 
#      endif
3223
 
#    endif
3224
 
#  endif
3225
 
#endif
3226
 
 
3227
 
/* When -fvisbility=hidden is used, assume the code has been annotated
3228
 
   correspondingly for the symbols needed.  */
3229
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3230
 
void fnord () __attribute__((visibility("default")));
3231
 
#endif
3232
 
 
3233
 
void fnord () { int i=42; }
3234
 
int main ()
3235
 
{
3236
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3237
 
  int status = $lt_dlunknown;
3238
 
 
3239
 
  if (self)
3240
 
    {
3241
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
3242
 
      else
3243
 
        {
3244
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
3245
 
          else puts (dlerror ());
3246
 
        }
3247
 
      /* dlclose (self); */
3248
 
    }
3249
 
  else
3250
 
    puts (dlerror ());
3251
 
 
3252
 
  return status;
3253
 
}]
3254
 
_LT_EOF
3255
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3256
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3257
 
    lt_status=$?
3258
 
    case x$lt_status in
3259
 
      x$lt_dlno_uscore) $1 ;;
3260
 
      x$lt_dlneed_uscore) $2 ;;
3261
 
      x$lt_dlunknown|x*) $3 ;;
3262
 
    esac
3263
 
  else :
3264
 
    # compilation failed
3265
 
    $3
3266
 
  fi
3267
 
fi
3268
 
rm -fr conftest*
3269
 
])# _LT_TRY_DLOPEN_SELF
3270
 
 
3271
 
 
3272
 
# LT_SYS_DLOPEN_SELF
3273
 
# ------------------
3274
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
3275
 
[m4_require([_LT_HEADER_DLFCN])dnl
3276
 
if test "x$enable_dlopen" != xyes; then
3277
 
  enable_dlopen=unknown
3278
 
  enable_dlopen_self=unknown
3279
 
  enable_dlopen_self_static=unknown
3280
 
else
3281
 
  lt_cv_dlopen=no
3282
 
  lt_cv_dlopen_libs=
3283
 
 
3284
 
  case $host_os in
3285
 
  beos*)
3286
 
    lt_cv_dlopen="load_add_on"
3287
 
    lt_cv_dlopen_libs=
3288
 
    lt_cv_dlopen_self=yes
3289
 
    ;;
3290
 
 
3291
 
  mingw* | pw32* | cegcc*)
3292
 
    lt_cv_dlopen="LoadLibrary"
3293
 
    lt_cv_dlopen_libs=
3294
 
    ;;
3295
 
 
3296
 
  cygwin*)
3297
 
    lt_cv_dlopen="dlopen"
3298
 
    lt_cv_dlopen_libs=
3299
 
    ;;
3300
 
 
3301
 
  darwin*)
3302
 
  # if libdl is installed we need to link against it
3303
 
    AC_CHECK_LIB([dl], [dlopen],
3304
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3305
 
    lt_cv_dlopen="dyld"
3306
 
    lt_cv_dlopen_libs=
3307
 
    lt_cv_dlopen_self=yes
3308
 
    ])
3309
 
    ;;
3310
 
 
3311
 
  *)
3312
 
    AC_CHECK_FUNC([shl_load],
3313
 
          [lt_cv_dlopen="shl_load"],
3314
 
      [AC_CHECK_LIB([dld], [shl_load],
3315
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3316
 
        [AC_CHECK_FUNC([dlopen],
3317
 
              [lt_cv_dlopen="dlopen"],
3318
 
          [AC_CHECK_LIB([dl], [dlopen],
3319
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3320
 
            [AC_CHECK_LIB([svld], [dlopen],
3321
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3322
 
              [AC_CHECK_LIB([dld], [dld_link],
3323
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3324
 
              ])
3325
 
            ])
3326
 
          ])
3327
 
        ])
3328
 
      ])
3329
 
    ;;
3330
 
  esac
3331
 
 
3332
 
  if test "x$lt_cv_dlopen" != xno; then
3333
 
    enable_dlopen=yes
3334
 
  else
3335
 
    enable_dlopen=no
3336
 
  fi
3337
 
 
3338
 
  case $lt_cv_dlopen in
3339
 
  dlopen)
3340
 
    save_CPPFLAGS="$CPPFLAGS"
3341
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3342
 
 
3343
 
    save_LDFLAGS="$LDFLAGS"
3344
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3345
 
 
3346
 
    save_LIBS="$LIBS"
3347
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
3348
 
 
3349
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
3350
 
          lt_cv_dlopen_self, [dnl
3351
 
          _LT_TRY_DLOPEN_SELF(
3352
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3353
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3354
 
    ])
3355
 
 
3356
 
    if test "x$lt_cv_dlopen_self" = xyes; then
3357
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3358
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3359
 
          lt_cv_dlopen_self_static, [dnl
3360
 
          _LT_TRY_DLOPEN_SELF(
3361
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3362
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
3363
 
      ])
3364
 
    fi
3365
 
 
3366
 
    CPPFLAGS="$save_CPPFLAGS"
3367
 
    LDFLAGS="$save_LDFLAGS"
3368
 
    LIBS="$save_LIBS"
3369
 
    ;;
3370
 
  esac
3371
 
 
3372
 
  case $lt_cv_dlopen_self in
3373
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3374
 
  *) enable_dlopen_self=unknown ;;
3375
 
  esac
3376
 
 
3377
 
  case $lt_cv_dlopen_self_static in
3378
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3379
 
  *) enable_dlopen_self_static=unknown ;;
3380
 
  esac
3381
 
fi
3382
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
3383
 
         [Whether dlopen is supported])
3384
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3385
 
         [Whether dlopen of programs is supported])
3386
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3387
 
         [Whether dlopen of statically linked programs is supported])
3388
 
])# LT_SYS_DLOPEN_SELF
3389
 
 
3390
 
# Old name:
3391
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3392
 
dnl aclocal-1.4 backwards compatibility:
3393
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3394
 
 
3395
 
 
3396
 
# _LT_COMPILER_C_O([TAGNAME])
3397
 
# ---------------------------
3398
 
# Check to see if options -c and -o are simultaneously supported by compiler.
3399
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3400
 
m4_defun([_LT_COMPILER_C_O],
3401
 
[m4_require([_LT_DECL_SED])dnl
3402
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3403
 
m4_require([_LT_TAG_COMPILER])dnl
3404
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3405
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3406
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3407
 
   $RM -r conftest 2>/dev/null
3408
 
   mkdir conftest
3409
 
   cd conftest
3410
 
   mkdir out
3411
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3412
 
 
3413
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
3414
 
   # Insert the option either (1) after the last *FLAGS variable, or
3415
 
   # (2) before a word containing "conftest.", or (3) at the end.
3416
 
   # Note that $ac_compile itself does not contain backslashes and begins
3417
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
3418
 
   lt_compile=`echo "$ac_compile" | $SED \
3419
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3420
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3421
 
   -e 's:$: $lt_compiler_flag:'`
3422
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3423
 
   (eval "$lt_compile" 2>out/conftest.err)
3424
 
   ac_status=$?
3425
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
3426
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3427
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
3428
 
   then
3429
 
     # The compiler can only warn and ignore the option if not recognized
3430
 
     # So say no if there are warnings
3431
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3432
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3433
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3434
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3435
 
     fi
3436
 
   fi
3437
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
3438
 
   $RM conftest*
3439
 
   # SGI C++ compiler will create directory out/ii_files/ for
3440
 
   # template instantiation
3441
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3442
 
   $RM out/* && rmdir out
3443
 
   cd ..
3444
 
   $RM -r conftest
3445
 
   $RM conftest*
3446
 
])
3447
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3448
 
        [Does compiler simultaneously support -c and -o options?])
3449
 
])# _LT_COMPILER_C_O
3450
 
 
3451
 
 
3452
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3453
 
# ----------------------------------
3454
 
# Check to see if we can do hard links to lock some files if needed
3455
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
3456
 
[m4_require([_LT_ENABLE_LOCK])dnl
3457
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3458
 
_LT_COMPILER_C_O([$1])
3459
 
 
3460
 
hard_links="nottested"
3461
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3462
 
  # do not overwrite the value of need_locks provided by the user
3463
 
  AC_MSG_CHECKING([if we can lock with hard links])
3464
 
  hard_links=yes
3465
 
  $RM conftest*
3466
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3467
 
  touch conftest.a
3468
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
3469
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3470
 
  AC_MSG_RESULT([$hard_links])
3471
 
  if test "$hard_links" = no; then
3472
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3473
 
    need_locks=warn
3474
 
  fi
3475
 
else
3476
 
  need_locks=no
3477
 
fi
3478
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3479
 
])# _LT_COMPILER_FILE_LOCKS
3480
 
 
3481
 
 
3482
 
# _LT_CHECK_OBJDIR
3483
 
# ----------------
3484
 
m4_defun([_LT_CHECK_OBJDIR],
3485
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3486
 
[rm -f .libs 2>/dev/null
3487
 
mkdir .libs 2>/dev/null
3488
 
if test -d .libs; then
3489
 
  lt_cv_objdir=.libs
3490
 
else
3491
 
  # MS-DOS does not allow filenames that begin with a dot.
3492
 
  lt_cv_objdir=_libs
3493
 
fi
3494
 
rmdir .libs 2>/dev/null])
3495
 
objdir=$lt_cv_objdir
3496
 
_LT_DECL([], [objdir], [0],
3497
 
         [The name of the directory that contains temporary libtool files])dnl
3498
 
m4_pattern_allow([LT_OBJDIR])dnl
3499
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3500
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
3501
 
])# _LT_CHECK_OBJDIR
3502
 
 
3503
 
 
3504
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3505
 
# --------------------------------------
3506
 
# Check hardcoding attributes.
3507
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3508
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
3509
 
_LT_TAGVAR(hardcode_action, $1)=
3510
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3511
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3512
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3513
 
 
3514
 
  # We can hardcode non-existent directories.
3515
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3516
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
3517
 
     # have to relink, otherwise we might link with an installed library
3518
 
     # when we should be linking with a yet-to-be-installed one
3519
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3520
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3521
 
    # Linking always hardcodes the temporary library directory.
3522
 
    _LT_TAGVAR(hardcode_action, $1)=relink
3523
 
  else
3524
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
3525
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
3526
 
  fi
3527
 
else
3528
 
  # We cannot hardcode anything, or else we can only hardcode existing
3529
 
  # directories.
3530
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
3531
 
fi
3532
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3533
 
 
3534
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3535
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3536
 
  # Fast installation is not supported
3537
 
  enable_fast_install=no
3538
 
elif test "$shlibpath_overrides_runpath" = yes ||
3539
 
     test "$enable_shared" = no; then
3540
 
  # Fast installation is not necessary
3541
 
  enable_fast_install=needless
3542
 
fi
3543
 
_LT_TAGDECL([], [hardcode_action], [0],
3544
 
    [How to hardcode a shared library path into an executable])
3545
 
])# _LT_LINKER_HARDCODE_LIBPATH
3546
 
 
3547
 
 
3548
 
# _LT_CMD_STRIPLIB
3549
 
# ----------------
3550
 
m4_defun([_LT_CMD_STRIPLIB],
3551
 
[m4_require([_LT_DECL_EGREP])
3552
 
striplib=
3553
 
old_striplib=
3554
 
AC_MSG_CHECKING([whether stripping libraries is possible])
3555
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3556
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3557
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3558
 
  AC_MSG_RESULT([yes])
3559
 
else
3560
 
# FIXME - insert some real tests, host_os isn't really good enough
3561
 
  case $host_os in
3562
 
  darwin*)
3563
 
    if test -n "$STRIP" ; then
3564
 
      striplib="$STRIP -x"
3565
 
      old_striplib="$STRIP -S"
3566
 
      AC_MSG_RESULT([yes])
3567
 
    else
3568
 
      AC_MSG_RESULT([no])
3569
 
    fi
3570
 
    ;;
3571
 
  *)
3572
 
    AC_MSG_RESULT([no])
3573
 
    ;;
3574
 
  esac
3575
 
fi
3576
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3577
 
_LT_DECL([], [striplib], [1])
3578
 
])# _LT_CMD_STRIPLIB
3579
 
 
3580
 
 
3581
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
3582
 
# -----------------------------
3583
 
# PORTME Fill in your ld.so characteristics
3584
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3585
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3586
 
m4_require([_LT_DECL_EGREP])dnl
3587
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3588
 
m4_require([_LT_DECL_OBJDUMP])dnl
3589
 
m4_require([_LT_DECL_SED])dnl
3590
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3591
 
AC_MSG_CHECKING([dynamic linker characteristics])
3592
 
m4_if([$1],
3593
 
        [], [
3594
 
if test "$GCC" = yes; then
3595
 
  case $host_os in
3596
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3597
 
    *) lt_awk_arg="/^libraries:/" ;;
3598
 
  esac
3599
 
  case $host_os in
3600
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3601
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
3602
 
  esac
3603
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3604
 
  case $lt_search_path_spec in
3605
 
  *\;*)
3606
 
    # if the path contains ";" then we assume it to be the separator
3607
 
    # otherwise default to the standard path separator (i.e. ":") - it is
3608
 
    # assumed that no part of a normal pathname contains ";" but that should
3609
 
    # okay in the real world where ";" in dirpaths is itself problematic.
3610
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3611
 
    ;;
3612
 
  *)
3613
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3614
 
    ;;
3615
 
  esac
3616
 
  # Ok, now we have the path, separated by spaces, we can step through it
3617
 
  # and add multilib dir if necessary.
3618
 
  lt_tmp_lt_search_path_spec=
3619
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3620
 
  for lt_sys_path in $lt_search_path_spec; do
3621
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3622
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3623
 
    else
3624
 
      test -d "$lt_sys_path" && \
3625
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3626
 
    fi
3627
 
  done
3628
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3629
 
BEGIN {RS=" "; FS="/|\n";} {
3630
 
  lt_foo="";
3631
 
  lt_count=0;
3632
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
3633
 
    if ($lt_i != "" && $lt_i != ".") {
3634
 
      if ($lt_i == "..") {
3635
 
        lt_count++;
3636
 
      } else {
3637
 
        if (lt_count == 0) {
3638
 
          lt_foo="/" $lt_i lt_foo;
3639
 
        } else {
3640
 
          lt_count--;
3641
 
        }
3642
 
      }
3643
 
    }
3644
 
  }
3645
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3646
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3647
 
}'`
3648
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
3649
 
  # for these hosts.
3650
 
  case $host_os in
3651
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
3652
 
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
3653
 
  esac
3654
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3655
 
else
3656
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3657
 
fi])
3658
 
library_names_spec=
3659
 
libname_spec='lib$name'
3660
 
soname_spec=
3661
 
shrext_cmds=".so"
3662
 
postinstall_cmds=
3663
 
postuninstall_cmds=
3664
 
finish_cmds=
3665
 
finish_eval=
3666
 
shlibpath_var=
3667
 
shlibpath_overrides_runpath=unknown
3668
 
version_type=none
3669
 
dynamic_linker="$host_os ld.so"
3670
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3671
 
need_lib_prefix=unknown
3672
 
hardcode_into_libs=no
3673
 
 
3674
 
# when you set need_version to no, make sure it does not cause -set_version
3675
 
# flags to be left without arguments
3676
 
need_version=unknown
3677
 
 
3678
 
case $host_os in
3679
 
aix3*)
3680
 
  version_type=linux
3681
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3682
 
  shlibpath_var=LIBPATH
3683
 
 
3684
 
  # AIX 3 has no versioning support, so we append a major version to the name.
3685
 
  soname_spec='${libname}${release}${shared_ext}$major'
3686
 
  ;;
3687
 
 
3688
 
aix[[4-9]]*)
3689
 
  version_type=linux
3690
 
  need_lib_prefix=no
3691
 
  need_version=no
3692
 
  hardcode_into_libs=yes
3693
 
  if test "$host_cpu" = ia64; then
3694
 
    # AIX 5 supports IA64
3695
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3696
 
    shlibpath_var=LD_LIBRARY_PATH
3697
 
  else
3698
 
    # With GCC up to 2.95.x, collect2 would create an import file
3699
 
    # for dependence libraries.  The import file would start with
3700
 
    # the line `#! .'.  This would cause the generated library to
3701
 
    # depend on `.', always an invalid library.  This was fixed in
3702
 
    # development snapshots of GCC prior to 3.0.
3703
 
    case $host_os in
3704
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
3705
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3706
 
           echo ' yes '
3707
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3708
 
        :
3709
 
      else
3710
 
        can_build_shared=no
3711
 
      fi
3712
 
      ;;
3713
 
    esac
3714
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3715
 
    # soname into executable. Probably we can add versioning support to
3716
 
    # collect2, so additional links can be useful in future.
3717
 
    if test "$aix_use_runtimelinking" = yes; then
3718
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3719
 
      # instead of lib<name>.a to let people know that these are not
3720
 
      # typical AIX shared libraries.
3721
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3722
 
    else
3723
 
      # We preserve .a as extension for shared libraries through AIX4.2
3724
 
      # and later when we are not doing run time linking.
3725
 
      library_names_spec='${libname}${release}.a $libname.a'
3726
 
      soname_spec='${libname}${release}${shared_ext}$major'
3727
 
    fi
3728
 
    shlibpath_var=LIBPATH
3729
 
  fi
3730
 
  ;;
3731
 
 
3732
 
amigaos*)
3733
 
  case $host_cpu in
3734
 
  powerpc)
3735
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
3736
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3737
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3738
 
    ;;
3739
 
  m68k)
3740
 
    library_names_spec='$libname.ixlibrary $libname.a'
3741
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3742
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3743
 
    ;;
3744
 
  esac
3745
 
  ;;
3746
 
 
3747
 
beos*)
3748
 
  library_names_spec='${libname}${shared_ext}'
3749
 
  dynamic_linker="$host_os ld.so"
3750
 
  shlibpath_var=LIBRARY_PATH
3751
 
  ;;
3752
 
 
3753
 
bsdi[[45]]*)
3754
 
  version_type=linux
3755
 
  need_version=no
3756
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3757
 
  soname_spec='${libname}${release}${shared_ext}$major'
3758
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3759
 
  shlibpath_var=LD_LIBRARY_PATH
3760
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3761
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3762
 
  # the default ld.so.conf also contains /usr/contrib/lib and
3763
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3764
 
  # libtool to hard-code these into programs
3765
 
  ;;
3766
 
 
3767
 
cygwin* | mingw* | pw32* | cegcc*)
3768
 
  version_type=windows
3769
 
  shrext_cmds=".dll"
3770
 
  need_version=no
3771
 
  need_lib_prefix=no
3772
 
 
3773
 
  case $GCC,$host_os in
3774
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3775
 
    library_names_spec='$libname.dll.a'
3776
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3777
 
    postinstall_cmds='base_file=`basename \${file}`~
3778
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3779
 
      dldir=$destdir/`dirname \$dlpath`~
3780
 
      test -d \$dldir || mkdir -p \$dldir~
3781
 
      $install_prog $dir/$dlname \$dldir/$dlname~
3782
 
      chmod a+x \$dldir/$dlname~
3783
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3784
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3785
 
      fi'
3786
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3787
 
      dlpath=$dir/\$dldll~
3788
 
       $RM \$dlpath'
3789
 
    shlibpath_overrides_runpath=yes
3790
 
 
3791
 
    case $host_os in
3792
 
    cygwin*)
3793
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3794
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3795
 
m4_if([$1], [],[
3796
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3797
 
      ;;
3798
 
    mingw* | cegcc*)
3799
 
      # MinGW DLLs use traditional 'lib' prefix
3800
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3801
 
      ;;
3802
 
    pw32*)
3803
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3804
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3805
 
      ;;
3806
 
    esac
3807
 
    ;;
3808
 
 
3809
 
  *)
3810
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3811
 
    ;;
3812
 
  esac
3813
 
  dynamic_linker='Win32 ld.exe'
3814
 
  # FIXME: first we should search . and the directory the executable is in
3815
 
  shlibpath_var=PATH
3816
 
  ;;
3817
 
 
3818
 
darwin* | rhapsody*)
3819
 
  dynamic_linker="$host_os dyld"
3820
 
  version_type=darwin
3821
 
  need_lib_prefix=no
3822
 
  need_version=no
3823
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3824
 
  soname_spec='${libname}${release}${major}$shared_ext'
3825
 
  shlibpath_overrides_runpath=yes
3826
 
  shlibpath_var=DYLD_LIBRARY_PATH
3827
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3828
 
m4_if([$1], [],[
3829
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3830
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3831
 
  ;;
3832
 
 
3833
 
dgux*)
3834
 
  version_type=linux
3835
 
  need_lib_prefix=no
3836
 
  need_version=no
3837
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3838
 
  soname_spec='${libname}${release}${shared_ext}$major'
3839
 
  shlibpath_var=LD_LIBRARY_PATH
3840
 
  ;;
3841
 
 
3842
 
freebsd1*)
3843
 
  dynamic_linker=no
3844
 
  ;;
3845
 
 
3846
 
freebsd* | dragonfly*)
3847
 
  # DragonFly does not have aout.  When/if they implement a new
3848
 
  # versioning mechanism, adjust this.
3849
 
  if test -x /usr/bin/objformat; then
3850
 
    objformat=`/usr/bin/objformat`
3851
 
  else
3852
 
    case $host_os in
3853
 
    freebsd[[123]]*) objformat=aout ;;
3854
 
    *) objformat=elf ;;
3855
 
    esac
3856
 
  fi
3857
 
  version_type=freebsd-$objformat
3858
 
  case $version_type in
3859
 
    freebsd-elf*)
3860
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3861
 
      need_version=no
3862
 
      need_lib_prefix=no
3863
 
      ;;
3864
 
    freebsd-*)
3865
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3866
 
      need_version=yes
3867
 
      ;;
3868
 
  esac
3869
 
  shlibpath_var=LD_LIBRARY_PATH
3870
 
  case $host_os in
3871
 
  freebsd2*)
3872
 
    shlibpath_overrides_runpath=yes
3873
 
    ;;
3874
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3875
 
    shlibpath_overrides_runpath=yes
3876
 
    hardcode_into_libs=yes
3877
 
    ;;
3878
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3879
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3880
 
    shlibpath_overrides_runpath=no
3881
 
    hardcode_into_libs=yes
3882
 
    ;;
3883
 
  *) # from 4.6 on, and DragonFly
3884
 
    shlibpath_overrides_runpath=yes
3885
 
    hardcode_into_libs=yes
3886
 
    ;;
3887
 
  esac
3888
 
  ;;
3889
 
 
3890
 
gnu*)
3891
 
  version_type=linux
3892
 
  need_lib_prefix=no
3893
 
  need_version=no
3894
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3895
 
  soname_spec='${libname}${release}${shared_ext}$major'
3896
 
  shlibpath_var=LD_LIBRARY_PATH
3897
 
  hardcode_into_libs=yes
3898
 
  ;;
3899
 
 
3900
 
haiku*)
3901
 
  version_type=linux
3902
 
  need_lib_prefix=no
3903
 
  need_version=no
3904
 
  dynamic_linker="$host_os runtime_loader"
3905
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3906
 
  soname_spec='${libname}${release}${shared_ext}$major'
3907
 
  shlibpath_var=LIBRARY_PATH
3908
 
  shlibpath_overrides_runpath=yes
3909
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3910
 
  hardcode_into_libs=yes
3911
 
  ;;
3912
 
 
3913
 
hpux9* | hpux10* | hpux11*)
3914
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
3915
 
  # link against other versions.
3916
 
  version_type=sunos
3917
 
  need_lib_prefix=no
3918
 
  need_version=no
3919
 
  case $host_cpu in
3920
 
  ia64*)
3921
 
    shrext_cmds='.so'
3922
 
    hardcode_into_libs=yes
3923
 
    dynamic_linker="$host_os dld.so"
3924
 
    shlibpath_var=LD_LIBRARY_PATH
3925
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3926
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3927
 
    soname_spec='${libname}${release}${shared_ext}$major'
3928
 
    if test "X$HPUX_IA64_MODE" = X32; then
3929
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3930
 
    else
3931
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3932
 
    fi
3933
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3934
 
    ;;
3935
 
  hppa*64*)
3936
 
    shrext_cmds='.sl'
3937
 
    hardcode_into_libs=yes
3938
 
    dynamic_linker="$host_os dld.sl"
3939
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3940
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3941
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3942
 
    soname_spec='${libname}${release}${shared_ext}$major'
3943
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3944
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3945
 
    ;;
3946
 
  *)
3947
 
    shrext_cmds='.sl'
3948
 
    dynamic_linker="$host_os dld.sl"
3949
 
    shlibpath_var=SHLIB_PATH
3950
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3951
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3952
 
    soname_spec='${libname}${release}${shared_ext}$major'
3953
 
    ;;
3954
 
  esac
3955
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3956
 
  postinstall_cmds='chmod 555 $lib'
3957
 
  # or fails outright, so override atomically:
3958
 
  install_override_mode=555
3959
 
  ;;
3960
 
 
3961
 
interix[[3-9]]*)
3962
 
  version_type=linux
3963
 
  need_lib_prefix=no
3964
 
  need_version=no
3965
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3966
 
  soname_spec='${libname}${release}${shared_ext}$major'
3967
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3968
 
  shlibpath_var=LD_LIBRARY_PATH
3969
 
  shlibpath_overrides_runpath=no
3970
 
  hardcode_into_libs=yes
3971
 
  ;;
3972
 
 
3973
 
irix5* | irix6* | nonstopux*)
3974
 
  case $host_os in
3975
 
    nonstopux*) version_type=nonstopux ;;
3976
 
    *)
3977
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
3978
 
                version_type=linux
3979
 
        else
3980
 
                version_type=irix
3981
 
        fi ;;
3982
 
  esac
3983
 
  need_lib_prefix=no
3984
 
  need_version=no
3985
 
  soname_spec='${libname}${release}${shared_ext}$major'
3986
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3987
 
  case $host_os in
3988
 
  irix5* | nonstopux*)
3989
 
    libsuff= shlibsuff=
3990
 
    ;;
3991
 
  *)
3992
 
    case $LD in # libtool.m4 will add one of these switches to LD
3993
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3994
 
      libsuff= shlibsuff= libmagic=32-bit;;
3995
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3996
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
3997
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3998
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
3999
 
    *) libsuff= shlibsuff= libmagic=never-match;;
4000
 
    esac
4001
 
    ;;
4002
 
  esac
4003
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4004
 
  shlibpath_overrides_runpath=no
4005
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4006
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4007
 
  hardcode_into_libs=yes
4008
 
  ;;
4009
 
 
4010
 
# No shared lib support for Linux oldld, aout, or coff.
4011
 
linux*oldld* | linux*aout* | linux*coff*)
4012
 
  dynamic_linker=no
4013
 
  ;;
4014
 
 
4015
 
# This must be Linux ELF.
4016
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4017
 
  version_type=linux
4018
 
  need_lib_prefix=no
4019
 
  need_version=no
4020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4021
 
  soname_spec='${libname}${release}${shared_ext}$major'
4022
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4023
 
  shlibpath_var=LD_LIBRARY_PATH
4024
 
  shlibpath_overrides_runpath=no
4025
 
 
4026
 
  # Some binutils ld are patched to set DT_RUNPATH
4027
 
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4028
 
    [lt_cv_shlibpath_overrides_runpath=no
4029
 
    save_LDFLAGS=$LDFLAGS
4030
 
    save_libdir=$libdir
4031
 
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4032
 
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4033
 
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4034
 
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4035
 
         [lt_cv_shlibpath_overrides_runpath=yes])])
4036
 
    LDFLAGS=$save_LDFLAGS
4037
 
    libdir=$save_libdir
4038
 
    ])
4039
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4040
 
 
4041
 
  # This implies no fast_install, which is unacceptable.
4042
 
  # Some rework will be needed to allow for fast_install
4043
 
  # before this can be enabled.
4044
 
  hardcode_into_libs=yes
4045
 
 
4046
 
  # Add ABI-specific directories to the system library path.
4047
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
4048
 
 
4049
 
  # Append ld.so.conf contents to the search path
4050
 
  if test -f /etc/ld.so.conf; then
4051
 
    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;s/"//g;/^$/d' | tr '\n' ' '`
4052
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
4053
 
 
4054
 
  fi
4055
 
 
4056
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4057
 
  # powerpc, because MkLinux only supported shared libraries with the
4058
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
4059
 
  # most powerpc-linux boxes support dynamic linking these days and
4060
 
  # people can always --disable-shared, the test was removed, and we
4061
 
  # assume the GNU/Linux dynamic linker is in use.
4062
 
  dynamic_linker='GNU/Linux ld.so'
4063
 
  ;;
4064
 
 
4065
 
netbsd*)
4066
 
  version_type=sunos
4067
 
  need_lib_prefix=no
4068
 
  need_version=no
4069
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4070
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4071
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4072
 
    dynamic_linker='NetBSD (a.out) ld.so'
4073
 
  else
4074
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4075
 
    soname_spec='${libname}${release}${shared_ext}$major'
4076
 
    dynamic_linker='NetBSD ld.elf_so'
4077
 
  fi
4078
 
  shlibpath_var=LD_LIBRARY_PATH
4079
 
  shlibpath_overrides_runpath=yes
4080
 
  hardcode_into_libs=yes
4081
 
  ;;
4082
 
 
4083
 
newsos6)
4084
 
  version_type=linux
4085
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4086
 
  shlibpath_var=LD_LIBRARY_PATH
4087
 
  shlibpath_overrides_runpath=yes
4088
 
  ;;
4089
 
 
4090
 
*nto* | *qnx*)
4091
 
  version_type=qnx
4092
 
  need_lib_prefix=no
4093
 
  need_version=no
4094
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4095
 
  soname_spec='${libname}${release}${shared_ext}$major'
4096
 
  shlibpath_var=LD_LIBRARY_PATH
4097
 
  shlibpath_overrides_runpath=no
4098
 
  hardcode_into_libs=yes
4099
 
  dynamic_linker='ldqnx.so'
4100
 
  ;;
4101
 
 
4102
 
openbsd*)
4103
 
  version_type=sunos
4104
 
  sys_lib_dlsearch_path_spec="/usr/lib"
4105
 
  need_lib_prefix=no
4106
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4107
 
  case $host_os in
4108
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
4109
 
    *)                          need_version=no  ;;
4110
 
  esac
4111
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4112
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4113
 
  shlibpath_var=LD_LIBRARY_PATH
4114
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4115
 
    case $host_os in
4116
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
4117
 
        shlibpath_overrides_runpath=no
4118
 
        ;;
4119
 
      *)
4120
 
        shlibpath_overrides_runpath=yes
4121
 
        ;;
4122
 
      esac
4123
 
  else
4124
 
    shlibpath_overrides_runpath=yes
4125
 
  fi
4126
 
  ;;
4127
 
 
4128
 
os2*)
4129
 
  libname_spec='$name'
4130
 
  shrext_cmds=".dll"
4131
 
  need_lib_prefix=no
4132
 
  library_names_spec='$libname${shared_ext} $libname.a'
4133
 
  dynamic_linker='OS/2 ld.exe'
4134
 
  shlibpath_var=LIBPATH
4135
 
  ;;
4136
 
 
4137
 
osf3* | osf4* | osf5*)
4138
 
  version_type=osf
4139
 
  need_lib_prefix=no
4140
 
  need_version=no
4141
 
  soname_spec='${libname}${release}${shared_ext}$major'
4142
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4143
 
  shlibpath_var=LD_LIBRARY_PATH
4144
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4145
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4146
 
  ;;
4147
 
 
4148
 
rdos*)
4149
 
  dynamic_linker=no
4150
 
  ;;
4151
 
 
4152
 
solaris*)
4153
 
  version_type=linux
4154
 
  need_lib_prefix=no
4155
 
  need_version=no
4156
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4157
 
  soname_spec='${libname}${release}${shared_ext}$major'
4158
 
  shlibpath_var=LD_LIBRARY_PATH
4159
 
  shlibpath_overrides_runpath=yes
4160
 
  hardcode_into_libs=yes
4161
 
  # ldd complains unless libraries are executable
4162
 
  postinstall_cmds='chmod +x $lib'
4163
 
  ;;
4164
 
 
4165
 
sunos4*)
4166
 
  version_type=sunos
4167
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4168
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4169
 
  shlibpath_var=LD_LIBRARY_PATH
4170
 
  shlibpath_overrides_runpath=yes
4171
 
  if test "$with_gnu_ld" = yes; then
4172
 
    need_lib_prefix=no
4173
 
  fi
4174
 
  need_version=yes
4175
 
  ;;
4176
 
 
4177
 
sysv4 | sysv4.3*)
4178
 
  version_type=linux
4179
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4180
 
  soname_spec='${libname}${release}${shared_ext}$major'
4181
 
  shlibpath_var=LD_LIBRARY_PATH
4182
 
  case $host_vendor in
4183
 
    sni)
4184
 
      shlibpath_overrides_runpath=no
4185
 
      need_lib_prefix=no
4186
 
      runpath_var=LD_RUN_PATH
4187
 
      ;;
4188
 
    siemens)
4189
 
      need_lib_prefix=no
4190
 
      ;;
4191
 
    motorola)
4192
 
      need_lib_prefix=no
4193
 
      need_version=no
4194
 
      shlibpath_overrides_runpath=no
4195
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4196
 
      ;;
4197
 
  esac
4198
 
  ;;
4199
 
 
4200
 
sysv4*MP*)
4201
 
  if test -d /usr/nec ;then
4202
 
    version_type=linux
4203
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4204
 
    soname_spec='$libname${shared_ext}.$major'
4205
 
    shlibpath_var=LD_LIBRARY_PATH
4206
 
  fi
4207
 
  ;;
4208
 
 
4209
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4210
 
  version_type=freebsd-elf
4211
 
  need_lib_prefix=no
4212
 
  need_version=no
4213
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4214
 
  soname_spec='${libname}${release}${shared_ext}$major'
4215
 
  shlibpath_var=LD_LIBRARY_PATH
4216
 
  shlibpath_overrides_runpath=yes
4217
 
  hardcode_into_libs=yes
4218
 
  if test "$with_gnu_ld" = yes; then
4219
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4220
 
  else
4221
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4222
 
    case $host_os in
4223
 
      sco3.2v5*)
4224
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4225
 
        ;;
4226
 
    esac
4227
 
  fi
4228
 
  sys_lib_dlsearch_path_spec='/usr/lib'
4229
 
  ;;
4230
 
 
4231
 
tpf*)
4232
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
4233
 
  version_type=linux
4234
 
  need_lib_prefix=no
4235
 
  need_version=no
4236
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4237
 
  shlibpath_var=LD_LIBRARY_PATH
4238
 
  shlibpath_overrides_runpath=no
4239
 
  hardcode_into_libs=yes
4240
 
  ;;
4241
 
 
4242
 
uts4*)
4243
 
  version_type=linux
4244
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4245
 
  soname_spec='${libname}${release}${shared_ext}$major'
4246
 
  shlibpath_var=LD_LIBRARY_PATH
4247
 
  ;;
4248
 
 
4249
 
*)
4250
 
  dynamic_linker=no
4251
 
  ;;
4252
 
esac
4253
 
AC_MSG_RESULT([$dynamic_linker])
4254
 
test "$dynamic_linker" = no && can_build_shared=no
4255
 
 
4256
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4257
 
if test "$GCC" = yes; then
4258
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4259
 
fi
4260
 
 
4261
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4262
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4263
 
fi
4264
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4265
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4266
 
fi
4267
 
 
4268
 
_LT_DECL([], [variables_saved_for_relink], [1],
4269
 
    [Variables whose values should be saved in libtool wrapper scripts and
4270
 
    restored at link time])
4271
 
_LT_DECL([], [need_lib_prefix], [0],
4272
 
    [Do we need the "lib" prefix for modules?])
4273
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4274
 
_LT_DECL([], [version_type], [0], [Library versioning type])
4275
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
4276
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4277
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
4278
 
    [Is shlibpath searched before the hard-coded library search path?])
4279
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4280
 
_LT_DECL([], [library_names_spec], [1],
4281
 
    [[List of archive names.  First name is the real one, the rest are links.
4282
 
    The last name is the one that the linker finds with -lNAME]])
4283
 
_LT_DECL([], [soname_spec], [1],
4284
 
    [[The coded name of the library, if different from the real name]])
4285
 
_LT_DECL([], [install_override_mode], [1],
4286
 
    [Permission mode override for installation of shared libraries])
4287
 
_LT_DECL([], [postinstall_cmds], [2],
4288
 
    [Command to use after installation of a shared archive])
4289
 
_LT_DECL([], [postuninstall_cmds], [2],
4290
 
    [Command to use after uninstallation of a shared archive])
4291
 
_LT_DECL([], [finish_cmds], [2],
4292
 
    [Commands used to finish a libtool library installation in a directory])
4293
 
_LT_DECL([], [finish_eval], [1],
4294
 
    [[As "finish_cmds", except a single script fragment to be evaled but
4295
 
    not shown]])
4296
 
_LT_DECL([], [hardcode_into_libs], [0],
4297
 
    [Whether we should hardcode library paths into libraries])
4298
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
4299
 
    [Compile-time system search path for libraries])
4300
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
4301
 
    [Run-time system search path for libraries])
4302
 
])# _LT_SYS_DYNAMIC_LINKER
4303
 
 
4304
 
 
4305
 
# _LT_PATH_TOOL_PREFIX(TOOL)
4306
 
# --------------------------
4307
 
# find a file program which can recognize shared library
4308
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
4309
 
[m4_require([_LT_DECL_EGREP])dnl
4310
 
AC_MSG_CHECKING([for $1])
4311
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4312
 
[case $MAGIC_CMD in
4313
 
[[\\/*] |  ?:[\\/]*])
4314
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4315
 
  ;;
4316
 
*)
4317
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
4318
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4319
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
4320
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
4321
 
dnl not every word.  This closes a longstanding sh security hole.
4322
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
4323
 
  for ac_dir in $ac_dummy; do
4324
 
    IFS="$lt_save_ifs"
4325
 
    test -z "$ac_dir" && ac_dir=.
4326
 
    if test -f $ac_dir/$1; then
4327
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4328
 
      if test -n "$file_magic_test_file"; then
4329
 
        case $deplibs_check_method in
4330
 
        "file_magic "*)
4331
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4332
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4333
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4334
 
            $EGREP "$file_magic_regex" > /dev/null; then
4335
 
            :
4336
 
          else
4337
 
            cat <<_LT_EOF 1>&2
4338
 
 
4339
 
*** Warning: the command libtool uses to detect shared libraries,
4340
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4341
 
*** The result is that libtool may fail to recognize shared libraries
4342
 
*** as such.  This will affect the creation of libtool libraries that
4343
 
*** depend on shared libraries, but programs linked with such libtool
4344
 
*** libraries will work regardless of this problem.  Nevertheless, you
4345
 
*** may want to report the problem to your system manager and/or to
4346
 
*** bug-libtool@gnu.org
4347
 
 
4348
 
_LT_EOF
4349
 
          fi ;;
4350
 
        esac
4351
 
      fi
4352
 
      break
4353
 
    fi
4354
 
  done
4355
 
  IFS="$lt_save_ifs"
4356
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
4357
 
  ;;
4358
 
esac])
4359
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4360
 
if test -n "$MAGIC_CMD"; then
4361
 
  AC_MSG_RESULT($MAGIC_CMD)
4362
 
else
4363
 
  AC_MSG_RESULT(no)
4364
 
fi
4365
 
_LT_DECL([], [MAGIC_CMD], [0],
4366
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
4367
 
])# _LT_PATH_TOOL_PREFIX
4368
 
 
4369
 
# Old name:
4370
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
4371
 
dnl aclocal-1.4 backwards compatibility:
4372
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
4373
 
 
4374
 
 
4375
 
# _LT_PATH_MAGIC
4376
 
# --------------
4377
 
# find a file program which can recognize a shared library
4378
 
m4_defun([_LT_PATH_MAGIC],
4379
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4380
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4381
 
  if test -n "$ac_tool_prefix"; then
4382
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4383
 
  else
4384
 
    MAGIC_CMD=:
4385
 
  fi
4386
 
fi
4387
 
])# _LT_PATH_MAGIC
4388
 
 
4389
 
 
4390
 
# LT_PATH_LD
4391
 
# ----------
4392
 
# find the pathname to the GNU or non-GNU linker
4393
 
AC_DEFUN([LT_PATH_LD],
4394
 
[AC_REQUIRE([AC_PROG_CC])dnl
4395
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4396
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4397
 
m4_require([_LT_DECL_SED])dnl
4398
 
m4_require([_LT_DECL_EGREP])dnl
4399
 
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4400
 
 
4401
 
AC_ARG_WITH([gnu-ld],
4402
 
    [AS_HELP_STRING([--with-gnu-ld],
4403
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4404
 
    [test "$withval" = no || with_gnu_ld=yes],
4405
 
    [with_gnu_ld=no])dnl
4406
 
 
4407
 
ac_prog=ld
4408
 
if test "$GCC" = yes; then
4409
 
  # Check if gcc -print-prog-name=ld gives a path.
4410
 
  AC_MSG_CHECKING([for ld used by $CC])
4411
 
  case $host in
4412
 
  *-*-mingw*)
4413
 
    # gcc leaves a trailing carriage return which upsets mingw
4414
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4415
 
  *)
4416
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4417
 
  esac
4418
 
  case $ac_prog in
4419
 
    # Accept absolute paths.
4420
 
    [[\\/]]* | ?:[[\\/]]*)
4421
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
4422
 
      # Canonicalize the pathname of ld
4423
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4424
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4425
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4426
 
      done
4427
 
      test -z "$LD" && LD="$ac_prog"
4428
 
      ;;
4429
 
  "")
4430
 
    # If it fails, then pretend we aren't using GCC.
4431
 
    ac_prog=ld
4432
 
    ;;
4433
 
  *)
4434
 
    # If it is relative, then search for the first ld in PATH.
4435
 
    with_gnu_ld=unknown
4436
 
    ;;
4437
 
  esac
4438
 
elif test "$with_gnu_ld" = yes; then
4439
 
  AC_MSG_CHECKING([for GNU ld])
4440
 
else
4441
 
  AC_MSG_CHECKING([for non-GNU ld])
4442
 
fi
4443
 
AC_CACHE_VAL(lt_cv_path_LD,
4444
 
[if test -z "$LD"; then
4445
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4446
 
  for ac_dir in $PATH; do
4447
 
    IFS="$lt_save_ifs"
4448
 
    test -z "$ac_dir" && ac_dir=.
4449
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4450
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4451
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4452
 
      # but apparently some variants of GNU ld only accept -v.
4453
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4454
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4455
 
      *GNU* | *'with BFD'*)
4456
 
        test "$with_gnu_ld" != no && break
4457
 
        ;;
4458
 
      *)
4459
 
        test "$with_gnu_ld" != yes && break
4460
 
        ;;
4461
 
      esac
4462
 
    fi
4463
 
  done
4464
 
  IFS="$lt_save_ifs"
4465
 
else
4466
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4467
 
fi])
4468
 
LD="$lt_cv_path_LD"
4469
 
if test -n "$LD"; then
4470
 
  AC_MSG_RESULT($LD)
4471
 
else
4472
 
  AC_MSG_RESULT(no)
4473
 
fi
4474
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4475
 
_LT_PATH_LD_GNU
4476
 
AC_SUBST([LD])
4477
 
 
4478
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4479
 
])# LT_PATH_LD
4480
 
 
4481
 
# Old names:
4482
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4483
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4484
 
dnl aclocal-1.4 backwards compatibility:
4485
 
dnl AC_DEFUN([AM_PROG_LD], [])
4486
 
dnl AC_DEFUN([AC_PROG_LD], [])
4487
 
 
4488
 
 
4489
 
# _LT_PATH_LD_GNU
4490
 
#- --------------
4491
 
m4_defun([_LT_PATH_LD_GNU],
4492
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4493
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4494
 
case `$LD -v 2>&1 </dev/null` in
4495
 
*GNU* | *'with BFD'*)
4496
 
  lt_cv_prog_gnu_ld=yes
4497
 
  ;;
4498
 
*)
4499
 
  lt_cv_prog_gnu_ld=no
4500
 
  ;;
4501
 
esac])
4502
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4503
 
])# _LT_PATH_LD_GNU
4504
 
 
4505
 
 
4506
 
# _LT_CMD_RELOAD
4507
 
# --------------
4508
 
# find reload flag for linker
4509
 
#   -- PORTME Some linkers may need a different reload flag.
4510
 
m4_defun([_LT_CMD_RELOAD],
4511
 
[AC_CACHE_CHECK([for $LD option to reload object files],
4512
 
  lt_cv_ld_reload_flag,
4513
 
  [lt_cv_ld_reload_flag='-r'])
4514
 
reload_flag=$lt_cv_ld_reload_flag
4515
 
case $reload_flag in
4516
 
"" | " "*) ;;
4517
 
*) reload_flag=" $reload_flag" ;;
4518
 
esac
4519
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4520
 
case $host_os in
4521
 
  darwin*)
4522
 
    if test "$GCC" = yes; then
4523
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4524
 
    else
4525
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4526
 
    fi
4527
 
    ;;
4528
 
esac
4529
 
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4530
 
_LT_TAGDECL([], [reload_cmds], [2])dnl
4531
 
])# _LT_CMD_RELOAD
4532
 
 
4533
 
 
4534
 
# _LT_CHECK_MAGIC_METHOD
4535
 
# ----------------------
4536
 
# how to check for library dependencies
4537
 
#  -- PORTME fill in with the dynamic library characteristics
4538
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
4539
 
[m4_require([_LT_DECL_EGREP])
4540
 
m4_require([_LT_DECL_OBJDUMP])
4541
 
AC_CACHE_CHECK([how to recognize dependent libraries],
4542
 
lt_cv_deplibs_check_method,
4543
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4544
 
lt_cv_file_magic_test_file=
4545
 
lt_cv_deplibs_check_method='unknown'
4546
 
# Need to set the preceding variable on all platforms that support
4547
 
# interlibrary dependencies.
4548
 
# 'none' -- dependencies not supported.
4549
 
# `unknown' -- same as none, but documents that we really don't know.
4550
 
# 'pass_all' -- all dependencies passed with no checks.
4551
 
# 'test_compile' -- check by making test program.
4552
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4553
 
# which responds to the $file_magic_cmd with a given extended regex.
4554
 
# If you have `file' or equivalent on your system and you're not sure
4555
 
# whether `pass_all' will *always* work, you probably want this one.
4556
 
 
4557
 
case $host_os in
4558
 
aix[[4-9]]*)
4559
 
  lt_cv_deplibs_check_method=pass_all
4560
 
  ;;
4561
 
 
4562
 
beos*)
4563
 
  lt_cv_deplibs_check_method=pass_all
4564
 
  ;;
4565
 
 
4566
 
bsdi[[45]]*)
4567
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4568
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4569
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4570
 
  ;;
4571
 
 
4572
 
cygwin*)
4573
 
  # func_win32_libid is a shell function defined in ltmain.sh
4574
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4575
 
  lt_cv_file_magic_cmd='func_win32_libid'
4576
 
  ;;
4577
 
 
4578
 
mingw* | pw32*)
4579
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4580
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4581
 
  # unless we find 'file', for example because we are cross-compiling.
4582
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4583
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4584
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4585
 
    lt_cv_file_magic_cmd='func_win32_libid'
4586
 
  else
4587
 
    # Keep this pattern in sync with the one in func_win32_libid.
4588
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4589
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4590
 
  fi
4591
 
  ;;
4592
 
 
4593
 
cegcc*)
4594
 
  # use the weaker test based on 'objdump'. See mingw*.
4595
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4596
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4597
 
  ;;
4598
 
 
4599
 
darwin* | rhapsody*)
4600
 
  lt_cv_deplibs_check_method=pass_all
4601
 
  ;;
4602
 
 
4603
 
freebsd* | dragonfly*)
4604
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4605
 
    case $host_cpu in
4606
 
    i*86 )
4607
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4608
 
      # Let's accept both of them until this is cleared up.
4609
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4610
 
      lt_cv_file_magic_cmd=/usr/bin/file
4611
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4612
 
      ;;
4613
 
    esac
4614
 
  else
4615
 
    lt_cv_deplibs_check_method=pass_all
4616
 
  fi
4617
 
  ;;
4618
 
 
4619
 
gnu*)
4620
 
  lt_cv_deplibs_check_method=pass_all
4621
 
  ;;
4622
 
 
4623
 
haiku*)
4624
 
  lt_cv_deplibs_check_method=pass_all
4625
 
  ;;
4626
 
 
4627
 
hpux10.20* | hpux11*)
4628
 
  lt_cv_file_magic_cmd=/usr/bin/file
4629
 
  case $host_cpu in
4630
 
  ia64*)
4631
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4632
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4633
 
    ;;
4634
 
  hppa*64*)
4635
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
4636
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4637
 
    ;;
4638
 
  *)
4639
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4640
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4641
 
    ;;
4642
 
  esac
4643
 
  ;;
4644
 
 
4645
 
interix[[3-9]]*)
4646
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4647
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4648
 
  ;;
4649
 
 
4650
 
irix5* | irix6* | nonstopux*)
4651
 
  case $LD in
4652
 
  *-32|*"-32 ") libmagic=32-bit;;
4653
 
  *-n32|*"-n32 ") libmagic=N32;;
4654
 
  *-64|*"-64 ") libmagic=64-bit;;
4655
 
  *) libmagic=never-match;;
4656
 
  esac
4657
 
  lt_cv_deplibs_check_method=pass_all
4658
 
  ;;
4659
 
 
4660
 
# This must be Linux ELF.
4661
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4662
 
  lt_cv_deplibs_check_method=pass_all
4663
 
  ;;
4664
 
 
4665
 
netbsd*)
4666
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4667
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4668
 
  else
4669
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4670
 
  fi
4671
 
  ;;
4672
 
 
4673
 
newos6*)
4674
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4675
 
  lt_cv_file_magic_cmd=/usr/bin/file
4676
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4677
 
  ;;
4678
 
 
4679
 
*nto* | *qnx*)
4680
 
  lt_cv_deplibs_check_method=pass_all
4681
 
  ;;
4682
 
 
4683
 
openbsd*)
4684
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4685
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4686
 
  else
4687
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4688
 
  fi
4689
 
  ;;
4690
 
 
4691
 
osf3* | osf4* | osf5*)
4692
 
  lt_cv_deplibs_check_method=pass_all
4693
 
  ;;
4694
 
 
4695
 
rdos*)
4696
 
  lt_cv_deplibs_check_method=pass_all
4697
 
  ;;
4698
 
 
4699
 
solaris*)
4700
 
  lt_cv_deplibs_check_method=pass_all
4701
 
  ;;
4702
 
 
4703
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4704
 
  lt_cv_deplibs_check_method=pass_all
4705
 
  ;;
4706
 
 
4707
 
sysv4 | sysv4.3*)
4708
 
  case $host_vendor in
4709
 
  motorola)
4710
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4711
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4712
 
    ;;
4713
 
  ncr)
4714
 
    lt_cv_deplibs_check_method=pass_all
4715
 
    ;;
4716
 
  sequent)
4717
 
    lt_cv_file_magic_cmd='/bin/file'
4718
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4719
 
    ;;
4720
 
  sni)
4721
 
    lt_cv_file_magic_cmd='/bin/file'
4722
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4723
 
    lt_cv_file_magic_test_file=/lib/libc.so
4724
 
    ;;
4725
 
  siemens)
4726
 
    lt_cv_deplibs_check_method=pass_all
4727
 
    ;;
4728
 
  pc)
4729
 
    lt_cv_deplibs_check_method=pass_all
4730
 
    ;;
4731
 
  esac
4732
 
  ;;
4733
 
 
4734
 
tpf*)
4735
 
  lt_cv_deplibs_check_method=pass_all
4736
 
  ;;
4737
 
esac
4738
 
])
4739
 
file_magic_cmd=$lt_cv_file_magic_cmd
4740
 
deplibs_check_method=$lt_cv_deplibs_check_method
4741
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4742
 
 
4743
 
_LT_DECL([], [deplibs_check_method], [1],
4744
 
    [Method to check whether dependent libraries are shared objects])
4745
 
_LT_DECL([], [file_magic_cmd], [1],
4746
 
    [Command to use when deplibs_check_method == "file_magic"])
4747
 
])# _LT_CHECK_MAGIC_METHOD
4748
 
 
4749
 
 
4750
 
# LT_PATH_NM
4751
 
# ----------
4752
 
# find the pathname to a BSD- or MS-compatible name lister
4753
 
AC_DEFUN([LT_PATH_NM],
4754
 
[AC_REQUIRE([AC_PROG_CC])dnl
4755
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4756
 
[if test -n "$NM"; then
4757
 
  # Let the user override the test.
4758
 
  lt_cv_path_NM="$NM"
4759
 
else
4760
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4761
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4762
 
    lt_nm_to_check="$lt_nm_to_check nm"
4763
 
  fi
4764
 
  for lt_tmp_nm in $lt_nm_to_check; do
4765
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4766
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4767
 
      IFS="$lt_save_ifs"
4768
 
      test -z "$ac_dir" && ac_dir=.
4769
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4770
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4771
 
        # Check to see if the nm accepts a BSD-compat flag.
4772
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4773
 
        #   nm: unknown option "B" ignored
4774
 
        # Tru64's nm complains that /dev/null is an invalid object file
4775
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4776
 
        */dev/null* | *'Invalid file or object type'*)
4777
 
          lt_cv_path_NM="$tmp_nm -B"
4778
 
          break
4779
 
          ;;
4780
 
        *)
4781
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4782
 
          */dev/null*)
4783
 
            lt_cv_path_NM="$tmp_nm -p"
4784
 
            break
4785
 
            ;;
4786
 
          *)
4787
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4788
 
            continue # so that we can try to find one that supports BSD flags
4789
 
            ;;
4790
 
          esac
4791
 
          ;;
4792
 
        esac
4793
 
      fi
4794
 
    done
4795
 
    IFS="$lt_save_ifs"
4796
 
  done
4797
 
  : ${lt_cv_path_NM=no}
4798
 
fi])
4799
 
if test "$lt_cv_path_NM" != "no"; then
4800
 
  NM="$lt_cv_path_NM"
4801
 
else
4802
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4803
 
  if test -n "$DUMPBIN"; then :
4804
 
    # Let the user override the test.
4805
 
  else
4806
 
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4807
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4808
 
    *COFF*)
4809
 
      DUMPBIN="$DUMPBIN -symbols"
4810
 
      ;;
4811
 
    *)
4812
 
      DUMPBIN=:
4813
 
      ;;
4814
 
    esac
4815
 
  fi
4816
 
  AC_SUBST([DUMPBIN])
4817
 
  if test "$DUMPBIN" != ":"; then
4818
 
    NM="$DUMPBIN"
4819
 
  fi
4820
 
fi
4821
 
test -z "$NM" && NM=nm
4822
 
AC_SUBST([NM])
4823
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4824
 
 
4825
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4826
 
  [lt_cv_nm_interface="BSD nm"
4827
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4828
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4829
 
  (eval "$ac_compile" 2>conftest.err)
4830
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4831
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4832
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4833
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4834
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4835
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
4836
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4837
 
    lt_cv_nm_interface="MS dumpbin"
4838
 
  fi
4839
 
  rm -f conftest*])
4840
 
])# LT_PATH_NM
4841
 
 
4842
 
# Old names:
4843
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4844
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4845
 
dnl aclocal-1.4 backwards compatibility:
4846
 
dnl AC_DEFUN([AM_PROG_NM], [])
4847
 
dnl AC_DEFUN([AC_PROG_NM], [])
4848
 
 
4849
 
 
4850
 
# LT_LIB_M
4851
 
# --------
4852
 
# check for math library
4853
 
AC_DEFUN([LT_LIB_M],
4854
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4855
 
LIBM=
4856
 
case $host in
4857
 
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4858
 
  # These system don't have libm, or don't need it
4859
 
  ;;
4860
 
*-ncr-sysv4.3*)
4861
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4862
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4863
 
  ;;
4864
 
*)
4865
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4866
 
  ;;
4867
 
esac
4868
 
AC_SUBST([LIBM])
4869
 
])# LT_LIB_M
4870
 
 
4871
 
# Old name:
4872
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4873
 
dnl aclocal-1.4 backwards compatibility:
4874
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4875
 
 
4876
 
 
4877
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
4878
 
# -------------------------------
4879
 
m4_defun([_LT_COMPILER_NO_RTTI],
4880
 
[m4_require([_LT_TAG_COMPILER])dnl
4881
 
 
4882
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4883
 
 
4884
 
if test "$GCC" = yes; then
4885
 
  case $cc_basename in
4886
 
  nvcc*)
4887
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4888
 
  *)
4889
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4890
 
  esac
4891
 
 
4892
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4893
 
    lt_cv_prog_compiler_rtti_exceptions,
4894
 
    [-fno-rtti -fno-exceptions], [],
4895
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4896
 
fi
4897
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4898
 
        [Compiler flag to turn off builtin functions])
4899
 
])# _LT_COMPILER_NO_RTTI
4900
 
 
4901
 
 
4902
 
# _LT_CMD_GLOBAL_SYMBOLS
4903
 
# ----------------------
4904
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4905
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4906
 
AC_REQUIRE([AC_PROG_CC])dnl
4907
 
AC_REQUIRE([AC_PROG_AWK])dnl
4908
 
AC_REQUIRE([LT_PATH_NM])dnl
4909
 
AC_REQUIRE([LT_PATH_LD])dnl
4910
 
m4_require([_LT_DECL_SED])dnl
4911
 
m4_require([_LT_DECL_EGREP])dnl
4912
 
m4_require([_LT_TAG_COMPILER])dnl
4913
 
 
4914
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
4915
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4916
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4917
 
[
4918
 
# These are sane defaults that work on at least a few old systems.
4919
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4920
 
 
4921
 
# Character class describing NM global symbol codes.
4922
 
symcode='[[BCDEGRST]]'
4923
 
 
4924
 
# Regexp to match symbols that can be accessed directly from C.
4925
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4926
 
 
4927
 
# Define system-specific variables.
4928
 
case $host_os in
4929
 
aix*)
4930
 
  symcode='[[BCDT]]'
4931
 
  ;;
4932
 
cygwin* | mingw* | pw32* | cegcc*)
4933
 
  symcode='[[ABCDGISTW]]'
4934
 
  ;;
4935
 
hpux*)
4936
 
  if test "$host_cpu" = ia64; then
4937
 
    symcode='[[ABCDEGRST]]'
4938
 
  fi
4939
 
  ;;
4940
 
irix* | nonstopux*)
4941
 
  symcode='[[BCDEGRST]]'
4942
 
  ;;
4943
 
osf*)
4944
 
  symcode='[[BCDEGQRST]]'
4945
 
  ;;
4946
 
solaris*)
4947
 
  symcode='[[BDRT]]'
4948
 
  ;;
4949
 
sco3.2v5*)
4950
 
  symcode='[[DT]]'
4951
 
  ;;
4952
 
sysv4.2uw2*)
4953
 
  symcode='[[DT]]'
4954
 
  ;;
4955
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4956
 
  symcode='[[ABDT]]'
4957
 
  ;;
4958
 
sysv4)
4959
 
  symcode='[[DFNSTU]]'
4960
 
  ;;
4961
 
esac
4962
 
 
4963
 
# If we're using GNU nm, then use its standard symbol codes.
4964
 
case `$NM -V 2>&1` in
4965
 
*GNU* | *'with BFD'*)
4966
 
  symcode='[[ABCDGIRSTW]]' ;;
4967
 
esac
4968
 
 
4969
 
# Transform an extracted symbol line into a proper C declaration.
4970
 
# Some systems (esp. on ia64) link data and code symbols differently,
4971
 
# so use this general approach.
4972
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4973
 
 
4974
 
# Transform an extracted symbol line into symbol name and symbol address
4975
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4976
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4977
 
 
4978
 
# Handle CRLF in mingw tool chain
4979
 
opt_cr=
4980
 
case $build_os in
4981
 
mingw*)
4982
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4983
 
  ;;
4984
 
esac
4985
 
 
4986
 
# Try without a prefix underscore, then with it.
4987
 
for ac_symprfx in "" "_"; do
4988
 
 
4989
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4990
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4991
 
 
4992
 
  # Write the raw and C identifiers.
4993
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4994
 
    # Fake it for dumpbin and say T for any non-static function
4995
 
    # and D for any global variable.
4996
 
    # Also find C++ and __fastcall symbols from MSVC++,
4997
 
    # which start with @ or ?.
4998
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4999
 
"     {last_section=section; section=\$ 3};"\
5000
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5001
 
"     \$ 0!~/External *\|/{next};"\
5002
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5003
 
"     {if(hide[section]) next};"\
5004
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5005
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5006
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5007
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5008
 
"     ' prfx=^$ac_symprfx]"
5009
 
  else
5010
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5011
 
  fi
5012
 
 
5013
 
  # Check to see that the pipe works correctly.
5014
 
  pipe_works=no
5015
 
 
5016
 
  rm -f conftest*
5017
 
  cat > conftest.$ac_ext <<_LT_EOF
5018
 
#ifdef __cplusplus
5019
 
extern "C" {
5020
 
#endif
5021
 
char nm_test_var;
5022
 
void nm_test_func(void);
5023
 
void nm_test_func(void){}
5024
 
#ifdef __cplusplus
5025
 
}
5026
 
#endif
5027
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5028
 
_LT_EOF
5029
 
 
5030
 
  if AC_TRY_EVAL(ac_compile); then
5031
 
    # Now try to grab the symbols.
5032
 
    nlist=conftest.nm
5033
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
5034
 
      # Try sorting and uniquifying the output.
5035
 
      if sort "$nlist" | uniq > "$nlist"T; then
5036
 
        mv -f "$nlist"T "$nlist"
5037
 
      else
5038
 
        rm -f "$nlist"T
5039
 
      fi
5040
 
 
5041
 
      # Make sure that we snagged all the symbols we need.
5042
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5043
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5044
 
          cat <<_LT_EOF > conftest.$ac_ext
5045
 
#ifdef __cplusplus
5046
 
extern "C" {
5047
 
#endif
5048
 
 
5049
 
_LT_EOF
5050
 
          # Now generate the symbol file.
5051
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5052
 
 
5053
 
          cat <<_LT_EOF >> conftest.$ac_ext
5054
 
 
5055
 
/* The mapping between symbol names and symbols.  */
5056
 
const struct {
5057
 
  const char *name;
5058
 
  void       *address;
5059
 
}
5060
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5061
 
{
5062
 
  { "@PROGRAM@", (void *) 0 },
5063
 
_LT_EOF
5064
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5065
 
          cat <<\_LT_EOF >> conftest.$ac_ext
5066
 
  {0, (void *) 0}
5067
 
};
5068
 
 
5069
 
/* This works around a problem in FreeBSD linker */
5070
 
#ifdef FREEBSD_WORKAROUND
5071
 
static const void *lt_preloaded_setup() {
5072
 
  return lt__PROGRAM__LTX_preloaded_symbols;
5073
 
}
5074
 
#endif
5075
 
 
5076
 
#ifdef __cplusplus
5077
 
}
5078
 
#endif
5079
 
_LT_EOF
5080
 
          # Now try linking the two files.
5081
 
          mv conftest.$ac_objext conftstm.$ac_objext
5082
 
          lt_save_LIBS="$LIBS"
5083
 
          lt_save_CFLAGS="$CFLAGS"
5084
 
          LIBS="conftstm.$ac_objext"
5085
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5086
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5087
 
            pipe_works=yes
5088
 
          fi
5089
 
          LIBS="$lt_save_LIBS"
5090
 
          CFLAGS="$lt_save_CFLAGS"
5091
 
        else
5092
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5093
 
        fi
5094
 
      else
5095
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5096
 
      fi
5097
 
    else
5098
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5099
 
    fi
5100
 
  else
5101
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5102
 
    cat conftest.$ac_ext >&5
5103
 
  fi
5104
 
  rm -rf conftest* conftst*
5105
 
 
5106
 
  # Do not use the global_symbol_pipe unless it works.
5107
 
  if test "$pipe_works" = yes; then
5108
 
    break
5109
 
  else
5110
 
    lt_cv_sys_global_symbol_pipe=
5111
 
  fi
5112
 
done
5113
 
])
5114
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5115
 
  lt_cv_sys_global_symbol_to_cdecl=
5116
 
fi
5117
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5118
 
  AC_MSG_RESULT(failed)
5119
 
else
5120
 
  AC_MSG_RESULT(ok)
5121
 
fi
5122
 
 
5123
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5124
 
    [Take the output of nm and produce a listing of raw symbols and C names])
5125
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5126
 
    [Transform the output of nm in a proper C declaration])
5127
 
_LT_DECL([global_symbol_to_c_name_address],
5128
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
5129
 
    [Transform the output of nm in a C name address pair])
5130
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5131
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5132
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
5133
 
]) # _LT_CMD_GLOBAL_SYMBOLS
5134
 
 
5135
 
 
5136
 
# _LT_COMPILER_PIC([TAGNAME])
5137
 
# ---------------------------
5138
 
m4_defun([_LT_COMPILER_PIC],
5139
 
[m4_require([_LT_TAG_COMPILER])dnl
5140
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
5141
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5142
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5143
 
 
5144
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
5145
 
m4_if([$1], [CXX], [
5146
 
  # C++ specific cases for pic, static, wl, etc.
5147
 
  if test "$GXX" = yes; then
5148
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5149
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5150
 
 
5151
 
    case $host_os in
5152
 
    aix*)
5153
 
      # All AIX code is PIC.
5154
 
      if test "$host_cpu" = ia64; then
5155
 
        # AIX 5 now supports IA64 processor
5156
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5157
 
      fi
5158
 
      ;;
5159
 
 
5160
 
    amigaos*)
5161
 
      case $host_cpu in
5162
 
      powerpc)
5163
 
            # see comment about AmigaOS4 .so support
5164
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5165
 
        ;;
5166
 
      m68k)
5167
 
            # FIXME: we need at least 68020 code to build shared libraries, but
5168
 
            # adding the `-m68020' flag to GCC prevents building anything better,
5169
 
            # like `-m68040'.
5170
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5171
 
        ;;
5172
 
      esac
5173
 
      ;;
5174
 
 
5175
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5176
 
      # PIC is the default for these OSes.
5177
 
      ;;
5178
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5179
 
      # This hack is so that the source file can tell whether it is being
5180
 
      # built for inclusion in a dll (and should export symbols for example).
5181
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5182
 
      # (--disable-auto-import) libraries
5183
 
      m4_if([$1], [GCJ], [],
5184
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5185
 
      ;;
5186
 
    darwin* | rhapsody*)
5187
 
      # PIC is the default on this platform
5188
 
      # Common symbols not allowed in MH_DYLIB files
5189
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5190
 
      ;;
5191
 
    *djgpp*)
5192
 
      # DJGPP does not support shared libraries at all
5193
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5194
 
      ;;
5195
 
    haiku*)
5196
 
      # PIC is the default for Haiku.
5197
 
      # The "-static" flag exists, but is broken.
5198
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
5199
 
      ;;
5200
 
    interix[[3-9]]*)
5201
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5202
 
      # Instead, we relocate shared libraries at runtime.
5203
 
      ;;
5204
 
    sysv4*MP*)
5205
 
      if test -d /usr/nec; then
5206
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5207
 
      fi
5208
 
      ;;
5209
 
    hpux*)
5210
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5211
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5212
 
      # sets the default TLS model and affects inlining.
5213
 
      case $host_cpu in
5214
 
      hppa*64*)
5215
 
        ;;
5216
 
      *)
5217
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5218
 
        ;;
5219
 
      esac
5220
 
      ;;
5221
 
    *qnx* | *nto*)
5222
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
5223
 
      # it will coredump.
5224
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5225
 
      ;;
5226
 
    *)
5227
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5228
 
      ;;
5229
 
    esac
5230
 
  else
5231
 
    case $host_os in
5232
 
      aix[[4-9]]*)
5233
 
        # All AIX code is PIC.
5234
 
        if test "$host_cpu" = ia64; then
5235
 
          # AIX 5 now supports IA64 processor
5236
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5237
 
        else
5238
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5239
 
        fi
5240
 
        ;;
5241
 
      chorus*)
5242
 
        case $cc_basename in
5243
 
        cxch68*)
5244
 
          # Green Hills C++ Compiler
5245
 
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5246
 
          ;;
5247
 
        esac
5248
 
        ;;
5249
 
      dgux*)
5250
 
        case $cc_basename in
5251
 
          ec++*)
5252
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5253
 
            ;;
5254
 
          ghcx*)
5255
 
            # Green Hills C++ Compiler
5256
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5257
 
            ;;
5258
 
          *)
5259
 
            ;;
5260
 
        esac
5261
 
        ;;
5262
 
      freebsd* | dragonfly*)
5263
 
        # FreeBSD uses GNU C++
5264
 
        ;;
5265
 
      hpux9* | hpux10* | hpux11*)
5266
 
        case $cc_basename in
5267
 
          CC*)
5268
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5269
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5270
 
            if test "$host_cpu" != ia64; then
5271
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5272
 
            fi
5273
 
            ;;
5274
 
          aCC*)
5275
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5276
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5277
 
            case $host_cpu in
5278
 
            hppa*64*|ia64*)
5279
 
              # +Z the default
5280
 
              ;;
5281
 
            *)
5282
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5283
 
              ;;
5284
 
            esac
5285
 
            ;;
5286
 
          *)
5287
 
            ;;
5288
 
        esac
5289
 
        ;;
5290
 
      interix*)
5291
 
        # This is c89, which is MS Visual C++ (no shared libs)
5292
 
        # Anyone wants to do a port?
5293
 
        ;;
5294
 
      irix5* | irix6* | nonstopux*)
5295
 
        case $cc_basename in
5296
 
          CC*)
5297
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5298
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5299
 
            # CC pic flag -KPIC is the default.
5300
 
            ;;
5301
 
          *)
5302
 
            ;;
5303
 
        esac
5304
 
        ;;
5305
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5306
 
        case $cc_basename in
5307
 
          KCC*)
5308
 
            # KAI C++ Compiler
5309
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5310
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5311
 
            ;;
5312
 
          ecpc* )
5313
 
            # old Intel C++ for x86_64 which still supported -KPIC.
5314
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5315
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5316
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5317
 
            ;;
5318
 
          icpc* )
5319
 
            # Intel C++, used to be incompatible with GCC.
5320
 
            # ICC 10 doesn't accept -KPIC any more.
5321
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5322
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5323
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5324
 
            ;;
5325
 
          pgCC* | pgcpp*)
5326
 
            # Portland Group C++ compiler
5327
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5328
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5329
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5330
 
            ;;
5331
 
          cxx*)
5332
 
            # Compaq C++
5333
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5334
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5335
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5336
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5337
 
            ;;
5338
 
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
5339
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
5340
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5341
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5342
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5343
 
            ;;
5344
 
          *)
5345
 
            case `$CC -V 2>&1 | sed 5q` in
5346
 
            *Sun\ C*)
5347
 
              # Sun C++ 5.9
5348
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5349
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5350
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5351
 
              ;;
5352
 
            esac
5353
 
            ;;
5354
 
        esac
5355
 
        ;;
5356
 
      lynxos*)
5357
 
        ;;
5358
 
      m88k*)
5359
 
        ;;
5360
 
      mvs*)
5361
 
        case $cc_basename in
5362
 
          cxx*)
5363
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5364
 
            ;;
5365
 
          *)
5366
 
            ;;
5367
 
        esac
5368
 
        ;;
5369
 
      netbsd*)
5370
 
        ;;
5371
 
      *qnx* | *nto*)
5372
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
5373
 
        # it will coredump.
5374
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5375
 
        ;;
5376
 
      osf3* | osf4* | osf5*)
5377
 
        case $cc_basename in
5378
 
          KCC*)
5379
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5380
 
            ;;
5381
 
          RCC*)
5382
 
            # Rational C++ 2.4.1
5383
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5384
 
            ;;
5385
 
          cxx*)
5386
 
            # Digital/Compaq C++
5387
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5388
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5389
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5390
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5391
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5392
 
            ;;
5393
 
          *)
5394
 
            ;;
5395
 
        esac
5396
 
        ;;
5397
 
      psos*)
5398
 
        ;;
5399
 
      solaris*)
5400
 
        case $cc_basename in
5401
 
          CC* | sunCC*)
5402
 
            # Sun C++ 4.2, 5.x and Centerline C++
5403
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5404
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5405
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5406
 
            ;;
5407
 
          gcx*)
5408
 
            # Green Hills C++ Compiler
5409
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5410
 
            ;;
5411
 
          *)
5412
 
            ;;
5413
 
        esac
5414
 
        ;;
5415
 
      sunos4*)
5416
 
        case $cc_basename in
5417
 
          CC*)
5418
 
            # Sun C++ 4.x
5419
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5420
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5421
 
            ;;
5422
 
          lcc*)
5423
 
            # Lucid
5424
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5425
 
            ;;
5426
 
          *)
5427
 
            ;;
5428
 
        esac
5429
 
        ;;
5430
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5431
 
        case $cc_basename in
5432
 
          CC*)
5433
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5434
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5435
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5436
 
            ;;
5437
 
        esac
5438
 
        ;;
5439
 
      tandem*)
5440
 
        case $cc_basename in
5441
 
          NCC*)
5442
 
            # NonStop-UX NCC 3.20
5443
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5444
 
            ;;
5445
 
          *)
5446
 
            ;;
5447
 
        esac
5448
 
        ;;
5449
 
      vxworks*)
5450
 
        ;;
5451
 
      *)
5452
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5453
 
        ;;
5454
 
    esac
5455
 
  fi
5456
 
],
5457
 
[
5458
 
  if test "$GCC" = yes; then
5459
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5460
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5461
 
 
5462
 
    case $host_os in
5463
 
      aix*)
5464
 
      # All AIX code is PIC.
5465
 
      if test "$host_cpu" = ia64; then
5466
 
        # AIX 5 now supports IA64 processor
5467
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5468
 
      fi
5469
 
      ;;
5470
 
 
5471
 
    amigaos*)
5472
 
      case $host_cpu in
5473
 
      powerpc)
5474
 
            # see comment about AmigaOS4 .so support
5475
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5476
 
        ;;
5477
 
      m68k)
5478
 
            # FIXME: we need at least 68020 code to build shared libraries, but
5479
 
            # adding the `-m68020' flag to GCC prevents building anything better,
5480
 
            # like `-m68040'.
5481
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5482
 
        ;;
5483
 
      esac
5484
 
      ;;
5485
 
 
5486
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5487
 
      # PIC is the default for these OSes.
5488
 
      ;;
5489
 
 
5490
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5491
 
      # This hack is so that the source file can tell whether it is being
5492
 
      # built for inclusion in a dll (and should export symbols for example).
5493
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5494
 
      # (--disable-auto-import) libraries
5495
 
      m4_if([$1], [GCJ], [],
5496
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5497
 
      ;;
5498
 
 
5499
 
    darwin* | rhapsody*)
5500
 
      # PIC is the default on this platform
5501
 
      # Common symbols not allowed in MH_DYLIB files
5502
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5503
 
      ;;
5504
 
 
5505
 
    haiku*)
5506
 
      # PIC is the default for Haiku.
5507
 
      # The "-static" flag exists, but is broken.
5508
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
5509
 
      ;;
5510
 
 
5511
 
    hpux*)
5512
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5513
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5514
 
      # sets the default TLS model and affects inlining.
5515
 
      case $host_cpu in
5516
 
      hppa*64*)
5517
 
        # +Z the default
5518
 
        ;;
5519
 
      *)
5520
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5521
 
        ;;
5522
 
      esac
5523
 
      ;;
5524
 
 
5525
 
    interix[[3-9]]*)
5526
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5527
 
      # Instead, we relocate shared libraries at runtime.
5528
 
      ;;
5529
 
 
5530
 
    msdosdjgpp*)
5531
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5532
 
      # on systems that don't support them.
5533
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5534
 
      enable_shared=no
5535
 
      ;;
5536
 
 
5537
 
    *nto* | *qnx*)
5538
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
5539
 
      # it will coredump.
5540
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5541
 
      ;;
5542
 
 
5543
 
    sysv4*MP*)
5544
 
      if test -d /usr/nec; then
5545
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5546
 
      fi
5547
 
      ;;
5548
 
 
5549
 
    *)
5550
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5551
 
      ;;
5552
 
    esac
5553
 
 
5554
 
    case $cc_basename in
5555
 
    nvcc*) # Cuda Compiler Driver 2.2
5556
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5557
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
5558
 
      ;;
5559
 
    esac
5560
 
  else
5561
 
    # PORTME Check for flag to pass linker flags through the system compiler.
5562
 
    case $host_os in
5563
 
    aix*)
5564
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5565
 
      if test "$host_cpu" = ia64; then
5566
 
        # AIX 5 now supports IA64 processor
5567
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5568
 
      else
5569
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5570
 
      fi
5571
 
      ;;
5572
 
 
5573
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5574
 
      # This hack is so that the source file can tell whether it is being
5575
 
      # built for inclusion in a dll (and should export symbols for example).
5576
 
      m4_if([$1], [GCJ], [],
5577
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5578
 
      ;;
5579
 
 
5580
 
    hpux9* | hpux10* | hpux11*)
5581
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5582
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5583
 
      # not for PA HP-UX.
5584
 
      case $host_cpu in
5585
 
      hppa*64*|ia64*)
5586
 
        # +Z the default
5587
 
        ;;
5588
 
      *)
5589
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5590
 
        ;;
5591
 
      esac
5592
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5593
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5594
 
      ;;
5595
 
 
5596
 
    irix5* | irix6* | nonstopux*)
5597
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5598
 
      # PIC (with -KPIC) is the default.
5599
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5600
 
      ;;
5601
 
 
5602
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
5603
 
      case $cc_basename in
5604
 
      # old Intel for x86_64 which still supported -KPIC.
5605
 
      ecc*)
5606
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5607
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5608
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5609
 
        ;;
5610
 
      # icc used to be incompatible with GCC.
5611
 
      # ICC 10 doesn't accept -KPIC any more.
5612
 
      icc* | ifort*)
5613
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5614
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5615
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5616
 
        ;;
5617
 
      # Lahey Fortran 8.1.
5618
 
      lf95*)
5619
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5620
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5621
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5622
 
        ;;
5623
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5624
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
5625
 
        # which looks to be a dead project)
5626
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5627
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5628
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5629
 
        ;;
5630
 
      ccc*)
5631
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5632
 
        # All Alpha code is PIC.
5633
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5634
 
        ;;
5635
 
      xl* | bgxl* | bgf* | mpixl*)
5636
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5637
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5638
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5639
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5640
 
        ;;
5641
 
      *)
5642
 
        case `$CC -V 2>&1 | sed 5q` in
5643
 
        *Sun\ F* | *Sun*Fortran*)
5644
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5645
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5646
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5647
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5648
 
          ;;
5649
 
        *Sun\ C*)
5650
 
          # Sun C 5.9
5651
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5652
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5653
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5654
 
          ;;
5655
 
        esac
5656
 
        ;;
5657
 
      esac
5658
 
      ;;
5659
 
 
5660
 
    newsos6)
5661
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5662
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5663
 
      ;;
5664
 
 
5665
 
    *nto* | *qnx*)
5666
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
5667
 
      # it will coredump.
5668
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5669
 
      ;;
5670
 
 
5671
 
    osf3* | osf4* | osf5*)
5672
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5673
 
      # All OSF/1 code is PIC.
5674
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5675
 
      ;;
5676
 
 
5677
 
    rdos*)
5678
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5679
 
      ;;
5680
 
 
5681
 
    solaris*)
5682
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5683
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5684
 
      case $cc_basename in
5685
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5686
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5687
 
      *)
5688
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5689
 
      esac
5690
 
      ;;
5691
 
 
5692
 
    sunos4*)
5693
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5694
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5695
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5696
 
      ;;
5697
 
 
5698
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
5699
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5700
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5701
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5702
 
      ;;
5703
 
 
5704
 
    sysv4*MP*)
5705
 
      if test -d /usr/nec ;then
5706
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5707
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5708
 
      fi
5709
 
      ;;
5710
 
 
5711
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5712
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5713
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5714
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5715
 
      ;;
5716
 
 
5717
 
    unicos*)
5718
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5719
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5720
 
      ;;
5721
 
 
5722
 
    uts4*)
5723
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5724
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5725
 
      ;;
5726
 
 
5727
 
    *)
5728
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5729
 
      ;;
5730
 
    esac
5731
 
  fi
5732
 
])
5733
 
case $host_os in
5734
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5735
 
  *djgpp*)
5736
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5737
 
    ;;
5738
 
  *)
5739
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5740
 
    ;;
5741
 
esac
5742
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5743
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5744
 
        [How to pass a linker flag through the compiler])
5745
 
 
5746
 
#
5747
 
# Check to make sure the PIC flag actually works.
5748
 
#
5749
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5750
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5751
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5752
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5753
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5754
 
     "" | " "*) ;;
5755
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5756
 
     esac],
5757
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5758
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5759
 
fi
5760
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5761
 
        [Additional compiler flags for building library objects])
5762
 
 
5763
 
#
5764
 
# Check to make sure the static flag actually works.
5765
 
#
5766
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5767
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5768
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5769
 
  $lt_tmp_static_flag,
5770
 
  [],
5771
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5772
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5773
 
        [Compiler flag to prevent dynamic linking])
5774
 
])# _LT_COMPILER_PIC
5775
 
 
5776
 
 
5777
 
# _LT_LINKER_SHLIBS([TAGNAME])
5778
 
# ----------------------------
5779
 
# See if the linker supports building shared libraries.
5780
 
m4_defun([_LT_LINKER_SHLIBS],
5781
 
[AC_REQUIRE([LT_PATH_LD])dnl
5782
 
AC_REQUIRE([LT_PATH_NM])dnl
5783
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5784
 
m4_require([_LT_DECL_EGREP])dnl
5785
 
m4_require([_LT_DECL_SED])dnl
5786
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5787
 
m4_require([_LT_TAG_COMPILER])dnl
5788
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5789
 
m4_if([$1], [CXX], [
5790
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5791
 
  case $host_os in
5792
 
  aix[[4-9]]*)
5793
 
    # If we're using GNU nm, then we don't want the "-C" option.
5794
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5795
 
    # Also, AIX nm treats weak defined symbols like other global defined
5796
 
    # symbols, whereas GNU nm marks them as "W".
5797
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5798
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5799
 
    else
5800
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5801
 
    fi
5802
 
    ;;
5803
 
  pw32*)
5804
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5805
 
  ;;
5806
 
  cygwin* | mingw* | cegcc*)
5807
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5808
 
  ;;
5809
 
  *)
5810
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5811
 
  ;;
5812
 
  esac
5813
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5814
 
], [
5815
 
  runpath_var=
5816
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
5817
 
  _LT_TAGVAR(always_export_symbols, $1)=no
5818
 
  _LT_TAGVAR(archive_cmds, $1)=
5819
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
5820
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
5821
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5822
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5823
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5824
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
5825
 
  _LT_TAGVAR(hardcode_direct, $1)=no
5826
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5827
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5828
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5829
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5830
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5831
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5832
 
  _LT_TAGVAR(inherit_rpath, $1)=no
5833
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
5834
 
  _LT_TAGVAR(module_cmds, $1)=
5835
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
5836
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5837
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5838
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
5839
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5840
 
  # include_expsyms should be a list of space-separated symbols to be *always*
5841
 
  # included in the symbol list
5842
 
  _LT_TAGVAR(include_expsyms, $1)=
5843
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
5844
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5845
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5846
 
  # as well as any symbol that contains `d'.
5847
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5848
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5849
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
5850
 
  # the symbol is explicitly referenced.  Since portable code cannot
5851
 
  # rely on this symbol name, it's probably fine to never include it in
5852
 
  # preloaded symbol tables.
5853
 
  # Exclude shared library initialization/finalization symbols.
5854
 
dnl Note also adjust exclude_expsyms for C++ above.
5855
 
  extract_expsyms_cmds=
5856
 
 
5857
 
  case $host_os in
5858
 
  cygwin* | mingw* | pw32* | cegcc*)
5859
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5860
 
    # When not using gcc, we currently assume that we are using
5861
 
    # Microsoft Visual C++.
5862
 
    if test "$GCC" != yes; then
5863
 
      with_gnu_ld=no
5864
 
    fi
5865
 
    ;;
5866
 
  interix*)
5867
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5868
 
    with_gnu_ld=yes
5869
 
    ;;
5870
 
  openbsd*)
5871
 
    with_gnu_ld=no
5872
 
    ;;
5873
 
  esac
5874
 
 
5875
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
5876
 
 
5877
 
  # On some targets, GNU ld is compatible enough with the native linker
5878
 
  # that we're better off using the native interface for both.
5879
 
  lt_use_gnu_ld_interface=no
5880
 
  if test "$with_gnu_ld" = yes; then
5881
 
    case $host_os in
5882
 
      aix*)
5883
 
        # The AIX port of GNU ld has always aspired to compatibility
5884
 
        # with the native linker.  However, as the warning in the GNU ld
5885
 
        # block says, versions before 2.19.5* couldn't really create working
5886
 
        # shared libraries, regardless of the interface used.
5887
 
        case `$LD -v 2>&1` in
5888
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5889
 
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5890
 
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5891
 
          *)
5892
 
            lt_use_gnu_ld_interface=yes
5893
 
            ;;
5894
 
        esac
5895
 
        ;;
5896
 
      *)
5897
 
        lt_use_gnu_ld_interface=yes
5898
 
        ;;
5899
 
    esac
5900
 
  fi
5901
 
 
5902
 
  if test "$lt_use_gnu_ld_interface" = yes; then
5903
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
5904
 
    wlarc='${wl}'
5905
 
 
5906
 
    # Set some defaults for GNU ld with shared library support. These
5907
 
    # are reset later if shared libraries are not supported. Putting them
5908
 
    # here allows them to be overridden if necessary.
5909
 
    runpath_var=LD_RUN_PATH
5910
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5911
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5912
 
    # ancient GNU ld didn't support --whole-archive et. al.
5913
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5914
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5915
 
    else
5916
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5917
 
    fi
5918
 
    supports_anon_versioning=no
5919
 
    case `$LD -v 2>&1` in
5920
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
5921
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5922
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5923
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5924
 
      *\ 2.11.*) ;; # other 2.11 versions
5925
 
      *) supports_anon_versioning=yes ;;
5926
 
    esac
5927
 
 
5928
 
    # See if GNU ld supports shared libraries.
5929
 
    case $host_os in
5930
 
    aix[[3-9]]*)
5931
 
      # On AIX/PPC, the GNU linker is very broken
5932
 
      if test "$host_cpu" != ia64; then
5933
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5934
 
        cat <<_LT_EOF 1>&2
5935
 
 
5936
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
5937
 
*** to be unable to reliably create shared libraries on AIX.
5938
 
*** Therefore, libtool is disabling shared libraries support.  If you
5939
 
*** really care for shared libraries, you may want to install binutils
5940
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5941
 
*** You will then need to restart the configuration process.
5942
 
 
5943
 
_LT_EOF
5944
 
      fi
5945
 
      ;;
5946
 
 
5947
 
    amigaos*)
5948
 
      case $host_cpu in
5949
 
      powerpc)
5950
 
            # see comment about AmigaOS4 .so support
5951
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5952
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5953
 
        ;;
5954
 
      m68k)
5955
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5956
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5957
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5958
 
        ;;
5959
 
      esac
5960
 
      ;;
5961
 
 
5962
 
    beos*)
5963
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5964
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5965
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5966
 
        # support --undefined.  This deserves some investigation.  FIXME
5967
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5968
 
      else
5969
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5970
 
      fi
5971
 
      ;;
5972
 
 
5973
 
    cygwin* | mingw* | pw32* | cegcc*)
5974
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5975
 
      # as there is no search path for DLLs.
5976
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5977
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5978
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5979
 
      _LT_TAGVAR(always_export_symbols, $1)=no
5980
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5981
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5982
 
 
5983
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5984
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5985
 
        # If the export-symbols file already is a .def file (1st line
5986
 
        # is EXPORTS), use it as is; otherwise, prepend...
5987
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5988
 
          cp $export_symbols $output_objdir/$soname.def;
5989
 
        else
5990
 
          echo EXPORTS > $output_objdir/$soname.def;
5991
 
          cat $export_symbols >> $output_objdir/$soname.def;
5992
 
        fi~
5993
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5994
 
      else
5995
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5996
 
      fi
5997
 
      ;;
5998
 
 
5999
 
    haiku*)
6000
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6001
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6002
 
      ;;
6003
 
 
6004
 
    interix[[3-9]]*)
6005
 
      _LT_TAGVAR(hardcode_direct, $1)=no
6006
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6007
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6008
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6009
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6010
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6011
 
      # default) and relocated if they conflict, which is a slow very memory
6012
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
6013
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6014
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6015
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6016
 
      _LT_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'
6017
 
      ;;
6018
 
 
6019
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
6020
 
      tmp_diet=no
6021
 
      if test "$host_os" = linux-dietlibc; then
6022
 
        case $cc_basename in
6023
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6024
 
        esac
6025
 
      fi
6026
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6027
 
         && test "$tmp_diet" = no
6028
 
      then
6029
 
        tmp_addflag=
6030
 
        tmp_sharedflag='-shared'
6031
 
        case $cc_basename,$host_cpu in
6032
 
        pgcc*)                          # Portland Group C compiler
6033
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6034
 
          tmp_addflag=' $pic_flag'
6035
 
          ;;
6036
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
6037
 
                                        # Portland Group f77 and f90 compilers
6038
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6039
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
6040
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6041
 
          tmp_addflag=' -i_dynamic' ;;
6042
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6043
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6044
 
        ifc* | ifort*)                  # Intel Fortran compiler
6045
 
          tmp_addflag=' -nofor_main' ;;
6046
 
        lf95*)                          # Lahey Fortran 8.1
6047
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6048
 
          tmp_sharedflag='--shared' ;;
6049
 
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6050
 
          tmp_sharedflag='-qmkshrobj'
6051
 
          tmp_addflag= ;;
6052
 
        nvcc*)  # Cuda Compiler Driver 2.2
6053
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6054
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6055
 
          ;;
6056
 
        esac
6057
 
        case `$CC -V 2>&1 | sed 5q` in
6058
 
        *Sun\ C*)                       # Sun C 5.9
6059
 
          _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6060
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6061
 
          tmp_sharedflag='-G' ;;
6062
 
        *Sun\ F*)                       # Sun Fortran 8.3
6063
 
          tmp_sharedflag='-G' ;;
6064
 
        esac
6065
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6066
 
 
6067
 
        if test "x$supports_anon_versioning" = xyes; then
6068
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6069
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6070
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
6071
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6072
 
        fi
6073
 
 
6074
 
        case $cc_basename in
6075
 
        xlf* | bgf* | bgxlf* | mpixlf*)
6076
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6077
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6078
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6079
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6080
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6081
 
          if test "x$supports_anon_versioning" = xyes; then
6082
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6083
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6084
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
6085
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6086
 
          fi
6087
 
          ;;
6088
 
        esac
6089
 
      else
6090
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6091
 
      fi
6092
 
      ;;
6093
 
 
6094
 
    netbsd*)
6095
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6096
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6097
 
        wlarc=
6098
 
      else
6099
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6100
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6101
 
      fi
6102
 
      ;;
6103
 
 
6104
 
    solaris*)
6105
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6106
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6107
 
        cat <<_LT_EOF 1>&2
6108
 
 
6109
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6110
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6111
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6112
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6113
 
*** your PATH or compiler configuration so that the native linker is
6114
 
*** used, and then restart.
6115
 
 
6116
 
_LT_EOF
6117
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6118
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6119
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6120
 
      else
6121
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6122
 
      fi
6123
 
      ;;
6124
 
 
6125
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6126
 
      case `$LD -v 2>&1` in
6127
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6128
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6129
 
        cat <<_LT_EOF 1>&2
6130
 
 
6131
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6132
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
6133
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6134
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6135
 
*** your PATH or compiler configuration so that the native linker is
6136
 
*** used, and then restart.
6137
 
 
6138
 
_LT_EOF
6139
 
        ;;
6140
 
        *)
6141
 
          # For security reasons, it is highly recommended that you always
6142
 
          # use absolute paths for naming shared libraries, and exclude the
6143
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
6144
 
          # requires that you compile everything twice, which is a pain.
6145
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6146
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6147
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6148
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6149
 
          else
6150
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6151
 
          fi
6152
 
        ;;
6153
 
      esac
6154
 
      ;;
6155
 
 
6156
 
    sunos4*)
6157
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6158
 
      wlarc=
6159
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6160
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6161
 
      ;;
6162
 
 
6163
 
    *)
6164
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6165
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6166
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6167
 
      else
6168
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6169
 
      fi
6170
 
      ;;
6171
 
    esac
6172
 
 
6173
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6174
 
      runpath_var=
6175
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6176
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6177
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6178
 
    fi
6179
 
  else
6180
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6181
 
    case $host_os in
6182
 
    aix3*)
6183
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6184
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
6185
 
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6186
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6187
 
      # are no directories specified by -L.
6188
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6189
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6190
 
        # Neither direct hardcoding nor static linking is supported with a
6191
 
        # broken collect2.
6192
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6193
 
      fi
6194
 
      ;;
6195
 
 
6196
 
    aix[[4-9]]*)
6197
 
      if test "$host_cpu" = ia64; then
6198
 
        # On IA64, the linker does run time linking by default, so we don't
6199
 
        # have to do anything special.
6200
 
        aix_use_runtimelinking=no
6201
 
        exp_sym_flag='-Bexport'
6202
 
        no_entry_flag=""
6203
 
      else
6204
 
        # If we're using GNU nm, then we don't want the "-C" option.
6205
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6206
 
        # Also, AIX nm treats weak defined symbols like other global
6207
 
        # defined symbols, whereas GNU nm marks them as "W".
6208
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6209
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6210
 
        else
6211
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6212
 
        fi
6213
 
        aix_use_runtimelinking=no
6214
 
 
6215
 
        # Test if we are trying to use run time linking or normal
6216
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6217
 
        # need to do runtime linking.
6218
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6219
 
          for ld_flag in $LDFLAGS; do
6220
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6221
 
            aix_use_runtimelinking=yes
6222
 
            break
6223
 
          fi
6224
 
          done
6225
 
          ;;
6226
 
        esac
6227
 
 
6228
 
        exp_sym_flag='-bexport'
6229
 
        no_entry_flag='-bnoentry'
6230
 
      fi
6231
 
 
6232
 
      # When large executables or shared objects are built, AIX ld can
6233
 
      # have problems creating the table of contents.  If linking a library
6234
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6235
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6236
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6237
 
 
6238
 
      _LT_TAGVAR(archive_cmds, $1)=''
6239
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6240
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6241
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6242
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6243
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6244
 
 
6245
 
      if test "$GCC" = yes; then
6246
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6247
 
        # We only want to do this on AIX 4.2 and lower, the check
6248
 
        # below for broken collect2 doesn't work under 4.3+
6249
 
          collect2name=`${CC} -print-prog-name=collect2`
6250
 
          if test -f "$collect2name" &&
6251
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6252
 
          then
6253
 
          # We have reworked collect2
6254
 
          :
6255
 
          else
6256
 
          # We have old collect2
6257
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
6258
 
          # It fails to find uninstalled libraries when the uninstalled
6259
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6260
 
          # to unsupported forces relinking
6261
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6262
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6263
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6264
 
          fi
6265
 
          ;;
6266
 
        esac
6267
 
        shared_flag='-shared'
6268
 
        if test "$aix_use_runtimelinking" = yes; then
6269
 
          shared_flag="$shared_flag "'${wl}-G'
6270
 
        fi
6271
 
      else
6272
 
        # not using gcc
6273
 
        if test "$host_cpu" = ia64; then
6274
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6275
 
        # chokes on -Wl,-G. The following line is correct:
6276
 
          shared_flag='-G'
6277
 
        else
6278
 
          if test "$aix_use_runtimelinking" = yes; then
6279
 
            shared_flag='${wl}-G'
6280
 
          else
6281
 
            shared_flag='${wl}-bM:SRE'
6282
 
          fi
6283
 
        fi
6284
 
      fi
6285
 
 
6286
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6287
 
      # It seems that -bexpall does not export symbols beginning with
6288
 
      # underscore (_), so it is better to generate a list of symbols to export.
6289
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
6290
 
      if test "$aix_use_runtimelinking" = yes; then
6291
 
        # Warning - without using the other runtime loading flags (-brtl),
6292
 
        # -berok will link without error, but may produce a broken library.
6293
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6294
 
        # Determine the default libpath from the value encoded in an
6295
 
        # empty executable.
6296
 
        _LT_SYS_MODULE_PATH_AIX
6297
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6298
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6299
 
      else
6300
 
        if test "$host_cpu" = ia64; then
6301
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6302
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6303
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6304
 
        else
6305
 
         # Determine the default libpath from the value encoded in an
6306
 
         # empty executable.
6307
 
         _LT_SYS_MODULE_PATH_AIX
6308
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6309
 
          # Warning - without using the other run time loading flags,
6310
 
          # -berok will link without error, but may produce a broken library.
6311
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6312
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6313
 
          if test "$with_gnu_ld" = yes; then
6314
 
            # We only use this code for GNU lds that support --whole-archive.
6315
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6316
 
          else
6317
 
            # Exported symbols can be pulled into shared objects from archives
6318
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6319
 
          fi
6320
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6321
 
          # This is similar to how AIX traditionally builds its shared libraries.
6322
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6323
 
        fi
6324
 
      fi
6325
 
      ;;
6326
 
 
6327
 
    amigaos*)
6328
 
      case $host_cpu in
6329
 
      powerpc)
6330
 
            # see comment about AmigaOS4 .so support
6331
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
6333
 
        ;;
6334
 
      m68k)
6335
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6336
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6337
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6338
 
        ;;
6339
 
      esac
6340
 
      ;;
6341
 
 
6342
 
    bsdi[[45]]*)
6343
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6344
 
      ;;
6345
 
 
6346
 
    cygwin* | mingw* | pw32* | cegcc*)
6347
 
      # When not using gcc, we currently assume that we are using
6348
 
      # Microsoft Visual C++.
6349
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6350
 
      # no search path for DLLs.
6351
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6352
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6353
 
      # Tell ltmain to make .lib files, not .a files.
6354
 
      libext=lib
6355
 
      # Tell ltmain to make .dll files, not .so files.
6356
 
      shrext_cmds=".dll"
6357
 
      # FIXME: Setting linknames here is a bad hack.
6358
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6359
 
      # The linker will automatically build a .lib file if we build a DLL.
6360
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6361
 
      # FIXME: Should let the user specify the lib program.
6362
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6363
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6364
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6365
 
      ;;
6366
 
 
6367
 
    darwin* | rhapsody*)
6368
 
      _LT_DARWIN_LINKER_FEATURES($1)
6369
 
      ;;
6370
 
 
6371
 
    dgux*)
6372
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6373
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6374
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6375
 
      ;;
6376
 
 
6377
 
    freebsd1*)
6378
 
      _LT_TAGVAR(ld_shlibs, $1)=no
6379
 
      ;;
6380
 
 
6381
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6382
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6383
 
    # does not break anything, and helps significantly (at the cost of a little
6384
 
    # extra space).
6385
 
    freebsd2.2*)
6386
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6387
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6388
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6389
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6390
 
      ;;
6391
 
 
6392
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6393
 
    freebsd2*)
6394
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6395
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6396
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6397
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6398
 
      ;;
6399
 
 
6400
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6401
 
    freebsd* | dragonfly*)
6402
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6403
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6404
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6405
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6406
 
      ;;
6407
 
 
6408
 
    hpux9*)
6409
 
      if test "$GCC" = yes; then
6410
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6411
 
      else
6412
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6413
 
      fi
6414
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6415
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6416
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6417
 
 
6418
 
      # hardcode_minus_L: Not really in the search PATH,
6419
 
      # but as the default location of the library.
6420
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6421
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6422
 
      ;;
6423
 
 
6424
 
    hpux10*)
6425
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6426
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6427
 
      else
6428
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6429
 
      fi
6430
 
      if test "$with_gnu_ld" = no; then
6431
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6432
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6433
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6434
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6435
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6436
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6437
 
        # hardcode_minus_L: Not really in the search PATH,
6438
 
        # but as the default location of the library.
6439
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6440
 
      fi
6441
 
      ;;
6442
 
 
6443
 
    hpux11*)
6444
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6445
 
        case $host_cpu in
6446
 
        hppa*64*)
6447
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6448
 
          ;;
6449
 
        ia64*)
6450
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6451
 
          ;;
6452
 
        *)
6453
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6454
 
          ;;
6455
 
        esac
6456
 
      else
6457
 
        case $host_cpu in
6458
 
        hppa*64*)
6459
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6460
 
          ;;
6461
 
        ia64*)
6462
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6463
 
          ;;
6464
 
        *)
6465
 
        m4_if($1, [], [
6466
 
          # Older versions of the 11.00 compiler do not understand -b yet
6467
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
6468
 
          _LT_LINKER_OPTION([if $CC understands -b],
6469
 
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
6470
 
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6471
 
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
6472
 
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6473
 
          ;;
6474
 
        esac
6475
 
      fi
6476
 
      if test "$with_gnu_ld" = no; then
6477
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6478
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6479
 
 
6480
 
        case $host_cpu in
6481
 
        hppa*64*|ia64*)
6482
 
          _LT_TAGVAR(hardcode_direct, $1)=no
6483
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6484
 
          ;;
6485
 
        *)
6486
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6487
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6488
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6489
 
 
6490
 
          # hardcode_minus_L: Not really in the search PATH,
6491
 
          # but as the default location of the library.
6492
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6493
 
          ;;
6494
 
        esac
6495
 
      fi
6496
 
      ;;
6497
 
 
6498
 
    irix5* | irix6* | nonstopux*)
6499
 
      if test "$GCC" = yes; then
6500
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6501
 
        # Try to use the -exported_symbol ld option, if it does not
6502
 
        # work, assume that -exports_file does not work either and
6503
 
        # implicitly export all symbols.
6504
 
        save_LDFLAGS="$LDFLAGS"
6505
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6506
 
        AC_LINK_IFELSE(int foo(void) {},
6507
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6508
 
        )
6509
 
        LDFLAGS="$save_LDFLAGS"
6510
 
      else
6511
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6512
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6513
 
      fi
6514
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6515
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6516
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6517
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
6518
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6519
 
      ;;
6520
 
 
6521
 
    netbsd*)
6522
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6523
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6524
 
      else
6525
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6526
 
      fi
6527
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6528
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6529
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6530
 
      ;;
6531
 
 
6532
 
    newsos6)
6533
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6534
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6535
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6536
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6537
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6538
 
      ;;
6539
 
 
6540
 
    *nto* | *qnx*)
6541
 
      ;;
6542
 
 
6543
 
    openbsd*)
6544
 
      if test -f /usr/libexec/ld.so; then
6545
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6546
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6547
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6548
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6549
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6550
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6551
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6552
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6553
 
        else
6554
 
          case $host_os in
6555
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6556
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6557
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6558
 
             ;;
6559
 
           *)
6560
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6561
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6562
 
             ;;
6563
 
          esac
6564
 
        fi
6565
 
      else
6566
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6567
 
      fi
6568
 
      ;;
6569
 
 
6570
 
    os2*)
6571
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6572
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6573
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6574
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6575
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6576
 
      ;;
6577
 
 
6578
 
    osf3*)
6579
 
      if test "$GCC" = yes; then
6580
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6581
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6582
 
      else
6583
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6584
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6585
 
      fi
6586
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6587
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6588
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6589
 
      ;;
6590
 
 
6591
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6592
 
      if test "$GCC" = yes; then
6593
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6594
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6595
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6596
 
      else
6597
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6598
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6599
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6600
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6601
 
 
6602
 
        # Both c and cxx compiler support -rpath directly
6603
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6604
 
      fi
6605
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6606
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6607
 
      ;;
6608
 
 
6609
 
    solaris*)
6610
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6611
 
      if test "$GCC" = yes; then
6612
 
        wlarc='${wl}'
6613
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6614
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6615
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6616
 
      else
6617
 
        case `$CC -V 2>&1` in
6618
 
        *"Compilers 5.0"*)
6619
 
          wlarc=''
6620
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6621
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6622
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6623
 
          ;;
6624
 
        *)
6625
 
          wlarc='${wl}'
6626
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6627
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6628
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6629
 
          ;;
6630
 
        esac
6631
 
      fi
6632
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6633
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6634
 
      case $host_os in
6635
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6636
 
      *)
6637
 
        # The compiler driver will combine and reorder linker options,
6638
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6639
 
        # but is careful enough not to reorder.
6640
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6641
 
        if test "$GCC" = yes; then
6642
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6643
 
        else
6644
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6645
 
        fi
6646
 
        ;;
6647
 
      esac
6648
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6649
 
      ;;
6650
 
 
6651
 
    sunos4*)
6652
 
      if test "x$host_vendor" = xsequent; then
6653
 
        # Use $CC to link under sequent, because it throws in some extra .o
6654
 
        # files that make .init and .fini sections work.
6655
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6656
 
      else
6657
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6658
 
      fi
6659
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6660
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6661
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6662
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6663
 
      ;;
6664
 
 
6665
 
    sysv4)
6666
 
      case $host_vendor in
6667
 
        sni)
6668
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6669
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6670
 
        ;;
6671
 
        siemens)
6672
 
          ## LD is ld it makes a PLAMLIB
6673
 
          ## CC just makes a GrossModule.
6674
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6675
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6676
 
          _LT_TAGVAR(hardcode_direct, $1)=no
6677
 
        ;;
6678
 
        motorola)
6679
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6680
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6681
 
        ;;
6682
 
      esac
6683
 
      runpath_var='LD_RUN_PATH'
6684
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6685
 
      ;;
6686
 
 
6687
 
    sysv4.3*)
6688
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6689
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6690
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6691
 
      ;;
6692
 
 
6693
 
    sysv4*MP*)
6694
 
      if test -d /usr/nec; then
6695
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6696
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6697
 
        runpath_var=LD_RUN_PATH
6698
 
        hardcode_runpath_var=yes
6699
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6700
 
      fi
6701
 
      ;;
6702
 
 
6703
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6704
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6705
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6706
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6707
 
      runpath_var='LD_RUN_PATH'
6708
 
 
6709
 
      if test "$GCC" = yes; then
6710
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6711
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6712
 
      else
6713
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6714
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6715
 
      fi
6716
 
      ;;
6717
 
 
6718
 
    sysv5* | sco3.2v5* | sco5v6*)
6719
 
      # Note: We can NOT use -z defs as we might desire, because we do not
6720
 
      # link with -lc, and that would cause any symbols used from libc to
6721
 
      # always be unresolved, which means just about no library would
6722
 
      # ever link correctly.  If we're not using GNU ld we use -z text
6723
 
      # though, which does catch some bad symbols but isn't as heavy-handed
6724
 
      # as -z defs.
6725
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6726
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6727
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6728
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6729
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6730
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6731
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6732
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6733
 
      runpath_var='LD_RUN_PATH'
6734
 
 
6735
 
      if test "$GCC" = yes; then
6736
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6737
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6738
 
      else
6739
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6740
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6741
 
      fi
6742
 
      ;;
6743
 
 
6744
 
    uts4*)
6745
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6746
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6747
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6748
 
      ;;
6749
 
 
6750
 
    *)
6751
 
      _LT_TAGVAR(ld_shlibs, $1)=no
6752
 
      ;;
6753
 
    esac
6754
 
 
6755
 
    if test x$host_vendor = xsni; then
6756
 
      case $host in
6757
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6758
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6759
 
        ;;
6760
 
      esac
6761
 
    fi
6762
 
  fi
6763
 
])
6764
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6765
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6766
 
 
6767
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6768
 
 
6769
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6770
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6771
 
_LT_DECL([], [extract_expsyms_cmds], [2],
6772
 
    [The commands to extract the exported symbol list from a shared archive])
6773
 
 
6774
 
#
6775
 
# Do we need to explicitly link libc?
6776
 
#
6777
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6778
 
x|xyes)
6779
 
  # Assume -lc should be added
6780
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6781
 
 
6782
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6783
 
    case $_LT_TAGVAR(archive_cmds, $1) in
6784
 
    *'~'*)
6785
 
      # FIXME: we may have to deal with multi-command sequences.
6786
 
      ;;
6787
 
    '$CC '*)
6788
 
      # Test whether the compiler implicitly links with -lc since on some
6789
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6790
 
      # to ld, don't add -lc before -lgcc.
6791
 
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6792
 
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6793
 
        [$RM conftest*
6794
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6795
 
 
6796
 
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6797
 
          soname=conftest
6798
 
          lib=conftest
6799
 
          libobjs=conftest.$ac_objext
6800
 
          deplibs=
6801
 
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6802
 
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6803
 
          compiler_flags=-v
6804
 
          linker_flags=-v
6805
 
          verstring=
6806
 
          output_objdir=.
6807
 
          libname=conftest
6808
 
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6809
 
          _LT_TAGVAR(allow_undefined_flag, $1)=
6810
 
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6811
 
          then
6812
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6813
 
          else
6814
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6815
 
          fi
6816
 
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6817
 
        else
6818
 
          cat conftest.err 1>&5
6819
 
        fi
6820
 
        $RM conftest*
6821
 
        ])
6822
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6823
 
      ;;
6824
 
    esac
6825
 
  fi
6826
 
  ;;
6827
 
esac
6828
 
 
6829
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6830
 
    [Whether or not to add -lc for building shared libraries])
6831
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6832
 
    [enable_shared_with_static_runtimes], [0],
6833
 
    [Whether or not to disallow shared libs when runtime libs are static])
6834
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6835
 
    [Compiler flag to allow reflexive dlopens])
6836
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6837
 
    [Compiler flag to generate shared objects directly from archives])
6838
 
_LT_TAGDECL([], [compiler_needs_object], [1],
6839
 
    [Whether the compiler copes with passing no objects directly])
6840
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6841
 
    [Create an old-style archive from a shared archive])
6842
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6843
 
    [Create a temporary old-style archive to link instead of a shared archive])
6844
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6845
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6846
 
_LT_TAGDECL([], [module_cmds], [2],
6847
 
    [Commands used to build a loadable module if different from building
6848
 
    a shared archive.])
6849
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
6850
 
_LT_TAGDECL([], [with_gnu_ld], [1],
6851
 
    [Whether we are building with GNU ld or not])
6852
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
6853
 
    [Flag that allows shared libraries with undefined symbols to be built])
6854
 
_LT_TAGDECL([], [no_undefined_flag], [1],
6855
 
    [Flag that enforces no undefined symbols])
6856
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6857
 
    [Flag to hardcode $libdir into a binary during linking.
6858
 
    This must work even if $libdir does not exist])
6859
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6860
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6861
 
    during linking.  This must work even if $libdir does not exist]])
6862
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6863
 
    [Whether we need a single "-rpath" flag with a separated argument])
6864
 
_LT_TAGDECL([], [hardcode_direct], [0],
6865
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6866
 
    DIR into the resulting binary])
6867
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6868
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6869
 
    DIR into the resulting binary and the resulting library dependency is
6870
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6871
 
    library is relocated])
6872
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
6873
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6874
 
    into the resulting binary])
6875
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6876
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6877
 
    into the resulting binary])
6878
 
_LT_TAGDECL([], [hardcode_automatic], [0],
6879
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
6880
 
    into the library and all subsequent libraries and executables linked
6881
 
    against it])
6882
 
_LT_TAGDECL([], [inherit_rpath], [0],
6883
 
    [Set to yes if linker adds runtime paths of dependent libraries
6884
 
    to runtime path list])
6885
 
_LT_TAGDECL([], [link_all_deplibs], [0],
6886
 
    [Whether libtool must link a program against all its dependency libraries])
6887
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6888
 
    [Fix the shell variable $srcfile for the compiler])
6889
 
_LT_TAGDECL([], [always_export_symbols], [0],
6890
 
    [Set to "yes" if exported symbols are required])
6891
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
6892
 
    [The commands to list exported symbols])
6893
 
_LT_TAGDECL([], [exclude_expsyms], [1],
6894
 
    [Symbols that should not be listed in the preloaded symbols])
6895
 
_LT_TAGDECL([], [include_expsyms], [1],
6896
 
    [Symbols that must always be exported])
6897
 
_LT_TAGDECL([], [prelink_cmds], [2],
6898
 
    [Commands necessary for linking programs (against libraries) with templates])
6899
 
_LT_TAGDECL([], [file_list_spec], [1],
6900
 
    [Specify filename containing input files])
6901
 
dnl FIXME: Not yet implemented
6902
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6903
 
dnl    [Compiler flag to generate thread safe objects])
6904
 
])# _LT_LINKER_SHLIBS
6905
 
 
6906
 
 
6907
 
# _LT_LANG_C_CONFIG([TAG])
6908
 
# ------------------------
6909
 
# Ensure that the configuration variables for a C compiler are suitably
6910
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6911
 
# the compiler configuration to `libtool'.
6912
 
m4_defun([_LT_LANG_C_CONFIG],
6913
 
[m4_require([_LT_DECL_EGREP])dnl
6914
 
lt_save_CC="$CC"
6915
 
AC_LANG_PUSH(C)
6916
 
 
6917
 
# Source file extension for C test sources.
6918
 
ac_ext=c
6919
 
 
6920
 
# Object file extension for compiled C test sources.
6921
 
objext=o
6922
 
_LT_TAGVAR(objext, $1)=$objext
6923
 
 
6924
 
# Code to be used in simple compile tests
6925
 
lt_simple_compile_test_code="int some_variable = 0;"
6926
 
 
6927
 
# Code to be used in simple link tests
6928
 
lt_simple_link_test_code='int main(){return(0);}'
6929
 
 
6930
 
_LT_TAG_COMPILER
6931
 
# Save the default compiler, since it gets overwritten when the other
6932
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6933
 
compiler_DEFAULT=$CC
6934
 
 
6935
 
# save warnings/boilerplate of simple test code
6936
 
_LT_COMPILER_BOILERPLATE
6937
 
_LT_LINKER_BOILERPLATE
6938
 
 
6939
 
if test -n "$compiler"; then
6940
 
  _LT_COMPILER_NO_RTTI($1)
6941
 
  _LT_COMPILER_PIC($1)
6942
 
  _LT_COMPILER_C_O($1)
6943
 
  _LT_COMPILER_FILE_LOCKS($1)
6944
 
  _LT_LINKER_SHLIBS($1)
6945
 
  _LT_SYS_DYNAMIC_LINKER($1)
6946
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
6947
 
  LT_SYS_DLOPEN_SELF
6948
 
  _LT_CMD_STRIPLIB
6949
 
 
6950
 
  # Report which library types will actually be built
6951
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
6952
 
  AC_MSG_RESULT([$can_build_shared])
6953
 
 
6954
 
  AC_MSG_CHECKING([whether to build shared libraries])
6955
 
  test "$can_build_shared" = "no" && enable_shared=no
6956
 
 
6957
 
  # On AIX, shared libraries and static libraries use the same namespace, and
6958
 
  # are all built from PIC.
6959
 
  case $host_os in
6960
 
  aix3*)
6961
 
    test "$enable_shared" = yes && enable_static=no
6962
 
    if test -n "$RANLIB"; then
6963
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6964
 
      postinstall_cmds='$RANLIB $lib'
6965
 
    fi
6966
 
    ;;
6967
 
 
6968
 
  aix[[4-9]]*)
6969
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6970
 
      test "$enable_shared" = yes && enable_static=no
6971
 
    fi
6972
 
    ;;
6973
 
  esac
6974
 
  AC_MSG_RESULT([$enable_shared])
6975
 
 
6976
 
  AC_MSG_CHECKING([whether to build static libraries])
6977
 
  # Make sure either enable_shared or enable_static is yes.
6978
 
  test "$enable_shared" = yes || enable_static=yes
6979
 
  AC_MSG_RESULT([$enable_static])
6980
 
 
6981
 
  _LT_CONFIG($1)
6982
 
fi
6983
 
AC_LANG_POP
6984
 
CC="$lt_save_CC"
6985
 
])# _LT_LANG_C_CONFIG
6986
 
 
6987
 
 
6988
 
# _LT_LANG_CXX_CONFIG([TAG])
6989
 
# --------------------------
6990
 
# Ensure that the configuration variables for a C++ compiler are suitably
6991
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6992
 
# the compiler configuration to `libtool'.
6993
 
m4_defun([_LT_LANG_CXX_CONFIG],
6994
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6995
 
m4_require([_LT_DECL_EGREP])dnl
6996
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6997
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6998
 
    (test "X$CXX" != "Xg++"))) ; then
6999
 
  AC_PROG_CXXCPP
7000
 
else
7001
 
  _lt_caught_CXX_error=yes
7002
 
fi
7003
 
 
7004
 
AC_LANG_PUSH(C++)
7005
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7006
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7007
 
_LT_TAGVAR(always_export_symbols, $1)=no
7008
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7009
 
_LT_TAGVAR(compiler_needs_object, $1)=no
7010
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7011
 
_LT_TAGVAR(hardcode_direct, $1)=no
7012
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7013
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7014
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7015
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7016
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7017
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7018
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7019
 
_LT_TAGVAR(inherit_rpath, $1)=no
7020
 
_LT_TAGVAR(module_cmds, $1)=
7021
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7022
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7023
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7024
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7025
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7026
 
_LT_TAGVAR(no_undefined_flag, $1)=
7027
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7028
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7029
 
 
7030
 
# Source file extension for C++ test sources.
7031
 
ac_ext=cpp
7032
 
 
7033
 
# Object file extension for compiled C++ test sources.
7034
 
objext=o
7035
 
_LT_TAGVAR(objext, $1)=$objext
7036
 
 
7037
 
# No sense in running all these tests if we already determined that
7038
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
7039
 
# are currently assumed to apply to all compilers on this platform,
7040
 
# and will be corrupted by setting them based on a non-working compiler.
7041
 
if test "$_lt_caught_CXX_error" != yes; then
7042
 
  # Code to be used in simple compile tests
7043
 
  lt_simple_compile_test_code="int some_variable = 0;"
7044
 
 
7045
 
  # Code to be used in simple link tests
7046
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7047
 
 
7048
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7049
 
  _LT_TAG_COMPILER
7050
 
 
7051
 
  # save warnings/boilerplate of simple test code
7052
 
  _LT_COMPILER_BOILERPLATE
7053
 
  _LT_LINKER_BOILERPLATE
7054
 
 
7055
 
  # Allow CC to be a program name with arguments.
7056
 
  lt_save_CC=$CC
7057
 
  lt_save_LD=$LD
7058
 
  lt_save_GCC=$GCC
7059
 
  GCC=$GXX
7060
 
  lt_save_with_gnu_ld=$with_gnu_ld
7061
 
  lt_save_path_LD=$lt_cv_path_LD
7062
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7063
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7064
 
  else
7065
 
    $as_unset lt_cv_prog_gnu_ld
7066
 
  fi
7067
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
7068
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
7069
 
  else
7070
 
    $as_unset lt_cv_path_LD
7071
 
  fi
7072
 
  test -z "${LDCXX+set}" || LD=$LDCXX
7073
 
  CC=${CXX-"c++"}
7074
 
  compiler=$CC
7075
 
  _LT_TAGVAR(compiler, $1)=$CC
7076
 
  _LT_CC_BASENAME([$compiler])
7077
 
 
7078
 
  if test -n "$compiler"; then
7079
 
    # We don't want -fno-exception when compiling C++ code, so set the
7080
 
    # no_builtin_flag separately
7081
 
    if test "$GXX" = yes; then
7082
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7083
 
    else
7084
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7085
 
    fi
7086
 
 
7087
 
    if test "$GXX" = yes; then
7088
 
      # Set up default GNU C++ configuration
7089
 
 
7090
 
      LT_PATH_LD
7091
 
 
7092
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
7093
 
      # archiving commands below assume that GNU ld is being used.
7094
 
      if test "$with_gnu_ld" = yes; then
7095
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7096
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7097
 
 
7098
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7099
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7100
 
 
7101
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
7102
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7103
 
        #     investigate it a little bit more. (MM)
7104
 
        wlarc='${wl}'
7105
 
 
7106
 
        # ancient GNU ld didn't support --whole-archive et. al.
7107
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7108
 
          $GREP 'no-whole-archive' > /dev/null; then
7109
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7110
 
        else
7111
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
7112
 
        fi
7113
 
      else
7114
 
        with_gnu_ld=no
7115
 
        wlarc=
7116
 
 
7117
 
        # A generic and very simple default shared library creation
7118
 
        # command for GNU C++ for the case where it uses the native
7119
 
        # linker, instead of GNU ld.  If possible, this setting should
7120
 
        # overridden to take advantage of the native linker features on
7121
 
        # the platform it is being used on.
7122
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7123
 
      fi
7124
 
 
7125
 
      # Commands to make compiler produce verbose output that lists
7126
 
      # what "hidden" libraries, object files and flags are used when
7127
 
      # linking a shared library.
7128
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7129
 
 
7130
 
    else
7131
 
      GXX=no
7132
 
      with_gnu_ld=no
7133
 
      wlarc=
7134
 
    fi
7135
 
 
7136
 
    # PORTME: fill in a description of your system's C++ link characteristics
7137
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7138
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
7139
 
    case $host_os in
7140
 
      aix3*)
7141
 
        # FIXME: insert proper C++ library support
7142
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7143
 
        ;;
7144
 
      aix[[4-9]]*)
7145
 
        if test "$host_cpu" = ia64; then
7146
 
          # On IA64, the linker does run time linking by default, so we don't
7147
 
          # have to do anything special.
7148
 
          aix_use_runtimelinking=no
7149
 
          exp_sym_flag='-Bexport'
7150
 
          no_entry_flag=""
7151
 
        else
7152
 
          aix_use_runtimelinking=no
7153
 
 
7154
 
          # Test if we are trying to use run time linking or normal
7155
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7156
 
          # need to do runtime linking.
7157
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7158
 
            for ld_flag in $LDFLAGS; do
7159
 
              case $ld_flag in
7160
 
              *-brtl*)
7161
 
                aix_use_runtimelinking=yes
7162
 
                break
7163
 
                ;;
7164
 
              esac
7165
 
            done
7166
 
            ;;
7167
 
          esac
7168
 
 
7169
 
          exp_sym_flag='-bexport'
7170
 
          no_entry_flag='-bnoentry'
7171
 
        fi
7172
 
 
7173
 
        # When large executables or shared objects are built, AIX ld can
7174
 
        # have problems creating the table of contents.  If linking a library
7175
 
        # or program results in "error TOC overflow" add -mminimal-toc to
7176
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7177
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7178
 
 
7179
 
        _LT_TAGVAR(archive_cmds, $1)=''
7180
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
7181
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7182
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7183
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7184
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7185
 
 
7186
 
        if test "$GXX" = yes; then
7187
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
7188
 
          # We only want to do this on AIX 4.2 and lower, the check
7189
 
          # below for broken collect2 doesn't work under 4.3+
7190
 
          collect2name=`${CC} -print-prog-name=collect2`
7191
 
          if test -f "$collect2name" &&
7192
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7193
 
          then
7194
 
            # We have reworked collect2
7195
 
            :
7196
 
          else
7197
 
            # We have old collect2
7198
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
7199
 
            # It fails to find uninstalled libraries when the uninstalled
7200
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
7201
 
            # to unsupported forces relinking
7202
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
7203
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7204
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
7205
 
          fi
7206
 
          esac
7207
 
          shared_flag='-shared'
7208
 
          if test "$aix_use_runtimelinking" = yes; then
7209
 
            shared_flag="$shared_flag "'${wl}-G'
7210
 
          fi
7211
 
        else
7212
 
          # not using gcc
7213
 
          if test "$host_cpu" = ia64; then
7214
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7215
 
          # chokes on -Wl,-G. The following line is correct:
7216
 
          shared_flag='-G'
7217
 
          else
7218
 
            if test "$aix_use_runtimelinking" = yes; then
7219
 
              shared_flag='${wl}-G'
7220
 
            else
7221
 
              shared_flag='${wl}-bM:SRE'
7222
 
            fi
7223
 
          fi
7224
 
        fi
7225
 
 
7226
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7227
 
        # It seems that -bexpall does not export symbols beginning with
7228
 
        # underscore (_), so it is better to generate a list of symbols to
7229
 
        # export.
7230
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
7231
 
        if test "$aix_use_runtimelinking" = yes; then
7232
 
          # Warning - without using the other runtime loading flags (-brtl),
7233
 
          # -berok will link without error, but may produce a broken library.
7234
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7235
 
          # Determine the default libpath from the value encoded in an empty
7236
 
          # executable.
7237
 
          _LT_SYS_MODULE_PATH_AIX
7238
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7239
 
 
7240
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7241
 
        else
7242
 
          if test "$host_cpu" = ia64; then
7243
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7244
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7245
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7246
 
          else
7247
 
            # Determine the default libpath from the value encoded in an
7248
 
            # empty executable.
7249
 
            _LT_SYS_MODULE_PATH_AIX
7250
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7251
 
            # Warning - without using the other run time loading flags,
7252
 
            # -berok will link without error, but may produce a broken library.
7253
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7254
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7255
 
            if test "$with_gnu_ld" = yes; then
7256
 
              # We only use this code for GNU lds that support --whole-archive.
7257
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7258
 
            else
7259
 
              # Exported symbols can be pulled into shared objects from archives
7260
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7261
 
            fi
7262
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7263
 
            # This is similar to how AIX traditionally builds its shared
7264
 
            # libraries.
7265
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7266
 
          fi
7267
 
        fi
7268
 
        ;;
7269
 
 
7270
 
      beos*)
7271
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7272
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7273
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7274
 
          # support --undefined.  This deserves some investigation.  FIXME
7275
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7276
 
        else
7277
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7278
 
        fi
7279
 
        ;;
7280
 
 
7281
 
      chorus*)
7282
 
        case $cc_basename in
7283
 
          *)
7284
 
          # FIXME: insert proper C++ library support
7285
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7286
 
          ;;
7287
 
        esac
7288
 
        ;;
7289
 
 
7290
 
      cygwin* | mingw* | pw32* | cegcc*)
7291
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7292
 
        # as there is no search path for DLLs.
7293
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7294
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7295
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7296
 
        _LT_TAGVAR(always_export_symbols, $1)=no
7297
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7298
 
 
7299
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7300
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7301
 
          # If the export-symbols file already is a .def file (1st line
7302
 
          # is EXPORTS), use it as is; otherwise, prepend...
7303
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7304
 
            cp $export_symbols $output_objdir/$soname.def;
7305
 
          else
7306
 
            echo EXPORTS > $output_objdir/$soname.def;
7307
 
            cat $export_symbols >> $output_objdir/$soname.def;
7308
 
          fi~
7309
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7310
 
        else
7311
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7312
 
        fi
7313
 
        ;;
7314
 
      darwin* | rhapsody*)
7315
 
        _LT_DARWIN_LINKER_FEATURES($1)
7316
 
        ;;
7317
 
 
7318
 
      dgux*)
7319
 
        case $cc_basename in
7320
 
          ec++*)
7321
 
            # FIXME: insert proper C++ library support
7322
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7323
 
            ;;
7324
 
          ghcx*)
7325
 
            # Green Hills C++ Compiler
7326
 
            # FIXME: insert proper C++ library support
7327
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7328
 
            ;;
7329
 
          *)
7330
 
            # FIXME: insert proper C++ library support
7331
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7332
 
            ;;
7333
 
        esac
7334
 
        ;;
7335
 
 
7336
 
      freebsd[[12]]*)
7337
 
        # C++ shared libraries reported to be fairly broken before
7338
 
        # switch to ELF
7339
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7340
 
        ;;
7341
 
 
7342
 
      freebsd-elf*)
7343
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7344
 
        ;;
7345
 
 
7346
 
      freebsd* | dragonfly*)
7347
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7348
 
        # conventions
7349
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
7350
 
        ;;
7351
 
 
7352
 
      gnu*)
7353
 
        ;;
7354
 
 
7355
 
      haiku*)
7356
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7358
 
        ;;
7359
 
 
7360
 
      hpux9*)
7361
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7362
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7363
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7364
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
7365
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7366
 
                                             # but as the default
7367
 
                                             # location of the library.
7368
 
 
7369
 
        case $cc_basename in
7370
 
          CC*)
7371
 
            # FIXME: insert proper C++ library support
7372
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7373
 
            ;;
7374
 
          aCC*)
7375
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7376
 
            # Commands to make compiler produce verbose output that lists
7377
 
            # what "hidden" libraries, object files and flags are used when
7378
 
            # linking a shared library.
7379
 
            #
7380
 
            # There doesn't appear to be a way to prevent this compiler from
7381
 
            # explicitly linking system object files so we need to strip them
7382
 
            # from the output so that they don't get included in the library
7383
 
            # dependencies.
7384
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7385
 
            ;;
7386
 
          *)
7387
 
            if test "$GXX" = yes; then
7388
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7389
 
            else
7390
 
              # FIXME: insert proper C++ library support
7391
 
              _LT_TAGVAR(ld_shlibs, $1)=no
7392
 
            fi
7393
 
            ;;
7394
 
        esac
7395
 
        ;;
7396
 
 
7397
 
      hpux10*|hpux11*)
7398
 
        if test $with_gnu_ld = no; then
7399
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7400
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7401
 
 
7402
 
          case $host_cpu in
7403
 
            hppa*64*|ia64*)
7404
 
              ;;
7405
 
            *)
7406
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7407
 
              ;;
7408
 
          esac
7409
 
        fi
7410
 
        case $host_cpu in
7411
 
          hppa*64*|ia64*)
7412
 
            _LT_TAGVAR(hardcode_direct, $1)=no
7413
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7414
 
            ;;
7415
 
          *)
7416
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
7417
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7418
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7419
 
                                                 # but as the default
7420
 
                                                 # location of the library.
7421
 
            ;;
7422
 
        esac
7423
 
 
7424
 
        case $cc_basename in
7425
 
          CC*)
7426
 
            # FIXME: insert proper C++ library support
7427
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7428
 
            ;;
7429
 
          aCC*)
7430
 
            case $host_cpu in
7431
 
              hppa*64*)
7432
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7433
 
                ;;
7434
 
              ia64*)
7435
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7436
 
                ;;
7437
 
              *)
7438
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7439
 
                ;;
7440
 
            esac
7441
 
            # Commands to make compiler produce verbose output that lists
7442
 
            # what "hidden" libraries, object files and flags are used when
7443
 
            # linking a shared library.
7444
 
            #
7445
 
            # There doesn't appear to be a way to prevent this compiler from
7446
 
            # explicitly linking system object files so we need to strip them
7447
 
            # from the output so that they don't get included in the library
7448
 
            # dependencies.
7449
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7450
 
            ;;
7451
 
          *)
7452
 
            if test "$GXX" = yes; then
7453
 
              if test $with_gnu_ld = no; then
7454
 
                case $host_cpu in
7455
 
                  hppa*64*)
7456
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7457
 
                    ;;
7458
 
                  ia64*)
7459
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7460
 
                    ;;
7461
 
                  *)
7462
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7463
 
                    ;;
7464
 
                esac
7465
 
              fi
7466
 
            else
7467
 
              # FIXME: insert proper C++ library support
7468
 
              _LT_TAGVAR(ld_shlibs, $1)=no
7469
 
            fi
7470
 
            ;;
7471
 
        esac
7472
 
        ;;
7473
 
 
7474
 
      interix[[3-9]]*)
7475
 
        _LT_TAGVAR(hardcode_direct, $1)=no
7476
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7477
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7478
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7479
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7480
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
7481
 
        # default) and relocated if they conflict, which is a slow very memory
7482
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
7483
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7484
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7485
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7486
 
        _LT_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'
7487
 
        ;;
7488
 
      irix5* | irix6*)
7489
 
        case $cc_basename in
7490
 
          CC*)
7491
 
            # SGI C++
7492
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7493
 
 
7494
 
            # Archives containing C++ object files must be created using
7495
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7496
 
            # necessary to make sure instantiated templates are included
7497
 
            # in the archive.
7498
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7499
 
            ;;
7500
 
          *)
7501
 
            if test "$GXX" = yes; then
7502
 
              if test "$with_gnu_ld" = no; then
7503
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7504
 
              else
7505
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
7506
 
              fi
7507
 
            fi
7508
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7509
 
            ;;
7510
 
        esac
7511
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7512
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7513
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
7514
 
        ;;
7515
 
 
7516
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
7517
 
        case $cc_basename in
7518
 
          KCC*)
7519
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7520
 
 
7521
 
            # KCC will only create a shared library if the output file
7522
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
7523
 
            # to its proper name (with version) after linking.
7524
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7525
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7526
 
            # Commands to make compiler produce verbose output that lists
7527
 
            # what "hidden" libraries, object files and flags are used when
7528
 
            # linking a shared library.
7529
 
            #
7530
 
            # There doesn't appear to be a way to prevent this compiler from
7531
 
            # explicitly linking system object files so we need to strip them
7532
 
            # from the output so that they don't get included in the library
7533
 
            # dependencies.
7534
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7535
 
 
7536
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7537
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7538
 
 
7539
 
            # Archives containing C++ object files must be created using
7540
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7541
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7542
 
            ;;
7543
 
          icpc* | ecpc* )
7544
 
            # Intel C++
7545
 
            with_gnu_ld=yes
7546
 
            # version 8.0 and above of icpc choke on multiply defined symbols
7547
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
7548
 
            # earlier do not add the objects themselves.
7549
 
            case `$CC -V 2>&1` in
7550
 
              *"Version 7."*)
7551
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7553
 
                ;;
7554
 
              *)  # Version 8.0 or newer
7555
 
                tmp_idyn=
7556
 
                case $host_cpu in
7557
 
                  ia64*) tmp_idyn=' -i_dynamic';;
7558
 
                esac
7559
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7560
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7561
 
                ;;
7562
 
            esac
7563
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7564
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7565
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7566
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7567
 
            ;;
7568
 
          pgCC* | pgcpp*)
7569
 
            # Portland Group C++ compiler
7570
 
            case `$CC -V` in
7571
 
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7572
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7573
 
                rm -rf $tpldir~
7574
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7575
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7576
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7577
 
                rm -rf $tpldir~
7578
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7579
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7580
 
                $RANLIB $oldlib'
7581
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7582
 
                rm -rf $tpldir~
7583
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7584
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7585
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7586
 
                rm -rf $tpldir~
7587
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7588
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7589
 
              ;;
7590
 
            *) # Version 6 and above use weak symbols
7591
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7592
 
              _LT_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'
7593
 
              ;;
7594
 
            esac
7595
 
 
7596
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7597
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7598
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7599
 
            ;;
7600
 
          cxx*)
7601
 
            # Compaq C++
7602
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7603
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7604
 
 
7605
 
            runpath_var=LD_RUN_PATH
7606
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7607
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7608
 
 
7609
 
            # Commands to make compiler produce verbose output that lists
7610
 
            # what "hidden" libraries, object files and flags are used when
7611
 
            # linking a shared library.
7612
 
            #
7613
 
            # There doesn't appear to be a way to prevent this compiler from
7614
 
            # explicitly linking system object files so we need to strip them
7615
 
            # from the output so that they don't get included in the library
7616
 
            # dependencies.
7617
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
7618
 
            ;;
7619
 
          xl* | mpixl* | bgxl*)
7620
 
            # IBM XL 8.0 on PPC, with GNU ld
7621
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7622
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7623
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7624
 
            if test "x$supports_anon_versioning" = xyes; then
7625
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7626
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7627
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
7628
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7629
 
            fi
7630
 
            ;;
7631
 
          *)
7632
 
            case `$CC -V 2>&1 | sed 5q` in
7633
 
            *Sun\ C*)
7634
 
              # Sun C++ 5.9
7635
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7636
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7637
 
              _LT_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'
7638
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7639
 
              _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7640
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7641
 
 
7642
 
              # Not sure whether something based on
7643
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7644
 
              # would be better.
7645
 
              output_verbose_link_cmd='func_echo_all'
7646
 
 
7647
 
              # Archives containing C++ object files must be created using
7648
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7649
 
              # necessary to make sure instantiated templates are included
7650
 
              # in the archive.
7651
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7652
 
              ;;
7653
 
            esac
7654
 
            ;;
7655
 
        esac
7656
 
        ;;
7657
 
 
7658
 
      lynxos*)
7659
 
        # FIXME: insert proper C++ library support
7660
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7661
 
        ;;
7662
 
 
7663
 
      m88k*)
7664
 
        # FIXME: insert proper C++ library support
7665
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7666
 
        ;;
7667
 
 
7668
 
      mvs*)
7669
 
        case $cc_basename in
7670
 
          cxx*)
7671
 
            # FIXME: insert proper C++ library support
7672
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7673
 
            ;;
7674
 
          *)
7675
 
            # FIXME: insert proper C++ library support
7676
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7677
 
            ;;
7678
 
        esac
7679
 
        ;;
7680
 
 
7681
 
      netbsd*)
7682
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7683
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7684
 
          wlarc=
7685
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7686
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
7687
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7688
 
        fi
7689
 
        # Workaround some broken pre-1.5 toolchains
7690
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7691
 
        ;;
7692
 
 
7693
 
      *nto* | *qnx*)
7694
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
7695
 
        ;;
7696
 
 
7697
 
      openbsd2*)
7698
 
        # C++ shared libraries are fairly broken
7699
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7700
 
        ;;
7701
 
 
7702
 
      openbsd*)
7703
 
        if test -f /usr/libexec/ld.so; then
7704
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
7705
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7706
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7707
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7708
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7709
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7710
 
            _LT_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'
7711
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7712
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7713
 
          fi
7714
 
          output_verbose_link_cmd=func_echo_all
7715
 
        else
7716
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7717
 
        fi
7718
 
        ;;
7719
 
 
7720
 
      osf3* | osf4* | osf5*)
7721
 
        case $cc_basename in
7722
 
          KCC*)
7723
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
7724
 
 
7725
 
            # KCC will only create a shared library if the output file
7726
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
7727
 
            # to its proper name (with version) after linking.
7728
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7729
 
 
7730
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7731
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7732
 
 
7733
 
            # Archives containing C++ object files must be created using
7734
 
            # the KAI C++ compiler.
7735
 
            case $host in
7736
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7737
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7738
 
            esac
7739
 
            ;;
7740
 
          RCC*)
7741
 
            # Rational C++ 2.4.1
7742
 
            # FIXME: insert proper C++ library support
7743
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7744
 
            ;;
7745
 
          cxx*)
7746
 
            case $host in
7747
 
              osf3*)
7748
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7749
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7750
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7751
 
                ;;
7752
 
              *)
7753
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7754
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7755
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7756
 
                  echo "-hidden">> $lib.exp~
7757
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
7758
 
                  $RM $lib.exp'
7759
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7760
 
                ;;
7761
 
            esac
7762
 
 
7763
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7764
 
 
7765
 
            # Commands to make compiler produce verbose output that lists
7766
 
            # what "hidden" libraries, object files and flags are used when
7767
 
            # linking a shared library.
7768
 
            #
7769
 
            # There doesn't appear to be a way to prevent this compiler from
7770
 
            # explicitly linking system object files so we need to strip them
7771
 
            # from the output so that they don't get included in the library
7772
 
            # dependencies.
7773
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
7774
 
            ;;
7775
 
          *)
7776
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7777
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7778
 
              case $host in
7779
 
                osf3*)
7780
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7781
 
                  ;;
7782
 
                *)
7783
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7784
 
                  ;;
7785
 
              esac
7786
 
 
7787
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7788
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7789
 
 
7790
 
              # Commands to make compiler produce verbose output that lists
7791
 
              # what "hidden" libraries, object files and flags are used when
7792
 
              # linking a shared library.
7793
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7794
 
 
7795
 
            else
7796
 
              # FIXME: insert proper C++ library support
7797
 
              _LT_TAGVAR(ld_shlibs, $1)=no
7798
 
            fi
7799
 
            ;;
7800
 
        esac
7801
 
        ;;
7802
 
 
7803
 
      psos*)
7804
 
        # FIXME: insert proper C++ library support
7805
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7806
 
        ;;
7807
 
 
7808
 
      sunos4*)
7809
 
        case $cc_basename in
7810
 
          CC*)
7811
 
            # Sun C++ 4.x
7812
 
            # FIXME: insert proper C++ library support
7813
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7814
 
            ;;
7815
 
          lcc*)
7816
 
            # Lucid
7817
 
            # FIXME: insert proper C++ library support
7818
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7819
 
            ;;
7820
 
          *)
7821
 
            # FIXME: insert proper C++ library support
7822
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7823
 
            ;;
7824
 
        esac
7825
 
        ;;
7826
 
 
7827
 
      solaris*)
7828
 
        case $cc_basename in
7829
 
          CC* | sunCC*)
7830
 
            # Sun C++ 4.2, 5.x and Centerline C++
7831
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7832
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7833
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7834
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7835
 
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7836
 
 
7837
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7838
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7839
 
            case $host_os in
7840
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7841
 
              *)
7842
 
                # The compiler driver will combine and reorder linker options,
7843
 
                # but understands `-z linker_flag'.
7844
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
7845
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7846
 
                ;;
7847
 
            esac
7848
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7849
 
 
7850
 
            output_verbose_link_cmd='func_echo_all'
7851
 
 
7852
 
            # Archives containing C++ object files must be created using
7853
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7854
 
            # necessary to make sure instantiated templates are included
7855
 
            # in the archive.
7856
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7857
 
            ;;
7858
 
          gcx*)
7859
 
            # Green Hills C++ Compiler
7860
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7861
 
 
7862
 
            # The C++ compiler must be used to create the archive.
7863
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7864
 
            ;;
7865
 
          *)
7866
 
            # GNU C++ compiler with Solaris linker
7867
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7868
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7869
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7870
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7871
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7872
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7873
 
 
7874
 
                # Commands to make compiler produce verbose output that lists
7875
 
                # what "hidden" libraries, object files and flags are used when
7876
 
                # linking a shared library.
7877
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7878
 
              else
7879
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7880
 
                # platform.
7881
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7882
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7883
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7884
 
 
7885
 
                # Commands to make compiler produce verbose output that lists
7886
 
                # what "hidden" libraries, object files and flags are used when
7887
 
                # linking a shared library.
7888
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7889
 
              fi
7890
 
 
7891
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7892
 
              case $host_os in
7893
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7894
 
                *)
7895
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7896
 
                  ;;
7897
 
              esac
7898
 
            fi
7899
 
            ;;
7900
 
        esac
7901
 
        ;;
7902
 
 
7903
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7904
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7905
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7906
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7907
 
      runpath_var='LD_RUN_PATH'
7908
 
 
7909
 
      case $cc_basename in
7910
 
        CC*)
7911
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7912
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7913
 
          ;;
7914
 
        *)
7915
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7916
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7917
 
          ;;
7918
 
      esac
7919
 
      ;;
7920
 
 
7921
 
      sysv5* | sco3.2v5* | sco5v6*)
7922
 
        # Note: We can NOT use -z defs as we might desire, because we do not
7923
 
        # link with -lc, and that would cause any symbols used from libc to
7924
 
        # always be unresolved, which means just about no library would
7925
 
        # ever link correctly.  If we're not using GNU ld we use -z text
7926
 
        # though, which does catch some bad symbols but isn't as heavy-handed
7927
 
        # as -z defs.
7928
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7929
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7930
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7931
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7932
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7933
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7934
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7935
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7936
 
        runpath_var='LD_RUN_PATH'
7937
 
 
7938
 
        case $cc_basename in
7939
 
          CC*)
7940
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7941
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7942
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7943
 
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
7944
 
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7945
 
              '"$_LT_TAGVAR(reload_cmds, $1)"
7946
 
            ;;
7947
 
          *)
7948
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7949
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7950
 
            ;;
7951
 
        esac
7952
 
      ;;
7953
 
 
7954
 
      tandem*)
7955
 
        case $cc_basename in
7956
 
          NCC*)
7957
 
            # NonStop-UX NCC 3.20
7958
 
            # FIXME: insert proper C++ library support
7959
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7960
 
            ;;
7961
 
          *)
7962
 
            # FIXME: insert proper C++ library support
7963
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7964
 
            ;;
7965
 
        esac
7966
 
        ;;
7967
 
 
7968
 
      vxworks*)
7969
 
        # FIXME: insert proper C++ library support
7970
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7971
 
        ;;
7972
 
 
7973
 
      *)
7974
 
        # FIXME: insert proper C++ library support
7975
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7976
 
        ;;
7977
 
    esac
7978
 
 
7979
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7980
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7981
 
 
7982
 
    _LT_TAGVAR(GCC, $1)="$GXX"
7983
 
    _LT_TAGVAR(LD, $1)="$LD"
7984
 
 
7985
 
    ## CAVEAT EMPTOR:
7986
 
    ## There is no encapsulation within the following macros, do not change
7987
 
    ## the running order or otherwise move them around unless you know exactly
7988
 
    ## what you are doing...
7989
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7990
 
    _LT_COMPILER_PIC($1)
7991
 
    _LT_COMPILER_C_O($1)
7992
 
    _LT_COMPILER_FILE_LOCKS($1)
7993
 
    _LT_LINKER_SHLIBS($1)
7994
 
    _LT_SYS_DYNAMIC_LINKER($1)
7995
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7996
 
 
7997
 
    _LT_CONFIG($1)
7998
 
  fi # test -n "$compiler"
7999
 
 
8000
 
  CC=$lt_save_CC
8001
 
  LDCXX=$LD
8002
 
  LD=$lt_save_LD
8003
 
  GCC=$lt_save_GCC
8004
 
  with_gnu_ld=$lt_save_with_gnu_ld
8005
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
8006
 
  lt_cv_path_LD=$lt_save_path_LD
8007
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8008
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8009
 
fi # test "$_lt_caught_CXX_error" != yes
8010
 
 
8011
 
AC_LANG_POP
8012
 
])# _LT_LANG_CXX_CONFIG
8013
 
 
8014
 
 
8015
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8016
 
# ---------------------------------
8017
 
# Figure out "hidden" library dependencies from verbose
8018
 
# compiler output when linking a shared library.
8019
 
# Parse the compiler output and extract the necessary
8020
 
# objects, libraries and library flags.
8021
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8022
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8023
 
# Dependencies to place before and after the object being linked:
8024
 
_LT_TAGVAR(predep_objects, $1)=
8025
 
_LT_TAGVAR(postdep_objects, $1)=
8026
 
_LT_TAGVAR(predeps, $1)=
8027
 
_LT_TAGVAR(postdeps, $1)=
8028
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
8029
 
 
8030
 
dnl we can't use the lt_simple_compile_test_code here,
8031
 
dnl because it contains code intended for an executable,
8032
 
dnl not a library.  It's possible we should let each
8033
 
dnl tag define a new lt_????_link_test_code variable,
8034
 
dnl but it's only used here...
8035
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8036
 
int a;
8037
 
void foo (void) { a = 0; }
8038
 
_LT_EOF
8039
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8040
 
class Foo
8041
 
{
8042
 
public:
8043
 
  Foo (void) { a = 0; }
8044
 
private:
8045
 
  int a;
8046
 
};
8047
 
_LT_EOF
8048
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8049
 
      subroutine foo
8050
 
      implicit none
8051
 
      integer*4 a
8052
 
      a=0
8053
 
      return
8054
 
      end
8055
 
_LT_EOF
8056
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8057
 
      subroutine foo
8058
 
      implicit none
8059
 
      integer a
8060
 
      a=0
8061
 
      return
8062
 
      end
8063
 
_LT_EOF
8064
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8065
 
public class foo {
8066
 
  private int a;
8067
 
  public void bar (void) {
8068
 
    a = 0;
8069
 
  }
8070
 
};
8071
 
_LT_EOF
8072
 
])
8073
 
dnl Parse the compiler output and extract the necessary
8074
 
dnl objects, libraries and library flags.
8075
 
if AC_TRY_EVAL(ac_compile); then
8076
 
  # Parse the compiler output and extract the necessary
8077
 
  # objects, libraries and library flags.
8078
 
 
8079
 
  # Sentinel used to keep track of whether or not we are before
8080
 
  # the conftest object file.
8081
 
  pre_test_object_deps_done=no
8082
 
 
8083
 
  for p in `eval "$output_verbose_link_cmd"`; do
8084
 
    case $p in
8085
 
 
8086
 
    -L* | -R* | -l*)
8087
 
       # Some compilers place space between "-{L,R}" and the path.
8088
 
       # Remove the space.
8089
 
       if test $p = "-L" ||
8090
 
          test $p = "-R"; then
8091
 
         prev=$p
8092
 
         continue
8093
 
       else
8094
 
         prev=
8095
 
       fi
8096
 
 
8097
 
       if test "$pre_test_object_deps_done" = no; then
8098
 
         case $p in
8099
 
         -L* | -R*)
8100
 
           # Internal compiler library paths should come after those
8101
 
           # provided the user.  The postdeps already come after the
8102
 
           # user supplied libs so there is no need to process them.
8103
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8104
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8105
 
           else
8106
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8107
 
           fi
8108
 
           ;;
8109
 
         # The "-l" case would never come before the object being
8110
 
         # linked, so don't bother handling this case.
8111
 
         esac
8112
 
       else
8113
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8114
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
8115
 
         else
8116
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8117
 
         fi
8118
 
       fi
8119
 
       ;;
8120
 
 
8121
 
    *.$objext)
8122
 
       # This assumes that the test object file only shows up
8123
 
       # once in the compiler output.
8124
 
       if test "$p" = "conftest.$objext"; then
8125
 
         pre_test_object_deps_done=yes
8126
 
         continue
8127
 
       fi
8128
 
 
8129
 
       if test "$pre_test_object_deps_done" = no; then
8130
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8131
 
           _LT_TAGVAR(predep_objects, $1)="$p"
8132
 
         else
8133
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8134
 
         fi
8135
 
       else
8136
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8137
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
8138
 
         else
8139
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8140
 
         fi
8141
 
       fi
8142
 
       ;;
8143
 
 
8144
 
    *) ;; # Ignore the rest.
8145
 
 
8146
 
    esac
8147
 
  done
8148
 
 
8149
 
  # Clean up.
8150
 
  rm -f a.out a.exe
8151
 
else
8152
 
  echo "libtool.m4: error: problem compiling $1 test program"
8153
 
fi
8154
 
 
8155
 
$RM -f confest.$objext
8156
 
 
8157
 
# PORTME: override above test on systems where it is broken
8158
 
m4_if([$1], [CXX],
8159
 
[case $host_os in
8160
 
interix[[3-9]]*)
8161
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
8162
 
  # hack all around it, let's just trust "g++" to DTRT.
8163
 
  _LT_TAGVAR(predep_objects,$1)=
8164
 
  _LT_TAGVAR(postdep_objects,$1)=
8165
 
  _LT_TAGVAR(postdeps,$1)=
8166
 
  ;;
8167
 
 
8168
 
linux*)
8169
 
  case `$CC -V 2>&1 | sed 5q` in
8170
 
  *Sun\ C*)
8171
 
    # Sun C++ 5.9
8172
 
 
8173
 
    # The more standards-conforming stlport4 library is
8174
 
    # incompatible with the Cstd library. Avoid specifying
8175
 
    # it if it's in CXXFLAGS. Ignore libCrun as
8176
 
    # -library=stlport4 depends on it.
8177
 
    case " $CXX $CXXFLAGS " in
8178
 
    *" -library=stlport4 "*)
8179
 
      solaris_use_stlport4=yes
8180
 
      ;;
8181
 
    esac
8182
 
 
8183
 
    if test "$solaris_use_stlport4" != yes; then
8184
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8185
 
    fi
8186
 
    ;;
8187
 
  esac
8188
 
  ;;
8189
 
 
8190
 
solaris*)
8191
 
  case $cc_basename in
8192
 
  CC* | sunCC*)
8193
 
    # The more standards-conforming stlport4 library is
8194
 
    # incompatible with the Cstd library. Avoid specifying
8195
 
    # it if it's in CXXFLAGS. Ignore libCrun as
8196
 
    # -library=stlport4 depends on it.
8197
 
    case " $CXX $CXXFLAGS " in
8198
 
    *" -library=stlport4 "*)
8199
 
      solaris_use_stlport4=yes
8200
 
      ;;
8201
 
    esac
8202
 
 
8203
 
    # Adding this requires a known-good setup of shared libraries for
8204
 
    # Sun compiler versions before 5.6, else PIC objects from an old
8205
 
    # archive will be linked into the output, leading to subtle bugs.
8206
 
    if test "$solaris_use_stlport4" != yes; then
8207
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8208
 
    fi
8209
 
    ;;
8210
 
  esac
8211
 
  ;;
8212
 
esac
8213
 
])
8214
 
 
8215
 
case " $_LT_TAGVAR(postdeps, $1) " in
8216
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8217
 
esac
8218
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8219
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8220
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8221
 
fi
8222
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8223
 
    [The directories searched by this compiler when creating a shared library])
8224
 
_LT_TAGDECL([], [predep_objects], [1],
8225
 
    [Dependencies to place before and after the objects being linked to
8226
 
    create a shared library])
8227
 
_LT_TAGDECL([], [postdep_objects], [1])
8228
 
_LT_TAGDECL([], [predeps], [1])
8229
 
_LT_TAGDECL([], [postdeps], [1])
8230
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
8231
 
    [The library search path used internally by the compiler when linking
8232
 
    a shared library])
8233
 
])# _LT_SYS_HIDDEN_LIBDEPS
8234
 
 
8235
 
 
8236
 
# _LT_LANG_F77_CONFIG([TAG])
8237
 
# --------------------------
8238
 
# Ensure that the configuration variables for a Fortran 77 compiler are
8239
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8240
 
# to write the compiler configuration to `libtool'.
8241
 
m4_defun([_LT_LANG_F77_CONFIG],
8242
 
[AC_LANG_PUSH(Fortran 77)
8243
 
if test -z "$F77" || test "X$F77" = "Xno"; then
8244
 
  _lt_disable_F77=yes
8245
 
fi
8246
 
 
8247
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8248
 
_LT_TAGVAR(allow_undefined_flag, $1)=
8249
 
_LT_TAGVAR(always_export_symbols, $1)=no
8250
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
8251
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8252
 
_LT_TAGVAR(hardcode_direct, $1)=no
8253
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8254
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8255
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8256
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8257
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
8258
 
_LT_TAGVAR(hardcode_automatic, $1)=no
8259
 
_LT_TAGVAR(inherit_rpath, $1)=no
8260
 
_LT_TAGVAR(module_cmds, $1)=
8261
 
_LT_TAGVAR(module_expsym_cmds, $1)=
8262
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8263
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8264
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8265
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8266
 
_LT_TAGVAR(no_undefined_flag, $1)=
8267
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8268
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8269
 
 
8270
 
# Source file extension for f77 test sources.
8271
 
ac_ext=f
8272
 
 
8273
 
# Object file extension for compiled f77 test sources.
8274
 
objext=o
8275
 
_LT_TAGVAR(objext, $1)=$objext
8276
 
 
8277
 
# No sense in running all these tests if we already determined that
8278
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
8279
 
# are currently assumed to apply to all compilers on this platform,
8280
 
# and will be corrupted by setting them based on a non-working compiler.
8281
 
if test "$_lt_disable_F77" != yes; then
8282
 
  # Code to be used in simple compile tests
8283
 
  lt_simple_compile_test_code="\
8284
 
      subroutine t
8285
 
      return
8286
 
      end
8287
 
"
8288
 
 
8289
 
  # Code to be used in simple link tests
8290
 
  lt_simple_link_test_code="\
8291
 
      program t
8292
 
      end
8293
 
"
8294
 
 
8295
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8296
 
  _LT_TAG_COMPILER
8297
 
 
8298
 
  # save warnings/boilerplate of simple test code
8299
 
  _LT_COMPILER_BOILERPLATE
8300
 
  _LT_LINKER_BOILERPLATE
8301
 
 
8302
 
  # Allow CC to be a program name with arguments.
8303
 
  lt_save_CC="$CC"
8304
 
  lt_save_GCC=$GCC
8305
 
  CC=${F77-"f77"}
8306
 
  compiler=$CC
8307
 
  _LT_TAGVAR(compiler, $1)=$CC
8308
 
  _LT_CC_BASENAME([$compiler])
8309
 
  GCC=$G77
8310
 
  if test -n "$compiler"; then
8311
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
8312
 
    AC_MSG_RESULT([$can_build_shared])
8313
 
 
8314
 
    AC_MSG_CHECKING([whether to build shared libraries])
8315
 
    test "$can_build_shared" = "no" && enable_shared=no
8316
 
 
8317
 
    # On AIX, shared libraries and static libraries use the same namespace, and
8318
 
    # are all built from PIC.
8319
 
    case $host_os in
8320
 
      aix3*)
8321
 
        test "$enable_shared" = yes && enable_static=no
8322
 
        if test -n "$RANLIB"; then
8323
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
8324
 
          postinstall_cmds='$RANLIB $lib'
8325
 
        fi
8326
 
        ;;
8327
 
      aix[[4-9]]*)
8328
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8329
 
          test "$enable_shared" = yes && enable_static=no
8330
 
        fi
8331
 
        ;;
8332
 
    esac
8333
 
    AC_MSG_RESULT([$enable_shared])
8334
 
 
8335
 
    AC_MSG_CHECKING([whether to build static libraries])
8336
 
    # Make sure either enable_shared or enable_static is yes.
8337
 
    test "$enable_shared" = yes || enable_static=yes
8338
 
    AC_MSG_RESULT([$enable_static])
8339
 
 
8340
 
    _LT_TAGVAR(GCC, $1)="$G77"
8341
 
    _LT_TAGVAR(LD, $1)="$LD"
8342
 
 
8343
 
    ## CAVEAT EMPTOR:
8344
 
    ## There is no encapsulation within the following macros, do not change
8345
 
    ## the running order or otherwise move them around unless you know exactly
8346
 
    ## what you are doing...
8347
 
    _LT_COMPILER_PIC($1)
8348
 
    _LT_COMPILER_C_O($1)
8349
 
    _LT_COMPILER_FILE_LOCKS($1)
8350
 
    _LT_LINKER_SHLIBS($1)
8351
 
    _LT_SYS_DYNAMIC_LINKER($1)
8352
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
8353
 
 
8354
 
    _LT_CONFIG($1)
8355
 
  fi # test -n "$compiler"
8356
 
 
8357
 
  GCC=$lt_save_GCC
8358
 
  CC="$lt_save_CC"
8359
 
fi # test "$_lt_disable_F77" != yes
8360
 
 
8361
 
AC_LANG_POP
8362
 
])# _LT_LANG_F77_CONFIG
8363
 
 
8364
 
 
8365
 
# _LT_LANG_FC_CONFIG([TAG])
8366
 
# -------------------------
8367
 
# Ensure that the configuration variables for a Fortran compiler are
8368
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8369
 
# to write the compiler configuration to `libtool'.
8370
 
m4_defun([_LT_LANG_FC_CONFIG],
8371
 
[AC_LANG_PUSH(Fortran)
8372
 
 
8373
 
if test -z "$FC" || test "X$FC" = "Xno"; then
8374
 
  _lt_disable_FC=yes
8375
 
fi
8376
 
 
8377
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8378
 
_LT_TAGVAR(allow_undefined_flag, $1)=
8379
 
_LT_TAGVAR(always_export_symbols, $1)=no
8380
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
8381
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8382
 
_LT_TAGVAR(hardcode_direct, $1)=no
8383
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8384
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8385
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8386
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8387
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
8388
 
_LT_TAGVAR(hardcode_automatic, $1)=no
8389
 
_LT_TAGVAR(inherit_rpath, $1)=no
8390
 
_LT_TAGVAR(module_cmds, $1)=
8391
 
_LT_TAGVAR(module_expsym_cmds, $1)=
8392
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8393
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8394
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8395
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8396
 
_LT_TAGVAR(no_undefined_flag, $1)=
8397
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8398
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8399
 
 
8400
 
# Source file extension for fc test sources.
8401
 
ac_ext=${ac_fc_srcext-f}
8402
 
 
8403
 
# Object file extension for compiled fc test sources.
8404
 
objext=o
8405
 
_LT_TAGVAR(objext, $1)=$objext
8406
 
 
8407
 
# No sense in running all these tests if we already determined that
8408
 
# the FC compiler isn't working.  Some variables (like enable_shared)
8409
 
# are currently assumed to apply to all compilers on this platform,
8410
 
# and will be corrupted by setting them based on a non-working compiler.
8411
 
if test "$_lt_disable_FC" != yes; then
8412
 
  # Code to be used in simple compile tests
8413
 
  lt_simple_compile_test_code="\
8414
 
      subroutine t
8415
 
      return
8416
 
      end
8417
 
"
8418
 
 
8419
 
  # Code to be used in simple link tests
8420
 
  lt_simple_link_test_code="\
8421
 
      program t
8422
 
      end
8423
 
"
8424
 
 
8425
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8426
 
  _LT_TAG_COMPILER
8427
 
 
8428
 
  # save warnings/boilerplate of simple test code
8429
 
  _LT_COMPILER_BOILERPLATE
8430
 
  _LT_LINKER_BOILERPLATE
8431
 
 
8432
 
  # Allow CC to be a program name with arguments.
8433
 
  lt_save_CC="$CC"
8434
 
  lt_save_GCC=$GCC
8435
 
  CC=${FC-"f95"}
8436
 
  compiler=$CC
8437
 
  GCC=$ac_cv_fc_compiler_gnu
8438
 
 
8439
 
  _LT_TAGVAR(compiler, $1)=$CC
8440
 
  _LT_CC_BASENAME([$compiler])
8441
 
 
8442
 
  if test -n "$compiler"; then
8443
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
8444
 
    AC_MSG_RESULT([$can_build_shared])
8445
 
 
8446
 
    AC_MSG_CHECKING([whether to build shared libraries])
8447
 
    test "$can_build_shared" = "no" && enable_shared=no
8448
 
 
8449
 
    # On AIX, shared libraries and static libraries use the same namespace, and
8450
 
    # are all built from PIC.
8451
 
    case $host_os in
8452
 
      aix3*)
8453
 
        test "$enable_shared" = yes && enable_static=no
8454
 
        if test -n "$RANLIB"; then
8455
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
8456
 
          postinstall_cmds='$RANLIB $lib'
8457
 
        fi
8458
 
        ;;
8459
 
      aix[[4-9]]*)
8460
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8461
 
          test "$enable_shared" = yes && enable_static=no
8462
 
        fi
8463
 
        ;;
8464
 
    esac
8465
 
    AC_MSG_RESULT([$enable_shared])
8466
 
 
8467
 
    AC_MSG_CHECKING([whether to build static libraries])
8468
 
    # Make sure either enable_shared or enable_static is yes.
8469
 
    test "$enable_shared" = yes || enable_static=yes
8470
 
    AC_MSG_RESULT([$enable_static])
8471
 
 
8472
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8473
 
    _LT_TAGVAR(LD, $1)="$LD"
8474
 
 
8475
 
    ## CAVEAT EMPTOR:
8476
 
    ## There is no encapsulation within the following macros, do not change
8477
 
    ## the running order or otherwise move them around unless you know exactly
8478
 
    ## what you are doing...
8479
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
8480
 
    _LT_COMPILER_PIC($1)
8481
 
    _LT_COMPILER_C_O($1)
8482
 
    _LT_COMPILER_FILE_LOCKS($1)
8483
 
    _LT_LINKER_SHLIBS($1)
8484
 
    _LT_SYS_DYNAMIC_LINKER($1)
8485
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
8486
 
 
8487
 
    _LT_CONFIG($1)
8488
 
  fi # test -n "$compiler"
8489
 
 
8490
 
  GCC=$lt_save_GCC
8491
 
  CC="$lt_save_CC"
8492
 
fi # test "$_lt_disable_FC" != yes
8493
 
 
8494
 
AC_LANG_POP
8495
 
])# _LT_LANG_FC_CONFIG
8496
 
 
8497
 
 
8498
 
# _LT_LANG_GCJ_CONFIG([TAG])
8499
 
# --------------------------
8500
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
8501
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8502
 
# to write the compiler configuration to `libtool'.
8503
 
m4_defun([_LT_LANG_GCJ_CONFIG],
8504
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
8505
 
AC_LANG_SAVE
8506
 
 
8507
 
# Source file extension for Java test sources.
8508
 
ac_ext=java
8509
 
 
8510
 
# Object file extension for compiled Java test sources.
8511
 
objext=o
8512
 
_LT_TAGVAR(objext, $1)=$objext
8513
 
 
8514
 
# Code to be used in simple compile tests
8515
 
lt_simple_compile_test_code="class foo {}"
8516
 
 
8517
 
# Code to be used in simple link tests
8518
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8519
 
 
8520
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8521
 
_LT_TAG_COMPILER
8522
 
 
8523
 
# save warnings/boilerplate of simple test code
8524
 
_LT_COMPILER_BOILERPLATE
8525
 
_LT_LINKER_BOILERPLATE
8526
 
 
8527
 
# Allow CC to be a program name with arguments.
8528
 
lt_save_CC="$CC"
8529
 
lt_save_GCC=$GCC
8530
 
GCC=yes
8531
 
CC=${GCJ-"gcj"}
8532
 
compiler=$CC
8533
 
_LT_TAGVAR(compiler, $1)=$CC
8534
 
_LT_TAGVAR(LD, $1)="$LD"
8535
 
_LT_CC_BASENAME([$compiler])
8536
 
 
8537
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8538
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8539
 
 
8540
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8541
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8542
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8543
 
 
8544
 
if test -n "$compiler"; then
8545
 
  _LT_COMPILER_NO_RTTI($1)
8546
 
  _LT_COMPILER_PIC($1)
8547
 
  _LT_COMPILER_C_O($1)
8548
 
  _LT_COMPILER_FILE_LOCKS($1)
8549
 
  _LT_LINKER_SHLIBS($1)
8550
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
8551
 
 
8552
 
  _LT_CONFIG($1)
8553
 
fi
8554
 
 
8555
 
AC_LANG_RESTORE
8556
 
 
8557
 
GCC=$lt_save_GCC
8558
 
CC="$lt_save_CC"
8559
 
])# _LT_LANG_GCJ_CONFIG
8560
 
 
8561
 
 
8562
 
# _LT_LANG_RC_CONFIG([TAG])
8563
 
# -------------------------
8564
 
# Ensure that the configuration variables for the Windows resource compiler
8565
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8566
 
# to write the compiler configuration to `libtool'.
8567
 
m4_defun([_LT_LANG_RC_CONFIG],
8568
 
[AC_REQUIRE([LT_PROG_RC])dnl
8569
 
AC_LANG_SAVE
8570
 
 
8571
 
# Source file extension for RC test sources.
8572
 
ac_ext=rc
8573
 
 
8574
 
# Object file extension for compiled RC test sources.
8575
 
objext=o
8576
 
_LT_TAGVAR(objext, $1)=$objext
8577
 
 
8578
 
# Code to be used in simple compile tests
8579
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8580
 
 
8581
 
# Code to be used in simple link tests
8582
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
8583
 
 
8584
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8585
 
_LT_TAG_COMPILER
8586
 
 
8587
 
# save warnings/boilerplate of simple test code
8588
 
_LT_COMPILER_BOILERPLATE
8589
 
_LT_LINKER_BOILERPLATE
8590
 
 
8591
 
# Allow CC to be a program name with arguments.
8592
 
lt_save_CC="$CC"
8593
 
lt_save_GCC=$GCC
8594
 
GCC=
8595
 
CC=${RC-"windres"}
8596
 
compiler=$CC
8597
 
_LT_TAGVAR(compiler, $1)=$CC
8598
 
_LT_CC_BASENAME([$compiler])
8599
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8600
 
 
8601
 
if test -n "$compiler"; then
8602
 
  :
8603
 
  _LT_CONFIG($1)
8604
 
fi
8605
 
 
8606
 
GCC=$lt_save_GCC
8607
 
AC_LANG_RESTORE
8608
 
CC="$lt_save_CC"
8609
 
])# _LT_LANG_RC_CONFIG
8610
 
 
8611
 
 
8612
 
# LT_PROG_GCJ
8613
 
# -----------
8614
 
AC_DEFUN([LT_PROG_GCJ],
8615
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8616
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8617
 
    [AC_CHECK_TOOL(GCJ, gcj,)
8618
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8619
 
      AC_SUBST(GCJFLAGS)])])[]dnl
8620
 
])
8621
 
 
8622
 
# Old name:
8623
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8624
 
dnl aclocal-1.4 backwards compatibility:
8625
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8626
 
 
8627
 
 
8628
 
# LT_PROG_RC
8629
 
# ----------
8630
 
AC_DEFUN([LT_PROG_RC],
8631
 
[AC_CHECK_TOOL(RC, windres,)
8632
 
])
8633
 
 
8634
 
# Old name:
8635
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8636
 
dnl aclocal-1.4 backwards compatibility:
8637
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8638
 
 
8639
 
 
8640
 
# _LT_DECL_EGREP
8641
 
# --------------
8642
 
# If we don't have a new enough Autoconf to choose the best grep
8643
 
# available, choose the one first in the user's PATH.
8644
 
m4_defun([_LT_DECL_EGREP],
8645
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
8646
 
AC_REQUIRE([AC_PROG_FGREP])dnl
8647
 
test -z "$GREP" && GREP=grep
8648
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8649
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8650
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8651
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8652
 
AC_SUBST([GREP])
8653
 
])
8654
 
 
8655
 
 
8656
 
# _LT_DECL_OBJDUMP
8657
 
# --------------
8658
 
# If we don't have a new enough Autoconf to choose the best objdump
8659
 
# available, choose the one first in the user's PATH.
8660
 
m4_defun([_LT_DECL_OBJDUMP],
8661
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8662
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8663
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8664
 
AC_SUBST([OBJDUMP])
8665
 
])
8666
 
 
8667
 
 
8668
 
# _LT_DECL_SED
8669
 
# ------------
8670
 
# Check for a fully-functional sed program, that truncates
8671
 
# as few characters as possible.  Prefer GNU sed if found.
8672
 
m4_defun([_LT_DECL_SED],
8673
 
[AC_PROG_SED
8674
 
test -z "$SED" && SED=sed
8675
 
Xsed="$SED -e 1s/^X//"
8676
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8677
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8678
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8679
 
])# _LT_DECL_SED
8680
 
 
8681
 
m4_ifndef([AC_PROG_SED], [
8682
 
# NOTE: This macro has been submitted for inclusion into   #
8683
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8684
 
#  a released version of Autoconf we should remove this    #
8685
 
#  macro and use it instead.                               #
8686
 
 
8687
 
m4_defun([AC_PROG_SED],
8688
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
8689
 
AC_CACHE_VAL(lt_cv_path_SED,
8690
 
[# Loop through the user's path and test for sed and gsed.
8691
 
# Then use that list of sed's as ones to test for truncation.
8692
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693
 
for as_dir in $PATH
8694
 
do
8695
 
  IFS=$as_save_IFS
8696
 
  test -z "$as_dir" && as_dir=.
8697
 
  for lt_ac_prog in sed gsed; do
8698
 
    for ac_exec_ext in '' $ac_executable_extensions; do
8699
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8700
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8701
 
      fi
8702
 
    done
8703
 
  done
8704
 
done
8705
 
IFS=$as_save_IFS
8706
 
lt_ac_max=0
8707
 
lt_ac_count=0
8708
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8709
 
# along with /bin/sed that truncates output.
8710
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8711
 
  test ! -f $lt_ac_sed && continue
8712
 
  cat /dev/null > conftest.in
8713
 
  lt_ac_count=0
8714
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8715
 
  # Check for GNU sed and select it if it is found.
8716
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8717
 
    lt_cv_path_SED=$lt_ac_sed
8718
 
    break
8719
 
  fi
8720
 
  while true; do
8721
 
    cat conftest.in conftest.in >conftest.tmp
8722
 
    mv conftest.tmp conftest.in
8723
 
    cp conftest.in conftest.nl
8724
 
    echo >>conftest.nl
8725
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8726
 
    cmp -s conftest.out conftest.nl || break
8727
 
    # 10000 chars as input seems more than enough
8728
 
    test $lt_ac_count -gt 10 && break
8729
 
    lt_ac_count=`expr $lt_ac_count + 1`
8730
 
    if test $lt_ac_count -gt $lt_ac_max; then
8731
 
      lt_ac_max=$lt_ac_count
8732
 
      lt_cv_path_SED=$lt_ac_sed
8733
 
    fi
8734
 
  done
8735
 
done
8736
 
])
8737
 
SED=$lt_cv_path_SED
8738
 
AC_SUBST([SED])
8739
 
AC_MSG_RESULT([$SED])
8740
 
])#AC_PROG_SED
8741
 
])#m4_ifndef
8742
 
 
8743
 
# Old name:
8744
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8745
 
dnl aclocal-1.4 backwards compatibility:
8746
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8747
 
 
8748
 
 
8749
 
# _LT_CHECK_SHELL_FEATURES
8750
 
# ------------------------
8751
 
# Find out whether the shell is Bourne or XSI compatible,
8752
 
# or has some other useful features.
8753
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
8754
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8755
 
# Try some XSI features
8756
 
xsi_shell=no
8757
 
( _lt_dummy="a/b/c"
8758
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8759
 
      = c,a/b,, \
8760
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
8761
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8762
 
  && xsi_shell=yes
8763
 
AC_MSG_RESULT([$xsi_shell])
8764
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8765
 
 
8766
 
AC_MSG_CHECKING([whether the shell understands "+="])
8767
 
lt_shell_append=no
8768
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8769
 
    >/dev/null 2>&1 \
8770
 
  && lt_shell_append=yes
8771
 
AC_MSG_RESULT([$lt_shell_append])
8772
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8773
 
 
8774
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8775
 
  lt_unset=unset
8776
 
else
8777
 
  lt_unset=false
8778
 
fi
8779
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8780
 
 
8781
 
# test EBCDIC or ASCII
8782
 
case `echo X|tr X '\101'` in
8783
 
 A) # ASCII based system
8784
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8785
 
  lt_SP2NL='tr \040 \012'
8786
 
  lt_NL2SP='tr \015\012 \040\040'
8787
 
  ;;
8788
 
 *) # EBCDIC based system
8789
 
  lt_SP2NL='tr \100 \n'
8790
 
  lt_NL2SP='tr \r\n \100\100'
8791
 
  ;;
8792
 
esac
8793
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8794
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8795
 
])# _LT_CHECK_SHELL_FEATURES
8796
 
 
8797
 
 
8798
 
# _LT_PROG_XSI_SHELLFNS
8799
 
# ---------------------
8800
 
# Bourne and XSI compatible variants of some useful shell functions.
8801
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8802
 
[case $xsi_shell in
8803
 
  yes)
8804
 
    cat << \_LT_EOF >> "$cfgfile"
8805
 
 
8806
 
# func_dirname file append nondir_replacement
8807
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8808
 
# otherwise set result to NONDIR_REPLACEMENT.
8809
 
func_dirname ()
8810
 
{
8811
 
  case ${1} in
8812
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8813
 
    *  ) func_dirname_result="${3}" ;;
8814
 
  esac
8815
 
}
8816
 
 
8817
 
# func_basename file
8818
 
func_basename ()
8819
 
{
8820
 
  func_basename_result="${1##*/}"
8821
 
}
8822
 
 
8823
 
# func_dirname_and_basename file append nondir_replacement
8824
 
# perform func_basename and func_dirname in a single function
8825
 
# call:
8826
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8827
 
#             add APPEND to the result, otherwise set result
8828
 
#             to NONDIR_REPLACEMENT.
8829
 
#             value returned in "$func_dirname_result"
8830
 
#   basename: Compute filename of FILE.
8831
 
#             value retuned in "$func_basename_result"
8832
 
# Implementation must be kept synchronized with func_dirname
8833
 
# and func_basename. For efficiency, we do not delegate to
8834
 
# those functions but instead duplicate the functionality here.
8835
 
func_dirname_and_basename ()
8836
 
{
8837
 
  case ${1} in
8838
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8839
 
    *  ) func_dirname_result="${3}" ;;
8840
 
  esac
8841
 
  func_basename_result="${1##*/}"
8842
 
}
8843
 
 
8844
 
# func_stripname prefix suffix name
8845
 
# strip PREFIX and SUFFIX off of NAME.
8846
 
# PREFIX and SUFFIX must not contain globbing or regex special
8847
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8848
 
# dot (in which case that matches only a dot).
8849
 
func_stripname ()
8850
 
{
8851
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8852
 
  # positional parameters, so assign one to ordinary parameter first.
8853
 
  func_stripname_result=${3}
8854
 
  func_stripname_result=${func_stripname_result#"${1}"}
8855
 
  func_stripname_result=${func_stripname_result%"${2}"}
8856
 
}
8857
 
 
8858
 
# func_opt_split
8859
 
func_opt_split ()
8860
 
{
8861
 
  func_opt_split_opt=${1%%=*}
8862
 
  func_opt_split_arg=${1#*=}
8863
 
}
8864
 
 
8865
 
# func_lo2o object
8866
 
func_lo2o ()
8867
 
{
8868
 
  case ${1} in
8869
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8870
 
    *)    func_lo2o_result=${1} ;;
8871
 
  esac
8872
 
}
8873
 
 
8874
 
# func_xform libobj-or-source
8875
 
func_xform ()
8876
 
{
8877
 
  func_xform_result=${1%.*}.lo
8878
 
}
8879
 
 
8880
 
# func_arith arithmetic-term...
8881
 
func_arith ()
8882
 
{
8883
 
  func_arith_result=$(( $[*] ))
8884
 
}
8885
 
 
8886
 
# func_len string
8887
 
# STRING may not start with a hyphen.
8888
 
func_len ()
8889
 
{
8890
 
  func_len_result=${#1}
8891
 
}
8892
 
 
8893
 
_LT_EOF
8894
 
    ;;
8895
 
  *) # Bourne compatible functions.
8896
 
    cat << \_LT_EOF >> "$cfgfile"
8897
 
 
8898
 
# func_dirname file append nondir_replacement
8899
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8900
 
# otherwise set result to NONDIR_REPLACEMENT.
8901
 
func_dirname ()
8902
 
{
8903
 
  # Extract subdirectory from the argument.
8904
 
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8905
 
  if test "X$func_dirname_result" = "X${1}"; then
8906
 
    func_dirname_result="${3}"
8907
 
  else
8908
 
    func_dirname_result="$func_dirname_result${2}"
8909
 
  fi
8910
 
}
8911
 
 
8912
 
# func_basename file
8913
 
func_basename ()
8914
 
{
8915
 
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8916
 
}
8917
 
 
8918
 
dnl func_dirname_and_basename
8919
 
dnl A portable version of this function is already defined in general.m4sh
8920
 
dnl so there is no need for it here.
8921
 
 
8922
 
# func_stripname prefix suffix name
8923
 
# strip PREFIX and SUFFIX off of NAME.
8924
 
# PREFIX and SUFFIX must not contain globbing or regex special
8925
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8926
 
# dot (in which case that matches only a dot).
8927
 
# func_strip_suffix prefix name
8928
 
func_stripname ()
8929
 
{
8930
 
  case ${2} in
8931
 
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8932
 
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8933
 
  esac
8934
 
}
8935
 
 
8936
 
# sed scripts:
8937
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8938
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8939
 
 
8940
 
# func_opt_split
8941
 
func_opt_split ()
8942
 
{
8943
 
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8944
 
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8945
 
}
8946
 
 
8947
 
# func_lo2o object
8948
 
func_lo2o ()
8949
 
{
8950
 
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8951
 
}
8952
 
 
8953
 
# func_xform libobj-or-source
8954
 
func_xform ()
8955
 
{
8956
 
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8957
 
}
8958
 
 
8959
 
# func_arith arithmetic-term...
8960
 
func_arith ()
8961
 
{
8962
 
  func_arith_result=`expr "$[@]"`
8963
 
}
8964
 
 
8965
 
# func_len string
8966
 
# STRING may not start with a hyphen.
8967
 
func_len ()
8968
 
{
8969
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8970
 
}
8971
 
 
8972
 
_LT_EOF
8973
 
esac
8974
 
 
8975
 
case $lt_shell_append in
8976
 
  yes)
8977
 
    cat << \_LT_EOF >> "$cfgfile"
8978
 
 
8979
 
# func_append var value
8980
 
# Append VALUE to the end of shell variable VAR.
8981
 
func_append ()
8982
 
{
8983
 
  eval "$[1]+=\$[2]"
8984
 
}
8985
 
_LT_EOF
8986
 
    ;;
8987
 
  *)
8988
 
    cat << \_LT_EOF >> "$cfgfile"
8989
 
 
8990
 
# func_append var value
8991
 
# Append VALUE to the end of shell variable VAR.
8992
 
func_append ()
8993
 
{
8994
 
  eval "$[1]=\$$[1]\$[2]"
8995
 
}
8996
 
 
8997
 
_LT_EOF
8998
 
    ;;
8999
 
  esac
9000
 
])
9001
 
 
9002
 
# Helper functions for option handling.                    -*- Autoconf -*-
9003
 
#
9004
 
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
9005
 
#   Inc.
9006
 
#   Written by Gary V. Vaughan, 2004
9007
 
#
9008
 
# This file is free software; the Free Software Foundation gives
9009
 
# unlimited permission to copy and/or distribute it, with or without
9010
 
# modifications, as long as this notice is preserved.
9011
 
 
9012
 
# serial 7 ltoptions.m4
9013
 
 
9014
 
# This is to help aclocal find these macros, as it can't see m4_define.
9015
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9016
 
 
9017
 
 
9018
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9019
 
# ------------------------------------------
9020
 
m4_define([_LT_MANGLE_OPTION],
9021
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9022
 
 
9023
 
 
9024
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9025
 
# ---------------------------------------
9026
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9027
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
9028
 
# saved as a flag.
9029
 
m4_define([_LT_SET_OPTION],
9030
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9031
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9032
 
        _LT_MANGLE_DEFUN([$1], [$2]),
9033
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
9034
 
])
9035
 
 
9036
 
 
9037
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9038
 
# ------------------------------------------------------------
9039
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9040
 
m4_define([_LT_IF_OPTION],
9041
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9042
 
 
9043
 
 
9044
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9045
 
# -------------------------------------------------------
9046
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9047
 
# are set.
9048
 
m4_define([_LT_UNLESS_OPTIONS],
9049
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9050
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9051
 
                      [m4_define([$0_found])])])[]dnl
9052
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9053
 
])[]dnl
9054
 
])
9055
 
 
9056
 
 
9057
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9058
 
# ----------------------------------------
9059
 
# OPTION-LIST is a space-separated list of Libtool options associated
9060
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
9061
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9062
 
# the unknown option and exit.
9063
 
m4_defun([_LT_SET_OPTIONS],
9064
 
[# Set options
9065
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9066
 
    [_LT_SET_OPTION([$1], _LT_Option)])
9067
 
 
9068
 
m4_if([$1],[LT_INIT],[
9069
 
  dnl
9070
 
  dnl Simply set some default values (i.e off) if boolean options were not
9071
 
  dnl specified:
9072
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9073
 
  ])
9074
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9075
 
  ])
9076
 
  dnl
9077
 
  dnl If no reference was made to various pairs of opposing options, then
9078
 
  dnl we run the default mode handler for the pair.  For example, if neither
9079
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
9080
 
  dnl archives by default:
9081
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9082
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9083
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9084
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9085
 
                   [_LT_ENABLE_FAST_INSTALL])
9086
 
  ])
9087
 
])# _LT_SET_OPTIONS
9088
 
 
9089
 
 
9090
 
 
9091
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9092
 
# -----------------------------------------
9093
 
m4_define([_LT_MANGLE_DEFUN],
9094
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9095
 
 
9096
 
 
9097
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9098
 
# -----------------------------------------------
9099
 
m4_define([LT_OPTION_DEFINE],
9100
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9101
 
])# LT_OPTION_DEFINE
9102
 
 
9103
 
 
9104
 
# dlopen
9105
 
# ------
9106
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9107
 
])
9108
 
 
9109
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
9110
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
9111
 
AC_DIAGNOSE([obsolete],
9112
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9113
 
put the `dlopen' option into LT_INIT's first parameter.])
9114
 
])
9115
 
 
9116
 
dnl aclocal-1.4 backwards compatibility:
9117
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9118
 
 
9119
 
 
9120
 
# win32-dll
9121
 
# ---------
9122
 
# Declare package support for building win32 dll's.
9123
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9124
 
[enable_win32_dll=yes
9125
 
 
9126
 
case $host in
9127
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9128
 
  AC_CHECK_TOOL(AS, as, false)
9129
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9130
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
9131
 
  ;;
9132
 
esac
9133
 
 
9134
 
test -z "$AS" && AS=as
9135
 
_LT_DECL([], [AS],      [1], [Assembler program])dnl
9136
 
 
9137
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
9138
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9139
 
 
9140
 
test -z "$OBJDUMP" && OBJDUMP=objdump
9141
 
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9142
 
])# win32-dll
9143
 
 
9144
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9145
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9146
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
9147
 
AC_DIAGNOSE([obsolete],
9148
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9149
 
put the `win32-dll' option into LT_INIT's first parameter.])
9150
 
])
9151
 
 
9152
 
dnl aclocal-1.4 backwards compatibility:
9153
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9154
 
 
9155
 
 
9156
 
# _LT_ENABLE_SHARED([DEFAULT])
9157
 
# ----------------------------
9158
 
# implement the --enable-shared flag, and supports the `shared' and
9159
 
# `disable-shared' LT_INIT options.
9160
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9161
 
m4_define([_LT_ENABLE_SHARED],
9162
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9163
 
AC_ARG_ENABLE([shared],
9164
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9165
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9166
 
    [p=${PACKAGE-default}
9167
 
    case $enableval in
9168
 
    yes) enable_shared=yes ;;
9169
 
    no) enable_shared=no ;;
9170
 
    *)
9171
 
      enable_shared=no
9172
 
      # Look at the argument we got.  We use all the common list separators.
9173
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9174
 
      for pkg in $enableval; do
9175
 
        IFS="$lt_save_ifs"
9176
 
        if test "X$pkg" = "X$p"; then
9177
 
          enable_shared=yes
9178
 
        fi
9179
 
      done
9180
 
      IFS="$lt_save_ifs"
9181
 
      ;;
9182
 
    esac],
9183
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9184
 
 
9185
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
9186
 
        [Whether or not to build shared libraries])
9187
 
])# _LT_ENABLE_SHARED
9188
 
 
9189
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9190
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9191
 
 
9192
 
# Old names:
9193
 
AC_DEFUN([AC_ENABLE_SHARED],
9194
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9195
 
])
9196
 
 
9197
 
AC_DEFUN([AC_DISABLE_SHARED],
9198
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
9199
 
])
9200
 
 
9201
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9202
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9203
 
 
9204
 
dnl aclocal-1.4 backwards compatibility:
9205
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9206
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9207
 
 
9208
 
 
9209
 
 
9210
 
# _LT_ENABLE_STATIC([DEFAULT])
9211
 
# ----------------------------
9212
 
# implement the --enable-static flag, and support the `static' and
9213
 
# `disable-static' LT_INIT options.
9214
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9215
 
m4_define([_LT_ENABLE_STATIC],
9216
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9217
 
AC_ARG_ENABLE([static],
9218
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9219
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9220
 
    [p=${PACKAGE-default}
9221
 
    case $enableval in
9222
 
    yes) enable_static=yes ;;
9223
 
    no) enable_static=no ;;
9224
 
    *)
9225
 
     enable_static=no
9226
 
      # Look at the argument we got.  We use all the common list separators.
9227
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9228
 
      for pkg in $enableval; do
9229
 
        IFS="$lt_save_ifs"
9230
 
        if test "X$pkg" = "X$p"; then
9231
 
          enable_static=yes
9232
 
        fi
9233
 
      done
9234
 
      IFS="$lt_save_ifs"
9235
 
      ;;
9236
 
    esac],
9237
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9238
 
 
9239
 
    _LT_DECL([build_old_libs], [enable_static], [0],
9240
 
        [Whether or not to build static libraries])
9241
 
])# _LT_ENABLE_STATIC
9242
 
 
9243
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9244
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9245
 
 
9246
 
# Old names:
9247
 
AC_DEFUN([AC_ENABLE_STATIC],
9248
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9249
 
])
9250
 
 
9251
 
AC_DEFUN([AC_DISABLE_STATIC],
9252
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
9253
 
])
9254
 
 
9255
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9256
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9257
 
 
9258
 
dnl aclocal-1.4 backwards compatibility:
9259
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9260
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9261
 
 
9262
 
 
9263
 
 
9264
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
9265
 
# ----------------------------------
9266
 
# implement the --enable-fast-install flag, and support the `fast-install'
9267
 
# and `disable-fast-install' LT_INIT options.
9268
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9269
 
m4_define([_LT_ENABLE_FAST_INSTALL],
9270
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9271
 
AC_ARG_ENABLE([fast-install],
9272
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9273
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9274
 
    [p=${PACKAGE-default}
9275
 
    case $enableval in
9276
 
    yes) enable_fast_install=yes ;;
9277
 
    no) enable_fast_install=no ;;
9278
 
    *)
9279
 
      enable_fast_install=no
9280
 
      # Look at the argument we got.  We use all the common list separators.
9281
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9282
 
      for pkg in $enableval; do
9283
 
        IFS="$lt_save_ifs"
9284
 
        if test "X$pkg" = "X$p"; then
9285
 
          enable_fast_install=yes
9286
 
        fi
9287
 
      done
9288
 
      IFS="$lt_save_ifs"
9289
 
      ;;
9290
 
    esac],
9291
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9292
 
 
9293
 
_LT_DECL([fast_install], [enable_fast_install], [0],
9294
 
         [Whether or not to optimize for fast installation])dnl
9295
 
])# _LT_ENABLE_FAST_INSTALL
9296
 
 
9297
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9298
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9299
 
 
9300
 
# Old names:
9301
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9302
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9303
 
AC_DIAGNOSE([obsolete],
9304
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9305
 
the `fast-install' option into LT_INIT's first parameter.])
9306
 
])
9307
 
 
9308
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9309
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9310
 
AC_DIAGNOSE([obsolete],
9311
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9312
 
the `disable-fast-install' option into LT_INIT's first parameter.])
9313
 
])
9314
 
 
9315
 
dnl aclocal-1.4 backwards compatibility:
9316
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9317
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9318
 
 
9319
 
 
9320
 
# _LT_WITH_PIC([MODE])
9321
 
# --------------------
9322
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9323
 
# LT_INIT options.
9324
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
9325
 
m4_define([_LT_WITH_PIC],
9326
 
[AC_ARG_WITH([pic],
9327
 
    [AS_HELP_STRING([--with-pic],
9328
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9329
 
    [pic_mode="$withval"],
9330
 
    [pic_mode=default])
9331
 
 
9332
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9333
 
 
9334
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9335
 
])# _LT_WITH_PIC
9336
 
 
9337
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9338
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9339
 
 
9340
 
# Old name:
9341
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
9342
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
9343
 
AC_DIAGNOSE([obsolete],
9344
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9345
 
put the `pic-only' option into LT_INIT's first parameter.])
9346
 
])
9347
 
 
9348
 
dnl aclocal-1.4 backwards compatibility:
9349
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9350
 
 
9351
 
 
9352
 
m4_define([_LTDL_MODE], [])
9353
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9354
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
9355
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9356
 
                 [m4_define([_LTDL_MODE], [recursive])])
9357
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9358
 
                 [m4_define([_LTDL_MODE], [subproject])])
9359
 
 
9360
 
m4_define([_LTDL_TYPE], [])
9361
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
9362
 
                 [m4_define([_LTDL_TYPE], [installable])])
9363
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9364
 
                 [m4_define([_LTDL_TYPE], [convenience])])
9365
 
 
9366
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
9367
 
#
9368
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9369
 
# Written by Gary V. Vaughan, 2004
9370
 
#
9371
 
# This file is free software; the Free Software Foundation gives
9372
 
# unlimited permission to copy and/or distribute it, with or without
9373
 
# modifications, as long as this notice is preserved.
9374
 
 
9375
 
# serial 6 ltsugar.m4
9376
 
 
9377
 
# This is to help aclocal find these macros, as it can't see m4_define.
9378
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9379
 
 
9380
 
 
9381
 
# lt_join(SEP, ARG1, [ARG2...])
9382
 
# -----------------------------
9383
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9384
 
# associated separator.
9385
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9386
 
# versions in m4sugar had bugs.
9387
 
m4_define([lt_join],
9388
 
[m4_if([$#], [1], [],
9389
 
       [$#], [2], [[$2]],
9390
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9391
 
m4_define([_lt_join],
9392
 
[m4_if([$#$2], [2], [],
9393
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9394
 
 
9395
 
 
9396
 
# lt_car(LIST)
9397
 
# lt_cdr(LIST)
9398
 
# ------------
9399
 
# Manipulate m4 lists.
9400
 
# These macros are necessary as long as will still need to support
9401
 
# Autoconf-2.59 which quotes differently.
9402
 
m4_define([lt_car], [[$1]])
9403
 
m4_define([lt_cdr],
9404
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9405
 
       [$#], 1, [],
9406
 
       [m4_dquote(m4_shift($@))])])
9407
 
m4_define([lt_unquote], $1)
9408
 
 
9409
 
 
9410
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9411
 
# ------------------------------------------
9412
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9413
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
9414
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9415
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9416
 
# than defined and empty).
9417
 
#
9418
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
9419
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9420
 
m4_define([lt_append],
9421
 
[m4_define([$1],
9422
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9423
 
 
9424
 
 
9425
 
 
9426
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9427
 
# ----------------------------------------------------------
9428
 
# Produce a SEP delimited list of all paired combinations of elements of
9429
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
9430
 
# has the form PREFIXmINFIXSUFFIXn.
9431
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
9432
 
m4_define([lt_combine],
9433
 
[m4_if(m4_eval([$# > 3]), [1],
9434
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9435
 
[[m4_foreach([_Lt_prefix], [$2],
9436
 
             [m4_foreach([_Lt_suffix],
9437
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9438
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9439
 
 
9440
 
 
9441
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9442
 
# -----------------------------------------------------------------------
9443
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9444
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9445
 
m4_define([lt_if_append_uniq],
9446
 
[m4_ifdef([$1],
9447
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9448
 
                 [lt_append([$1], [$2], [$3])$4],
9449
 
                 [$5])],
9450
 
          [lt_append([$1], [$2], [$3])$4])])
9451
 
 
9452
 
 
9453
 
# lt_dict_add(DICT, KEY, VALUE)
9454
 
# -----------------------------
9455
 
m4_define([lt_dict_add],
9456
 
[m4_define([$1($2)], [$3])])
9457
 
 
9458
 
 
9459
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9460
 
# --------------------------------------------
9461
 
m4_define([lt_dict_add_subkey],
9462
 
[m4_define([$1($2:$3)], [$4])])
9463
 
 
9464
 
 
9465
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
9466
 
# ----------------------------------
9467
 
m4_define([lt_dict_fetch],
9468
 
[m4_ifval([$3],
9469
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9470
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9471
 
 
9472
 
 
9473
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9474
 
# -----------------------------------------------------------------
9475
 
m4_define([lt_if_dict_fetch],
9476
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9477
 
        [$5],
9478
 
    [$6])])
9479
 
 
9480
 
 
9481
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9482
 
# --------------------------------------------------------------
9483
 
m4_define([lt_dict_filter],
9484
 
[m4_if([$5], [], [],
9485
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
9486
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9487
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9488
 
])
9489
 
 
9490
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
9491
 
#
9492
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
9493
 
#   Written by Scott James Remnant, 2004
9494
 
#
9495
 
# This file is free software; the Free Software Foundation gives
9496
 
# unlimited permission to copy and/or distribute it, with or without
9497
 
# modifications, as long as this notice is preserved.
9498
 
 
9499
 
# Generated from ltversion.in.
9500
 
 
9501
 
# serial 3175 ltversion.m4
9502
 
# This file is part of GNU Libtool
9503
 
 
9504
 
m4_define([LT_PACKAGE_VERSION], [2.2.10])
9505
 
m4_define([LT_PACKAGE_REVISION], [1.3175])
9506
 
 
9507
 
AC_DEFUN([LTVERSION_VERSION],
9508
 
[macro_version='2.2.10'
9509
 
macro_revision='1.3175'
9510
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9511
 
_LT_DECL(, macro_revision, 0)
9512
 
])
9513
 
 
9514
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9515
 
#
9516
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9517
 
#   Written by Scott James Remnant, 2004.
9518
 
#
9519
 
# This file is free software; the Free Software Foundation gives
9520
 
# unlimited permission to copy and/or distribute it, with or without
9521
 
# modifications, as long as this notice is preserved.
9522
 
 
9523
 
# serial 5 lt~obsolete.m4
9524
 
 
9525
 
# These exist entirely to fool aclocal when bootstrapping libtool.
9526
 
#
9527
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9528
 
# which have later been changed to m4_define as they aren't part of the
9529
 
# exported API, or moved to Autoconf or Automake where they belong.
9530
 
#
9531
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
9532
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9533
 
# using a macro with the same name in our local m4/libtool.m4 it'll
9534
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9535
 
# and doesn't know about Autoconf macros at all.)
9536
 
#
9537
 
# So we provide this file, which has a silly filename so it's always
9538
 
# included after everything else.  This provides aclocal with the
9539
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9540
 
# because those macros already exist, or will be overwritten later.
9541
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
9542
 
#
9543
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9544
 
# Yes, that means every name once taken will need to remain here until
9545
 
# we give up compatibility with versions before 1.7, at which point
9546
 
# we need to keep only those names which we still refer to.
9547
 
 
9548
 
# This is to help aclocal find these macros, as it can't see m4_define.
9549
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9550
 
 
9551
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9552
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
9553
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9554
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
9555
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9556
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
9557
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
9558
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9559
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
9560
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9561
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
9562
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9563
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9564
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9565
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9566
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9567
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
9568
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9569
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9570
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
9571
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
9572
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9573
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9574
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9575
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9576
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9577
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9578
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9579
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
9580
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
9581
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
9582
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9583
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9584
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
9585
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
9586
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9587
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9588
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
9589
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9590
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
9591
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
9592
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
9593
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9594
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9595
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9596
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9597
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9598
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9599
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9600
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9601
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9602
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9603
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9604
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9605
 
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9606
 
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9607
 
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9608
 
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9609
 
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
9610
 
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9611
 
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9612
 
 
9613
1320
# nls.m4 serial 5 (gettext-0.18)
9614
1321
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9615
1322
dnl Inc.
9828
1535
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9829
1536
])
9830
1537
 
 
1538
m4_include([m4/gtk-doc.m4])
 
1539
m4_include([m4/intltool.m4])
 
1540
m4_include([m4/libtool.m4])
 
1541
m4_include([m4/ltoptions.m4])
 
1542
m4_include([m4/ltsugar.m4])
 
1543
m4_include([m4/ltversion.m4])
 
1544
m4_include([m4/lt~obsolete.m4])