~holger-seelig/titania/4.1

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Holger Seelig
  • Date: 2016-06-20 16:52:05 UTC
  • Revision ID: holger.seelig@yahoo.de-20160620165205-4lyxiypvj7ttn7s4
Updated Makefiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
# on various variables needed by the Makefile.in.in installed by 
336
336
# glib-gettextize.
337
337
dnl
338
 
glib_DEFUN([GLIB_GNU_GETTEXT],
 
338
AU_DEFUN([GLIB_GNU_GETTEXT],
339
339
  [AC_REQUIRE([AC_PROG_CC])dnl
340
340
   
341
341
   GLIB_LC_MESSAGES
405
405
   rm -f po/POTFILES
406
406
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
407
407
        < $srcdir/po/POTFILES.in > po/POTFILES
408
 
  ])
 
408
  ],
 
409
  [[$0: This macro is deprecated. You should use upstream gettext instead.]])
409
410
 
410
411
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
411
412
# -------------------------------
648
649
 
649
650
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
650
651
#
651
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
652
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
653
 
#                 Foundation, Inc.
 
652
#   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
654
653
#   Written by Gordon Matzigkeit, 1996
655
654
#
656
655
# This file is free software; the Free Software Foundation gives
658
657
# modifications, as long as this notice is preserved.
659
658
 
660
659
m4_define([_LT_COPYING], [dnl
661
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
662
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
663
 
#                 Foundation, Inc.
664
 
#   Written by Gordon Matzigkeit, 1996
665
 
#
666
 
#   This file is part of GNU Libtool.
667
 
#
668
 
# GNU Libtool is free software; you can redistribute it and/or
669
 
# modify it under the terms of the GNU General Public License as
670
 
# published by the Free Software Foundation; either version 2 of
671
 
# the License, or (at your option) any later version.
672
 
#
673
 
# As a special exception to the GNU General Public License,
674
 
# if you distribute this file as part of a program or library that
675
 
# is built using GNU Libtool, you may include this file under the
676
 
# same distribution terms that you use for the rest of that program.
677
 
#
678
 
# GNU Libtool is distributed in the hope that it will be useful,
679
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
660
# Copyright (C) 2014 Free Software Foundation, Inc.
 
661
# This is free software; see the source for copying conditions.  There is NO
 
662
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
663
 
 
664
# GNU Libtool is free software; you can redistribute it and/or modify
 
665
# it under the terms of the GNU General Public License as published by
 
666
# the Free Software Foundation; either version 2 of of the License, or
 
667
# (at your option) any later version.
 
668
#
 
669
# As a special exception to the GNU General Public License, if you
 
670
# distribute this file as part of a program or library that is built
 
671
# using GNU Libtool, you may include this file under the  same
 
672
# distribution terms that you use for the rest of that program.
 
673
#
 
674
# GNU Libtool is distributed in the hope that it will be useful, but
 
675
# WITHOUT ANY WARRANTY; without even the implied warranty of
680
676
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
681
677
# GNU General Public License for more details.
682
678
#
683
679
# You should have received a copy of the GNU General Public License
684
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
685
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
686
 
# obtained by writing to the Free Software Foundation, Inc.,
687
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
680
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
688
681
])
689
682
 
690
 
# serial 57 LT_INIT
 
683
# serial 58 LT_INIT
691
684
 
692
685
 
693
686
# LT_PREREQ(VERSION)
715
708
# LT_INIT([OPTIONS])
716
709
# ------------------
717
710
AC_DEFUN([LT_INIT],
718
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
711
[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
719
712
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
720
713
AC_BEFORE([$0], [LT_LANG])dnl
721
714
AC_BEFORE([$0], [LT_OUTPUT])dnl
739
732
_LT_SET_OPTIONS([$0], [$1])
740
733
 
741
734
# This can be used to rebuild libtool when needed
742
 
LIBTOOL_DEPS="$ltmain"
 
735
LIBTOOL_DEPS=$ltmain
743
736
 
744
737
# Always use our own libtool.
745
738
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
759
752
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
760
753
 
761
754
 
 
755
# _LT_PREPARE_CC_BASENAME
 
756
# -----------------------
 
757
m4_defun([_LT_PREPARE_CC_BASENAME], [
 
758
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
759
func_cc_basename ()
 
760
{
 
761
    for cc_temp in @S|@*""; do
 
762
      case $cc_temp in
 
763
        compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
764
        distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
765
        \-*) ;;
 
766
        *) break;;
 
767
      esac
 
768
    done
 
769
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
770
}
 
771
])# _LT_PREPARE_CC_BASENAME
 
772
 
 
773
 
762
774
# _LT_CC_BASENAME(CC)
763
775
# -------------------
764
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
776
# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
 
777
# but that macro is also expanded into generated libtool script, which
 
778
# arranges for $SED and $ECHO to be set by different means.
765
779
m4_defun([_LT_CC_BASENAME],
766
 
[for cc_temp in $1""; do
767
 
  case $cc_temp in
768
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
769
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
770
 
    \-*) ;;
771
 
    *) break;;
772
 
  esac
773
 
done
774
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
780
[m4_require([_LT_PREPARE_CC_BASENAME])dnl
 
781
AC_REQUIRE([_LT_DECL_SED])dnl
 
782
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
 
783
func_cc_basename $1
 
784
cc_basename=$func_cc_basename_result
775
785
])
776
786
 
777
787
 
778
788
# _LT_FILEUTILS_DEFAULTS
779
789
# ----------------------
780
790
# It is okay to use these file commands and assume they have been set
781
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
791
# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
782
792
m4_defun([_LT_FILEUTILS_DEFAULTS],
783
793
[: ${CP="cp -f"}
784
794
: ${MV="mv -f"}
825
835
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
826
836
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
827
837
m4_require([_LT_WITH_SYSROOT])dnl
 
838
m4_require([_LT_CMD_TRUNCATE])dnl
828
839
 
829
840
_LT_CONFIG_LIBTOOL_INIT([
830
 
# See if we are running on zsh, and set the options which allow our
 
841
# See if we are running on zsh, and set the options that allow our
831
842
# commands through without removal of \ escapes INIT.
832
 
if test -n "\${ZSH_VERSION+set}" ; then
 
843
if test -n "\${ZSH_VERSION+set}"; then
833
844
   setopt NO_GLOB_SUBST
834
845
fi
835
846
])
836
 
if test -n "${ZSH_VERSION+set}" ; then
 
847
if test -n "${ZSH_VERSION+set}"; then
837
848
   setopt NO_GLOB_SUBST
838
849
fi
839
850
 
846
857
  # AIX sometimes has problems with the GCC collect2 program.  For some
847
858
  # reason, if we set the COLLECT_NAMES environment variable, the problems
848
859
  # vanish in a puff of smoke.
849
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
860
  if test set != "${COLLECT_NAMES+set}"; then
850
861
    COLLECT_NAMES=
851
862
    export COLLECT_NAMES
852
863
  fi
857
868
ofile=libtool
858
869
can_build_shared=yes
859
870
 
860
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
871
# All known linkers require a '.a' archive for static linking (except MSVC,
861
872
# which needs '.lib').
862
873
libext=a
863
874
 
864
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
875
with_gnu_ld=$lt_cv_prog_gnu_ld
865
876
 
866
 
old_CC="$CC"
867
 
old_CFLAGS="$CFLAGS"
 
877
old_CC=$CC
 
878
old_CFLAGS=$CFLAGS
868
879
 
869
880
# Set sane defaults for various variables
870
881
test -z "$CC" && CC=cc
917
928
 
918
929
# _LT_PROG_LTMAIN
919
930
# ---------------
920
 
# Note that this code is called both from `configure', and `config.status'
 
931
# Note that this code is called both from 'configure', and 'config.status'
921
932
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
922
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
933
# 'config.status' has no value for ac_aux_dir unless we are using Automake,
923
934
# so we pass a copy along to make sure it has a sensible value anyway.
924
935
m4_defun([_LT_PROG_LTMAIN],
925
936
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
926
937
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
927
 
ltmain="$ac_aux_dir/ltmain.sh"
 
938
ltmain=$ac_aux_dir/ltmain.sh
928
939
])# _LT_PROG_LTMAIN
929
940
 
930
941
 
931
942
 
932
943
# So that we can recreate a full libtool script including additional
933
944
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
934
 
# in macros and then make a single call at the end using the `libtool'
 
945
# in macros and then make a single call at the end using the 'libtool'
935
946
# label.
936
947
 
937
948
 
1063
1074
 
1064
1075
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1065
1076
# ------------------------------------
1066
 
# Quote a variable value, and forward it to `config.status' so that its
1067
 
# declaration there will have the same value as in `configure'.  VARNAME
 
1077
# Quote a variable value, and forward it to 'config.status' so that its
 
1078
# declaration there will have the same value as in 'configure'.  VARNAME
1068
1079
# must have a single quote delimited value for this to work.
1069
1080
m4_define([_LT_CONFIG_STATUS_DECLARE],
1070
1081
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1088
1099
# Output comment and list of tags supported by the script
1089
1100
m4_defun([_LT_LIBTOOL_TAGS],
1090
1101
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1091
 
available_tags="_LT_TAGS"dnl
 
1102
available_tags='_LT_TAGS'dnl
1092
1103
])
1093
1104
 
1094
1105
 
1116
1127
# _LT_LIBTOOL_CONFIG_VARS
1117
1128
# -----------------------
1118
1129
# Produce commented declarations of non-tagged libtool config variables
1119
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1130
# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
1120
1131
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1121
1132
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1122
1133
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1142
1153
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1143
1154
# variables for single and double quote escaping we saved from calls
1144
1155
# to _LT_DECL, we can put quote escaped variables declarations
1145
 
# into `config.status', and then the shell code to quote escape them in
1146
 
# for loops in `config.status'.  Finally, any additional code accumulated
 
1156
# into 'config.status', and then the shell code to quote escape them in
 
1157
# for loops in 'config.status'.  Finally, any additional code accumulated
1147
1158
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1148
1159
m4_defun([_LT_CONFIG_COMMANDS],
1149
1160
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1189
1200
]], lt_decl_quote_varnames); do
1190
1201
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1191
1202
    *[[\\\\\\\`\\"\\\$]]*)
1192
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1203
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1193
1204
      ;;
1194
1205
    *)
1195
1206
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1202
1213
]], lt_decl_dquote_varnames); do
1203
1214
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1204
1215
    *[[\\\\\\\`\\"\\\$]]*)
1205
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1216
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1206
1217
      ;;
1207
1218
    *)
1208
1219
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1218
1229
# Generate a child script FILE with all initialization necessary to
1219
1230
# reuse the environment learned by the parent script, and make the
1220
1231
# file executable.  If COMMENT is supplied, it is inserted after the
1221
 
# `#!' sequence but before initialization text begins.  After this
 
1232
# '#!' sequence but before initialization text begins.  After this
1222
1233
# macro, additional text can be appended to FILE to form the body of
1223
1234
# the child script.  The macro ends with non-zero status if the
1224
1235
# file could not be fully written (such as if the disk is full).
1240
1251
_AS_PREPARE
1241
1252
exec AS_MESSAGE_FD>&1
1242
1253
_ASEOF
1243
 
test $lt_write_fail = 0 && chmod +x $1[]dnl
 
1254
test 0 = "$lt_write_fail" && chmod +x $1[]dnl
1244
1255
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1245
1256
 
1246
1257
# LT_OUTPUT
1263
1274
} >&AS_MESSAGE_LOG_FD
1264
1275
 
1265
1276
lt_cl_help="\
1266
 
\`$as_me' creates a local libtool stub from the current configuration,
 
1277
'$as_me' creates a local libtool stub from the current configuration,
1267
1278
for use in further configure time tests before the real libtool is
1268
1279
generated.
1269
1280
 
1285
1296
This config.lt script is free software; the Free Software Foundation
1286
1297
gives unlimited permision to copy, distribute and modify it."
1287
1298
 
1288
 
while test $[#] != 0
 
1299
while test 0 != $[#]
1289
1300
do
1290
1301
  case $[1] in
1291
1302
    --version | --v* | -V )
1298
1309
      lt_cl_silent=: ;;
1299
1310
 
1300
1311
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1301
 
Try \`$[0] --help' for more information.]) ;;
 
1312
Try '$[0] --help' for more information.]) ;;
1302
1313
 
1303
1314
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1304
 
Try \`$[0] --help' for more information.]) ;;
 
1315
Try '$[0] --help' for more information.]) ;;
1305
1316
  esac
1306
1317
  shift
1307
1318
done
1327
1338
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1328
1339
# config.log, so it can be properly (re)opened and appended to by config.lt.
1329
1340
lt_cl_success=:
1330
 
test "$silent" = yes &&
 
1341
test yes = "$silent" &&
1331
1342
  lt_config_lt_args="$lt_config_lt_args --quiet"
1332
1343
exec AS_MESSAGE_LOG_FD>/dev/null
1333
1344
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1347
1358
_LT_CONFIG_SAVE_COMMANDS([
1348
1359
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1349
1360
  m4_if(_LT_TAG, [C], [
1350
 
    # See if we are running on zsh, and set the options which allow our
 
1361
    # See if we are running on zsh, and set the options that allow our
1351
1362
    # commands through without removal of \ escapes.
1352
 
    if test -n "${ZSH_VERSION+set}" ; then
 
1363
    if test -n "${ZSH_VERSION+set}"; then
1353
1364
      setopt NO_GLOB_SUBST
1354
1365
    fi
1355
1366
 
1356
 
    cfgfile="${ofile}T"
 
1367
    cfgfile=${ofile}T
1357
1368
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1358
1369
    $RM "$cfgfile"
1359
1370
 
1360
1371
    cat <<_LT_EOF >> "$cfgfile"
1361
1372
#! $SHELL
1362
 
 
1363
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1364
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1373
# Generated automatically by $as_me ($PACKAGE) $VERSION
1365
1374
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1366
1375
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1367
 
#
 
1376
 
 
1377
# Provide generalized library-building support services.
 
1378
# Written by Gordon Matzigkeit, 1996
 
1379
 
1368
1380
_LT_COPYING
1369
1381
_LT_LIBTOOL_TAGS
1370
1382
 
 
1383
# Configured defaults for sys_lib_dlsearch_path munging.
 
1384
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
 
1385
 
1371
1386
# ### BEGIN LIBTOOL CONFIG
1372
1387
_LT_LIBTOOL_CONFIG_VARS
1373
1388
_LT_LIBTOOL_TAG_VARS
1375
1390
 
1376
1391
_LT_EOF
1377
1392
 
 
1393
    cat <<'_LT_EOF' >> "$cfgfile"
 
1394
 
 
1395
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
 
1396
 
 
1397
_LT_PREPARE_MUNGE_PATH_LIST
 
1398
_LT_PREPARE_CC_BASENAME
 
1399
 
 
1400
# ### END FUNCTIONS SHARED WITH CONFIGURE
 
1401
 
 
1402
_LT_EOF
 
1403
 
1378
1404
  case $host_os in
1379
1405
  aix3*)
1380
1406
    cat <<\_LT_EOF >> "$cfgfile"
1381
1407
# AIX sometimes has problems with the GCC collect2 program.  For some
1382
1408
# reason, if we set the COLLECT_NAMES environment variable, the problems
1383
1409
# vanish in a puff of smoke.
1384
 
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1410
if test set != "${COLLECT_NAMES+set}"; then
1385
1411
  COLLECT_NAMES=
1386
1412
  export COLLECT_NAMES
1387
1413
fi
1398
1424
  sed '$q' "$ltmain" >> "$cfgfile" \
1399
1425
     || (rm -f "$cfgfile"; exit 1)
1400
1426
 
1401
 
  _LT_PROG_REPLACE_SHELLFNS
1402
 
 
1403
1427
   mv -f "$cfgfile" "$ofile" ||
1404
1428
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1405
1429
  chmod +x "$ofile"
1417
1441
[m4_if([$1], [], [
1418
1442
    PACKAGE='$PACKAGE'
1419
1443
    VERSION='$VERSION'
1420
 
    TIMESTAMP='$TIMESTAMP'
1421
1444
    RM='$RM'
1422
1445
    ofile='$ofile'], [])
1423
1446
])dnl /_LT_CONFIG_SAVE_COMMANDS
1614
1637
 
1615
1638
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1616
1639
      [lt_cv_apple_cc_single_mod=no
1617
 
      if test -z "${LT_MULTI_MODULE}"; then
 
1640
      if test -z "$LT_MULTI_MODULE"; then
1618
1641
        # By default we will add the -single_module flag. You can override
1619
1642
        # by either setting the environment variable LT_MULTI_MODULE
1620
1643
        # non-empty at configure time, or by adding -multi_module to the
1632
1655
          cat conftest.err >&AS_MESSAGE_LOG_FD
1633
1656
        # Otherwise, if the output was created with a 0 exit code from
1634
1657
        # the compiler, it worked.
1635
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
1658
        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1636
1659
          lt_cv_apple_cc_single_mod=yes
1637
1660
        else
1638
1661
          cat conftest.err >&AS_MESSAGE_LOG_FD
1650
1673
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1651
1674
        [lt_cv_ld_exported_symbols_list=yes],
1652
1675
        [lt_cv_ld_exported_symbols_list=no])
1653
 
        LDFLAGS="$save_LDFLAGS"
 
1676
        LDFLAGS=$save_LDFLAGS
1654
1677
    ])
1655
1678
 
1656
1679
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1672
1695
      _lt_result=$?
1673
1696
      if test -s conftest.err && $GREP force_load conftest.err; then
1674
1697
        cat conftest.err >&AS_MESSAGE_LOG_FD
1675
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
1698
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1676
1699
        lt_cv_ld_force_load=yes
1677
1700
      else
1678
1701
        cat conftest.err >&AS_MESSAGE_LOG_FD
1682
1705
    ])
1683
1706
    case $host_os in
1684
1707
    rhapsody* | darwin1.[[012]])
1685
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
1708
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1686
1709
    darwin1.*)
1687
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1710
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1688
1711
    darwin*) # darwin 5.x on
1689
1712
      # if running on 10.5 or later, the deployment target defaults
1690
1713
      # to the OS version, if on x86, and 10.4, the deployment
1691
1714
      # target defaults to 10.4. Don't you love it?
1692
1715
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1693
1716
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1694
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1695
 
        10.[[012]]*)
1696
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1717
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 
1718
        10.[[012]][[,.]]*)
 
1719
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1697
1720
        10.*)
1698
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1721
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1699
1722
      esac
1700
1723
    ;;
1701
1724
  esac
1702
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
1725
    if test yes = "$lt_cv_apple_cc_single_mod"; then
1703
1726
      _lt_dar_single_mod='$single_module'
1704
1727
    fi
1705
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1706
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
1728
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
 
1729
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1707
1730
    else
1708
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
1731
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1709
1732
    fi
1710
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
1733
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1711
1734
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1712
1735
    else
1713
1736
      _lt_dsymutil=
1727
1750
  _LT_TAGVAR(hardcode_direct, $1)=no
1728
1751
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1729
1752
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1730
 
  if test "$lt_cv_ld_force_load" = "yes"; then
1731
 
    _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\"`'
 
1753
  if test yes = "$lt_cv_ld_force_load"; then
 
1754
    _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\"`'
1732
1755
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1733
1756
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1734
1757
  else
1735
1758
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1736
1759
  fi
1737
1760
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1738
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1761
  _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1739
1762
  case $cc_basename in
1740
 
     ifort*) _lt_dar_can_shared=yes ;;
 
1763
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1741
1764
     *) _lt_dar_can_shared=$GCC ;;
1742
1765
  esac
1743
 
  if test "$_lt_dar_can_shared" = "yes"; then
 
1766
  if test yes = "$_lt_dar_can_shared"; then
1744
1767
    output_verbose_link_cmd=func_echo_all
1745
 
    _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}"
1746
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1747
 
    _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}"
1748
 
    _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}"
 
1768
    _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"
 
1769
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
1770
    _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"
 
1771
    _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"
1749
1772
    m4_if([$1], [CXX],
1750
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1751
 
      _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}"
1752
 
      _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}"
 
1773
[   if test yes != "$lt_cv_apple_cc_single_mod"; then
 
1774
      _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"
 
1775
      _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"
1753
1776
    fi
1754
1777
],[])
1755
1778
  else
1769
1792
# Allow to override them for all tags through lt_cv_aix_libpath.
1770
1793
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1771
1794
[m4_require([_LT_DECL_SED])dnl
1772
 
if test "${lt_cv_aix_libpath+set}" = set; then
 
1795
if test set = "${lt_cv_aix_libpath+set}"; then
1773
1796
  aix_libpath=$lt_cv_aix_libpath
1774
1797
else
1775
1798
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1787
1810
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1788
1811
  fi],[])
1789
1812
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1790
 
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 
1813
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1791
1814
  fi
1792
1815
  ])
1793
1816
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1807
1830
# -----------------------
1808
1831
# Find how we can fake an echo command that does not interpret backslash.
1809
1832
# In particular, with Autoconf 2.60 or later we add some code to the start
1810
 
# of the generated configure script which will find a shell with a builtin
1811
 
# printf (which we can use as an echo command).
 
1833
# of the generated configure script that will find a shell with a builtin
 
1834
# printf (that we can use as an echo command).
1812
1835
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1813
1836
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1814
1837
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1836
1859
# Invoke $ECHO with all args, space-separated.
1837
1860
func_echo_all ()
1838
1861
{
1839
 
    $ECHO "$*" 
 
1862
    $ECHO "$*"
1840
1863
}
1841
1864
 
1842
 
case "$ECHO" in
 
1865
case $ECHO in
1843
1866
  printf*) AC_MSG_RESULT([printf]) ;;
1844
1867
  print*) AC_MSG_RESULT([print -r]) ;;
1845
1868
  *) AC_MSG_RESULT([cat]) ;;
1865
1888
AC_DEFUN([_LT_WITH_SYSROOT],
1866
1889
[AC_MSG_CHECKING([for sysroot])
1867
1890
AC_ARG_WITH([sysroot],
1868
 
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
1869
 
                        (or the compiler's sysroot if not specified).],
 
1891
[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
 
1892
  [Search for dependent libraries within DIR (or the compiler's sysroot
 
1893
   if not specified).])],
1870
1894
[], [with_sysroot=no])
1871
1895
 
1872
1896
dnl lt_sysroot will always be passed unquoted.  We quote it here
1873
1897
dnl in case the user passed a directory name.
1874
1898
lt_sysroot=
1875
 
case ${with_sysroot} in #(
 
1899
case $with_sysroot in #(
1876
1900
 yes)
1877
 
   if test "$GCC" = yes; then
 
1901
   if test yes = "$GCC"; then
1878
1902
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1879
1903
   fi
1880
1904
   ;; #(
1884
1908
 no|'')
1885
1909
   ;; #(
1886
1910
 *)
1887
 
   AC_MSG_RESULT([${with_sysroot}])
 
1911
   AC_MSG_RESULT([$with_sysroot])
1888
1912
   AC_MSG_ERROR([The sysroot must be an absolute path.])
1889
1913
   ;;
1890
1914
esac
1891
1915
 
1892
1916
 AC_MSG_RESULT([${lt_sysroot:-no}])
1893
1917
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1894
 
[dependent libraries, and in which our libraries should be installed.])])
 
1918
[dependent libraries, and where our libraries should be installed.])])
1895
1919
 
1896
1920
# _LT_ENABLE_LOCK
1897
1921
# ---------------
1899
1923
[AC_ARG_ENABLE([libtool-lock],
1900
1924
  [AS_HELP_STRING([--disable-libtool-lock],
1901
1925
    [avoid locking (might break parallel builds)])])
1902
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1926
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1903
1927
 
1904
1928
# Some flags need to be propagated to the compiler or linker for good
1905
1929
# libtool support.
1906
1930
case $host in
1907
1931
ia64-*-hpux*)
1908
 
  # Find out which ABI we are using.
 
1932
  # Find out what ABI is being produced by ac_compile, and set mode
 
1933
  # options accordingly.
1909
1934
  echo 'int i;' > conftest.$ac_ext
1910
1935
  if AC_TRY_EVAL(ac_compile); then
1911
1936
    case `/usr/bin/file conftest.$ac_objext` in
1912
1937
      *ELF-32*)
1913
 
        HPUX_IA64_MODE="32"
 
1938
        HPUX_IA64_MODE=32
1914
1939
        ;;
1915
1940
      *ELF-64*)
1916
 
        HPUX_IA64_MODE="64"
 
1941
        HPUX_IA64_MODE=64
1917
1942
        ;;
1918
1943
    esac
1919
1944
  fi
1920
1945
  rm -rf conftest*
1921
1946
  ;;
1922
1947
*-*-irix6*)
1923
 
  # Find out which ABI we are using.
 
1948
  # Find out what ABI is being produced by ac_compile, and set linker
 
1949
  # options accordingly.
1924
1950
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1925
1951
  if AC_TRY_EVAL(ac_compile); then
1926
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1952
    if test yes = "$lt_cv_prog_gnu_ld"; then
1927
1953
      case `/usr/bin/file conftest.$ac_objext` in
1928
1954
        *32-bit*)
1929
1955
          LD="${LD-ld} -melf32bsmip"
1952
1978
  rm -rf conftest*
1953
1979
  ;;
1954
1980
 
 
1981
mips64*-*linux*)
 
1982
  # Find out what ABI is being produced by ac_compile, and set linker
 
1983
  # options accordingly.
 
1984
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 
1985
  if AC_TRY_EVAL(ac_compile); then
 
1986
    emul=elf
 
1987
    case `/usr/bin/file conftest.$ac_objext` in
 
1988
      *32-bit*)
 
1989
        emul="${emul}32"
 
1990
        ;;
 
1991
      *64-bit*)
 
1992
        emul="${emul}64"
 
1993
        ;;
 
1994
    esac
 
1995
    case `/usr/bin/file conftest.$ac_objext` in
 
1996
      *MSB*)
 
1997
        emul="${emul}btsmip"
 
1998
        ;;
 
1999
      *LSB*)
 
2000
        emul="${emul}ltsmip"
 
2001
        ;;
 
2002
    esac
 
2003
    case `/usr/bin/file conftest.$ac_objext` in
 
2004
      *N32*)
 
2005
        emul="${emul}n32"
 
2006
        ;;
 
2007
    esac
 
2008
    LD="${LD-ld} -m $emul"
 
2009
  fi
 
2010
  rm -rf conftest*
 
2011
  ;;
 
2012
 
1955
2013
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1956
2014
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1957
 
  # Find out which ABI we are using.
 
