~ubuntu-branches/ubuntu/saucy/totem-pl-parser/saucy-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-29 22:09:57 UTC
  • mfrom: (1.4.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100329220957-lb93wobm4v0f5f7h
Tags: 2.30.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

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