~ubuntu-branches/ubuntu/precise/gdk-pixbuf/precise-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-08 15:32:48 UTC
  • mto: (1.3.2) (4.1.4 sid) (33.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20110308153248-ay551yh4g1j7xcnk
Tags: upstream-2.23.1
ImportĀ upstreamĀ versionĀ 2.23.1

Show diffs side-by-side

added added

removed removed

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