2015
  # Find out what ABI is being produced by ac_compile, and set linker
 
2016
  # options accordingly.  Note that the listed cases only cover the
 
2017
  # situations where additional linker options are needed (such as when
 
2018
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 
2019
  # vice versa); the common cases where no linker options are needed do
 
2020
  # not appear in the list.
1958
2021
  echo 'int i;' > conftest.$ac_ext
1959
2022
  if AC_TRY_EVAL(ac_compile); then
1960
2023
    case `/usr/bin/file conftest.o` in
1973
2036
                ;;
1974
2037
            esac
1975
2038
            ;;
1976
 
          powerpc64le-*)
 
2039
          powerpc64le-*linux*)
1977
2040
            LD="${LD-ld} -m elf32lppclinux"
1978
2041
            ;;
1979
 
          powerpc64-*)
 
2042
          powerpc64-*linux*)
1980
2043
            LD="${LD-ld} -m elf32ppclinux"
1981
2044
            ;;
1982
2045
          s390x-*linux*)
1995
2058
          x86_64-*linux*)
1996
2059
            LD="${LD-ld} -m elf_x86_64"
1997
2060
            ;;
1998
 
          powerpcle-*)
 
2061
          powerpcle-*linux*)
1999
2062
            LD="${LD-ld} -m elf64lppc"
2000
2063
            ;;
2001
 
          powerpc-*)
 
2064
          powerpc-*linux*)
2002
2065
            LD="${LD-ld} -m elf64ppc"
2003
2066
            ;;
2004
2067
          s390*-*linux*|s390*-*tpf*)
2016
2079
 
2017
2080
*-*-sco3.2v5*)
2018
2081
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2019
 
  SAVE_CFLAGS="$CFLAGS"
 
2082
  SAVE_CFLAGS=$CFLAGS
2020
2083
  CFLAGS="$CFLAGS -belf"
2021
2084
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2022
2085
    [AC_LANG_PUSH(C)
2023
2086
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2024
2087
     AC_LANG_POP])
2025
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
2088
  if test yes != "$lt_cv_cc_needs_belf"; then
2026
2089
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2027
 
    CFLAGS="$SAVE_CFLAGS"
 
2090
    CFLAGS=$SAVE_CFLAGS
2028
2091
  fi
2029
2092
  ;;
2030
2093
*-*solaris*)
2031
 
  # Find out which ABI we are using.
 
2094
  # Find out what ABI is being produced by ac_compile, and set linker
 
2095
  # options accordingly.
2032
2096
  echo 'int i;' > conftest.$ac_ext
2033
2097
  if AC_TRY_EVAL(ac_compile); then
2034
2098
    case `/usr/bin/file conftest.o` in
2036
2100
      case $lt_cv_prog_gnu_ld in
2037
2101
      yes*)
2038
2102
        case $host in
2039
 
        i?86-*-solaris*)
 
2103
        i?86-*-solaris*|x86_64-*-solaris*)
2040
2104
          LD="${LD-ld} -m elf_x86_64"
2041
2105
          ;;
2042
2106
        sparc*-*-solaris*)
2045
2109
        esac
2046
2110
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
2047
2111
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2048
 
          LD="${LD-ld}_sol2"
 
2112
          LD=${LD-ld}_sol2
2049
2113
        fi
2050
2114
        ;;
2051
2115
      *)
2061
2125
  ;;
2062
2126
esac
2063
2127
 
2064
 
need_locks="$enable_libtool_lock"
 
2128
need_locks=$enable_libtool_lock
2065
2129
])# _LT_ENABLE_LOCK
2066
2130
 
2067
2131
 
2080
2144
     [echo conftest.$ac_objext > conftest.lst
2081
2145
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2082
2146
      AC_TRY_EVAL([lt_ar_try])
2083
 
      if test "$ac_status" -eq 0; then
 
2147
      if test 0 -eq "$ac_status"; then
2084
2148
        # Ensure the archiver fails upon bogus file names.
2085
2149
        rm -f conftest.$ac_objext libconftest.a
2086
2150
        AC_TRY_EVAL([lt_ar_try])
2087
 
        if test "$ac_status" -ne 0; then
 
2151
        if test 0 -ne "$ac_status"; then
2088
2152
          lt_cv_ar_at_file=@
2089
2153
        fi
2090
2154
      fi
2092
2156
     ])
2093
2157
  ])
2094
2158
 
2095
 
if test "x$lt_cv_ar_at_file" = xno; then
 
2159
if test no = "$lt_cv_ar_at_file"; then
2096
2160
  archiver_list_spec=
2097
2161
else
2098
2162
  archiver_list_spec=$lt_cv_ar_at_file
2123
2187
 
2124
2188
if test -n "$RANLIB"; then
2125
2189
  case $host_os in
2126
 
  openbsd*)
 
2190
  bitrig* | openbsd*)
2127
2191
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2128
2192
    ;;
2129
2193
  *)
2159
2223
  [$2=no
2160
2224
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2161
2225
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2162
 
   lt_compiler_flag="$3"
 
2226
   lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
2163
2227
   # Insert the option either (1) after the last *FLAGS variable, or
2164
2228
   # (2) before a word containing "conftest.", or (3) at the end.
2165
2229
   # Note that $ac_compile itself does not contain backslashes and begins
2186
2250
   $RM conftest*
2187
2251
])
2188
2252
 
2189
 
if test x"[$]$2" = xyes; then
 
2253
if test yes = "[$]$2"; then
2190
2254
    m4_if([$5], , :, [$5])
2191
2255
else
2192
2256
    m4_if([$6], , :, [$6])
2208
2272
m4_require([_LT_DECL_SED])dnl
2209
2273
AC_CACHE_CHECK([$1], [$2],
2210
2274
  [$2=no
2211
 
   save_LDFLAGS="$LDFLAGS"
 
2275
   save_LDFLAGS=$LDFLAGS
2212
2276
   LDFLAGS="$LDFLAGS $3"
2213
2277
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
2214
2278
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2227
2291
     fi
2228
2292
   fi
2229
2293
   $RM -r conftest*
2230
 
   LDFLAGS="$save_LDFLAGS"
 
2294
   LDFLAGS=$save_LDFLAGS
2231
2295
])
2232
2296
 
2233
 
if test x"[$]$2" = xyes; then
 
2297
if test yes = "[$]$2"; then
2234
2298
    m4_if([$4], , :, [$4])
2235
2299
else
2236
2300
    m4_if([$5], , :, [$5])
2251
2315
AC_MSG_CHECKING([the maximum length of command line arguments])
2252
2316
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2253
2317
  i=0
2254
 
  teststring="ABCD"
 
2318
  teststring=ABCD
2255
2319
 
2256
2320
  case $build_os in
2257
2321
  msdosdjgpp*)
2291
2355
    lt_cv_sys_max_cmd_len=8192;
2292
2356
    ;;
2293
2357
 
2294
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
2358
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
2295
2359
    # This has been around since 386BSD, at least.  Likely further.
2296
2360
    if test -x /sbin/sysctl; then
2297
2361
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2342
2406
  *)
2343
2407
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2344
2408
    if test -n "$lt_cv_sys_max_cmd_len" && \
2345
 
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
2409
       test undefined != "$lt_cv_sys_max_cmd_len"; then
2346
2410
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2347
2411
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2348
2412
    else
2349
2413
      # Make teststring a little bigger before we do anything with it.
2350
2414
      # a 1K string should be a reasonable start.
2351
 
      for i in 1 2 3 4 5 6 7 8 ; do
 
2415
      for i in 1 2 3 4 5 6 7 8; do
2352
2416
        teststring=$teststring$teststring
2353
2417
      done
2354
2418
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2355
2419
      # If test is not a shell built-in, we'll probably end up computing a
2356
2420
      # maximum length that is only half of the actual maximum length, but
2357
2421
      # we can't tell.
2358
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
2422
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
2359
2423
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2360
 
              test $i != 17 # 1/2 MB should be enough
 
2424
              test 17 != "$i" # 1/2 MB should be enough
2361
2425
      do
2362
2426
        i=`expr $i + 1`
2363
2427
        teststring=$teststring$teststring
2373
2437
    ;;
2374
2438
  esac
2375
2439
])
2376
 
if test -n $lt_cv_sys_max_cmd_len ; then
 
2440
if test -n "$lt_cv_sys_max_cmd_len"; then
2377
2441
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2378
2442
else
2379
2443
  AC_MSG_RESULT(none)
2401
2465
# ----------------------------------------------------------------
2402
2466
m4_defun([_LT_TRY_DLOPEN_SELF],
2403
2467
[m4_require([_LT_HEADER_DLFCN])dnl
2404
 
if test "$cross_compiling" = yes; then :
 
2468
if test yes = "$cross_compiling"; then :
2405
2469
  [$4]
2406
2470
else
2407
2471
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2448
2512
#  endif
2449
2513
#endif
2450
2514
 
2451
 
/* When -fvisbility=hidden is used, assume the code has been annotated
 
2515
/* When -fvisibility=hidden is used, assume the code has been annotated
2452
2516
   correspondingly for the symbols needed.  */
2453
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
2517
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2454
2518
int fnord () __attribute__((visibility("default")));
2455
2519
#endif
2456
2520
 
2476
2540
  return status;
2477
2541
}]
2478
2542
_LT_EOF
2479
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
2543
  if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
2480
2544
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2481
2545
    lt_status=$?
2482
2546
    case x$lt_status in
2497
2561
# ------------------
2498
2562
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2499
2563
[m4_require([_LT_HEADER_DLFCN])dnl
2500
 
if test "x$enable_dlopen" != xyes; then
 
2564
if test yes != "$enable_dlopen"; then
2501
2565
  enable_dlopen=unknown
2502
2566
  enable_dlopen_self=unknown
2503
2567
  enable_dlopen_self_static=unknown
2507
2571
 
2508
2572
  case $host_os in
2509
2573
  beos*)
2510
 
    lt_cv_dlopen="load_add_on"
 
2574
    lt_cv_dlopen=load_add_on
2511
2575
    lt_cv_dlopen_libs=
2512
2576
    lt_cv_dlopen_self=yes
2513
2577
    ;;
2514
2578
 
2515
2579
  mingw* | pw32* | cegcc*)
2516
 
    lt_cv_dlopen="LoadLibrary"
 
2580
    lt_cv_dlopen=LoadLibrary
2517
2581
    lt_cv_dlopen_libs=
2518
2582
    ;;
2519
2583
 
2520
2584
  cygwin*)
2521
 
    lt_cv_dlopen="dlopen"
 
2585
    lt_cv_dlopen=dlopen
2522
2586
    lt_cv_dlopen_libs=
2523
2587
    ;;
2524
2588
 
2525
2589
  darwin*)
2526
 
  # if libdl is installed we need to link against it
 
2590
    # if libdl is installed we need to link against it
2527
2591
    AC_CHECK_LIB([dl], [dlopen],
2528
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2529
 
    lt_cv_dlopen="dyld"
 
2592
                [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
 
2593
    lt_cv_dlopen=dyld
2530
2594
    lt_cv_dlopen_libs=
2531
2595
    lt_cv_dlopen_self=yes
2532
2596
    ])
2533
2597
    ;;
2534
2598
 
 
2599
  tpf*)
 
2600
    # Don't try to run any link tests for TPF.  We know it's impossible
 
2601
    # because TPF is a cross-compiler, and we know how we open DSOs.
 
2602
    lt_cv_dlopen=dlopen
 
2603
    lt_cv_dlopen_libs=
 
2604
    lt_cv_dlopen_self=no
 
2605
    ;;
 
2606
 
2535
2607
  *)
2536
2608
    AC_CHECK_FUNC([shl_load],
2537
 
          [lt_cv_dlopen="shl_load"],
 
2609
          [lt_cv_dlopen=shl_load],
2538
2610
      [AC_CHECK_LIB([dld], [shl_load],
2539
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
2611
            [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
2540
2612
        [AC_CHECK_FUNC([dlopen],
2541
 
              [lt_cv_dlopen="dlopen"],
 
2613
              [lt_cv_dlopen=dlopen],
2542
2614
          [AC_CHECK_LIB([dl], [dlopen],
2543
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
2615
                [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
2544
2616
            [AC_CHECK_LIB([svld], [dlopen],
2545
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
2617
                  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
2546
2618
              [AC_CHECK_LIB([dld], [dld_link],
2547
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
2619
                    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2548
2620
              ])
2549
2621
            ])
2550
2622
          ])
2553
2625
    ;;
2554
2626
  esac
2555
2627
 
2556
 
  if test "x$lt_cv_dlopen" != xno; then
 
2628
  if test no = "$lt_cv_dlopen"; then
 
2629
    enable_dlopen=no
 
2630
  else
2557
2631
    enable_dlopen=yes
2558
 
  else
2559
 
    enable_dlopen=no
2560
2632
  fi
2561
2633
 
2562
2634
  case $lt_cv_dlopen in
2563
2635
  dlopen)
2564
 
    save_CPPFLAGS="$CPPFLAGS"
2565
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
2636
    save_CPPFLAGS=$CPPFLAGS
 
2637
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2566
2638
 
2567
 
    save_LDFLAGS="$LDFLAGS"
 
2639
    save_LDFLAGS=$LDFLAGS
2568
2640
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2569
2641
 
2570
 
    save_LIBS="$LIBS"
 
2642
    save_LIBS=$LIBS
2571
2643
    LIBS="$lt_cv_dlopen_libs $LIBS"
2572
2644
 
2573
2645
    AC_CACHE_CHECK([whether a program can dlopen itself],
2577
2649
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2578
2650
    ])
2579
2651
 
2580
 
    if test "x$lt_cv_dlopen_self" = xyes; then
 
2652
    if test yes = "$lt_cv_dlopen_self"; then
2581
2653
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2582
2654
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2583
2655
          lt_cv_dlopen_self_static, [dnl
2587
2659
      ])
2588
2660
    fi
2589
2661
 
2590
 
    CPPFLAGS="$save_CPPFLAGS"
2591
 
    LDFLAGS="$save_LDFLAGS"
2592
 
    LIBS="$save_LIBS"
 
2662
    CPPFLAGS=$save_CPPFLAGS
 
2663
    LDFLAGS=$save_LDFLAGS
 
2664
    LIBS=$save_LIBS
2593
2665
    ;;
2594
2666
  esac
2595
2667
 
2681
2753
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2682
2754
_LT_COMPILER_C_O([$1])
2683
2755
 
2684
 
hard_links="nottested"
2685
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2756
hard_links=nottested
 
2757
if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2686
2758
  # do not overwrite the value of need_locks provided by the user
2687
2759
  AC_MSG_CHECKING([if we can lock with hard links])
2688
2760
  hard_links=yes
2692
2764
  ln conftest.a conftest.b 2>&5 || hard_links=no
2693
2765
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2694
2766
  AC_MSG_RESULT([$hard_links])
2695
 
  if test "$hard_links" = no; then
2696
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
2767
  if test no = "$hard_links"; then
 
2768
    AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2697
2769
    need_locks=warn
2698
2770
  fi
2699
2771
else
2720
2792
_LT_DECL([], [objdir], [0],
2721
2793
         [The name of the directory that contains temporary libtool files])dnl
2722
2794
m4_pattern_allow([LT_OBJDIR])dnl
2723
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2724
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2795
AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
 
2796
  [Define to the sub-directory where libtool stores uninstalled libraries.])
2725
2797
])# _LT_CHECK_OBJDIR
2726
2798
 
2727
2799
 
2733
2805
_LT_TAGVAR(hardcode_action, $1)=
2734
2806
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2735
2807
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2736
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2808
   test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2737
2809
 
2738
2810
  # We can hardcode non-existent directories.
2739
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
2811
  if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2740
2812
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2741
2813
     # have to relink, otherwise we might link with an installed library
2742
2814
     # when we should be linking with a yet-to-be-installed one
2743
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2744
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2815
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
 
2816
     test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2745
2817
    # Linking always hardcodes the temporary library directory.
2746
2818
    _LT_TAGVAR(hardcode_action, $1)=relink
2747
2819
  else
2755
2827
fi
2756
2828
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2757
2829
 
2758
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2759
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
2830
if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
 
2831
   test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2760
2832
  # Fast installation is not supported
2761
2833
  enable_fast_install=no
2762
 
elif test "$shlibpath_overrides_runpath" = yes ||
2763
 
     test "$enable_shared" = no; then
 
2834
elif test yes = "$shlibpath_overrides_runpath" ||
 
2835
     test no = "$enable_shared"; then
2764
2836
  # Fast installation is not necessary
2765
2837
  enable_fast_install=needless
2766
2838
fi
2784
2856
# FIXME - insert some real tests, host_os isn't really good enough
2785
2857
  case $host_os in
2786
2858
  darwin*)
2787
 
    if test -n "$STRIP" ; then
 
2859
    if test -n "$STRIP"; then
2788
2860
      striplib="$STRIP -x"
2789
2861
      old_striplib="$STRIP -S"
2790
2862
      AC_MSG_RESULT([yes])
2802
2874
])# _LT_CMD_STRIPLIB
2803
2875
 
2804
2876
 
 
2877
# _LT_PREPARE_MUNGE_PATH_LIST
 
2878
# ---------------------------
 
2879
# Make sure func_munge_path_list() is defined correctly.
 
2880
m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
 
2881
[[# func_munge_path_list VARIABLE PATH
 
2882
# -----------------------------------
 
2883
# VARIABLE is name of variable containing _space_ separated list of
 
2884
# directories to be munged by the contents of PATH, which is string
 
2885
# having a format:
 
2886
# "DIR[:DIR]:"
 
2887
#       string "DIR[ DIR]" will be prepended to VARIABLE
 
2888
# ":DIR[:DIR]"
 
2889
#       string "DIR[ DIR]" will be appended to VARIABLE
 
2890
# "DIRP[:DIRP]::[DIRA:]DIRA"
 
2891
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 
2892
#       "DIRA[ DIRA]" will be appended to VARIABLE
 
2893
# "DIR[:DIR]"
 
2894
#       VARIABLE will be replaced by "DIR[ DIR]"
 
2895
func_munge_path_list ()
 
2896
{
 
2897
    case x@S|@2 in
 
2898
    x)
 
2899
        ;;
 
2900
    *:)
 
2901
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
 
2902
        ;;
 
2903
    x:*)
 
2904
        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
 
2905
        ;;
 
2906
    *::*)
 
2907
        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 
2908
        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
 
2909
        ;;
 
2910
    *)
 
2911
        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
 
2912
        ;;
 
2913
    esac
 
2914
}
 
2915
]])# _LT_PREPARE_PATH_LIST
 
2916
 
 
2917
 
2805
2918
# _LT_SYS_DYNAMIC_LINKER([TAG])
2806
2919
# -----------------------------
2807
2920
# PORTME Fill in your ld.so characteristics
2812
2925
m4_require([_LT_DECL_OBJDUMP])dnl
2813
2926
m4_require([_LT_DECL_SED])dnl
2814
2927
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
2928
m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2815
2929
AC_MSG_CHECKING([dynamic linker characteristics])
2816
2930
m4_if([$1],
2817
2931
        [], [
2818
 
if test "$GCC" = yes; then
 
2932
if test yes = "$GCC"; then
2819
2933
  case $host_os in
2820
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2821
 
    *) lt_awk_arg="/^libraries:/" ;;
 
2934
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 
2935
    *) lt_awk_arg='/^libraries:/' ;;
2822
2936
  esac
2823
2937
  case $host_os in
2824
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2825
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
2938
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
 
2939
    *) lt_sed_strip_eq='s|=/|/|g' ;;
2826
2940
  esac
2827
2941
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2828
2942
  case $lt_search_path_spec in
2838
2952
    ;;
2839
2953
  esac
2840
2954
  # Ok, now we have the path, separated by spaces, we can step through it
2841
 
  # and add multilib dir if necessary.
 
2955
  # and add multilib dir if necessary...
2842
2956
  lt_tmp_lt_search_path_spec=
2843
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
2957
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
2958
  # ...but if some path component already ends with the multilib dir we assume
 
2959
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 
2960
  case "$lt_multi_os_dir; $lt_search_path_spec " in
 
2961
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 
2962
    lt_multi_os_dir=
 
2963
    ;;
 
2964
  esac
2844
2965
  for lt_sys_path in $lt_search_path_spec; do
2845
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2846
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2847
 
    else
 
2966
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
 
2967
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 
2968
    elif test -n "$lt_multi_os_dir"; then
2848
2969
      test -d "$lt_sys_path" && \
2849
2970
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2850
2971
    fi
2851
2972
  done
2852
2973
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2853
 
BEGIN {RS=" "; FS="/|\n";} {
2854
 
  lt_foo="";
2855
 
  lt_count=0;
 
2974
BEGIN {RS = " "; FS = "/|\n";} {
 
2975
  lt_foo = "";
 
2976
  lt_count = 0;
2856
2977
  for (lt_i = NF; lt_i > 0; lt_i--) {
2857
2978
    if ($lt_i != "" && $lt_i != ".") {
2858
2979
      if ($lt_i == "..") {
2859
2980
        lt_count++;
2860
2981
      } else {
2861
2982
        if (lt_count == 0) {
2862
 
          lt_foo="/" $lt_i lt_foo;
 
2983
          lt_foo = "/" $lt_i lt_foo;
2863
2984
        } else {
2864
2985
          lt_count--;
2865
2986
        }
2873
2994
  # for these hosts.
2874
2995
  case $host_os in
2875
2996
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2876
 
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 
2997
      $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2877
2998
  esac
2878
2999
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2879
3000
else
2882
3003
library_names_spec=
2883
3004
libname_spec='lib$name'
2884
3005
soname_spec=
2885
 
shrext_cmds=".so"
 
3006
shrext_cmds=.so
2886
3007
postinstall_cmds=
2887
3008
postuninstall_cmds=
2888
3009
finish_cmds=
2899
3020
# flags to be left without arguments
2900
3021
need_version=unknown
2901
3022
 
 
3023
AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
 
3024
[User-defined run-time library search path.])
 
3025
 
2902
3026
case $host_os in
2903
3027
aix3*)
2904
3028
  version_type=linux # correct to gnu/linux during the next big refactor
2905
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
3029
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2906
3030
  shlibpath_var=LIBPATH
2907
3031
 
2908
3032
  # AIX 3 has no versioning support, so we append a major version to the name.
2909
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3033
  soname_spec='$libname$release$shared_ext$major'
2910
3034
  ;;
2911
3035
 
2912
3036
aix[[4-9]]*)
2914
3038
  need_lib_prefix=no
2915
3039
  need_version=no
2916
3040
  hardcode_into_libs=yes
2917
 
  if test "$host_cpu" = ia64; then
 
3041
  if test ia64 = "$host_cpu"; then
2918
3042
    # AIX 5 supports IA64
2919
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
3043
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2920
3044
    shlibpath_var=LD_LIBRARY_PATH
2921
3045
  else
2922
3046
    # With GCC up to 2.95.x, collect2 would create an import file
2923
3047
    # for dependence libraries.  The import file would start with
2924
 
    # the line `#! .'.  This would cause the generated library to
2925
 
    # depend on `.', always an invalid library.  This was fixed in
 
3048
    # the line '#! .'.  This would cause the generated library to
 
3049
    # depend on '.', always an invalid library.  This was fixed in
2926
3050
    # development snapshots of GCC prior to 3.0.
2927
3051
    case $host_os in
2928
3052
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2929
3053
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2930
3054
           echo ' yes '
2931
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
3055
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2932
3056
        :
2933
3057
      else
2934
3058
        can_build_shared=no
2935
3059
      fi
2936
3060
      ;;
2937
3061
    esac
2938
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
3062
    # Using Import Files as archive members, it is possible to support
 
3063
    # filename-based versioning of shared library archives on AIX. While
 
3064
    # this would work for both with and without runtime linking, it will
 
3065
    # prevent static linking of such archives. So we do filename-based
 
3066
    # shared library versioning with .so extension only, which is used
 
3067
    # when both runtime linking and shared linking is enabled.
 
3068
    # Unfortunately, runtime linking may impact performance, so we do
 
3069
    # not want this to be the default eventually. Also, we use the
 
3070
    # versioned .so libs for executables only if there is the -brtl
 
3071
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 
3072
    # To allow for filename-based versioning support, we need to create
 
3073
    # libNAME.so.V as an archive file, containing:
 
3074
    # *) an Import File, referring to the versioned filename of the
 
3075
    #    archive as well as the shared archive member, telling the
 
3076
    #    bitwidth (32 or 64) of that shared object, and providing the
 
3077
    #    list of exported symbols of that shared object, eventually
 
3078
    #    decorated with the 'weak' keyword
 
3079
    # *) the shared object with the F_LOADONLY flag set, to really avoid
 
3080
    #    it being seen by the linker.
 
3081
    # At run time we better use the real file rather than another symlink,
 
3082
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
 
3083
 
 
3084
    case $with_aix_soname,$aix_use_runtimelinking in
 
3085
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2939
3086
    # soname into executable. Probably we can add versioning support to
2940
3087
    # collect2, so additional links can be useful in future.
2941
 
    if test "$aix_use_runtimelinking" = yes; then
 
3088
    aix,yes) # traditional libtool
 
3089
      dynamic_linker='AIX unversionable lib.so'
2942
3090
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2943
3091
      # instead of lib<name>.a to let people know that these are not
2944
3092
      # typical AIX shared libraries.
2945
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2946
 
    else
 
3093
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3094
      ;;
 
3095
    aix,no) # traditional AIX only
 
3096
      dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2947
3097
      # We preserve .a as extension for shared libraries through AIX4.2
2948
3098
      # and later when we are not doing run time linking.
2949
 
      library_names_spec='${libname}${release}.a $libname.a'
2950
 
      soname_spec='${libname}${release}${shared_ext}$major'
2951
 
    fi
 
3099
      library_names_spec='$libname$release.a $libname.a'
 
3100
      soname_spec='$libname$release$shared_ext$major'
 
3101
      ;;
 
3102
    svr4,*) # full svr4 only
 
3103
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
 
3104
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
3105
      # We do not specify a path in Import Files, so LIBPATH fires.
 
3106
      shlibpath_overrides_runpath=yes
 
3107
      ;;
 
3108
    *,yes) # both, prefer svr4
 
3109
      dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
 
3110
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 
3111
      # unpreferred sharedlib libNAME.a needs extra handling
 
3112
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
 
3113
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
 
3114
      # We do not specify a path in Import Files, so LIBPATH fires.
 
3115
      shlibpath_overrides_runpath=yes
 
3116
      ;;
 
3117
    *,no) # both, prefer aix
 
3118
      dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
 
3119
      library_names_spec='$libname$release.a $libname.a'
 
3120
      soname_spec='$libname$release$shared_ext$major'
 
3121
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 
3122
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
 
3123
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
 
3124
      ;;
 
3125
    esac
2952
3126
    shlibpath_var=LIBPATH
2953
3127
  fi
2954
3128
  ;;
2958
3132
  powerpc)
2959
3133
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2960
3134
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2961
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3135
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2962
3136
    ;;
2963
3137
  m68k)
2964
3138
    library_names_spec='$libname.ixlibrary $libname.a'
2965
3139
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2966
 
    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'
 
3140
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
2967
3141
    ;;
2968
3142
  esac
2969
3143
  ;;
2970
3144
 
2971
3145
beos*)
2972
 
  library_names_spec='${libname}${shared_ext}'
 
3146
  library_names_spec='$libname$shared_ext'
2973
3147
  dynamic_linker="$host_os ld.so"
2974
3148
  shlibpath_var=LIBRARY_PATH
2975
3149
  ;;
2977
3151
bsdi[[45]]*)
2978
3152
  version_type=linux # correct to gnu/linux during the next big refactor
2979
3153
  need_version=no
2980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2981
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3154
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3155
  soname_spec='$libname$release$shared_ext$major'
2982
3156
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2983
3157
  shlibpath_var=LD_LIBRARY_PATH
2984
3158
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2990
3164
 
2991
3165
cygwin* | mingw* | pw32* | cegcc*)
2992
3166
  version_type=windows
2993
 
  shrext_cmds=".dll"
 
3167
  shrext_cmds=.dll
2994
3168
  need_version=no
2995
3169
  need_lib_prefix=no
2996
3170
 
2999
3173
    # gcc
3000
3174
    library_names_spec='$libname.dll.a'
3001
3175
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3002
 
    postinstall_cmds='base_file=`basename \${file}`~
3003
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3176
    postinstall_cmds='base_file=`basename \$file`~
 
3177
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
3004
3178
      dldir=$destdir/`dirname \$dlpath`~
3005
3179
      test -d \$dldir || mkdir -p \$dldir~
3006
3180
      $install_prog $dir/$dlname \$dldir/$dlname~
3016
3190
    case $host_os in
3017
3191
    cygwin*)
3018
3192
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3019
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3193
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
3020
3194
m4_if([$1], [],[
3021
3195
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3022
3196
      ;;
3023
3197
    mingw* | cegcc*)
3024
3198
      # MinGW DLLs use traditional 'lib' prefix
3025
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3199
      soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
3026
3200
      ;;
3027
3201
    pw32*)
3028
3202
      # pw32 DLLs use 'pw' prefix rather than 'lib'
3029
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
3203
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
3030
3204
      ;;
3031
3205
    esac
3032
3206
    dynamic_linker='Win32 ld.exe'
3035
3209
  *,cl*)
3036
3210
    # Native MSVC
3037
3211
    libname_spec='$name'
3038
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3039
 
    library_names_spec='${libname}.dll.lib'
 
3212
    soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 
3213
    library_names_spec='$libname.dll.lib'
3040
3214
 
3041
3215
    case $build_os in
3042
3216
    mingw*)
3063
3237
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3064
3238
      ;;
3065
3239
    *)
3066
 
      sys_lib_search_path_spec="$LIB"
 
3240
      sys_lib_search_path_spec=$LIB
3067
3241
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3068
3242
        # It is most probably a Windows format PATH.
3069
3243
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3076
3250
    esac
3077
3251
 
3078
3252
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3079
 
    postinstall_cmds='base_file=`basename \${file}`~
3080
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3253
    postinstall_cmds='base_file=`basename \$file`~
 
3254
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
3081
3255
      dldir=$destdir/`dirname \$dlpath`~
3082
3256
      test -d \$dldir || mkdir -p \$dldir~
3083
3257
      $install_prog $dir/$dlname \$dldir/$dlname'
3090
3264
 
3091
3265
  *)
3092
3266
    # Assume MSVC wrapper
3093
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
3267
    library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
3094
3268
    dynamic_linker='Win32 ld.exe'
3095
3269
    ;;
3096
3270
  esac
3103
3277
  version_type=darwin
3104
3278
  need_lib_prefix=no
3105
3279
  need_version=no
3106
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3107
 
  soname_spec='${libname}${release}${major}$shared_ext'
 
3280
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
3281
  soname_spec='$libname$release$major$shared_ext'
3108
3282
  shlibpath_overrides_runpath=yes
3109
3283
  shlibpath_var=DYLD_LIBRARY_PATH
3110
3284
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3117
3291
  version_type=linux # correct to gnu/linux during the next big refactor
3118
3292
  need_lib_prefix=no
3119
3293
  need_version=no
3120
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3121
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3294
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3295
  soname_spec='$libname$release$shared_ext$major'
3122
3296
  shlibpath_var=LD_LIBRARY_PATH
3123
3297
  ;;
3124
3298
 
3136
3310
  version_type=freebsd-$objformat
3137
3311
  case $version_type in
3138
3312
    freebsd-elf*)
3139
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3313
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3314
      soname_spec='$libname$release$shared_ext$major'
3140
3315
      need_version=no
3141
3316
      need_lib_prefix=no
3142
3317
      ;;
3143
3318
    freebsd-*)
3144
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
3319
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3145
3320
      need_version=yes
3146
3321
      ;;
3147
3322
  esac
3171
3346
  need_lib_prefix=no
3172
3347
  need_version=no
3173
3348
  dynamic_linker="$host_os runtime_loader"
3174
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3175
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3349
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3350
  soname_spec='$libname$release$shared_ext$major'
3176
3351
  shlibpath_var=LIBRARY_PATH
3177
 
  shlibpath_overrides_runpath=yes
 
3352
  shlibpath_overrides_runpath=no
3178
3353
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3179
3354
  hardcode_into_libs=yes
3180
3355
  ;;
3192
3367
    dynamic_linker="$host_os dld.so"
3193
3368
    shlibpath_var=LD_LIBRARY_PATH
3194
3369
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3195
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3196
 
    soname_spec='${libname}${release}${shared_ext}$major'
3197
 
    if test "X$HPUX_IA64_MODE" = X32; then
 
3370
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3371
    soname_spec='$libname$release$shared_ext$major'
 
3372
    if test 32 = "$HPUX_IA64_MODE"; then
3198
3373
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
3374
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
3199
3375
    else
3200
3376
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
3377
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
3201
3378
    fi
3202
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3203
3379
    ;;
3204
3380
  hppa*64*)
3205
3381
    shrext_cmds='.sl'
3207
3383
    dynamic_linker="$host_os dld.sl"
3208
3384
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3209
3385
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3210
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3211
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
3386
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3387
    soname_spec='$libname$release$shared_ext$major'
3212
3388
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3213
3389
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3214
3390
    ;;
3217
3393
    dynamic_linker="$host_os dld.sl"
3218
3394
    shlibpath_var=SHLIB_PATH
3219
3395
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3220
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3221
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
3396
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3397
    soname_spec='$libname$release$shared_ext$major'
3222
3398
    ;;
3223
3399
  esac
3224
3400
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3231
3407
  version_type=linux # correct to gnu/linux during the next big refactor
3232
3408
  need_lib_prefix=no
3233
3409
  need_version=no
3234
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3235
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3410
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3411
  soname_spec='$libname$release$shared_ext$major'
3236
3412
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3237
3413
  shlibpath_var=LD_LIBRARY_PATH
3238
3414
  shlibpath_overrides_runpath=no
3243
3419
  case $host_os in
3244
3420
    nonstopux*) version_type=nonstopux ;;
3245
3421
    *)
3246
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
3422
        if test yes = "$lt_cv_prog_gnu_ld"; then
3247
3423
                version_type=linux # correct to gnu/linux during the next big refactor
3248
3424
        else
3249
3425
                version_type=irix
3251
3427
  esac
3252
3428
  need_lib_prefix=no
3253
3429
  need_version=no
3254
 
  soname_spec='${libname}${release}${shared_ext}$major'
3255
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3430
  soname_spec='$libname$release$shared_ext$major'
 
3431
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
3256
3432
  case $host_os in
3257
3433
  irix5* | nonstopux*)
3258
3434
    libsuff= shlibsuff=
3271
3447
  esac
3272
3448
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3273
3449
  shlibpath_overrides_runpath=no
3274
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3275
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3450
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
3451
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
3276
3452
  hardcode_into_libs=yes
3277
3453
  ;;
3278
3454
 
3281
3457
  dynamic_linker=no
3282
3458
  ;;
3283
3459
 
 
3460
linux*android*)
 
3461
  version_type=none # Android doesn't support versioned libraries.
 
3462
  need_lib_prefix=no
 
3463
  need_version=no
 
3464
  library_names_spec='$libname$release$shared_ext'
 
3465
  soname_spec='$libname$release$shared_ext'
 
3466
  finish_cmds=
 
3467
  shlibpath_var=LD_LIBRARY_PATH
 
3468
  shlibpath_overrides_runpath=yes
 
3469
 
 
3470
  # This implies no fast_install, which is unacceptable.
 
3471
  # Some rework will be needed to allow for fast_install
 
3472
  # before this can be enabled.
 
3473
  hardcode_into_libs=yes
 
3474
 
 
3475
  dynamic_linker='Android linker'
 
3476
  # Don't embed -rpath directories since the linker doesn't support them.
 
3477
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3478
  ;;
 
3479
 
3284
3480
# This must be glibc/ELF.
3285
3481
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3286
3482
  version_type=linux # correct to gnu/linux during the next big refactor
3287
3483
  need_lib_prefix=no
3288
3484
  need_version=no
3289
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3290
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3485
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3486
  soname_spec='$libname$release$shared_ext$major'
3291
3487
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3292
3488
  shlibpath_var=LD_LIBRARY_PATH
3293
3489
  shlibpath_overrides_runpath=no
3312
3508
  # before this can be enabled.
3313
3509
  hardcode_into_libs=yes
3314
3510
 
3315
 
  # Append ld.so.conf contents to the search path
 
3511
  # Ideally, we could use ldconfig to report *all* directores which are
 
3512
  # searched for libraries, however this is still not possible.  Aside from not
 
3513
  # being certain /sbin/ldconfig is available, command
 
3514
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 
3515
  # even though it is searched at run-time.  Try to do the best guess by
 
3516
  # appending ld.so.conf contents (and includes) to the search path.
3316
3517
  if test -f /etc/ld.so.conf; then
3317
3518
    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' ' '`
3318
3519
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3344
3545
  need_lib_prefix=no
3345
3546
  need_version=no
3346
3547
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3347
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3548
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3348
3549
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3349
3550
    dynamic_linker='NetBSD (a.out) ld.so'
3350
3551
  else
3351
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3352
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
3552
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3553
    soname_spec='$libname$release$shared_ext$major'
3353
3554
    dynamic_linker='NetBSD ld.elf_so'
3354
3555
  fi
3355
3556
  shlibpath_var=LD_LIBRARY_PATH
3359
3560
 
3360
3561
newsos6)
3361
3562
  version_type=linux # correct to gnu/linux during the next big refactor
3362
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3563
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3363
3564
  shlibpath_var=LD_LIBRARY_PATH
3364
3565
  shlibpath_overrides_runpath=yes
3365
3566
  ;;
3368
3569
  version_type=qnx
3369
3570
  need_lib_prefix=no
3370
3571
  need_version=no
3371
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3372
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3572
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3573
  soname_spec='$libname$release$shared_ext$major'
3373
3574
  shlibpath_var=LD_LIBRARY_PATH
3374
3575
  shlibpath_overrides_runpath=no
3375
3576
  hardcode_into_libs=yes
3376
3577
  dynamic_linker='ldqnx.so'
3377
3578
  ;;
3378
3579
 
3379
 
openbsd*)
 
3580
openbsd* | bitrig*)
3380
3581
  version_type=sunos
3381
 
  sys_lib_dlsearch_path_spec="/usr/lib"
 
3582
  sys_lib_dlsearch_path_spec=/usr/lib
3382
3583
  need_lib_prefix=no
3383
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3384
 
  case $host_os in
3385
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
3386
 
    *)                          need_version=no  ;;
3387
 
  esac
3388
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3584
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
3585
    need_version=no
 
3586
  else
 
3587
    need_version=yes
 
3588
  fi
 
3589
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3389
3590
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3390
3591
  shlibpath_var=LD_LIBRARY_PATH
3391
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3392
 
    case $host_os in
3393
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
3394
 
        shlibpath_overrides_runpath=no
3395
 
        ;;
3396
 
      *)
3397
 
        shlibpath_overrides_runpath=yes
3398
 
        ;;
3399
 
      esac
3400
 
  else
3401
 
    shlibpath_overrides_runpath=yes
3402
 
  fi
 
3592
  shlibpath_overrides_runpath=yes
3403
3593
  ;;
3404
3594
 
3405
3595
os2*)
3406
3596
  libname_spec='$name'
3407
 
  shrext_cmds=".dll"
 
3597
  version_type=windows
 
3598
  shrext_cmds=.dll
 
3599
  need_version=no
3408
3600
  need_lib_prefix=no
3409
 
  library_names_spec='$libname${shared_ext} $libname.a'
 
3601
  # OS/2 can only load a DLL with a base name of 8 characters or less.
 
3602
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 
3603
    v=$($ECHO $release$versuffix | tr -d .-);
 
3604
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 
3605
    $ECHO $n$v`$shared_ext'
 
3606
  library_names_spec='${libname}_dll.$libext'
3410
3607
  dynamic_linker='OS/2 ld.exe'
3411
 
  shlibpath_var=LIBPATH
 
3608
  shlibpath_var=BEGINLIBPATH
 
3609
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3610
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3611
  postinstall_cmds='base_file=`basename \$file`~
 
3612
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 
3613
    dldir=$destdir/`dirname \$dlpath`~
 
3614
    test -d \$dldir || mkdir -p \$dldir~
 
3615
    $install_prog $dir/$dlname \$dldir/$dlname~
 
3616
    chmod a+x \$dldir/$dlname~
 
3617
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3618
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3619
    fi'
 
3620
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 
3621
    dlpath=$dir/\$dldll~
 
3622
    $RM \$dlpath'
3412
3623
  ;;
3413
3624
 
3414
3625
osf3* | osf4* | osf5*)
3415
3626
  version_type=osf
3416
3627
  need_lib_prefix=no
3417
3628
  need_version=no
3418
 
  soname_spec='${libname}${release}${shared_ext}$major'
3419
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3629
  soname_spec='$libname$release$shared_ext$major'
 
3630
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3420
3631
  shlibpath_var=LD_LIBRARY_PATH
3421
3632
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3422
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3633
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3423
3634
  ;;
3424
3635
 
3425
3636
rdos*)
3430
3641
  version_type=linux # correct to gnu/linux during the next big refactor
3431
3642
  need_lib_prefix=no
3432
3643
  need_version=no
3433
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3434
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3644
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3645
  soname_spec='$libname$release$shared_ext$major'
3435
3646
  shlibpath_var=LD_LIBRARY_PATH
3436
3647
  shlibpath_overrides_runpath=yes
3437
3648
  hardcode_into_libs=yes
3441
3652
 
3442
3653
sunos4*)
3443
3654
  version_type=sunos
3444
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3655
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3445
3656
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3446
3657
  shlibpath_var=LD_LIBRARY_PATH
3447
3658
  shlibpath_overrides_runpath=yes
3448
 
  if test "$with_gnu_ld" = yes; then
 
3659
  if test yes = "$with_gnu_ld"; then
3449
3660
    need_lib_prefix=no
3450
3661
  fi
3451
3662
  need_version=yes
3453
3664
 
3454
3665
sysv4 | sysv4.3*)
3455
3666
  version_type=linux # correct to gnu/linux during the next big refactor
3456
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3457
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3667
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3668
  soname_spec='$libname$release$shared_ext$major'
3458
3669
  shlibpath_var=LD_LIBRARY_PATH
3459
3670
  case $host_vendor in
3460
3671
    sni)
3475
3686
  ;;
3476
3687
 
3477
3688
sysv4*MP*)
3478
 
  if test -d /usr/nec ;then
 
3689
  if test -d /usr/nec; then
3479
3690
    version_type=linux # correct to gnu/linux during the next big refactor
3480
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3481
 
    soname_spec='$libname${shared_ext}.$major'
 
3691
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
3692
    soname_spec='$libname$shared_ext.$major'
3482
3693
    shlibpath_var=LD_LIBRARY_PATH
3483
3694
  fi
3484
3695
  ;;
3485
3696
 
3486
3697
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3487
 
  version_type=freebsd-elf
 
3698
  version_type=sco
3488
3699
  need_lib_prefix=no
3489
3700
  need_version=no
3490
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3491
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3701
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
3702
  soname_spec='$libname$release$shared_ext$major'
3492
3703
  shlibpath_var=LD_LIBRARY_PATH
3493
3704
  shlibpath_overrides_runpath=yes
3494
3705
  hardcode_into_libs=yes
3495
 
  if test "$with_gnu_ld" = yes; then
 
3706
  if test yes = "$with_gnu_ld"; then
3496
3707
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3497
3708
  else
3498
3709
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3510
3721
  version_type=linux # correct to gnu/linux during the next big refactor
3511
3722
  need_lib_prefix=no
3512
3723
  need_version=no
3513
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3724
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3514
3725
  shlibpath_var=LD_LIBRARY_PATH
3515
3726
  shlibpath_overrides_runpath=no
3516
3727
  hardcode_into_libs=yes
3518
3729
 
3519
3730
uts4*)
3520
3731
  version_type=linux # correct to gnu/linux during the next big refactor
3521
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3522
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
3732
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
3733
  soname_spec='$libname$release$shared_ext$major'
3523
3734
  shlibpath_var=LD_LIBRARY_PATH
3524
3735
  ;;
3525
3736
 
3528
3739
  ;;
3529
3740
esac
3530
3741
AC_MSG_RESULT([$dynamic_linker])
3531
 
test "$dynamic_linker" = no && can_build_shared=no
 
3742
test no = "$dynamic_linker" && can_build_shared=no
3532
3743
 
3533
3744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3534
 
if test "$GCC" = yes; then
 
3745
if test yes = "$GCC"; then
3535
3746
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3536
3747
fi
3537
3748
 
3538
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3539
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3540
 
fi
3541
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3542
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3543
 
fi
 
3749
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
3750
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 
3751
fi
 
3752
 
 
3753
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
3754
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 
3755
fi
 
3756
 
 
3757
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 
3758
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 
3759
 
 
3760
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 
3761
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 
3762
 
 
3763
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 
3764
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3544
3765
 
3545
3766
_LT_DECL([], [variables_saved_for_relink], [1],
3546
3767
    [Variables whose values should be saved in libtool wrapper scripts and
3574
3795
    [Whether we should hardcode library paths into libraries])
3575
3796
_LT_DECL([], [sys_lib_search_path_spec], [2],
3576
3797
    [Compile-time system search path for libraries])
3577
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3578
 
    [Run-time system search path for libraries])
 
3798
_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
 
3799
    [Detected run-time system search path for libraries])
 
3800
_LT_DECL([], [configure_time_lt_sys_library_path], [2],
 
3801
    [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3579
3802
])# _LT_SYS_DYNAMIC_LINKER
3580
3803
 
3581
3804
 
3582
3805
# _LT_PATH_TOOL_PREFIX(TOOL)
3583
3806
# --------------------------
3584
 
# find a file program which can recognize shared library
 
3807
# find a file program that can recognize shared library
3585
3808
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3586
3809
[m4_require([_LT_DECL_EGREP])dnl
3587
3810
AC_MSG_CHECKING([for $1])
3588
3811
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3589
3812
[case $MAGIC_CMD in
3590
3813
[[\\/*] |  ?:[\\/]*])
3591
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
3814
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3592
3815
  ;;
3593
3816
*)
3594
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3595
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3817
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
3818
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3596
3819
dnl $ac_dummy forces splitting on constant user-supplied paths.
3597
3820
dnl POSIX.2 word splitting is done only on the output of word expansions,
3598
3821
dnl not every word.  This closes a longstanding sh security hole.
3599
3822
  ac_dummy="m4_if([$2], , $PATH, [$2])"
3600
3823
  for ac_dir in $ac_dummy; do
3601
 
    IFS="$lt_save_ifs"
 
3824
    IFS=$lt_save_ifs
3602
3825
    test -z "$ac_dir" && ac_dir=.
3603
 
    if test -f $ac_dir/$1; then
3604
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
3826
    if test -f "$ac_dir/$1"; then
 
3827
      lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3605
3828
      if test -n "$file_magic_test_file"; then
3606
3829
        case $deplibs_check_method in
3607
3830
        "file_magic "*)
3608
3831
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3609
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3832
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3610
3833
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3611
3834
            $EGREP "$file_magic_regex" > /dev/null; then
3612
3835
            :
3629
3852
      break
3630
3853
    fi
3631
3854
  done
3632
 
  IFS="$lt_save_ifs"
3633
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
3855
  IFS=$lt_save_ifs
 
3856
  MAGIC_CMD=$lt_save_MAGIC_CMD
3634
3857
  ;;
3635
3858
esac])
3636
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3859
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3637
3860
if test -n "$MAGIC_CMD"; then
3638
3861
  AC_MSG_RESULT($MAGIC_CMD)
3639
3862
else
3651
3874
 
3652
3875
# _LT_PATH_MAGIC
3653
3876
# --------------
3654
 
# find a file program which can recognize a shared library
 
3877
# find a file program that can recognize a shared library
3655
3878
m4_defun([_LT_PATH_MAGIC],
3656
3879
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3657
3880
if test -z "$lt_cv_path_MAGIC_CMD"; then
3678
3901
AC_ARG_WITH([gnu-ld],
3679
3902
    [AS_HELP_STRING([--with-gnu-ld],
3680
3903
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3681
 
    [test "$withval" = no || with_gnu_ld=yes],
 
3904
    [test no = "$withval" || with_gnu_ld=yes],
3682
3905
    [with_gnu_ld=no])dnl
3683
3906
 
3684
3907
ac_prog=ld
3685
 
if test "$GCC" = yes; then
 
3908
if test yes = "$GCC"; then
3686
3909
  # Check if gcc -print-prog-name=ld gives a path.
3687
3910
  AC_MSG_CHECKING([for ld used by $CC])
3688
3911
  case $host in
3689
3912
  *-*-mingw*)
3690
 
    # gcc leaves a trailing carriage return which upsets mingw
 
3913
    # gcc leaves a trailing carriage return, which upsets mingw
3691
3914
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3692
3915
  *)
3693
3916
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3701
3924
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3702
3925
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3703
3926
      done
3704
 
      test -z "$LD" && LD="$ac_prog"
 
3927
      test -z "$LD" && LD=$ac_prog
3705
3928
      ;;
3706
3929
  "")
3707
3930
    # If it fails, then pretend we aren't using GCC.
3712
3935
    with_gnu_ld=unknown
3713
3936
    ;;
3714
3937
  esac
3715
 
elif test "$with_gnu_ld" = yes; then
 
3938
elif test yes = "$with_gnu_ld"; then
3716
3939
  AC_MSG_CHECKING([for GNU ld])
3717
3940
else
3718
3941
  AC_MSG_CHECKING([for non-GNU ld])
3719
3942
fi
3720
3943
AC_CACHE_VAL(lt_cv_path_LD,
3721
3944
[if test -z "$LD"; then
3722
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3945
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3723
3946
  for ac_dir in $PATH; do
3724
 
    IFS="$lt_save_ifs"
 
3947
    IFS=$lt_save_ifs
3725
3948
    test -z "$ac_dir" && ac_dir=.
3726
3949
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3727
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3950
      lt_cv_path_LD=$ac_dir/$ac_prog
3728
3951
      # Check to see if the program is GNU ld.  I'd rather use --version,
3729
3952
      # but apparently some variants of GNU ld only accept -v.
3730
3953
      # Break only if it was the GNU/non-GNU ld that we prefer.
3731
3954
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3732
3955
      *GNU* | *'with BFD'*)
3733
 
        test "$with_gnu_ld" != no && break
 
3956
        test no != "$with_gnu_ld" && break
3734
3957
        ;;
3735
3958
      *)
3736
 
        test "$with_gnu_ld" != yes && break
 
3959
        test yes != "$with_gnu_ld" && break
3737
3960
        ;;
3738
3961
      esac
3739
3962
    fi
3740
3963
  done
3741
 
  IFS="$lt_save_ifs"
 
3964
  IFS=$lt_save_ifs
3742
3965
else
3743
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3966
  lt_cv_path_LD=$LD # Let the user override the test with a path.
3744
3967
fi])
3745
 
LD="$lt_cv_path_LD"
 
3968
LD=$lt_cv_path_LD
3746
3969
if test -n "$LD"; then
3747
3970
  AC_MSG_RESULT($LD)
3748
3971
else
3796
4019
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3797
4020
case $host_os in
3798
4021
  cygwin* | mingw* | pw32* | cegcc*)
3799
 
    if test "$GCC" != yes; then
 
4022
    if test yes != "$GCC"; then
3800
4023
      reload_cmds=false
3801
4024
    fi
3802
4025
    ;;
3803
4026
  darwin*)
3804
 
    if test "$GCC" = yes; then
3805
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4027
    if test yes = "$GCC"; then
 
4028
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3806
4029
    else
3807
4030
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3808
4031
    fi
3813
4036
])# _LT_CMD_RELOAD
3814
4037
 
3815
4038
 
 
4039
# _LT_PATH_DD
 
4040
# -----------
 
4041
# find a working dd
 
4042
m4_defun([_LT_PATH_DD],
 
4043
[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
 
4044
[printf 0123456789abcdef0123456789abcdef >conftest.i
 
4045
cat conftest.i conftest.i >conftest2.i
 
4046
: ${lt_DD:=$DD}
 
4047
AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
 
4048
[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
4049
  cmp -s conftest.i conftest.out \
 
4050
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 
4051
fi])
 
4052
rm -f conftest.i conftest2.i conftest.out])
 
4053
])# _LT_PATH_DD
 
4054
 
 
4055
 
 
4056
# _LT_CMD_TRUNCATE
 
4057
# ----------------
 
4058
# find command to truncate a binary pipe
 
4059
m4_defun([_LT_CMD_TRUNCATE],
 
4060
[m4_require([_LT_PATH_DD])
 
4061
AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
 
4062
[printf 0123456789abcdef0123456789abcdef >conftest.i
 
4063
cat conftest.i conftest.i >conftest2.i
 
4064
lt_cv_truncate_bin=
 
4065
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 
4066
  cmp -s conftest.i conftest.out \
 
4067
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 
4068
fi
 
4069
rm -f conftest.i conftest2.i conftest.out
 
4070
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
 
4071
_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
 
4072
  [Command to truncate a binary pipe])
 
4073
])# _LT_CMD_TRUNCATE
 
4074
 
 
4075
 
3816
4076
# _LT_CHECK_MAGIC_METHOD
3817
4077
# ----------------------
3818
4078
# how to check for library dependencies
3828
4088
# Need to set the preceding variable on all platforms that support
3829
4089
# interlibrary dependencies.
3830
4090
# 'none' -- dependencies not supported.
3831
 
# `unknown' -- same as none, but documents that we really don't know.
 
4091
# 'unknown' -- same as none, but documents that we really don't know.
3832
4092
# 'pass_all' -- all dependencies passed with no checks.
3833
4093
# 'test_compile' -- check by making test program.
3834
4094
# 'file_magic [[regex]]' -- check by looking for files in library path
3835
 
# which responds to the $file_magic_cmd with a given extended regex.
3836
 
# If you have `file' or equivalent on your system and you're not sure
3837
 
# whether `pass_all' will *always* work, you probably want this one.
 
4095
# that responds to the $file_magic_cmd with a given extended regex.
 
4096
# If you have 'file' or equivalent on your system and you're not sure
 
4097
# whether 'pass_all' will *always* work, you probably want this one.
3838
4098
 
3839
4099
case $host_os in
3840
4100
aix[[4-9]]*)
3861
4121
  # Base MSYS/MinGW do not provide the 'file' command needed by
3862
4122
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3863
4123
  # unless we find 'file', for example because we are cross-compiling.
3864
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3865
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
4124
  if ( file / ) >/dev/null 2>&1; then
3866
4125
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3867
4126
    lt_cv_file_magic_cmd='func_win32_libid'
3868
4127
  else
3958
4217
  lt_cv_deplibs_check_method=pass_all
3959
4218
  ;;
3960
4219
 
3961
 
openbsd*)
3962
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4220
openbsd* | bitrig*)
 
4221
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3963
4222
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3964
4223
  else
3965
4224
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4012
4271
tpf*)
4013
4272
  lt_cv_deplibs_check_method=pass_all
4014
4273
  ;;
 
4274
os2*)
 
4275
  lt_cv_deplibs_check_method=pass_all
 
4276
  ;;
4015
4277
esac
4016
4278
])
4017
4279
 
4052
4314
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4053
4315
[if test -n "$NM"; then
4054
4316
  # Let the user override the test.
4055
 
  lt_cv_path_NM="$NM"
 
4317
  lt_cv_path_NM=$NM
4056
4318
else
4057
 
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4319
  lt_nm_to_check=${ac_tool_prefix}nm
4058
4320
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4059
4321
    lt_nm_to_check="$lt_nm_to_check nm"
4060
4322
  fi
4061
4323
  for lt_tmp_nm in $lt_nm_to_check; do
4062
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4324
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4063
4325
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4064
 
      IFS="$lt_save_ifs"
 
4326
      IFS=$lt_save_ifs
4065
4327
      test -z "$ac_dir" && ac_dir=.
4066
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4067
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4328
      tmp_nm=$ac_dir/$lt_tmp_nm
 
4329
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4068
4330
        # Check to see if the nm accepts a BSD-compat flag.
4069
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4331
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4070
4332
        #   nm: unknown option "B" ignored
4071
4333
        # Tru64's nm complains that /dev/null is an invalid object file
4072
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4073
 
        */dev/null* | *'Invalid file or object type'*)
 
4334
        # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 
4335
        case $build_os in
 
4336
        mingw*) lt_bad_file=conftest.nm/nofile ;;
 
4337
        *) lt_bad_file=/dev/null ;;
 
4338
        esac
 
4339
        case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
 
4340
        *$lt_bad_file* | *'Invalid file or object type'*)
4074
4341
          lt_cv_path_NM="$tmp_nm -B"
4075
 
          break
 
4342
          break 2
4076
4343
          ;;
4077
4344
        *)
4078
4345
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4079
4346
          */dev/null*)
4080
4347
            lt_cv_path_NM="$tmp_nm -p"
4081
 
            break
 
4348
            break 2
4082
4349
            ;;
4083
4350
          *)
4084
4351
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4089
4356
        esac
4090
4357
      fi
4091
4358
    done
4092
 
    IFS="$lt_save_ifs"
 
4359
    IFS=$lt_save_ifs
4093
4360
  done
4094
4361
  : ${lt_cv_path_NM=no}
4095
4362
fi])
4096
 
if test "$lt_cv_path_NM" != "no"; then
4097
 
  NM="$lt_cv_path_NM"
 
4363
if test no != "$lt_cv_path_NM"; then
 
4364
  NM=$lt_cv_path_NM
4098
4365
else
4099
4366
  # Didn't find any BSD compatible name lister, look for dumpbin.
4100
4367
  if test -n "$DUMPBIN"; then :
4101
4368
    # Let the user override the test.
4102
4369
  else
4103
4370
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4104
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4371
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4105
4372
    *COFF*)
4106
 
      DUMPBIN="$DUMPBIN -symbols"
 
4373
      DUMPBIN="$DUMPBIN -symbols -headers"
4107
4374
      ;;
4108
4375
    *)
4109
4376
      DUMPBIN=:
4111
4378
    esac
4112
4379
  fi
4113
4380
  AC_SUBST([DUMPBIN])
4114
 
  if test "$DUMPBIN" != ":"; then
4115
 
    NM="$DUMPBIN"
 
4381
  if test : != "$DUMPBIN"; then
 
4382
    NM=$DUMPBIN
4116
4383
  fi
4117
4384
fi
4118
4385
test -z "$NM" && NM=nm
4158
4425
 
4159
4426
case $host_os in
4160
4427
cygwin* | mingw* | pw32* | cegcc*)
4161
 
  # two different shell functions defined in ltmain.sh
4162
 
  # decide which to use based on capabilities of $DLLTOOL
 
4428
  # two different shell functions defined in ltmain.sh;
 
4429
  # decide which one to use based on capabilities of $DLLTOOL
4163
4430
  case `$DLLTOOL --help 2>&1` in
4164
4431
  *--identify-strict*)
4165
4432
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4171
4438
  ;;
4172
4439
*)
4173
4440
  # fallback: assume linklib IS sharedlib
4174
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
4441
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4175
4442
  ;;
4176
4443
esac
4177
4444
])
4198
4465
    lt_cv_path_mainfest_tool=yes
4199
4466
  fi
4200
4467
  rm -f conftest*])
4201
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
4468
if test yes != "$lt_cv_path_mainfest_tool"; then
4202
4469
  MANIFEST_TOOL=:
4203
4470
fi
4204
4471
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4205
4472
])# _LT_PATH_MANIFEST_TOOL
4206
4473
 
4207
4474
 
 
4475
# _LT_DLL_DEF_P([FILE])
 
4476
# ---------------------
 
4477
# True iff FILE is a Windows DLL '.def' file.
 
4478
# Keep in sync with func_dll_def_p in the libtool script
 
4479
AC_DEFUN([_LT_DLL_DEF_P],
 
4480
[dnl
 
4481
  test DEF = "`$SED -n dnl
 
4482
    -e '\''s/^[[         ]]*//'\'' dnl Strip leading whitespace
 
4483
    -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
 
4484
    -e '\''s/^\(EXPORTS\|LIBRARY\)\([[   ]].*\)*$/DEF/p'\'' dnl
 
4485
    -e q dnl                          Only consider the first "real" line
 
4486
    $1`" dnl
 
4487
])# _LT_DLL_DEF_P
 
4488
 
 
4489
 
4208
4490
# LT_LIB_M
4209
4491
# --------
4210
4492
# check for math library
4216
4498
  # These system don't have libm, or don't need it
4217
4499
  ;;
4218
4500
*-ncr-sysv4.3*)
4219
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
4501
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
4220
4502
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4221
4503
  ;;
4222
4504
*)
4223
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
4505
  AC_CHECK_LIB(m, cos, LIBM=-lm)
4224
4506
  ;;
4225
4507
esac
4226
4508
AC_SUBST([LIBM])
4239
4521
 
4240
4522
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4241
4523
 
4242
 
if test "$GCC" = yes; then
 
4524
if test yes = "$GCC"; then
4243
4525
  case $cc_basename in
4244
4526
  nvcc*)
4245
4527
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4291
4573
  symcode='[[ABCDGISTW]]'
4292
4574
  ;;
4293
4575
hpux*)
4294
 
  if test "$host_cpu" = ia64; then
 
4576
  if test ia64 = "$host_cpu"; then
4295
4577
    symcode='[[ABCDEGRST]]'
4296
4578
  fi
4297
4579
  ;;
4324
4606
  symcode='[[ABCDGIRSTW]]' ;;
4325
4607
esac
4326
4608
 
 
4609
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4610
  # Gets list of data symbols to import.
 
4611
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
 
4612
  # Adjust the below global symbol transforms to fixup imported variables.
 
4613
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 
4614
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 
4615
  lt_c_name_lib_hook="\
 
4616
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 
4617
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 
4618
else
 
4619
  # Disable hooks by default.
 
4620
  lt_cv_sys_global_symbol_to_import=
 
4621
  lt_cdecl_hook=
 
4622
  lt_c_name_hook=
 
4623
  lt_c_name_lib_hook=
 
4624
fi
 
4625
 
4327
4626
# Transform an extracted symbol line into a proper C declaration.
4328
4627
# Some systems (esp. on ia64) link data and code symbols differently,
4329
4628
# so use this general approach.
4330
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4629
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
 
4630
$lt_cdecl_hook\
 
4631
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 
4632
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4331
4633
 
4332
4634
# Transform an extracted symbol line into symbol name and symbol address
4333
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4334
 
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'"
 
4635
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
 
4636
$lt_c_name_hook\
 
4637
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
4638
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 
4639
 
 
4640
# Transform an extracted symbol line into symbol name with lib prefix and
 
4641
# symbol address.
 
4642
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
 
4643
$lt_c_name_lib_hook\
 
4644
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
4645
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 
4646
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
4335
4647
 
4336
4648
# Handle CRLF in mingw tool chain
4337
4649
opt_cr=
4349
4661
 
4350
4662
  # Write the raw and C identifiers.
4351
4663
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4352
 
    # Fake it for dumpbin and say T for any non-static function
4353
 
    # and D for any global variable.
 
4664
    # Fake it for dumpbin and say T for any non-static function,
 
4665
    # D for any global variable and I for any imported variable.
4354
4666
    # Also find C++ and __fastcall symbols from MSVC++,
4355
4667
    # which start with @ or ?.
4356
4668
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4357
4669
"     {last_section=section; section=\$ 3};"\
4358
4670
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4359
4671
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4672
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 
4673
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 
4674
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4360
4675
"     \$ 0!~/External *\|/{next};"\
4361
4676
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4362
4677
"     {if(hide[section]) next};"\
4363
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4364
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4365
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4366
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4678
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 
4679
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 
4680
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 
4681
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4367
4682
"     ' prfx=^$ac_symprfx]"
4368
4683
  else
4369
4684
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4403
4718
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4404
4719
          cat <<_LT_EOF > conftest.$ac_ext
4405
4720
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
4406
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4407
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
4721
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 
4722
/* DATA imports from DLLs on WIN32 can't be const, because runtime
4408
4723
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
4409
4724
# define LT@&t@_DLSYM_CONST
4410
 
#elif defined(__osf__)
 
4725
#elif defined __osf__
4411
4726
/* This system does not cope well with relocations in const data.  */
4412
4727
# define LT@&t@_DLSYM_CONST
4413
4728
#else
4433
4748
{
4434
4749
  { "@PROGRAM@", (void *) 0 },
4435
4750
_LT_EOF
4436
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4751
          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4437
4752
          cat <<\_LT_EOF >> conftest.$ac_ext
4438
4753
  {0, (void *) 0}
4439
4754
};
4453
4768
          mv conftest.$ac_objext conftstm.$ac_objext
4454
4769
          lt_globsym_save_LIBS=$LIBS
4455
4770
          lt_globsym_save_CFLAGS=$CFLAGS
4456
 
          LIBS="conftstm.$ac_objext"
 
4771
          LIBS=conftstm.$ac_objext
4457
4772
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4458
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
4773
          if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4459
4774
            pipe_works=yes
4460
4775
          fi
4461
4776
          LIBS=$lt_globsym_save_LIBS
4476
4791
  rm -rf conftest* conftst*
4477
4792
 
4478
4793
  # Do not use the global_symbol_pipe unless it works.
4479
 
  if test "$pipe_works" = yes; then
 
4794
  if test yes = "$pipe_works"; then
4480
4795
    break
4481
4796
  else
4482
4797
    lt_cv_sys_global_symbol_pipe=
4503
4818
    [Take the output of nm and produce a listing of raw symbols and C names])
4504
4819
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4505
4820
    [Transform the output of nm in a proper C declaration])
 
4821
_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
 
4822
    [Transform the output of nm into a list of symbols to manually relocate])
4506
4823
_LT_DECL([global_symbol_to_c_name_address],
4507
4824
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4508
4825
    [Transform the output of nm in a C name address pair])
4509
4826
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4510
4827
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4511
4828
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4829
_LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
 
4830
    [The name lister interface])
4512
4831
_LT_DECL([], [nm_file_list_spec], [1],
4513
4832
    [Specify filename containing input files for $NM])
4514
4833
]) # _LT_CMD_GLOBAL_SYMBOLS
4524
4843
 
4525
4844
m4_if([$1], [CXX], [
4526
4845
  # C++ specific cases for pic, static, wl, etc.
4527
 
  if test "$GXX" = yes; then
 
4846
  if test yes = "$GXX"; then
4528
4847
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4529
4848
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4530
4849
 
4531
4850
    case $host_os in
4532
4851
    aix*)
4533
4852
      # All AIX code is PIC.
4534
 
      if test "$host_cpu" = ia64; then
 
4853
      if test ia64 = "$host_cpu"; then
4535
4854
        # AIX 5 now supports IA64 processor
4536
4855
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4537
4856
      fi
 
4857
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4538
4858
      ;;
4539
4859
 
4540
4860
    amigaos*)
4545
4865
        ;;
4546
4866
      m68k)
4547
4867
            # FIXME: we need at least 68020 code to build shared libraries, but
4548
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4549
 
            # like `-m68040'.
 
4868
            # adding the '-m68020' flag to GCC prevents building anything better,
 
4869
            # like '-m68040'.
4550
4870
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4551
4871
        ;;
4552
4872
      esac
4562
4882
      # (--disable-auto-import) libraries
4563
4883
      m4_if([$1], [GCJ], [],
4564
4884
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4885
      case $host_os in
 
4886
      os2*)
 
4887
        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 
4888
        ;;
 
4889
      esac
4565
4890
      ;;
4566
4891
    darwin* | rhapsody*)
4567
4892
      # PIC is the default on this platform
4611
4936
    case $host_os in
4612
4937
      aix[[4-9]]*)
4613
4938
        # All AIX code is PIC.
4614
 
        if test "$host_cpu" = ia64; then
 
4939
        if test ia64 = "$host_cpu"; then
4615
4940
          # AIX 5 now supports IA64 processor
4616
4941
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4617
4942
        else
4652
4977
        case $cc_basename in
4653
4978
          CC*)
4654
4979
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4655
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4656
 
            if test "$host_cpu" != ia64; then
 
4980
            _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 
4981
            if test ia64 != "$host_cpu"; then
4657
4982
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4658
4983
            fi
4659
4984
            ;;
4660
4985
          aCC*)
4661
4986
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4662
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4987
            _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4663
4988
            case $host_cpu in
4664
4989
            hppa*64*|ia64*)
4665
4990
              # +Z the default
4696
5021
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4697
5022
            ;;
4698
5023
          ecpc* )
4699
 
            # old Intel C++ for x86_64 which still supported -KPIC.
 
5024
            # old Intel C++ for x86_64, which still supported -KPIC.
4700
5025
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4701
5026
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4702
5027
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4841
5166
  fi
4842
5167
],
4843
5168
[
4844
 
  if test "$GCC" = yes; then
 
5169
  if test yes = "$GCC"; then
4845
5170
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4846
5171
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4847
5172
 
4848
5173
    case $host_os in
4849
5174
      aix*)
4850
5175
      # All AIX code is PIC.
4851
 
      if test "$host_cpu" = ia64; then
 
5176
      if test ia64 = "$host_cpu"; then
4852
5177
        # AIX 5 now supports IA64 processor
4853
5178
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4854
5179
      fi
 
5180
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4855
5181
      ;;
4856
5182
 
4857
5183
    amigaos*)
4862
5188
        ;;
4863
5189
      m68k)
4864
5190
            # FIXME: we need at least 68020 code to build shared libraries, but
4865
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4866
 
            # like `-m68040'.
 
5191
            # adding the '-m68020' flag to GCC prevents building anything better,
 
5192
            # like '-m68040'.
4867
5193
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4868
5194
        ;;
4869
5195
      esac
4880
5206
      # (--disable-auto-import) libraries
4881
5207
      m4_if([$1], [GCJ], [],
4882
5208
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5209
      case $host_os in
 
5210
      os2*)
 
5211
        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 
5212
        ;;
 
5213
      esac
4883
5214
      ;;
4884
5215
 
4885
5216
    darwin* | rhapsody*)
4950
5281
    case $host_os in
4951
5282
    aix*)
4952
5283
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4953
 
      if test "$host_cpu" = ia64; then
 
5284
      if test ia64 = "$host_cpu"; then
4954
5285
        # AIX 5 now supports IA64 processor
4955
5286
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4956
5287
      else
4958
5289
      fi
4959
5290
      ;;
4960
5291
 
 
5292
    darwin* | rhapsody*)
 
5293
      # PIC is the default on this platform
 
5294
      # Common symbols not allowed in MH_DYLIB files
 
5295
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5296
      case $cc_basename in
 
5297
      nagfor*)
 
5298
        # NAG Fortran compiler
 
5299
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 
5300
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5301
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5302
        ;;
 
5303
      esac
 
5304
      ;;
 
5305
 
4961
5306
    mingw* | cygwin* | pw32* | os2* | cegcc*)
4962
5307
      # This hack is so that the source file can tell whether it is being
4963
5308
      # built for inclusion in a dll (and should export symbols for example).
4964
5309
      m4_if([$1], [GCJ], [],
4965
5310
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5311
      case $host_os in
 
5312
      os2*)
 
5313
        _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 
5314
        ;;
 
5315
      esac
4966
5316
      ;;
4967
5317
 
4968
5318
    hpux9* | hpux10* | hpux11*)
4978
5328
        ;;
4979
5329
      esac
4980
5330
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4981
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5331
      _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4982
5332
      ;;
4983
5333
 
4984
5334
    irix5* | irix6* | nonstopux*)
4989
5339
 
4990
5340
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4991
5341
      case $cc_basename in
4992
 
      # old Intel for x86_64 which still supported -KPIC.
 
5342
      # old Intel for x86_64, which still supported -KPIC.
4993
5343
      ecc*)
4994
5344
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4995
5345
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5014
5364
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5015
5365
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5016
5366
        ;;
 
5367
      tcc*)
 
5368
        # Fabrice Bellard et al's Tiny C Compiler
 
5369
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5370
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5371
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5372
        ;;
5017
5373
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5018
5374
        # Portland Group compilers (*not* the Pentium gcc compiler,
5019
5375
        # which looks to be a dead project)
5111
5467
      ;;
5112
5468
 
5113
5469
    sysv4*MP*)
5114
 
      if test -d /usr/nec ;then
 
5470
      if test -d /usr/nec; then
5115
5471
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5116
5472
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5117
5473
      fi
5140
5496
  fi
5141
5497
])
5142
5498
case $host_os in
5143
 
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5499
  # For platforms that do not support PIC, -DPIC is meaningless:
5144
5500
  *djgpp*)
5145
5501
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5146
5502
    ;;
5206
5562
  case $host_os in
5207
5563
  aix[[4-9]]*)
5208
5564
    # If we're using GNU nm, then we don't want the "-C" option.
5209
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5210
 
    # Also, AIX nm treats weak defined symbols like other global defined
5211
 
    # symbols, whereas GNU nm marks them as "W".
 
5565
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 
5566
    # Without the "-l" option, or with the "-B" option, AIX nm treats
 
5567
    # weak defined symbols like other global defined symbols, whereas
 
5568
    # GNU nm marks them as "W".
 
5569
    # While the 'weak' keyword is ignored in the Export File, we need
 
5570
    # it in the Import File for the 'aix-soname' feature, so we have
 
5571
    # to replace the "-B" option with "-P" for AIX nm.
5212
5572
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5213
 
      _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'
 
5573
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5214
5574
    else
5215
 
      _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'
 
5575
      _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5216
5576
    fi
5217
5577
    ;;
5218
5578
  pw32*)
5219
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5579
    _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
5220
5580
    ;;
5221
5581
  cygwin* | mingw* | cegcc*)
5222
5582
    case $cc_basename in
5265
5625
  # included in the symbol list
5266
5626
  _LT_TAGVAR(include_expsyms, $1)=
5267
5627
  # exclude_expsyms can be an extended regexp of symbols to exclude
5268
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5269
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5270
 
  # as well as any symbol that contains `d'.
 
5628
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
 
5629
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 
5630
  # as well as any symbol that contains 'd'.
5271
5631
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5272
5632
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5273
5633
  # platforms (ab)use it in PIC code, but their linkers get confused if
5283
5643
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5284
5644
    # When not using gcc, we currently assume that we are using
5285
5645
    # Microsoft Visual C++.
5286
 
    if test "$GCC" != yes; then
 
5646
    if test yes != "$GCC"; then
5287
5647
      with_gnu_ld=no
5288
5648
    fi
5289
5649
    ;;
5291
5651
    # we just hope/assume this is gcc and not c89 (= MSVC++)
5292
5652
    with_gnu_ld=yes
5293
5653
    ;;
5294
 
  openbsd*)
 
5654
  openbsd* | bitrig*)
5295
5655
    with_gnu_ld=no
5296
5656
    ;;
5297
5657
  linux* | k*bsd*-gnu | gnu*)
5304
5664
  # On some targets, GNU ld is compatible enough with the native linker
5305
5665
  # that we're better off using the native interface for both.
5306
5666
  lt_use_gnu_ld_interface=no
5307
 
  if test "$with_gnu_ld" = yes; then
 
5667
  if test yes = "$with_gnu_ld"; then
5308
5668
    case $host_os in
5309
5669
      aix*)
5310
5670
        # The AIX port of GNU ld has always aspired to compatibility
5326
5686
    esac
5327
5687
  fi
5328
5688
 
5329
 
  if test "$lt_use_gnu_ld_interface" = yes; then
 
5689
  if test yes = "$lt_use_gnu_ld_interface"; then
5330
5690
    # If archive_cmds runs LD, not CC, wlarc should be empty
5331
 
    wlarc='${wl}'
 
5691
    wlarc='$wl'
5332
5692
 
5333
5693
    # Set some defaults for GNU ld with shared library support. These
5334
5694
    # are reset later if shared libraries are not supported. Putting them
5335
5695
    # here allows them to be overridden if necessary.
5336
5696
    runpath_var=LD_RUN_PATH
5337
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5338
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5697
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 
5698
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5339
5699
    # ancient GNU ld didn't support --whole-archive et. al.
5340
5700
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5341
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5701
      _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5342
5702
    else
5343
5703
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5344
5704
    fi
5345
5705
    supports_anon_versioning=no
5346
 
    case `$LD -v 2>&1` in
 
5706
    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5347
5707
      *GNU\ gold*) supports_anon_versioning=yes ;;
5348
5708
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5349
5709
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5356
5716
    case $host_os in
5357
5717
    aix[[3-9]]*)
5358
5718
      # On AIX/PPC, the GNU linker is very broken
5359
 
      if test "$host_cpu" != ia64; then
 
5719
      if test ia64 != "$host_cpu"; then
5360
5720
        _LT_TAGVAR(ld_shlibs, $1)=no
5361
5721
        cat <<_LT_EOF 1>&2
5362
5722
 
5375
5735
      case $host_cpu in
5376
5736
      powerpc)
5377
5737
            # see comment about AmigaOS4 .so support
5378
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5738
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5379
5739
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5380
5740
        ;;
5381
5741
      m68k)
5391
5751
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5392
5752
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5393
5753
        # support --undefined.  This deserves some investigation.  FIXME
5394
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5754
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5395
5755
      else
5396
5756
        _LT_TAGVAR(ld_shlibs, $1)=no
5397
5757
      fi
5401
5761
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5402
5762
      # as there is no search path for DLLs.
5403
5763
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5404
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
5764
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5405
5765
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5406
5766
      _LT_TAGVAR(always_export_symbols, $1)=no
5407
5767
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5409
5769
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5410
5770
 
5411
5771
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5412
 
        _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'
5413
 
        # If the export-symbols file already is a .def file (1st line
5414
 
        # is EXPORTS), use it as is; otherwise, prepend...
5415
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5416
 
          cp $export_symbols $output_objdir/$soname.def;
5417
 
        else
5418
 
          echo EXPORTS > $output_objdir/$soname.def;
5419
 
          cat $export_symbols >> $output_objdir/$soname.def;
5420
 
        fi~
5421
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5772
        _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'
 
5773
        # If the export-symbols file already is a .def file, use it as
 
5774
        # is; otherwise, prepend EXPORTS...
 
5775
        _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 
5776
          cp $export_symbols $output_objdir/$soname.def;
 
5777
        else
 
5778
          echo EXPORTS > $output_objdir/$soname.def;
 
5779
          cat $export_symbols >> $output_objdir/$soname.def;
 
5780
        fi~
 
5781
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5422
5782
      else
5423
5783
        _LT_TAGVAR(ld_shlibs, $1)=no
5424
5784
      fi
5425
5785
      ;;
5426
5786
 
5427
5787
    haiku*)
5428
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5788
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5429
5789
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5430
5790
      ;;
5431
5791
 
 
5792
    os2*)
 
5793
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5794
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5795
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5796
      shrext_cmds=.dll
 
5797
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
5798
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
5799
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
5800
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
5801
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
5802
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
5803
        emximp -o $lib $output_objdir/$libname.def'
 
5804
      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
5805
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
5806
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
5807
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
5808
        prefix_cmds="$SED"~
 
5809
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
5810
          prefix_cmds="$prefix_cmds -e 1d";
 
5811
        fi~
 
5812
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
5813
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
5814
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
5815
        emximp -o $lib $output_objdir/$libname.def'
 
5816
      _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
5817
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5818
      ;;
 
5819
 
5432
5820
    interix[[3-9]]*)
5433
5821
      _LT_TAGVAR(hardcode_direct, $1)=no
5434
5822
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5435
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5436
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5823
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
5824
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5437
5825
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5438
5826
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5439
5827
      # default) and relocated if they conflict, which is a slow very memory
5440
5828
      # consuming and fragmenting process.  To avoid this, we pick a random,
5441
5829
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5442
5830
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5443
 
      _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'
5444
 
      _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'
 
5831
      _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'
 
5832
      _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'
5445
5833
      ;;
5446
5834
 
5447
5835
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5448
5836
      tmp_diet=no
5449
 
      if test "$host_os" = linux-dietlibc; then
 
5837
      if test linux-dietlibc = "$host_os"; then
5450
5838
        case $cc_basename in
5451
5839
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
5452
5840
        esac
5453
5841
      fi
5454
5842
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5455
 
         && test "$tmp_diet" = no
 
5843
         && test no = "$tmp_diet"
5456
5844
      then
5457
5845
        tmp_addflag=' $pic_flag'
5458
5846
        tmp_sharedflag='-shared'
5459
5847
        case $cc_basename,$host_cpu in
5460
5848
        pgcc*)                          # Portland Group C compiler
5461
 
          _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'
 
5849
          _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'
5462
5850
          tmp_addflag=' $pic_flag'
5463
5851
          ;;
5464
5852
        pgf77* | pgf90* | pgf95* | pgfortran*)
5465
5853
                                        # Portland Group f77 and f90 compilers
5466
 
          _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'
 
5854
          _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'
5467
5855
          tmp_addflag=' $pic_flag -Mnomain' ;;
5468
5856
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5469
5857
          tmp_addflag=' -i_dynamic' ;;
5474
5862
        lf95*)                          # Lahey Fortran 8.1
5475
5863
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5476
5864
          tmp_sharedflag='--shared' ;;
 
5865
        nagfor*)                        # NAGFOR 5.3
 
5866
          tmp_sharedflag='-Wl,-shared' ;;
5477
5867
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5478
5868
          tmp_sharedflag='-qmkshrobj'
5479
5869
          tmp_addflag= ;;
5480
5870
        nvcc*)  # Cuda Compiler Driver 2.2
5481
 
          _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'
 
5871
          _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'
5482
5872
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5483
5873
          ;;
5484
5874
        esac
5485
5875
        case `$CC -V 2>&1 | sed 5q` in
5486
5876
        *Sun\ C*)                       # Sun C 5.9
5487
 
          _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'
 
5877
          _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'
5488
5878
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5489
5879
          tmp_sharedflag='-G' ;;
5490
5880
        *Sun\ F*)                       # Sun Fortran 8.3
5491
5881
          tmp_sharedflag='-G' ;;
5492
5882
        esac
5493
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5883
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5494
5884
 
5495
 
        if test "x$supports_anon_versioning" = xyes; then
 
5885
        if test yes = "$supports_anon_versioning"; then
5496
5886
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5497
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5498
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
5499
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5887
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5888
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5889
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5500
5890
        fi
5501
5891
 
5502
5892
        case $cc_basename in
 
5893
        tcc*)
 
5894
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
 
5895
          ;;
5503
5896
        xlf* | bgf* | bgxlf* | mpixlf*)
5504
5897
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5505
5898
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5506
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5899
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5507
5900
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5508
 
          if test "x$supports_anon_versioning" = xyes; then
 
5901
          if test yes = "$supports_anon_versioning"; then
5509
5902
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5510
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5511
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
5512
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5903
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5904
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5905
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5513
5906
          fi
5514
5907
          ;;
5515
5908
        esac
5523
5916
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5524
5917
        wlarc=
5525
5918
      else
5526
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527
 
        _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'
 
5919
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
5920
        _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'
5528
5921
      fi
5529
5922
      ;;
5530
5923
 
5542
5935
 
5543
5936
_LT_EOF
5544
5937
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5545
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5546
 
        _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'
 
5938
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
5939
        _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'
5547
5940
      else
5548
5941
        _LT_TAGVAR(ld_shlibs, $1)=no
5549
5942
      fi
5555
5948
        _LT_TAGVAR(ld_shlibs, $1)=no
5556
5949
        cat <<_LT_EOF 1>&2
5557
5950
 
5558
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5951
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5559
5952
*** reliably create shared libraries on SCO systems.  Therefore, libtool
5560
5953
*** is disabling shared libraries support.  We urge you to upgrade GNU
5561
5954
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5570
5963
          # DT_RUNPATH tag from executables and libraries.  But doing so
5571
5964
          # requires that you compile everything twice, which is a pain.
5572
5965
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5573
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5574
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5575
 
            _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'
 
5966
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 
5967
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
5968
            _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'
5576
5969
          else
5577
5970
            _LT_TAGVAR(ld_shlibs, $1)=no
5578
5971
          fi
5589
5982
 
5590
5983
    *)
5591
5984
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5592
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5593
 
        _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'
 
5985
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
5986
        _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'
5594
5987
      else
5595
5988
        _LT_TAGVAR(ld_shlibs, $1)=no
5596
5989
      fi
5597
5990
      ;;
5598
5991
    esac
5599
5992
 
5600
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
5993
    if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5601
5994
      runpath_var=
5602
5995
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5603
5996
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5613
6006
      # Note: this linker hardcodes the directories in LIBPATH if there
5614
6007
      # are no directories specified by -L.
5615
6008
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5616
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6009
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5617
6010
        # Neither direct hardcoding nor static linking is supported with a
5618
6011
        # broken collect2.
5619
6012
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5621
6014
      ;;
5622
6015
 
5623
6016
    aix[[4-9]]*)
5624
 
      if test "$host_cpu" = ia64; then
 
6017
      if test ia64 = "$host_cpu"; then
5625
6018
        # On IA64, the linker does run time linking by default, so we don't
5626
6019
        # have to do anything special.
5627
6020
        aix_use_runtimelinking=no
5628
6021
        exp_sym_flag='-Bexport'
5629
 
        no_entry_flag=""
 
6022
        no_entry_flag=
5630
6023
      else
5631
6024
        # If we're using GNU nm, then we don't want the "-C" option.
5632
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5633
 
        # Also, AIX nm treats weak defined symbols like other global
5634
 
        # defined symbols, whereas GNU nm marks them as "W".
 
6025
        # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 
6026
        # Without the "-l" option, or with the "-B" option, AIX nm treats
 
6027
        # weak defined symbols like other global defined symbols, whereas
 
6028
        # GNU nm marks them as "W".
 
6029
        # While the 'weak' keyword is ignored in the Export File, we need
 
6030
        # it in the Import File for the 'aix-soname' feature, so we have
 
6031
        # to replace the "-B" option with "-P" for AIX nm.
5635
6032
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5636
 
          _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'
 
6033
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5637
6034
        else
5638
 
          _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'
 
6035
          _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5639
6036
        fi
5640
6037
        aix_use_runtimelinking=no
5641
6038
 
5642
6039
        # Test if we are trying to use run time linking or normal
5643
6040
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5644
 
        # need to do runtime linking.
 
6041
        # have runtime linking enabled, and use it for executables.
 
6042
        # For shared libraries, we enable/disable runtime linking
 
6043
        # depending on the kind of the shared library created -
 
6044
        # when "with_aix_soname,aix_use_runtimelinking" is:
 
6045
        # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 
6046
        # "aix,yes"  lib.so          shared, rtl:yes, for executables
 
6047
        #            lib.a           static archive
 
6048
        # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 
6049
        #            lib.a(lib.so.V) shared, rtl:no,  for executables
 
6050
        # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 
6051
        #            lib.a(lib.so.V) shared, rtl:no
 
6052
        # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 
6053
        #            lib.a           static archive
5645
6054
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5646
6055
          for ld_flag in $LDFLAGS; do
5647
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6056
          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5648
6057
            aix_use_runtimelinking=yes
5649
6058
            break
5650
6059
          fi
5651
6060
          done
 
6061
          if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 
6062
            # With aix-soname=svr4, we create the lib.so.V shared archives only,
 
6063
            # so we don't have lib.a shared libs to link our executables.
 
6064
            # We have to force runtime linking in this case.
 
6065
            aix_use_runtimelinking=yes
 
6066
            LDFLAGS="$LDFLAGS -Wl,-brtl"
 
6067
          fi
5652
6068
          ;;
5653
6069
        esac
5654
6070
 
5667
6083
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5668
6084
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5669
6085
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5670
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6086
      _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 
6087
      case $with_aix_soname,$aix_use_runtimelinking in
 
6088
      aix,*) ;; # traditional, no import file
 
6089
      svr4,* | *,yes) # use import file
 
6090
        # The Import File defines what to hardcode.
 
6091
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6092
        _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6093
        ;;
 
6094
      esac
5671
6095
 
5672
 
      if test "$GCC" = yes; then
 
6096
      if test yes = "$GCC"; then
5673
6097
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5674
6098
        # We only want to do this on AIX 4.2 and lower, the check
5675
6099
        # below for broken collect2 doesn't work under 4.3+
5676
 
          collect2name=`${CC} -print-prog-name=collect2`
 
6100
          collect2name=`$CC -print-prog-name=collect2`
5677
6101
          if test -f "$collect2name" &&
5678
6102
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5679
6103
          then
5692
6116
          ;;
5693
6117
        esac
5694
6118
        shared_flag='-shared'
5695
 
        if test "$aix_use_runtimelinking" = yes; then
5696
 
          shared_flag="$shared_flag "'${wl}-G'
 
6119
        if test yes = "$aix_use_runtimelinking"; then
 
6120
          shared_flag="$shared_flag "'$wl-G'
5697
6121
        fi
5698
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
 
6122
        # Need to ensure runtime linking is disabled for the traditional
 
6123
        # shared library, or the linker may eventually find shared libraries
 
6124
        # /with/ Import File - we do not want to mix them.
 
6125
        shared_flag_aix='-shared'
 
6126
        shared_flag_svr4='-shared $wl-G'
5699
6127
      else
5700
6128
        # not using gcc
5701
 
        if test "$host_cpu" = ia64; then
 
6129
        if test ia64 = "$host_cpu"; then
5702
6130
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5703
6131
        # chokes on -Wl,-G. The following line is correct:
5704
6132
          shared_flag='-G'
5705
6133
        else
5706
 
          if test "$aix_use_runtimelinking" = yes; then
5707
 
            shared_flag='${wl}-G'
 
6134
          if test yes = "$aix_use_runtimelinking"; then
 
6135
            shared_flag='$wl-G'
5708
6136
          else
5709
 
            shared_flag='${wl}-bM:SRE'
 
6137
            shared_flag='$wl-bM:SRE'
5710
6138
          fi
 
6139
          shared_flag_aix='$wl-bM:SRE'
 
6140
          shared_flag_svr4='$wl-G'
5711
6141
        fi
5712
6142
      fi
5713
6143
 
5714
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6144
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5715
6145
      # It seems that -bexpall does not export symbols beginning with
5716
6146
      # underscore (_), so it is better to generate a list of symbols to export.
5717
6147
      _LT_TAGVAR(always_export_symbols, $1)=yes
5718
 
      if test "$aix_use_runtimelinking" = yes; then
 
6148
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5719
6149
        # Warning - without using the other runtime loading flags (-brtl),
5720
6150
        # -berok will link without error, but may produce a broken library.
5721
6151
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5722
6152
        # Determine the default libpath from the value encoded in an
5723
6153
        # empty executable.
5724
6154
        _LT_SYS_MODULE_PATH_AIX([$1])
5725
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5726
 
        _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"
 
6155
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 
6156
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5727
6157
      else
5728
 
        if test "$host_cpu" = ia64; then
5729
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6158
        if test ia64 = "$host_cpu"; then
 
6159
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5730
6160
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5731
 
          _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"
 
6161
          _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"
5732
6162
        else
5733
6163
         # Determine the default libpath from the value encoded in an
5734
6164
         # empty executable.
5735
6165
         _LT_SYS_MODULE_PATH_AIX([$1])
5736
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6166
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5737
6167
          # Warning - without using the other run time loading flags,
5738
6168
          # -berok will link without error, but may produce a broken library.
5739
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5740
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5741
 
          if test "$with_gnu_ld" = yes; then
 
6169
          _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 
6170
          _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 
6171
          if test yes = "$with_gnu_ld"; then
5742
6172
            # We only use this code for GNU lds that support --whole-archive.
5743
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6173
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5744
6174
          else
5745
6175
            # Exported symbols can be pulled into shared objects from archives
5746
6176
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5747
6177
          fi
5748
6178
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5749
 
          # This is similar to how AIX traditionally builds its shared libraries.
5750
 
          _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'
 
6179
          _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 
6180
          # -brtl affects multiple linker settings, -berok does not and is overridden later
 
6181
          compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 
6182
          if test svr4 != "$with_aix_soname"; then
 
6183
            # This is similar to how AIX traditionally builds its shared libraries.
 
6184
            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 
6185
          fi
 
6186
          if test aix != "$with_aix_soname"; then
 
6187
            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 
6188
          else
 
6189
            # used by -dlpreopen to get the symbols
 
6190
            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 
6191
          fi
 
6192
          _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5751
6193
        fi
5752
6194
      fi
5753
6195
      ;;
5756
6198
      case $host_cpu in
5757
6199
      powerpc)
5758
6200
            # see comment about AmigaOS4 .so support
5759
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6201
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5760
6202
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5761
6203
        ;;
5762
6204
      m68k)
5786
6228
        # Tell ltmain to make .lib files, not .a files.
5787
6229
        libext=lib
5788
6230
        # Tell ltmain to make .dll files, not .so files.
5789
 
        shrext_cmds=".dll"
 
6231
        shrext_cmds=.dll
5790
6232
        # FIXME: Setting linknames here is a bad hack.
5791
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5792
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5793
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5794
 
          else
5795
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5796
 
          fi~
5797
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5798
 
          linknames='
 
6233
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
6234
        _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 
6235
            cp "$export_symbols" "$output_objdir/$soname.def";
 
6236
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
6237
          else
 
6238
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
6239
          fi~
 
6240
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
6241
          linknames='
5799
6242
        # The linker will not automatically build a static lib if we build a DLL.
5800
6243
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5801
6244
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5804
6247
        # Don't use ranlib
5805
6248
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5806
6249
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5807
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
5808
 
          case $lt_outputfile in
5809
 
            *.exe|*.EXE) ;;
5810
 
            *)
5811
 
              lt_outputfile="$lt_outputfile.exe"
5812
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
5813
 
              ;;
5814
 
          esac~
5815
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5816
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5817
 
            $RM "$lt_outputfile.manifest";
5818
 
          fi'
 
6250
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
6251
          case $lt_outputfile in
 
6252
            *.exe|*.EXE) ;;
 
6253
            *)
 
6254
              lt_outputfile=$lt_outputfile.exe
 
6255
              lt_tool_outputfile=$lt_tool_outputfile.exe
 
6256
              ;;
 
6257
          esac~
 
6258
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
6259
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
6260
            $RM "$lt_outputfile.manifest";
 
6261
          fi'
5819
6262
        ;;
5820
6263
      *)
5821
6264
        # Assume MSVC wrapper
5824
6267
        # Tell ltmain to make .lib files, not .a files.
5825
6268
        libext=lib
5826
6269
        # Tell ltmain to make .dll files, not .so files.
5827
 
        shrext_cmds=".dll"
 
6270
        shrext_cmds=.dll
5828
6271
        # FIXME: Setting linknames here is a bad hack.
5829
6272
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5830
6273
        # The linker will automatically build a .lib file if we build a DLL.
5874
6317
      ;;
5875
6318
 
5876
6319
    hpux9*)
5877
 
      if test "$GCC" = yes; then
5878
 
        _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'
 
6320
      if test yes = "$GCC"; then
 
6321
        _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5879
6322
      else
5880
 
        _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'
 
6323
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5881
6324
      fi
5882
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6325
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5883
6326
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5884
6327
      _LT_TAGVAR(hardcode_direct, $1)=yes
5885
6328
 
5886
6329
      # hardcode_minus_L: Not really in the search PATH,
5887
6330
      # but as the default location of the library.
5888
6331
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5889
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6332
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5890
6333
      ;;
5891
6334
 
5892
6335
    hpux10*)
5893
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5894
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6336
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
6337
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5895
6338
      else
5896
6339
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5897
6340
      fi
5898
 
      if test "$with_gnu_ld" = no; then
5899
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6341
      if test no = "$with_gnu_ld"; then
 
6342
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5900
6343
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5901
6344
        _LT_TAGVAR(hardcode_direct, $1)=yes
5902
6345
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5903
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6346
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5904
6347
        # hardcode_minus_L: Not really in the search PATH,
5905
6348
        # but as the default location of the library.
5906
6349
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
5908
6351
      ;;
5909
6352
 
5910
6353
    hpux11*)
5911
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
6354
      if test yes,no = "$GCC,$with_gnu_ld"; then
5912
6355
        case $host_cpu in
5913
6356
        hppa*64*)
5914
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6357
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5915
6358
          ;;
5916
6359
        ia64*)
5917
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6360
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5918
6361
          ;;
5919
6362
        *)
5920
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6363
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5921
6364
          ;;
5922
6365
        esac
5923
6366
      else
5924
6367
        case $host_cpu in
5925
6368
        hppa*64*)
5926
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6369
          _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5927
6370
          ;;
5928
6371
        ia64*)
5929
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6372
          _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5930
6373
          ;;
5931
6374
        *)
5932
6375
        m4_if($1, [], [
5934
6377
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5935
6378
          _LT_LINKER_OPTION([if $CC understands -b],
5936
6379
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5937
 
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 
6380
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5938
6381
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5939
 
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 
6382
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5940
6383
          ;;
5941
6384
        esac
5942
6385
      fi
5943
 
      if test "$with_gnu_ld" = no; then
5944
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6386
      if test no = "$with_gnu_ld"; then
 
6387
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5945
6388
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5946
6389
 
5947
6390
        case $host_cpu in
5952
6395
        *)
5953
6396
          _LT_TAGVAR(hardcode_direct, $1)=yes
5954
6397
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5955
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6398
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5956
6399
 
5957
6400
          # hardcode_minus_L: Not really in the search PATH,
5958
6401
          # but as the default location of the library.
5963
6406
      ;;
5964
6407
 
5965
6408
    irix5* | irix6* | nonstopux*)
5966
 
      if test "$GCC" = yes; then
5967
 
        _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'
 
6409
      if test yes = "$GCC"; then
 
6410
        _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'
5968
6411
        # Try to use the -exported_symbol ld option, if it does not
5969
6412
        # work, assume that -exports_file does not work either and
5970
6413
        # implicitly export all symbols.
5971
6414
        # This should be the same for all languages, so no per-tag cache variable.
5972
6415
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5973
6416
          [lt_cv_irix_exported_symbol],
5974
 
          [save_LDFLAGS="$LDFLAGS"
5975
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6417
          [save_LDFLAGS=$LDFLAGS
 
6418
           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5976
6419
           AC_LINK_IFELSE(
5977
6420
             [AC_LANG_SOURCE(
5978
6421
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5985
6428
      end]])])],
5986
6429
              [lt_cv_irix_exported_symbol=yes],
5987
6430
              [lt_cv_irix_exported_symbol=no])
5988
 
           LDFLAGS="$save_LDFLAGS"])
5989
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
5990
 
          _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'
 
6431
           LDFLAGS=$save_LDFLAGS])
 
6432
        if test yes = "$lt_cv_irix_exported_symbol"; then
 
6433
          _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'
5991
6434
        fi
 
6435
        _LT_TAGVAR(link_all_deplibs, $1)=no
5992
6436
      else
5993
 
        _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'
5994
 
        _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'
 
6437
        _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'
 
6438
        _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'
5995
6439
      fi
5996
6440
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5997
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6441
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5998
6442
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5999
6443
      _LT_TAGVAR(inherit_rpath, $1)=yes
6000
6444
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6001
6445
      ;;
6002
6446
 
 
6447
    linux*)
 
6448
      case $cc_basename in
 
6449
      tcc*)
 
6450
        # Fabrice Bellard et al's Tiny C Compiler
 
6451
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6452
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6453
        ;;
 
6454
      esac
 
6455
      ;;
 
6456
 
6003
6457
    netbsd* | netbsdelf*-gnu)
6004
6458
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6005
6459
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6014
6468
    newsos6)
6015
6469
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6016
6470
      _LT_TAGVAR(hardcode_direct, $1)=yes
6017
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6471
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6018
6472
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6019
6473
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6020
6474
      ;;
6022
6476
    *nto* | *qnx*)
6023
6477
      ;;
6024
6478
 
6025
 
    openbsd*)
 
6479
    openbsd* | bitrig*)
6026
6480
      if test -f /usr/libexec/ld.so; then
6027
6481
        _LT_TAGVAR(hardcode_direct, $1)=yes
6028
6482
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6029
6483
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6030
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6484
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6031
6485
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6032
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6033
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6034
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6486
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 
6487
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
6488
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6035
6489
        else
6036
 
          case $host_os in
6037
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6038
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6039
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6040
 
             ;;
6041
 
           *)
6042
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6043
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6044
 
             ;;
6045
 
          esac
 
6490
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6491
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6046
6492
        fi
6047
6493
      else
6048
6494
        _LT_TAGVAR(ld_shlibs, $1)=no
6053
6499
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6054
6500
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6055
6501
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6056
 
      _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'
6057
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6502
      shrext_cmds=.dll
 
6503
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
6504
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
6505
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
6506
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
6507
        emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
6508
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
6509
        emximp -o $lib $output_objdir/$libname.def'
 
6510
      _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
6511
        $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
6512
        $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
6513
        $ECHO EXPORTS >> $output_objdir/$libname.def~
 
6514
        prefix_cmds="$SED"~
 
6515
        if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
6516
          prefix_cmds="$prefix_cmds -e 1d";
 
6517
        fi~
 
6518
        prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
6519
        cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
6520
        $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
6521
        emximp -o $lib $output_objdir/$libname.def'
 
6522
      _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
6523
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6058
6524
      ;;
6059
6525
 
6060
6526
    osf3*)
6061
 
      if test "$GCC" = yes; then
6062
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6063
 
        _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'
 
6527
      if test yes = "$GCC"; then
 
6528
        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 
6529
        _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'
6064
6530
      else
6065
6531
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6066
 
        _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'
 
6532
        _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'
6067
6533
      fi
6068
6534
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6069
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6535
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6070
6536
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6071
6537
      ;;
6072
6538
 
6073
6539
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6074
 
      if test "$GCC" = yes; then
6075
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6076
 
        _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'
6077
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6540
      if test yes = "$GCC"; then
 
6541
        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 
6542
        _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'
 
6543
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6078
6544
      else
6079
6545
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6080
 
        _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'
 
6546
        _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'
6081
6547
        _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~
6082
 
        $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'
 
6548
          $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'
6083
6549
 
6084
6550
        # Both c and cxx compiler support -rpath directly
6085
6551
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6090
6556
 
6091
6557
    solaris*)
6092
6558
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6093
 
      if test "$GCC" = yes; then
6094
 
        wlarc='${wl}'
6095
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6559
      if test yes = "$GCC"; then
 
6560
        wlarc='$wl'
 
6561
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
6096
6562
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6097
 
          $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'
 
6563
          $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'
6098
6564
      else
6099
6565
        case `$CC -V 2>&1` in
6100
6566
        *"Compilers 5.0"*)
6101
6567
          wlarc=''
6102
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6568
          _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
6103
6569
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6104
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
6570
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6105
6571
          ;;
6106
6572
        *)
6107
 
          wlarc='${wl}'
6108
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6573
          wlarc='$wl'
 
6574
          _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6109
6575
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6110
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6576
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6111
6577
          ;;
6112
6578
        esac
6113
6579
      fi
6117
6583
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6118
6584
      *)
6119
6585
        # The compiler driver will combine and reorder linker options,
6120
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6586
        # but understands '-z linker_flag'.  GCC discards it without '$wl',
6121
6587
        # but is careful enough not to reorder.
6122
6588
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6123
 
        if test "$GCC" = yes; then
6124
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6589
        if test yes = "$GCC"; then
 
6590
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
6125
6591
        else
6126
6592
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6127
6593
        fi
6131
6597
      ;;
6132
6598
 
6133
6599
    sunos4*)
6134
 
      if test "x$host_vendor" = xsequent; then
 
6600
      if test sequent = "$host_vendor"; then
6135
6601
        # Use $CC to link under sequent, because it throws in some extra .o
6136
6602
        # files that make .init and .fini sections work.
6137
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6603
        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6138
6604
      else
6139
6605
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6140
6606
      fi
6183
6649
      ;;
6184
6650
 
6185
6651
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6186
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6652
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6187
6653
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6188
6654
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6189
6655
      runpath_var='LD_RUN_PATH'
6190
6656
 
6191
 
      if test "$GCC" = yes; then
6192
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6193
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6657
      if test yes = "$GCC"; then
 
6658
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6659
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6194
6660
      else
6195
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6196
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6661
        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6662
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6197
6663
      fi
6198
6664
      ;;
6199
6665
 
6200
6666
    sysv5* | sco3.2v5* | sco5v6*)
6201
 
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6667
      # Note: We CANNOT use -z defs as we might desire, because we do not
6202
6668
      # link with -lc, and that would cause any symbols used from libc to
6203
6669
      # always be unresolved, which means just about no library would
6204
6670
      # ever link correctly.  If we're not using GNU ld we use -z text
6205
6671
      # though, which does catch some bad symbols but isn't as heavy-handed
6206
6672
      # as -z defs.
6207
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6208
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6673
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 
6674
      _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6209
6675
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6210
6676
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6211
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6677
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6212
6678
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6213
6679
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6214
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6680
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6215
6681
      runpath_var='LD_RUN_PATH'
6216
6682
 
6217
 
      if test "$GCC" = yes; then
6218
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6219
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6683
      if test yes = "$GCC"; then
 
6684
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6685
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6220
6686
      else
6221
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6222
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6687
        _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6688
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6223
6689
      fi
6224
6690
      ;;
6225
6691
 
6234
6700
      ;;
6235
6701
    esac
6236
6702
 
6237
 
    if test x$host_vendor = xsni; then
 
6703
    if test sni = "$host_vendor"; then
6238
6704
      case $host in
6239
6705
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6240
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6706
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6241
6707
        ;;
6242
6708
      esac
6243
6709
    fi
6244
6710
  fi
6245
6711
])
6246
6712
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6247
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6713
test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6248
6714
 
6249
6715
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6250
6716
 
6261
6727
  # Assume -lc should be added
6262
6728
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6263
6729
 
6264
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6730
  if test yes,yes = "$GCC,$enable_shared"; then
6265
6731
    case $_LT_TAGVAR(archive_cmds, $1) in
6266
6732
    *'~'*)
6267
6733
      # FIXME: we may have to deal with multi-command sequences.
6341
6807
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6342
6808
    [Whether we need a single "-rpath" flag with a separated argument])
6343
6809
_LT_TAGDECL([], [hardcode_direct], [0],
6344
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6810
    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6345
6811
    DIR into the resulting binary])
6346
6812
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6347
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6813
    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6348
6814
    DIR into the resulting binary and the resulting library dependency is
6349
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6815
    "absolute", i.e impossible to change by setting $shlibpath_var if the
6350
6816
    library is relocated])
6351
6817
_LT_TAGDECL([], [hardcode_minus_L], [0],
6352
6818
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6387
6853
# ------------------------
6388
6854
# Ensure that the configuration variables for a C compiler are suitably
6389
6855
# defined.  These variables are subsequently used by _LT_CONFIG to write
6390
 
# the compiler configuration to `libtool'.
 
6856
# the compiler configuration to 'libtool'.
6391
6857
m4_defun([_LT_LANG_C_CONFIG],
6392
6858
[m4_require([_LT_DECL_EGREP])dnl
6393
 
lt_save_CC="$CC"
 
6859
lt_save_CC=$CC
6394
6860
AC_LANG_PUSH(C)
6395
6861
 
6396
6862
# Source file extension for C test sources.
6426
6892
  LT_SYS_DLOPEN_SELF
6427
6893
  _LT_CMD_STRIPLIB
6428
6894
 
6429
 
  # Report which library types will actually be built
 
6895
  # Report what library types will actually be built
6430
6896
  AC_MSG_CHECKING([if libtool supports shared libraries])
6431
6897
  AC_MSG_RESULT([$can_build_shared])
6432
6898
 
6433
6899
  AC_MSG_CHECKING([whether to build shared libraries])
6434
 
  test "$can_build_shared" = "no" && enable_shared=no
 
6900
  test no = "$can_build_shared" && enable_shared=no
6435
6901
 
6436
6902
  # On AIX, shared libraries and static libraries use the same namespace, and
6437
6903
  # are all built from PIC.
6438
6904
  case $host_os in
6439
6905
  aix3*)
6440
 
    test "$enable_shared" = yes && enable_static=no
 
6906
    test yes = "$enable_shared" && enable_static=no
6441
6907
    if test -n "$RANLIB"; then
6442
6908
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6443
6909
      postinstall_cmds='$RANLIB $lib'
6445
6911
    ;;
6446
6912
 
6447
6913
  aix[[4-9]]*)
6448
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6449
 
      test "$enable_shared" = yes && enable_static=no
 
6914
    if test ia64 != "$host_cpu"; then
 
6915
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 
6916
      yes,aix,yes) ;;                   # shared object as lib.so file only
 
6917
      yes,svr4,*) ;;                    # shared object as lib.so archive member only
 
6918
      yes,*) enable_static=no ;;        # shared object in lib.a archive as well
 
6919
      esac
6450
6920
    fi
6451
6921
    ;;
6452
6922
  esac
6454
6924
 
6455
6925
  AC_MSG_CHECKING([whether to build static libraries])
6456
6926
  # Make sure either enable_shared or enable_static is yes.
6457
 
  test "$enable_shared" = yes || enable_static=yes
 
6927
  test yes = "$enable_shared" || enable_static=yes
6458
6928
  AC_MSG_RESULT([$enable_static])
6459
6929
 
6460
6930
  _LT_CONFIG($1)
6461
6931
fi
6462
6932
AC_LANG_POP
6463
 
CC="$lt_save_CC"
 
6933
CC=$lt_save_CC
6464
6934
])# _LT_LANG_C_CONFIG
6465
6935
 
6466
6936
 
6468
6938
# --------------------------
6469
6939
# Ensure that the configuration variables for a C++ compiler are suitably
6470
6940
# defined.  These variables are subsequently used by _LT_CONFIG to write
6471
 
# the compiler configuration to `libtool'.
 
6941
# the compiler configuration to 'libtool'.
6472
6942
m4_defun([_LT_LANG_CXX_CONFIG],
6473
6943
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6474
6944
m4_require([_LT_DECL_EGREP])dnl
6475
6945
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6476
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6477
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6478
 
    (test "X$CXX" != "Xg++"))) ; then
 
6946
if test -n "$CXX" && ( test no != "$CXX" &&
 
6947
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 
6948
    (test g++ != "$CXX"))); then
6479
6949
  AC_PROG_CXXCPP
6480
6950
else
6481
6951
  _lt_caught_CXX_error=yes
6517
6987
# the CXX compiler isn't working.  Some variables (like enable_shared)
6518
6988
# are currently assumed to apply to all compilers on this platform,
6519
6989
# and will be corrupted by setting them based on a non-working compiler.
6520
 
if test "$_lt_caught_CXX_error" != yes; then
 
6990
if test yes != "$_lt_caught_CXX_error"; then
6521
6991
  # Code to be used in simple compile tests
6522
6992
  lt_simple_compile_test_code="int some_variable = 0;"
6523
6993
 
6559
7029
  if test -n "$compiler"; then
6560
7030
    # We don't want -fno-exception when compiling C++ code, so set the
6561
7031
    # no_builtin_flag separately
6562
 
    if test "$GXX" = yes; then
 
7032
    if test yes = "$GXX"; then
6563
7033
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6564
7034
    else
6565
7035
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6566
7036
    fi
6567
7037
 
6568
 
    if test "$GXX" = yes; then
 
7038
    if test yes = "$GXX"; then
6569
7039
      # Set up default GNU C++ configuration
6570
7040
 
6571
7041
      LT_PATH_LD
6572
7042
 
6573
7043
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6574
7044
      # archiving commands below assume that GNU ld is being used.
6575
 
      if test "$with_gnu_ld" = yes; then
6576
 
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577
 
        _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'
 
7045
      if test yes = "$with_gnu_ld"; then
 
7046
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
7047
        _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'
6578
7048
 
6579
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6580
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7049
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 
7050
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6581
7051
 
6582
7052
        # If archive_cmds runs LD, not CC, wlarc should be empty
6583
7053
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6584
7054
        #     investigate it a little bit more. (MM)
6585
 
        wlarc='${wl}'
 
7055
        wlarc='$wl'
6586
7056
 
6587
7057
        # ancient GNU ld didn't support --whole-archive et. al.
6588
7058
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6589
7059
          $GREP 'no-whole-archive' > /dev/null; then
6590
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7060
          _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6591
7061
        else
6592
7062
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6593
7063
        fi
6623
7093
        _LT_TAGVAR(ld_shlibs, $1)=no
6624
7094
        ;;
6625
7095
      aix[[4-9]]*)
6626
 
        if test "$host_cpu" = ia64; then
 
7096
        if test ia64 = "$host_cpu"; then
6627
7097
          # On IA64, the linker does run time linking by default, so we don't
6628
7098
          # have to do anything special.
6629
7099
          aix_use_runtimelinking=no
6630
7100
          exp_sym_flag='-Bexport'
6631
 
          no_entry_flag=""
 
7101
          no_entry_flag=
6632
7102
        else
6633
7103
          aix_use_runtimelinking=no
6634
7104
 
6635
7105
          # Test if we are trying to use run time linking or normal
6636
7106
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6637
 
          # need to do runtime linking.
 
7107
          # have runtime linking enabled, and use it for executables.
 
7108
          # For shared libraries, we enable/disable runtime linking
 
7109
          # depending on the kind of the shared library created -
 
7110
          # when "with_aix_soname,aix_use_runtimelinking" is:
 
7111
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 
7112
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
 
7113
          #            lib.a           static archive
 
7114
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 
7115
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
 
7116
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 
7117
          #            lib.a(lib.so.V) shared, rtl:no
 
7118
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 
7119
          #            lib.a           static archive
6638
7120
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6639
7121
            for ld_flag in $LDFLAGS; do
6640
7122
              case $ld_flag in
6644
7126
                ;;
6645
7127
              esac
6646
7128
            done
 
7129
            if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 
7130
              # With aix-soname=svr4, we create the lib.so.V shared archives only,
 
7131
              # so we don't have lib.a shared libs to link our executables.
 
7132
              # We have to force runtime linking in this case.
 
7133
              aix_use_runtimelinking=yes
 
7134
              LDFLAGS="$LDFLAGS -Wl,-brtl"
 
7135
            fi
6647
7136
            ;;
6648
7137
          esac
6649
7138
 
6662
7151
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6663
7152
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6664
7153
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6665
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
7154
        _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 
7155
        case $with_aix_soname,$aix_use_runtimelinking in
 
7156
        aix,*) ;;       # no import file
 
7157
        svr4,* | *,yes) # use import file
 
7158
          # The Import File defines what to hardcode.
 
7159
          _LT_TAGVAR(hardcode_direct, $1)=no
 
7160
          _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7161
          ;;
 
7162
        esac
6666
7163
 
6667
 
        if test "$GXX" = yes; then
 
7164
        if test yes = "$GXX"; then
6668
7165
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6669
7166
          # We only want to do this on AIX 4.2 and lower, the check
6670
7167
          # below for broken collect2 doesn't work under 4.3+
6671
 
          collect2name=`${CC} -print-prog-name=collect2`
 
7168
          collect2name=`$CC -print-prog-name=collect2`
6672
7169
          if test -f "$collect2name" &&
6673
7170
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6674
7171
          then
6686
7183
          fi
6687
7184
          esac
6688
7185
          shared_flag='-shared'
6689
 
          if test "$aix_use_runtimelinking" = yes; then
6690
 
            shared_flag="$shared_flag "'${wl}-G'
 
7186
          if test yes = "$aix_use_runtimelinking"; then
 
7187
            shared_flag=$shared_flag' $wl-G'
6691
7188
          fi
 
7189
          # Need to ensure runtime linking is disabled for the traditional
 
7190
          # shared library, or the linker may eventually find shared libraries
 
7191
          # /with/ Import File - we do not want to mix them.
 
7192
          shared_flag_aix='-shared'
 
7193
          shared_flag_svr4='-shared $wl-G'
6692
7194
        else
6693
7195
          # not using gcc
6694
 
          if test "$host_cpu" = ia64; then
 
7196
          if test ia64 = "$host_cpu"; then
6695
7197
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6696
7198
          # chokes on -Wl,-G. The following line is correct:
6697
7199
          shared_flag='-G'
6698
7200
          else
6699
 
            if test "$aix_use_runtimelinking" = yes; then
6700
 
              shared_flag='${wl}-G'
 
7201
            if test yes = "$aix_use_runtimelinking"; then
 
7202
              shared_flag='$wl-G'
6701
7203
            else
6702
 
              shared_flag='${wl}-bM:SRE'
 
7204
              shared_flag='$wl-bM:SRE'
6703
7205
            fi
 
7206
            shared_flag_aix='$wl-bM:SRE'
 
7207
            shared_flag_svr4='$wl-G'
6704
7208
          fi
6705
7209
        fi
6706
7210
 
6707
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
7211
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6708
7212
        # It seems that -bexpall does not export symbols beginning with
6709
7213
        # underscore (_), so it is better to generate a list of symbols to
6710
7214
        # export.
6711
7215
        _LT_TAGVAR(always_export_symbols, $1)=yes
6712
 
        if test "$aix_use_runtimelinking" = yes; then
 
7216
        if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6713
7217
          # Warning - without using the other runtime loading flags (-brtl),
6714
7218
          # -berok will link without error, but may produce a broken library.
6715
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7219
          # The "-G" linker flag allows undefined symbols.
 
7220
          _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6716
7221
          # Determine the default libpath from the value encoded in an empty
6717
7222
          # executable.
6718
7223
          _LT_SYS_MODULE_PATH_AIX([$1])
6719
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7224
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6720
7225
 
6721
 
          _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"
 
7226
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6722
7227
        else
6723
 
          if test "$host_cpu" = ia64; then
6724
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7228
          if test ia64 = "$host_cpu"; then
 
7229
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6725
7230
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6726
 
            _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"
 
7231
            _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"
6727
7232
          else
6728
7233
            # Determine the default libpath from the value encoded in an
6729
7234
            # empty executable.
6730
7235
            _LT_SYS_MODULE_PATH_AIX([$1])
6731
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7236
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6732
7237
            # Warning - without using the other run time loading flags,
6733
7238
            # -berok will link without error, but may produce a broken library.
6734
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6735
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6736
 
            if test "$with_gnu_ld" = yes; then
 
7239
            _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 
7240
            _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 
7241
            if test yes = "$with_gnu_ld"; then
6737
7242
              # We only use this code for GNU lds that support --whole-archive.
6738
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7243
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6739
7244
            else
6740
7245
              # Exported symbols can be pulled into shared objects from archives
6741
7246
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6742
7247
            fi
6743
7248
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6744
 
            # This is similar to how AIX traditionally builds its shared
6745
 
            # libraries.
6746
 
            _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'
 
7249
            _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 
7250
            # -brtl affects multiple linker settings, -berok does not and is overridden later
 
7251
            compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 
7252
            if test svr4 != "$with_aix_soname"; then
 
7253
              # This is similar to how AIX traditionally builds its shared
 
7254
              # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 
7255
              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
 
7256
            fi
 
7257
            if test aix != "$with_aix_soname"; then
 
7258
              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
 
7259
            else
 
7260
              # used by -dlpreopen to get the symbols
 
7261
              _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 
7262
            fi
 
7263
            _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6747
7264
          fi
6748
7265
        fi
6749
7266
        ;;
6753
7270
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6754
7271
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6755
7272
          # support --undefined.  This deserves some investigation.  FIXME
6756
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7273
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6757
7274
        else
6758
7275
          _LT_TAGVAR(ld_shlibs, $1)=no
6759
7276
        fi
6781
7298
          # Tell ltmain to make .lib files, not .a files.
6782
7299
          libext=lib
6783
7300
          # Tell ltmain to make .dll files, not .so files.
6784
 
          shrext_cmds=".dll"
 
7301
          shrext_cmds=.dll
6785
7302
          # FIXME: Setting linknames here is a bad hack.
6786
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6787
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6788
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6789
 
            else
6790
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6791
 
            fi~
6792
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6793
 
            linknames='
 
7303
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
7304
          _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 
7305
              cp "$export_symbols" "$output_objdir/$soname.def";
 
7306
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
7307
            else
 
7308
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
7309
            fi~
 
7310
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
7311
            linknames='
6794
7312
          # The linker will not automatically build a static lib if we build a DLL.
6795
7313
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6796
7314
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6797
7315
          # Don't use ranlib
6798
7316
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6799
7317
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6800
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
6801
 
            case $lt_outputfile in
6802
 
              *.exe|*.EXE) ;;
6803
 
              *)
6804
 
                lt_outputfile="$lt_outputfile.exe"
6805
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
6806
 
                ;;
6807
 
            esac~
6808
 
            func_to_tool_file "$lt_outputfile"~
6809
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6810
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6811
 
              $RM "$lt_outputfile.manifest";
6812
 
            fi'
 
7318
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
7319
            case $lt_outputfile in
 
7320
              *.exe|*.EXE) ;;
 
7321
              *)
 
7322
                lt_outputfile=$lt_outputfile.exe
 
7323
                lt_tool_outputfile=$lt_tool_outputfile.exe
 
7324
                ;;
 
7325
            esac~
 
7326
            func_to_tool_file "$lt_outputfile"~
 
7327
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
7328
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
7329
              $RM "$lt_outputfile.manifest";
 
7330
            fi'
6813
7331
          ;;
6814
7332
        *)
6815
7333
          # g++
6816
7334
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6817
7335
          # as there is no search path for DLLs.
6818
7336
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6819
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
 
7337
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6820
7338
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6821
7339
          _LT_TAGVAR(always_export_symbols, $1)=no
6822
7340
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6823
7341
 
6824
7342
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6825
 
            _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'
6826
 
            # If the export-symbols file already is a .def file (1st line
6827
 
            # is EXPORTS), use it as is; otherwise, prepend...
6828
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6829
 
              cp $export_symbols $output_objdir/$soname.def;
6830
 
            else
6831
 
              echo EXPORTS > $output_objdir/$soname.def;
6832
 
              cat $export_symbols >> $output_objdir/$soname.def;
6833
 
            fi~
6834
 
            $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'
 
7343
            _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'
 
7344
            # If the export-symbols file already is a .def file, use it as
 
7345
            # is; otherwise, prepend EXPORTS...
 
7346
            _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 
7347
              cp $export_symbols $output_objdir/$soname.def;
 
7348
            else
 
7349
              echo EXPORTS > $output_objdir/$soname.def;
 
7350
              cat $export_symbols >> $output_objdir/$soname.def;
 
7351
            fi~
 
7352
            $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'
6835
7353
          else
6836
7354
            _LT_TAGVAR(ld_shlibs, $1)=no
6837
7355
          fi
6842
7360
        _LT_DARWIN_LINKER_FEATURES($1)
6843
7361
        ;;
6844
7362
 
 
7363
      os2*)
 
7364
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7365
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7366
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7367
        shrext_cmds=.dll
 
7368
        _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
7369
          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
7370
          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
7371
          $ECHO EXPORTS >> $output_objdir/$libname.def~
 
7372
          emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 
7373
          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
7374
          emximp -o $lib $output_objdir/$libname.def'
 
7375
        _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 
7376
          $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 
7377
          $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 
7378
          $ECHO EXPORTS >> $output_objdir/$libname.def~
 
7379
          prefix_cmds="$SED"~
 
7380
          if test EXPORTS = "`$SED 1q $export_symbols`"; then
 
7381
            prefix_cmds="$prefix_cmds -e 1d";
 
7382
          fi~
 
7383
          prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 
7384
          cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 
7385
          $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 
7386
          emximp -o $lib $output_objdir/$libname.def'
 
7387
        _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 
7388
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7389
        ;;
 
7390
 
6845
7391
      dgux*)
6846
7392
        case $cc_basename in
6847
7393
          ec++*)
6877
7423
        ;;
6878
7424
 
6879
7425
      haiku*)
6880
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7426
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6881
7427
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6882
7428
        ;;
6883
7429
 
6884
7430
      hpux9*)
6885
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7431
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6886
7432
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6887
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7433
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6888
7434
        _LT_TAGVAR(hardcode_direct, $1)=yes
6889
7435
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6890
7436
                                             # but as the default
6896
7442
            _LT_TAGVAR(ld_shlibs, $1)=no
6897
7443
            ;;
6898
7444
          aCC*)
6899
 
            _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'
 
7445
            _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6900
7446
            # Commands to make compiler produce verbose output that lists
6901
7447
            # what "hidden" libraries, object files and flags are used when
6902
7448
            # linking a shared library.
6905
7451
            # explicitly linking system object files so we need to strip them
6906
7452
            # from the output so that they don't get included in the library
6907
7453
            # dependencies.
6908
 
            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"'
 
7454
            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"'
6909
7455
            ;;
6910
7456
          *)
6911
 
            if test "$GXX" = yes; then
6912
 
              _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'
 
7457
            if test yes = "$GXX"; then
 
7458
              _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6913
7459
            else
6914
7460
              # FIXME: insert proper C++ library support
6915
7461
              _LT_TAGVAR(ld_shlibs, $1)=no
6919
7465
        ;;
6920
7466
 
6921
7467
      hpux10*|hpux11*)
6922
 
        if test $with_gnu_ld = no; then
6923
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7468
        if test no = "$with_gnu_ld"; then
 
7469
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6924
7470
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6925
7471
 
6926
7472
          case $host_cpu in
6927
7473
            hppa*64*|ia64*)
6928
7474
              ;;
6929
7475
            *)
6930
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7476
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6931
7477
              ;;
6932
7478
          esac
6933
7479
        fi
6953
7499
          aCC*)
6954
7500
            case $host_cpu in
6955
7501
              hppa*64*)
6956
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7502
                _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6957
7503
                ;;
6958
7504
              ia64*)
6959
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7505
                _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6960
7506
                ;;
6961
7507
              *)
6962
 
                _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'
 
7508
                _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'
6963
7509
                ;;
6964
7510
            esac
6965
7511
            # Commands to make compiler produce verbose output that lists
6970
7516
            # explicitly linking system object files so we need to strip them
6971
7517
            # from the output so that they don't get included in the library
6972
7518
            # dependencies.
6973
 
            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"'
 
7519
            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"'
6974
7520
            ;;
6975
7521
          *)
6976
 
            if test "$GXX" = yes; then
6977
 
              if test $with_gnu_ld = no; then
 
7522
            if test yes = "$GXX"; then
 
7523
              if test no = "$with_gnu_ld"; then
6978
7524
                case $host_cpu in
6979
7525
                  hppa*64*)
6980
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7526
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6981
7527
                    ;;
6982
7528
                  ia64*)
6983
 
                    _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'
 
7529
                    _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'
6984
7530
                    ;;
6985
7531
                  *)
6986
 
                    _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'
 
7532
                    _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'
6987
7533
                    ;;
6988
7534
                esac
6989
7535
              fi
6998
7544
      interix[[3-9]]*)
6999
7545
        _LT_TAGVAR(hardcode_direct, $1)=no
7000
7546
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7001
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7002
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7547
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
7548
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7003
7549
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7004
7550
        # Instead, shared libraries are loaded at an image base (0x10000000 by
7005
7551
        # default) and relocated if they conflict, which is a slow very memory
7006
7552
        # consuming and fragmenting process.  To avoid this, we pick a random,
7007
7553
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7008
7554
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7009
 
        _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'
7010
 
        _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'
 
7555
        _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'
 
7556
        _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'
7011
7557
        ;;
7012
7558
      irix5* | irix6*)
7013
7559
        case $cc_basename in
7014
7560
          CC*)
7015
7561
            # SGI C++
7016
 
            _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'
 
7562
            _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'
7017
7563
 
7018
7564
            # Archives containing C++ object files must be created using
7019
7565
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7022
7568
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7023
7569
            ;;
7024
7570
          *)
7025
 
            if test "$GXX" = yes; then
7026
 
              if test "$with_gnu_ld" = no; then
7027
 
                _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'
 
7571
            if test yes = "$GXX"; then
 
7572
              if test no = "$with_gnu_ld"; then
 
7573
                _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'
7028
7574
              else
7029
 
                _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'
 
7575
                _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'
7030
7576
              fi
7031
7577
            fi
7032
7578
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7033
7579
            ;;
7034
7580
        esac
7035
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7581
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7036
7582
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7037
7583
        _LT_TAGVAR(inherit_rpath, $1)=yes
7038
7584
        ;;
7045
7591
            # KCC will only create a shared library if the output file
7046
7592
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
7047
7593
            # to its proper name (with version) after linking.
7048
 
            _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'
7049
 
            _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'
 
7594
            _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'
 
7595
            _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'
7050
7596
            # Commands to make compiler produce verbose output that lists
7051
7597
            # what "hidden" libraries, object files and flags are used when
7052
7598
            # linking a shared library.
7055
7601
            # explicitly linking system object files so we need to strip them
7056
7602
            # from the output so that they don't get included in the library
7057
7603
            # dependencies.
7058
 
            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"'
 
7604
            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"'
7059
7605
 
7060
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7061
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7606
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
7607
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7062
7608
 
7063
7609
            # Archives containing C++ object files must be created using
7064
7610
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7072
7618
            # earlier do not add the objects themselves.
7073
7619
            case `$CC -V 2>&1` in
7074
7620
              *"Version 7."*)
7075
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7076
 
                _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'
 
7621
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
7622
                _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'
7077
7623
                ;;
7078
7624
              *)  # Version 8.0 or newer
7079
7625
                tmp_idyn=
7080
7626
                case $host_cpu in
7081
7627
                  ia64*) tmp_idyn=' -i_dynamic';;
7082
7628
                esac
7083
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7084
 
                _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'
 
7629
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
7630
                _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'
7085
7631
                ;;
7086
7632
            esac
7087
7633
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7088
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7089
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7090
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7634
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
7635
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 
7636
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7091
7637
            ;;
7092
7638
          pgCC* | pgcpp*)
7093
7639
            # Portland Group C++ compiler
7094
7640
            case `$CC -V` in
7095
7641
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7096
7642
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7097
 
                rm -rf $tpldir~
7098
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7099
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
7643
               rm -rf $tpldir~
 
7644
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
7645
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7100
7646
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7101
 
                rm -rf $tpldir~
7102
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7103
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7104
 
                $RANLIB $oldlib'
 
7647
                rm -rf $tpldir~
 
7648
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
7649
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
7650
                $RANLIB $oldlib'
7105
7651
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7106
 
                rm -rf $tpldir~
7107
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7108
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7652
                rm -rf $tpldir~
 
7653
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7654
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7109
7655
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7110
 
                rm -rf $tpldir~
7111
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7112
 
                $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'
 
7656
                rm -rf $tpldir~
 
7657
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7658
                $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'
7113
7659
              ;;
7114
7660
            *) # Version 6 and above use weak symbols
7115
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7116
 
              _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'
 
7661
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
7662
              _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'
7117
7663
              ;;
7118
7664
            esac
7119
7665
 
7120
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7121
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7122
 
            _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'
 
7666
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
 
7667
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 
7668
            _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'
7123
7669
            ;;
7124
7670
          cxx*)
7125
7671
            # Compaq C++
7126
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127
 
            _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'
 
7672
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
7673
            _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'
7128
7674
 
7129
7675
            runpath_var=LD_RUN_PATH
7130
7676
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7138
7684
            # explicitly linking system object files so we need to strip them
7139
7685
            # from the output so that they don't get included in the library
7140
7686
            # dependencies.
7141
 
            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'
 
7687
            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'
7142
7688
            ;;
7143
7689
          xl* | mpixl* | bgxl*)
7144
7690
            # IBM XL 8.0 on PPC, with GNU ld
7145
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7146
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7147
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7148
 
            if test "x$supports_anon_versioning" = xyes; then
 
7691
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 
7692
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 
7693
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
7694
            if test yes = "$supports_anon_versioning"; then
7149
7695
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7150
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7151
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
7152
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7696
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7697
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
7698
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7153
7699
            fi
7154
7700
            ;;
7155
7701
          *)
7157
7703
            *Sun\ C*)
7158
7704
              # Sun C++ 5.9
7159
7705
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7160
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7161
 
              _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'
 
7706
              _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7707
              _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'
7162
7708
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7163
 
              _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'
 
7709
              _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'
7164
7710
              _LT_TAGVAR(compiler_needs_object, $1)=yes
7165
7711
 
7166
7712
              # Not sure whether something based on
7218
7764
        _LT_TAGVAR(ld_shlibs, $1)=yes
7219
7765
        ;;
7220
7766
 
7221
 
      openbsd2*)
7222
 
        # C++ shared libraries are fairly broken
7223
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7224
 
        ;;
7225
 
 
7226
 
      openbsd*)
 
7767
      openbsd* | bitrig*)
7227
7768
        if test -f /usr/libexec/ld.so; then
7228
7769
          _LT_TAGVAR(hardcode_direct, $1)=yes
7229
7770
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7230
7771
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7231
7772
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7232
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7233
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234
 
            _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'
7235
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7236
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7773
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 
7774
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 
7775
            _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'
 
7776
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 
7777
            _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7237
7778
          fi
7238
7779
          output_verbose_link_cmd=func_echo_all
7239
7780
        else
7249
7790
            # KCC will only create a shared library if the output file
7250
7791
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
7251
7792
            # to its proper name (with version) after linking.
7252
 
            _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'
 
7793
            _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'
7253
7794
 
7254
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7795
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7255
7796
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7256
7797
 
7257
7798
            # Archives containing C++ object files must be created using
7269
7810
          cxx*)
7270
7811
            case $host in
7271
7812
              osf3*)
7272
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7273
 
                _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'
7274
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7813
                _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 
7814
                _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'
 
7815
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7275
7816
                ;;
7276
7817
              *)
7277
7818
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7278
 
                _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'
 
7819
                _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'
7279
7820
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7280
 
                  echo "-hidden">> $lib.exp~
7281
 
                  $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~
7282
 
                  $RM $lib.exp'
 
7821
                  echo "-hidden">> $lib.exp~
 
7822
                  $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~
 
7823
                  $RM $lib.exp'
7283
7824
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7284
7825
                ;;
7285
7826
            esac
7294
7835
            # explicitly linking system object files so we need to strip them
7295
7836
            # from the output so that they don't get included in the library
7296
7837
            # dependencies.
7297
 
            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"'
 
7838
            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"'
7298
7839
            ;;
7299
7840
          *)
7300
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7301
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7841
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
7842
              _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7302
7843
              case $host in
7303
7844
                osf3*)
7304
 
                  _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'
 
7845
                  _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'
7305
7846
                  ;;
7306
7847
                *)
7307
 
                  _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'
 
7848
                  _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'
7308
7849
                  ;;
7309
7850
              esac
7310
7851
 
7311
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7852
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7312
7853
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7313
7854
 
7314
7855
              # Commands to make compiler produce verbose output that lists
7354
7895
            # Sun C++ 4.2, 5.x and Centerline C++
7355
7896
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7356
7897
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7357
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7898
            _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7358
7899
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7359
 
              $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'
 
7900
              $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'
7360
7901
 
7361
7902
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7362
7903
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7364
7905
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7365
7906
              *)
7366
7907
                # The compiler driver will combine and reorder linker options,
7367
 
                # but understands `-z linker_flag'.
 
7908
                # but understands '-z linker_flag'.
7368
7909
                # Supported since Solaris 2.6 (maybe 2.5.1?)
7369
7910
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7370
7911
                ;;
7381
7922
            ;;
7382
7923
          gcx*)
7383
7924
            # Green Hills C++ Compiler
7384
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7925
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7385
7926
 
7386
7927
            # The C++ compiler must be used to create the archive.
7387
7928
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7388
7929
            ;;
7389
7930
          *)
7390
7931
            # GNU C++ compiler with Solaris linker
7391
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7392
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7932
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
7933
              _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7393
7934
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7394
 
                _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'
 
7935
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7395
7936
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7396
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7937
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7397
7938
 
7398
7939
                # Commands to make compiler produce verbose output that lists
7399
7940
                # what "hidden" libraries, object files and flags are used when
7400
7941
                # linking a shared library.
7401
7942
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7402
7943
              else
7403
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7944
                # g++ 2.7 appears to require '-G' NOT '-shared' on this
7404
7945
                # platform.
7405
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7946
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7406
7947
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7407
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7948
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7408
7949
 
7409
7950
                # Commands to make compiler produce verbose output that lists
7410
7951
                # what "hidden" libraries, object files and flags are used when
7412
7953
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7413
7954
              fi
7414
7955
 
7415
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7956
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7416
7957
              case $host_os in
7417
7958
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7418
7959
                *)
7419
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7960
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7420
7961
                  ;;
7421
7962
              esac
7422
7963
            fi
7425
7966
        ;;
7426
7967
 
7427
7968
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7428
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7969
      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7429
7970
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7430
7971
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7431
7972
      runpath_var='LD_RUN_PATH'
7432
7973
 
7433
7974
      case $cc_basename in
7434
7975
        CC*)
7435
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7436
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7976
          _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7977
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7437
7978
          ;;
7438
7979
        *)
7439
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7440
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7980
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7981
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7441
7982
          ;;
7442
7983
      esac
7443
7984
      ;;
7444
7985
 
7445
7986
      sysv5* | sco3.2v5* | sco5v6*)
7446
 
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7987
        # Note: We CANNOT use -z defs as we might desire, because we do not
7447
7988
        # link with -lc, and that would cause any symbols used from libc to
7448
7989
        # always be unresolved, which means just about no library would
7449
7990
        # ever link correctly.  If we're not using GNU ld we use -z text
7450
7991
        # though, which does catch some bad symbols but isn't as heavy-handed
7451
7992
        # as -z defs.
7452
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7453
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7993
        _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 
7994
        _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7454
7995
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7455
7996
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7456
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7997
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7457
7998
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7458
7999
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7459
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
8000
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7460
8001
        runpath_var='LD_RUN_PATH'
7461
8002
 
7462
8003
        case $cc_basename in
7463
8004
          CC*)
7464
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7465
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8005
            _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8006
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7466
8007
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7467
 
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
 
8008
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
7468
8009
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7469
 
              '"$_LT_TAGVAR(reload_cmds, $1)"
 
8010
              '"$_LT_TAGVAR(reload_cmds, $1)"
7470
8011
            ;;
7471
8012
          *)
7472
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7473
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8013
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8014
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7474
8015
            ;;
7475
8016
        esac
7476
8017
      ;;
7501
8042
    esac
7502
8043
 
7503
8044
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7504
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
8045
    test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7505
8046
 
7506
 
    _LT_TAGVAR(GCC, $1)="$GXX"
7507
 
    _LT_TAGVAR(LD, $1)="$LD"
 
8047
    _LT_TAGVAR(GCC, $1)=$GXX
 
8048
    _LT_TAGVAR(LD, $1)=$LD
7508
8049
 
7509
8050
    ## CAVEAT EMPTOR:
7510
8051
    ## There is no encapsulation within the following macros, do not change
7531
8072
  lt_cv_path_LD=$lt_save_path_LD
7532
8073
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7533
8074
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7534
 
fi # test "$_lt_caught_CXX_error" != yes
 
8075
fi # test yes != "$_lt_caught_CXX_error"
7535
8076
 
7536
8077
AC_LANG_POP
7537
8078
])# _LT_LANG_CXX_CONFIG
7553
8094
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7554
8095
func_stripname_cnf ()
7555
8096
{
7556
 
  case ${2} in
7557
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7558
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8097
  case @S|@2 in
 
8098
  .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
 
8099
  *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7559
8100
  esac
7560
8101
} # func_stripname_cnf
7561
8102
])# _LT_FUNC_STRIPNAME_CNF
7562
8103
 
 
8104
 
7563
8105
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7564
8106
# ---------------------------------
7565
8107
# Figure out "hidden" library dependencies from verbose
7643
8185
  pre_test_object_deps_done=no
7644
8186
 
7645
8187
  for p in `eval "$output_verbose_link_cmd"`; do
7646
 
    case ${prev}${p} in
 
8188
    case $prev$p in
7647
8189
 
7648
8190
    -L* | -R* | -l*)
7649
8191
       # Some compilers place space between "-{L,R}" and the path.
7650
8192
       # Remove the space.
7651
 
       if test $p = "-L" ||
7652
 
          test $p = "-R"; then
 
8193
       if test x-L = "$p" ||
 
8194
          test x-R = "$p"; then
7653
8195
         prev=$p
7654
8196
         continue
7655
8197
       fi
7665
8207
       case $p in
7666
8208
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7667
8209
       esac
7668
 
       if test "$pre_test_object_deps_done" = no; then
7669
 
         case ${prev} in
 
8210
       if test no = "$pre_test_object_deps_done"; then
 
8211
         case $prev in
7670
8212
         -L | -R)
7671
8213
           # Internal compiler library paths should come after those
7672
8214
           # provided the user.  The postdeps already come after the
7673
8215
           # user supplied libs so there is no need to process them.
7674
8216
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7675
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
8217
             _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7676
8218
           else
7677
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
8219
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7678
8220
           fi
7679
8221
           ;;
7680
8222
         # The "-l" case would never come before the object being
7682
8224
         esac
7683
8225
       else
7684
8226
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7685
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
8227
           _LT_TAGVAR(postdeps, $1)=$prev$p
7686
8228
         else
7687
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
8229
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7688
8230
         fi
7689
8231
       fi
7690
8232
       prev=
7699
8241
         continue
7700
8242
       fi
7701
8243
 
7702
 
       if test "$pre_test_object_deps_done" = no; then
 
8244
       if test no = "$pre_test_object_deps_done"; then
7703
8245
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7704
 
           _LT_TAGVAR(predep_objects, $1)="$p"
 
8246
           _LT_TAGVAR(predep_objects, $1)=$p
7705
8247
         else
7706
8248
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7707
8249
         fi
7708
8250
       else
7709
8251
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7710
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
8252
           _LT_TAGVAR(postdep_objects, $1)=$p
7711
8253
         else
7712
8254
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7713
8255
         fi
7738
8280
  _LT_TAGVAR(postdep_objects,$1)=
7739
8281
  _LT_TAGVAR(postdeps,$1)=
7740
8282
  ;;
7741
 
 
7742
 
linux*)
7743
 
  case `$CC -V 2>&1 | sed 5q` in
7744
 
  *Sun\ C*)
7745
 
    # Sun C++ 5.9
7746
 
 
7747
 
    # The more standards-conforming stlport4 library is
7748
 
    # incompatible with the Cstd library. Avoid specifying
7749
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7750
 
    # -library=stlport4 depends on it.
7751
 
    case " $CXX $CXXFLAGS " in
7752
 
    *" -library=stlport4 "*)
7753
 
      solaris_use_stlport4=yes
7754
 
      ;;
7755
 
    esac
7756
 
 
7757
 
    if test "$solaris_use_stlport4" != yes; then
7758
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7759
 
    fi
7760
 
    ;;
7761
 
  esac
7762
 
  ;;
7763
 
 
7764
 
solaris*)
7765
 
  case $cc_basename in
7766
 
  CC* | sunCC*)
7767
 
    # The more standards-conforming stlport4 library is
7768
 
    # incompatible with the Cstd library. Avoid specifying
7769
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7770
 
    # -library=stlport4 depends on it.
7771
 
    case " $CXX $CXXFLAGS " in
7772
 
    *" -library=stlport4 "*)
7773
 
      solaris_use_stlport4=yes
7774
 
      ;;
7775
 
    esac
7776
 
 
7777
 
    # Adding this requires a known-good setup of shared libraries for
7778
 
    # Sun compiler versions before 5.6, else PIC objects from an old
7779
 
    # archive will be linked into the output, leading to subtle bugs.
7780
 
    if test "$solaris_use_stlport4" != yes; then
7781
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7782
 
    fi
7783
 
    ;;
7784
 
  esac
7785
 
  ;;
7786
8283
esac
7787
8284
])
7788
8285
 
7791
8288
esac
7792
8289
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7793
8290
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7794
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
8291
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7795
8292
fi
7796
8293
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7797
8294
    [The directories searched by this compiler when creating a shared library])
7811
8308
# --------------------------
7812
8309
# Ensure that the configuration variables for a Fortran 77 compiler are
7813
8310
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7814
 
# to write the compiler configuration to `libtool'.
 
8311
# to write the compiler configuration to 'libtool'.
7815
8312
m4_defun([_LT_LANG_F77_CONFIG],
7816
8313
[AC_LANG_PUSH(Fortran 77)
7817
 
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8314
if test -z "$F77" || test no = "$F77"; then
7818
8315
  _lt_disable_F77=yes
7819
8316
fi
7820
8317
 
7851
8348
# the F77 compiler isn't working.  Some variables (like enable_shared)
7852
8349
# are currently assumed to apply to all compilers on this platform,
7853
8350
# and will be corrupted by setting them based on a non-working compiler.
7854
 
if test "$_lt_disable_F77" != yes; then
 
8351
if test yes != "$_lt_disable_F77"; then
7855
8352
  # Code to be used in simple compile tests
7856
8353
  lt_simple_compile_test_code="\
7857
8354
      subroutine t
7873
8370
  _LT_LINKER_BOILERPLATE
7874
8371
 
7875
8372
  # Allow CC to be a program name with arguments.
7876
 
  lt_save_CC="$CC"
 
8373
  lt_save_CC=$CC
7877
8374
  lt_save_GCC=$GCC
7878
8375
  lt_save_CFLAGS=$CFLAGS
7879
8376
  CC=${F77-"f77"}
7887
8384
    AC_MSG_RESULT([$can_build_shared])
7888
8385
 
7889
8386
    AC_MSG_CHECKING([whether to build shared libraries])
7890
 
    test "$can_build_shared" = "no" && enable_shared=no
 
8387
    test no = "$can_build_shared" && enable_shared=no
7891
8388
 
7892
8389
    # On AIX, shared libraries and static libraries use the same namespace, and
7893
8390
    # are all built from PIC.
7894
8391
    case $host_os in
7895
8392
      aix3*)
7896
 
        test "$enable_shared" = yes && enable_static=no
 
8393
        test yes = "$enable_shared" && enable_static=no
7897
8394
        if test -n "$RANLIB"; then
7898
8395
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7899
8396
          postinstall_cmds='$RANLIB $lib'
7900
8397
        fi
7901
8398
        ;;
7902
8399
      aix[[4-9]]*)
7903
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7904
 
          test "$enable_shared" = yes && enable_static=no
 
8400
        if test ia64 != "$host_cpu"; then
 
8401
          case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 
8402
          yes,aix,yes) ;;               # shared object as lib.so file only
 
8403
          yes,svr4,*) ;;                # shared object as lib.so archive member only
 
8404
          yes,*) enable_static=no ;;    # shared object in lib.a archive as well
 
8405
          esac
7905
8406
        fi
7906
8407
        ;;
7907
8408
    esac
7909
8410
 
7910
8411
    AC_MSG_CHECKING([whether to build static libraries])
7911
8412
    # Make sure either enable_shared or enable_static is yes.
7912
 
    test "$enable_shared" = yes || enable_static=yes
 
8413
    test yes = "$enable_shared" || enable_static=yes
7913
8414
    AC_MSG_RESULT([$enable_static])
7914
8415
 
7915
 
    _LT_TAGVAR(GCC, $1)="$G77"
7916
 
    _LT_TAGVAR(LD, $1)="$LD"
 
8416
    _LT_TAGVAR(GCC, $1)=$G77
 
8417
    _LT_TAGVAR(LD, $1)=$LD
7917
8418
 
7918
8419
    ## CAVEAT EMPTOR:
7919
8420
    ## There is no encapsulation within the following macros, do not change
7930
8431
  fi # test -n "$compiler"
7931
8432
 
7932
8433
  GCC=$lt_save_GCC
7933
 
  CC="$lt_save_CC"
7934
 
  CFLAGS="$lt_save_CFLAGS"
7935
 
fi # test "$_lt_disable_F77" != yes
 
8434
  CC=$lt_save_CC
 
8435
  CFLAGS=$lt_save_CFLAGS
 
8436
fi # test yes != "$_lt_disable_F77"
7936
8437
 
7937
8438
AC_LANG_POP
7938
8439
])# _LT_LANG_F77_CONFIG
7942
8443
# -------------------------
7943
8444
# Ensure that the configuration variables for a Fortran compiler are
7944
8445
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7945
 
# to write the compiler configuration to `libtool'.
 
8446
# to write the compiler configuration to 'libtool'.
7946
8447
m4_defun([_LT_LANG_FC_CONFIG],
7947
8448
[AC_LANG_PUSH(Fortran)
7948
8449
 
7949
 
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8450
if test -z "$FC" || test no = "$FC"; then
7950
8451
  _lt_disable_FC=yes
7951
8452
fi
7952
8453
 
7983
8484
# the FC compiler isn't working.  Some variables (like enable_shared)
7984
8485
# are currently assumed to apply to all compilers on this platform,
7985
8486
# and will be corrupted by setting them based on a non-working compiler.
7986
 
if test "$_lt_disable_FC" != yes; then
 
8487
if test yes != "$_lt_disable_FC"; then
7987
8488
  # Code to be used in simple compile tests
7988
8489
  lt_simple_compile_test_code="\
7989
8490
      subroutine t
8005
8506
  _LT_LINKER_BOILERPLATE
8006
8507
 
8007
8508
  # Allow CC to be a program name with arguments.
8008
 
  lt_save_CC="$CC"
 
8509
  lt_save_CC=$CC
8009
8510
  lt_save_GCC=$GCC
8010
8511
  lt_save_CFLAGS=$CFLAGS
8011
8512
  CC=${FC-"f95"}
8021
8522
    AC_MSG_RESULT([$can_build_shared])
8022
8523
 
8023
8524
    AC_MSG_CHECKING([whether to build shared libraries])
8024
 
    test "$can_build_shared" = "no" && enable_shared=no
 
8525
    test no = "$can_build_shared" && enable_shared=no
8025
8526
 
8026
8527
    # On AIX, shared libraries and static libraries use the same namespace, and
8027
8528
    # are all built from PIC.
8028
8529
    case $host_os in
8029
8530
      aix3*)
8030
 
        test "$enable_shared" = yes && enable_static=no
 
8531
        test yes = "$enable_shared" && enable_static=no
8031
8532
        if test -n "$RANLIB"; then
8032
8533
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
8033
8534
          postinstall_cmds='$RANLIB $lib'
8034
8535
        fi
8035
8536
        ;;
8036
8537
      aix[[4-9]]*)
8037
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8038
 
          test "$enable_shared" = yes && enable_static=no
 
8538
        if test ia64 != "$host_cpu"; then
 
8539
          case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 
8540
          yes,aix,yes) ;;               # shared object as lib.so file only
 
8541
          yes,svr4,*) ;;                # shared object as lib.so archive member only
 
8542
          yes,*) enable_static=no ;;    # shared object in lib.a archive as well
 
8543
          esac
8039
8544
        fi
8040
8545
        ;;
8041
8546
    esac
8043
8548
 
8044
8549
    AC_MSG_CHECKING([whether to build static libraries])
8045
8550
    # Make sure either enable_shared or enable_static is yes.
8046
 
    test "$enable_shared" = yes || enable_static=yes
 
8551
    test yes = "$enable_shared" || enable_static=yes
8047
8552
    AC_MSG_RESULT([$enable_static])
8048
8553
 
8049
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8050
 
    _LT_TAGVAR(LD, $1)="$LD"
 
8554
    _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
 
8555
    _LT_TAGVAR(LD, $1)=$LD
8051
8556
 
8052
8557
    ## CAVEAT EMPTOR:
8053
8558
    ## There is no encapsulation within the following macros, do not change
8067
8572
  GCC=$lt_save_GCC
8068
8573
  CC=$lt_save_CC
8069
8574
  CFLAGS=$lt_save_CFLAGS
8070
 
fi # test "$_lt_disable_FC" != yes
 
8575
fi # test yes != "$_lt_disable_FC"
8071
8576
 
8072
8577
AC_LANG_POP
8073
8578
])# _LT_LANG_FC_CONFIG
8077
8582
# --------------------------
8078
8583
# Ensure that the configuration variables for the GNU Java Compiler compiler
8079
8584
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8080
 
# to write the compiler configuration to `libtool'.
 
8585
# to write the compiler configuration to 'libtool'.
8081
8586
m4_defun([_LT_LANG_GCJ_CONFIG],
8082
8587
[AC_REQUIRE([LT_PROG_GCJ])dnl
8083
8588
AC_LANG_SAVE
8111
8616
CFLAGS=$GCJFLAGS
8112
8617
compiler=$CC
8113
8618
_LT_TAGVAR(compiler, $1)=$CC
8114
 
_LT_TAGVAR(LD, $1)="$LD"
 
8619
_LT_TAGVAR(LD, $1)=$LD
8115
8620
_LT_CC_BASENAME([$compiler])
8116
8621
 
8117
8622
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8144
8649
# --------------------------
8145
8650
# Ensure that the configuration variables for the GNU Go compiler
8146
8651
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8147
 
# to write the compiler configuration to `libtool'.
 
8652
# to write the compiler configuration to 'libtool'.
8148
8653
m4_defun([_LT_LANG_GO_CONFIG],
8149
8654
[AC_REQUIRE([LT_PROG_GO])dnl
8150
8655
AC_LANG_SAVE
8178
8683
CFLAGS=$GOFLAGS
8179
8684
compiler=$CC
8180
8685
_LT_TAGVAR(compiler, $1)=$CC
8181
 
_LT_TAGVAR(LD, $1)="$LD"
 
8686
_LT_TAGVAR(LD, $1)=$LD
8182
8687
_LT_CC_BASENAME([$compiler])
8183
8688
 
8184
8689
# Go did not exist at the time GCC didn't implicitly link libc in.
8211
8716
# -------------------------
8212
8717
# Ensure that the configuration variables for the Windows resource compiler
8213
8718
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
8214
 
# to write the compiler configuration to `libtool'.
 
8719
# to write the compiler configuration to 'libtool'.
8215
8720
m4_defun([_LT_LANG_RC_CONFIG],
8216
8721
[AC_REQUIRE([LT_PROG_RC])dnl
8217
8722
AC_LANG_SAVE
8227
8732
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8228
8733
 
8229
8734
# Code to be used in simple link tests
8230
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
8735
lt_simple_link_test_code=$lt_simple_compile_test_code
8231
8736
 
8232
8737
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8233
8738
_LT_TAG_COMPILER
8237
8742
_LT_LINKER_BOILERPLATE
8238
8743
 
8239
8744
# Allow CC to be a program name with arguments.
8240
 
lt_save_CC="$CC"
 
8745
lt_save_CC=$CC
8241
8746
lt_save_CFLAGS=$CFLAGS
8242
8747
lt_save_GCC=$GCC
8243
8748
GCC=
8266
8771
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8267
8772
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8268
8773
    [AC_CHECK_TOOL(GCJ, gcj,)
8269
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8774
      test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8270
8775
      AC_SUBST(GCJFLAGS)])])[]dnl
8271
8776
])
8272
8777
 
8375
8880
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8376
8881
# along with /bin/sed that truncates output.
8377
8882
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8378
 
  test ! -f $lt_ac_sed && continue
 
8883
  test ! -f "$lt_ac_sed" && continue
8379
8884
  cat /dev/null > conftest.in
8380
8885
  lt_ac_count=0
8381
8886
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8392
8897
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8393
8898
    cmp -s conftest.out conftest.nl || break
8394
8899
    # 10000 chars as input seems more than enough
8395
 
    test $lt_ac_count -gt 10 && break
 
8900
    test 10 -lt "$lt_ac_count" && break
8396
8901
    lt_ac_count=`expr $lt_ac_count + 1`
8397
 
    if test $lt_ac_count -gt $lt_ac_max; then
 
8902
    if test "$lt_ac_count" -gt "$lt_ac_max"; then
8398
8903
      lt_ac_max=$lt_ac_count
8399
8904
      lt_cv_path_SED=$lt_ac_sed
8400
8905
    fi
8418
8923
# Find out whether the shell is Bourne or XSI compatible,
8419
8924
# or has some other useful features.
8420
8925
m4_defun([_LT_CHECK_SHELL_FEATURES],
8421
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8422
 
# Try some XSI features
8423
 
xsi_shell=no
8424
 
( _lt_dummy="a/b/c"
8425
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8426
 
      = c,a/b,b/c, \
8427
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
8428
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8429
 
  && xsi_shell=yes
8430
 
AC_MSG_RESULT([$xsi_shell])
8431
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8432
 
 
8433
 
AC_MSG_CHECKING([whether the shell understands "+="])
8434
 
lt_shell_append=no
8435
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8436
 
    >/dev/null 2>&1 \
8437
 
  && lt_shell_append=yes
8438
 
AC_MSG_RESULT([$lt_shell_append])
8439
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8440
 
 
8441
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8926
[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8442
8927
  lt_unset=unset
8443
8928
else
8444
8929
  lt_unset=false
8462
8947
])# _LT_CHECK_SHELL_FEATURES
8463
8948
 
8464
8949
 
8465
 
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8466
 
# ------------------------------------------------------
8467
 
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8468
 
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8469
 
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8470
 
[dnl {
8471
 
sed -e '/^$1 ()$/,/^} # $1 /c\
8472
 
$1 ()\
8473
 
{\
8474
 
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
8475
 
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8476
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
8477
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8478
 
test 0 -eq $? || _lt_function_replace_fail=:
8479
 
])
8480
 
 
8481
 
 
8482
 
# _LT_PROG_REPLACE_SHELLFNS
8483
 
# -------------------------
8484
 
# Replace existing portable implementations of several shell functions with
8485
 
# equivalent extended shell implementations where those features are available..
8486
 
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8487
 
[if test x"$xsi_shell" = xyes; then
8488
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8489
 
    case ${1} in
8490
 
      */*) func_dirname_result="${1%/*}${2}" ;;
8491
 
      *  ) func_dirname_result="${3}" ;;
8492
 
    esac])
8493
 
 
8494
 
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8495
 
    func_basename_result="${1##*/}"])
8496
 
 
8497
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8498
 
    case ${1} in
8499
 
      */*) func_dirname_result="${1%/*}${2}" ;;
8500
 
      *  ) func_dirname_result="${3}" ;;
8501
 
    esac
8502
 
    func_basename_result="${1##*/}"])
8503
 
 
8504
 
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8505
 
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8506
 
    # positional parameters, so assign one to ordinary parameter first.
8507
 
    func_stripname_result=${3}
8508
 
    func_stripname_result=${func_stripname_result#"${1}"}
8509
 
    func_stripname_result=${func_stripname_result%"${2}"}])
8510
 
 
8511
 
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8512
 
    func_split_long_opt_name=${1%%=*}
8513
 
    func_split_long_opt_arg=${1#*=}])
8514
 
 
8515
 
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8516
 
    func_split_short_opt_arg=${1#??}
8517
 
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8518
 
 
8519
 
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8520
 
    case ${1} in
8521
 
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8522
 
      *)    func_lo2o_result=${1} ;;
8523
 
    esac])
8524
 
 
8525
 
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
8526
 
 
8527
 
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
8528
 
 
8529
 
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
8530
 
fi
8531
 
 
8532
 
if test x"$lt_shell_append" = xyes; then
8533
 
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
8534
 
 
8535
 
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8536
 
    func_quote_for_eval "${2}"
8537
 
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8538
 
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8539
 
 
8540
 
  # Save a `func_append' function call where possible by direct use of '+='
8541
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8542
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
8543
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8544
 
  test 0 -eq $? || _lt_function_replace_fail=:
8545
 
else
8546
 
  # Save a `func_append' function call even when '+=' is not available
8547
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8548
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
8549
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8550
 
  test 0 -eq $? || _lt_function_replace_fail=:
8551
 
fi
8552
 
 
8553
 
if test x"$_lt_function_replace_fail" = x":"; then
8554
 
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8555
 
fi
8556
 
])
8557
 
 
8558
8950
# _LT_PATH_CONVERSION_FUNCTIONS
8559
8951
# -----------------------------
8560
 
# Determine which file name conversion functions should be used by
 
8952
# Determine what file name conversion functions should be used by
8561
8953
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
8562
8954
# for certain cross-compile configurations and native mingw.
8563
8955
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8624
9016
 
8625
9017
# Helper functions for option handling.                    -*- Autoconf -*-
8626
9018
#
8627
 
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8628
 
#   Inc.
 
9019
#   Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
 
9020
#   Foundation, Inc.
8629
9021
#   Written by Gary V. Vaughan, 2004
8630
9022
#
8631
9023
# This file is free software; the Free Software Foundation gives
8632
9024
# unlimited permission to copy and/or distribute it, with or without
8633
9025
# modifications, as long as this notice is preserved.
8634
9026
 
8635
 
# serial 7 ltoptions.m4
 
9027
# serial 8 ltoptions.m4
8636
9028
 
8637
9029
# This is to help aclocal find these macros, as it can't see m4_define.
8638
9030
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8653
9045
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8654
9046
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8655
9047
        _LT_MANGLE_DEFUN([$1], [$2]),
8656
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
9048
    [m4_warning([Unknown $1 option '$2'])])[]dnl
8657
9049
])
8658
9050
 
8659
9051
 
8699
9091
  dnl
8700
9092
  dnl If no reference was made to various pairs of opposing options, then
8701
9093
  dnl we run the default mode handler for the pair.  For example, if neither
8702
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
9094
  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8703
9095
  dnl archives by default:
8704
9096
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8705
9097
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8706
9098
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8707
9099
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8708
 
                   [_LT_ENABLE_FAST_INSTALL])
 
9100
                   [_LT_ENABLE_FAST_INSTALL])
 
9101
  _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
 
9102
                   [_LT_WITH_AIX_SONAME([aix])])
8709
9103
  ])
8710
9104
])# _LT_SET_OPTIONS
8711
9105
 
8733
9127
[_LT_SET_OPTION([LT_INIT], [dlopen])
8734
9128
AC_DIAGNOSE([obsolete],
8735
9129
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8736
 
put the `dlopen' option into LT_INIT's first parameter.])
 
9130
put the 'dlopen' option into LT_INIT's first parameter.])
8737
9131
])
8738
9132
 
8739
9133
dnl aclocal-1.4 backwards compatibility:
8769
9163
_LT_SET_OPTION([LT_INIT], [win32-dll])
8770
9164
AC_DIAGNOSE([obsolete],
8771
9165
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8772
 
put the `win32-dll' option into LT_INIT's first parameter.])
 
9166
put the 'win32-dll' option into LT_INIT's first parameter.])
8773
9167
])
8774
9168
 
8775
9169
dnl aclocal-1.4 backwards compatibility:
8778
9172
 
8779
9173
# _LT_ENABLE_SHARED([DEFAULT])
8780
9174
# ----------------------------
8781
 
# implement the --enable-shared flag, and supports the `shared' and
8782
 
# `disable-shared' LT_INIT options.
8783
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9175
# implement the --enable-shared flag, and supports the 'shared' and
 
9176
# 'disable-shared' LT_INIT options.
 
9177
# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8784
9178
m4_define([_LT_ENABLE_SHARED],
8785
9179
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8786
9180
AC_ARG_ENABLE([shared],
8793
9187
    *)
8794
9188
      enable_shared=no
8795
9189
      # Look at the argument we got.  We use all the common list separators.
8796
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9190
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8797
9191
      for pkg in $enableval; do
8798
 
        IFS="$lt_save_ifs"
 
9192
        IFS=$lt_save_ifs
8799
9193
        if test "X$pkg" = "X$p"; then
8800
9194
          enable_shared=yes
8801
9195
        fi
8802
9196
      done
8803
 
      IFS="$lt_save_ifs"
 
9197
      IFS=$lt_save_ifs
8804
9198
      ;;
8805
9199
    esac],
8806
9200
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8832
9226
 
8833
9227
# _LT_ENABLE_STATIC([DEFAULT])
8834
9228
# ----------------------------
8835
 
# implement the --enable-static flag, and support the `static' and
8836
 
# `disable-static' LT_INIT options.
8837
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9229
# implement the --enable-static flag, and support the 'static' and
 
9230
# 'disable-static' LT_INIT options.
 
9231
# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8838
9232
m4_define([_LT_ENABLE_STATIC],
8839
9233
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8840
9234
AC_ARG_ENABLE([static],
8847
9241
    *)
8848
9242
     enable_static=no
8849
9243
      # Look at the argument we got.  We use all the common list separators.
8850
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9244
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8851
9245
      for pkg in $enableval; do
8852
 
        IFS="$lt_save_ifs"
 
9246
        IFS=$lt_save_ifs
8853
9247
        if test "X$pkg" = "X$p"; then
8854
9248
          enable_static=yes
8855
9249
        fi
8856
9250
      done
8857
 
      IFS="$lt_save_ifs"
 
9251
      IFS=$lt_save_ifs
8858
9252
      ;;
8859
9253
    esac],
8860
9254
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8886
9280
 
8887
9281
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8888
9282
# ----------------------------------
8889
 
# implement the --enable-fast-install flag, and support the `fast-install'
8890
 
# and `disable-fast-install' LT_INIT options.
8891
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9283
# implement the --enable-fast-install flag, and support the 'fast-install'
 
9284
# and 'disable-fast-install' LT_INIT options.
 
9285
# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8892
9286
m4_define([_LT_ENABLE_FAST_INSTALL],
8893
9287
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8894
9288
AC_ARG_ENABLE([fast-install],
8901
9295
    *)
8902
9296
      enable_fast_install=no
8903
9297
      # Look at the argument we got.  We use all the common list separators.
8904
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9298
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8905
9299
      for pkg in $enableval; do
8906
 
        IFS="$lt_save_ifs"
 
9300
        IFS=$lt_save_ifs
8907
9301
        if test "X$pkg" = "X$p"; then
8908
9302
          enable_fast_install=yes
8909
9303
        fi
8910
9304
      done
8911
 
      IFS="$lt_save_ifs"
 
9305
      IFS=$lt_save_ifs
8912
9306
      ;;
8913
9307
    esac],
8914
9308
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8925
9319
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8926
9320
AC_DIAGNOSE([obsolete],
8927
9321
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8928
 
the `fast-install' option into LT_INIT's first parameter.])
 
9322
the 'fast-install' option into LT_INIT's first parameter.])
8929
9323
])
8930
9324
 
8931
9325
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8932
9326
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8933
9327
AC_DIAGNOSE([obsolete],
8934
9328
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8935
 
the `disable-fast-install' option into LT_INIT's first parameter.])
 
9329
the 'disable-fast-install' option into LT_INIT's first parameter.])
8936
9330
])
8937
9331
 
8938
9332
dnl aclocal-1.4 backwards compatibility:
8940
9334
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8941
9335
 
8942
9336
 
 
9337
# _LT_WITH_AIX_SONAME([DEFAULT])
 
9338
# ----------------------------------
 
9339
# implement the --with-aix-soname flag, and support the `aix-soname=aix'
 
9340
# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
 
9341
# is either `aix', `both' or `svr4'.  If omitted, it defaults to `aix'.
 
9342
m4_define([_LT_WITH_AIX_SONAME],
 
9343
[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
 
9344
shared_archive_member_spec=
 
9345
case $host,$enable_shared in
 
9346
power*-*-aix[[5-9]]*,yes)
 
9347
  AC_MSG_CHECKING([which variant of shared library versioning to provide])
 
9348
  AC_ARG_WITH([aix-soname],
 
9349
    [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
 
9350
      [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
 
9351
    [case $withval in
 
9352
    aix|svr4|both)
 
9353
      ;;
 
9354
    *)
 
9355
      AC_MSG_ERROR([Unknown argument to --with-aix-soname])
 
9356
      ;;
 
9357
    esac
 
9358
    lt_cv_with_aix_soname=$with_aix_soname],
 
9359
    [AC_CACHE_VAL([lt_cv_with_aix_soname],
 
9360
      [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
 
9361
    with_aix_soname=$lt_cv_with_aix_soname])
 
9362
  AC_MSG_RESULT([$with_aix_soname])
 
9363
  if test aix != "$with_aix_soname"; then
 
9364
    # For the AIX way of multilib, we name the shared archive member
 
9365
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
 
9366
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
 
9367
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
 
9368
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
 
9369
    if test 64 = "${OBJECT_MODE-32}"; then
 
9370
      shared_archive_member_spec=shr_64
 
9371
    else
 
9372
      shared_archive_member_spec=shr
 
9373
    fi
 
9374
  fi
 
9375
  ;;
 
9376
*)
 
9377
  with_aix_soname=aix
 
9378
  ;;
 
9379
esac
 
9380
 
 
9381
_LT_DECL([], [shared_archive_member_spec], [0],
 
9382
    [Shared archive member basename, for filename based shared library versioning on AIX])dnl
 
9383
])# _LT_WITH_AIX_SONAME
 
9384
 
 
9385
LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
 
9386
LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
 
9387
LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
 
9388
 
 
9389
 
8943
9390
# _LT_WITH_PIC([MODE])
8944
9391
# --------------------
8945
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
9392
# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8946
9393
# LT_INIT options.
8947
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
9394
# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
8948
9395
m4_define([_LT_WITH_PIC],
8949
9396
[AC_ARG_WITH([pic],
8950
9397
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8955
9402
    *)
8956
9403
      pic_mode=default
8957
9404
      # Look at the argument we got.  We use all the common list separators.
8958
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9405
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8959
9406
      for lt_pkg in $withval; do
8960
 
        IFS="$lt_save_ifs"
 
9407
        IFS=$lt_save_ifs
8961
9408
        if test "X$lt_pkg" = "X$lt_p"; then
8962
9409
          pic_mode=yes
8963
9410
        fi
8964
9411
      done
8965
 
      IFS="$lt_save_ifs"
 
9412
      IFS=$lt_save_ifs
8966
9413
      ;;
8967
9414
    esac],
8968
 
    [pic_mode=default])
8969
 
 
8970
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
9415
    [pic_mode=m4_default([$1], [default])])
8971
9416
 
8972
9417
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8973
9418
])# _LT_WITH_PIC
8980
9425
[_LT_SET_OPTION([LT_INIT], [pic-only])
8981
9426
AC_DIAGNOSE([obsolete],
8982
9427
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8983
 
put the `pic-only' option into LT_INIT's first parameter.])
 
9428
put the 'pic-only' option into LT_INIT's first parameter.])
8984
9429
])
8985
9430
 
8986
9431
dnl aclocal-1.4 backwards compatibility:
9003
9448
 
9004
9449
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
9005
9450
#
9006
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9451
# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
 
9452
# Foundation, Inc.
9007
9453
# Written by Gary V. Vaughan, 2004
9008
9454
#
9009
9455
# This file is free software; the Free Software Foundation gives
9036
9482
# ------------
9037
9483
# Manipulate m4 lists.
9038
9484
# These macros are necessary as long as will still need to support
9039
 
# Autoconf-2.59 which quotes differently.
 
9485
# Autoconf-2.59, which quotes differently.
9040
9486
m4_define([lt_car], [[$1]])
9041
9487
m4_define([lt_cdr],
9042
9488
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9047
9493
 
9048
9494
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9049
9495
# ------------------------------------------
9050
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
9496
# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
9051
9497
# Note that neither SEPARATOR nor STRING are expanded; they are appended
9052
9498
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9053
9499
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9127
9573
 
9128
9574
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
9129
9575
#
9130
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
9576
#   Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
9131
9577
#   Written by Scott James Remnant, 2004
9132
9578
#
9133
9579
# This file is free software; the Free Software Foundation gives
9136
9582
 
9137
9583
# @configure_input@
9138
9584
 
9139
 
# serial 3337 ltversion.m4
 
9585
# serial 4179 ltversion.m4
9140
9586
# This file is part of GNU Libtool
9141
9587
 
9142
 
m4_define([LT_PACKAGE_VERSION], [2.4.2])
9143
 
m4_define([LT_PACKAGE_REVISION], [1.3337])
 
9588
m4_define([LT_PACKAGE_VERSION], [2.4.6])
 
9589
m4_define([LT_PACKAGE_REVISION], [2.4.6])
9144
9590
 
9145
9591
AC_DEFUN([LTVERSION_VERSION],
9146
 
[macro_version='2.4.2'
9147
 
macro_revision='1.3337'
 
9592
[macro_version='2.4.6'
 
9593
macro_revision='2.4.6'
9148
9594
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9149
9595
_LT_DECL(, macro_revision, 0)
9150
9596
])
9151
9597
 
9152
9598
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9153
9599
#
9154
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
 
9600
#   Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
 
9601
#   Foundation, Inc.
9155
9602
#   Written by Scott James Remnant, 2004.
9156
9603
#
9157
9604
# This file is free software; the Free Software Foundation gives
9162
9609
 
9163
9610
# These exist entirely to fool aclocal when bootstrapping libtool.
9164
9611
#
9165
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
9612
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
9166
9613
# which have later been changed to m4_define as they aren't part of the
9167
9614
# exported API, or moved to Autoconf or Automake where they belong.
9168
9615
#
9176
9623
# included after everything else.  This provides aclocal with the
9177
9624
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9178
9625
# because those macros already exist, or will be overwritten later.
9179
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
9626
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9180
9627
#
9181
9628
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9182
9629
# Yes, that means every name once taken will need to remain here until
9255
9702
dnl gives unlimited permission to copy and/or distribute it,
9256
9703
dnl with or without modifications, as long as this notice is preserved.
9257
9704
dnl
9258
 
dnl This file can can be used in projects which are not available under
 
9705
dnl This file can be used in projects which are not available under
9259
9706
dnl the GNU General Public License or the GNU Library General Public
9260
9707
dnl License but which still want to provide support for the GNU gettext
9261
9708
dnl functionality.
9262
9709
dnl Please note that the actual code of the GNU gettext library is covered
9263
9710
dnl by the GNU Library General Public License, and the rest of the GNU
9264
 
dnl gettext package package is covered by the GNU General Public License.
 
9711
dnl gettext package is covered by the GNU General Public License.
9265
9712
dnl They are *not* in the public domain.
9266
9713
 
9267
9714
dnl Authors:
9281
9728
  AC_SUBST([USE_NLS])
9282
9729
])
9283
9730
 
9284
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9285
 
# serial 1 (pkg-config-0.24)
9286
 
9287
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9288
 
#
9289
 
# This program is free software; you can redistribute it and/or modify
9290
 
# it under the terms of the GNU General Public License as published by
9291
 
# the Free Software Foundation; either version 2 of the License, or
9292
 
# (at your option) any later version.
9293
 
#
9294
 
# This program is distributed in the hope that it will be useful, but
9295
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9296
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9297
 
# General Public License for more details.
9298
 
#
9299
 
# You should have received a copy of the GNU General Public License
9300
 
# along with this program; if not, write to the Free Software
9301
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9302
 
#
9303
 
# As a special exception to the GNU General Public License, if you
9304
 
# distribute this file as part of a program that contains a
9305
 
# configuration script generated by Autoconf, you may include it under
9306
 
# the same distribution terms that you use for the rest of that program.
9307
 
 
9308
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9309
 
# ----------------------------------
 
9731
dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
 
9732
dnl serial 11 (pkg-config-0.29.1)
 
9733
dnl
 
9734
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
9735
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
 
9736
dnl
 
9737
dnl This program is free software; you can redistribute it and/or modify
 
9738
dnl it under the terms of the GNU General Public License as published by
 
9739
dnl the Free Software Foundation; either version 2 of the License, or
 
9740
dnl (at your option) any later version.
 
9741
dnl
 
9742
dnl This program is distributed in the hope that it will be useful, but
 
9743
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
 
9744
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
9745
dnl General Public License for more details.
 
9746
dnl
 
9747
dnl You should have received a copy of the GNU General Public License
 
9748
dnl along with this program; if not, write to the Free Software
 
9749
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
9750
dnl 02111-1307, USA.
 
9751
dnl
 
9752
dnl As a special exception to the GNU General Public License, if you
 
9753
dnl distribute this file as part of a program that contains a
 
9754
dnl configuration script generated by Autoconf, you may include it under
 
9755
dnl the same distribution terms that you use for the rest of that
 
9756
dnl program.
 
9757
 
 
9758
dnl PKG_PREREQ(MIN-VERSION)
 
9759
dnl -----------------------
 
9760
dnl Since: 0.29
 
9761
dnl
 
9762
dnl Verify that the version of the pkg-config macros are at least
 
9763
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
 
9764
dnl installed version of pkg-config, this checks the developer's version
 
9765
dnl of pkg.m4 when generating configure.
 
9766
dnl
 
9767
dnl To ensure that this macro is defined, also add:
 
9768
dnl m4_ifndef([PKG_PREREQ],
 
9769
dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
 
9770
dnl
 
9771
dnl See the "Since" comment for each macro you use to see what version
 
9772
dnl of the macros you require.
 
9773
m4_defun([PKG_PREREQ],
 
9774
[m4_define([PKG_MACROS_VERSION], [0.29.1])
 
9775
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
 
9776
    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
 
9777
])dnl PKG_PREREQ
 
9778
 
 
9779
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
9780
dnl ----------------------------------
 
9781
dnl Since: 0.16
 
9782
dnl
 
9783
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
 
9784
dnl first found in the path. Checks that the version of pkg-config found
 
9785
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
 
9786
dnl used since that's the first version where most current features of
 
9787
dnl pkg-config existed.
9310
9788
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9311
9789
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9312
9790
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
9328
9806
                PKG_CONFIG=""
9329
9807
        fi
9330
9808
fi[]dnl
9331
 
])# PKG_PROG_PKG_CONFIG
 
9809
])dnl PKG_PROG_PKG_CONFIG
9332
9810
 
9333
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9334
 
#
9335
 
# Check to see whether a particular set of modules exists.  Similar
9336
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9337
 
#
9338
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9339
 
# only at the first occurence in configure.ac, so if the first place
9340
 
# it's called might be skipped (such as if it is within an "if", you
9341
 
# have to call PKG_CHECK_EXISTS manually
9342
 
# --------------------------------------------------------------
 
9811
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9812
dnl -------------------------------------------------------------------
 
9813
dnl Since: 0.18
 
9814
dnl
 
9815
dnl Check to see whether a particular set of modules exists. Similar to
 
9816
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 
9817
dnl
 
9818
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9819
dnl only at the first occurence in configure.ac, so if the first place
 
9820
dnl it's called might be skipped (such as if it is within an "if", you
 
9821
dnl have to call PKG_CHECK_EXISTS manually
9343
9822
AC_DEFUN([PKG_CHECK_EXISTS],
9344
9823
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9345
9824
if test -n "$PKG_CONFIG" && \
9349
9828
  $3])dnl
9350
9829
fi])
9351
9830
 
9352
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9353
 
# ---------------------------------------------
 
9831
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
9832
dnl ---------------------------------------------
 
9833
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
 
9834
dnl pkg_failed based on the result.
9354
9835
m4_define([_PKG_CONFIG],
9355
9836
[if test -n "$$1"; then
9356
9837
    pkg_cv_[]$1="$$1"
9362
9843
 else
9363
9844
    pkg_failed=untried
9364
9845
fi[]dnl
9365
 
])# _PKG_CONFIG
 
9846
])dnl _PKG_CONFIG
9366
9847
 
9367
 
# _PKG_SHORT_ERRORS_SUPPORTED
9368
 
# -----------------------------
 
9848
dnl _PKG_SHORT_ERRORS_SUPPORTED
 
9849
dnl ---------------------------
 
9850
dnl Internal check to see if pkg-config supports short errors.
9369
9851
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9370
9852
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9371
9853
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9373
9855
else
9374
9856
        _pkg_short_errors_supported=no
9375
9857
fi[]dnl
9376
 
])# _PKG_SHORT_ERRORS_SUPPORTED
9377
 
 
9378
 
 
9379
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9380
 
# [ACTION-IF-NOT-FOUND])
9381
 
#
9382
 
#
9383
 
# Note that if there is a possibility the first call to
9384
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9385
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9386
 
#
9387
 
#
9388
 
# --------------------------------------------------------------
 
9858
])dnl _PKG_SHORT_ERRORS_SUPPORTED
 
9859
 
 
9860
 
 
9861
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
9862
dnl   [ACTION-IF-NOT-FOUND])
 
9863
dnl --------------------------------------------------------------
 
9864
dnl Since: 0.4.0
 
9865
dnl
 
9866
dnl Note that if there is a possibility the first call to
 
9867
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
 
9868
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9389
9869
AC_DEFUN([PKG_CHECK_MODULES],
9390
9870
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9391
9871
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9439
9919
        AC_MSG_RESULT([yes])
9440
9920
        $3
9441
9921
fi[]dnl
9442
 
])# PKG_CHECK_MODULES
9443
 
 
9444
 
 
9445
 
# PKG_INSTALLDIR(DIRECTORY)
9446
 
# -------------------------
9447
 
# Substitutes the variable pkgconfigdir as the location where a module
9448
 
# should install pkg-config .pc files. By default the directory is
9449
 
# $libdir/pkgconfig, but the default can be changed by passing
9450
 
# DIRECTORY. The user can override through the --with-pkgconfigdir
9451
 
# parameter.
 
9922
])dnl PKG_CHECK_MODULES
 
9923
 
 
9924
 
 
9925
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
9926
dnl   [ACTION-IF-NOT-FOUND])
 
9927
dnl ---------------------------------------------------------------------
 
9928
dnl Since: 0.29
 
9929
dnl
 
9930
dnl Checks for existence of MODULES and gathers its build flags with
 
9931
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
 
9932
dnl and VARIABLE-PREFIX_LIBS from --libs.
 
9933
dnl
 
9934
dnl Note that if there is a possibility the first call to
 
9935
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
 
9936
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
 
9937
dnl configure.ac.
 
9938
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
 
9939
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9940
_save_PKG_CONFIG=$PKG_CONFIG
 
9941
PKG_CONFIG="$PKG_CONFIG --static"
 
9942
PKG_CHECK_MODULES($@)
 
9943
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
 
9944
])dnl PKG_CHECK_MODULES_STATIC
 
9945
 
 
9946
 
 
9947
dnl PKG_INSTALLDIR([DIRECTORY])
 
9948
dnl -------------------------
 
9949
dnl Since: 0.27
 
9950
dnl
 
9951
dnl Substitutes the variable pkgconfigdir as the location where a module
 
9952
dnl should install pkg-config .pc files. By default the directory is
 
9953
dnl $libdir/pkgconfig, but the default can be changed by passing
 
9954
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
 
9955
dnl parameter.
9452
9956
AC_DEFUN([PKG_INSTALLDIR],
9453
9957
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
9454
9958
m4_pushdef([pkg_description],
9459
9963
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
9460
9964
m4_popdef([pkg_default])
9461
9965
m4_popdef([pkg_description])
9462
 
]) dnl PKG_INSTALLDIR
9463
 
 
9464
 
 
9465
 
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
9466
 
# -------------------------
9467
 
# Substitutes the variable noarch_pkgconfigdir as the location where a
9468
 
# module should install arch-independent pkg-config .pc files. By
9469
 
# default the directory is $datadir/pkgconfig, but the default can be
9470
 
# changed by passing DIRECTORY. The user can override through the
9471
 
# --with-noarch-pkgconfigdir parameter.
 
9966
])dnl PKG_INSTALLDIR
 
9967
 
 
9968
 
 
9969
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
 
9970
dnl --------------------------------
 
9971
dnl Since: 0.27
 
9972
dnl
 
9973
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
 
9974
dnl module should install arch-independent pkg-config .pc files. By
 
9975
dnl default the directory is $datadir/pkgconfig, but the default can be
 
9976
dnl changed by passing DIRECTORY. The user can override through the
 
9977
dnl --with-noarch-pkgconfigdir parameter.
9472
9978
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
9473
9979
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
9474
9980
m4_pushdef([pkg_description],
9479
9985
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
9480
9986
m4_popdef([pkg_default])
9481
9987
m4_popdef([pkg_description])
9482
 
]) dnl PKG_NOARCH_INSTALLDIR
9483
 
 
9484
 
 
9485
 
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9486
 
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9487
 
# -------------------------------------------
9488
 
# Retrieves the value of the pkg-config variable for the given module.
 
9988
])dnl PKG_NOARCH_INSTALLDIR
 
9989
 
 
9990
 
 
9991
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
9992
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9993
dnl -------------------------------------------
 
9994
dnl Since: 0.28
 
9995
dnl
 
9996
dnl Retrieves the value of the pkg-config variable for the given module.
9489
9997
AC_DEFUN([PKG_CHECK_VAR],
9490
9998
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9491
9999
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
9494
10002
AS_VAR_COPY([$1], [pkg_cv_][$1])
9495
10003
 
9496
10004
AS_VAR_IF([$1], [""], [$5], [$4])dnl
9497
 
])# PKG_CHECK_VAR
 
10005
])dnl PKG_CHECK_VAR
9498
10006
 
9499
10007
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
9500
10008
#