~ubuntu-branches/debian/experimental/xserver-xorg-video-voodoo/experimental

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois, Christopher James Halse Rogers, Cyril Brulebois
  • Date: 2010-10-16 22:09:35 UTC
  • mfrom: (0.2.13 upstream) (0.1.21 maverick)
  • Revision ID: james.westby@ubuntu.com-20101016220935-zb3ndrohpv5u12vs
Tags: 1:1.2.4-1
[ Christopher James Halse Rogers ]
* New upstream release
  - Fix build against Xserver 1.9
* Bump Standards-Version to 3.9.1 (no changes needed).

[ Cyril Brulebois ]
* Build against Xserver 1.9.1 rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
22
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
 
 
24
 
# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
25
 
 
26
 
 
27
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
28
 
# -----------------------------------------------------------
29
 
# If this macro is not defined by Autoconf, define it here.
30
 
m4_ifdef([AC_PROVIDE_IFELSE],
31
 
         [],
32
 
         [m4_define([AC_PROVIDE_IFELSE],
33
 
                 [m4_ifdef([AC_PROVIDE_$1],
34
 
                           [$2], [$3])])])
35
 
 
36
 
 
37
 
# AC_PROG_LIBTOOL
38
 
# ---------------
39
 
AC_DEFUN([AC_PROG_LIBTOOL],
40
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
41
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
42
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
43
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
44
 
    [AC_LIBTOOL_CXX],
45
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
46
 
  ])])
47
 
dnl And a similar setup for Fortran 77 support
48
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
49
 
    [AC_LIBTOOL_F77],
50
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
51
 
])])
52
 
 
53
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
54
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
55
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
56
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
57
 
    [AC_LIBTOOL_GCJ],
58
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
59
 
      [AC_LIBTOOL_GCJ],
60
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
61
 
        [AC_LIBTOOL_GCJ],
62
 
      [ifdef([AC_PROG_GCJ],
63
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
64
 
       ifdef([A][M_PROG_GCJ],
65
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
66
 
       ifdef([LT_AC_PROG_GCJ],
67
 
             [define([LT_AC_PROG_GCJ],
68
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
69
 
])])# AC_PROG_LIBTOOL
70
 
 
71
 
 
72
 
# _AC_PROG_LIBTOOL
73
 
# ----------------
74
 
AC_DEFUN([_AC_PROG_LIBTOOL],
75
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
76
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
77
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
78
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
23
#
 
24
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
25
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
26
#   Written by Gordon Matzigkeit, 1996
 
27
#
 
28
# This file is free software; the Free Software Foundation gives
 
29
# unlimited permission to copy and/or distribute it, with or without
 
30
# modifications, as long as this notice is preserved.
 
31
 
 
32
m4_define([_LT_COPYING], [dnl
 
33
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
34
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
35
#   Written by Gordon Matzigkeit, 1996
 
36
#
 
37
#   This file is part of GNU Libtool.
 
38
#
 
39
# GNU Libtool is free software; you can redistribute it and/or
 
40
# modify it under the terms of the GNU General Public License as
 
41
# published by the Free Software Foundation; either version 2 of
 
42
# the License, or (at your option) any later version.
 
43
#
 
44
# As a special exception to the GNU General Public License,
 
45
# if you distribute this file as part of a program or library that
 
46
# is built using GNU Libtool, you may include this file under the
 
47
# same distribution terms that you use for the rest of that program.
 
48
#
 
49
# GNU Libtool is distributed in the hope that it will be useful,
 
50
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
51
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
52
# GNU General Public License for more details.
 
53
#
 
54
# You should have received a copy of the GNU General Public License
 
55
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
56
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
57
# obtained by writing to the Free Software Foundation, Inc.,
 
58
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
59
])
 
60
 
 
61
# serial 56 LT_INIT
 
62
 
 
63
 
 
64
# LT_PREREQ(VERSION)
 
65
# ------------------
 
66
# Complain and exit if this libtool version is less that VERSION.
 
67
m4_defun([LT_PREREQ],
 
68
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
69
       [m4_default([$3],
 
70
                   [m4_fatal([Libtool version $1 or higher is required],
 
71
                             63)])],
 
72
       [$2])])
 
73
 
 
74
 
 
75
# _LT_CHECK_BUILDDIR
 
76
# ------------------
 
77
# Complain if the absolute build directory name contains unusual characters
 
78
m4_defun([_LT_CHECK_BUILDDIR],
 
79
[case `pwd` in
 
80
  *\ * | *\     *)
 
81
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
82
esac
 
83
])
 
84
 
 
85
 
 
86
# LT_INIT([OPTIONS])
 
87
# ------------------
 
88
AC_DEFUN([LT_INIT],
 
89
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
90
AC_BEFORE([$0], [LT_LANG])dnl
 
91
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
92
AC_BEFORE([$0], [LTDL_INIT])dnl
 
93
m4_require([_LT_CHECK_BUILDDIR])dnl
 
94
 
 
95
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
96
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
97
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
98
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
99
dnl unless we require an AC_DEFUNed macro:
 
100
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
101
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
102
AC_REQUIRE([LTVERSION_VERSION])dnl
 
103
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
104
m4_require([_LT_PROG_LTMAIN])dnl
 
105
 
 
106
dnl Parse OPTIONS
 
107
_LT_SET_OPTIONS([$0], [$1])
79
108
 
80
109
# This can be used to rebuild libtool when needed
81
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
110
LIBTOOL_DEPS="$ltmain"
82
111
 
83
112
# Always use our own libtool.
84
113
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
85
114
AC_SUBST(LIBTOOL)dnl
86
115
 
87
 
# Prevent multiple expansion
88
 
define([AC_PROG_LIBTOOL], [])
89
 
])# _AC_PROG_LIBTOOL
90
 
 
91
 
 
92
 
# AC_LIBTOOL_SETUP
93
 
# ----------------
94
 
AC_DEFUN([AC_LIBTOOL_SETUP],
95
 
[AC_PREREQ(2.50)dnl
96
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
97
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
98
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
99
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
116
_LT_SETUP
 
117
 
 
118
# Only expand once:
 
119
m4_define([LT_INIT])
 
120
])# LT_INIT
 
121
 
 
122
# Old names:
 
123
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
124
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
125
dnl aclocal-1.4 backwards compatibility:
 
126
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
127
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
128
 
 
129
 
 
130
# _LT_CC_BASENAME(CC)
 
131
# -------------------
 
132
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
133
m4_defun([_LT_CC_BASENAME],
 
134
[for cc_temp in $1""; do
 
135
  case $cc_temp in
 
136
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
137
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
138
    \-*) ;;
 
139
    *) break;;
 
140
  esac
 
141
done
 
142
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
143
])
 
144
 
 
145
 
 
146
# _LT_FILEUTILS_DEFAULTS
 
147
# ----------------------
 
148
# It is okay to use these file commands and assume they have been set
 
149
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
150
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
151
[: ${CP="cp -f"}
 
152
: ${MV="mv -f"}
 
153
: ${RM="rm -f"}
 
154
])# _LT_FILEUTILS_DEFAULTS
 
155
 
 
156
 
 
157
# _LT_SETUP
 
158
# ---------
 
159
m4_defun([_LT_SETUP],
 
160
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
100
161
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
162
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
163
_LT_DECL([], [host], [0])dnl
 
164
_LT_DECL([], [host_os], [0])dnl
 
165
dnl
 
166
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
167
_LT_DECL([], [build], [0])dnl
 
168
_LT_DECL([], [build_os], [0])dnl
 
169
dnl
101
170
AC_REQUIRE([AC_PROG_CC])dnl
102
 
AC_REQUIRE([AC_PROG_LD])dnl
103
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
104
 
AC_REQUIRE([AC_PROG_NM])dnl
105
 
 
 
171
AC_REQUIRE([LT_PATH_LD])dnl
 
172
AC_REQUIRE([LT_PATH_NM])dnl
 
173
dnl
106
174
AC_REQUIRE([AC_PROG_LN_S])dnl
107
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
108
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
109
 
AC_REQUIRE([AC_OBJEXT])dnl
110
 
AC_REQUIRE([AC_EXEEXT])dnl
111
 
dnl
112
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
113
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
114
 
AC_LIBTOOL_OBJDIR
115
 
 
116
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
117
 
_LT_AC_PROG_ECHO_BACKSLASH
 
175
test -z "$LN_S" && LN_S="ln -s"
 
176
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
177
dnl
 
178
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
179
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
180
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
181
dnl
 
182
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
183
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
184
m4_require([_LT_CMD_RELOAD])dnl
 
185
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
186
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
187
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
188
 
 
189
_LT_CONFIG_LIBTOOL_INIT([
 
190
# See if we are running on zsh, and set the options which allow our
 
191
# commands through without removal of \ escapes INIT.
 
192
if test -n "\${ZSH_VERSION+set}" ; then
 
193
   setopt NO_GLOB_SUBST
 
194
fi
 
195
])
 
196
if test -n "${ZSH_VERSION+set}" ; then
 
197
   setopt NO_GLOB_SUBST
 
198
fi
 
199
 
 
200
_LT_CHECK_OBJDIR
 
201
 
 
202
m4_require([_LT_TAG_COMPILER])dnl
 
203
_LT_PROG_ECHO_BACKSLASH
118
204
 
119
205
case $host_os in
120
206
aix3*)
130
216
 
131
217
# Sed substitution that helps us do robust quoting.  It backslashifies
132
218
# metacharacters that are still active within double-quoted strings.
133
 
Xsed='sed -e 1s/^X//'
134
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
219
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
135
220
 
136
221
# Same as above, but do not quote variable references.
137
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
222
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
138
223
 
139
224
# Sed substitution to delay expansion of an escaped shell variable in a
140
225
# double_quote_subst'ed string.
141
226
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
142
227
 
 
228
# Sed substitution to delay expansion of an escaped single quote.
 
229
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
230
 
143
231
# Sed substitution to avoid accidental globbing in evaled expressions
144
232
no_glob_subst='s/\*/\\\*/g'
145
233
 
146
 
# Constants:
147
 
rm="rm -f"
148
 
 
149
234
# Global variables:
150
 
default_ofile=libtool
 
235
ofile=libtool
151
236
can_build_shared=yes
152
237
 
153
238
# All known linkers require a `.a' archive for static linking (except MSVC,
154
239
# which needs '.lib').
155
240
libext=a
156
 
ltmain="$ac_aux_dir/ltmain.sh"
157
 
ofile="$default_ofile"
 
241
 
158
242
with_gnu_ld="$lt_cv_prog_gnu_ld"
159
243
 
160
 
AC_CHECK_TOOL(AR, ar, false)
161
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
162
 
AC_CHECK_TOOL(STRIP, strip, :)
163
 
 
164
244
old_CC="$CC"
165
245
old_CFLAGS="$CFLAGS"
166
246
 
167
247
# Set sane defaults for various variables
168
 
test -z "$AR" && AR=ar
169
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
170
 
test -z "$AS" && AS=as
171
248
test -z "$CC" && CC=cc
172
249
test -z "$LTCC" && LTCC=$CC
173
250
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
174
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
175
251
test -z "$LD" && LD=ld
176
 
test -z "$LN_S" && LN_S="ln -s"
177
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
178
 
test -z "$NM" && NM=nm
179
 
test -z "$SED" && SED=sed
180
 
test -z "$OBJDUMP" && OBJDUMP=objdump
181
 
test -z "$RANLIB" && RANLIB=:
182
 
test -z "$STRIP" && STRIP=:
183
252
test -z "$ac_objext" && ac_objext=o
184
253
 
185
 
# Determine commands to create old-style static archives.
186
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
187
 
old_postinstall_cmds='chmod 644 $oldlib'
188
 
old_postuninstall_cmds=
189
 
 
190
 
if test -n "$RANLIB"; then
191
 
  case $host_os in
192
 
  openbsd*)
193
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
194
 
    ;;
195
 
  *)
196
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
197
 
    ;;
198
 
  esac
199
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
200
 
fi
201
 
 
202
254
_LT_CC_BASENAME([$compiler])
203
255
 
204
256
# Only perform the check for file, if the check method requires it
 
257
test -z "$MAGIC_CMD" && MAGIC_CMD=file
205
258
case $deplibs_check_method in
206
259
file_magic*)
207
260
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
208
 
    AC_PATH_MAGIC
 
261
    _LT_PATH_MAGIC
209
262
  fi
210
263
  ;;
211
264
esac
212
265
 
213
 
_LT_REQUIRED_DARWIN_CHECKS
214
 
 
215
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
216
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
217
 
enable_win32_dll=yes, enable_win32_dll=no)
218
 
 
219
 
AC_ARG_ENABLE([libtool-lock],
220
 
    [AC_HELP_STRING([--disable-libtool-lock],
221
 
        [avoid locking (might break parallel builds)])])
222
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
223
 
 
224
 
AC_ARG_WITH([pic],
225
 
    [AC_HELP_STRING([--with-pic],
226
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
227
 
    [pic_mode="$withval"],
228
 
    [pic_mode=default])
229
 
test -z "$pic_mode" && pic_mode=default
230
 
 
231
266
# Use C for the default configuration in the libtool script
232
 
tagname=
233
 
AC_LIBTOOL_LANG_C_CONFIG
234
 
_LT_AC_TAGCONFIG
235
 
])# AC_LIBTOOL_SETUP
236
 
 
237
 
 
238
 
# _LT_AC_SYS_COMPILER
 
267
LT_SUPPORTED_TAG([CC])
 
268
_LT_LANG_C_CONFIG
 
269
_LT_LANG_DEFAULT_CONFIG
 
270
_LT_CONFIG_COMMANDS
 
271
])# _LT_SETUP
 
272
 
 
273
 
 
274
# _LT_PROG_LTMAIN
 
275
# ---------------
 
276
# Note that this code is called both from `configure', and `config.status'
 
277
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
278
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
279
# so we pass a copy along to make sure it has a sensible value anyway.
 
280
m4_defun([_LT_PROG_LTMAIN],
 
281
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
282
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
283
ltmain="$ac_aux_dir/ltmain.sh"
 
284
])# _LT_PROG_LTMAIN
 
285
 
 
286
 
 
287
 
 
288
# So that we can recreate a full libtool script including additional
 
289
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
290
# in macros and then make a single call at the end using the `libtool'
 
291
# label.
 
292
 
 
293
 
 
294
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
295
# ----------------------------------------
 
296
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
297
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
298
[m4_ifval([$1],
 
299
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
300
                     [$1
 
301
])])])
 
302
 
 
303
# Initialize.
 
304
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
305
 
 
306
 
 
307
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
308
# ------------------------------
 
309
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
310
m4_define([_LT_CONFIG_LIBTOOL],
 
311
[m4_ifval([$1],
 
312
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
313
                     [$1
 
314
])])])
 
315
 
 
316
# Initialize.
 
317
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
318
 
 
319
 
 
320
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
321
# -----------------------------------------------------
 
322
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
323
[_LT_CONFIG_LIBTOOL([$1])
 
324
_LT_CONFIG_LIBTOOL_INIT([$2])
 
325
])
 
326
 
 
327
 
 
328
# _LT_FORMAT_COMMENT([COMMENT])
 
329
# -----------------------------
 
330
# Add leading comment marks to the start of each line, and a trailing
 
331
# full-stop to the whole comment if one is not present already.
 
332
m4_define([_LT_FORMAT_COMMENT],
 
333
[m4_ifval([$1], [
 
334
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
335
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
336
)])
 
337
 
 
338
 
 
339
 
 
340
 
 
341
 
 
342
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
343
# -------------------------------------------------------------------
 
344
# CONFIGNAME is the name given to the value in the libtool script.
 
345
# VARNAME is the (base) name used in the configure script.
 
346
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
347
# VARNAME.  Any other value will be used directly.
 
348
m4_define([_LT_DECL],
 
349
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
350
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
351
        [m4_ifval([$1], [$1], [$2])])
 
352
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
353
    m4_ifval([$4],
 
354
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
355
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
356
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
357
])
 
358
 
 
359
 
 
360
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
361
# --------------------------------------------------------
 
362
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
363
 
 
364
 
 
365
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
366
# ------------------------------------------------
 
367
m4_define([lt_decl_tag_varnames],
 
368
[_lt_decl_filter([tagged?], [yes], $@)])
 
369
 
 
370
 
 
371
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
372
# ---------------------------------------------------------
 
373
m4_define([_lt_decl_filter],
 
374
[m4_case([$#],
 
375
  [0], [m4_fatal([$0: too few arguments: $#])],
 
376
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
377
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
378
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
379
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
380
])
 
381
 
 
382
 
 
383
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
384
# --------------------------------------------------
 
385
m4_define([lt_decl_quote_varnames],
 
386
[_lt_decl_filter([value], [1], $@)])
 
387
 
 
388
 
 
389
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
390
# ---------------------------------------------------
 
391
m4_define([lt_decl_dquote_varnames],
 
392
[_lt_decl_filter([value], [2], $@)])
 
393
 
 
394
 
 
395
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
396
# ---------------------------------------------------
 
397
m4_define([lt_decl_varnames_tagged],
 
398
[m4_assert([$# <= 2])dnl
 
399
_$0(m4_quote(m4_default([$1], [[, ]])),
 
400
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
401
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
402
m4_define([_lt_decl_varnames_tagged],
 
403
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
404
 
 
405
 
 
406
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
407
# ------------------------------------------------
 
408
m4_define([lt_decl_all_varnames],
 
409
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
410
     m4_if([$2], [],
 
411
           m4_quote(lt_decl_varnames),
 
412
        m4_quote(m4_shift($@))))[]dnl
 
413
])
 
414
m4_define([_lt_decl_all_varnames],
 
415
[lt_join($@, lt_decl_varnames_tagged([$1],
 
416
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
417
])
 
418
 
 
419
 
 
420
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
421
# ------------------------------------
 
422
# Quote a variable value, and forward it to `config.status' so that its
 
423
# declaration there will have the same value as in `configure'.  VARNAME
 
424
# must have a single quote delimited value for this to work.
 
425
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
426
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
427
 
 
428
 
 
429
# _LT_CONFIG_STATUS_DECLARATIONS
 
430
# ------------------------------
 
431
# We delimit libtool config variables with single quotes, so when
 
432
# we write them to config.status, we have to be sure to quote all
 
433
# embedded single quotes properly.  In configure, this macro expands
 
434
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
435
#
 
436
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
437
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
438
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
439
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
440
 
 
441
 
 
442
# _LT_LIBTOOL_TAGS
 
443
# ----------------
 
444
# Output comment and list of tags supported by the script
 
445
m4_defun([_LT_LIBTOOL_TAGS],
 
446
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
447
available_tags="_LT_TAGS"dnl
 
448
])
 
449
 
 
450
 
 
451
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
452
# -----------------------------------
 
453
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
454
# expand to a commented shell variable setting:
 
455
#
 
456
#    # Some comment about what VAR is for.
 
457
#    visible_name=$lt_internal_name
 
458
m4_define([_LT_LIBTOOL_DECLARE],
 
459
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
460
                                           [description])))[]dnl
 
461
m4_pushdef([_libtool_name],
 
462
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
463
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
464
    [0], [_libtool_name=[$]$1],
 
465
    [1], [_libtool_name=$lt_[]$1],
 
466
    [2], [_libtool_name=$lt_[]$1],
 
467
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
468
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
469
])
 
470
 
 
471
 
 
472
# _LT_LIBTOOL_CONFIG_VARS
 
473
# -----------------------
 
474
# Produce commented declarations of non-tagged libtool config variables
 
475
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
476
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
477
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
478
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
479
[m4_foreach([_lt_var],
 
480
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
481
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
482
 
 
483
 
 
484
# _LT_LIBTOOL_TAG_VARS(TAG)
 
485
# -------------------------
 
486
m4_define([_LT_LIBTOOL_TAG_VARS],
 
487
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
488
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
489
 
 
490
 
 
491
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
492
# ------------------------------
 
493
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
494
 
 
495
 
 
496
# _LT_CONFIG_COMMANDS
239
497
# -------------------
240
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
498
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
499
# variables for single and double quote escaping we saved from calls
 
500
# to _LT_DECL, we can put quote escaped variables declarations
 
501
# into `config.status', and then the shell code to quote escape them in
 
502
# for loops in `config.status'.  Finally, any additional code accumulated
 
503
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
504
m4_defun([_LT_CONFIG_COMMANDS],
 
505
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
506
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
507
        dnl instead of duplicating it all over again into config.status,
 
508
        dnl then we will have config.status run $CONFIG_LT later, so it
 
509
        dnl needs to know what name is stored there:
 
510
        [AC_CONFIG_COMMANDS([libtool],
 
511
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
512
    dnl If the libtool generation code is destined for config.status,
 
513
    dnl expand the accumulated commands and init code now:
 
514
    [AC_CONFIG_COMMANDS([libtool],
 
515
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
516
])#_LT_CONFIG_COMMANDS
 
517
 
 
518
 
 
519
# Initialize.
 
520
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
521
[
 
522
 
 
523
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
524
# if CDPATH is set.
 
525
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
526
 
 
527
sed_quote_subst='$sed_quote_subst'
 
528
double_quote_subst='$double_quote_subst'
 
529
delay_variable_subst='$delay_variable_subst'
 
530
_LT_CONFIG_STATUS_DECLARATIONS
 
531
LTCC='$LTCC'
 
532
LTCFLAGS='$LTCFLAGS'
 
533
compiler='$compiler_DEFAULT'
 
534
 
 
535
# Quote evaled strings.
 
536
for var in lt_decl_all_varnames([[ \
 
537
]], lt_decl_quote_varnames); do
 
538
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
539
    *[[\\\\\\\`\\"\\\$]]*)
 
540
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
541
      ;;
 
542
    *)
 
543
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
544
      ;;
 
545
    esac
 
546
done
 
547
 
 
548
# Double-quote double-evaled strings.
 
549
for var in lt_decl_all_varnames([[ \
 
550
]], lt_decl_dquote_varnames); do
 
551
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
552
    *[[\\\\\\\`\\"\\\$]]*)
 
553
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
554
      ;;
 
555
    *)
 
556
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
557
      ;;
 
558
    esac
 
559
done
 
560
 
 
561
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
562
case \$lt_ECHO in
 
563
*'\\\[$]0 --fallback-echo"')dnl "
 
564
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
565
  ;;
 
566
esac
 
567
 
 
568
_LT_OUTPUT_LIBTOOL_INIT
 
569
])
 
570
 
 
571
 
 
572
# LT_OUTPUT
 
573
# ---------
 
574
# This macro allows early generation of the libtool script (before
 
575
# AC_OUTPUT is called), incase it is used in configure for compilation
 
576
# tests.
 
577
AC_DEFUN([LT_OUTPUT],
 
578
[: ${CONFIG_LT=./config.lt}
 
579
AC_MSG_NOTICE([creating $CONFIG_LT])
 
580
cat >"$CONFIG_LT" <<_LTEOF
 
581
#! $SHELL
 
582
# Generated by $as_me.
 
583
# Run this file to recreate a libtool stub with the current configuration.
 
584
 
 
585
lt_cl_silent=false
 
586
SHELL=\${CONFIG_SHELL-$SHELL}
 
587
_LTEOF
 
588
 
 
589
cat >>"$CONFIG_LT" <<\_LTEOF
 
590
AS_SHELL_SANITIZE
 
591
_AS_PREPARE
 
592
 
 
593
exec AS_MESSAGE_FD>&1
 
594
exec AS_MESSAGE_LOG_FD>>config.log
 
595
{
 
596
  echo
 
597
  AS_BOX([Running $as_me.])
 
598
} >&AS_MESSAGE_LOG_FD
 
599
 
 
600
lt_cl_help="\
 
601
\`$as_me' creates a local libtool stub from the current configuration,
 
602
for use in further configure time tests before the real libtool is
 
603
generated.
 
604
 
 
605
Usage: $[0] [[OPTIONS]]
 
606
 
 
607
  -h, --help      print this help, then exit
 
608
  -V, --version   print version number, then exit
 
609
  -q, --quiet     do not print progress messages
 
610
  -d, --debug     don't remove temporary files
 
611
 
 
612
Report bugs to <bug-libtool@gnu.org>."
 
613
 
 
614
lt_cl_version="\
 
615
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
616
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
617
configured by $[0], generated by m4_PACKAGE_STRING.
 
618
 
 
619
Copyright (C) 2008 Free Software Foundation, Inc.
 
620
This config.lt script is free software; the Free Software Foundation
 
621
gives unlimited permision to copy, distribute and modify it."
 
622
 
 
623
while test $[#] != 0
 
624
do
 
625
  case $[1] in
 
626
    --version | --v* | -V )
 
627
      echo "$lt_cl_version"; exit 0 ;;
 
628
    --help | --h* | -h )
 
629
      echo "$lt_cl_help"; exit 0 ;;
 
630
    --debug | --d* | -d )
 
631
      debug=: ;;
 
632
    --quiet | --q* | --silent | --s* | -q )
 
633
      lt_cl_silent=: ;;
 
634
 
 
635
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
636
Try \`$[0] --help' for more information.]) ;;
 
637
 
 
638
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
639
Try \`$[0] --help' for more information.]) ;;
 
640
  esac
 
641
  shift
 
642
done
 
643
 
 
644
if $lt_cl_silent; then
 
645
  exec AS_MESSAGE_FD>/dev/null
 
646
fi
 
647
_LTEOF
 
648
 
 
649
cat >>"$CONFIG_LT" <<_LTEOF
 
650
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
651
_LTEOF
 
652
 
 
653
cat >>"$CONFIG_LT" <<\_LTEOF
 
654
AC_MSG_NOTICE([creating $ofile])
 
655
_LT_OUTPUT_LIBTOOL_COMMANDS
 
656
AS_EXIT(0)
 
657
_LTEOF
 
658
chmod +x "$CONFIG_LT"
 
659
 
 
660
# configure is writing to config.log, but config.lt does its own redirection,
 
661
# appending to config.log, which fails on DOS, as config.log is still kept
 
662
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
663
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
664
if test "$no_create" != yes; then
 
665
  lt_cl_success=:
 
666
  test "$silent" = yes &&
 
667
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
668
  exec AS_MESSAGE_LOG_FD>/dev/null
 
669
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
670
  exec AS_MESSAGE_LOG_FD>>config.log
 
671
  $lt_cl_success || AS_EXIT(1)
 
672
fi
 
673
])# LT_OUTPUT
 
674
 
 
675
 
 
676
# _LT_CONFIG(TAG)
 
677
# ---------------
 
678
# If TAG is the built-in tag, create an initial libtool script with a
 
679
# default configuration from the untagged config vars.  Otherwise add code
 
680
# to config.status for appending the configuration named by TAG from the
 
681
# matching tagged config vars.
 
682
m4_defun([_LT_CONFIG],
 
683
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
684
_LT_CONFIG_SAVE_COMMANDS([
 
685
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
686
  m4_if(_LT_TAG, [C], [
 
687
    # See if we are running on zsh, and set the options which allow our
 
688
    # commands through without removal of \ escapes.
 
689
    if test -n "${ZSH_VERSION+set}" ; then
 
690
      setopt NO_GLOB_SUBST
 
691
    fi
 
692
 
 
693
    cfgfile="${ofile}T"
 
694
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
695
    $RM "$cfgfile"
 
696
 
 
697
    cat <<_LT_EOF >> "$cfgfile"
 
698
#! $SHELL
 
699
 
 
700
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
701
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
702
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
703
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
704
#
 
705
_LT_COPYING
 
706
_LT_LIBTOOL_TAGS
 
707
 
 
708
# ### BEGIN LIBTOOL CONFIG
 
709
_LT_LIBTOOL_CONFIG_VARS
 
710
_LT_LIBTOOL_TAG_VARS
 
711
# ### END LIBTOOL CONFIG
 
712
 
 
713
_LT_EOF
 
714
 
 
715
  case $host_os in
 
716
  aix3*)
 
717
    cat <<\_LT_EOF >> "$cfgfile"
 
718
# AIX sometimes has problems with the GCC collect2 program.  For some
 
719
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
720
# vanish in a puff of smoke.
 
721
if test "X${COLLECT_NAMES+set}" != Xset; then
 
722
  COLLECT_NAMES=
 
723
  export COLLECT_NAMES
 
724
fi
 
725
_LT_EOF
 
726
    ;;
 
727
  esac
 
728
 
 
729
  _LT_PROG_LTMAIN
 
730
 
 
731
  # We use sed instead of cat because bash on DJGPP gets confused if
 
732
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
733
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
734
  # is reportedly fixed, but why not run on old versions too?
 
735
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
736
    || (rm -f "$cfgfile"; exit 1)
 
737
 
 
738
  _LT_PROG_XSI_SHELLFNS
 
739
 
 
740
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
741
    || (rm -f "$cfgfile"; exit 1)
 
742
 
 
743
  mv -f "$cfgfile" "$ofile" ||
 
744
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
745
  chmod +x "$ofile"
 
746
],
 
747
[cat <<_LT_EOF >> "$ofile"
 
748
 
 
749
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
750
dnl in a comment (ie after a #).
 
751
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
752
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
753
# ### END LIBTOOL TAG CONFIG: $1
 
754
_LT_EOF
 
755
])dnl /m4_if
 
756
],
 
757
[m4_if([$1], [], [
 
758
    PACKAGE='$PACKAGE'
 
759
    VERSION='$VERSION'
 
760
    TIMESTAMP='$TIMESTAMP'
 
761
    RM='$RM'
 
762
    ofile='$ofile'], [])
 
763
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
764
])# _LT_CONFIG
 
765
 
 
766
 
 
767
# LT_SUPPORTED_TAG(TAG)
 
768
# ---------------------
 
769
# Trace this macro to discover what tags are supported by the libtool
 
770
# --tag option, using:
 
771
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
772
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
773
 
 
774
 
 
775
# C support is built-in for now
 
776
m4_define([_LT_LANG_C_enabled], [])
 
777
m4_define([_LT_TAGS], [])
 
778
 
 
779
 
 
780
# LT_LANG(LANG)
 
781
# -------------
 
782
# Enable libtool support for the given language if not already enabled.
 
783
AC_DEFUN([LT_LANG],
 
784
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
785
m4_case([$1],
 
786
  [C],                  [_LT_LANG(C)],
 
787
  [C++],                [_LT_LANG(CXX)],
 
788
  [Java],               [_LT_LANG(GCJ)],
 
789
  [Fortran 77],         [_LT_LANG(F77)],
 
790
  [Fortran],            [_LT_LANG(FC)],
 
791
  [Windows Resource],   [_LT_LANG(RC)],
 
792
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
793
    [_LT_LANG($1)],
 
794
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
795
])# LT_LANG
 
796
 
 
797
 
 
798
# _LT_LANG(LANGNAME)
 
799
# ------------------
 
800
m4_defun([_LT_LANG],
 
801
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
802
  [LT_SUPPORTED_TAG([$1])dnl
 
803
  m4_append([_LT_TAGS], [$1 ])dnl
 
804
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
805
  _LT_LANG_$1_CONFIG($1)])dnl
 
806
])# _LT_LANG
 
807
 
 
808
 
 
809
# _LT_LANG_DEFAULT_CONFIG
 
810
# -----------------------
 
811
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
812
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
813
  [LT_LANG(CXX)],
 
814
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
815
 
 
816
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
817
  [LT_LANG(F77)],
 
818
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
819
 
 
820
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
821
  [LT_LANG(FC)],
 
822
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
823
 
 
824
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
825
dnl pulling things in needlessly.
 
826
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
827
  [LT_LANG(GCJ)],
 
828
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
829
    [LT_LANG(GCJ)],
 
830
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
831
      [LT_LANG(GCJ)],
 
832
      [m4_ifdef([AC_PROG_GCJ],
 
833
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
834
       m4_ifdef([A][M_PROG_GCJ],
 
835
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
836
       m4_ifdef([LT_PROG_GCJ],
 
837
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
838
 
 
839
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
840
  [LT_LANG(RC)],
 
841
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
842
])# _LT_LANG_DEFAULT_CONFIG
 
843
 
 
844
# Obsolete macros:
 
845
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
846
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
847
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
848
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
849
dnl aclocal-1.4 backwards compatibility:
 
850
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
851
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
852
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
853
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
854
 
 
855
 
 
856
# _LT_TAG_COMPILER
 
857
# ----------------
 
858
m4_defun([_LT_TAG_COMPILER],
241
859
[AC_REQUIRE([AC_PROG_CC])dnl
242
860
 
 
861
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
862
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
863
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
864
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
865
 
243
866
# If no C compiler was specified, use CC.
244
867
LTCC=${LTCC-"$CC"}
245
868
 
248
871
 
249
872
# Allow CC to be a program name with arguments.
250
873
compiler=$CC
251
 
])# _LT_AC_SYS_COMPILER
252
 
 
253
 
 
254
 
# _LT_CC_BASENAME(CC)
255
 
# -------------------
256
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
257
 
AC_DEFUN([_LT_CC_BASENAME],
258
 
[for cc_temp in $1""; do
259
 
  case $cc_temp in
260
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
261
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
262
 
    \-*) ;;
263
 
    *) break;;
264
 
  esac
265
 
done
266
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
267
 
])
 
874
])# _LT_TAG_COMPILER
268
875
 
269
876
 
270
877
# _LT_COMPILER_BOILERPLATE
271
878
# ------------------------
272
879
# Check for compiler boilerplate output or warnings with
273
880
# the simple compiler test code.
274
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
275
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
881
m4_defun([_LT_COMPILER_BOILERPLATE],
 
882
[m4_require([_LT_DECL_SED])dnl
276
883
ac_outfile=conftest.$ac_objext
277
884
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
278
885
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
279
886
_lt_compiler_boilerplate=`cat conftest.err`
280
 
$rm conftest*
 
887
$RM conftest*
281
888
])# _LT_COMPILER_BOILERPLATE
282
889
 
283
890
 
285
892
# ----------------------
286
893
# Check for linker boilerplate output or warnings with
287
894
# the simple link test code.
288
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
289
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
895
m4_defun([_LT_LINKER_BOILERPLATE],
 
896
[m4_require([_LT_DECL_SED])dnl
290
897
ac_outfile=conftest.$ac_objext
291
898
echo "$lt_simple_link_test_code" >conftest.$ac_ext
292
899
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
293
900
_lt_linker_boilerplate=`cat conftest.err`
294
 
$rm -r conftest*
 
901
$RM -r conftest*
295
902
])# _LT_LINKER_BOILERPLATE
296
903
 
297
904
# _LT_REQUIRED_DARWIN_CHECKS
298
 
# --------------------------
299
 
# Check for some things on darwin
300
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
905
# -------------------------
 
906
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
301
907
  case $host_os in
302
908
    rhapsody* | darwin*)
303
909
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
910
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
911
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
912
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
913
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
914
    _LT_DECL([], [DSYMUTIL], [1],
 
915
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
916
    _LT_DECL([], [NMEDIT], [1],
 
917
      [Tool to change global to local symbols on Mac OS X])
 
918
    _LT_DECL([], [LIPO], [1],
 
919
      [Tool to manipulate fat objects and archives on Mac OS X])
 
920
    _LT_DECL([], [OTOOL], [1],
 
921
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
922
    _LT_DECL([], [OTOOL64], [1],
 
923
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
305
924
 
306
925
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
926
      [lt_cv_apple_cc_single_mod=no
308
927
      if test -z "${LT_MULTI_MODULE}"; then
309
 
   # By default we will add the -single_module flag. You can override
310
 
   # by either setting the environment variable LT_MULTI_MODULE
311
 
   # non-empty at configure time, or by adding -multi_module to the
312
 
   # link flags.
313
 
   echo "int foo(void){return 1;}" > conftest.c
314
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
 
     -dynamiclib ${wl}-single_module conftest.c
316
 
   if test -f libconftest.dylib; then
317
 
     lt_cv_apple_cc_single_mod=yes
318
 
     rm -rf libconftest.dylib*
319
 
   fi
320
 
   rm conftest.c
 
928
        # By default we will add the -single_module flag. You can override
 
929
        # by either setting the environment variable LT_MULTI_MODULE
 
930
        # non-empty at configure time, or by adding -multi_module to the
 
931
        # link flags.
 
932
        rm -rf libconftest.dylib*
 
933
        echo "int foo(void){return 1;}" > conftest.c
 
934
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
935
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
936
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
937
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
938
        _lt_result=$?
 
939
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
940
          lt_cv_apple_cc_single_mod=yes
 
941
        else
 
942
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
943
        fi
 
944
        rm -rf libconftest.dylib*
 
945
        rm -f conftest.*
321
946
      fi])
322
947
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
948
      [lt_cv_ld_exported_symbols_list],
326
951
      echo "_main" > conftest.sym
327
952
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
953
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
 
   [lt_cv_ld_exported_symbols_list=yes],
330
 
   [lt_cv_ld_exported_symbols_list=no])
331
 
   LDFLAGS="$save_LDFLAGS"
 
954
        [lt_cv_ld_exported_symbols_list=yes],
 
955
        [lt_cv_ld_exported_symbols_list=no])
 
956
        LDFLAGS="$save_LDFLAGS"
332
957
    ])
333
958
    case $host_os in
334
 
    rhapsody* | darwin1.[[0123]])
 
959
    rhapsody* | darwin1.[[012]])
335
960
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
336
961
    darwin1.*)
337
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
338
 
    darwin*)
 
962
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
963
    darwin*) # darwin 5.x on
339
964
      # if running on 10.5 or later, the deployment target defaults
340
965
      # to the OS version, if on x86, and 10.4, the deployment
341
966
      # target defaults to 10.4. Don't you love it?
342
967
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
345
 
   10.[[012]]*)
346
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
347
 
   10.*)
348
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
968
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
969
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
970
        10.[[012]]*)
 
971
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
972
        10.*)
 
973
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
349
974
      esac
350
975
    ;;
351
976
  esac
355
980
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
981
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
357
982
    else
358
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
983
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
359
984
    fi
360
985
    if test "$DSYMUTIL" != ":"; then
361
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
986
      _lt_dsymutil='~$DSYMUTIL $lib || :'
362
987
    else
363
988
      _lt_dsymutil=
364
989
    fi
366
991
  esac
367
992
])
368
993
 
369
 
# _LT_AC_SYS_LIBPATH_AIX
370
 
# ----------------------
 
994
 
 
995
# _LT_DARWIN_LINKER_FEATURES
 
996
# --------------------------
 
997
# Checks for linker and compiler features on darwin
 
998
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
999
[
 
1000
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1001
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1002
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1003
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1004
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1005
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1006
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1007
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1008
  case $cc_basename in
 
1009
     ifort*) _lt_dar_can_shared=yes ;;
 
1010
     *) _lt_dar_can_shared=$GCC ;;
 
1011
  esac
 
1012
  if test "$_lt_dar_can_shared" = "yes"; then
 
1013
    output_verbose_link_cmd=echo
 
1014
    _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}"
 
1015
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1016
    _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}"
 
1017
    _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}"
 
1018
    m4_if([$1], [CXX],
 
1019
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1020
      _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}"
 
1021
      _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}"
 
1022
    fi
 
1023
],[])
 
1024
  else
 
1025
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1026
  fi
 
1027
])
 
1028
 
 
1029
# _LT_SYS_MODULE_PATH_AIX
 
1030
# -----------------------
371
1031
# Links a minimal program and checks the executable
372
1032
# for the system default hardcoded library path. In most cases,
373
1033
# this is /usr/lib:/lib, but when the MPI compilers are used
374
1034
# the location of the communication and MPI libs are included too.
375
1035
# If we don't find anything, use the default library path according
376
1036
# to the aix ld manual.
377
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
378
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1037
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1038
[m4_require([_LT_DECL_SED])dnl
379
1039
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
380
1040
lt_aix_libpath_sed='
381
1041
    /Import File Strings/,/^$/ {
390
1050
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
391
1051
fi],[])
392
1052
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
393
 
])# _LT_AC_SYS_LIBPATH_AIX
394
 
 
395
 
 
396
 
# _LT_AC_SHELL_INIT(ARG)
397
 
# ----------------------
398
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1053
])# _LT_SYS_MODULE_PATH_AIX
 
1054
 
 
1055
 
 
1056
# _LT_SHELL_INIT(ARG)
 
1057
# -------------------
 
1058
m4_define([_LT_SHELL_INIT],
399
1059
[ifdef([AC_DIVERSION_NOTICE],
400
1060
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
401
1061
         [AC_DIVERT_PUSH(NOTICE)])
402
1062
$1
403
1063
AC_DIVERT_POP
404
 
])# _LT_AC_SHELL_INIT
405
 
 
406
 
 
407
 
# _LT_AC_PROG_ECHO_BACKSLASH
408
 
# --------------------------
 
1064
])# _LT_SHELL_INIT
 
1065
 
 
1066
 
 
1067
# _LT_PROG_ECHO_BACKSLASH
 
1068
# -----------------------
409
1069
# Add some code to the start of the generated configure script which
410
1070
# will find an echo command which doesn't interpret backslashes.
411
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
412
 
[_LT_AC_SHELL_INIT([
 
1071
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1072
[_LT_SHELL_INIT([
413
1073
# Check that we are running under the correct shell.
414
1074
SHELL=${CONFIG_SHELL-/bin/sh}
415
1075
 
416
 
case X$ECHO in
 
1076
case X$lt_ECHO in
417
1077
X*--fallback-echo)
418
1078
  # Remove one level of quotation (which was required for Make).
419
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1079
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
420
1080
  ;;
421
1081
esac
422
1082
 
423
 
echo=${ECHO-echo}
 
1083
ECHO=${lt_ECHO-echo}
424
1084
if test "X[$]1" = X--no-reexec; then
425
1085
  # Discard the --no-reexec flag, and continue.
426
1086
  shift
427
1087
elif test "X[$]1" = X--fallback-echo; then
428
1088
  # Avoid inline document here, it may be left over
429
1089
  :
430
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
431
 
  # Yippee, $echo works!
 
1090
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1091
  # Yippee, $ECHO works!
432
1092
  :
433
1093
else
434
1094
  # Restart under the correct shell.
438
1098
if test "X[$]1" = X--fallback-echo; then
439
1099
  # used as fallback echo
440
1100
  shift
441
 
  cat <<EOF
 
1101
  cat <<_LT_EOF
442
1102
[$]*
443
 
EOF
 
1103
_LT_EOF
444
1104
  exit 0
445
1105
fi
446
1106
 
448
1108
# if CDPATH is set.
449
1109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
450
1110
 
451
 
if test -z "$ECHO"; then
452
 
if test "X${echo_test_string+set}" != Xset; then
453
 
# find a string as large as possible, as long as the shell can cope with it
454
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
455
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
456
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
457
 
       echo_test_string=`eval $cmd` &&
458
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
459
 
    then
460
 
      break
461
 
    fi
462
 
  done
463
 
fi
464
 
 
465
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
466
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
467
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
468
 
  :
469
 
else
470
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
471
 
  # backslashes.  This makes it impossible to quote backslashes using
472
 
  #   echo "$something" | sed 's/\\/\\\\/g'
473
 
  #
474
 
  # So, first we look for a working echo in the user's PATH.
475
 
 
476
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
477
 
  for dir in $PATH /usr/ucb; do
 
1111
if test -z "$lt_ECHO"; then
 
1112
  if test "X${echo_test_string+set}" != Xset; then
 
1113
    # find a string as large as possible, as long as the shell can cope with it
 
1114
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1115
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1116
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1117
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1118
      then
 
1119
        break
 
1120
      fi
 
1121
    done
 
1122
  fi
 
1123
 
 
1124
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1125
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1126
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1127
    :
 
1128
  else
 
1129
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1130
    # backslashes.  This makes it impossible to quote backslashes using
 
1131
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1132
    #
 
1133
    # So, first we look for a working echo in the user's PATH.
 
1134
 
 
1135
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1136
    for dir in $PATH /usr/ucb; do
 
1137
      IFS="$lt_save_ifs"
 
1138
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1139
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1140
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1141
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1142
        ECHO="$dir/echo"
 
1143
        break
 
1144
      fi
 
1145
    done
478
1146
    IFS="$lt_save_ifs"
479
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
480
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
481
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
482
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
483
 
      echo="$dir/echo"
484
 
      break
485
 
    fi
486
 
  done
487
 
  IFS="$lt_save_ifs"
488
1147
 
489
 
  if test "X$echo" = Xecho; then
490
 
    # We didn't find a better echo, so look for alternatives.
491
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
492
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
493
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
494
 
      # This shell has a builtin print -r that does the trick.
495
 
      echo='print -r'
496
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
497
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
498
 
      # If we have ksh, try running configure again with it.
499
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
500
 
      export ORIGINAL_CONFIG_SHELL
501
 
      CONFIG_SHELL=/bin/ksh
502
 
      export CONFIG_SHELL
503
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
504
 
    else
505
 
      # Try using printf.
506
 
      echo='printf %s\n'
507
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
508
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
509
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
510
 
        # Cool, printf works
511
 
        :
512
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
513
 
           test "X$echo_testing_string" = 'X\t' &&
514
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
515
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
516
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
517
 
        export CONFIG_SHELL
518
 
        SHELL="$CONFIG_SHELL"
519
 
        export SHELL
520
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
521
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
522
 
           test "X$echo_testing_string" = 'X\t' &&
523
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
524
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
525
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1148
    if test "X$ECHO" = Xecho; then
 
1149
      # We didn't find a better echo, so look for alternatives.
 
1150
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
1151
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
1152
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1153
        # This shell has a builtin print -r that does the trick.
 
1154
        ECHO='print -r'
 
1155
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
1156
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1157
        # If we have ksh, try running configure again with it.
 
1158
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1159
        export ORIGINAL_CONFIG_SHELL
 
1160
        CONFIG_SHELL=/bin/ksh
 
1161
        export CONFIG_SHELL
 
1162
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
526
1163
      else
527
 
        # maybe with a smaller string...
528
 
        prev=:
529
 
 
530
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
531
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
532
 
          then
533
 
            break
 
1164
        # Try using printf.
 
1165
        ECHO='printf %s\n'
 
1166
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1167
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1168
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1169
          # Cool, printf works
 
1170
          :
 
1171
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1172
             test "X$echo_testing_string" = 'X\t' &&
 
1173
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1174
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1175
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1176
          export CONFIG_SHELL
 
1177
          SHELL="$CONFIG_SHELL"
 
1178
          export SHELL
 
1179
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1180
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1181
             test "X$echo_testing_string" = 'X\t' &&
 
1182
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1183
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1184
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1185
        else
 
1186
          # maybe with a smaller string...
 
1187
          prev=:
 
1188
 
 
1189
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1190
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
1191
            then
 
1192
              break
 
1193
            fi
 
1194
            prev="$cmd"
 
1195
          done
 
1196
 
 
1197
          if test "$prev" != 'sed 50q "[$]0"'; then
 
1198
            echo_test_string=`eval $prev`
 
1199
            export echo_test_string
 
1200
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1201
          else
 
1202
            # Oops.  We lost completely, so just stick with echo.
 
1203
            ECHO=echo
534
1204
          fi
535
 
          prev="$cmd"
536
 
        done
537
 
 
538
 
        if test "$prev" != 'sed 50q "[$]0"'; then
539
 
          echo_test_string=`eval $prev`
540
 
          export echo_test_string
541
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
542
 
        else
543
 
          # Oops.  We lost completely, so just stick with echo.
544
 
          echo=echo
545
 
        fi
 
1205
        fi
546
1206
      fi
547
1207
    fi
548
1208
  fi
549
1209
fi
550
 
fi
551
1210
 
552
1211
# Copy echo and quote the copy suitably for passing to libtool from
553
1212
# the Makefile, instead of quoting the original, which is used later.
554
 
ECHO=$echo
555
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
556
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1213
lt_ECHO=$ECHO
 
1214
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1215
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
557
1216
fi
558
1217
 
559
 
AC_SUBST(ECHO)
560
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
561
 
 
562
 
 
563
 
# _LT_AC_LOCK
564
 
# -----------
565
 
AC_DEFUN([_LT_AC_LOCK],
 
1218
AC_SUBST(lt_ECHO)
 
1219
])
 
1220
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
1221
_LT_DECL([], [ECHO], [1],
 
1222
    [An echo program that does not interpret backslashes])
 
1223
])# _LT_PROG_ECHO_BACKSLASH
 
1224
 
 
1225
 
 
1226
# _LT_ENABLE_LOCK
 
1227
# ---------------
 
1228
m4_defun([_LT_ENABLE_LOCK],
566
1229
[AC_ARG_ENABLE([libtool-lock],
567
 
    [AC_HELP_STRING([--disable-libtool-lock],
568
 
        [avoid locking (might break parallel builds)])])
 
1230
  [AS_HELP_STRING([--disable-libtool-lock],
 
1231
    [avoid locking (might break parallel builds)])])
569
1232
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
570
1233
 
571
1234
# Some flags need to be propagated to the compiler or linker for good
576
1239
  echo 'int i;' > conftest.$ac_ext
577
1240
  if AC_TRY_EVAL(ac_compile); then
578
1241
    case `/usr/bin/file conftest.$ac_objext` in
579
 
    *ELF-32*)
580
 
      HPUX_IA64_MODE="32"
581
 
      ;;
582
 
    *ELF-64*)
583
 
      HPUX_IA64_MODE="64"
584
 
      ;;
 
1242
      *ELF-32*)
 
1243
        HPUX_IA64_MODE="32"
 
1244
        ;;
 
1245
      *ELF-64*)
 
1246
        HPUX_IA64_MODE="64"
 
1247
        ;;
585
1248
    esac
586
1249
  fi
587
1250
  rm -rf conftest*
590
1253
  # Find out which ABI we are using.
591
1254
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
592
1255
  if AC_TRY_EVAL(ac_compile); then
593
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
594
 
    case `/usr/bin/file conftest.$ac_objext` in
595
 
    *32-bit*)
596
 
      LD="${LD-ld} -melf32bsmip"
597
 
      ;;
598
 
    *N32*)
599
 
      LD="${LD-ld} -melf32bmipn32"
600
 
      ;;
601
 
    *64-bit*)
602
 
      LD="${LD-ld} -melf64bmip"
603
 
      ;;
604
 
    esac
605
 
   else
606
 
    case `/usr/bin/file conftest.$ac_objext` in
607
 
    *32-bit*)
608
 
      LD="${LD-ld} -32"
609
 
      ;;
610
 
    *N32*)
611
 
      LD="${LD-ld} -n32"
612
 
      ;;
613
 
    *64-bit*)
614
 
      LD="${LD-ld} -64"
615
 
      ;;
616
 
    esac
617
 
   fi
 
1256
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1257
      case `/usr/bin/file conftest.$ac_objext` in
 
1258
        *32-bit*)
 
1259
          LD="${LD-ld} -melf32bsmip"
 
1260
          ;;
 
1261
        *N32*)
 
1262
          LD="${LD-ld} -melf32bmipn32"
 
1263
          ;;
 
1264
        *64-bit*)
 
1265
          LD="${LD-ld} -melf64bmip"
 
1266
        ;;
 
1267
      esac
 
1268
    else
 
1269
      case `/usr/bin/file conftest.$ac_objext` in
 
1270
        *32-bit*)
 
1271
          LD="${LD-ld} -32"
 
1272
          ;;
 
1273
        *N32*)
 
1274
          LD="${LD-ld} -n32"
 
1275
          ;;
 
1276
        *64-bit*)
 
1277
          LD="${LD-ld} -64"
 
1278
          ;;
 
1279
      esac
 
1280
    fi
618
1281
  fi
619
1282
  rm -rf conftest*
620
1283
  ;;
621
1284
 
622
1285
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
623
 
s390*-*linux*|sparc*-*linux*)
 
1286
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
624
1287
  # Find out which ABI we are using.
625
1288
  echo 'int i;' > conftest.$ac_ext
626
1289
  if AC_TRY_EVAL(ac_compile); then
627
1290
    case `/usr/bin/file conftest.o` in
628
 
    *32-bit*)
629
 
      case $host in
630
 
        x86_64-*kfreebsd*-gnu)
631
 
          LD="${LD-ld} -m elf_i386_fbsd"
632
 
          ;;
633
 
        x86_64-*linux*)
634
 
          LD="${LD-ld} -m elf_i386"
635
 
          ;;
636
 
        ppc64-*linux*|powerpc64-*linux*)
637
 
          LD="${LD-ld} -m elf32ppclinux"
638
 
          ;;
639
 
        s390x-*linux*)
640
 
          LD="${LD-ld} -m elf_s390"
641
 
          ;;
642
 
        sparc64-*linux*)
643
 
          LD="${LD-ld} -m elf32_sparc"
644
 
          ;;
645
 
      esac
646
 
      ;;
647
 
    *64-bit*)
648
 
      case $host in
649
 
        x86_64-*kfreebsd*-gnu)
650
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
651
 
          ;;
652
 
        x86_64-*linux*)
653
 
          LD="${LD-ld} -m elf_x86_64"
654
 
          ;;
655
 
        ppc*-*linux*|powerpc*-*linux*)
656
 
          LD="${LD-ld} -m elf64ppc"
657
 
          ;;
658
 
        s390*-*linux*)
659
 
          LD="${LD-ld} -m elf64_s390"
660
 
          ;;
661
 
        sparc*-*linux*)
662
 
          LD="${LD-ld} -m elf64_sparc"
663
 
          ;;
664
 
      esac
665
 
      ;;
 
1291
      *32-bit*)
 
1292
        case $host in
 
1293
          x86_64-*kfreebsd*-gnu)
 
1294
            LD="${LD-ld} -m elf_i386_fbsd"
 
1295
            ;;
 
1296
          x86_64-*linux*)
 
1297
            LD="${LD-ld} -m elf_i386"
 
1298
            ;;
 
1299
          ppc64-*linux*|powerpc64-*linux*)
 
1300
            LD="${LD-ld} -m elf32ppclinux"
 
1301
            ;;
 
1302
          s390x-*linux*)
 
1303
            LD="${LD-ld} -m elf_s390"
 
1304
            ;;
 
1305
          sparc64-*linux*)
 
1306
            LD="${LD-ld} -m elf32_sparc"
 
1307
            ;;
 
1308
        esac
 
1309
        ;;
 
1310
      *64-bit*)
 
1311
        case $host in
 
1312
          x86_64-*kfreebsd*-gnu)
 
1313
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
1314
            ;;
 
1315
          x86_64-*linux*)
 
1316
            LD="${LD-ld} -m elf_x86_64"
 
1317
            ;;
 
1318
          ppc*-*linux*|powerpc*-*linux*)
 
1319
            LD="${LD-ld} -m elf64ppc"
 
1320
            ;;
 
1321
          s390*-*linux*|s390*-*tpf*)
 
1322
            LD="${LD-ld} -m elf64_s390"
 
1323
            ;;
 
1324
          sparc*-*linux*)
 
1325
            LD="${LD-ld} -m elf64_sparc"
 
1326
            ;;
 
1327
        esac
 
1328
        ;;
666
1329
    esac
667
1330
  fi
668
1331
  rm -rf conftest*
674
1337
  CFLAGS="$CFLAGS -belf"
675
1338
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
676
1339
    [AC_LANG_PUSH(C)
677
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1340
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
678
1341
     AC_LANG_POP])
679
1342
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
680
1343
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
690
1353
      case $lt_cv_prog_gnu_ld in
691
1354
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
692
1355
      *)
693
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1356
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
694
1357
          LD="${LD-ld} -64"
695
1358
        fi
696
1359
        ;;
700
1363
  fi
701
1364
  rm -rf conftest*
702
1365
  ;;
703
 
 
704
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
705
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
706
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
707
 
  AC_CHECK_TOOL(AS, as, false)
708
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
709
 
  ;;
710
 
  ])
711
1366
esac
712
1367
 
713
1368
need_locks="$enable_libtool_lock"
714
 
 
715
 
])# _LT_AC_LOCK
716
 
 
717
 
 
718
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1369
])# _LT_ENABLE_LOCK
 
1370
 
 
1371
 
 
1372
# _LT_CMD_OLD_ARCHIVE
 
1373
# -------------------
 
1374
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
1375
[AC_CHECK_TOOL(AR, ar, false)
 
1376
test -z "$AR" && AR=ar
 
1377
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1378
_LT_DECL([], [AR], [1], [The archiver])
 
1379
_LT_DECL([], [AR_FLAGS], [1])
 
1380
 
 
1381
AC_CHECK_TOOL(STRIP, strip, :)
 
1382
test -z "$STRIP" && STRIP=:
 
1383
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
1384
 
 
1385
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1386
test -z "$RANLIB" && RANLIB=:
 
1387
_LT_DECL([], [RANLIB], [1],
 
1388
    [Commands used to install an old-style archive])
 
1389
 
 
1390
# Determine commands to create old-style static archives.
 
1391
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
1392
old_postinstall_cmds='chmod 644 $oldlib'
 
1393
old_postuninstall_cmds=
 
1394
 
 
1395
if test -n "$RANLIB"; then
 
1396
  case $host_os in
 
1397
  openbsd*)
 
1398
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1399
    ;;
 
1400
  *)
 
1401
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1402
    ;;
 
1403
  esac
 
1404
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1405
fi
 
1406
_LT_DECL([], [old_postinstall_cmds], [2])
 
1407
_LT_DECL([], [old_postuninstall_cmds], [2])
 
1408
_LT_TAGDECL([], [old_archive_cmds], [2],
 
1409
    [Commands used to build an old-style archive])
 
1410
])# _LT_CMD_OLD_ARCHIVE
 
1411
 
 
1412
 
 
1413
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
719
1414
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
720
1415
# ----------------------------------------------------------------
721
1416
# Check whether the given compiler option works
722
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
723
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
1417
AC_DEFUN([_LT_COMPILER_OPTION],
 
1418
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1419
m4_require([_LT_DECL_SED])dnl
724
1420
AC_CACHE_CHECK([$1], [$2],
725
1421
  [$2=no
726
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1422
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
727
1423
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
728
1424
   lt_compiler_flag="$3"
729
1425
   # Insert the option either (1) after the last *FLAGS variable, or
743
1439
   if (exit $ac_status) && test -s "$ac_outfile"; then
744
1440
     # The compiler can only warn and ignore the option if not recognized
745
1441
     # So say no if there are warnings other than the usual output.
746
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1442
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
747
1443
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
748
1444
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
749
1445
       $2=yes
750
1446
     fi
751
1447
   fi
752
 
   $rm conftest*
 
1448
   $RM conftest*
753
1449
])
754
1450
 
755
1451
if test x"[$]$2" = xyes; then
756
 
    ifelse([$5], , :, [$5])
 
1452
    m4_if([$5], , :, [$5])
757
1453
else
758
 
    ifelse([$6], , :, [$6])
 
1454
    m4_if([$6], , :, [$6])
759
1455
fi
760
 
])# AC_LIBTOOL_COMPILER_OPTION
761
 
 
762
 
 
763
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
764
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
765
 
# ------------------------------------------------------------
766
 
# Check whether the given compiler option works
767
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
768
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1456
])# _LT_COMPILER_OPTION
 
1457
 
 
1458
# Old name:
 
1459
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
1460
dnl aclocal-1.4 backwards compatibility:
 
1461
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
1462
 
 
1463
 
 
1464
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1465
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
1466
# ----------------------------------------------------
 
1467
# Check whether the given linker option works
 
1468
AC_DEFUN([_LT_LINKER_OPTION],
 
1469
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1470
m4_require([_LT_DECL_SED])dnl
769
1471
AC_CACHE_CHECK([$1], [$2],
770
1472
  [$2=no
771
1473
   save_LDFLAGS="$LDFLAGS"
777
1479
     if test -s conftest.err; then
778
1480
       # Append any errors to the config.log.
779
1481
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
780
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1482
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
781
1483
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
782
1484
       if diff conftest.exp conftest.er2 >/dev/null; then
783
1485
         $2=yes
786
1488
       $2=yes
787
1489
     fi
788
1490
   fi
789
 
   $rm -r conftest*
 
1491
   $RM -r conftest*
790
1492
   LDFLAGS="$save_LDFLAGS"
791
1493
])
792
1494
 
793
1495
if test x"[$]$2" = xyes; then
794
 
    ifelse([$4], , :, [$4])
 
1496
    m4_if([$4], , :, [$4])
795
1497
else
796
 
    ifelse([$5], , :, [$5])
 
1498
    m4_if([$5], , :, [$5])
797
1499
fi
798
 
])# AC_LIBTOOL_LINKER_OPTION
799
 
 
800
 
 
801
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
802
 
# --------------------------
803
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
804
 
[# find the maximum length of command line arguments
 
1500
])# _LT_LINKER_OPTION
 
1501
 
 
1502
# Old name:
 
1503
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
1504
dnl aclocal-1.4 backwards compatibility:
 
1505
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
1506
 
 
1507
 
 
1508
# LT_CMD_MAX_LEN
 
1509
#---------------
 
1510
AC_DEFUN([LT_CMD_MAX_LEN],
 
1511
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1512
# find the maximum length of command line arguments
805
1513
AC_MSG_CHECKING([the maximum length of command line arguments])
806
1514
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
807
1515
  i=0
823
1531
    lt_cv_sys_max_cmd_len=-1;
824
1532
    ;;
825
1533
 
826
 
  cygwin* | mingw*)
 
1534
  cygwin* | mingw* | cegcc*)
827
1535
    # On Win9x/ME, this test blows up -- it succeeds, but takes
828
1536
    # about 5 minutes as the teststring grows exponentially.
829
1537
    # Worse, since 9x/ME are not pre-emptively multitasking,
878
1586
  sysv5* | sco5v6* | sysv4.2uw2*)
879
1587
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
880
1588
    if test -n "$kargmax"; then
881
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
1589
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
882
1590
    else
883
1591
      lt_cv_sys_max_cmd_len=32768
884
1592
    fi
889
1597
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
1598
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
891
1599
    else
 
1600
      # Make teststring a little bigger before we do anything with it.
 
1601
      # a 1K string should be a reasonable start.
 
1602
      for i in 1 2 3 4 5 6 7 8 ; do
 
1603
        teststring=$teststring$teststring
 
1604
      done
892
1605
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
894
 
               = "XX$teststring") >/dev/null 2>&1 &&
895
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
1606
      # If test is not a shell built-in, we'll probably end up computing a
 
1607
      # maximum length that is only half of the actual maximum length, but
 
1608
      # we can't tell.
 
1609
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
1610
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
897
1611
              test $i != 17 # 1/2 MB should be enough
898
1612
      do
899
1613
        i=`expr $i + 1`
900
1614
        teststring=$teststring$teststring
901
1615
      done
 
1616
      # Only check the string length outside the loop.
 
1617
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
902
1618
      teststring=
903
 
      # Add a significant safety factor because C++ compilers can tack on massive
904
 
      # amounts of additional arguments before passing them to the linker.
905
 
      # It appears as though 1/2 is a usable value.
 
1619
      # Add a significant safety factor because C++ compilers can tack on
 
1620
      # massive amounts of additional arguments before passing them to the
 
1621
      # linker.  It appears as though 1/2 is a usable value.
906
1622
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
907
1623
    fi
908
1624
    ;;
913
1629
else
914
1630
  AC_MSG_RESULT(none)
915
1631
fi
916
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
917
 
 
918
 
 
919
 
# _LT_AC_CHECK_DLFCN
920
 
# ------------------
921
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
922
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
923
 
])# _LT_AC_CHECK_DLFCN
924
 
 
925
 
 
926
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
927
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
928
 
# ---------------------------------------------------------------------
929
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
930
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1632
max_cmd_len=$lt_cv_sys_max_cmd_len
 
1633
_LT_DECL([], [max_cmd_len], [0],
 
1634
    [What is the maximum length of a command?])
 
1635
])# LT_CMD_MAX_LEN
 
1636
 
 
1637
# Old name:
 
1638
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
1639
dnl aclocal-1.4 backwards compatibility:
 
1640
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
1641
 
 
1642
 
 
1643
# _LT_HEADER_DLFCN
 
1644
# ----------------
 
1645
m4_defun([_LT_HEADER_DLFCN],
 
1646
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
1647
])# _LT_HEADER_DLFCN
 
1648
 
 
1649
 
 
1650
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1651
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1652
# ----------------------------------------------------------------
 
1653
m4_defun([_LT_TRY_DLOPEN_SELF],
 
1654
[m4_require([_LT_HEADER_DLFCN])dnl
931
1655
if test "$cross_compiling" = yes; then :
932
1656
  [$4]
933
1657
else
934
1658
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
935
1659
  lt_status=$lt_dlunknown
936
 
  cat > conftest.$ac_ext <<EOF
 
1660
  cat > conftest.$ac_ext <<_LT_EOF
937
1661
[#line __oline__ "configure"
938
1662
#include "confdefs.h"
939
1663
 
975
1699
#  endif
976
1700
#endif
977
1701
 
978
 
#ifdef __cplusplus
979
 
extern "C" void exit (int);
980
 
#endif
981
 
 
982
1702
void fnord() { int i=42;}
983
1703
int main ()
984
1704
{
994
1714
  else
995
1715
    puts (dlerror ());
996
1716
 
997
 
    exit (status);
 
1717
  return status;
998
1718
}]
999
 
EOF
 
1719
_LT_EOF
1000
1720
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1001
1721
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1002
1722
    lt_status=$?
1011
1731
  fi
1012
1732
fi
1013
1733
rm -fr conftest*
1014
 
])# _LT_AC_TRY_DLOPEN_SELF
1015
 
 
1016
 
 
1017
 
# AC_LIBTOOL_DLOPEN_SELF
1018
 
# ----------------------
1019
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1020
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1734
])# _LT_TRY_DLOPEN_SELF
 
1735
 
 
1736
 
 
1737
# LT_SYS_DLOPEN_SELF
 
1738
# ------------------
 
1739
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
1740
[m4_require([_LT_HEADER_DLFCN])dnl
1021
1741
if test "x$enable_dlopen" != xyes; then
1022
1742
  enable_dlopen=unknown
1023
1743
  enable_dlopen_self=unknown
1033
1753
    lt_cv_dlopen_self=yes
1034
1754
    ;;
1035
1755
 
1036
 
  mingw* | pw32*)
 
1756
  mingw* | pw32* | cegcc*)
1037
1757
    lt_cv_dlopen="LoadLibrary"
1038
1758
    lt_cv_dlopen_libs=
1039
 
   ;;
 
1759
    ;;
1040
1760
 
1041
1761
  cygwin*)
1042
1762
    lt_cv_dlopen="dlopen"
1043
1763
    lt_cv_dlopen_libs=
1044
 
   ;;
 
1764
    ;;
1045
1765
 
1046
1766
  darwin*)
1047
1767
  # if libdl is installed we need to link against it
1051
1771
    lt_cv_dlopen_libs=
1052
1772
    lt_cv_dlopen_self=yes
1053
1773
    ])
1054
 
   ;;
 
1774
    ;;
1055
1775
 
1056
1776
  *)
1057
1777
    AC_CHECK_FUNC([shl_load],
1093
1813
 
1094
1814
    AC_CACHE_CHECK([whether a program can dlopen itself],
1095
1815
          lt_cv_dlopen_self, [dnl
1096
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1816
          _LT_TRY_DLOPEN_SELF(
1097
1817
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1098
1818
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1099
1819
    ])
1101
1821
    if test "x$lt_cv_dlopen_self" = xyes; then
1102
1822
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1103
1823
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1104
 
          lt_cv_dlopen_self_static, [dnl
1105
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1824
          lt_cv_dlopen_self_static, [dnl
 
1825
          _LT_TRY_DLOPEN_SELF(
1106
1826
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1107
1827
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1108
1828
      ])
1124
1844
  *) enable_dlopen_self_static=unknown ;;
1125
1845
  esac
1126
1846
fi
1127
 
])# AC_LIBTOOL_DLOPEN_SELF
1128
 
 
1129
 
 
1130
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1131
 
# ---------------------------------
1132
 
# Check to see if options -c and -o are simultaneously supported by compiler
1133
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1134
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1135
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1847
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
1848
         [Whether dlopen is supported])
 
1849
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
1850
         [Whether dlopen of programs is supported])
 
1851
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
1852
         [Whether dlopen of statically linked programs is supported])
 
1853
])# LT_SYS_DLOPEN_SELF
 
1854
 
 
1855
# Old name:
 
1856
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
1857
dnl aclocal-1.4 backwards compatibility:
 
1858
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
1859
 
 
1860
 
 
1861
# _LT_COMPILER_C_O([TAGNAME])
 
1862
# ---------------------------
 
1863
# Check to see if options -c and -o are simultaneously supported by compiler.
 
1864
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
1865
m4_defun([_LT_COMPILER_C_O],
 
1866
[m4_require([_LT_DECL_SED])dnl
 
1867
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1868
m4_require([_LT_TAG_COMPILER])dnl
1136
1869
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1137
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1138
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1139
 
   $rm -r conftest 2>/dev/null
 
1870
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1871
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1872
   $RM -r conftest 2>/dev/null
1140
1873
   mkdir conftest
1141
1874
   cd conftest
1142
1875
   mkdir out
1160
1893
   then
1161
1894
     # The compiler can only warn and ignore the option if not recognized
1162
1895
     # So say no if there are warnings
1163
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1896
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1164
1897
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1165
1898
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1166
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1899
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1167
1900
     fi
1168
1901
   fi
1169
1902
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1170
 
   $rm conftest*
 
1903
   $RM conftest*
1171
1904
   # SGI C++ compiler will create directory out/ii_files/ for
1172
1905
   # template instantiation
1173
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1174
 
   $rm out/* && rmdir out
 
1906
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
1907
   $RM out/* && rmdir out
1175
1908
   cd ..
1176
 
   rmdir conftest
1177
 
   $rm conftest*
 
1909
   $RM -r conftest
 
1910
   $RM conftest*
1178
1911
])
1179
 
])# AC_LIBTOOL_PROG_CC_C_O
1180
 
 
1181
 
 
1182
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1183
 
# -----------------------------------------
 
1912
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
1913
        [Does compiler simultaneously support -c and -o options?])
 
1914
])# _LT_COMPILER_C_O
 
1915
 
 
1916
 
 
1917
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
1918
# ----------------------------------
1184
1919
# Check to see if we can do hard links to lock some files if needed
1185
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1186
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1920
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
1921
[m4_require([_LT_ENABLE_LOCK])dnl
 
1922
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1923
_LT_COMPILER_C_O([$1])
1187
1924
 
1188
1925
hard_links="nottested"
1189
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1926
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1190
1927
  # do not overwrite the value of need_locks provided by the user
1191
1928
  AC_MSG_CHECKING([if we can lock with hard links])
1192
1929
  hard_links=yes
1193
 
  $rm conftest*
 
1930
  $RM conftest*
1194
1931
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1195
1932
  touch conftest.a
1196
1933
  ln conftest.a conftest.b 2>&5 || hard_links=no
1203
1940
else
1204
1941
  need_locks=no
1205
1942
fi
1206
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1207
 
 
1208
 
 
1209
 
# AC_LIBTOOL_OBJDIR
1210
 
# -----------------
1211
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1943
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
1944
])# _LT_COMPILER_FILE_LOCKS
 
1945
 
 
1946
 
 
1947
# _LT_CHECK_OBJDIR
 
1948
# ----------------
 
1949
m4_defun([_LT_CHECK_OBJDIR],
1212
1950
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1213
1951
[rm -f .libs 2>/dev/null
1214
1952
mkdir .libs 2>/dev/null
1220
1958
fi
1221
1959
rmdir .libs 2>/dev/null])
1222
1960
objdir=$lt_cv_objdir
1223
 
])# AC_LIBTOOL_OBJDIR
1224
 
 
1225
 
 
1226
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1227
 
# ----------------------------------------------
 
1961
_LT_DECL([], [objdir], [0],
 
1962
         [The name of the directory that contains temporary libtool files])dnl
 
1963
m4_pattern_allow([LT_OBJDIR])dnl
 
1964
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
1965
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
1966
])# _LT_CHECK_OBJDIR
 
1967
 
 
1968
 
 
1969
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
1970
# --------------------------------------
1228
1971
# Check hardcoding attributes.
1229
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1972
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1230
1973
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1231
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1232
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1233
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1234
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1974
_LT_TAGVAR(hardcode_action, $1)=
 
1975
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
1976
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
1977
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1235
1978
 
1236
 
  # We can hardcode non-existant directories.
1237
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
1979
  # We can hardcode non-existent directories.
 
1980
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1238
1981
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1239
1982
     # have to relink, otherwise we might link with an installed library
1240
1983
     # when we should be linking with a yet-to-be-installed one
1241
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1242
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1984
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1985
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1243
1986
    # Linking always hardcodes the temporary library directory.
1244
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
1987
    _LT_TAGVAR(hardcode_action, $1)=relink
1245
1988
  else
1246
1989
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1247
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
1990
    _LT_TAGVAR(hardcode_action, $1)=immediate
1248
1991
  fi
1249
1992
else
1250
1993
  # We cannot hardcode anything, or else we can only hardcode existing
1251
1994
  # directories.
1252
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1995
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1253
1996
fi
1254
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1997
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1255
1998
 
1256
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1999
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2000
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1257
2001
  # Fast installation is not supported
1258
2002
  enable_fast_install=no
1259
2003
elif test "$shlibpath_overrides_runpath" = yes ||
1261
2005
  # Fast installation is not necessary
1262
2006
  enable_fast_install=needless
1263
2007
fi
1264
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1265
 
 
1266
 
 
1267
 
# AC_LIBTOOL_SYS_LIB_STRIP
1268
 
# ------------------------
1269
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1270
 
[striplib=
 
2008
_LT_TAGDECL([], [hardcode_action], [0],
 
2009
    [How to hardcode a shared library path into an executable])
 
2010
])# _LT_LINKER_HARDCODE_LIBPATH
 
2011
 
 
2012
 
 
2013
# _LT_CMD_STRIPLIB
 
2014
# ----------------
 
2015
m4_defun([_LT_CMD_STRIPLIB],
 
2016
[m4_require([_LT_DECL_EGREP])
 
2017
striplib=
1271
2018
old_striplib=
1272
2019
AC_MSG_CHECKING([whether stripping libraries is possible])
1273
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2020
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1274
2021
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1275
2022
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1276
2023
  AC_MSG_RESULT([yes])
1277
2024
else
1278
2025
# FIXME - insert some real tests, host_os isn't really good enough
1279
2026
  case $host_os in
1280
 
   darwin*)
1281
 
       if test -n "$STRIP" ; then
1282
 
         striplib="$STRIP -x"
1283
 
         old_striplib="$STRIP -S"
1284
 
         AC_MSG_RESULT([yes])
1285
 
       else
1286
 
  AC_MSG_RESULT([no])
1287
 
fi
1288
 
       ;;
1289
 
   *)
1290
 
  AC_MSG_RESULT([no])
 
2027
  darwin*)
 
2028
    if test -n "$STRIP" ; then
 
2029
      striplib="$STRIP -x"
 
2030
      old_striplib="$STRIP -S"
 
2031
      AC_MSG_RESULT([yes])
 
2032
    else
 
2033
      AC_MSG_RESULT([no])
 
2034
    fi
 
2035
    ;;
 
2036
  *)
 
2037
    AC_MSG_RESULT([no])
1291
2038
    ;;
1292
2039
  esac
1293
2040
fi
1294
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1295
 
 
1296
 
 
1297
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2041
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2042
_LT_DECL([], [striplib], [1])
 
2043
])# _LT_CMD_STRIPLIB
 
2044
 
 
2045
 
 
2046
# _LT_SYS_DYNAMIC_LINKER([TAG])
1298
2047
# -----------------------------
1299
2048
# PORTME Fill in your ld.so characteristics
1300
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1301
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2049
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2050
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2051
m4_require([_LT_DECL_EGREP])dnl
 
2052
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2053
m4_require([_LT_DECL_OBJDUMP])dnl
 
2054
m4_require([_LT_DECL_SED])dnl
1302
2055
AC_MSG_CHECKING([dynamic linker characteristics])
1303
 
library_names_spec=
1304
 
libname_spec='lib$name'
1305
 
soname_spec=
1306
 
shrext_cmds=".so"
1307
 
postinstall_cmds=
1308
 
postuninstall_cmds=
1309
 
finish_cmds=
1310
 
finish_eval=
1311
 
shlibpath_var=
1312
 
shlibpath_overrides_runpath=unknown
1313
 
version_type=none
1314
 
dynamic_linker="$host_os ld.so"
1315
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1316
 
m4_if($1,[],[
 
2056
m4_if([$1],
 
2057
        [], [
1317
2058
if test "$GCC" = yes; then
1318
2059
  case $host_os in
1319
2060
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
2061
    *) lt_awk_arg="/^libraries:/" ;;
1321
2062
  esac
1322
2063
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2064
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1324
2065
    # if the path contains ";" then we assume it to be the separator
1325
2066
    # otherwise default to the standard path separator (i.e. ":") - it is
1326
2067
    # assumed that no part of a normal pathname contains ";" but that should
1327
2068
    # okay in the real world where ";" in dirpaths is itself problematic.
1328
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2069
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1329
2070
  else
1330
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2071
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1331
2072
  fi
1332
2073
  # Ok, now we have the path, separated by spaces, we can step through it
1333
2074
  # and add multilib dir if necessary.
1341
2082
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1342
2083
    fi
1343
2084
  done
1344
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2085
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1345
2086
BEGIN {RS=" "; FS="/|\n";} {
1346
2087
  lt_foo="";
1347
2088
  lt_count=0;
1361
2102
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
2103
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1363
2104
}'`
1364
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2105
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1365
2106
else
1366
2107
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1367
2108
fi])
 
2109
library_names_spec=
 
2110
libname_spec='lib$name'
 
2111
soname_spec=
 
2112
shrext_cmds=".so"
 
2113
postinstall_cmds=
 
2114
postuninstall_cmds=
 
2115
finish_cmds=
 
2116
finish_eval=
 
2117
shlibpath_var=
 
2118
shlibpath_overrides_runpath=unknown
 
2119
version_type=none
 
2120
dynamic_linker="$host_os ld.so"
 
2121
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1368
2122
need_lib_prefix=unknown
1369
2123
hardcode_into_libs=no
1370
2124
 
1401
2155
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1402
2156
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1403
2157
           echo ' yes '
1404
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2158
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1405
2159
        :
1406
2160
      else
1407
2161
        can_build_shared=no
1427
2181
  ;;
1428
2182
 
1429
2183
amigaos*)
1430
 
  library_names_spec='$libname.ixlibrary $libname.a'
1431
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1432
 
  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'
 
2184
  case $host_cpu in
 
2185
  powerpc)
 
2186
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
2187
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
2188
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2189
    ;;
 
2190
  m68k)
 
2191
    library_names_spec='$libname.ixlibrary $libname.a'
 
2192
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2193
    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'
 
2194
    ;;
 
2195
  esac
1433
2196
  ;;
1434
2197
 
1435
2198
beos*)
1452
2215
  # libtool to hard-code these into programs
1453
2216
  ;;
1454
2217
 
1455
 
cygwin* | mingw* | pw32*)
 
2218
cygwin* | mingw* | pw32* | cegcc*)
1456
2219
  version_type=windows
1457
2220
  shrext_cmds=".dll"
1458
2221
  need_version=no
1459
2222
  need_lib_prefix=no
1460
2223
 
1461
2224
  case $GCC,$host_os in
1462
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2225
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1463
2226
    library_names_spec='$libname.dll.a'
1464
2227
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1465
2228
    postinstall_cmds='base_file=`basename \${file}`~
1466
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2229
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1467
2230
      dldir=$destdir/`dirname \$dlpath`~
1468
2231
      test -d \$dldir || mkdir -p \$dldir~
1469
2232
      $install_prog $dir/$dlname \$dldir/$dlname~
1470
 
      chmod a+x \$dldir/$dlname'
 
2233
      chmod a+x \$dldir/$dlname~
 
2234
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
2235
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
2236
      fi'
1471
2237
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1472
2238
      dlpath=$dir/\$dldll~
1473
 
       $rm \$dlpath'
 
2239
       $RM \$dlpath'
1474
2240
    shlibpath_overrides_runpath=yes
1475
2241
 
1476
2242
    case $host_os in
1479
2245
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1480
2246
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1481
2247
      ;;
1482
 
    mingw*)
 
2248
    mingw* | cegcc*)
1483
2249
      # MinGW DLLs use traditional 'lib' prefix
1484
2250
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1485
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1486
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2251
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2252
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1487
2253
        # It is most probably a Windows format PATH printed by
1488
2254
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1489
2255
        # path with ; separators, and with drive letters. We can handle the
1490
2256
        # drive letters (cygwin fileutils understands them), so leave them,
1491
2257
        # especially as we might pass files found there to a mingw objdump,
1492
2258
        # which wouldn't understand a cygwinified path. Ahh.
1493
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2259
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1494
2260
      else
1495
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2261
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1496
2262
      fi
1497
2263
      ;;
1498
2264
    pw32*)
1516
2282
  version_type=darwin
1517
2283
  need_lib_prefix=no
1518
2284
  need_version=no
1519
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2285
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1520
2286
  soname_spec='${libname}${release}${major}$shared_ext'
1521
2287
  shlibpath_overrides_runpath=yes
1522
2288
  shlibpath_var=DYLD_LIBRARY_PATH
1523
2289
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1524
 
  m4_if([$1], [],[
1525
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
2290
m4_if([$1], [],[
 
2291
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1526
2292
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1527
2293
  ;;
1528
2294
 
1615
2381
    fi
1616
2382
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1617
2383
    ;;
1618
 
   hppa*64*)
1619
 
     shrext_cmds='.sl'
1620
 
     hardcode_into_libs=yes
1621
 
     dynamic_linker="$host_os dld.sl"
1622
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1623
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1624
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1625
 
     soname_spec='${libname}${release}${shared_ext}$major'
1626
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1627
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1628
 
     ;;
1629
 
   *)
 
2384
  hppa*64*)
 
2385
    shrext_cmds='.sl'
 
2386
    hardcode_into_libs=yes
 
2387
    dynamic_linker="$host_os dld.sl"
 
2388
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2389
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2390
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2391
    soname_spec='${libname}${release}${shared_ext}$major'
 
2392
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2393
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2394
    ;;
 
2395
  *)
1630
2396
    shrext_cmds='.sl'
1631
2397
    dynamic_linker="$host_os dld.sl"
1632
2398
    shlibpath_var=SHLIB_PATH
1703
2469
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1704
2470
  shlibpath_var=LD_LIBRARY_PATH
1705
2471
  shlibpath_overrides_runpath=no
 
2472
  # Some binutils ld are patched to set DT_RUNPATH
 
2473
  save_LDFLAGS=$LDFLAGS
 
2474
  save_libdir=$libdir
 
2475
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2476
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2477
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2478
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2479
       [shlibpath_overrides_runpath=yes])])
 
2480
  LDFLAGS=$save_LDFLAGS
 
2481
  libdir=$save_libdir
 
2482
 
1706
2483
  # This implies no fast_install, which is unacceptable.
1707
2484
  # Some rework will be needed to allow for fast_install
1708
2485
  # before this can be enabled.
1709
2486
  hardcode_into_libs=yes
1710
2487
 
 
2488
  # Add ABI-specific directories to the system library path.
 
2489
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
2490
 
1711
2491
  # Append ld.so.conf contents to the search path
1712
2492
  if test -f /etc/ld.so.conf; then
1713
 
    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' ' '`
1714
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
2493
    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' ' '`
 
2494
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1715
2495
  fi
1716
2496
 
1717
2497
  # We used to test for /lib/ld.so.1 and disable shared libraries on
1723
2503
  dynamic_linker='GNU/Linux ld.so'
1724
2504
  ;;
1725
2505
 
1726
 
netbsdelf*-gnu)
1727
 
  version_type=linux
1728
 
  need_lib_prefix=no
1729
 
  need_version=no
1730
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1731
 
  soname_spec='${libname}${release}${shared_ext}$major'
1732
 
  shlibpath_var=LD_LIBRARY_PATH
1733
 
  shlibpath_overrides_runpath=no
1734
 
  hardcode_into_libs=yes
1735
 
  dynamic_linker='NetBSD ld.elf_so'
1736
 
  ;;
1737
 
 
1738
2506
netbsd*)
1739
2507
  version_type=sunos
1740
2508
  need_lib_prefix=no
1741
2509
  need_version=no
1742
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2510
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1743
2511
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1744
2512
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1745
2513
    dynamic_linker='NetBSD (a.out) ld.so'
1760
2528
  shlibpath_overrides_runpath=yes
1761
2529
  ;;
1762
2530
 
1763
 
nto-qnx*)
1764
 
  version_type=linux
 
2531
*nto* | *qnx*)
 
2532
  version_type=qnx
1765
2533
  need_lib_prefix=no
1766
2534
  need_version=no
1767
2535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1768
2536
  soname_spec='${libname}${release}${shared_ext}$major'
1769
2537
  shlibpath_var=LD_LIBRARY_PATH
1770
 
  shlibpath_overrides_runpath=yes
 
2538
  shlibpath_overrides_runpath=no
 
2539
  hardcode_into_libs=yes
 
2540
  dynamic_linker='ldqnx.so'
1771
2541
  ;;
1772
2542
 
1773
2543
openbsd*)
1776
2546
  need_lib_prefix=no
1777
2547
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1778
2548
  case $host_os in
1779
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1780
 
    *)                         need_version=no  ;;
 
2549
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
2550
    *)                          need_version=no  ;;
1781
2551
  esac
1782
2552
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1783
2553
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1784
2554
  shlibpath_var=LD_LIBRARY_PATH
1785
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2555
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1786
2556
    case $host_os in
1787
2557
      openbsd2.[[89]] | openbsd2.[[89]].*)
1788
2558
        shlibpath_overrides_runpath=no
1854
2624
    sni)
1855
2625
      shlibpath_overrides_runpath=no
1856
2626
      need_lib_prefix=no
1857
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
1858
2627
      runpath_var=LD_RUN_PATH
1859
2628
      ;;
1860
2629
    siemens)
1885
2654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1886
2655
  soname_spec='${libname}${release}${shared_ext}$major'
1887
2656
  shlibpath_var=LD_LIBRARY_PATH
 
2657
  shlibpath_overrides_runpath=yes
1888
2658
  hardcode_into_libs=yes
1889
2659
  if test "$with_gnu_ld" = yes; then
1890
2660
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1891
 
    shlibpath_overrides_runpath=no
1892
2661
  else
1893
2662
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1894
 
    shlibpath_overrides_runpath=yes
1895
2663
    case $host_os in
1896
2664
      sco3.2v5*)
1897
2665
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1901
2669
  sys_lib_dlsearch_path_spec='/usr/lib'
1902
2670
  ;;
1903
2671
 
 
2672
tpf*)
 
2673
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
2674
  version_type=linux
 
2675
  need_lib_prefix=no
 
2676
  need_version=no
 
2677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2678
  shlibpath_var=LD_LIBRARY_PATH
 
2679
  shlibpath_overrides_runpath=no
 
2680
  hardcode_into_libs=yes
 
2681
  ;;
 
2682
 
1904
2683
uts4*)
1905
2684
  version_type=linux
1906
2685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1915
2694
AC_MSG_RESULT([$dynamic_linker])
1916
2695
test "$dynamic_linker" = no && can_build_shared=no
1917
2696
 
1918
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1919
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1920
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1921
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1922
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1923
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1924
 
 
1925
2697
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1926
2698
if test "$GCC" = yes; then
1927
2699
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1928
2700
fi
1929
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1930
 
 
1931
 
 
1932
 
# _LT_AC_TAGCONFIG
1933
 
# ----------------
1934
 
AC_DEFUN([_LT_AC_TAGCONFIG],
1935
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1936
 
AC_ARG_WITH([tags],
1937
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1938
 
        [include additional configurations @<:@automatic@:>@])],
1939
 
    [tagnames="$withval"])
1940
 
 
1941
 
if test -f "$ltmain" && test -n "$tagnames"; then
1942
 
  if test ! -f "${ofile}"; then
1943
 
    AC_MSG_WARN([output file `$ofile' does not exist])
1944
 
  fi
1945
 
 
1946
 
  if test -z "$LTCC"; then
1947
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1948
 
    if test -z "$LTCC"; then
1949
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1950
 
    else
1951
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1952
 
    fi
1953
 
  fi
1954
 
  if test -z "$LTCFLAGS"; then
1955
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1956
 
  fi
1957
 
 
1958
 
  # Extract list of available tagged configurations in $ofile.
1959
 
  # Note that this assumes the entire list is on one line.
1960
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1961
 
 
1962
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1963
 
  for tagname in $tagnames; do
1964
 
    IFS="$lt_save_ifs"
1965
 
    # Check whether tagname contains only valid characters
1966
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1967
 
    "") ;;
1968
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
1969
 
        ;;
1970
 
    esac
1971
 
 
1972
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1973
 
    then
1974
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
1975
 
    fi
1976
 
 
1977
 
    # Update the list of available tags.
1978
 
    if test -n "$tagname"; then
1979
 
      echo appending configuration tag \"$tagname\" to $ofile
1980
 
 
1981
 
      case $tagname in
1982
 
      CXX)
1983
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1984
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1985
 
            (test "X$CXX" != "Xg++"))) ; then
1986
 
          AC_LIBTOOL_LANG_CXX_CONFIG
1987
 
        else
1988
 
          tagname=""
1989
 
        fi
1990
 
        ;;
1991
 
 
1992
 
      F77)
1993
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
1994
 
          AC_LIBTOOL_LANG_F77_CONFIG
1995
 
        else
1996
 
          tagname=""
1997
 
        fi
1998
 
        ;;
1999
 
 
2000
 
      GCJ)
2001
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2002
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2003
 
        else
2004
 
          tagname=""
2005
 
        fi
2006
 
        ;;
2007
 
 
2008
 
      RC)
2009
 
        AC_LIBTOOL_LANG_RC_CONFIG
2010
 
        ;;
2011
 
 
2012
 
      *)
2013
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2014
 
        ;;
2015
 
      esac
2016
 
 
2017
 
      # Append the new tag name to the list of available tags.
2018
 
      if test -n "$tagname" ; then
2019
 
      available_tags="$available_tags $tagname"
2020
 
    fi
2021
 
    fi
2022
 
  done
2023
 
  IFS="$lt_save_ifs"
2024
 
 
2025
 
  # Now substitute the updated list of available tags.
2026
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2027
 
    mv "${ofile}T" "$ofile"
2028
 
    chmod +x "$ofile"
2029
 
  else
2030
 
    rm -f "${ofile}T"
2031
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2032
 
  fi
2033
 
fi
2034
 
])# _LT_AC_TAGCONFIG
2035
 
 
2036
 
 
2037
 
# AC_LIBTOOL_DLOPEN
2038
 
# -----------------
2039
 
# enable checks for dlopen support
2040
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2041
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2042
 
])# AC_LIBTOOL_DLOPEN
2043
 
 
2044
 
 
2045
 
# AC_LIBTOOL_WIN32_DLL
2046
 
# --------------------
2047
 
# declare package support for building win32 DLLs
2048
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2049
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2050
 
])# AC_LIBTOOL_WIN32_DLL
2051
 
 
2052
 
 
2053
 
# AC_ENABLE_SHARED([DEFAULT])
2054
 
# ---------------------------
2055
 
# implement the --enable-shared flag
2056
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2057
 
AC_DEFUN([AC_ENABLE_SHARED],
2058
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2059
 
AC_ARG_ENABLE([shared],
2060
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2061
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2062
 
    [p=${PACKAGE-default}
2063
 
    case $enableval in
2064
 
    yes) enable_shared=yes ;;
2065
 
    no) enable_shared=no ;;
2066
 
    *)
2067
 
      enable_shared=no
2068
 
      # Look at the argument we got.  We use all the common list separators.
2069
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2070
 
      for pkg in $enableval; do
2071
 
        IFS="$lt_save_ifs"
2072
 
        if test "X$pkg" = "X$p"; then
2073
 
          enable_shared=yes
2074
 
        fi
2075
 
      done
2076
 
      IFS="$lt_save_ifs"
2077
 
      ;;
2078
 
    esac],
2079
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2080
 
])# AC_ENABLE_SHARED
2081
 
 
2082
 
 
2083
 
# AC_DISABLE_SHARED
2084
 
# -----------------
2085
 
# set the default shared flag to --disable-shared
2086
 
AC_DEFUN([AC_DISABLE_SHARED],
2087
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2088
 
AC_ENABLE_SHARED(no)
2089
 
])# AC_DISABLE_SHARED
2090
 
 
2091
 
 
2092
 
# AC_ENABLE_STATIC([DEFAULT])
2093
 
# ---------------------------
2094
 
# implement the --enable-static flag
2095
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2096
 
AC_DEFUN([AC_ENABLE_STATIC],
2097
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2098
 
AC_ARG_ENABLE([static],
2099
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2100
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2101
 
    [p=${PACKAGE-default}
2102
 
    case $enableval in
2103
 
    yes) enable_static=yes ;;
2104
 
    no) enable_static=no ;;
2105
 
    *)
2106
 
     enable_static=no
2107
 
      # Look at the argument we got.  We use all the common list separators.
2108
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2109
 
      for pkg in $enableval; do
2110
 
        IFS="$lt_save_ifs"
2111
 
        if test "X$pkg" = "X$p"; then
2112
 
          enable_static=yes
2113
 
        fi
2114
 
      done
2115
 
      IFS="$lt_save_ifs"
2116
 
      ;;
2117
 
    esac],
2118
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2119
 
])# AC_ENABLE_STATIC
2120
 
 
2121
 
 
2122
 
# AC_DISABLE_STATIC
2123
 
# -----------------
2124
 
# set the default static flag to --disable-static
2125
 
AC_DEFUN([AC_DISABLE_STATIC],
2126
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2127
 
AC_ENABLE_STATIC(no)
2128
 
])# AC_DISABLE_STATIC
2129
 
 
2130
 
 
2131
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2132
 
# ---------------------------------
2133
 
# implement the --enable-fast-install flag
2134
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2135
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2136
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2137
 
AC_ARG_ENABLE([fast-install],
2138
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2139
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2140
 
    [p=${PACKAGE-default}
2141
 
    case $enableval in
2142
 
    yes) enable_fast_install=yes ;;
2143
 
    no) enable_fast_install=no ;;
2144
 
    *)
2145
 
      enable_fast_install=no
2146
 
      # Look at the argument we got.  We use all the common list separators.
2147
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2148
 
      for pkg in $enableval; do
2149
 
        IFS="$lt_save_ifs"
2150
 
        if test "X$pkg" = "X$p"; then
2151
 
          enable_fast_install=yes
2152
 
        fi
2153
 
      done
2154
 
      IFS="$lt_save_ifs"
2155
 
      ;;
2156
 
    esac],
2157
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2158
 
])# AC_ENABLE_FAST_INSTALL
2159
 
 
2160
 
 
2161
 
# AC_DISABLE_FAST_INSTALL
2162
 
# -----------------------
2163
 
# set the default to --disable-fast-install
2164
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2165
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2166
 
AC_ENABLE_FAST_INSTALL(no)
2167
 
])# AC_DISABLE_FAST_INSTALL
2168
 
 
2169
 
 
2170
 
# AC_LIBTOOL_PICMODE([MODE])
 
2701
 
 
2702
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
2703
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2704
fi
 
2705
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
2706
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2707
fi
 
2708
 
 
2709
_LT_DECL([], [variables_saved_for_relink], [1],
 
2710
    [Variables whose values should be saved in libtool wrapper scripts and
 
2711
    restored at link time])
 
2712
_LT_DECL([], [need_lib_prefix], [0],
 
2713
    [Do we need the "lib" prefix for modules?])
 
2714
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
2715
_LT_DECL([], [version_type], [0], [Library versioning type])
 
2716
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
2717
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
2718
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
2719
    [Is shlibpath searched before the hard-coded library search path?])
 
2720
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
2721
_LT_DECL([], [library_names_spec], [1],
 
2722
    [[List of archive names.  First name is the real one, the rest are links.
 
2723
    The last name is the one that the linker finds with -lNAME]])
 
2724
_LT_DECL([], [soname_spec], [1],
 
2725
    [[The coded name of the library, if different from the real name]])
 
2726
_LT_DECL([], [postinstall_cmds], [2],
 
2727
    [Command to use after installation of a shared archive])
 
2728
_LT_DECL([], [postuninstall_cmds], [2],
 
2729
    [Command to use after uninstallation of a shared archive])
 
2730
_LT_DECL([], [finish_cmds], [2],
 
2731
    [Commands used to finish a libtool library installation in a directory])
 
2732
_LT_DECL([], [finish_eval], [1],
 
2733
    [[As "finish_cmds", except a single script fragment to be evaled but
 
2734
    not shown]])
 
2735
_LT_DECL([], [hardcode_into_libs], [0],
 
2736
    [Whether we should hardcode library paths into libraries])
 
2737
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
2738
    [Compile-time system search path for libraries])
 
2739
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
2740
    [Run-time system search path for libraries])
 
2741
])# _LT_SYS_DYNAMIC_LINKER
 
2742
 
 
2743
 
 
2744
# _LT_PATH_TOOL_PREFIX(TOOL)
2171
2745
# --------------------------
2172
 
# implement the --with-pic flag
2173
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2174
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2175
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2176
 
pic_mode=ifelse($#,1,$1,default)
2177
 
])# AC_LIBTOOL_PICMODE
2178
 
 
2179
 
 
2180
 
# AC_PROG_EGREP
2181
 
# -------------
2182
 
# This is predefined starting with Autoconf 2.54, so this conditional
2183
 
# definition can be removed once we require Autoconf 2.54 or later.
2184
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2185
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2186
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2187
 
    then ac_cv_prog_egrep='grep -E'
2188
 
    else ac_cv_prog_egrep='egrep'
2189
 
    fi])
2190
 
 EGREP=$ac_cv_prog_egrep
2191
 
 AC_SUBST([EGREP])
2192
 
])])
2193
 
 
2194
 
 
2195
 
# AC_PATH_TOOL_PREFIX
2196
 
# -------------------
2197
2746
# find a file program which can recognize shared library
2198
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2199
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2747
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
2748
[m4_require([_LT_DECL_EGREP])dnl
2200
2749
AC_MSG_CHECKING([for $1])
2201
2750
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2202
2751
[case $MAGIC_CMD in
2209
2758
dnl $ac_dummy forces splitting on constant user-supplied paths.
2210
2759
dnl POSIX.2 word splitting is done only on the output of word expansions,
2211
2760
dnl not every word.  This closes a longstanding sh security hole.
2212
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2761
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2213
2762
  for ac_dir in $ac_dummy; do
2214
2763
    IFS="$lt_save_ifs"
2215
2764
    test -z "$ac_dir" && ac_dir=.
2224
2773
            $EGREP "$file_magic_regex" > /dev/null; then
2225
2774
            :
2226
2775
          else
2227
 
            cat <<EOF 1>&2
 
2776
            cat <<_LT_EOF 1>&2
2228
2777
 
2229
2778
*** Warning: the command libtool uses to detect shared libraries,
2230
2779
*** $file_magic_cmd, produces output that libtool cannot recognize.
2235
2784
*** may want to report the problem to your system manager and/or to
2236
2785
*** bug-libtool@gnu.org
2237
2786
 
2238
 
EOF
 
2787
_LT_EOF
2239
2788
          fi ;;
2240
2789
        esac
2241
2790
      fi
2252
2801
else
2253
2802
  AC_MSG_RESULT(no)
2254
2803
fi
2255
 
])# AC_PATH_TOOL_PREFIX
2256
 
 
2257
 
 
2258
 
# AC_PATH_MAGIC
2259
 
# -------------
 
2804
_LT_DECL([], [MAGIC_CMD], [0],
 
2805
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
2806
])# _LT_PATH_TOOL_PREFIX
 
2807
 
 
2808
# Old name:
 
2809
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
2810
dnl aclocal-1.4 backwards compatibility:
 
2811
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
2812
 
 
2813
 
 
2814
# _LT_PATH_MAGIC
 
2815
# --------------
2260
2816
# find a file program which can recognize a shared library
2261
 
AC_DEFUN([AC_PATH_MAGIC],
2262
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2817
m4_defun([_LT_PATH_MAGIC],
 
2818
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2263
2819
if test -z "$lt_cv_path_MAGIC_CMD"; then
2264
2820
  if test -n "$ac_tool_prefix"; then
2265
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2821
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2266
2822
  else
2267
2823
    MAGIC_CMD=:
2268
2824
  fi
2269
2825
fi
2270
 
])# AC_PATH_MAGIC
2271
 
 
2272
 
 
2273
 
# AC_PROG_LD
 
2826
])# _LT_PATH_MAGIC
 
2827
 
 
2828
 
 
2829
# LT_PATH_LD
2274
2830
# ----------
2275
2831
# find the pathname to the GNU or non-GNU linker
2276
 
AC_DEFUN([AC_PROG_LD],
2277
 
[AC_ARG_WITH([gnu-ld],
2278
 
    [AC_HELP_STRING([--with-gnu-ld],
 
2832
AC_DEFUN([LT_PATH_LD],
 
2833
[AC_REQUIRE([AC_PROG_CC])dnl
 
2834
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2835
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2836
m4_require([_LT_DECL_SED])dnl
 
2837
m4_require([_LT_DECL_EGREP])dnl
 
2838
 
 
2839
AC_ARG_WITH([gnu-ld],
 
2840
    [AS_HELP_STRING([--with-gnu-ld],
2279
2841
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2280
2842
    [test "$withval" = no || with_gnu_ld=yes],
2281
 
    [with_gnu_ld=no])
2282
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2283
 
AC_REQUIRE([AC_PROG_CC])dnl
2284
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2285
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2843
    [with_gnu_ld=no])dnl
 
2844
 
2286
2845
ac_prog=ld
2287
2846
if test "$GCC" = yes; then
2288
2847
  # Check if gcc -print-prog-name=ld gives a path.
2299
2858
    [[\\/]]* | ?:[[\\/]]*)
2300
2859
      re_direlt='/[[^/]][[^/]]*/\.\./'
2301
2860
      # Canonicalize the pathname of ld
2302
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2303
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2304
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2861
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
2862
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
2863
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2305
2864
      done
2306
2865
      test -z "$LD" && LD="$ac_prog"
2307
2866
      ;;
2351
2910
  AC_MSG_RESULT(no)
2352
2911
fi
2353
2912
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2354
 
AC_PROG_LD_GNU
2355
 
])# AC_PROG_LD
2356
 
 
2357
 
 
2358
 
# AC_PROG_LD_GNU
2359
 
# --------------
2360
 
AC_DEFUN([AC_PROG_LD_GNU],
2361
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2362
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2913
_LT_PATH_LD_GNU
 
2914
AC_SUBST([LD])
 
2915
 
 
2916
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
2917
])# LT_PATH_LD
 
2918
 
 
2919
# Old names:
 
2920
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
2921
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
2922
dnl aclocal-1.4 backwards compatibility:
 
2923
dnl AC_DEFUN([AM_PROG_LD], [])
 
2924
dnl AC_DEFUN([AC_PROG_LD], [])
 
2925
 
 
2926
 
 
2927
# _LT_PATH_LD_GNU
 
2928
#- --------------
 
2929
m4_defun([_LT_PATH_LD_GNU],
 
2930
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2363
2931
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2364
2932
case `$LD -v 2>&1 </dev/null` in
2365
2933
*GNU* | *'with BFD'*)
2370
2938
  ;;
2371
2939
esac])
2372
2940
with_gnu_ld=$lt_cv_prog_gnu_ld
2373
 
])# AC_PROG_LD_GNU
2374
 
 
2375
 
 
2376
 
# AC_PROG_LD_RELOAD_FLAG
2377
 
# ----------------------
 
2941
])# _LT_PATH_LD_GNU
 
2942
 
 
2943
 
 
2944
# _LT_CMD_RELOAD
 
2945
# --------------
2378
2946
# find reload flag for linker
2379
2947
#   -- PORTME Some linkers may need a different reload flag.
2380
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2948
m4_defun([_LT_CMD_RELOAD],
2381
2949
[AC_CACHE_CHECK([for $LD option to reload object files],
2382
2950
  lt_cv_ld_reload_flag,
2383
2951
  [lt_cv_ld_reload_flag='-r'])
2396
2964
    fi
2397
2965
    ;;
2398
2966
esac
2399
 
])# AC_PROG_LD_RELOAD_FLAG
2400
 
 
2401
 
 
2402
 
# AC_DEPLIBS_CHECK_METHOD
2403
 
# -----------------------
 
2967
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
2968
_LT_DECL([], [reload_cmds], [2])dnl
 
2969
])# _LT_CMD_RELOAD
 
2970
 
 
2971
 
 
2972
# _LT_CHECK_MAGIC_METHOD
 
2973
# ----------------------
2404
2974
# how to check for library dependencies
2405
2975
#  -- PORTME fill in with the dynamic library characteristics
2406
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2407
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2976
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
2977
[m4_require([_LT_DECL_EGREP])
 
2978
m4_require([_LT_DECL_OBJDUMP])
 
2979
AC_CACHE_CHECK([how to recognize dependent libraries],
2408
2980
lt_cv_deplibs_check_method,
2409
2981
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2410
2982
lt_cv_file_magic_test_file=
2454
3026
  fi
2455
3027
  ;;
2456
3028
 
 
3029
cegcc)
 
3030
  # use the weaker test based on 'objdump'. See mingw*.
 
3031
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3032
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3033
  ;;
 
3034
 
2457
3035
darwin* | rhapsody*)
2458
3036
  lt_cv_deplibs_check_method=pass_all
2459
3037
  ;;
2460
3038
 
2461
3039
freebsd* | dragonfly*)
2462
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3040
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2463
3041
    case $host_cpu in
2464
3042
    i*86 )
2465
3043
      # Not sure whether the presence of OpenBSD here was a mistake.
2516
3094
  lt_cv_deplibs_check_method=pass_all
2517
3095
  ;;
2518
3096
 
2519
 
netbsd* | netbsdelf*-gnu)
2520
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3097
netbsd*)
 
3098
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2521
3099
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2522
3100
  else
2523
3101
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2530
3108
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2531
3109
  ;;
2532
3110
 
2533
 
nto-qnx*)
2534
 
  lt_cv_deplibs_check_method=unknown
 
3111
*nto* | *qnx*)
 
3112
  lt_cv_deplibs_check_method=pass_all
2535
3113
  ;;
2536
3114
 
2537
3115
openbsd*)
2538
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3116
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2539
3117
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2540
3118
  else
2541
3119
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2554
3132
  lt_cv_deplibs_check_method=pass_all
2555
3133
  ;;
2556
3134
 
 
3135
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3136
  lt_cv_deplibs_check_method=pass_all
 
3137
  ;;
 
3138
 
2557
3139
sysv4 | sysv4.3*)
2558
3140
  case $host_vendor in
2559
3141
  motorola)
2581
3163
  esac
2582
3164
  ;;
2583
3165
 
2584
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3166
tpf*)
2585
3167
  lt_cv_deplibs_check_method=pass_all
2586
3168
  ;;
2587
3169
esac
2589
3171
file_magic_cmd=$lt_cv_file_magic_cmd
2590
3172
deplibs_check_method=$lt_cv_deplibs_check_method
2591
3173
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2592
 
])# AC_DEPLIBS_CHECK_METHOD
2593
 
 
2594
 
 
2595
 
# AC_PROG_NM
 
3174
 
 
3175
_LT_DECL([], [deplibs_check_method], [1],
 
3176
    [Method to check whether dependent libraries are shared objects])
 
3177
_LT_DECL([], [file_magic_cmd], [1],
 
3178
    [Command to use when deplibs_check_method == "file_magic"])
 
3179
])# _LT_CHECK_MAGIC_METHOD
 
3180
 
 
3181
 
 
3182
# LT_PATH_NM
2596
3183
# ----------
2597
 
# find the pathname to a BSD-compatible name lister
2598
 
AC_DEFUN([AC_PROG_NM],
2599
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3184
# find the pathname to a BSD- or MS-compatible name lister
 
3185
AC_DEFUN([LT_PATH_NM],
 
3186
[AC_REQUIRE([AC_PROG_CC])dnl
 
3187
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2600
3188
[if test -n "$NM"; then
2601
3189
  # Let the user override the test.
2602
3190
  lt_cv_path_NM="$NM"
2638
3226
    done
2639
3227
    IFS="$lt_save_ifs"
2640
3228
  done
2641
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3229
  : ${lt_cv_path_NM=no}
2642
3230
fi])
2643
 
NM="$lt_cv_path_NM"
2644
 
])# AC_PROG_NM
2645
 
 
2646
 
 
2647
 
# AC_CHECK_LIBM
2648
 
# -------------
 
3231
if test "$lt_cv_path_NM" != "no"; then
 
3232
  NM="$lt_cv_path_NM"
 
3233
else
 
3234
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
3235
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3236
  AC_SUBST([DUMPBIN])
 
3237
  if test "$DUMPBIN" != ":"; then
 
3238
    NM="$DUMPBIN"
 
3239
  fi
 
3240
fi
 
3241
test -z "$NM" && NM=nm
 
3242
AC_SUBST([NM])
 
3243
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
3244
 
 
3245
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
3246
  [lt_cv_nm_interface="BSD nm"
 
3247
  echo "int some_variable = 0;" > conftest.$ac_ext
 
3248
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3249
  (eval "$ac_compile" 2>conftest.err)
 
3250
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3251
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3252
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
3253
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3254
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3255
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
3256
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
3257
    lt_cv_nm_interface="MS dumpbin"
 
3258
  fi
 
3259
  rm -f conftest*])
 
3260
])# LT_PATH_NM
 
3261
 
 
3262
# Old names:
 
3263
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
3264
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
3265
dnl aclocal-1.4 backwards compatibility:
 
3266
dnl AC_DEFUN([AM_PROG_NM], [])
 
3267
dnl AC_DEFUN([AC_PROG_NM], [])
 
3268
 
 
3269
 
 
3270
# LT_LIB_M
 
3271
# --------
2649
3272
# check for math library
2650
 
AC_DEFUN([AC_CHECK_LIBM],
 
3273
AC_DEFUN([LT_LIB_M],
2651
3274
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2652
3275
LIBM=
2653
3276
case $host in
2662
3285
  AC_CHECK_LIB(m, cos, LIBM="-lm")
2663
3286
  ;;
2664
3287
esac
2665
 
])# AC_CHECK_LIBM
2666
 
 
2667
 
 
2668
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2669
 
# -----------------------------------
2670
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
2671
 
# LTDLINCL to the include flags for the libltdl header and adds
2672
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2673
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2674
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2675
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2676
 
# (note the single quotes!).  If your package is not flat and you're not
2677
 
# using automake, define top_builddir and top_srcdir appropriately in
2678
 
# the Makefiles.
2679
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2680
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2681
 
  case $enable_ltdl_convenience in
2682
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2683
 
  "") enable_ltdl_convenience=yes
2684
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2685
 
  esac
2686
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2687
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2688
 
  # For backwards non-gettext consistent compatibility...
2689
 
  INCLTDL="$LTDLINCL"
2690
 
])# AC_LIBLTDL_CONVENIENCE
2691
 
 
2692
 
 
2693
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2694
 
# -----------------------------------
2695
 
# sets LIBLTDL to the link flags for the libltdl installable library and
2696
 
# LTDLINCL to the include flags for the libltdl header and adds
2697
 
# --enable-ltdl-install to the configure arguments.  Note that
2698
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2699
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2700
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2701
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2702
 
# flat and you're not using automake, define top_builddir and top_srcdir
2703
 
# appropriately in the Makefiles.
2704
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2705
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2706
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2707
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
2708
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2709
 
  [if test x"$enable_ltdl_install" = xno; then
2710
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
2711
 
   else
2712
 
     enable_ltdl_install=yes
2713
 
   fi
2714
 
  ])
2715
 
  if test x"$enable_ltdl_install" = x"yes"; then
2716
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2717
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2718
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2719
 
  else
2720
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2721
 
    LIBLTDL="-lltdl"
2722
 
    LTDLINCL=
2723
 
  fi
2724
 
  # For backwards non-gettext consistent compatibility...
2725
 
  INCLTDL="$LTDLINCL"
2726
 
])# AC_LIBLTDL_INSTALLABLE
2727
 
 
2728
 
 
2729
 
# AC_LIBTOOL_CXX
2730
 
# --------------
2731
 
# enable support for C++ libraries
2732
 
AC_DEFUN([AC_LIBTOOL_CXX],
2733
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
2734
 
])# AC_LIBTOOL_CXX
2735
 
 
2736
 
 
2737
 
# _LT_AC_LANG_CXX
2738
 
# ---------------
2739
 
AC_DEFUN([_LT_AC_LANG_CXX],
2740
 
[AC_REQUIRE([AC_PROG_CXX])
2741
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2742
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2743
 
])# _LT_AC_LANG_CXX
2744
 
 
2745
 
# _LT_AC_PROG_CXXCPP
2746
 
# ------------------
2747
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2748
 
[
2749
 
AC_REQUIRE([AC_PROG_CXX])
2750
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2751
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2752
 
    (test "X$CXX" != "Xg++"))) ; then
2753
 
  AC_PROG_CXXCPP
2754
 
fi
2755
 
])# _LT_AC_PROG_CXXCPP
2756
 
 
2757
 
# AC_LIBTOOL_F77
2758
 
# --------------
2759
 
# enable support for Fortran 77 libraries
2760
 
AC_DEFUN([AC_LIBTOOL_F77],
2761
 
[AC_REQUIRE([_LT_AC_LANG_F77])
2762
 
])# AC_LIBTOOL_F77
2763
 
 
2764
 
 
2765
 
# _LT_AC_LANG_F77
2766
 
# ---------------
2767
 
AC_DEFUN([_LT_AC_LANG_F77],
2768
 
[AC_REQUIRE([AC_PROG_F77])
2769
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2770
 
])# _LT_AC_LANG_F77
2771
 
 
2772
 
 
2773
 
# AC_LIBTOOL_GCJ
2774
 
# --------------
2775
 
# enable support for GCJ libraries
2776
 
AC_DEFUN([AC_LIBTOOL_GCJ],
2777
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2778
 
])# AC_LIBTOOL_GCJ
2779
 
 
2780
 
 
2781
 
# _LT_AC_LANG_GCJ
2782
 
# ---------------
2783
 
AC_DEFUN([_LT_AC_LANG_GCJ],
2784
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2785
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2786
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2787
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2788
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2789
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2790
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2791
 
])# _LT_AC_LANG_GCJ
2792
 
 
2793
 
 
2794
 
# AC_LIBTOOL_RC
2795
 
# -------------
2796
 
# enable support for Windows resource files
2797
 
AC_DEFUN([AC_LIBTOOL_RC],
2798
 
[AC_REQUIRE([LT_AC_PROG_RC])
2799
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2800
 
])# AC_LIBTOOL_RC
2801
 
 
2802
 
 
2803
 
# AC_LIBTOOL_LANG_C_CONFIG
2804
 
# ------------------------
2805
 
# Ensure that the configuration vars for the C compiler are
2806
 
# suitably defined.  Those variables are subsequently used by
2807
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2808
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2809
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2810
 
[lt_save_CC="$CC"
2811
 
AC_LANG_PUSH(C)
2812
 
 
2813
 
# Source file extension for C test sources.
2814
 
ac_ext=c
2815
 
 
2816
 
# Object file extension for compiled C test sources.
2817
 
objext=o
2818
 
_LT_AC_TAGVAR(objext, $1)=$objext
2819
 
 
2820
 
# Code to be used in simple compile tests
2821
 
lt_simple_compile_test_code="int some_variable = 0;"
2822
 
 
2823
 
# Code to be used in simple link tests
2824
 
lt_simple_link_test_code='int main(){return(0);}'
2825
 
 
2826
 
_LT_AC_SYS_COMPILER
2827
 
 
2828
 
# save warnings/boilerplate of simple test code
2829
 
_LT_COMPILER_BOILERPLATE
2830
 
_LT_LINKER_BOILERPLATE
2831
 
 
2832
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2833
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2834
 
AC_LIBTOOL_PROG_CC_C_O($1)
2835
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2836
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2837
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2838
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2839
 
AC_LIBTOOL_SYS_LIB_STRIP
2840
 
AC_LIBTOOL_DLOPEN_SELF
2841
 
 
2842
 
# Report which library types will actually be built
2843
 
AC_MSG_CHECKING([if libtool supports shared libraries])
2844
 
AC_MSG_RESULT([$can_build_shared])
2845
 
 
2846
 
AC_MSG_CHECKING([whether to build shared libraries])
2847
 
test "$can_build_shared" = "no" && enable_shared=no
2848
 
 
2849
 
# On AIX, shared libraries and static libraries use the same namespace, and
2850
 
# are all built from PIC.
2851
 
case $host_os in
2852
 
aix3*)
2853
 
  test "$enable_shared" = yes && enable_static=no
2854
 
  if test -n "$RANLIB"; then
2855
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
2856
 
    postinstall_cmds='$RANLIB $lib'
2857
 
  fi
2858
 
  ;;
2859
 
 
2860
 
aix[[4-9]]*)
2861
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2862
 
    test "$enable_shared" = yes && enable_static=no
2863
 
  fi
2864
 
    ;;
2865
 
esac
2866
 
AC_MSG_RESULT([$enable_shared])
2867
 
 
2868
 
AC_MSG_CHECKING([whether to build static libraries])
2869
 
# Make sure either enable_shared or enable_static is yes.
2870
 
test "$enable_shared" = yes || enable_static=yes
2871
 
AC_MSG_RESULT([$enable_static])
2872
 
 
2873
 
AC_LIBTOOL_CONFIG($1)
2874
 
 
2875
 
AC_LANG_POP
2876
 
CC="$lt_save_CC"
2877
 
])# AC_LIBTOOL_LANG_C_CONFIG
2878
 
 
2879
 
 
2880
 
# AC_LIBTOOL_LANG_CXX_CONFIG
2881
 
# --------------------------
2882
 
# Ensure that the configuration vars for the C compiler are
2883
 
# suitably defined.  Those variables are subsequently used by
2884
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2885
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2886
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2887
 
[AC_LANG_PUSH(C++)
2888
 
AC_REQUIRE([AC_PROG_CXX])
2889
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2890
 
 
2891
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2892
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2893
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2894
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2895
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2896
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2897
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2898
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2899
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2900
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2901
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2902
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2903
 
_LT_AC_TAGVAR(module_cmds, $1)=
2904
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2905
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2906
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2907
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2908
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2909
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2910
 
 
2911
 
# Dependencies to place before and after the object being linked:
2912
 
_LT_AC_TAGVAR(predep_objects, $1)=
2913
 
_LT_AC_TAGVAR(postdep_objects, $1)=
2914
 
_LT_AC_TAGVAR(predeps, $1)=
2915
 
_LT_AC_TAGVAR(postdeps, $1)=
2916
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2917
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2918
 
 
2919
 
# Source file extension for C++ test sources.
2920
 
ac_ext=cpp
2921
 
 
2922
 
# Object file extension for compiled C++ test sources.
2923
 
objext=o
2924
 
_LT_AC_TAGVAR(objext, $1)=$objext
2925
 
 
2926
 
# Code to be used in simple compile tests
2927
 
lt_simple_compile_test_code="int some_variable = 0;"
2928
 
 
2929
 
# Code to be used in simple link tests
2930
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2931
 
 
2932
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2933
 
_LT_AC_SYS_COMPILER
2934
 
 
2935
 
# save warnings/boilerplate of simple test code
2936
 
_LT_COMPILER_BOILERPLATE
2937
 
_LT_LINKER_BOILERPLATE
2938
 
 
2939
 
# Allow CC to be a program name with arguments.
2940
 
lt_save_CC=$CC
2941
 
lt_save_LD=$LD
2942
 
lt_save_GCC=$GCC
2943
 
GCC=$GXX
2944
 
lt_save_with_gnu_ld=$with_gnu_ld
2945
 
lt_save_path_LD=$lt_cv_path_LD
2946
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2947
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2948
 
else
2949
 
  $as_unset lt_cv_prog_gnu_ld
2950
 
fi
2951
 
if test -n "${lt_cv_path_LDCXX+set}"; then
2952
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
2953
 
else
2954
 
  $as_unset lt_cv_path_LD
2955
 
fi
2956
 
test -z "${LDCXX+set}" || LD=$LDCXX
2957
 
CC=${CXX-"c++"}
2958
 
compiler=$CC
2959
 
_LT_AC_TAGVAR(compiler, $1)=$CC
2960
 
_LT_CC_BASENAME([$compiler])
2961
 
 
2962
 
# We don't want -fno-exception wen compiling C++ code, so set the
2963
 
# no_builtin_flag separately
2964
 
if test "$GXX" = yes; then
2965
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2966
 
else
2967
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2968
 
fi
2969
 
 
2970
 
if test "$GXX" = yes; then
2971
 
  # Set up default GNU C++ configuration
2972
 
 
2973
 
  AC_PROG_LD
2974
 
 
2975
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
2976
 
  # archiving commands below assume that GNU ld is being used.
2977
 
  if test "$with_gnu_ld" = yes; then
2978
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2979
 
    _LT_AC_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'
2980
 
 
2981
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2982
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2983
 
 
2984
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
2985
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2986
 
    #     investigate it a little bit more. (MM)
2987
 
    wlarc='${wl}'
2988
 
 
2989
 
    # ancient GNU ld didn't support --whole-archive et. al.
2990
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2991
 
        grep 'no-whole-archive' > /dev/null; then
2992
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2993
 
    else
2994
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2995
 
    fi
2996
 
  else
2997
 
    with_gnu_ld=no
2998
 
    wlarc=
2999
 
 
3000
 
    # A generic and very simple default shared library creation
3001
 
    # command for GNU C++ for the case where it uses the native
3002
 
    # linker, instead of GNU ld.  If possible, this setting should
3003
 
    # overridden to take advantage of the native linker features on
3004
 
    # the platform it is being used on.
3005
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3006
 
  fi
3007
 
 
3008
 
  # Commands to make compiler produce verbose output that lists
3009
 
  # what "hidden" libraries, object files and flags are used when
3010
 
  # linking a shared library.
3011
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3012
 
 
3013
 
else
3014
 
  GXX=no
3015
 
  with_gnu_ld=no
3016
 
  wlarc=
3017
 
fi
3018
 
 
3019
 
# PORTME: fill in a description of your system's C++ link characteristics
3020
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3021
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3022
 
case $host_os in
3023
 
  aix3*)
3024
 
    # FIXME: insert proper C++ library support
3025
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3026
 
    ;;
3027
 
  aix[[4-9]]*)
3028
 
    if test "$host_cpu" = ia64; then
3029
 
      # On IA64, the linker does run time linking by default, so we don't
3030
 
      # have to do anything special.
3031
 
      aix_use_runtimelinking=no
3032
 
      exp_sym_flag='-Bexport'
3033
 
      no_entry_flag=""
3034
 
    else
3035
 
      aix_use_runtimelinking=no
3036
 
 
3037
 
      # Test if we are trying to use run time linking or normal
3038
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3039
 
      # need to do runtime linking.
3040
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3041
 
        for ld_flag in $LDFLAGS; do
3042
 
          case $ld_flag in
3043
 
          *-brtl*)
3044
 
            aix_use_runtimelinking=yes
3045
 
            break
3046
 
            ;;
3047
 
          esac
3048
 
        done
3049
 
        ;;
3050
 
      esac
3051
 
 
3052
 
      exp_sym_flag='-bexport'
3053
 
      no_entry_flag='-bnoentry'
3054
 
    fi
3055
 
 
3056
 
    # When large executables or shared objects are built, AIX ld can
3057
 
    # have problems creating the table of contents.  If linking a library
3058
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3059
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3060
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3061
 
 
3062
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3063
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3064
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3065
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3066
 
 
3067
 
    if test "$GXX" = yes; then
3068
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3069
 
      # We only want to do this on AIX 4.2 and lower, the check
3070
 
      # below for broken collect2 doesn't work under 4.3+
3071
 
        collect2name=`${CC} -print-prog-name=collect2`
3072
 
        if test -f "$collect2name" && \
3073
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3074
 
        then
3075
 
          # We have reworked collect2
3076
 
          :
3077
 
        else
3078
 
          # We have old collect2
3079
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3080
 
          # It fails to find uninstalled libraries when the uninstalled
3081
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3082
 
          # to unsupported forces relinking
3083
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3084
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3085
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3086
 
        fi
3087
 
        ;;
3088
 
      esac
3089
 
      shared_flag='-shared'
3090
 
      if test "$aix_use_runtimelinking" = yes; then
3091
 
        shared_flag="$shared_flag "'${wl}-G'
3092
 
      fi
3093
 
    else
3094
 
      # not using gcc
3095
 
      if test "$host_cpu" = ia64; then
3096
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3097
 
        # chokes on -Wl,-G. The following line is correct:
3098
 
        shared_flag='-G'
3099
 
      else
3100
 
        if test "$aix_use_runtimelinking" = yes; then
3101
 
          shared_flag='${wl}-G'
3102
 
        else
3103
 
          shared_flag='${wl}-bM:SRE'
3104
 
        fi
3105
 
      fi
3106
 
    fi
3107
 
 
3108
 
    # It seems that -bexpall does not export symbols beginning with
3109
 
    # underscore (_), so it is better to generate a list of symbols to export.
3110
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3111
 
    if test "$aix_use_runtimelinking" = yes; then
3112
 
      # Warning - without using the other runtime loading flags (-brtl),
3113
 
      # -berok will link without error, but may produce a broken library.
3114
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3115
 
      # Determine the default libpath from the value encoded in an empty executable.
3116
 
      _LT_AC_SYS_LIBPATH_AIX
3117
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3118
 
 
3119
 
      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3120
 
     else
3121
 
      if test "$host_cpu" = ia64; then
3122
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3123
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3124
 
        _LT_AC_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"
3125
 
      else
3126
 
        # Determine the default libpath from the value encoded in an empty executable.
3127
 
        _LT_AC_SYS_LIBPATH_AIX
3128
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3129
 
        # Warning - without using the other run time loading flags,
3130
 
        # -berok will link without error, but may produce a broken library.
3131
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3132
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3133
 
        # Exported symbols can be pulled into shared objects from archives
3134
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3135
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3136
 
        # This is similar to how AIX traditionally builds its shared libraries.
3137
 
        _LT_AC_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'
3138
 
      fi
3139
 
    fi
3140
 
    ;;
3141
 
 
3142
 
  beos*)
3143
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3144
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3145
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3146
 
      # support --undefined.  This deserves some investigation.  FIXME
3147
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148
 
    else
3149
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3150
 
    fi
3151
 
    ;;
3152
 
 
3153
 
  chorus*)
3154
 
    case $cc_basename in
3155
 
      *)
3156
 
        # FIXME: insert proper C++ library support
3157
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3158
 
        ;;
3159
 
    esac
3160
 
    ;;
3161
 
 
3162
 
  cygwin* | mingw* | pw32*)
3163
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3164
 
    # as there is no search path for DLLs.
3165
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3166
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3167
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3168
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3169
 
 
3170
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3171
 
      _LT_AC_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'
3172
 
      # If the export-symbols file already is a .def file (1st line
3173
 
      # is EXPORTS), use it as is; otherwise, prepend...
3174
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3175
 
        cp $export_symbols $output_objdir/$soname.def;
3176
 
      else
3177
 
        echo EXPORTS > $output_objdir/$soname.def;
3178
 
        cat $export_symbols >> $output_objdir/$soname.def;
3179
 
      fi~
3180
 
      $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'
3181
 
    else
3182
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3183
 
    fi
3184
 
  ;;
3185
 
      darwin* | rhapsody*)
3186
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3187
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3188
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3189
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3190
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3191
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3192
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
 
      if test "$GXX" = yes ; then
3194
 
      output_verbose_link_cmd='echo'
3195
 
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3196
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3198
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3199
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3201
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3202
 
      fi
3203
 
      else
3204
 
      case $cc_basename in
3205
 
        xlc*)
3206
 
         output_verbose_link_cmd='echo'
3207
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3208
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3211
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3212
 
          ;;
3213
 
       *)
3214
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3215
 
          ;;
3216
 
      esac
3217
 
      fi
3218
 
        ;;
3219
 
 
3220
 
  dgux*)
3221
 
    case $cc_basename in
3222
 
      ec++*)
3223
 
        # FIXME: insert proper C++ library support
3224
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225
 
        ;;
3226
 
      ghcx*)
3227
 
        # Green Hills C++ Compiler
3228
 
        # FIXME: insert proper C++ library support
3229
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3230
 
        ;;
3231
 
      *)
3232
 
        # FIXME: insert proper C++ library support
3233
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3234
 
        ;;
3235
 
    esac
3236
 
    ;;
3237
 
  freebsd[[12]]*)
3238
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3239
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3240
 
    ;;
3241
 
  freebsd-elf*)
3242
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3243
 
    ;;
3244
 
  freebsd* | dragonfly*)
3245
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3246
 
    # conventions
3247
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3248
 
    ;;
3249
 
  gnu*)
3250
 
    ;;
3251
 
  hpux9*)
3252
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3253
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3254
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3255
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3256
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3257
 
                                # but as the default
3258
 
                                # location of the library.
3259
 
 
3260
 
    case $cc_basename in
3261
 
    CC*)
3262
 
      # FIXME: insert proper C++ library support
3263
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3264
 
      ;;
3265
 
    aCC*)
3266
 
      _LT_AC_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'
3267
 
      # Commands to make compiler produce verbose output that lists
3268
 
      # what "hidden" libraries, object files and flags are used when
3269
 
      # linking a shared library.
3270
 
      #
3271
 
      # There doesn't appear to be a way to prevent this compiler from
3272
 
      # explicitly linking system object files so we need to strip them
3273
 
      # from the output so that they don't get included in the library
3274
 
      # dependencies.
3275
 
      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 $list'
3276
 
      ;;
3277
 
    *)
3278
 
      if test "$GXX" = yes; then
3279
 
        _LT_AC_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'
3280
 
      else
3281
 
        # FIXME: insert proper C++ library support
3282
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3283
 
      fi
3284
 
      ;;
3285
 
    esac
3286
 
    ;;
3287
 
  hpux10*|hpux11*)
3288
 
    if test $with_gnu_ld = no; then
3289
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3290
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3291
 
 
3292
 
      case $host_cpu in
3293
 
      hppa*64*|ia64*) ;;
3294
 
      *)
3295
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3296
 
        ;;
3297
 
      esac
3298
 
    fi
3299
 
    case $host_cpu in
3300
 
    hppa*64*|ia64*)
3301
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3302
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3303
 
      ;;
3304
 
    *)
3305
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3306
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3307
 
                                              # but as the default
3308
 
                                              # location of the library.
3309
 
      ;;
3310
 
    esac
3311
 
 
3312
 
    case $cc_basename in
3313
 
      CC*)
3314
 
        # FIXME: insert proper C++ library support
3315
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3316
 
        ;;
3317
 
      aCC*)
3318
 
        case $host_cpu in
3319
 
        hppa*64*)
3320
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3321
 
          ;;
3322
 
        ia64*)
3323
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3324
 
          ;;
3325
 
        *)
3326
 
          _LT_AC_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'
3327
 
          ;;
3328
 
        esac
3329
 
        # Commands to make compiler produce verbose output that lists
3330
 
        # what "hidden" libraries, object files and flags are used when
3331
 
        # linking a shared library.
3332
 
        #
3333
 
        # There doesn't appear to be a way to prevent this compiler from
3334
 
        # explicitly linking system object files so we need to strip them
3335
 
        # from the output so that they don't get included in the library
3336
 
        # dependencies.
3337
 
        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 $list'
3338
 
        ;;
3339
 
      *)
3340
 
        if test "$GXX" = yes; then
3341
 
          if test $with_gnu_ld = no; then
3342
 
            case $host_cpu in
3343
 
            hppa*64*)
3344
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3345
 
              ;;
3346
 
            ia64*)
3347
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3348
 
              ;;
3349
 
            *)
3350
 
              _LT_AC_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'
3351
 
              ;;
3352
 
            esac
3353
 
          fi
3354
 
        else
3355
 
          # FIXME: insert proper C++ library support
3356
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3357
 
        fi
3358
 
        ;;
3359
 
    esac
3360
 
    ;;
3361
 
  interix[[3-9]]*)
3362
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3363
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3364
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3365
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3366
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3367
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3368
 
    # default) and relocated if they conflict, which is a slow very memory
3369
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3370
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3371
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3372
 
    _LT_AC_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'
3373
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3374
 
    ;;
3375
 
  irix5* | irix6*)
3376
 
    case $cc_basename in
3377
 
      CC*)
3378
 
        # SGI C++
3379
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3380
 
 
3381
 
        # Archives containing C++ object files must be created using
3382
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3383
 
        # necessary to make sure instantiated templates are included
3384
 
        # in the archive.
3385
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3386
 
        ;;
3387
 
      *)
3388
 
        if test "$GXX" = yes; then
3389
 
          if test "$with_gnu_ld" = no; then
3390
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3391
 
          else
3392
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3393
 
          fi
3394
 
        fi
3395
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3396
 
        ;;
3397
 
    esac
3398
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3399
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3400
 
    ;;
3401
 
  linux* | k*bsd*-gnu)
3402
 
    case $cc_basename in
3403
 
      KCC*)
3404
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3405
 
 
3406
 
        # KCC will only create a shared library if the output file
3407
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3408
 
        # to its proper name (with version) after linking.
3409
 
        _LT_AC_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'
3410
 
        _LT_AC_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'
3411
 
        # Commands to make compiler produce verbose output that lists
3412
 
        # what "hidden" libraries, object files and flags are used when
3413
 
        # linking a shared library.
3414
 
        #
3415
 
        # There doesn't appear to be a way to prevent this compiler from
3416
 
        # explicitly linking system object files so we need to strip them
3417
 
        # from the output so that they don't get included in the library
3418
 
        # dependencies.
3419
 
        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 $list'
3420
 
 
3421
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3422
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3423
 
 
3424
 
        # Archives containing C++ object files must be created using
3425
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3426
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3427
 
        ;;
3428
 
      icpc*)
3429
 
        # Intel C++
3430
 
        with_gnu_ld=yes
3431
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3432
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3433
 
        # earlier do not add the objects themselves.
3434
 
        case `$CC -V 2>&1` in
3435
 
        *"Version 7."*)
3436
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3437
 
          _LT_AC_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'
3438
 
          ;;
3439
 
        *)  # Version 8.0 or newer
3440
 
          tmp_idyn=
3441
 
          case $host_cpu in
3442
 
            ia64*) tmp_idyn=' -i_dynamic';;
3443
 
          esac
3444
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445
 
          _LT_AC_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'
3446
 
          ;;
3447
 
        esac
3448
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3449
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3452
 
        ;;
3453
 
      pgCC* | pgcpp*)
3454
 
        # Portland Group C++ compiler
3455
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3456
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3457
 
 
3458
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3459
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3460
 
        _LT_AC_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'
3461
 
        ;;
3462
 
      cxx*)
3463
 
        # Compaq C++
3464
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3465
 
        _LT_AC_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'
3466
 
 
3467
 
        runpath_var=LD_RUN_PATH
3468
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3469
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3470
 
 
3471
 
        # Commands to make compiler produce verbose output that lists
3472
 
        # what "hidden" libraries, object files and flags are used when
3473
 
        # linking a shared library.
3474
 
        #
3475
 
        # There doesn't appear to be a way to prevent this compiler from
3476
 
        # explicitly linking system object files so we need to strip them
3477
 
        # from the output so that they don't get included in the library
3478
 
        # dependencies.
3479
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3480
 
        ;;
3481
 
      *)
3482
 
        case `$CC -V 2>&1 | sed 5q` in
3483
 
        *Sun\ C*)
3484
 
          # Sun C++ 5.9
3485
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3488
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3490
 
 
3491
 
          # Not sure whether something based on
3492
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3493
 
          # would be better.
3494
 
          output_verbose_link_cmd='echo'
3495
 
 
3496
 
          # Archives containing C++ object files must be created using
3497
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3498
 
          # necessary to make sure instantiated templates are included
3499
 
          # in the archive.
3500
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3501
 
          ;;
3502
 
        esac
3503
 
        ;;
3504
 
    esac
3505
 
    ;;
3506
 
  lynxos*)
3507
 
    # FIXME: insert proper C++ library support
3508
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3509
 
    ;;
3510
 
  m88k*)
3511
 
    # FIXME: insert proper C++ library support
3512
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3513
 
    ;;
3514
 
  mvs*)
3515
 
    case $cc_basename in
3516
 
      cxx*)
3517
 
        # FIXME: insert proper C++ library support
3518
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3519
 
        ;;
3520
 
      *)
3521
 
        # FIXME: insert proper C++ library support
3522
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3523
 
        ;;
3524
 
    esac
3525
 
    ;;
3526
 
  netbsd* | netbsdelf*-gnu)
3527
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3528
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3529
 
      wlarc=
3530
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3531
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3532
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533
 
    fi
3534
 
    # Workaround some broken pre-1.5 toolchains
3535
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3536
 
    ;;
3537
 
  openbsd2*)
3538
 
    # C++ shared libraries are fairly broken
3539
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3540
 
    ;;
3541
 
  openbsd*)
3542
 
    if test -f /usr/libexec/ld.so; then
3543
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3549
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3551
 
      fi
3552
 
      output_verbose_link_cmd='echo'
3553
 
    else
3554
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3555
 
    fi
3556
 
    ;;
3557
 
  osf3*)
3558
 
    case $cc_basename in
3559
 
      KCC*)
3560
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3561
 
 
3562
 
        # KCC will only create a shared library if the output file
3563
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3564
 
        # to its proper name (with version) after linking.
3565
 
        _LT_AC_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'
3566
 
 
3567
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3568
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3569
 
 
3570
 
        # Archives containing C++ object files must be created using
3571
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3572
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3573
 
 
3574
 
        ;;
3575
 
      RCC*)
3576
 
        # Rational C++ 2.4.1
3577
 
        # FIXME: insert proper C++ library support
3578
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3579
 
        ;;
3580
 
      cxx*)
3581
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3582
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3583
 
 
3584
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3585
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3586
 
 
3587
 
        # Commands to make compiler produce verbose output that lists
3588
 
        # what "hidden" libraries, object files and flags are used when
3589
 
        # linking a shared library.
3590
 
        #
3591
 
        # There doesn't appear to be a way to prevent this compiler from
3592
 
        # explicitly linking system object files so we need to strip them
3593
 
        # from the output so that they don't get included in the library
3594
 
        # dependencies.
3595
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3596
 
        ;;
3597
 
      *)
3598
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3599
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3600
 
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3601
 
 
3602
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3603
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3604
 
 
3605
 
          # Commands to make compiler produce verbose output that lists
3606
 
          # what "hidden" libraries, object files and flags are used when
3607
 
          # linking a shared library.
3608
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3609
 
 
3610
 
        else
3611
 
          # FIXME: insert proper C++ library support
3612
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3613
 
        fi
3614
 
        ;;
3615
 
    esac
3616
 
    ;;
3617
 
  osf4* | osf5*)
3618
 
    case $cc_basename in
3619
 
      KCC*)
3620
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3621
 
 
3622
 
        # KCC will only create a shared library if the output file
3623
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3624
 
        # to its proper name (with version) after linking.
3625
 
        _LT_AC_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'
3626
 
 
3627
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3628
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3629
 
 
3630
 
        # Archives containing C++ object files must be created using
3631
 
        # the KAI C++ compiler.
3632
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3633
 
        ;;
3634
 
      RCC*)
3635
 
        # Rational C++ 2.4.1
3636
 
        # FIXME: insert proper C++ library support
3637
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3638
 
        ;;
3639
 
      cxx*)
3640
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3641
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3642
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3643
 
          echo "-hidden">> $lib.exp~
3644
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3645
 
          $rm $lib.exp'
3646
 
 
3647
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3648
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3649
 
 
3650
 
        # Commands to make compiler produce verbose output that lists
3651
 
        # what "hidden" libraries, object files and flags are used when
3652
 
        # linking a shared library.
3653
 
        #
3654
 
        # There doesn't appear to be a way to prevent this compiler from
3655
 
        # explicitly linking system object files so we need to strip them
3656
 
        # from the output so that they don't get included in the library
3657
 
        # dependencies.
3658
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3659
 
        ;;
3660
 
      *)
3661
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3662
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3663
 
         _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3664
 
 
3665
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3666
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3667
 
 
3668
 
          # Commands to make compiler produce verbose output that lists
3669
 
          # what "hidden" libraries, object files and flags are used when
3670
 
          # linking a shared library.
3671
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3672
 
 
3673
 
        else
3674
 
          # FIXME: insert proper C++ library support
3675
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3676
 
        fi
3677
 
        ;;
3678
 
    esac
3679
 
    ;;
3680
 
  psos*)
3681
 
    # FIXME: insert proper C++ library support
3682
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683
 
    ;;
3684
 
  sunos4*)
3685
 
    case $cc_basename in
3686
 
      CC*)
3687
 
        # Sun C++ 4.x
3688
 
        # FIXME: insert proper C++ library support
3689
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3690
 
        ;;
3691
 
      lcc*)
3692
 
        # Lucid
3693
 
        # FIXME: insert proper C++ library support
3694
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3695
 
        ;;
3696
 
      *)
3697
 
        # FIXME: insert proper C++ library support
3698
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3699
 
        ;;
3700
 
    esac
3701
 
    ;;
3702
 
  solaris*)
3703
 
    case $cc_basename in
3704
 
      CC*)
3705
 
        # Sun C++ 4.2, 5.x and Centerline C++
3706
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3707
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3708
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3709
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3710
 
        $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'
3711
 
 
3712
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3713
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
 
        case $host_os in
3715
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3716
 
          *)
3717
 
            # The compiler driver will combine and reorder linker options,
3718
 
            # but understands `-z linker_flag'.
3719
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3720
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3721
 
            ;;
3722
 
        esac
3723
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3724
 
 
3725
 
        output_verbose_link_cmd='echo'
3726
 
 
3727
 
        # Archives containing C++ object files must be created using
3728
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3729
 
        # necessary to make sure instantiated templates are included
3730
 
        # in the archive.
3731
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3732
 
        ;;
3733
 
      gcx*)
3734
 
        # Green Hills C++ Compiler
3735
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3736
 
 
3737
 
        # The C++ compiler must be used to create the archive.
3738
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3739
 
        ;;
3740
 
      *)
3741
 
        # GNU C++ compiler with Solaris linker
3742
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3743
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3744
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
3745
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3746
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3747
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3748
 
 
3749
 
            # Commands to make compiler produce verbose output that lists
3750
 
            # what "hidden" libraries, object files and flags are used when
3751
 
            # linking a shared library.
3752
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3753
 
          else
3754
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3755
 
            # platform.
3756
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3757
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3758
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3759
 
 
3760
 
            # Commands to make compiler produce verbose output that lists
3761
 
            # what "hidden" libraries, object files and flags are used when
3762
 
            # linking a shared library.
3763
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3764
 
          fi
3765
 
 
3766
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3767
 
          case $host_os in
3768
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3769
 
          *)
3770
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3771
 
            ;;
3772
 
          esac
3773
 
        fi
3774
 
        ;;
3775
 
    esac
3776
 
    ;;
3777
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3778
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3779
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3780
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3781
 
    runpath_var='LD_RUN_PATH'
3782
 
 
3783
 
    case $cc_basename in
3784
 
      CC*)
3785
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3787
 
        ;;
3788
 
      *)
3789
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3791
 
        ;;
3792
 
    esac
3793
 
    ;;
3794
 
  sysv5* | sco3.2v5* | sco5v6*)
3795
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3796
 
    # link with -lc, and that would cause any symbols used from libc to
3797
 
    # always be unresolved, which means just about no library would
3798
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3799
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3800
 
    # as -z defs.
3801
 
    # For security reasons, it is highly recommended that you always
3802
 
    # use absolute paths for naming shared libraries, and exclude the
3803
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3804
 
    # requires that you compile everything twice, which is a pain.
3805
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3806
 
    # non-empty value in the environment.  Most likely only useful for
3807
 
    # creating official distributions of packages.
3808
 
    # This is a hack until libtool officially supports absolute path
3809
 
    # names for shared libraries.
3810
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3811
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3812
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3813
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3814
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3815
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3818
 
    runpath_var='LD_RUN_PATH'
3819
 
 
3820
 
    case $cc_basename in
3821
 
      CC*)
3822
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3824
 
        ;;
3825
 
      *)
3826
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3828
 
        ;;
3829
 
    esac
3830
 
    ;;
3831
 
  tandem*)
3832
 
    case $cc_basename in
3833
 
      NCC*)
3834
 
        # NonStop-UX NCC 3.20
3835
 
        # FIXME: insert proper C++ library support
3836
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3837
 
        ;;
3838
 
      *)
3839
 
        # FIXME: insert proper C++ library support
3840
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3841
 
        ;;
3842
 
    esac
3843
 
    ;;
3844
 
  vxworks*)
3845
 
    # FIXME: insert proper C++ library support
3846
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3847
 
    ;;
3848
 
  *)
3849
 
    # FIXME: insert proper C++ library support
3850
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3851
 
    ;;
3852
 
esac
3853
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3854
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3855
 
 
3856
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3857
 
_LT_AC_TAGVAR(LD, $1)="$LD"
3858
 
 
3859
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
3860
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3861
 
AC_LIBTOOL_PROG_CC_C_O($1)
3862
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3863
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3864
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3865
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3866
 
 
3867
 
AC_LIBTOOL_CONFIG($1)
3868
 
 
3869
 
AC_LANG_POP
3870
 
CC=$lt_save_CC
3871
 
LDCXX=$LD
3872
 
LD=$lt_save_LD
3873
 
GCC=$lt_save_GCC
3874
 
with_gnu_ldcxx=$with_gnu_ld
3875
 
with_gnu_ld=$lt_save_with_gnu_ld
3876
 
lt_cv_path_LDCXX=$lt_cv_path_LD
3877
 
lt_cv_path_LD=$lt_save_path_LD
3878
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3879
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3880
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
3881
 
 
3882
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3883
 
# ------------------------------------
3884
 
# Figure out "hidden" library dependencies from verbose
3885
 
# compiler output when linking a shared library.
3886
 
# Parse the compiler output and extract the necessary
3887
 
# objects, libraries and library flags.
3888
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3889
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3890
 
dnl we can't use the lt_simple_compile_test_code here,
3891
 
dnl because it contains code intended for an executable,
3892
 
dnl not a library.  It's possible we should let each
3893
 
dnl tag define a new lt_????_link_test_code variable,
3894
 
dnl but it's only used here...
3895
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3896
 
int a;
3897
 
void foo (void) { a = 0; }
3898
 
EOF
3899
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3900
 
class Foo
3901
 
{
3902
 
public:
3903
 
  Foo (void) { a = 0; }
3904
 
private:
3905
 
  int a;
3906
 
};
3907
 
EOF
3908
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3909
 
      subroutine foo
3910
 
      implicit none
3911
 
      integer*4 a
3912
 
      a=0
3913
 
      return
3914
 
      end
3915
 
EOF
3916
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3917
 
public class foo {
3918
 
  private int a;
3919
 
  public void bar (void) {
3920
 
    a = 0;
3921
 
  }
3922
 
};
3923
 
EOF
3924
 
])
3925
 
dnl Parse the compiler output and extract the necessary
3926
 
dnl objects, libraries and library flags.
3927
 
if AC_TRY_EVAL(ac_compile); then
3928
 
  # Parse the compiler output and extract the necessary
3929
 
  # objects, libraries and library flags.
3930
 
 
3931
 
  # Sentinel used to keep track of whether or not we are before
3932
 
  # the conftest object file.
3933
 
  pre_test_object_deps_done=no
3934
 
 
3935
 
  # The `*' in the case matches for architectures that use `case' in
3936
 
  # $output_verbose_cmd can trigger glob expansion during the loop
3937
 
  # eval without this substitution.
3938
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3939
 
 
3940
 
  for p in `eval $output_verbose_link_cmd`; do
3941
 
    case $p in
3942
 
 
3943
 
    -L* | -R* | -l*)
3944
 
       # Some compilers place space between "-{L,R}" and the path.
3945
 
       # Remove the space.
3946
 
       if test $p = "-L" \
3947
 
          || test $p = "-R"; then
3948
 
         prev=$p
3949
 
         continue
3950
 
       else
3951
 
         prev=
3952
 
       fi
3953
 
 
3954
 
       if test "$pre_test_object_deps_done" = no; then
3955
 
         case $p in
3956
 
         -L* | -R*)
3957
 
           # Internal compiler library paths should come after those
3958
 
           # provided the user.  The postdeps already come after the
3959
 
           # user supplied libs so there is no need to process them.
3960
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3961
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3962
 
           else
3963
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3964
 
           fi
3965
 
           ;;
3966
 
         # The "-l" case would never come before the object being
3967
 
         # linked, so don't bother handling this case.
3968
 
         esac
3969
 
       else
3970
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3971
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3972
 
         else
3973
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3974
 
         fi
3975
 
       fi
3976
 
       ;;
3977
 
 
3978
 
    *.$objext)
3979
 
       # This assumes that the test object file only shows up
3980
 
       # once in the compiler output.
3981
 
       if test "$p" = "conftest.$objext"; then
3982
 
         pre_test_object_deps_done=yes
3983
 
         continue
3984
 
       fi
3985
 
 
3986
 
       if test "$pre_test_object_deps_done" = no; then
3987
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3988
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
3989
 
         else
3990
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3991
 
         fi
3992
 
       else
3993
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3994
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3995
 
         else
3996
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3997
 
         fi
3998
 
       fi
3999
 
       ;;
4000
 
 
4001
 
    *) ;; # Ignore the rest.
4002
 
 
4003
 
    esac
4004
 
  done
4005
 
 
4006
 
  # Clean up.
4007
 
  rm -f a.out a.exe
4008
 
else
4009
 
  echo "libtool.m4: error: problem compiling $1 test program"
4010
 
fi
4011
 
 
4012
 
$rm -f confest.$objext
4013
 
 
4014
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4015
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4016
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4017
 
fi
4018
 
 
4019
 
# PORTME: override above test on systems where it is broken
4020
 
ifelse([$1],[CXX],
4021
 
[case $host_os in
4022
 
interix[[3-9]]*)
4023
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4024
 
  # hack all around it, let's just trust "g++" to DTRT.
4025
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4026
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4027
 
  _LT_AC_TAGVAR(postdeps,$1)=
4028
 
  ;;
4029
 
 
4030
 
linux*)
4031
 
  case `$CC -V 2>&1 | sed 5q` in
4032
 
  *Sun\ C*)
4033
 
    # Sun C++ 5.9
4034
 
    #
4035
 
    # The more standards-conforming stlport4 library is
4036
 
    # incompatible with the Cstd library. Avoid specifying
4037
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4038
 
    # -library=stlport4 depends on it.
4039
 
    case " $CXX $CXXFLAGS " in
4040
 
    *" -library=stlport4 "*)
4041
 
      solaris_use_stlport4=yes
4042
 
      ;;
4043
 
    esac
4044
 
    if test "$solaris_use_stlport4" != yes; then
4045
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4046
 
    fi
4047
 
    ;;
4048
 
  esac
4049
 
  ;;
4050
 
 
4051
 
solaris*)
4052
 
  case $cc_basename in
4053
 
  CC*)
4054
 
    # The more standards-conforming stlport4 library is
4055
 
    # incompatible with the Cstd library. Avoid specifying
4056
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4057
 
    # -library=stlport4 depends on it.
4058
 
    case " $CXX $CXXFLAGS " in
4059
 
    *" -library=stlport4 "*)
4060
 
      solaris_use_stlport4=yes
4061
 
      ;;
4062
 
    esac
4063
 
 
4064
 
    # Adding this requires a known-good setup of shared libraries for
4065
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4066
 
    # archive will be linked into the output, leading to subtle bugs.
4067
 
    if test "$solaris_use_stlport4" != yes; then
4068
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4069
 
    fi
4070
 
    ;;
4071
 
  esac
4072
 
  ;;
4073
 
esac
4074
 
])
4075
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4076
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4077
 
esac
4078
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4079
 
 
4080
 
# AC_LIBTOOL_LANG_F77_CONFIG
4081
 
# --------------------------
4082
 
# Ensure that the configuration vars for the C compiler are
4083
 
# suitably defined.  Those variables are subsequently used by
4084
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4085
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4086
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4087
 
[AC_REQUIRE([AC_PROG_F77])
4088
 
AC_LANG_PUSH(Fortran 77)
4089
 
 
4090
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4091
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4092
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4093
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4094
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4095
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4096
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4097
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4098
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4099
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4100
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4101
 
_LT_AC_TAGVAR(module_cmds, $1)=
4102
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4103
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4104
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4105
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4106
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4107
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4108
 
 
4109
 
# Source file extension for f77 test sources.
4110
 
ac_ext=f
4111
 
 
4112
 
# Object file extension for compiled f77 test sources.
4113
 
objext=o
4114
 
_LT_AC_TAGVAR(objext, $1)=$objext
4115
 
 
4116
 
# Code to be used in simple compile tests
4117
 
lt_simple_compile_test_code="\
4118
 
      subroutine t
4119
 
      return
4120
 
      end
4121
 
"
4122
 
 
4123
 
# Code to be used in simple link tests
4124
 
lt_simple_link_test_code="\
4125
 
      program t
4126
 
      end
4127
 
"
4128
 
 
4129
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4130
 
_LT_AC_SYS_COMPILER
4131
 
 
4132
 
# save warnings/boilerplate of simple test code
4133
 
_LT_COMPILER_BOILERPLATE
4134
 
_LT_LINKER_BOILERPLATE
4135
 
 
4136
 
# Allow CC to be a program name with arguments.
4137
 
lt_save_CC="$CC"
4138
 
CC=${F77-"f77"}
4139
 
compiler=$CC
4140
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4141
 
_LT_CC_BASENAME([$compiler])
4142
 
 
4143
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4144
 
AC_MSG_RESULT([$can_build_shared])
4145
 
 
4146
 
AC_MSG_CHECKING([whether to build shared libraries])
4147
 
test "$can_build_shared" = "no" && enable_shared=no
4148
 
 
4149
 
# On AIX, shared libraries and static libraries use the same namespace, and
4150
 
# are all built from PIC.
4151
 
case $host_os in
4152
 
aix3*)
4153
 
  test "$enable_shared" = yes && enable_static=no
4154
 
  if test -n "$RANLIB"; then
4155
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4156
 
    postinstall_cmds='$RANLIB $lib'
4157
 
  fi
4158
 
  ;;
4159
 
aix[[4-9]]*)
4160
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4161
 
    test "$enable_shared" = yes && enable_static=no
4162
 
  fi
4163
 
  ;;
4164
 
esac
4165
 
AC_MSG_RESULT([$enable_shared])
4166
 
 
4167
 
AC_MSG_CHECKING([whether to build static libraries])
4168
 
# Make sure either enable_shared or enable_static is yes.
4169
 
test "$enable_shared" = yes || enable_static=yes
4170
 
AC_MSG_RESULT([$enable_static])
4171
 
 
4172
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4173
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4174
 
 
4175
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4176
 
AC_LIBTOOL_PROG_CC_C_O($1)
4177
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4178
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4179
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4180
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4181
 
 
4182
 
AC_LIBTOOL_CONFIG($1)
4183
 
 
4184
 
AC_LANG_POP
4185
 
CC="$lt_save_CC"
4186
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4187
 
 
4188
 
 
4189
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4190
 
# --------------------------
4191
 
# Ensure that the configuration vars for the C compiler are
4192
 
# suitably defined.  Those variables are subsequently used by
4193
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4194
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4195
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4196
 
[AC_LANG_SAVE
4197
 
 
4198
 
# Source file extension for Java test sources.
4199
 
ac_ext=java
4200
 
 
4201
 
# Object file extension for compiled Java test sources.
4202
 
objext=o
4203
 
_LT_AC_TAGVAR(objext, $1)=$objext
4204
 
 
4205
 
# Code to be used in simple compile tests
4206
 
lt_simple_compile_test_code="class foo {}"
4207
 
 
4208
 
# Code to be used in simple link tests
4209
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4210
 
 
4211
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4212
 
_LT_AC_SYS_COMPILER
4213
 
 
4214
 
# save warnings/boilerplate of simple test code
4215
 
_LT_COMPILER_BOILERPLATE
4216
 
_LT_LINKER_BOILERPLATE
4217
 
 
4218
 
# Allow CC to be a program name with arguments.
4219
 
lt_save_CC="$CC"
4220
 
CC=${GCJ-"gcj"}
4221
 
compiler=$CC
4222
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4223
 
_LT_CC_BASENAME([$compiler])
4224
 
 
4225
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4226
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4227
 
 
4228
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4229
 
 
4230
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4231
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4232
 
AC_LIBTOOL_PROG_CC_C_O($1)
4233
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4234
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4235
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4236
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4237
 
 
4238
 
AC_LIBTOOL_CONFIG($1)
4239
 
 
4240
 
AC_LANG_RESTORE
4241
 
CC="$lt_save_CC"
4242
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4243
 
 
4244
 
 
4245
 
# AC_LIBTOOL_LANG_RC_CONFIG
4246
 
# -------------------------
4247
 
# Ensure that the configuration vars for the Windows resource compiler are
4248
 
# suitably defined.  Those variables are subsequently used by
4249
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4250
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4251
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4252
 
[AC_LANG_SAVE
4253
 
 
4254
 
# Source file extension for RC test sources.
4255
 
ac_ext=rc
4256
 
 
4257
 
# Object file extension for compiled RC test sources.
4258
 
objext=o
4259
 
_LT_AC_TAGVAR(objext, $1)=$objext
4260
 
 
4261
 
# Code to be used in simple compile tests
4262
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4263
 
 
4264
 
# Code to be used in simple link tests
4265
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4266
 
 
4267
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4268
 
_LT_AC_SYS_COMPILER
4269
 
 
4270
 
# save warnings/boilerplate of simple test code
4271
 
_LT_COMPILER_BOILERPLATE
4272
 
_LT_LINKER_BOILERPLATE
4273
 
 
4274
 
# Allow CC to be a program name with arguments.
4275
 
lt_save_CC="$CC"
4276
 
CC=${RC-"windres"}
4277
 
compiler=$CC
4278
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4279
 
_LT_CC_BASENAME([$compiler])
4280
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4281
 
 
4282
 
AC_LIBTOOL_CONFIG($1)
4283
 
 
4284
 
AC_LANG_RESTORE
4285
 
CC="$lt_save_CC"
4286
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4287
 
 
4288
 
 
4289
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4290
 
# ----------------------------
4291
 
# If TAGNAME is not passed, then create an initial libtool script
4292
 
# with a default configuration from the untagged config vars.  Otherwise
4293
 
# add code to config.status for appending the configuration named by
4294
 
# TAGNAME from the matching tagged config vars.
4295
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4296
 
[# The else clause should only fire when bootstrapping the
4297
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4298
 
# with your package, and you will get complaints that there are
4299
 
# no rules to generate ltmain.sh.
4300
 
if test -f "$ltmain"; then
4301
 
  # See if we are running on zsh, and set the options which allow our commands through
4302
 
  # without removal of \ escapes.
4303
 
  if test -n "${ZSH_VERSION+set}" ; then
4304
 
    setopt NO_GLOB_SUBST
4305
 
  fi
4306
 
  # Now quote all the things that may contain metacharacters while being
4307
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4308
 
  # variables and quote the copies for generation of the libtool script.
4309
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4310
 
    SED SHELL STRIP \
4311
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4312
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4313
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4314
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4315
 
    lt_cv_sys_global_symbol_to_c_name_address \
4316
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4317
 
    old_postinstall_cmds old_postuninstall_cmds \
4318
 
    _LT_AC_TAGVAR(compiler, $1) \
4319
 
    _LT_AC_TAGVAR(CC, $1) \
4320
 
    _LT_AC_TAGVAR(LD, $1) \
4321
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4322
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4323
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4324
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4325
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4326
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4327
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4328
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4329
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4330
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4331
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4332
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4333
 
    _LT_AC_TAGVAR(predeps, $1) \
4334
 
    _LT_AC_TAGVAR(postdeps, $1) \
4335
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4336
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4337
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4338
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4339
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4340
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4341
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4342
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4343
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4344
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4345
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4346
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4347
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4348
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4349
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4350
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4351
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4352
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4353
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4354
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4355
 
 
4356
 
    case $var in
4357
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4358
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4359
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4360
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4361
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4362
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4363
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4364
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4365
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4366
 
    postinstall_cmds | postuninstall_cmds | \
4367
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4368
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4369
 
      # Double-quote double-evaled strings.
4370
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4371
 
      ;;
4372
 
    *)
4373
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4374
 
      ;;
4375
 
    esac
4376
 
  done
4377
 
 
4378
 
  case $lt_echo in
4379
 
  *'\[$]0 --fallback-echo"')
4380
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4381
 
    ;;
4382
 
  esac
4383
 
 
4384
 
ifelse([$1], [],
4385
 
  [cfgfile="${ofile}T"
4386
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4387
 
  $rm -f "$cfgfile"
4388
 
  AC_MSG_NOTICE([creating $ofile])],
4389
 
  [cfgfile="$ofile"])
4390
 
 
4391
 
  cat <<__EOF__ >> "$cfgfile"
4392
 
ifelse([$1], [],
4393
 
[#! $SHELL
4394
 
 
4395
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4396
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4397
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4398
 
#
4399
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4400
 
# Free Software Foundation, Inc.
4401
 
#
4402
 
# This file is part of GNU Libtool:
4403
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4404
 
#
4405
 
# This program is free software; you can redistribute it and/or modify
4406
 
# it under the terms of the GNU General Public License as published by
4407
 
# the Free Software Foundation; either version 2 of the License, or
4408
 
# (at your option) any later version.
4409
 
#
4410
 
# This program is distributed in the hope that it will be useful, but
4411
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4412
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4413
 
# General Public License for more details.
4414
 
#
4415
 
# You should have received a copy of the GNU General Public License
4416
 
# along with this program; if not, write to the Free Software
4417
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4418
 
#
4419
 
# As a special exception to the GNU General Public License, if you
4420
 
# distribute this file as part of a program that contains a
4421
 
# configuration script generated by Autoconf, you may include it under
4422
 
# the same distribution terms that you use for the rest of that program.
4423
 
 
4424
 
# A sed program that does not truncate output.
4425
 
SED=$lt_SED
4426
 
 
4427
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4428
 
Xsed="$SED -e 1s/^X//"
4429
 
 
4430
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4431
 
# if CDPATH is set.
4432
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4433
 
 
4434
 
# The names of the tagged configurations supported by this script.
4435
 
available_tags=
4436
 
 
4437
 
# ### BEGIN LIBTOOL CONFIG],
4438
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4439
 
 
4440
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4441
 
 
4442
 
# Shell to use when invoking shell scripts.
4443
 
SHELL=$lt_SHELL
4444
 
 
4445
 
# Whether or not to build shared libraries.
4446
 
build_libtool_libs=$enable_shared
4447
 
 
4448
 
# Whether or not to build static libraries.
4449
 
build_old_libs=$enable_static
4450
 
 
4451
 
# Whether or not to add -lc for building shared libraries.
4452
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4453
 
 
4454
 
# Whether or not to disallow shared libs when runtime libs are static
4455
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4456
 
 
4457
 
# Whether or not to optimize for fast installation.
4458
 
fast_install=$enable_fast_install
4459
 
 
4460
 
# The host system.
4461
 
host_alias=$host_alias
4462
 
host=$host
4463
 
host_os=$host_os
4464
 
 
4465
 
# The build system.
4466
 
build_alias=$build_alias
4467
 
build=$build
4468
 
build_os=$build_os
4469
 
 
4470
 
# An echo program that does not interpret backslashes.
4471
 
echo=$lt_echo
4472
 
 
4473
 
# The archiver.
4474
 
AR=$lt_AR
4475
 
AR_FLAGS=$lt_AR_FLAGS
4476
 
 
4477
 
# A C compiler.
4478
 
LTCC=$lt_LTCC
4479
 
 
4480
 
# LTCC compiler flags.
4481
 
LTCFLAGS=$lt_LTCFLAGS
4482
 
 
4483
 
# A language-specific compiler.
4484
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4485
 
 
4486
 
# Is the compiler the GNU C compiler?
4487
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4488
 
 
4489
 
# An ERE matcher.
4490
 
EGREP=$lt_EGREP
4491
 
 
4492
 
# The linker used to build libraries.
4493
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4494
 
 
4495
 
# Whether we need hard or soft links.
4496
 
LN_S=$lt_LN_S
4497
 
 
4498
 
# A BSD-compatible nm program.
4499
 
NM=$lt_NM
4500
 
 
4501
 
# A symbol stripping program
4502
 
STRIP=$lt_STRIP
4503
 
 
4504
 
# Used to examine libraries when file_magic_cmd begins "file"
4505
 
MAGIC_CMD=$MAGIC_CMD
4506
 
 
4507
 
# Used on cygwin: DLL creation program.
4508
 
DLLTOOL="$DLLTOOL"
4509
 
 
4510
 
# Used on cygwin: object dumper.
4511
 
OBJDUMP="$OBJDUMP"
4512
 
 
4513
 
# Used on cygwin: assembler.
4514
 
AS="$AS"
4515
 
 
4516
 
# The name of the directory that contains temporary libtool files.
4517
 
objdir=$objdir
4518
 
 
4519
 
# How to create reloadable object files.
4520
 
reload_flag=$lt_reload_flag
4521
 
reload_cmds=$lt_reload_cmds
4522
 
 
4523
 
# How to pass a linker flag through the compiler.
4524
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4525
 
 
4526
 
# Object file suffix (normally "o").
4527
 
objext="$ac_objext"
4528
 
 
4529
 
# Old archive suffix (normally "a").
4530
 
libext="$libext"
4531
 
 
4532
 
# Shared library suffix (normally ".so").
4533
 
shrext_cmds='$shrext_cmds'
4534
 
 
4535
 
# Executable file suffix (normally "").
4536
 
exeext="$exeext"
4537
 
 
4538
 
# Additional compiler flags for building library objects.
4539
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4540
 
pic_mode=$pic_mode
4541
 
 
4542
 
# What is the maximum length of a command?
4543
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4544
 
 
4545
 
# Does compiler simultaneously support -c and -o options?
4546
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4547
 
 
4548
 
# Must we lock files when doing compilation?
4549
 
need_locks=$lt_need_locks
4550
 
 
4551
 
# Do we need the lib prefix for modules?
4552
 
need_lib_prefix=$need_lib_prefix
4553
 
 
4554
 
# Do we need a version for libraries?
4555
 
need_version=$need_version
4556
 
 
4557
 
# Whether dlopen is supported.
4558
 
dlopen_support=$enable_dlopen
4559
 
 
4560
 
# Whether dlopen of programs is supported.
4561
 
dlopen_self=$enable_dlopen_self
4562
 
 
4563
 
# Whether dlopen of statically linked programs is supported.
4564
 
dlopen_self_static=$enable_dlopen_self_static
4565
 
 
4566
 
# Compiler flag to prevent dynamic linking.
4567
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4568
 
 
4569
 
# Compiler flag to turn off builtin functions.
4570
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4571
 
 
4572
 
# Compiler flag to allow reflexive dlopens.
4573
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4574
 
 
4575
 
# Compiler flag to generate shared objects directly from archives.
4576
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4577
 
 
4578
 
# Compiler flag to generate thread-safe objects.
4579
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4580
 
 
4581
 
# Library versioning type.
4582
 
version_type=$version_type
4583
 
 
4584
 
# Format of library name prefix.
4585
 
libname_spec=$lt_libname_spec
4586
 
 
4587
 
# List of archive names.  First name is the real one, the rest are links.
4588
 
# The last name is the one that the linker finds with -lNAME.
4589
 
library_names_spec=$lt_library_names_spec
4590
 
 
4591
 
# The coded name of the library, if different from the real name.
4592
 
soname_spec=$lt_soname_spec
4593
 
 
4594
 
# Commands used to build and install an old-style archive.
4595
 
RANLIB=$lt_RANLIB
4596
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4597
 
old_postinstall_cmds=$lt_old_postinstall_cmds
4598
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4599
 
 
4600
 
# Create an old-style archive from a shared archive.
4601
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4602
 
 
4603
 
# Create a temporary old-style archive to link instead of a shared archive.
4604
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4605
 
 
4606
 
# Commands used to build and install a shared archive.
4607
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4608
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4609
 
postinstall_cmds=$lt_postinstall_cmds
4610
 
postuninstall_cmds=$lt_postuninstall_cmds
4611
 
 
4612
 
# Commands used to build a loadable module (assumed same as above if empty)
4613
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4614
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4615
 
 
4616
 
# Commands to strip libraries.
4617
 
old_striplib=$lt_old_striplib
4618
 
striplib=$lt_striplib
4619
 
 
4620
 
# Dependencies to place before the objects being linked to create a
4621
 
# shared library.
4622
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4623
 
 
4624
 
# Dependencies to place after the objects being linked to create a
4625
 
# shared library.
4626
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4627
 
 
4628
 
# Dependencies to place before the objects being linked to create a
4629
 
# shared library.
4630
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4631
 
 
4632
 
# Dependencies to place after the objects being linked to create a
4633
 
# shared library.
4634
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4635
 
 
4636
 
# The directories searched by this compiler when creating a shared
4637
 
# library
4638
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4639
 
 
4640
 
# The library search path used internally by the compiler when linking
4641
 
# a shared library.
4642
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4643
 
 
4644
 
# Method to check whether dependent libraries are shared objects.
4645
 
deplibs_check_method=$lt_deplibs_check_method
4646
 
 
4647
 
# Command to use when deplibs_check_method == file_magic.
4648
 
file_magic_cmd=$lt_file_magic_cmd
4649
 
 
4650
 
# Flag that allows shared libraries with undefined symbols to be built.
4651
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4652
 
 
4653
 
# Flag that forces no undefined symbols.
4654
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4655
 
 
4656
 
# Commands used to finish a libtool library installation in a directory.
4657
 
finish_cmds=$lt_finish_cmds
4658
 
 
4659
 
# Same as above, but a single script fragment to be evaled but not shown.
4660
 
finish_eval=$lt_finish_eval
4661
 
 
4662
 
# Take the output of nm and produce a listing of raw symbols and C names.
4663
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4664
 
 
4665
 
# Transform the output of nm in a proper C declaration
4666
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4667
 
 
4668
 
# Transform the output of nm in a C name address pair
4669
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4670
 
 
4671
 
# This is the shared library runtime path variable.
4672
 
runpath_var=$runpath_var
4673
 
 
4674
 
# This is the shared library path variable.
4675
 
shlibpath_var=$shlibpath_var
4676
 
 
4677
 
# Is shlibpath searched before the hard-coded library search path?
4678
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4679
 
 
4680
 
# How to hardcode a shared library path into an executable.
4681
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4682
 
 
4683
 
# Whether we should hardcode library paths into libraries.
4684
 
hardcode_into_libs=$hardcode_into_libs
4685
 
 
4686
 
# Flag to hardcode \$libdir into a binary during linking.
4687
 
# This must work even if \$libdir does not exist.
4688
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4689
 
 
4690
 
# If ld is used when linking, flag to hardcode \$libdir into
4691
 
# a binary during linking. This must work even if \$libdir does
4692
 
# not exist.
4693
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4694
 
 
4695
 
# Whether we need a single -rpath flag with a separated argument.
4696
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4697
 
 
4698
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4699
 
# resulting binary.
4700
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4701
 
 
4702
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4703
 
# resulting binary.
4704
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4705
 
 
4706
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4707
 
# the resulting binary.
4708
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4709
 
 
4710
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
4711
 
# and all subsequent libraries and executables linked against it.
4712
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4713
 
 
4714
 
# Variables whose values should be saved in libtool wrapper scripts and
4715
 
# restored at relink time.
4716
 
variables_saved_for_relink="$variables_saved_for_relink"
4717
 
 
4718
 
# Whether libtool must link a program against all its dependency libraries.
4719
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4720
 
 
4721
 
# Compile-time system search path for libraries
4722
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4723
 
 
4724
 
# Run-time system search path for libraries
4725
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4726
 
 
4727
 
# Fix the shell variable \$srcfile for the compiler.
4728
 
fix_srcfile_path=$lt_fix_srcfile_path
4729
 
 
4730
 
# Set to yes if exported symbols are required.
4731
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4732
 
 
4733
 
# The commands to list exported symbols.
4734
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4735
 
 
4736
 
# The commands to extract the exported symbol list from a shared archive.
4737
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4738
 
 
4739
 
# Symbols that should not be listed in the preloaded symbols.
4740
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4741
 
 
4742
 
# Symbols that must always be exported.
4743
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4744
 
 
4745
 
ifelse([$1],[],
4746
 
[# ### END LIBTOOL CONFIG],
4747
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
4748
 
 
4749
 
__EOF__
4750
 
 
4751
 
ifelse([$1],[], [
4752
 
  case $host_os in
4753
 
  aix3*)
4754
 
    cat <<\EOF >> "$cfgfile"
4755
 
 
4756
 
# AIX sometimes has problems with the GCC collect2 program.  For some
4757
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
4758
 
# vanish in a puff of smoke.
4759
 
if test "X${COLLECT_NAMES+set}" != Xset; then
4760
 
  COLLECT_NAMES=
4761
 
  export COLLECT_NAMES
4762
 
fi
4763
 
EOF
4764
 
    ;;
4765
 
  esac
4766
 
 
4767
 
  # We use sed instead of cat because bash on DJGPP gets confused if
4768
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4769
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
4770
 
  # is reportedly fixed, but why not run on old versions too?
4771
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4772
 
 
4773
 
  mv -f "$cfgfile" "$ofile" || \
4774
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4775
 
  chmod +x "$ofile"
4776
 
])
4777
 
else
4778
 
  # If there is no Makefile yet, we rely on a make rule to execute
4779
 
  # `config.status --recheck' to rerun these tests and create the
4780
 
  # libtool script then.
4781
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4782
 
  if test -f "$ltmain_in"; then
4783
 
    test -f Makefile && make "$ltmain"
4784
 
  fi
4785
 
fi
4786
 
])# AC_LIBTOOL_CONFIG
4787
 
 
4788
 
 
4789
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4790
 
# -------------------------------------------
4791
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4792
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4793
 
 
4794
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3288
AC_SUBST([LIBM])
 
3289
])# LT_LIB_M
 
3290
 
 
3291
# Old name:
 
3292
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
3293
dnl aclocal-1.4 backwards compatibility:
 
3294
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
3295
 
 
3296
 
 
3297
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
3298
# -------------------------------
 
3299
m4_defun([_LT_COMPILER_NO_RTTI],
 
3300
[m4_require([_LT_TAG_COMPILER])dnl
 
3301
 
 
3302
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4795
3303
 
4796
3304
if test "$GCC" = yes; then
4797
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3305
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4798
3306
 
4799
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
3307
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4800
3308
    lt_cv_prog_compiler_rtti_exceptions,
4801
3309
    [-fno-rtti -fno-exceptions], [],
4802
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
3310
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4803
3311
fi
4804
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4805
 
 
4806
 
 
4807
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4808
 
# ---------------------------------
4809
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4810
 
[AC_REQUIRE([AC_CANONICAL_HOST])
4811
 
AC_REQUIRE([LT_AC_PROG_SED])
4812
 
AC_REQUIRE([AC_PROG_NM])
4813
 
AC_REQUIRE([AC_OBJEXT])
 
3312
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
3313
        [Compiler flag to turn off builtin functions])
 
3314
])# _LT_COMPILER_NO_RTTI
 
3315
 
 
3316
 
 
3317
# _LT_CMD_GLOBAL_SYMBOLS
 
3318
# ----------------------
 
3319
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
3320
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3321
AC_REQUIRE([AC_PROG_CC])dnl
 
3322
AC_REQUIRE([LT_PATH_NM])dnl
 
3323
AC_REQUIRE([LT_PATH_LD])dnl
 
3324
m4_require([_LT_DECL_SED])dnl
 
3325
m4_require([_LT_DECL_EGREP])dnl
 
3326
m4_require([_LT_TAG_COMPILER])dnl
 
3327
 
4814
3328
# Check for command to grab the raw symbol name followed by C symbol from nm.
4815
3329
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4816
3330
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4824
3338
# Regexp to match symbols that can be accessed directly from C.
4825
3339
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4826
3340
 
4827
 
# Transform an extracted symbol line into a proper C declaration
4828
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4829
 
 
4830
 
# Transform an extracted symbol line into symbol name and symbol address
4831
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4832
 
 
4833
3341
# Define system-specific variables.
4834
3342
case $host_os in
4835
3343
aix*)
4836
3344
  symcode='[[BCDT]]'
4837
3345
  ;;
4838
 
cygwin* | mingw* | pw32*)
 
3346
cygwin* | mingw* | pw32* | cegcc*)
4839
3347
  symcode='[[ABCDGISTW]]'
4840
3348
  ;;
4841
 
hpux*) # Its linker distinguishes data from code symbols
 
3349
hpux*)
4842
3350
  if test "$host_cpu" = ia64; then
4843
3351
    symcode='[[ABCDEGRST]]'
4844
3352
  fi
4845
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4846
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4847
 
  ;;
4848
 
linux* | k*bsd*-gnu)
4849
 
  if test "$host_cpu" = ia64; then
4850
 
    symcode='[[ABCDGIRSTW]]'
4851
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4852
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4853
 
  fi
4854
3353
  ;;
4855
3354
irix* | nonstopux*)
4856
3355
  symcode='[[BCDEGRST]]'
4875
3374
  ;;
4876
3375
esac
4877
3376
 
 
3377
# If we're using GNU nm, then use its standard symbol codes.
 
3378
case `$NM -V 2>&1` in
 
3379
*GNU* | *'with BFD'*)
 
3380
  symcode='[[ABCDGIRSTW]]' ;;
 
3381
esac
 
3382
 
 
3383
# Transform an extracted symbol line into a proper C declaration.
 
3384
# Some systems (esp. on ia64) link data and code symbols differently,
 
3385
# so use this general approach.
 
3386
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3387
 
 
3388
# Transform an extracted symbol line into symbol name and symbol address
 
3389
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3390
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'"
 
3391
 
4878
3392
# Handle CRLF in mingw tool chain
4879
3393
opt_cr=
4880
3394
case $build_os in
4881
3395
mingw*)
4882
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3396
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4883
3397
  ;;
4884
3398
esac
4885
3399
 
4886
 
# If we're using GNU nm, then use its standard symbol codes.
4887
 
case `$NM -V 2>&1` in
4888
 
*GNU* | *'with BFD'*)
4889
 
  symcode='[[ABCDGIRSTW]]' ;;
4890
 
esac
4891
 
 
4892
 
# Try without a prefix undercore, then with it.
 
3400
# Try without a prefix underscore, then with it.
4893
3401
for ac_symprfx in "" "_"; do
4894
3402
 
4895
3403
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4896
3404
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4897
3405
 
4898
3406
  # Write the raw and C identifiers.
4899
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3407
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3408
    # Fake it for dumpbin and say T for any non-static function
 
3409
    # and D for any global variable.
 
3410
    # Also find C++ and __fastcall symbols from MSVC++,
 
3411
    # which start with @ or ?.
 
3412
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
3413
"     {last_section=section; section=\$ 3};"\
 
3414
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
3415
"     \$ 0!~/External *\|/{next};"\
 
3416
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
3417
"     {if(hide[section]) next};"\
 
3418
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
3419
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
3420
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
3421
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
3422
"     ' prfx=^$ac_symprfx]"
 
3423
  else
 
3424
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3425
  fi
4900
3426
 
4901
3427
  # Check to see that the pipe works correctly.
4902
3428
  pipe_works=no
4903
3429
 
4904
3430
  rm -f conftest*
4905
 
  cat > conftest.$ac_ext <<EOF
 
3431
  cat > conftest.$ac_ext <<_LT_EOF
4906
3432
#ifdef __cplusplus
4907
3433
extern "C" {
4908
3434
#endif
4909
3435
char nm_test_var;
4910
 
void nm_test_func(){}
 
3436
void nm_test_func(void);
 
3437
void nm_test_func(void){}
4911
3438
#ifdef __cplusplus
4912
3439
}
4913
3440
#endif
4914
3441
int main(){nm_test_var='a';nm_test_func();return(0);}
4915
 
EOF
 
3442
_LT_EOF
4916
3443
 
4917
3444
  if AC_TRY_EVAL(ac_compile); then
4918
3445
    # Now try to grab the symbols.
4926
3453
      fi
4927
3454
 
4928
3455
      # Make sure that we snagged all the symbols we need.
4929
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
4930
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
4931
 
          cat <<EOF > conftest.$ac_ext
 
3456
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
3457
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
3458
          cat <<_LT_EOF > conftest.$ac_ext
4932
3459
#ifdef __cplusplus
4933
3460
extern "C" {
4934
3461
#endif
4935
3462
 
4936
 
EOF
 
3463
_LT_EOF
4937
3464
          # Now generate the symbol file.
4938
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4939
 
 
4940
 
          cat <<EOF >> conftest.$ac_ext
4941
 
#if defined (__STDC__) && __STDC__
4942
 
# define lt_ptr_t void *
4943
 
#else
4944
 
# define lt_ptr_t char *
4945
 
# define const
4946
 
#endif
4947
 
 
4948
 
/* The mapping between symbol names and symbols. */
 
3465
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
3466
 
 
3467
          cat <<_LT_EOF >> conftest.$ac_ext
 
3468
 
 
3469
/* The mapping between symbol names and symbols.  */
4949
3470
const struct {
4950
3471
  const char *name;
4951
 
  lt_ptr_t address;
 
3472
  void       *address;
4952
3473
}
4953
 
lt_preloaded_symbols[[]] =
 
3474
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4954
3475
{
4955
 
EOF
4956
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4957
 
          cat <<\EOF >> conftest.$ac_ext
4958
 
  {0, (lt_ptr_t) 0}
 
3476
  { "@PROGRAM@", (void *) 0 },
 
3477
_LT_EOF
 
3478
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
3479
          cat <<\_LT_EOF >> conftest.$ac_ext
 
3480
  {0, (void *) 0}
4959
3481
};
4960
3482
 
 
3483
/* This works around a problem in FreeBSD linker */
 
3484
#ifdef FREEBSD_WORKAROUND
 
3485
static const void *lt_preloaded_setup() {
 
3486
  return lt__PROGRAM__LTX_preloaded_symbols;
 
3487
}
 
3488
#endif
 
3489
 
4961
3490
#ifdef __cplusplus
4962
3491
}
4963
3492
#endif
4964
 
EOF
 
3493
_LT_EOF
4965
3494
          # Now try linking the two files.
4966
3495
          mv conftest.$ac_objext conftstm.$ac_objext
4967
3496
          lt_save_LIBS="$LIBS"
4968
3497
          lt_save_CFLAGS="$CFLAGS"
4969
3498
          LIBS="conftstm.$ac_objext"
4970
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
3499
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4971
3500
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4972
3501
            pipe_works=yes
4973
3502
          fi
5004
3533
else
5005
3534
  AC_MSG_RESULT(ok)
5006
3535
fi
5007
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5008
 
 
5009
 
 
5010
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5011
 
# ---------------------------------------
5012
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5013
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5014
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5015
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
3536
 
 
3537
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
3538
    [Take the output of nm and produce a listing of raw symbols and C names])
 
3539
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
3540
    [Transform the output of nm in a proper C declaration])
 
3541
_LT_DECL([global_symbol_to_c_name_address],
 
3542
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
3543
    [Transform the output of nm in a C name address pair])
 
3544
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
3545
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
3546
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3547
]) # _LT_CMD_GLOBAL_SYMBOLS
 
3548
 
 
3549
 
 
3550
# _LT_COMPILER_PIC([TAGNAME])
 
3551
# ---------------------------
 
3552
m4_defun([_LT_COMPILER_PIC],
 
3553
[m4_require([_LT_TAG_COMPILER])dnl
 
3554
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
3555
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3556
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5016
3557
 
5017
3558
AC_MSG_CHECKING([for $compiler option to produce PIC])
5018
 
 ifelse([$1],[CXX],[
 
3559
m4_if([$1], [CXX], [
5019
3560
  # C++ specific cases for pic, static, wl, etc.
5020
3561
  if test "$GXX" = yes; then
5021
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5022
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3562
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3563
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5023
3564
 
5024
3565
    case $host_os in
5025
3566
    aix*)
5026
3567
      # All AIX code is PIC.
5027
3568
      if test "$host_cpu" = ia64; then
5028
3569
        # AIX 5 now supports IA64 processor
5029
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3570
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5030
3571
      fi
5031
3572
      ;;
 
3573
 
5032
3574
    amigaos*)
5033
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5034
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5035
 
      # like `-m68040'.
5036
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3575
      case $host_cpu in
 
3576
      powerpc)
 
3577
            # see comment about AmigaOS4 .so support
 
3578
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3579
        ;;
 
3580
      m68k)
 
3581
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3582
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3583
            # like `-m68040'.
 
3584
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3585
        ;;
 
3586
      esac
5037
3587
      ;;
 
3588
 
5038
3589
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5039
3590
      # PIC is the default for these OSes.
5040
3591
      ;;
5041
 
    mingw* | cygwin* | os2* | pw32*)
 
3592
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5042
3593
      # This hack is so that the source file can tell whether it is being
5043
3594
      # built for inclusion in a dll (and should export symbols for example).
5044
3595
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5045
3596
      # (--disable-auto-import) libraries
5046
3597
      m4_if([$1], [GCJ], [],
5047
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3598
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5048
3599
      ;;
5049
3600
    darwin* | rhapsody*)
5050
3601
      # PIC is the default on this platform
5051
3602
      # Common symbols not allowed in MH_DYLIB files
5052
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3603
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5053
3604
      ;;
5054
3605
    *djgpp*)
5055
3606
      # DJGPP does not support shared libraries at all
5056
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
3607
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5057
3608
      ;;
5058
3609
    interix[[3-9]]*)
5059
3610
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5061
3612
      ;;
5062
3613
    sysv4*MP*)
5063
3614
      if test -d /usr/nec; then
5064
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3615
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5065
3616
      fi
5066
3617
      ;;
5067
3618
    hpux*)
5068
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5069
 
      # not for PA HP-UX.
 
3619
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3620
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3621
      # sets the default TLS model and affects inlining.
5070
3622
      case $host_cpu in
5071
 
      hppa*64*|ia64*)
 
3623
      hppa*64*)
5072
3624
        ;;
5073
3625
      *)
5074
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3626
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5075
3627
        ;;
5076
3628
      esac
5077
3629
      ;;
 
3630
    *qnx* | *nto*)
 
3631
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3632
      # it will coredump.
 
3633
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3634
      ;;
5078
3635
    *)
5079
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3636
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5080
3637
      ;;
5081
3638
    esac
5082
3639
  else
5085
3642
        # All AIX code is PIC.
5086
3643
        if test "$host_cpu" = ia64; then
5087
3644
          # AIX 5 now supports IA64 processor
5088
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3645
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5089
3646
        else
5090
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
3647
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5091
3648
        fi
5092
3649
        ;;
5093
3650
      chorus*)
5094
3651
        case $cc_basename in
5095
3652
        cxch68*)
5096
3653
          # Green Hills C++ Compiler
5097
 
          # _LT_AC_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"
 
3654
          # _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"
5098
3655
          ;;
5099
3656
        esac
5100
3657
        ;;
5101
 
       darwin*)
5102
 
         # PIC is the default on this platform
5103
 
         # Common symbols not allowed in MH_DYLIB files
5104
 
         case $cc_basename in
5105
 
           xlc*)
5106
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5107
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108
 
           ;;
5109
 
         esac
5110
 
       ;;
5111
3658
      dgux*)
5112
3659
        case $cc_basename in
5113
3660
          ec++*)
5114
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3661
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5115
3662
            ;;
5116
3663
          ghcx*)
5117
3664
            # Green Hills C++ Compiler
5118
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3665
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5119
3666
            ;;
5120
3667
          *)
5121
3668
            ;;
5127
3674
      hpux9* | hpux10* | hpux11*)
5128
3675
        case $cc_basename in
5129
3676
          CC*)
5130
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3677
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3678
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5132
3679
            if test "$host_cpu" != ia64; then
5133
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3680
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5134
3681
            fi
5135
3682
            ;;
5136
3683
          aCC*)
5137
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5138
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3684
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3685
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5139
3686
            case $host_cpu in
5140
3687
            hppa*64*|ia64*)
5141
3688
              # +Z the default
5142
3689
              ;;
5143
3690
            *)
5144
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3691
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5145
3692
              ;;
5146
3693
            esac
5147
3694
            ;;
5156
3703
      irix5* | irix6* | nonstopux*)
5157
3704
        case $cc_basename in
5158
3705
          CC*)
5159
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5160
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3706
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3707
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5161
3708
            # CC pic flag -KPIC is the default.
5162
3709
            ;;
5163
3710
          *)
5168
3715
        case $cc_basename in
5169
3716
          KCC*)
5170
3717
            # KAI C++ Compiler
5171
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5172
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5173
 
            ;;
5174
 
          icpc* | ecpc*)
5175
 
            # Intel C++
5176
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5177
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5178
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3718
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3719
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3720
            ;;
 
3721
          ecpc* )
 
3722
            # old Intel C++ for x86_64 which still supported -KPIC.
 
3723
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3724
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3725
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3726
            ;;
 
3727
          icpc* )
 
3728
            # Intel C++, used to be incompatible with GCC.
 
3729
            # ICC 10 doesn't accept -KPIC any more.
 
3730
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3731
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3732
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5179
3733
            ;;
5180
3734
          pgCC* | pgcpp*)
5181
 
            # Portland Group C++ compiler.
5182
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5183
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5184
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3735
            # Portland Group C++ compiler
 
3736
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3737
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
3738
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5185
3739
            ;;
5186
3740
          cxx*)
5187
3741
            # Compaq C++
5188
3742
            # Make sure the PIC flag is empty.  It appears that all Alpha
5189
3743
            # Linux and Compaq Tru64 Unix objects are PIC.
5190
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5191
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3744
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3745
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3746
            ;;
 
3747
          xlc* | xlC*)
 
3748
            # IBM XL 8.0 on PPC
 
3749
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3750
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
3751
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5192
3752
            ;;
5193
3753
          *)
5194
3754
            case `$CC -V 2>&1 | sed 5q` in
5195
3755
            *Sun\ C*)
5196
3756
              # Sun C++ 5.9
5197
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5198
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5199
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3757
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3758
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3759
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5200
3760
              ;;
5201
3761
            esac
5202
3762
            ;;
5209
3769
      mvs*)
5210
3770
        case $cc_basename in
5211
3771
          cxx*)
5212
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
3772
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5213
3773
            ;;
5214
3774
          *)
5215
3775
            ;;
5216
3776
        esac
5217
3777
        ;;
5218
 
      netbsd* | netbsdelf*-gnu)
 
3778
      netbsd*)
5219
3779
        ;;
 
3780
      *qnx* | *nto*)
 
3781
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3782
        # it will coredump.
 
3783
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3784
        ;;
5220
3785
      osf3* | osf4* | osf5*)
5221
3786
        case $cc_basename in
5222
3787
          KCC*)
5223
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3788
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5224
3789
            ;;
5225
3790
          RCC*)
5226
3791
            # Rational C++ 2.4.1
5227
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3792
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5228
3793
            ;;
5229
3794
          cxx*)
5230
3795
            # Digital/Compaq C++
5231
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3796
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5232
3797
            # Make sure the PIC flag is empty.  It appears that all Alpha
5233
3798
            # Linux and Compaq Tru64 Unix objects are PIC.
5234
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5235
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3799
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3800
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5236
3801
            ;;
5237
3802
          *)
5238
3803
            ;;
5244
3809
        case $cc_basename in
5245
3810
          CC*)
5246
3811
            # Sun C++ 4.2, 5.x and Centerline C++
5247
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5248
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5249
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3812
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3813
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3814
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5250
3815
            ;;
5251
3816
          gcx*)
5252
3817
            # Green Hills C++ Compiler
5253
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
3818
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5254
3819
            ;;
5255
3820
          *)
5256
3821
            ;;
5260
3825
        case $cc_basename in
5261
3826
          CC*)
5262
3827
            # Sun C++ 4.x
5263
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5264
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3828
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3829
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265
3830
            ;;
5266
3831
          lcc*)
5267
3832
            # Lucid
5268
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3833
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5269
3834
            ;;
5270
3835
          *)
5271
3836
            ;;
5272
3837
        esac
5273
3838
        ;;
 
3839
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
3840
        case $cc_basename in
 
3841
          CC*)
 
3842
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3843
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3844
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3845
            ;;
 
3846
        esac
 
3847
        ;;
5274
3848
      tandem*)
5275
3849
        case $cc_basename in
5276
3850
          NCC*)
5277
3851
            # NonStop-UX NCC 3.20
5278
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3852
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5279
3853
            ;;
5280
3854
          *)
5281
3855
            ;;
5282
3856
        esac
5283
3857
        ;;
5284
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5285
 
        case $cc_basename in
5286
 
          CC*)
5287
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5288
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5289
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5290
 
            ;;
5291
 
        esac
5292
 
        ;;
5293
3858
      vxworks*)
5294
3859
        ;;
5295
3860
      *)
5296
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3861
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5297
3862
        ;;
5298
3863
    esac
5299
3864
  fi
5300
3865
],
5301
3866
[
5302
3867
  if test "$GCC" = yes; then
5303
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5304
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3868
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3869
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5305
3870
 
5306
3871
    case $host_os in
5307
3872
      aix*)
5308
3873
      # All AIX code is PIC.
5309
3874
      if test "$host_cpu" = ia64; then
5310
3875
        # AIX 5 now supports IA64 processor
5311
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3876
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5312
3877
      fi
5313
3878
      ;;
5314
3879
 
5315
3880
    amigaos*)
5316
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5317
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5318
 
      # like `-m68040'.
5319
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3881
      case $host_cpu in
 
3882
      powerpc)
 
3883
            # see comment about AmigaOS4 .so support
 
3884
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3885
        ;;
 
3886
      m68k)
 
3887
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3888
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3889
            # like `-m68040'.
 
3890
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3891
        ;;
 
3892
      esac
5320
3893
      ;;
5321
3894
 
5322
3895
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5323
3896
      # PIC is the default for these OSes.
5324
3897
      ;;
5325
3898
 
5326
 
    mingw* | cygwin* | pw32* | os2*)
 
3899
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5327
3900
      # This hack is so that the source file can tell whether it is being
5328
3901
      # built for inclusion in a dll (and should export symbols for example).
5329
3902
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5330
3903
      # (--disable-auto-import) libraries
5331
3904
      m4_if([$1], [GCJ], [],
5332
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3905
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5333
3906
      ;;
5334
3907
 
5335
3908
    darwin* | rhapsody*)
5336
3909
      # PIC is the default on this platform
5337
3910
      # Common symbols not allowed in MH_DYLIB files
5338
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3911
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3912
      ;;
 
3913
 
 
3914
    hpux*)
 
3915
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3916
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3917
      # sets the default TLS model and affects inlining.
 
3918
      case $host_cpu in
 
3919
      hppa*64*)
 
3920
        # +Z the default
 
3921
        ;;
 
3922
      *)
 
3923
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3924
        ;;
 
3925
      esac
5339
3926
      ;;
5340
3927
 
5341
3928
    interix[[3-9]]*)
5346
3933
    msdosdjgpp*)
5347
3934
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5348
3935
      # on systems that don't support them.
5349
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3936
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5350
3937
      enable_shared=no
5351
3938
      ;;
5352
3939
 
 
3940
    *nto* | *qnx*)
 
3941
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3942
      # it will coredump.
 
3943
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3944
      ;;
 
3945
 
5353
3946
    sysv4*MP*)
5354
3947
      if test -d /usr/nec; then
5355
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3948
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5356
3949
      fi
5357
3950
      ;;
5358
3951
 
5359
 
    hpux*)
5360
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5361
 
      # not for PA HP-UX.
5362
 
      case $host_cpu in
5363
 
      hppa*64*|ia64*)
5364
 
        # +Z the default
5365
 
        ;;
5366
 
      *)
5367
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5368
 
        ;;
5369
 
      esac
5370
 
      ;;
5371
 
 
5372
3952
    *)
5373
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3953
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5374
3954
      ;;
5375
3955
    esac
5376
3956
  else
5377
3957
    # PORTME Check for flag to pass linker flags through the system compiler.
5378
3958
    case $host_os in
5379
3959
    aix*)
5380
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3960
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5381
3961
      if test "$host_cpu" = ia64; then
5382
3962
        # AIX 5 now supports IA64 processor
5383
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3963
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5384
3964
      else
5385
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
3965
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5386
3966
      fi
5387
3967
      ;;
5388
 
      darwin*)
5389
 
        # PIC is the default on this platform
5390
 
        # Common symbols not allowed in MH_DYLIB files
5391
 
       case $cc_basename in
5392
 
         xlc*)
5393
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5394
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5395
 
         ;;
5396
 
       esac
5397
 
       ;;
5398
3968
 
5399
 
    mingw* | cygwin* | pw32* | os2*)
 
3969
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5400
3970
      # This hack is so that the source file can tell whether it is being
5401
3971
      # built for inclusion in a dll (and should export symbols for example).
5402
3972
      m4_if([$1], [GCJ], [],
5403
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3973
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5404
3974
      ;;
5405
3975
 
5406
3976
    hpux9* | hpux10* | hpux11*)
5407
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3977
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5408
3978
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5409
3979
      # not for PA HP-UX.
5410
3980
      case $host_cpu in
5412
3982
        # +Z the default
5413
3983
        ;;
5414
3984
      *)
5415
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3985
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5416
3986
        ;;
5417
3987
      esac
5418
3988
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5419
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3989
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5420
3990
      ;;
5421
3991
 
5422
3992
    irix5* | irix6* | nonstopux*)
5423
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3993
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5424
3994
      # PIC (with -KPIC) is the default.
5425
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5426
 
      ;;
5427
 
 
5428
 
    newsos6)
5429
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5430
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3995
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5431
3996
      ;;
5432
3997
 
5433
3998
    linux* | k*bsd*-gnu)
5434
3999
      case $cc_basename in
5435
 
      icc* | ecc*)
5436
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5438
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5439
 
        ;;
 
4000
      # old Intel for x86_64 which still supported -KPIC.
 
4001
      ecc*)
 
4002
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4003
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4004
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4005
        ;;
 
4006
      # icc used to be incompatible with GCC.
 
4007
      # ICC 10 doesn't accept -KPIC any more.
 
4008
      icc* | ifort*)
 
4009
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4010
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4011
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4012
        ;;
 
4013
      # Lahey Fortran 8.1.
 
4014
      lf95*)
 
4015
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4016
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4017
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4018
        ;;
5440
4019
      pgcc* | pgf77* | pgf90* | pgf95*)
5441
4020
        # Portland Group compilers (*not* the Pentium gcc compiler,
5442
4021
        # which looks to be a dead project)
5443
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5445
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4022
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4023
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4024
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5446
4025
        ;;
5447
4026
      ccc*)
5448
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4027
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449
4028
        # All Alpha code is PIC.
5450
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4029
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5451
4030
        ;;
 
4031
      xl*)
 
4032
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4033
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4034
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4035
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4036
        ;;
5452
4037
      *)
5453
 
        case `$CC -V 2>&1 | sed 5q` in
 
4038
        case `$CC -V 2>&1 | sed 5q` in
5454
4039
        *Sun\ C*)
5455
4040
          # Sun C 5.9
5456
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5457
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5458
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4041
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4042
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4043
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5459
4044
          ;;
5460
4045
        *Sun\ F*)
5461
4046
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5462
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4047
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4048
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4049
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5465
4050
          ;;
5466
4051
        esac
5467
4052
        ;;
5468
4053
      esac
5469
4054
      ;;
5470
4055
 
 
4056
    newsos6)
 
4057
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4058
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4059
      ;;
 
4060
 
 
4061
    *nto* | *qnx*)
 
4062
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4063
      # it will coredump.
 
4064
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4065
      ;;
 
4066
 
5471
4067
    osf3* | osf4* | osf5*)
5472
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4068
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5473
4069
      # All OSF/1 code is PIC.
5474
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4070
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5475
4071
      ;;
5476
4072
 
5477
4073
    rdos*)
5478
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4074
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5479
4075
      ;;
5480
4076
 
5481
4077
    solaris*)
5482
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5483
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4078
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4079
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484
4080
      case $cc_basename in
5485
4081
      f77* | f90* | f95*)
5486
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4082
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5487
4083
      *)
5488
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4084
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5489
4085
      esac
5490
4086
      ;;
5491
4087
 
5492
4088
    sunos4*)
5493
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5494
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5495
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4089
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4090
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4091
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5496
4092
      ;;
5497
4093
 
5498
4094
    sysv4 | sysv4.2uw2* | sysv4.3*)
5499
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5500
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5501
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4095
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4096
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4097
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5502
4098
      ;;
5503
4099
 
5504
4100
    sysv4*MP*)
5505
4101
      if test -d /usr/nec ;then
5506
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5507
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4102
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4103
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5508
4104
      fi
5509
4105
      ;;
5510
4106
 
5511
4107
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5512
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5513
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4108
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4109
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4110
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5515
4111
      ;;
5516
4112
 
5517
4113
    unicos*)
5518
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5519
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4114
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4115
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5520
4116
      ;;
5521
4117
 
5522
4118
    uts4*)
5523
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5524
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4119
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4120
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5525
4121
      ;;
5526
4122
 
5527
4123
    *)
5528
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4124
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5529
4125
      ;;
5530
4126
    esac
5531
4127
  fi
5532
4128
])
5533
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4129
case $host_os in
 
4130
  # For platforms which do not support PIC, -DPIC is meaningless:
 
4131
  *djgpp*)
 
4132
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4133
    ;;
 
4134
  *)
 
4135
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
4136
    ;;
 
4137
esac
 
4138
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4139
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4140
        [How to pass a linker flag through the compiler])
5534
4141
 
5535
4142
#
5536
4143
# Check to make sure the PIC flag actually works.
5537
4144
#
5538
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5539
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5540
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5541
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5542
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
4145
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4146
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
4147
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
4148
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
4149
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5543
4150
     "" | " "*) ;;
5544
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
4151
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5545
4152
     esac],
5546
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5547
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
4153
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4154
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5548
4155
fi
5549
 
case $host_os in
5550
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5551
 
  *djgpp*)
5552
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5553
 
    ;;
5554
 
  *)
5555
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5556
 
    ;;
5557
 
esac
 
4156
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
4157
        [Additional compiler flags for building library objects])
5558
4158
 
5559
4159
#
5560
4160
# Check to make sure the static flag actually works.
5561
4161
#
5562
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5563
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5564
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
4162
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
4163
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
4164
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5565
4165
  $lt_tmp_static_flag,
5566
4166
  [],
5567
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5568
 
])
5569
 
 
5570
 
 
5571
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5572
 
# ------------------------------------
 
4167
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
4168
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
4169
        [Compiler flag to prevent dynamic linking])
 
4170
])# _LT_COMPILER_PIC
 
4171
 
 
4172
 
 
4173
# _LT_LINKER_SHLIBS([TAGNAME])
 
4174
# ----------------------------
5573
4175
# See if the linker supports building shared libraries.
5574
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5575
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4176
m4_defun([_LT_LINKER_SHLIBS],
 
4177
[AC_REQUIRE([LT_PATH_LD])dnl
 
4178
AC_REQUIRE([LT_PATH_NM])dnl
 
4179
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4180
m4_require([_LT_DECL_EGREP])dnl
 
4181
m4_require([_LT_DECL_SED])dnl
 
4182
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
4183
m4_require([_LT_TAG_COMPILER])dnl
5576
4184
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5577
 
ifelse([$1],[CXX],[
5578
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4185
m4_if([$1], [CXX], [
 
4186
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5579
4187
  case $host_os in
5580
4188
  aix[[4-9]]*)
5581
4189
    # If we're using GNU nm, then we don't want the "-C" option.
5582
4190
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5583
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5584
 
      _LT_AC_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'
 
4191
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4192
      _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'
5585
4193
    else
5586
 
      _LT_AC_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'
 
4194
      _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'
5587
4195
    fi
5588
4196
    ;;
5589
4197
  pw32*)
5590
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5591
 
  ;;
5592
 
  cygwin* | mingw*)
5593
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5594
 
  ;;
5595
 
  linux* | k*bsd*-gnu)
5596
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4198
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
4199
  ;;
 
4200
  cygwin* | mingw* | cegcc*)
 
4201
    _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'
5597
4202
  ;;
5598
4203
  *)
5599
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4204
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600
4205
  ;;
5601
4206
  esac
5602
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5603
 
],[
 
4207
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4208
], [
5604
4209
  runpath_var=
5605
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5606
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5607
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
5608
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5609
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5610
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5611
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5612
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5613
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5614
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5615
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5616
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5617
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
5618
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5619
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5620
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5621
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5622
 
  _LT_AC_TAGVAR(module_cmds, $1)=
5623
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5624
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5625
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4210
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
4211
  _LT_TAGVAR(always_export_symbols, $1)=no
 
4212
  _LT_TAGVAR(archive_cmds, $1)=
 
4213
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
4214
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
4215
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4216
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4217
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4218
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
4219
  _LT_TAGVAR(hardcode_direct, $1)=no
 
4220
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
4221
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4222
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4223
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
4224
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
4225
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4226
  _LT_TAGVAR(inherit_rpath, $1)=no
 
4227
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
4228
  _LT_TAGVAR(module_cmds, $1)=
 
4229
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
4230
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
4231
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
4232
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
4233
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5626
4234
  # include_expsyms should be a list of space-separated symbols to be *always*
5627
4235
  # included in the symbol list
5628
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
4236
  _LT_TAGVAR(include_expsyms, $1)=
5629
4237
  # exclude_expsyms can be an extended regexp of symbols to exclude
5630
4238
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5631
4239
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5632
4240
  # as well as any symbol that contains `d'.
5633
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4241
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5634
4242
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5635
4243
  # platforms (ab)use it in PIC code, but their linkers get confused if
5636
4244
  # the symbol is explicitly referenced.  Since portable code cannot
5639
4247
  # Exclude shared library initialization/finalization symbols.
5640
4248
dnl Note also adjust exclude_expsyms for C++ above.
5641
4249
  extract_expsyms_cmds=
5642
 
  # Just being paranoid about ensuring that cc_basename is set.
5643
 
  _LT_CC_BASENAME([$compiler])
 
4250
 
5644
4251
  case $host_os in
5645
 
  cygwin* | mingw* | pw32*)
 
4252
  cygwin* | mingw* | pw32* | cegcc*)
5646
4253
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5647
4254
    # When not using gcc, we currently assume that we are using
5648
4255
    # Microsoft Visual C++.
5659
4266
    ;;
5660
4267
  esac
5661
4268
 
5662
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4269
  _LT_TAGVAR(ld_shlibs, $1)=yes
5663
4270
  if test "$with_gnu_ld" = yes; then
5664
4271
    # If archive_cmds runs LD, not CC, wlarc should be empty
5665
4272
    wlarc='${wl}'
5668
4275
    # are reset later if shared libraries are not supported. Putting them
5669
4276
    # here allows them to be overridden if necessary.
5670
4277
    runpath_var=LD_RUN_PATH
5671
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5672
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4278
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4279
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5673
4280
    # ancient GNU ld didn't support --whole-archive et. al.
5674
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5675
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5676
 
      else
5677
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4281
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
4282
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4283
    else
 
4284
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5678
4285
    fi
5679
4286
    supports_anon_versioning=no
5680
 
    case `$LD -v 2>/dev/null` in
 
4287
    case `$LD -v 2>&1` in
5681
4288
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5682
4289
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5683
4290
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5690
4297
    aix[[3-9]]*)
5691
4298
      # On AIX/PPC, the GNU linker is very broken
5692
4299
      if test "$host_cpu" != ia64; then
5693
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5694
 
        cat <<EOF 1>&2
 
4300
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4301
        cat <<_LT_EOF 1>&2
5695
4302
 
5696
4303
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5697
4304
*** to be unable to reliably create shared libraries on AIX.
5699
4306
*** really care for shared libraries, you may want to modify your PATH
5700
4307
*** so that a non-GNU linker is found, and then restart.
5701
4308
 
5702
 
EOF
 
4309
_LT_EOF
5703
4310
      fi
5704
4311
      ;;
5705
4312
 
5706
4313
    amigaos*)
5707
 
      _LT_AC_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)'
5708
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5709
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5710
 
 
5711
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5712
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
5713
 
      # to version 4, is to share data among multiple programs linked
5714
 
      # with the same dynamic library.  Since this doesn't match the
5715
 
      # behavior of shared libraries on other platforms, we can't use
5716
 
      # them.
5717
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4314
      case $host_cpu in
 
4315
      powerpc)
 
4316
            # see comment about AmigaOS4 .so support
 
4317
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4318
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4319
        ;;
 
4320
      m68k)
 
4321
            _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)'
 
4322
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4323
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4324
        ;;
 
4325
      esac
5718
4326
      ;;
5719
4327
 
5720
4328
    beos*)
5721
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5722
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4329
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4330
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5723
4331
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5724
4332
        # support --undefined.  This deserves some investigation.  FIXME
5725
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4333
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5726
4334
      else
5727
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4335
        _LT_TAGVAR(ld_shlibs, $1)=no
5728
4336
      fi
5729
4337
      ;;
5730
4338
 
5731
 
    cygwin* | mingw* | pw32*)
5732
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4339
    cygwin* | mingw* | pw32* | cegcc*)
 
4340
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5733
4341
      # as there is no search path for DLLs.
5734
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5735
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5736
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5737
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5738
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4342
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4343
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4344
      _LT_TAGVAR(always_export_symbols, $1)=no
 
4345
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4346
      _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'
5739
4347
 
5740
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5741
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4348
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
4349
        _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'
5742
4350
        # If the export-symbols file already is a .def file (1st line
5743
4351
        # is EXPORTS), use it as is; otherwise, prepend...
5744
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4352
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5745
4353
          cp $export_symbols $output_objdir/$soname.def;
5746
4354
        else
5747
4355
          echo EXPORTS > $output_objdir/$soname.def;
5749
4357
        fi~
5750
4358
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5751
4359
      else
5752
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4360
        _LT_TAGVAR(ld_shlibs, $1)=no
5753
4361
      fi
5754
4362
      ;;
5755
4363
 
5756
4364
    interix[[3-9]]*)
5757
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4365
      _LT_TAGVAR(hardcode_direct, $1)=no
 
4366
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4367
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4368
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761
4369
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762
4370
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5763
4371
      # default) and relocated if they conflict, which is a slow very memory
5764
4372
      # consuming and fragmenting process.  To avoid this, we pick a random,
5765
4373
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766
4374
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5767
 
      _LT_AC_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'
5768
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
4375
      _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'
 
4376
      _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'
5769
4377
      ;;
5770
4378
 
5771
 
    gnu* | linux* | k*bsd*-gnu)
5772
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4379
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4380
      tmp_diet=no
 
4381
      if test "$host_os" = linux-dietlibc; then
 
4382
        case $cc_basename in
 
4383
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
4384
        esac
 
4385
      fi
 
4386
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
4387
         && test "$tmp_diet" = no
 
4388
      then
5773
4389
        tmp_addflag=
 
4390
        tmp_sharedflag='-shared'
5774
4391
        case $cc_basename,$host_cpu in
5775
 
        pgcc*)                          # Portland Group C compiler
5776
 
          _LT_AC_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'
 
4392
        pgcc*)                          # Portland Group C compiler
 
4393
          _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'
5777
4394
          tmp_addflag=' $pic_flag'
5778
4395
          ;;
5779
4396
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5780
 
          _LT_AC_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'
 
4397
          _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'
5781
4398
          tmp_addflag=' $pic_flag -Mnomain' ;;
5782
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
4399
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5783
4400
          tmp_addflag=' -i_dynamic' ;;
5784
4401
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5785
4402
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5786
4403
        ifc* | ifort*)                  # Intel Fortran compiler
5787
4404
          tmp_addflag=' -nofor_main' ;;
 
4405
        lf95*)                          # Lahey Fortran 8.1
 
4406
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
4407
          tmp_sharedflag='--shared' ;;
 
4408
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4409
          tmp_sharedflag='-qmkshrobj'
 
4410
          tmp_addflag= ;;
5788
4411
        esac
5789
4412
        case `$CC -V 2>&1 | sed 5q` in
5790
4413
        *Sun\ C*)                       # Sun C 5.9
5791
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4414
          _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'
 
4415
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5792
4416
          tmp_sharedflag='-G' ;;
5793
4417
        *Sun\ F*)                       # Sun Fortran 8.3
5794
4418
          tmp_sharedflag='-G' ;;
5795
 
        *)
5796
 
          tmp_sharedflag='-shared' ;;
5797
 
        esac
5798
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5799
 
 
5800
 
        if test $supports_anon_versioning = yes; then
5801
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5802
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5803
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5804
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5805
 
        fi
5806
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4419
        esac
 
4420
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4421
 
 
4422
        if test "x$supports_anon_versioning" = xyes; then
 
4423
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4424
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4425
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
4426
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
4427
        fi
 
4428
 
 
4429
        case $cc_basename in
 
4430
        xlf*)
 
4431
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
4432
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
4433
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4434
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4435
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4436
          if test "x$supports_anon_versioning" = xyes; then
 
4437
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4438
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4439
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
4440
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4441
          fi
 
4442
          ;;
 
4443
        esac
5807
4444
      else
5808
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4445
        _LT_TAGVAR(ld_shlibs, $1)=no
5809
4446
      fi
5810
4447
      ;;
5811
4448
 
5812
 
    netbsd* | netbsdelf*-gnu)
5813
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5814
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
4449
    netbsd*)
 
4450
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4451
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5815
4452
        wlarc=
5816
4453
      else
5817
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5818
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4454
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4455
        _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'
5819
4456
      fi
5820
4457
      ;;
5821
4458
 
5822
4459
    solaris*)
5823
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5824
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5825
 
        cat <<EOF 1>&2
 
4460
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
4461
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4462
        cat <<_LT_EOF 1>&2
5826
4463
 
5827
4464
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5828
4465
*** create shared libraries on Solaris systems.  Therefore, libtool
5831
4468
*** your PATH or compiler configuration so that the native linker is
5832
4469
*** used, and then restart.
5833
4470
 
5834
 
EOF
5835
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5836
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5837
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4471
_LT_EOF
 
4472
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4473
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4474
        _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'
5838
4475
      else
5839
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4476
        _LT_TAGVAR(ld_shlibs, $1)=no
5840
4477
      fi
5841
4478
      ;;
5842
4479
 
5843
4480
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5844
4481
      case `$LD -v 2>&1` in
5845
4482
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5846
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4483
        _LT_TAGVAR(ld_shlibs, $1)=no
5847
4484
        cat <<_LT_EOF 1>&2
5848
4485
 
5849
4486
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5856
4493
_LT_EOF
5857
4494
        ;;
5858
4495
        *)
5859
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5860
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5861
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5862
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
4496
          # For security reasons, it is highly recommended that you always
 
4497
          # use absolute paths for naming shared libraries, and exclude the
 
4498
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
4499
          # requires that you compile everything twice, which is a pain.
 
4500
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4501
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4502
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4503
            _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'
5863
4504
          else
5864
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4505
            _LT_TAGVAR(ld_shlibs, $1)=no
5865
4506
          fi
5866
4507
        ;;
5867
4508
      esac
5868
4509
      ;;
5869
4510
 
5870
4511
    sunos4*)
5871
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4512
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5872
4513
      wlarc=
5873
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5874
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4514
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4515
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5875
4516
      ;;
5876
4517
 
5877
4518
    *)
5878
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5879
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5880
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4519
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4520
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4521
        _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'
5881
4522
      else
5882
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4523
        _LT_TAGVAR(ld_shlibs, $1)=no
5883
4524
      fi
5884
4525
      ;;
5885
4526
    esac
5886
4527
 
5887
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
4528
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5888
4529
      runpath_var=
5889
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5890
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5891
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4530
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4531
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4532
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5892
4533
    fi
5893
4534
  else
5894
4535
    # PORTME fill in a description of your system's linker (not GNU ld)
5895
4536
    case $host_os in
5896
4537
    aix3*)
5897
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5898
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5899
 
      _LT_AC_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'
 
4538
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4539
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
4540
      _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'
5900
4541
      # Note: this linker hardcodes the directories in LIBPATH if there
5901
4542
      # are no directories specified by -L.
5902
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4543
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5903
4544
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5904
4545
        # Neither direct hardcoding nor static linking is supported with a
5905
4546
        # broken collect2.
5906
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4547
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5907
4548
      fi
5908
4549
      ;;
5909
4550
 
5917
4558
      else
5918
4559
        # If we're using GNU nm, then we don't want the "-C" option.
5919
4560
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5920
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5921
 
          _LT_AC_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'
 
4561
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4562
          _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'
5922
4563
        else
5923
 
          _LT_AC_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'
 
4564
          _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'
5924
4565
        fi
5925
4566
        aix_use_runtimelinking=no
5926
4567
 
5929
4570
        # need to do runtime linking.
5930
4571
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5931
4572
          for ld_flag in $LDFLAGS; do
5932
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5933
 
            aix_use_runtimelinking=yes
5934
 
            break
5935
 
          fi
 
4573
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
4574
            aix_use_runtimelinking=yes
 
4575
            break
 
4576
          fi
5936
4577
          done
5937
4578
          ;;
5938
4579
        esac
5947
4588
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5948
4589
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5949
4590
 
5950
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
5951
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5952
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5953
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4591
      _LT_TAGVAR(archive_cmds, $1)=''
 
4592
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4593
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4594
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4595
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4596
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5954
4597
 
5955
4598
      if test "$GCC" = yes; then
5956
4599
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5957
4600
        # We only want to do this on AIX 4.2 and lower, the check
5958
4601
        # below for broken collect2 doesn't work under 4.3+
5959
4602
          collect2name=`${CC} -print-prog-name=collect2`
5960
 
          if test -f "$collect2name" && \
5961
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4603
          if test -f "$collect2name" &&
 
4604
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5962
4605
          then
5963
 
          # We have reworked collect2
5964
 
          :
 
4606
          # We have reworked collect2
 
4607
          :
5965
4608
          else
5966
 
          # We have old collect2
5967
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5968
 
          # It fails to find uninstalled libraries when the uninstalled
5969
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5970
 
          # to unsupported forces relinking
5971
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5972
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5973
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4609
          # We have old collect2
 
4610
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
4611
          # It fails to find uninstalled libraries when the uninstalled
 
4612
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4613
          # to unsupported forces relinking
 
4614
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4615
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4616
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
5974
4617
          fi
5975
4618
          ;;
5976
4619
        esac
5981
4624
      else
5982
4625
        # not using gcc
5983
4626
        if test "$host_cpu" = ia64; then
5984
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5985
 
        # chokes on -Wl,-G. The following line is correct:
 
4627
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4628
        # chokes on -Wl,-G. The following line is correct:
5986
4629
          shared_flag='-G'
5987
4630
        else
5988
4631
          if test "$aix_use_runtimelinking" = yes; then
5993
4636
        fi
5994
4637
      fi
5995
4638
 
 
4639
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5996
4640
      # It seems that -bexpall does not export symbols beginning with
5997
4641
      # underscore (_), so it is better to generate a list of symbols to export.
5998
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4642
      _LT_TAGVAR(always_export_symbols, $1)=yes
5999
4643
      if test "$aix_use_runtimelinking" = yes; then
6000
4644
        # Warning - without using the other runtime loading flags (-brtl),
6001
4645
        # -berok will link without error, but may produce a broken library.
6002
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6003
 
       # Determine the default libpath from the value encoded in an empty executable.
6004
 
       _LT_AC_SYS_LIBPATH_AIX
6005
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6006
 
        _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6007
 
       else
 
4646
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4647
        # Determine the default libpath from the value encoded in an
 
4648
        # empty executable.
 
4649
        _LT_SYS_MODULE_PATH_AIX
 
4650
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4651
        _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"
 
4652
      else
6008
4653
        if test "$host_cpu" = ia64; then
6009
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6010
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6011
 
          _LT_AC_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"
 
4654
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4655
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4656
          _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"
6012
4657
        else
6013
 
         # Determine the default libpath from the value encoded in an empty executable.
6014
 
         _LT_AC_SYS_LIBPATH_AIX
6015
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4658
         # Determine the default libpath from the value encoded in an
 
4659
         # empty executable.
 
4660
         _LT_SYS_MODULE_PATH_AIX
 
4661
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6016
4662
          # Warning - without using the other run time loading flags,
6017
4663
          # -berok will link without error, but may produce a broken library.
6018
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6019
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4664
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4665
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6020
4666
          # Exported symbols can be pulled into shared objects from archives
6021
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6022
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4667
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4668
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6023
4669
          # This is similar to how AIX traditionally builds its shared libraries.
6024
 
          _LT_AC_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'
 
4670
          _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'
6025
4671
        fi
6026
4672
      fi
6027
4673
      ;;
6028
4674
 
6029
4675
    amigaos*)
6030
 
      _LT_AC_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)'
6031
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6032
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6033
 
      # see comment about different semantics on the GNU ld section
6034
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4676
      case $host_cpu in
 
4677
      powerpc)
 
4678
            # see comment about AmigaOS4 .so support
 
4679
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4680
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4681
        ;;
 
4682
      m68k)
 
4683
            _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)'
 
4684
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4685
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4686
        ;;
 
4687
      esac
6035
4688
      ;;
6036
4689
 
6037
4690
    bsdi[[45]]*)
6038
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
4691
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6039
4692
      ;;
6040
4693
 
6041
 
    cygwin* | mingw* | pw32*)
 
4694
    cygwin* | mingw* | pw32* | cegcc*)
6042
4695
      # When not using gcc, we currently assume that we are using
6043
4696
      # Microsoft Visual C++.
6044
4697
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6045
4698
      # no search path for DLLs.
6046
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6047
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4699
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
4700
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6048
4701
      # Tell ltmain to make .lib files, not .a files.
6049
4702
      libext=lib
6050
4703
      # Tell ltmain to make .dll files, not .so files.
6051
4704
      shrext_cmds=".dll"
6052
4705
      # FIXME: Setting linknames here is a bad hack.
6053
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
4706
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6054
4707
      # The linker will automatically build a .lib file if we build a DLL.
6055
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
4708
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6056
4709
      # FIXME: Should let the user specify the lib program.
6057
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6058
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6059
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4710
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
4711
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
4712
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6060
4713
      ;;
6061
4714
 
6062
4715
    darwin* | rhapsody*)
6063
 
      case $host_os in
6064
 
        rhapsody* | darwin1.[[012]])
6065
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6066
 
         ;;
6067
 
       *) # Darwin 1.3 on
6068
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6069
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6070
 
         else
6071
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6072
 
             10.[[012]])
6073
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6074
 
               ;;
6075
 
             10.*)
6076
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6077
 
               ;;
6078
 
           esac
6079
 
         fi
6080
 
         ;;
6081
 
      esac
6082
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6083
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6084
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6085
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6086
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6087
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6088
 
    if test "$GCC" = yes ; then
6089
 
        output_verbose_link_cmd='echo'
6090
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6091
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6092
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6093
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6094
 
    else
6095
 
      case $cc_basename in
6096
 
        xlc*)
6097
 
         output_verbose_link_cmd='echo'
6098
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6099
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6100
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6101
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6102
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6103
 
          ;;
6104
 
       *)
6105
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6106
 
          ;;
6107
 
      esac
6108
 
    fi
 
4716
      _LT_DARWIN_LINKER_FEATURES($1)
6109
4717
      ;;
6110
4718
 
6111
4719
    dgux*)
6112
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6113
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6114
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4720
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4721
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4722
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6115
4723
      ;;
6116
4724
 
6117
4725
    freebsd1*)
6118
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4726
      _LT_TAGVAR(ld_shlibs, $1)=no
6119
4727
      ;;
6120
4728
 
6121
4729
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6123
4731
    # does not break anything, and helps significantly (at the cost of a little
6124
4732
    # extra space).
6125
4733
    freebsd2.2*)
6126
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6127
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6128
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6129
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4734
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
4735
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4736
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4737
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6130
4738
      ;;
6131
4739
 
6132
4740
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6133
4741
    freebsd2*)
6134
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6135
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6136
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6137
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4742
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4743
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4744
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4745
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6138
4746
      ;;
6139
4747
 
6140
4748
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6141
4749
    freebsd* | dragonfly*)
6142
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6143
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6144
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6145
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4750
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
4751
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4752
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4753
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6146
4754
      ;;
6147
4755
 
6148
4756
    hpux9*)
6149
4757
      if test "$GCC" = yes; then
6150
 
        _LT_AC_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'
 
4758
        _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'
6151
4759
      else
6152
 
        _LT_AC_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'
 
4760
        _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'
6153
4761
      fi
6154
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6155
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6156
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4762
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4763
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4764
      _LT_TAGVAR(hardcode_direct, $1)=yes
6157
4765
 
6158
4766
      # hardcode_minus_L: Not really in the search PATH,
6159
4767
      # but as the default location of the library.
6160
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6161
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4768
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4769
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6162
4770
      ;;
6163
4771
 
6164
4772
    hpux10*)
6165
4773
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4774
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6167
4775
      else
6168
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
4776
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6169
4777
      fi
6170
4778
      if test "$with_gnu_ld" = no; then
6171
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6173
 
 
6174
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6175
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6176
 
 
 
4779
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4780
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4781
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4782
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4783
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4784
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6177
4785
        # hardcode_minus_L: Not really in the search PATH,
6178
4786
        # but as the default location of the library.
6179
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4787
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6180
4788
      fi
6181
4789
      ;;
6182
4790
 
6184
4792
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6185
4793
        case $host_cpu in
6186
4794
        hppa*64*)
6187
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4795
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6188
4796
          ;;
6189
4797
        ia64*)
6190
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4798
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6191
4799
          ;;
6192
4800
        *)
6193
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4801
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6194
4802
          ;;
6195
4803
        esac
6196
4804
      else
6197
4805
        case $host_cpu in
6198
4806
        hppa*64*)
6199
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4807
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6200
4808
          ;;
6201
4809
        ia64*)
6202
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4810
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6203
4811
          ;;
6204
4812
        *)
6205
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4813
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6206
4814
          ;;
6207
4815
        esac
6208
4816
      fi
6209
4817
      if test "$with_gnu_ld" = no; then
6210
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6211
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4818
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4819
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6212
4820
 
6213
4821
        case $host_cpu in
6214
4822
        hppa*64*|ia64*)
6215
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6216
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6217
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4823
          _LT_TAGVAR(hardcode_direct, $1)=no
 
4824
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6218
4825
          ;;
6219
4826
        *)
6220
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6221
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4827
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
4828
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4829
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6222
4830
 
6223
4831
          # hardcode_minus_L: Not really in the search PATH,
6224
4832
          # but as the default location of the library.
6225
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4833
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6226
4834
          ;;
6227
4835
        esac
6228
4836
      fi
6230
4838
 
6231
4839
    irix5* | irix6* | nonstopux*)
6232
4840
      if test "$GCC" = yes; then
6233
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
4841
        _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'
 
4842
        # Try to use the -exported_symbol ld option, if it does not
 
4843
        # work, assume that -exports_file does not work either and
 
4844
        # implicitly export all symbols.
 
4845
        save_LDFLAGS="$LDFLAGS"
 
4846
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
4847
        AC_LINK_IFELSE(int foo(void) {},
 
4848
          _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'
 
4849
        )
 
4850
        LDFLAGS="$save_LDFLAGS"
6234
4851
      else
6235
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6236
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4852
        _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'
 
4853
        _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'
6237
4854
      fi
6238
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6239
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6240
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4855
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4856
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4857
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4858
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
4859
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6241
4860
      ;;
6242
4861
 
6243
 
    netbsd* | netbsdelf*-gnu)
6244
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6245
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
4862
    netbsd*)
 
4863
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4864
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6246
4865
      else
6247
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
4866
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6248
4867
      fi
6249
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6250
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6251
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4868
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4869
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4870
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6252
4871
      ;;
6253
4872
 
6254
4873
    newsos6)
6255
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6257
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6258
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6259
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4874
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4875
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4876
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4877
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4878
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4879
      ;;
 
4880
 
 
4881
    *nto* | *qnx*)
6260
4882
      ;;
6261
4883
 
6262
4884
    openbsd*)
6263
4885
      if test -f /usr/libexec/ld.so; then
6264
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4886
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4887
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4888
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4889
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4890
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4891
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
4892
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4893
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6271
4894
        else
6272
4895
          case $host_os in
6273
4896
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4897
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4898
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6276
4899
             ;;
6277
4900
           *)
6278
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4901
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4902
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6280
4903
             ;;
6281
4904
          esac
6282
 
        fi
 
4905
        fi
6283
4906
      else
6284
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4907
        _LT_TAGVAR(ld_shlibs, $1)=no
6285
4908
      fi
6286
4909
      ;;
6287
4910
 
6288
4911
    os2*)
6289
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6290
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6291
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6292
 
      _LT_AC_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'
6293
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
4912
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4913
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4914
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4915
      _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'
 
4916
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6294
4917
      ;;
6295
4918
 
6296
4919
    osf3*)
6297
4920
      if test "$GCC" = yes; then
6298
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6299
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
4921
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4922
        _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'
6300
4923
      else
6301
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6302
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
4924
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4925
        _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'
6303
4926
      fi
6304
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6305
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4927
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4928
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4929
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6306
4930
      ;;
6307
4931
 
6308
4932
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6309
4933
      if test "$GCC" = yes; then
6310
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6311
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6312
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4934
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4935
        _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'
 
4936
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6313
4937
      else
6314
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6315
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6316
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6317
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
4938
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4939
        _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'
 
4940
        _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~
 
4941
        $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'
6318
4942
 
6319
4943
        # Both c and cxx compiler support -rpath directly
6320
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4944
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6321
4945
      fi
6322
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4946
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4947
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6323
4948
      ;;
6324
4949
 
6325
4950
    solaris*)
6326
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
4951
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6327
4952
      if test "$GCC" = yes; then
6328
4953
        wlarc='${wl}'
6329
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6330
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6331
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
4954
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4955
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4956
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6332
4957
      else
6333
 
        wlarc=''
6334
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6335
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6336
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
4958
        case `$CC -V 2>&1` in
 
4959
        *"Compilers 5.0"*)
 
4960
          wlarc=''
 
4961
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4962
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4963
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
4964
          ;;
 
4965
        *)
 
4966
          wlarc='${wl}'
 
4967
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
4968
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4969
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
4970
          ;;
 
4971
        esac
6337
4972
      fi
6338
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6339
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4973
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4974
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6340
4975
      case $host_os in
6341
4976
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6342
4977
      *)
6343
4978
        # The compiler driver will combine and reorder linker options,
6344
4979
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6345
4980
        # but is careful enough not to reorder.
6346
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4981
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6347
4982
        if test "$GCC" = yes; then
6348
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4983
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6349
4984
        else
6350
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
4985
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6351
4986
        fi
6352
4987
        ;;
6353
4988
      esac
6354
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4989
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6355
4990
      ;;
6356
4991
 
6357
4992
    sunos4*)
6358
4993
      if test "x$host_vendor" = xsequent; then
6359
4994
        # Use $CC to link under sequent, because it throws in some extra .o
6360
4995
        # files that make .init and .fini sections work.
6361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
4996
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6362
4997
      else
6363
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
4998
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6364
4999
      fi
6365
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6366
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6367
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6368
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5000
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5001
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5002
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5003
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6369
5004
      ;;
6370
5005
 
6371
5006
    sysv4)
6372
5007
      case $host_vendor in
6373
5008
        sni)
6374
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6375
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5009
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5010
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6376
5011
        ;;
6377
5012
        siemens)
6378
5013
          ## LD is ld it makes a PLAMLIB
6379
5014
          ## CC just makes a GrossModule.
6380
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6381
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6382
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5015
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5016
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5017
          _LT_TAGVAR(hardcode_direct, $1)=no
6383
5018
        ;;
6384
5019
        motorola)
6385
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6386
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5020
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5021
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6387
5022
        ;;
6388
5023
      esac
6389
5024
      runpath_var='LD_RUN_PATH'
6390
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5025
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6391
5026
      ;;
6392
5027
 
6393
5028
    sysv4.3*)
6394
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6395
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5029
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5030
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5031
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6397
5032
      ;;
6398
5033
 
6399
5034
    sysv4*MP*)
6400
5035
      if test -d /usr/nec; then
6401
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6402
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5036
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5037
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6403
5038
        runpath_var=LD_RUN_PATH
6404
5039
        hardcode_runpath_var=yes
6405
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5040
        _LT_TAGVAR(ld_shlibs, $1)=yes
6406
5041
      fi
6407
5042
      ;;
6408
5043
 
6409
5044
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6410
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6412
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5045
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5046
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5047
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6413
5048
      runpath_var='LD_RUN_PATH'
6414
5049
 
6415
5050
      if test "$GCC" = yes; then
6416
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5051
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5052
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6418
5053
      else
6419
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5054
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5055
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6421
5056
      fi
6422
5057
      ;;
6423
5058
 
6428
5063
      # ever link correctly.  If we're not using GNU ld we use -z text
6429
5064
      # though, which does catch some bad symbols but isn't as heavy-handed
6430
5065
      # as -z defs.
6431
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6432
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6433
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6434
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6436
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6437
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6438
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5066
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5067
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5068
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5069
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5070
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5071
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5072
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5073
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6439
5074
      runpath_var='LD_RUN_PATH'
6440
5075
 
6441
5076
      if test "$GCC" = yes; then
6442
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6443
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5077
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5078
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
5079
      else
6445
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6446
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5080
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5081
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6447
5082
      fi
6448
5083
      ;;
6449
5084
 
6450
5085
    uts4*)
6451
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6452
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6453
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5086
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5087
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5088
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6454
5089
      ;;
6455
5090
 
6456
5091
    *)
6457
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5092
      _LT_TAGVAR(ld_shlibs, $1)=no
6458
5093
      ;;
6459
5094
    esac
 
5095
 
 
5096
    if test x$host_vendor = xsni; then
 
5097
      case $host in
 
5098
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5099
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5100
        ;;
 
5101
      esac
 
5102
    fi
6460
5103
  fi
6461
5104
])
6462
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6463
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5105
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5106
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5107
 
 
5108
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5109
 
 
5110
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5111
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5112
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5113
    [The commands to extract the exported symbol list from a shared archive])
6464
5114
 
6465
5115
#
6466
5116
# Do we need to explicitly link libc?
6467
5117
#
6468
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5118
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6469
5119
x|xyes)
6470
5120
  # Assume -lc should be added
6471
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5121
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6472
5122
 
6473
5123
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6474
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5124
    case $_LT_TAGVAR(archive_cmds, $1) in
6475
5125
    *'~'*)
6476
5126
      # FIXME: we may have to deal with multi-command sequences.
6477
5127
      ;;
6480
5130
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6481
5131
      # to ld, don't add -lc before -lgcc.
6482
5132
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6483
 
      $rm conftest*
 
5133
      $RM conftest*
6484
5134
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6485
5135
 
6486
5136
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6488
5138
        lib=conftest
6489
5139
        libobjs=conftest.$ac_objext
6490
5140
        deplibs=
6491
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6492
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5141
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5142
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6493
5143
        compiler_flags=-v
6494
5144
        linker_flags=-v
6495
5145
        verstring=
6496
5146
        output_objdir=.
6497
5147
        libname=conftest
6498
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6499
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6500
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
5148
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5149
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
5150
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6501
5151
        then
6502
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5152
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6503
5153
        else
6504
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5154
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6505
5155
        fi
6506
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5156
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6507
5157
      else
6508
5158
        cat conftest.err 1>&5
6509
5159
      fi
6510
 
      $rm conftest*
6511
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
5160
      $RM conftest*
 
5161
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6512
5162
      ;;
6513
5163
    esac
6514
5164
  fi
6515
5165
  ;;
6516
5166
esac
6517
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
6518
 
 
6519
 
 
6520
 
# _LT_AC_FILE_LTDLL_C
6521
 
# -------------------
6522
 
# Be careful that the start marker always follows a newline.
6523
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6524
 
# /* ltdll.c starts here */
6525
 
# #define WIN32_LEAN_AND_MEAN
6526
 
# #include <windows.h>
6527
 
# #undef WIN32_LEAN_AND_MEAN
6528
 
# #include <stdio.h>
6529
 
#
6530
 
# #ifndef __CYGWIN__
6531
 
# #  ifdef __CYGWIN32__
6532
 
# #    define __CYGWIN__ __CYGWIN32__
6533
 
# #  endif
6534
 
# #endif
6535
 
#
6536
 
# #ifdef __cplusplus
6537
 
# extern "C" {
6538
 
# #endif
6539
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6540
 
# #ifdef __cplusplus
6541
 
# }
6542
 
# #endif
6543
 
#
6544
 
# #ifdef __CYGWIN__
6545
 
# #include <cygwin/cygwin_dll.h>
6546
 
# DECLARE_CYGWIN_DLL( DllMain );
6547
 
# #endif
6548
 
# HINSTANCE __hDllInstance_base;
6549
 
#
6550
 
# BOOL APIENTRY
6551
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6552
 
# {
6553
 
#   __hDllInstance_base = hInst;
6554
 
#   return TRUE;
6555
 
# }
6556
 
# /* ltdll.c ends here */
6557
 
])# _LT_AC_FILE_LTDLL_C
6558
 
 
6559
 
 
6560
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
5167
 
 
5168
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
5169
    [Whether or not to add -lc for building shared libraries])
 
5170
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
5171
    [enable_shared_with_static_runtimes], [0],
 
5172
    [Whether or not to disallow shared libs when runtime libs are static])
 
5173
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
5174
    [Compiler flag to allow reflexive dlopens])
 
5175
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
5176
    [Compiler flag to generate shared objects directly from archives])
 
5177
_LT_TAGDECL([], [compiler_needs_object], [1],
 
5178
    [Whether the compiler copes with passing no objects directly])
 
5179
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
5180
    [Create an old-style archive from a shared archive])
 
5181
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
5182
    [Create a temporary old-style archive to link instead of a shared archive])
 
5183
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
5184
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
5185
_LT_TAGDECL([], [module_cmds], [2],
 
5186
    [Commands used to build a loadable module if different from building
 
5187
    a shared archive.])
 
5188
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
5189
_LT_TAGDECL([], [with_gnu_ld], [1],
 
5190
    [Whether we are building with GNU ld or not])
 
5191
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
5192
    [Flag that allows shared libraries with undefined symbols to be built])
 
5193
_LT_TAGDECL([], [no_undefined_flag], [1],
 
5194
    [Flag that enforces no undefined symbols])
 
5195
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
5196
    [Flag to hardcode $libdir into a binary during linking.
 
5197
    This must work even if $libdir does not exist])
 
5198
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
5199
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
5200
    during linking.  This must work even if $libdir does not exist]])
 
5201
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
5202
    [Whether we need a single "-rpath" flag with a separated argument])
 
5203
_LT_TAGDECL([], [hardcode_direct], [0],
 
5204
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5205
    DIR into the resulting binary])
 
5206
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
5207
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5208
    DIR into the resulting binary and the resulting library dependency is
 
5209
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
5210
    library is relocated])
 
5211
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
5212
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
5213
    into the resulting binary])
 
5214
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
5215
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
5216
    into the resulting binary])
 
5217
_LT_TAGDECL([], [hardcode_automatic], [0],
 
5218
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
5219
    into the library and all subsequent libraries and executables linked
 
5220
    against it])
 
5221
_LT_TAGDECL([], [inherit_rpath], [0],
 
5222
    [Set to yes if linker adds runtime paths of dependent libraries
 
5223
    to runtime path list])
 
5224
_LT_TAGDECL([], [link_all_deplibs], [0],
 
5225
    [Whether libtool must link a program against all its dependency libraries])
 
5226
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
5227
    [Fix the shell variable $srcfile for the compiler])
 
5228
_LT_TAGDECL([], [always_export_symbols], [0],
 
5229
    [Set to "yes" if exported symbols are required])
 
5230
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
5231
    [The commands to list exported symbols])
 
5232
_LT_TAGDECL([], [exclude_expsyms], [1],
 
5233
    [Symbols that should not be listed in the preloaded symbols])
 
5234
_LT_TAGDECL([], [include_expsyms], [1],
 
5235
    [Symbols that must always be exported])
 
5236
_LT_TAGDECL([], [prelink_cmds], [2],
 
5237
    [Commands necessary for linking programs (against libraries) with templates])
 
5238
_LT_TAGDECL([], [file_list_spec], [1],
 
5239
    [Specify filename containing input files])
 
5240
dnl FIXME: Not yet implemented
 
5241
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
5242
dnl    [Compiler flag to generate thread safe objects])
 
5243
])# _LT_LINKER_SHLIBS
 
5244
 
 
5245
 
 
5246
# _LT_LANG_C_CONFIG([TAG])
 
5247
# ------------------------
 
5248
# Ensure that the configuration variables for a C compiler are suitably
 
5249
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5250
# the compiler configuration to `libtool'.
 
5251
m4_defun([_LT_LANG_C_CONFIG],
 
5252
[m4_require([_LT_DECL_EGREP])dnl
 
5253
lt_save_CC="$CC"
 
5254
AC_LANG_PUSH(C)
 
5255
 
 
5256
# Source file extension for C test sources.
 
5257
ac_ext=c
 
5258
 
 
5259
# Object file extension for compiled C test sources.
 
5260
objext=o
 
5261
_LT_TAGVAR(objext, $1)=$objext
 
5262
 
 
5263
# Code to be used in simple compile tests
 
5264
lt_simple_compile_test_code="int some_variable = 0;"
 
5265
 
 
5266
# Code to be used in simple link tests
 
5267
lt_simple_link_test_code='int main(){return(0);}'
 
5268
 
 
5269
_LT_TAG_COMPILER
 
5270
# Save the default compiler, since it gets overwritten when the other
 
5271
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
5272
compiler_DEFAULT=$CC
 
5273
 
 
5274
# save warnings/boilerplate of simple test code
 
5275
_LT_COMPILER_BOILERPLATE
 
5276
_LT_LINKER_BOILERPLATE
 
5277
 
 
5278
if test -n "$compiler"; then
 
5279
  _LT_COMPILER_NO_RTTI($1)
 
5280
  _LT_COMPILER_PIC($1)
 
5281
  _LT_COMPILER_C_O($1)
 
5282
  _LT_COMPILER_FILE_LOCKS($1)
 
5283
  _LT_LINKER_SHLIBS($1)
 
5284
  _LT_SYS_DYNAMIC_LINKER($1)
 
5285
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
5286
  LT_SYS_DLOPEN_SELF
 
5287
  _LT_CMD_STRIPLIB
 
5288
 
 
5289
  # Report which library types will actually be built
 
5290
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
5291
  AC_MSG_RESULT([$can_build_shared])
 
5292
 
 
5293
  AC_MSG_CHECKING([whether to build shared libraries])
 
5294
  test "$can_build_shared" = "no" && enable_shared=no
 
5295
 
 
5296
  # On AIX, shared libraries and static libraries use the same namespace, and
 
5297
  # are all built from PIC.
 
5298
  case $host_os in
 
5299
  aix3*)
 
5300
    test "$enable_shared" = yes && enable_static=no
 
5301
    if test -n "$RANLIB"; then
 
5302
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5303
      postinstall_cmds='$RANLIB $lib'
 
5304
    fi
 
5305
    ;;
 
5306
 
 
5307
  aix[[4-9]]*)
 
5308
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5309
      test "$enable_shared" = yes && enable_static=no
 
5310
    fi
 
5311
    ;;
 
5312
  esac
 
5313
  AC_MSG_RESULT([$enable_shared])
 
5314
 
 
5315
  AC_MSG_CHECKING([whether to build static libraries])
 
5316
  # Make sure either enable_shared or enable_static is yes.
 
5317
  test "$enable_shared" = yes || enable_static=yes
 
5318
  AC_MSG_RESULT([$enable_static])
 
5319
 
 
5320
  _LT_CONFIG($1)
 
5321
fi
 
5322
AC_LANG_POP
 
5323
CC="$lt_save_CC"
 
5324
])# _LT_LANG_C_CONFIG
 
5325
 
 
5326
 
 
5327
# _LT_PROG_CXX
 
5328
# ------------
 
5329
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
5330
# compiler, we have our own version here.
 
5331
m4_defun([_LT_PROG_CXX],
 
5332
[
 
5333
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
5334
AC_PROG_CXX
 
5335
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5336
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5337
    (test "X$CXX" != "Xg++"))) ; then
 
5338
  AC_PROG_CXXCPP
 
5339
else
 
5340
  _lt_caught_CXX_error=yes
 
5341
fi
 
5342
popdef([AC_MSG_ERROR])
 
5343
])# _LT_PROG_CXX
 
5344
 
 
5345
dnl aclocal-1.4 backwards compatibility:
 
5346
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
5347
 
 
5348
 
 
5349
# _LT_LANG_CXX_CONFIG([TAG])
 
5350
# --------------------------
 
5351
# Ensure that the configuration variables for a C++ compiler are suitably
 
5352
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5353
# the compiler configuration to `libtool'.
 
5354
m4_defun([_LT_LANG_CXX_CONFIG],
 
5355
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
5356
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5357
m4_require([_LT_DECL_EGREP])dnl
 
5358
 
 
5359
AC_LANG_PUSH(C++)
 
5360
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5361
_LT_TAGVAR(allow_undefined_flag, $1)=
 
5362
_LT_TAGVAR(always_export_symbols, $1)=no
 
5363
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
5364
_LT_TAGVAR(compiler_needs_object, $1)=no
 
5365
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5366
_LT_TAGVAR(hardcode_direct, $1)=no
 
5367
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5368
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5369
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5370
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5371
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
5372
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5373
_LT_TAGVAR(hardcode_automatic, $1)=no
 
5374
_LT_TAGVAR(inherit_rpath, $1)=no
 
5375
_LT_TAGVAR(module_cmds, $1)=
 
5376
_LT_TAGVAR(module_expsym_cmds, $1)=
 
5377
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5378
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5379
_LT_TAGVAR(no_undefined_flag, $1)=
 
5380
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5381
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5382
 
 
5383
# Source file extension for C++ test sources.
 
5384
ac_ext=cpp
 
5385
 
 
5386
# Object file extension for compiled C++ test sources.
 
5387
objext=o
 
5388
_LT_TAGVAR(objext, $1)=$objext
 
5389
 
 
5390
# No sense in running all these tests if we already determined that
 
5391
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
5392
# are currently assumed to apply to all compilers on this platform,
 
5393
# and will be corrupted by setting them based on a non-working compiler.
 
5394
if test "$_lt_caught_CXX_error" != yes; then
 
5395
  # Code to be used in simple compile tests
 
5396
  lt_simple_compile_test_code="int some_variable = 0;"
 
5397
 
 
5398
  # Code to be used in simple link tests
 
5399
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
5400
 
 
5401
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5402
  _LT_TAG_COMPILER
 
5403
 
 
5404
  # save warnings/boilerplate of simple test code
 
5405
  _LT_COMPILER_BOILERPLATE
 
5406
  _LT_LINKER_BOILERPLATE
 
5407
 
 
5408
  # Allow CC to be a program name with arguments.
 
5409
  lt_save_CC=$CC
 
5410
  lt_save_LD=$LD
 
5411
  lt_save_GCC=$GCC
 
5412
  GCC=$GXX
 
5413
  lt_save_with_gnu_ld=$with_gnu_ld
 
5414
  lt_save_path_LD=$lt_cv_path_LD
 
5415
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
5416
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
5417
  else
 
5418
    $as_unset lt_cv_prog_gnu_ld
 
5419
  fi
 
5420
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
5421
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
5422
  else
 
5423
    $as_unset lt_cv_path_LD
 
5424
  fi
 
5425
  test -z "${LDCXX+set}" || LD=$LDCXX
 
5426
  CC=${CXX-"c++"}
 
5427
  compiler=$CC
 
5428
  _LT_TAGVAR(compiler, $1)=$CC
 
5429
  _LT_CC_BASENAME([$compiler])
 
5430
 
 
5431
  if test -n "$compiler"; then
 
5432
    # We don't want -fno-exception when compiling C++ code, so set the
 
5433
    # no_builtin_flag separately
 
5434
    if test "$GXX" = yes; then
 
5435
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5436
    else
 
5437
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5438
    fi
 
5439
 
 
5440
    if test "$GXX" = yes; then
 
5441
      # Set up default GNU C++ configuration
 
5442
 
 
5443
      LT_PATH_LD
 
5444
 
 
5445
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
5446
      # archiving commands below assume that GNU ld is being used.
 
5447
      if test "$with_gnu_ld" = yes; then
 
5448
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5449
        _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'
 
5450
 
 
5451
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5452
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5453
 
 
5454
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
5455
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
5456
        #     investigate it a little bit more. (MM)
 
5457
        wlarc='${wl}'
 
5458
 
 
5459
        # ancient GNU ld didn't support --whole-archive et. al.
 
5460
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
5461
          $GREP 'no-whole-archive' > /dev/null; then
 
5462
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5463
        else
 
5464
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5465
        fi
 
5466
      else
 
5467
        with_gnu_ld=no
 
5468
        wlarc=
 
5469
 
 
5470
        # A generic and very simple default shared library creation
 
5471
        # command for GNU C++ for the case where it uses the native
 
5472
        # linker, instead of GNU ld.  If possible, this setting should
 
5473
        # overridden to take advantage of the native linker features on
 
5474
        # the platform it is being used on.
 
5475
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5476
      fi
 
5477
 
 
5478
      # Commands to make compiler produce verbose output that lists
 
5479
      # what "hidden" libraries, object files and flags are used when
 
5480
      # linking a shared library.
 
5481
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5482
 
 
5483
    else
 
5484
      GXX=no
 
5485
      with_gnu_ld=no
 
5486
      wlarc=
 
5487
    fi
 
5488
 
 
5489
    # PORTME: fill in a description of your system's C++ link characteristics
 
5490
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5491
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
5492
    case $host_os in
 
5493
      aix3*)
 
5494
        # FIXME: insert proper C++ library support
 
5495
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5496
        ;;
 
5497
      aix[[4-9]]*)
 
5498
        if test "$host_cpu" = ia64; then
 
5499
          # On IA64, the linker does run time linking by default, so we don't
 
5500
          # have to do anything special.
 
5501
          aix_use_runtimelinking=no
 
5502
          exp_sym_flag='-Bexport'
 
5503
          no_entry_flag=""
 
5504
        else
 
5505
          aix_use_runtimelinking=no
 
5506
 
 
5507
          # Test if we are trying to use run time linking or normal
 
5508
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5509
          # need to do runtime linking.
 
5510
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5511
            for ld_flag in $LDFLAGS; do
 
5512
              case $ld_flag in
 
5513
              *-brtl*)
 
5514
                aix_use_runtimelinking=yes
 
5515
                break
 
5516
                ;;
 
5517
              esac
 
5518
            done
 
5519
            ;;
 
5520
          esac
 
5521
 
 
5522
          exp_sym_flag='-bexport'
 
5523
          no_entry_flag='-bnoentry'
 
5524
        fi
 
5525
 
 
5526
        # When large executables or shared objects are built, AIX ld can
 
5527
        # have problems creating the table of contents.  If linking a library
 
5528
        # or program results in "error TOC overflow" add -mminimal-toc to
 
5529
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5530
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5531
 
 
5532
        _LT_TAGVAR(archive_cmds, $1)=''
 
5533
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5534
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5535
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5536
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5537
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
5538
 
 
5539
        if test "$GXX" = yes; then
 
5540
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5541
          # We only want to do this on AIX 4.2 and lower, the check
 
5542
          # below for broken collect2 doesn't work under 4.3+
 
5543
          collect2name=`${CC} -print-prog-name=collect2`
 
5544
          if test -f "$collect2name" &&
 
5545
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
5546
          then
 
5547
            # We have reworked collect2
 
5548
            :
 
5549
          else
 
5550
            # We have old collect2
 
5551
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5552
            # It fails to find uninstalled libraries when the uninstalled
 
5553
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
5554
            # to unsupported forces relinking
 
5555
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5556
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5557
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5558
          fi
 
5559
          esac
 
5560
          shared_flag='-shared'
 
5561
          if test "$aix_use_runtimelinking" = yes; then
 
5562
            shared_flag="$shared_flag "'${wl}-G'
 
5563
          fi
 
5564
        else
 
5565
          # not using gcc
 
5566
          if test "$host_cpu" = ia64; then
 
5567
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5568
          # chokes on -Wl,-G. The following line is correct:
 
5569
          shared_flag='-G'
 
5570
          else
 
5571
            if test "$aix_use_runtimelinking" = yes; then
 
5572
              shared_flag='${wl}-G'
 
5573
            else
 
5574
              shared_flag='${wl}-bM:SRE'
 
5575
            fi
 
5576
          fi
 
5577
        fi
 
5578
 
 
5579
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
5580
        # It seems that -bexpall does not export symbols beginning with
 
5581
        # underscore (_), so it is better to generate a list of symbols to
 
5582
        # export.
 
5583
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5584
        if test "$aix_use_runtimelinking" = yes; then
 
5585
          # Warning - without using the other runtime loading flags (-brtl),
 
5586
          # -berok will link without error, but may produce a broken library.
 
5587
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5588
          # Determine the default libpath from the value encoded in an empty
 
5589
          # executable.
 
5590
          _LT_SYS_MODULE_PATH_AIX
 
5591
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5592
 
 
5593
          _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"
 
5594
        else
 
5595
          if test "$host_cpu" = ia64; then
 
5596
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5597
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5598
            _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"
 
5599
          else
 
5600
            # Determine the default libpath from the value encoded in an
 
5601
            # empty executable.
 
5602
            _LT_SYS_MODULE_PATH_AIX
 
5603
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5604
            # Warning - without using the other run time loading flags,
 
5605
            # -berok will link without error, but may produce a broken library.
 
5606
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5607
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5608
            # Exported symbols can be pulled into shared objects from archives
 
5609
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5610
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5611
            # This is similar to how AIX traditionally builds its shared
 
5612
            # libraries.
 
5613
            _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'
 
5614
          fi
 
5615
        fi
 
5616
        ;;
 
5617
 
 
5618
      beos*)
 
5619
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5620
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5621
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5622
          # support --undefined.  This deserves some investigation.  FIXME
 
5623
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5624
        else
 
5625
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5626
        fi
 
5627
        ;;
 
5628
 
 
5629
      chorus*)
 
5630
        case $cc_basename in
 
5631
          *)
 
5632
          # FIXME: insert proper C++ library support
 
5633
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5634
          ;;
 
5635
        esac
 
5636
        ;;
 
5637
 
 
5638
      cygwin* | mingw* | pw32* | cegcc*)
 
5639
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5640
        # as there is no search path for DLLs.
 
5641
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5642
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5643
        _LT_TAGVAR(always_export_symbols, $1)=no
 
5644
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5645
 
 
5646
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5647
          _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'
 
5648
          # If the export-symbols file already is a .def file (1st line
 
5649
          # is EXPORTS), use it as is; otherwise, prepend...
 
5650
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5651
            cp $export_symbols $output_objdir/$soname.def;
 
5652
          else
 
5653
            echo EXPORTS > $output_objdir/$soname.def;
 
5654
            cat $export_symbols >> $output_objdir/$soname.def;
 
5655
          fi~
 
5656
          $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'
 
5657
        else
 
5658
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5659
        fi
 
5660
        ;;
 
5661
      darwin* | rhapsody*)
 
5662
        _LT_DARWIN_LINKER_FEATURES($1)
 
5663
        ;;
 
5664
 
 
5665
      dgux*)
 
5666
        case $cc_basename in
 
5667
          ec++*)
 
5668
            # FIXME: insert proper C++ library support
 
5669
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5670
            ;;
 
5671
          ghcx*)
 
5672
            # Green Hills C++ Compiler
 
5673
            # FIXME: insert proper C++ library support
 
5674
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5675
            ;;
 
5676
          *)
 
5677
            # FIXME: insert proper C++ library support
 
5678
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5679
            ;;
 
5680
        esac
 
5681
        ;;
 
5682
 
 
5683
      freebsd[[12]]*)
 
5684
        # C++ shared libraries reported to be fairly broken before
 
5685
        # switch to ELF
 
5686
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5687
        ;;
 
5688
 
 
5689
      freebsd-elf*)
 
5690
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5691
        ;;
 
5692
 
 
5693
      freebsd* | dragonfly*)
 
5694
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
5695
        # conventions
 
5696
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
5697
        ;;
 
5698
 
 
5699
      gnu*)
 
5700
        ;;
 
5701
 
 
5702
      hpux9*)
 
5703
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5704
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5705
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5706
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5707
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5708
                                             # but as the default
 
5709
                                             # location of the library.
 
5710
 
 
5711
        case $cc_basename in
 
5712
          CC*)
 
5713
            # FIXME: insert proper C++ library support
 
5714
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5715
            ;;
 
5716
          aCC*)
 
5717
            _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'
 
5718
            # Commands to make compiler produce verbose output that lists
 
5719
            # what "hidden" libraries, object files and flags are used when
 
5720
            # linking a shared library.
 
5721
            #
 
5722
            # There doesn't appear to be a way to prevent this compiler from
 
5723
            # explicitly linking system object files so we need to strip them
 
5724
            # from the output so that they don't get included in the library
 
5725
            # dependencies.
 
5726
            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'
 
5727
            ;;
 
5728
          *)
 
5729
            if test "$GXX" = yes; then
 
5730
              _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'
 
5731
            else
 
5732
              # FIXME: insert proper C++ library support
 
5733
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5734
            fi
 
5735
            ;;
 
5736
        esac
 
5737
        ;;
 
5738
 
 
5739
      hpux10*|hpux11*)
 
5740
        if test $with_gnu_ld = no; then
 
5741
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5742
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5743
 
 
5744
          case $host_cpu in
 
5745
            hppa*64*|ia64*)
 
5746
              ;;
 
5747
            *)
 
5748
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5749
              ;;
 
5750
          esac
 
5751
        fi
 
5752
        case $host_cpu in
 
5753
          hppa*64*|ia64*)
 
5754
            _LT_TAGVAR(hardcode_direct, $1)=no
 
5755
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5756
            ;;
 
5757
          *)
 
5758
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
5759
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5760
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5761
                                                 # but as the default
 
5762
                                                 # location of the library.
 
5763
            ;;
 
5764
        esac
 
5765
 
 
5766
        case $cc_basename in
 
5767
          CC*)
 
5768
            # FIXME: insert proper C++ library support
 
5769
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5770
            ;;
 
5771
          aCC*)
 
5772
            case $host_cpu in
 
5773
              hppa*64*)
 
5774
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5775
                ;;
 
5776
              ia64*)
 
5777
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5778
                ;;
 
5779
              *)
 
5780
                _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'
 
5781
                ;;
 
5782
            esac
 
5783
            # Commands to make compiler produce verbose output that lists
 
5784
            # what "hidden" libraries, object files and flags are used when
 
5785
            # linking a shared library.
 
5786
            #
 
5787
            # There doesn't appear to be a way to prevent this compiler from
 
5788
            # explicitly linking system object files so we need to strip them
 
5789
            # from the output so that they don't get included in the library
 
5790
            # dependencies.
 
5791
            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'
 
5792
            ;;
 
5793
          *)
 
5794
            if test "$GXX" = yes; then
 
5795
              if test $with_gnu_ld = no; then
 
5796
                case $host_cpu in
 
5797
                  hppa*64*)
 
5798
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5799
                    ;;
 
5800
                  ia64*)
 
5801
                    _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'
 
5802
                    ;;
 
5803
                  *)
 
5804
                    _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'
 
5805
                    ;;
 
5806
                esac
 
5807
              fi
 
5808
            else
 
5809
              # FIXME: insert proper C++ library support
 
5810
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5811
            fi
 
5812
            ;;
 
5813
        esac
 
5814
        ;;
 
5815
 
 
5816
      interix[[3-9]]*)
 
5817
        _LT_TAGVAR(hardcode_direct, $1)=no
 
5818
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5819
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5820
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5821
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5822
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5823
        # default) and relocated if they conflict, which is a slow very memory
 
5824
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
5825
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5826
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5827
        _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'
 
5828
        _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'
 
5829
        ;;
 
5830
      irix5* | irix6*)
 
5831
        case $cc_basename in
 
5832
          CC*)
 
5833
            # SGI C++
 
5834
            _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'
 
5835
 
 
5836
            # Archives containing C++ object files must be created using
 
5837
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
5838
            # necessary to make sure instantiated templates are included
 
5839
            # in the archive.
 
5840
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
5841
            ;;
 
5842
          *)
 
5843
            if test "$GXX" = yes; then
 
5844
              if test "$with_gnu_ld" = no; then
 
5845
                _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'
 
5846
              else
 
5847
                _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'
 
5848
              fi
 
5849
            fi
 
5850
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5851
            ;;
 
5852
        esac
 
5853
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5854
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5855
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
5856
        ;;
 
5857
 
 
5858
      linux* | k*bsd*-gnu)
 
5859
        case $cc_basename in
 
5860
          KCC*)
 
5861
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5862
 
 
5863
            # KCC will only create a shared library if the output file
 
5864
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5865
            # to its proper name (with version) after linking.
 
5866
            _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'
 
5867
            _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'
 
5868
            # Commands to make compiler produce verbose output that lists
 
5869
            # what "hidden" libraries, object files and flags are used when
 
5870
            # linking a shared library.
 
5871
            #
 
5872
            # There doesn't appear to be a way to prevent this compiler from
 
5873
            # explicitly linking system object files so we need to strip them
 
5874
            # from the output so that they don't get included in the library
 
5875
            # dependencies.
 
5876
            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'
 
5877
 
 
5878
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5879
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5880
 
 
5881
            # Archives containing C++ object files must be created using
 
5882
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
5883
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
5884
            ;;
 
5885
          icpc* | ecpc* )
 
5886
            # Intel C++
 
5887
            with_gnu_ld=yes
 
5888
            # version 8.0 and above of icpc choke on multiply defined symbols
 
5889
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
5890
            # earlier do not add the objects themselves.
 
5891
            case `$CC -V 2>&1` in
 
5892
              *"Version 7."*)
 
5893
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5894
                _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'
 
5895
                ;;
 
5896
              *)  # Version 8.0 or newer
 
5897
                tmp_idyn=
 
5898
                case $host_cpu in
 
5899
                  ia64*) tmp_idyn=' -i_dynamic';;
 
5900
                esac
 
5901
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5902
                _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'
 
5903
                ;;
 
5904
            esac
 
5905
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5906
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5907
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5908
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5909
            ;;
 
5910
          pgCC* | pgcpp*)
 
5911
            # Portland Group C++ compiler
 
5912
            case `$CC -V` in
 
5913
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
5914
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
5915
                rm -rf $tpldir~
 
5916
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
5917
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
5918
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
5919
                rm -rf $tpldir~
 
5920
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
5921
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
5922
                $RANLIB $oldlib'
 
5923
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
5924
                rm -rf $tpldir~
 
5925
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5926
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5927
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
5928
                rm -rf $tpldir~
 
5929
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5930
                $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'
 
5931
              ;;
 
5932
            *) # Version 6 will use weak symbols
 
5933
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5934
              _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'
 
5935
              ;;
 
5936
            esac
 
5937
 
 
5938
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5939
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5940
            _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'
 
5941
            ;;
 
5942
          cxx*)
 
5943
            # Compaq C++
 
5944
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5945
            _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'
 
5946
 
 
5947
            runpath_var=LD_RUN_PATH
 
5948
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5949
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5950
 
 
5951
            # Commands to make compiler produce verbose output that lists
 
5952
            # what "hidden" libraries, object files and flags are used when
 
5953
            # linking a shared library.
 
5954
            #
 
5955
            # There doesn't appear to be a way to prevent this compiler from
 
5956
            # explicitly linking system object files so we need to strip them
 
5957
            # from the output so that they don't get included in the library
 
5958
            # dependencies.
 
5959
            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'
 
5960
            ;;
 
5961
          xl*)
 
5962
            # IBM XL 8.0 on PPC, with GNU ld
 
5963
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5964
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5965
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5966
            if test "x$supports_anon_versioning" = xyes; then
 
5967
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5968
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5969
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
5970
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5971
            fi
 
5972
            ;;
 
5973
          *)
 
5974
            case `$CC -V 2>&1 | sed 5q` in
 
5975
            *Sun\ C*)
 
5976
              # Sun C++ 5.9
 
5977
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
5978
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5979
              _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'
 
5980
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5981
              _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'
 
5982
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5983
 
 
5984
              # Not sure whether something based on
 
5985
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
5986
              # would be better.
 
5987
              output_verbose_link_cmd='echo'
 
5988
 
 
5989
              # Archives containing C++ object files must be created using
 
5990
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
5991
              # necessary to make sure instantiated templates are included
 
5992
              # in the archive.
 
5993
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
5994
              ;;
 
5995
            esac
 
5996
            ;;
 
5997
        esac
 
5998
        ;;
 
5999
 
 
6000
      lynxos*)
 
6001
        # FIXME: insert proper C++ library support
 
6002
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6003
        ;;
 
6004
 
 
6005
      m88k*)
 
6006
        # FIXME: insert proper C++ library support
 
6007
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6008
        ;;
 
6009
 
 
6010
      mvs*)
 
6011
        case $cc_basename in
 
6012
          cxx*)
 
6013
            # FIXME: insert proper C++ library support
 
6014
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6015
            ;;
 
6016
          *)
 
6017
            # FIXME: insert proper C++ library support
 
6018
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6019
            ;;
 
6020
        esac
 
6021
        ;;
 
6022
 
 
6023
      netbsd*)
 
6024
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6025
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6026
          wlarc=
 
6027
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6028
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6029
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6030
        fi
 
6031
        # Workaround some broken pre-1.5 toolchains
 
6032
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6033
        ;;
 
6034
 
 
6035
      *nto* | *qnx*)
 
6036
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6037
        ;;
 
6038
 
 
6039
      openbsd2*)
 
6040
        # C++ shared libraries are fairly broken
 
6041
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6042
        ;;
 
6043
 
 
6044
      openbsd*)
 
6045
        if test -f /usr/libexec/ld.so; then
 
6046
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6047
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6048
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6049
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6050
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6051
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6052
            _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'
 
6053
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6054
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6055
          fi
 
6056
          output_verbose_link_cmd=echo
 
6057
        else
 
6058
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6059
        fi
 
6060
        ;;
 
6061
 
 
6062
      osf3* | osf4* | osf5*)
 
6063
        case $cc_basename in
 
6064
          KCC*)
 
6065
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6066
 
 
6067
            # KCC will only create a shared library if the output file
 
6068
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6069
            # to its proper name (with version) after linking.
 
6070
            _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'
 
6071
 
 
6072
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6073
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6074
 
 
6075
            # Archives containing C++ object files must be created using
 
6076
            # the KAI C++ compiler.
 
6077
            case $host in
 
6078
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6079
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6080
            esac
 
6081
            ;;
 
6082
          RCC*)
 
6083
            # Rational C++ 2.4.1
 
6084
            # FIXME: insert proper C++ library support
 
6085
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6086
            ;;
 
6087
          cxx*)
 
6088
            case $host in
 
6089
              osf3*)
 
6090
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6091
                _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'
 
6092
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6093
                ;;
 
6094
              *)
 
6095
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6096
                _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'
 
6097
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6098
                  echo "-hidden">> $lib.exp~
 
6099
                  $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~
 
6100
                  $RM $lib.exp'
 
6101
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6102
                ;;
 
6103
            esac
 
6104
 
 
6105
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6106
 
 
6107
            # Commands to make compiler produce verbose output that lists
 
6108
            # what "hidden" libraries, object files and flags are used when
 
6109
            # linking a shared library.
 
6110
            #
 
6111
            # There doesn't appear to be a way to prevent this compiler from
 
6112
            # explicitly linking system object files so we need to strip them
 
6113
            # from the output so that they don't get included in the library
 
6114
            # dependencies.
 
6115
            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'
 
6116
            ;;
 
6117
          *)
 
6118
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6119
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6120
              case $host in
 
6121
                osf3*)
 
6122
                  _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'
 
6123
                  ;;
 
6124
                *)
 
6125
                  _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'
 
6126
                  ;;
 
6127
              esac
 
6128
 
 
6129
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6130
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6131
 
 
6132
              # Commands to make compiler produce verbose output that lists
 
6133
              # what "hidden" libraries, object files and flags are used when
 
6134
              # linking a shared library.
 
6135
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6136
 
 
6137
            else
 
6138
              # FIXME: insert proper C++ library support
 
6139
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6140
            fi
 
6141
            ;;
 
6142
        esac
 
6143
        ;;
 
6144
 
 
6145
      psos*)
 
6146
        # FIXME: insert proper C++ library support
 
6147
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6148
        ;;
 
6149
 
 
6150
      sunos4*)
 
6151
        case $cc_basename in
 
6152
          CC*)
 
6153
            # Sun C++ 4.x
 
6154
            # FIXME: insert proper C++ library support
 
6155
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6156
            ;;
 
6157
          lcc*)
 
6158
            # Lucid
 
6159
            # FIXME: insert proper C++ library support
 
6160
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6161
            ;;
 
6162
          *)
 
6163
            # FIXME: insert proper C++ library support
 
6164
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6165
            ;;
 
6166
        esac
 
6167
        ;;
 
6168
 
 
6169
      solaris*)
 
6170
        case $cc_basename in
 
6171
          CC*)
 
6172
            # Sun C++ 4.2, 5.x and Centerline C++
 
6173
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
6174
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6175
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6176
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6177
              $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'
 
6178
 
 
6179
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6180
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6181
            case $host_os in
 
6182
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6183
              *)
 
6184
                # The compiler driver will combine and reorder linker options,
 
6185
                # but understands `-z linker_flag'.
 
6186
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6187
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6188
                ;;
 
6189
            esac
 
6190
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6191
 
 
6192
            output_verbose_link_cmd='echo'
 
6193
 
 
6194
            # Archives containing C++ object files must be created using
 
6195
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6196
            # necessary to make sure instantiated templates are included
 
6197
            # in the archive.
 
6198
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6199
            ;;
 
6200
          gcx*)
 
6201
            # Green Hills C++ Compiler
 
6202
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6203
 
 
6204
            # The C++ compiler must be used to create the archive.
 
6205
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
6206
            ;;
 
6207
          *)
 
6208
            # GNU C++ compiler with Solaris linker
 
6209
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6210
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
6211
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
6212
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6213
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6214
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6215
 
 
6216
                # Commands to make compiler produce verbose output that lists
 
6217
                # what "hidden" libraries, object files and flags are used when
 
6218
                # linking a shared library.
 
6219
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6220
              else
 
6221
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
6222
                # platform.
 
6223
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6224
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6225
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6226
 
 
6227
                # Commands to make compiler produce verbose output that lists
 
6228
                # what "hidden" libraries, object files and flags are used when
 
6229
                # linking a shared library.
 
6230
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6231
              fi
 
6232
 
 
6233
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
6234
              case $host_os in
 
6235
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6236
                *)
 
6237
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6238
                  ;;
 
6239
              esac
 
6240
            fi
 
6241
            ;;
 
6242
        esac
 
6243
        ;;
 
6244
 
 
6245
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6246
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6247
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6248
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6249
      runpath_var='LD_RUN_PATH'
 
6250
 
 
6251
      case $cc_basename in
 
6252
        CC*)
 
6253
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6254
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6255
          ;;
 
6256
        *)
 
6257
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6258
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6259
          ;;
 
6260
      esac
 
6261
      ;;
 
6262
 
 
6263
      sysv5* | sco3.2v5* | sco5v6*)
 
6264
        # Note: We can NOT use -z defs as we might desire, because we do not
 
6265
        # link with -lc, and that would cause any symbols used from libc to
 
6266
        # always be unresolved, which means just about no library would
 
6267
        # ever link correctly.  If we're not using GNU ld we use -z text
 
6268
        # though, which does catch some bad symbols but isn't as heavy-handed
 
6269
        # as -z defs.
 
6270
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6271
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6272
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6273
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6274
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6275
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6276
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6277
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6278
        runpath_var='LD_RUN_PATH'
 
6279
 
 
6280
        case $cc_basename in
 
6281
          CC*)
 
6282
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6283
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6284
            ;;
 
6285
          *)
 
6286
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6287
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6288
            ;;
 
6289
        esac
 
6290
      ;;
 
6291
 
 
6292
      tandem*)
 
6293
        case $cc_basename in
 
6294
          NCC*)
 
6295
            # NonStop-UX NCC 3.20
 
6296
            # FIXME: insert proper C++ library support
 
6297
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6298
            ;;
 
6299
          *)
 
6300
            # FIXME: insert proper C++ library support
 
6301
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6302
            ;;
 
6303
        esac
 
6304
        ;;
 
6305
 
 
6306
      vxworks*)
 
6307
        # FIXME: insert proper C++ library support
 
6308
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6309
        ;;
 
6310
 
 
6311
      *)
 
6312
        # FIXME: insert proper C++ library support
 
6313
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6314
        ;;
 
6315
    esac
 
6316
 
 
6317
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6318
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6319
 
 
6320
    _LT_TAGVAR(GCC, $1)="$GXX"
 
6321
    _LT_TAGVAR(LD, $1)="$LD"
 
6322
 
 
6323
    ## CAVEAT EMPTOR:
 
6324
    ## There is no encapsulation within the following macros, do not change
 
6325
    ## the running order or otherwise move them around unless you know exactly
 
6326
    ## what you are doing...
 
6327
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6328
    _LT_COMPILER_PIC($1)
 
6329
    _LT_COMPILER_C_O($1)
 
6330
    _LT_COMPILER_FILE_LOCKS($1)
 
6331
    _LT_LINKER_SHLIBS($1)
 
6332
    _LT_SYS_DYNAMIC_LINKER($1)
 
6333
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6334
 
 
6335
    _LT_CONFIG($1)
 
6336
  fi # test -n "$compiler"
 
6337
 
 
6338
  CC=$lt_save_CC
 
6339
  LDCXX=$LD
 
6340
  LD=$lt_save_LD
 
6341
  GCC=$lt_save_GCC
 
6342
  with_gnu_ld=$lt_save_with_gnu_ld
 
6343
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
6344
  lt_cv_path_LD=$lt_save_path_LD
 
6345
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
6346
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
6347
fi # test "$_lt_caught_CXX_error" != yes
 
6348
 
 
6349
AC_LANG_POP
 
6350
])# _LT_LANG_CXX_CONFIG
 
6351
 
 
6352
 
 
6353
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6561
6354
# ---------------------------------
6562
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6563
 
 
6564
 
 
6565
 
# old names
6566
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6567
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6568
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6569
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6570
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6571
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6572
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
6573
 
 
6574
 
# This is just to silence aclocal about the macro not being used
6575
 
ifelse([AC_DISABLE_FAST_INSTALL])
6576
 
 
6577
 
AC_DEFUN([LT_AC_PROG_GCJ],
6578
 
[AC_CHECK_TOOL(GCJ, gcj, no)
6579
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6580
 
  AC_SUBST(GCJFLAGS)
6581
 
])
6582
 
 
6583
 
AC_DEFUN([LT_AC_PROG_RC],
6584
 
[AC_CHECK_TOOL(RC, windres, no)
6585
 
])
6586
 
 
6587
 
 
6588
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6589
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6590
 
 
6591
 
# _AS_TEST_PREPARE
6592
 
# ----------------
6593
 
m4_ifndef([_AS_TEST_PREPARE],
6594
 
[m4_defun([_AS_TEST_PREPARE],
6595
 
[if test -x / >/dev/null 2>&1; then
6596
 
  as_executable_p='test -x'
 
6355
# Figure out "hidden" library dependencies from verbose
 
6356
# compiler output when linking a shared library.
 
6357
# Parse the compiler output and extract the necessary
 
6358
# objects, libraries and library flags.
 
6359
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
6360
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6361
# Dependencies to place before and after the object being linked:
 
6362
_LT_TAGVAR(predep_objects, $1)=
 
6363
_LT_TAGVAR(postdep_objects, $1)=
 
6364
_LT_TAGVAR(predeps, $1)=
 
6365
_LT_TAGVAR(postdeps, $1)=
 
6366
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
6367
 
 
6368
dnl we can't use the lt_simple_compile_test_code here,
 
6369
dnl because it contains code intended for an executable,
 
6370
dnl not a library.  It's possible we should let each
 
6371
dnl tag define a new lt_????_link_test_code variable,
 
6372
dnl but it's only used here...
 
6373
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
6374
int a;
 
6375
void foo (void) { a = 0; }
 
6376
_LT_EOF
 
6377
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
6378
class Foo
 
6379
{
 
6380
public:
 
6381
  Foo (void) { a = 0; }
 
6382
private:
 
6383
  int a;
 
6384
};
 
6385
_LT_EOF
 
6386
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
6387
      subroutine foo
 
6388
      implicit none
 
6389
      integer*4 a
 
6390
      a=0
 
6391
      return
 
6392
      end
 
6393
_LT_EOF
 
6394
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
6395
      subroutine foo
 
6396
      implicit none
 
6397
      integer a
 
6398
      a=0
 
6399
      return
 
6400
      end
 
6401
_LT_EOF
 
6402
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
6403
public class foo {
 
6404
  private int a;
 
6405
  public void bar (void) {
 
6406
    a = 0;
 
6407
  }
 
6408
};
 
6409
_LT_EOF
 
6410
])
 
6411
dnl Parse the compiler output and extract the necessary
 
6412
dnl objects, libraries and library flags.
 
6413
if AC_TRY_EVAL(ac_compile); then
 
6414
  # Parse the compiler output and extract the necessary
 
6415
  # objects, libraries and library flags.
 
6416
 
 
6417
  # Sentinel used to keep track of whether or not we are before
 
6418
  # the conftest object file.
 
6419
  pre_test_object_deps_done=no
 
6420
 
 
6421
  for p in `eval "$output_verbose_link_cmd"`; do
 
6422
    case $p in
 
6423
 
 
6424
    -L* | -R* | -l*)
 
6425
       # Some compilers place space between "-{L,R}" and the path.
 
6426
       # Remove the space.
 
6427
       if test $p = "-L" ||
 
6428
          test $p = "-R"; then
 
6429
         prev=$p
 
6430
         continue
 
6431
       else
 
6432
         prev=
 
6433
       fi
 
6434
 
 
6435
       if test "$pre_test_object_deps_done" = no; then
 
6436
         case $p in
 
6437
         -L* | -R*)
 
6438
           # Internal compiler library paths should come after those
 
6439
           # provided the user.  The postdeps already come after the
 
6440
           # user supplied libs so there is no need to process them.
 
6441
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
6442
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
6443
           else
 
6444
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
6445
           fi
 
6446
           ;;
 
6447
         # The "-l" case would never come before the object being
 
6448
         # linked, so don't bother handling this case.
 
6449
         esac
 
6450
       else
 
6451
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
6452
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
6453
         else
 
6454
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
6455
         fi
 
6456
       fi
 
6457
       ;;
 
6458
 
 
6459
    *.$objext)
 
6460
       # This assumes that the test object file only shows up
 
6461
       # once in the compiler output.
 
6462
       if test "$p" = "conftest.$objext"; then
 
6463
         pre_test_object_deps_done=yes
 
6464
         continue
 
6465
       fi
 
6466
 
 
6467
       if test "$pre_test_object_deps_done" = no; then
 
6468
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
6469
           _LT_TAGVAR(predep_objects, $1)="$p"
 
6470
         else
 
6471
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
6472
         fi
 
6473
       else
 
6474
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
6475
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
6476
         else
 
6477
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
6478
         fi
 
6479
       fi
 
6480
       ;;
 
6481
 
 
6482
    *) ;; # Ignore the rest.
 
6483
 
 
6484
    esac
 
6485
  done
 
6486
 
 
6487
  # Clean up.
 
6488
  rm -f a.out a.exe
6597
6489
else
6598
 
  as_executable_p='test -f'
6599
 
fi
6600
 
])])# _AS_TEST_PREPARE
6601
 
 
6602
 
# AS_EXECUTABLE_P
6603
 
# ---------------
6604
 
# Check whether a file is executable.
6605
 
m4_ifndef([AS_EXECUTABLE_P],
6606
 
[m4_defun([AS_EXECUTABLE_P],
6607
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6608
 
$as_executable_p $1[]dnl
6609
 
])])# AS_EXECUTABLE_P
6610
 
 
 
6490
  echo "libtool.m4: error: problem compiling $1 test program"
 
6491
fi
 
6492
 
 
6493
$RM -f confest.$objext
 
6494
 
 
6495
# PORTME: override above test on systems where it is broken
 
6496
m4_if([$1], [CXX],
 
6497
[case $host_os in
 
6498
interix[[3-9]]*)
 
6499
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
6500
  # hack all around it, let's just trust "g++" to DTRT.
 
6501
  _LT_TAGVAR(predep_objects,$1)=
 
6502
  _LT_TAGVAR(postdep_objects,$1)=
 
6503
  _LT_TAGVAR(postdeps,$1)=
 
6504
  ;;
 
6505
 
 
6506
linux*)
 
6507
  case `$CC -V 2>&1 | sed 5q` in
 
6508
  *Sun\ C*)
 
6509
    # Sun C++ 5.9
 
6510
 
 
6511
    # The more standards-conforming stlport4 library is
 
6512
    # incompatible with the Cstd library. Avoid specifying
 
6513
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6514
    # -library=stlport4 depends on it.
 
6515
    case " $CXX $CXXFLAGS " in
 
6516
    *" -library=stlport4 "*)
 
6517
      solaris_use_stlport4=yes
 
6518
      ;;
 
6519
    esac
 
6520
 
 
6521
    if test "$solaris_use_stlport4" != yes; then
 
6522
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6523
    fi
 
6524
    ;;
 
6525
  esac
 
6526
  ;;
 
6527
 
 
6528
solaris*)
 
6529
  case $cc_basename in
 
6530
  CC*)
 
6531
    # The more standards-conforming stlport4 library is
 
6532
    # incompatible with the Cstd library. Avoid specifying
 
6533
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6534
    # -library=stlport4 depends on it.
 
6535
    case " $CXX $CXXFLAGS " in
 
6536
    *" -library=stlport4 "*)
 
6537
      solaris_use_stlport4=yes
 
6538
      ;;
 
6539
    esac
 
6540
 
 
6541
    # Adding this requires a known-good setup of shared libraries for
 
6542
    # Sun compiler versions before 5.6, else PIC objects from an old
 
6543
    # archive will be linked into the output, leading to subtle bugs.
 
6544
    if test "$solaris_use_stlport4" != yes; then
 
6545
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6546
    fi
 
6547
    ;;
 
6548
  esac
 
6549
  ;;
 
6550
esac
 
6551
])
 
6552
 
 
6553
case " $_LT_TAGVAR(postdeps, $1) " in
 
6554
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
6555
esac
 
6556
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
6557
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
6558
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
6559
fi
 
6560
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
6561
    [The directories searched by this compiler when creating a shared library])
 
6562
_LT_TAGDECL([], [predep_objects], [1],
 
6563
    [Dependencies to place before and after the objects being linked to
 
6564
    create a shared library])
 
6565
_LT_TAGDECL([], [postdep_objects], [1])
 
6566
_LT_TAGDECL([], [predeps], [1])
 
6567
_LT_TAGDECL([], [postdeps], [1])
 
6568
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
6569
    [The library search path used internally by the compiler when linking
 
6570
    a shared library])
 
6571
])# _LT_SYS_HIDDEN_LIBDEPS
 
6572
 
 
6573
 
 
6574
# _LT_PROG_F77
 
6575
# ------------
 
6576
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
6577
# if there is no fortran compiler, we have our own version here.
 
6578
m4_defun([_LT_PROG_F77],
 
6579
[
 
6580
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
6581
AC_PROG_F77
 
6582
if test -z "$F77" || test "X$F77" = "Xno"; then
 
6583
  _lt_disable_F77=yes
 
6584
fi
 
6585
popdef([AC_MSG_ERROR])
 
6586
])# _LT_PROG_F77
 
6587
 
 
6588
dnl aclocal-1.4 backwards compatibility:
 
6589
dnl AC_DEFUN([_LT_PROG_F77], [])
 
6590
 
 
6591
 
 
6592
# _LT_LANG_F77_CONFIG([TAG])
 
6593
# --------------------------
 
6594
# Ensure that the configuration variables for a Fortran 77 compiler are
 
6595
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6596
# to write the compiler configuration to `libtool'.
 
6597
m4_defun([_LT_LANG_F77_CONFIG],
 
6598
[AC_REQUIRE([_LT_PROG_F77])dnl
 
6599
AC_LANG_PUSH(Fortran 77)
 
6600
 
 
6601
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6602
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6603
_LT_TAGVAR(always_export_symbols, $1)=no
 
6604
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6605
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6606
_LT_TAGVAR(hardcode_direct, $1)=no
 
6607
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6608
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6609
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6610
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6611
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6612
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6613
_LT_TAGVAR(inherit_rpath, $1)=no
 
6614
_LT_TAGVAR(module_cmds, $1)=
 
6615
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6616
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6617
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6618
_LT_TAGVAR(no_undefined_flag, $1)=
 
6619
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6620
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6621
 
 
6622
# Source file extension for f77 test sources.
 
6623
ac_ext=f
 
6624
 
 
6625
# Object file extension for compiled f77 test sources.
 
6626
objext=o
 
6627
_LT_TAGVAR(objext, $1)=$objext
 
6628
 
 
6629
# No sense in running all these tests if we already determined that
 
6630
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
6631
# are currently assumed to apply to all compilers on this platform,
 
6632
# and will be corrupted by setting them based on a non-working compiler.
 
6633
if test "$_lt_disable_F77" != yes; then
 
6634
  # Code to be used in simple compile tests
 
6635
  lt_simple_compile_test_code="\
 
6636
      subroutine t
 
6637
      return
 
6638
      end
 
6639
"
 
6640
 
 
6641
  # Code to be used in simple link tests
 
6642
  lt_simple_link_test_code="\
 
6643
      program t
 
6644
      end
 
6645
"
 
6646
 
 
6647
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6648
  _LT_TAG_COMPILER
 
6649
 
 
6650
  # save warnings/boilerplate of simple test code
 
6651
  _LT_COMPILER_BOILERPLATE
 
6652
  _LT_LINKER_BOILERPLATE
 
6653
 
 
6654
  # Allow CC to be a program name with arguments.
 
6655
  lt_save_CC="$CC"
 
6656
  lt_save_GCC=$GCC
 
6657
  CC=${F77-"f77"}
 
6658
  compiler=$CC
 
6659
  _LT_TAGVAR(compiler, $1)=$CC
 
6660
  _LT_CC_BASENAME([$compiler])
 
6661
  GCC=$G77
 
6662
  if test -n "$compiler"; then
 
6663
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6664
    AC_MSG_RESULT([$can_build_shared])
 
6665
 
 
6666
    AC_MSG_CHECKING([whether to build shared libraries])
 
6667
    test "$can_build_shared" = "no" && enable_shared=no
 
6668
 
 
6669
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6670
    # are all built from PIC.
 
6671
    case $host_os in
 
6672
      aix3*)
 
6673
        test "$enable_shared" = yes && enable_static=no
 
6674
        if test -n "$RANLIB"; then
 
6675
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6676
          postinstall_cmds='$RANLIB $lib'
 
6677
        fi
 
6678
        ;;
 
6679
      aix[[4-9]]*)
 
6680
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6681
          test "$enable_shared" = yes && enable_static=no
 
6682
        fi
 
6683
        ;;
 
6684
    esac
 
6685
    AC_MSG_RESULT([$enable_shared])
 
6686
 
 
6687
    AC_MSG_CHECKING([whether to build static libraries])
 
6688
    # Make sure either enable_shared or enable_static is yes.
 
6689
    test "$enable_shared" = yes || enable_static=yes
 
6690
    AC_MSG_RESULT([$enable_static])
 
6691
 
 
6692
    _LT_TAGVAR(GCC, $1)="$G77"
 
6693
    _LT_TAGVAR(LD, $1)="$LD"
 
6694
 
 
6695
    ## CAVEAT EMPTOR:
 
6696
    ## There is no encapsulation within the following macros, do not change
 
6697
    ## the running order or otherwise move them around unless you know exactly
 
6698
    ## what you are doing...
 
6699
    _LT_COMPILER_PIC($1)
 
6700
    _LT_COMPILER_C_O($1)
 
6701
    _LT_COMPILER_FILE_LOCKS($1)
 
6702
    _LT_LINKER_SHLIBS($1)
 
6703
    _LT_SYS_DYNAMIC_LINKER($1)
 
6704
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6705
 
 
6706
    _LT_CONFIG($1)
 
6707
  fi # test -n "$compiler"
 
6708
 
 
6709
  GCC=$lt_save_GCC
 
6710
  CC="$lt_save_CC"
 
6711
fi # test "$_lt_disable_F77" != yes
 
6712
 
 
6713
AC_LANG_POP
 
6714
])# _LT_LANG_F77_CONFIG
 
6715
 
 
6716
 
 
6717
# _LT_PROG_FC
 
6718
# -----------
 
6719
# Since AC_PROG_FC is broken, in that it returns the empty string
 
6720
# if there is no fortran compiler, we have our own version here.
 
6721
m4_defun([_LT_PROG_FC],
 
6722
[
 
6723
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
6724
AC_PROG_FC
 
6725
if test -z "$FC" || test "X$FC" = "Xno"; then
 
6726
  _lt_disable_FC=yes
 
6727
fi
 
6728
popdef([AC_MSG_ERROR])
 
6729
])# _LT_PROG_FC
 
6730
 
 
6731
dnl aclocal-1.4 backwards compatibility:
 
6732
dnl AC_DEFUN([_LT_PROG_FC], [])
 
6733
 
 
6734
 
 
6735
# _LT_LANG_FC_CONFIG([TAG])
 
6736
# -------------------------
 
6737
# Ensure that the configuration variables for a Fortran compiler are
 
6738
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6739
# to write the compiler configuration to `libtool'.
 
6740
m4_defun([_LT_LANG_FC_CONFIG],
 
6741
[AC_REQUIRE([_LT_PROG_FC])dnl
 
6742
AC_LANG_PUSH(Fortran)
 
6743
 
 
6744
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6745
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6746
_LT_TAGVAR(always_export_symbols, $1)=no
 
6747
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6748
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6749
_LT_TAGVAR(hardcode_direct, $1)=no
 
6750
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6751
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6752
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6753
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6754
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6755
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6756
_LT_TAGVAR(inherit_rpath, $1)=no
 
6757
_LT_TAGVAR(module_cmds, $1)=
 
6758
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6759
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6760
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6761
_LT_TAGVAR(no_undefined_flag, $1)=
 
6762
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6763
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6764
 
 
6765
# Source file extension for fc test sources.
 
6766
ac_ext=${ac_fc_srcext-f}
 
6767
 
 
6768
# Object file extension for compiled fc test sources.
 
6769
objext=o
 
6770
_LT_TAGVAR(objext, $1)=$objext
 
6771
 
 
6772
# No sense in running all these tests if we already determined that
 
6773
# the FC compiler isn't working.  Some variables (like enable_shared)
 
6774
# are currently assumed to apply to all compilers on this platform,
 
6775
# and will be corrupted by setting them based on a non-working compiler.
 
6776
if test "$_lt_disable_FC" != yes; then
 
6777
  # Code to be used in simple compile tests
 
6778
  lt_simple_compile_test_code="\
 
6779
      subroutine t
 
6780
      return
 
6781
      end
 
6782
"
 
6783
 
 
6784
  # Code to be used in simple link tests
 
6785
  lt_simple_link_test_code="\
 
6786
      program t
 
6787
      end
 
6788
"
 
6789
 
 
6790
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6791
  _LT_TAG_COMPILER
 
6792
 
 
6793
  # save warnings/boilerplate of simple test code
 
6794
  _LT_COMPILER_BOILERPLATE
 
6795
  _LT_LINKER_BOILERPLATE
 
6796
 
 
6797
  # Allow CC to be a program name with arguments.
 
6798
  lt_save_CC="$CC"
 
6799
  lt_save_GCC=$GCC
 
6800
  CC=${FC-"f95"}
 
6801
  compiler=$CC
 
6802
  GCC=$ac_cv_fc_compiler_gnu
 
6803
 
 
6804
  _LT_TAGVAR(compiler, $1)=$CC
 
6805
  _LT_CC_BASENAME([$compiler])
 
6806
 
 
6807
  if test -n "$compiler"; then
 
6808
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6809
    AC_MSG_RESULT([$can_build_shared])
 
6810
 
 
6811
    AC_MSG_CHECKING([whether to build shared libraries])
 
6812
    test "$can_build_shared" = "no" && enable_shared=no
 
6813
 
 
6814
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6815
    # are all built from PIC.
 
6816
    case $host_os in
 
6817
      aix3*)
 
6818
        test "$enable_shared" = yes && enable_static=no
 
6819
        if test -n "$RANLIB"; then
 
6820
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6821
          postinstall_cmds='$RANLIB $lib'
 
6822
        fi
 
6823
        ;;
 
6824
      aix[[4-9]]*)
 
6825
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6826
          test "$enable_shared" = yes && enable_static=no
 
6827
        fi
 
6828
        ;;
 
6829
    esac
 
6830
    AC_MSG_RESULT([$enable_shared])
 
6831
 
 
6832
    AC_MSG_CHECKING([whether to build static libraries])
 
6833
    # Make sure either enable_shared or enable_static is yes.
 
6834
    test "$enable_shared" = yes || enable_static=yes
 
6835
    AC_MSG_RESULT([$enable_static])
 
6836
 
 
6837
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
6838
    _LT_TAGVAR(LD, $1)="$LD"
 
6839
 
 
6840
    ## CAVEAT EMPTOR:
 
6841
    ## There is no encapsulation within the following macros, do not change
 
6842
    ## the running order or otherwise move them around unless you know exactly
 
6843
    ## what you are doing...
 
6844
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6845
    _LT_COMPILER_PIC($1)
 
6846
    _LT_COMPILER_C_O($1)
 
6847
    _LT_COMPILER_FILE_LOCKS($1)
 
6848
    _LT_LINKER_SHLIBS($1)
 
6849
    _LT_SYS_DYNAMIC_LINKER($1)
 
6850
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6851
 
 
6852
    _LT_CONFIG($1)
 
6853
  fi # test -n "$compiler"
 
6854
 
 
6855
  GCC=$lt_save_GCC
 
6856
  CC="$lt_save_CC"
 
6857
fi # test "$_lt_disable_FC" != yes
 
6858
 
 
6859
AC_LANG_POP
 
6860
])# _LT_LANG_FC_CONFIG
 
6861
 
 
6862
 
 
6863
# _LT_LANG_GCJ_CONFIG([TAG])
 
6864
# --------------------------
 
6865
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
6866
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6867
# to write the compiler configuration to `libtool'.
 
6868
m4_defun([_LT_LANG_GCJ_CONFIG],
 
6869
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
6870
AC_LANG_SAVE
 
6871
 
 
6872
# Source file extension for Java test sources.
 
6873
ac_ext=java
 
6874
 
 
6875
# Object file extension for compiled Java test sources.
 
6876
objext=o
 
6877
_LT_TAGVAR(objext, $1)=$objext
 
6878
 
 
6879
# Code to be used in simple compile tests
 
6880
lt_simple_compile_test_code="class foo {}"
 
6881
 
 
6882
# Code to be used in simple link tests
 
6883
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
6884
 
 
6885
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6886
_LT_TAG_COMPILER
 
6887
 
 
6888
# save warnings/boilerplate of simple test code
 
6889
_LT_COMPILER_BOILERPLATE
 
6890
_LT_LINKER_BOILERPLATE
 
6891
 
 
6892
# Allow CC to be a program name with arguments.
 
6893
lt_save_CC="$CC"
 
6894
lt_save_GCC=$GCC
 
6895
GCC=yes
 
6896
CC=${GCJ-"gcj"}
 
6897
compiler=$CC
 
6898
_LT_TAGVAR(compiler, $1)=$CC
 
6899
_LT_TAGVAR(LD, $1)="$LD"
 
6900
_LT_CC_BASENAME([$compiler])
 
6901
 
 
6902
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
6903
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6904
 
 
6905
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6906
 
 
6907
if test -n "$compiler"; then
 
6908
  _LT_COMPILER_NO_RTTI($1)
 
6909
  _LT_COMPILER_PIC($1)
 
6910
  _LT_COMPILER_C_O($1)
 
6911
  _LT_COMPILER_FILE_LOCKS($1)
 
6912
  _LT_LINKER_SHLIBS($1)
 
6913
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6914
 
 
6915
  _LT_CONFIG($1)
 
6916
fi
 
6917
 
 
6918
AC_LANG_RESTORE
 
6919
 
 
6920
GCC=$lt_save_GCC
 
6921
CC="$lt_save_CC"
 
6922
])# _LT_LANG_GCJ_CONFIG
 
6923
 
 
6924
 
 
6925
# _LT_LANG_RC_CONFIG([TAG])
 
6926
# -------------------------
 
6927
# Ensure that the configuration variables for the Windows resource compiler
 
6928
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6929
# to write the compiler configuration to `libtool'.
 
6930
m4_defun([_LT_LANG_RC_CONFIG],
 
6931
[AC_REQUIRE([LT_PROG_RC])dnl
 
6932
AC_LANG_SAVE
 
6933
 
 
6934
# Source file extension for RC test sources.
 
6935
ac_ext=rc
 
6936
 
 
6937
# Object file extension for compiled RC test sources.
 
6938
objext=o
 
6939
_LT_TAGVAR(objext, $1)=$objext
 
6940
 
 
6941
# Code to be used in simple compile tests
 
6942
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
6943
 
 
6944
# Code to be used in simple link tests
 
6945
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
6946
 
 
6947
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6948
_LT_TAG_COMPILER
 
6949
 
 
6950
# save warnings/boilerplate of simple test code
 
6951
_LT_COMPILER_BOILERPLATE
 
6952
_LT_LINKER_BOILERPLATE
 
6953
 
 
6954
# Allow CC to be a program name with arguments.
 
6955
lt_save_CC="$CC"
 
6956
lt_save_GCC=$GCC
 
6957
GCC=
 
6958
CC=${RC-"windres"}
 
6959
compiler=$CC
 
6960
_LT_TAGVAR(compiler, $1)=$CC
 
6961
_LT_CC_BASENAME([$compiler])
 
6962
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
6963
 
 
6964
if test -n "$compiler"; then
 
6965
  :
 
6966
  _LT_CONFIG($1)
 
6967
fi
 
6968
 
 
6969
GCC=$lt_save_GCC
 
6970
AC_LANG_RESTORE
 
6971
CC="$lt_save_CC"
 
6972
])# _LT_LANG_RC_CONFIG
 
6973
 
 
6974
 
 
6975
# LT_PROG_GCJ
 
6976
# -----------
 
6977
AC_DEFUN([LT_PROG_GCJ],
 
6978
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
6979
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
6980
    [AC_CHECK_TOOL(GCJ, gcj,)
 
6981
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
6982
      AC_SUBST(GCJFLAGS)])])[]dnl
 
6983
])
 
6984
 
 
6985
# Old name:
 
6986
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
6987
dnl aclocal-1.4 backwards compatibility:
 
6988
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
6989
 
 
6990
 
 
6991
# LT_PROG_RC
 
6992
# ----------
 
6993
AC_DEFUN([LT_PROG_RC],
 
6994
[AC_CHECK_TOOL(RC, windres,)
 
6995
])
 
6996
 
 
6997
# Old name:
 
6998
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
6999
dnl aclocal-1.4 backwards compatibility:
 
7000
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7001
 
 
7002
 
 
7003
# _LT_DECL_EGREP
 
7004
# --------------
 
7005
# If we don't have a new enough Autoconf to choose the best grep
 
7006
# available, choose the one first in the user's PATH.
 
7007
m4_defun([_LT_DECL_EGREP],
 
7008
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7009
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7010
test -z "$GREP" && GREP=grep
 
7011
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7012
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7013
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7014
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7015
AC_SUBST([GREP])
 
7016
])
 
7017
 
 
7018
 
 
7019
# _LT_DECL_OBJDUMP
 
7020
# --------------
 
7021
# If we don't have a new enough Autoconf to choose the best objdump
 
7022
# available, choose the one first in the user's PATH.
 
7023
m4_defun([_LT_DECL_OBJDUMP],
 
7024
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7025
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7026
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7027
AC_SUBST([OBJDUMP])
 
7028
])
 
7029
 
 
7030
 
 
7031
# _LT_DECL_SED
 
7032
# ------------
 
7033
# Check for a fully-functional sed program, that truncates
 
7034
# as few characters as possible.  Prefer GNU sed if found.
 
7035
m4_defun([_LT_DECL_SED],
 
7036
[AC_PROG_SED
 
7037
test -z "$SED" && SED=sed
 
7038
Xsed="$SED -e 1s/^X//"
 
7039
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7040
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7041
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7042
])# _LT_DECL_SED
 
7043
 
 
7044
m4_ifndef([AC_PROG_SED], [
6611
7045
# NOTE: This macro has been submitted for inclusion into   #
6612
7046
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6613
7047
#  a released version of Autoconf we should remove this    #
6614
7048
#  macro and use it instead.                               #
6615
 
# LT_AC_PROG_SED
6616
 
# --------------
6617
 
# Check for a fully-functional sed program, that truncates
6618
 
# as few characters as possible.  Prefer GNU sed if found.
6619
 
AC_DEFUN([LT_AC_PROG_SED],
 
7049
 
 
7050
m4_defun([AC_PROG_SED],
6620
7051
[AC_MSG_CHECKING([for a sed that does not truncate output])
6621
7052
AC_CACHE_VAL(lt_cv_path_SED,
6622
7053
[# Loop through the user's path and test for sed and gsed.
6628
7059
  test -z "$as_dir" && as_dir=.
6629
7060
  for lt_ac_prog in sed gsed; do
6630
7061
    for ac_exec_ext in '' $ac_executable_extensions; do
6631
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7062
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6632
7063
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6633
7064
      fi
6634
7065
    done
6669
7100
SED=$lt_cv_path_SED
6670
7101
AC_SUBST([SED])
6671
7102
AC_MSG_RESULT([$SED])
6672
 
])
 
7103
])#AC_PROG_SED
 
7104
])#m4_ifndef
 
7105
 
 
7106
# Old name:
 
7107
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7108
dnl aclocal-1.4 backwards compatibility:
 
7109
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7110
 
 
7111
 
 
7112
# _LT_CHECK_SHELL_FEATURES
 
7113
# ------------------------
 
7114
# Find out whether the shell is Bourne or XSI compatible,
 
7115
# or has some other useful features.
 
7116
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7117
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7118
# Try some XSI features
 
7119
xsi_shell=no
 
7120
( _lt_dummy="a/b/c"
 
7121
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7122
      = c,a/b,, \
 
7123
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7124
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7125
  && xsi_shell=yes
 
7126
AC_MSG_RESULT([$xsi_shell])
 
7127
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
7128
 
 
7129
AC_MSG_CHECKING([whether the shell understands "+="])
 
7130
lt_shell_append=no
 
7131
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
7132
    >/dev/null 2>&1 \
 
7133
  && lt_shell_append=yes
 
7134
AC_MSG_RESULT([$lt_shell_append])
 
7135
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
7136
 
 
7137
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7138
  lt_unset=unset
 
7139
else
 
7140
  lt_unset=false
 
7141
fi
 
7142
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
7143
 
 
7144
# test EBCDIC or ASCII
 
7145
case `echo X|tr X '\101'` in
 
7146
 A) # ASCII based system
 
7147
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7148
  lt_SP2NL='tr \040 \012'
 
7149
  lt_NL2SP='tr \015\012 \040\040'
 
7150
  ;;
 
7151
 *) # EBCDIC based system
 
7152
  lt_SP2NL='tr \100 \n'
 
7153
  lt_NL2SP='tr \r\n \100\100'
 
7154
  ;;
 
7155
esac
 
7156
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
7157
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
7158
])# _LT_CHECK_SHELL_FEATURES
 
7159
 
 
7160
 
 
7161
# _LT_PROG_XSI_SHELLFNS
 
7162
# ---------------------
 
7163
# Bourne and XSI compatible variants of some useful shell functions.
 
7164
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
7165
[case $xsi_shell in
 
7166
  yes)
 
7167
    cat << \_LT_EOF >> "$cfgfile"
 
7168
 
 
7169
# func_dirname file append nondir_replacement
 
7170
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7171
# otherwise set result to NONDIR_REPLACEMENT.
 
7172
func_dirname ()
 
7173
{
 
7174
  case ${1} in
 
7175
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7176
    *  ) func_dirname_result="${3}" ;;
 
7177
  esac
 
7178
}
 
7179
 
 
7180
# func_basename file
 
7181
func_basename ()
 
7182
{
 
7183
  func_basename_result="${1##*/}"
 
7184
}
 
7185
 
 
7186
# func_dirname_and_basename file append nondir_replacement
 
7187
# perform func_basename and func_dirname in a single function
 
7188
# call:
 
7189
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
7190
#             add APPEND to the result, otherwise set result
 
7191
#             to NONDIR_REPLACEMENT.
 
7192
#             value returned in "$func_dirname_result"
 
7193
#   basename: Compute filename of FILE.
 
7194
#             value retuned in "$func_basename_result"
 
7195
# Implementation must be kept synchronized with func_dirname
 
7196
# and func_basename. For efficiency, we do not delegate to
 
7197
# those functions but instead duplicate the functionality here.
 
7198
func_dirname_and_basename ()
 
7199
{
 
7200
  case ${1} in
 
7201
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7202
    *  ) func_dirname_result="${3}" ;;
 
7203
  esac
 
7204
  func_basename_result="${1##*/}"
 
7205
}
 
7206
 
 
7207
# func_stripname prefix suffix name
 
7208
# strip PREFIX and SUFFIX off of NAME.
 
7209
# PREFIX and SUFFIX must not contain globbing or regex special
 
7210
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7211
# dot (in which case that matches only a dot).
 
7212
func_stripname ()
 
7213
{
 
7214
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7215
  # positional parameters, so assign one to ordinary parameter first.
 
7216
  func_stripname_result=${3}
 
7217
  func_stripname_result=${func_stripname_result#"${1}"}
 
7218
  func_stripname_result=${func_stripname_result%"${2}"}
 
7219
}
 
7220
 
 
7221
# func_opt_split
 
7222
func_opt_split ()
 
7223
{
 
7224
  func_opt_split_opt=${1%%=*}
 
7225
  func_opt_split_arg=${1#*=}
 
7226
}
 
7227
 
 
7228
# func_lo2o object
 
7229
func_lo2o ()
 
7230
{
 
7231
  case ${1} in
 
7232
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7233
    *)    func_lo2o_result=${1} ;;
 
7234
  esac
 
7235
}
 
7236
 
 
7237
# func_xform libobj-or-source
 
7238
func_xform ()
 
7239
{
 
7240
  func_xform_result=${1%.*}.lo
 
7241
}
 
7242
 
 
7243
# func_arith arithmetic-term...
 
7244
func_arith ()
 
7245
{
 
7246
  func_arith_result=$(( $[*] ))
 
7247
}
 
7248
 
 
7249
# func_len string
 
7250
# STRING may not start with a hyphen.
 
7251
func_len ()
 
7252
{
 
7253
  func_len_result=${#1}
 
7254
}
 
7255
 
 
7256
_LT_EOF
 
7257
    ;;
 
7258
  *) # Bourne compatible functions.
 
7259
    cat << \_LT_EOF >> "$cfgfile"
 
7260
 
 
7261
# func_dirname file append nondir_replacement
 
7262
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7263
# otherwise set result to NONDIR_REPLACEMENT.
 
7264
func_dirname ()
 
7265
{
 
7266
  # Extract subdirectory from the argument.
 
7267
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7268
  if test "X$func_dirname_result" = "X${1}"; then
 
7269
    func_dirname_result="${3}"
 
7270
  else
 
7271
    func_dirname_result="$func_dirname_result${2}"
 
7272
  fi
 
7273
}
 
7274
 
 
7275
# func_basename file
 
7276
func_basename ()
 
7277
{
 
7278
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7279
}
 
7280
 
 
7281
dnl func_dirname_and_basename
 
7282
dnl A portable version of this function is already defined in general.m4sh
 
7283
dnl so there is no need for it here.
 
7284
 
 
7285
# func_stripname prefix suffix name
 
7286
# strip PREFIX and SUFFIX off of NAME.
 
7287
# PREFIX and SUFFIX must not contain globbing or regex special
 
7288
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7289
# dot (in which case that matches only a dot).
 
7290
# func_strip_suffix prefix name
 
7291
func_stripname ()
 
7292
{
 
7293
  case ${2} in
 
7294
    .*) func_stripname_result=`$ECHO "X${3}" \
 
7295
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
7296
    *)  func_stripname_result=`$ECHO "X${3}" \
 
7297
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7298
  esac
 
7299
}
 
7300
 
 
7301
# sed scripts:
 
7302
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
7303
my_sed_long_arg='1s/^-[[^=]]*=//'
 
7304
 
 
7305
# func_opt_split
 
7306
func_opt_split ()
 
7307
{
 
7308
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
7309
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7310
}
 
7311
 
 
7312
# func_lo2o object
 
7313
func_lo2o ()
 
7314
{
 
7315
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7316
}
 
7317
 
 
7318
# func_xform libobj-or-source
 
7319
func_xform ()
 
7320
{
 
7321
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7322
}
 
7323
 
 
7324
# func_arith arithmetic-term...
 
7325
func_arith ()
 
7326
{
 
7327
  func_arith_result=`expr "$[@]"`
 
7328
}
 
7329
 
 
7330
# func_len string
 
7331
# STRING may not start with a hyphen.
 
7332
func_len ()
 
7333
{
 
7334
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
7335
}
 
7336
 
 
7337
_LT_EOF
 
7338
esac
 
7339
 
 
7340
case $lt_shell_append in
 
7341
  yes)
 
7342
    cat << \_LT_EOF >> "$cfgfile"
 
7343
 
 
7344
# func_append var value
 
7345
# Append VALUE to the end of shell variable VAR.
 
7346
func_append ()
 
7347
{
 
7348
  eval "$[1]+=\$[2]"
 
7349
}
 
7350
_LT_EOF
 
7351
    ;;
 
7352
  *)
 
7353
    cat << \_LT_EOF >> "$cfgfile"
 
7354
 
 
7355
# func_append var value
 
7356
# Append VALUE to the end of shell variable VAR.
 
7357
func_append ()
 
7358
{
 
7359
  eval "$[1]=\$$[1]\$[2]"
 
7360
}
 
7361
 
 
7362
_LT_EOF
 
7363
    ;;
 
7364
  esac
 
7365
])
 
7366
 
 
7367
# Helper functions for option handling.                    -*- Autoconf -*-
 
7368
#
 
7369
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7370
#   Written by Gary V. Vaughan, 2004
 
7371
#
 
7372
# This file is free software; the Free Software Foundation gives
 
7373
# unlimited permission to copy and/or distribute it, with or without
 
7374
# modifications, as long as this notice is preserved.
 
7375
 
 
7376
# serial 6 ltoptions.m4
 
7377
 
 
7378
# This is to help aclocal find these macros, as it can't see m4_define.
 
7379
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
7380
 
 
7381
 
 
7382
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
7383
# ------------------------------------------
 
7384
m4_define([_LT_MANGLE_OPTION],
 
7385
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
7386
 
 
7387
 
 
7388
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
7389
# ---------------------------------------
 
7390
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
7391
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
7392
# saved as a flag.
 
7393
m4_define([_LT_SET_OPTION],
 
7394
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
7395
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
7396
        _LT_MANGLE_DEFUN([$1], [$2]),
 
7397
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
7398
])
 
7399
 
 
7400
 
 
7401
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
7402
# ------------------------------------------------------------
 
7403
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
7404
m4_define([_LT_IF_OPTION],
 
7405
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
7406
 
 
7407
 
 
7408
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
7409
# -------------------------------------------------------
 
7410
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
7411
# are set.
 
7412
m4_define([_LT_UNLESS_OPTIONS],
 
7413
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
7414
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
7415
                      [m4_define([$0_found])])])[]dnl
 
7416
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
7417
])[]dnl
 
7418
])
 
7419
 
 
7420
 
 
7421
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
7422
# ----------------------------------------
 
7423
# OPTION-LIST is a space-separated list of Libtool options associated
 
7424
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
7425
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
7426
# the unknown option and exit.
 
7427
m4_defun([_LT_SET_OPTIONS],
 
7428
[# Set options
 
7429
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
7430
    [_LT_SET_OPTION([$1], _LT_Option)])
 
7431
 
 
7432
m4_if([$1],[LT_INIT],[
 
7433
  dnl
 
7434
  dnl Simply set some default values (i.e off) if boolean options were not
 
7435
  dnl specified:
 
7436
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
7437
  ])
 
7438
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
7439
  ])
 
7440
  dnl
 
7441
  dnl If no reference was made to various pairs of opposing options, then
 
7442
  dnl we run the default mode handler for the pair.  For example, if neither
 
7443
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
7444
  dnl archives by default:
 
7445
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
7446
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
7447
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
7448
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
7449
                   [_LT_ENABLE_FAST_INSTALL])
 
7450
  ])
 
7451
])# _LT_SET_OPTIONS
 
7452
 
 
7453
 
 
7454
 
 
7455
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
7456
# -----------------------------------------
 
7457
m4_define([_LT_MANGLE_DEFUN],
 
7458
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
7459
 
 
7460
 
 
7461
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
7462
# -----------------------------------------------
 
7463
m4_define([LT_OPTION_DEFINE],
 
7464
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
7465
])# LT_OPTION_DEFINE
 
7466
 
 
7467
 
 
7468
# dlopen
 
7469
# ------
 
7470
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
7471
])
 
7472
 
 
7473
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
7474
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
7475
AC_DIAGNOSE([obsolete],
 
7476
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7477
put the `dlopen' option into LT_INIT's first parameter.])
 
7478
])
 
7479
 
 
7480
dnl aclocal-1.4 backwards compatibility:
 
7481
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
7482
 
 
7483
 
 
7484
# win32-dll
 
7485
# ---------
 
7486
# Declare package support for building win32 dll's.
 
7487
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
7488
[enable_win32_dll=yes
 
7489
 
 
7490
case $host in
 
7491
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7492
  AC_CHECK_TOOL(AS, as, false)
 
7493
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7494
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7495
  ;;
 
7496
esac
 
7497
 
 
7498
test -z "$AS" && AS=as
 
7499
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
7500
 
 
7501
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7502
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
7503
 
 
7504
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7505
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
7506
])# win32-dll
 
7507
 
 
7508
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
7509
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7510
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
7511
AC_DIAGNOSE([obsolete],
 
7512
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7513
put the `win32-dll' option into LT_INIT's first parameter.])
 
7514
])
 
7515
 
 
7516
dnl aclocal-1.4 backwards compatibility:
 
7517
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
7518
 
 
7519
 
 
7520
# _LT_ENABLE_SHARED([DEFAULT])
 
7521
# ----------------------------
 
7522
# implement the --enable-shared flag, and supports the `shared' and
 
7523
# `disable-shared' LT_INIT options.
 
7524
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7525
m4_define([_LT_ENABLE_SHARED],
 
7526
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7527
AC_ARG_ENABLE([shared],
 
7528
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
7529
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
7530
    [p=${PACKAGE-default}
 
7531
    case $enableval in
 
7532
    yes) enable_shared=yes ;;
 
7533
    no) enable_shared=no ;;
 
7534
    *)
 
7535
      enable_shared=no
 
7536
      # Look at the argument we got.  We use all the common list separators.
 
7537
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7538
      for pkg in $enableval; do
 
7539
        IFS="$lt_save_ifs"
 
7540
        if test "X$pkg" = "X$p"; then
 
7541
          enable_shared=yes
 
7542
        fi
 
7543
      done
 
7544
      IFS="$lt_save_ifs"
 
7545
      ;;
 
7546
    esac],
 
7547
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
7548
 
 
7549
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
7550
        [Whether or not to build shared libraries])
 
7551
])# _LT_ENABLE_SHARED
 
7552
 
 
7553
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
7554
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
7555
 
 
7556
# Old names:
 
7557
AC_DEFUN([AC_ENABLE_SHARED],
 
7558
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
7559
])
 
7560
 
 
7561
AC_DEFUN([AC_DISABLE_SHARED],
 
7562
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
7563
])
 
7564
 
 
7565
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
7566
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7567
 
 
7568
dnl aclocal-1.4 backwards compatibility:
 
7569
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
7570
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
7571
 
 
7572
 
 
7573
 
 
7574
# _LT_ENABLE_STATIC([DEFAULT])
 
7575
# ----------------------------
 
7576
# implement the --enable-static flag, and support the `static' and
 
7577
# `disable-static' LT_INIT options.
 
7578
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7579
m4_define([_LT_ENABLE_STATIC],
 
7580
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7581
AC_ARG_ENABLE([static],
 
7582
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
7583
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
7584
    [p=${PACKAGE-default}
 
7585
    case $enableval in
 
7586
    yes) enable_static=yes ;;
 
7587
    no) enable_static=no ;;
 
7588
    *)
 
7589
     enable_static=no
 
7590
      # Look at the argument we got.  We use all the common list separators.
 
7591
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7592
      for pkg in $enableval; do
 
7593
        IFS="$lt_save_ifs"
 
7594
        if test "X$pkg" = "X$p"; then
 
7595
          enable_static=yes
 
7596
        fi
 
7597
      done
 
7598
      IFS="$lt_save_ifs"
 
7599
      ;;
 
7600
    esac],
 
7601
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
7602
 
 
7603
    _LT_DECL([build_old_libs], [enable_static], [0],
 
7604
        [Whether or not to build static libraries])
 
7605
])# _LT_ENABLE_STATIC
 
7606
 
 
7607
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
7608
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
7609
 
 
7610
# Old names:
 
7611
AC_DEFUN([AC_ENABLE_STATIC],
 
7612
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
7613
])
 
7614
 
 
7615
AC_DEFUN([AC_DISABLE_STATIC],
 
7616
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
7617
])
 
7618
 
 
7619
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
7620
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7621
 
 
7622
dnl aclocal-1.4 backwards compatibility:
 
7623
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
7624
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
7625
 
 
7626
 
 
7627
 
 
7628
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
7629
# ----------------------------------
 
7630
# implement the --enable-fast-install flag, and support the `fast-install'
 
7631
# and `disable-fast-install' LT_INIT options.
 
7632
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7633
m4_define([_LT_ENABLE_FAST_INSTALL],
 
7634
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7635
AC_ARG_ENABLE([fast-install],
 
7636
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
7637
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
7638
    [p=${PACKAGE-default}
 
7639
    case $enableval in
 
7640
    yes) enable_fast_install=yes ;;
 
7641
    no) enable_fast_install=no ;;
 
7642
    *)
 
7643
      enable_fast_install=no
 
7644
      # Look at the argument we got.  We use all the common list separators.
 
7645
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7646
      for pkg in $enableval; do
 
7647
        IFS="$lt_save_ifs"
 
7648
        if test "X$pkg" = "X$p"; then
 
7649
          enable_fast_install=yes
 
7650
        fi
 
7651
      done
 
7652
      IFS="$lt_save_ifs"
 
7653
      ;;
 
7654
    esac],
 
7655
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
7656
 
 
7657
_LT_DECL([fast_install], [enable_fast_install], [0],
 
7658
         [Whether or not to optimize for fast installation])dnl
 
7659
])# _LT_ENABLE_FAST_INSTALL
 
7660
 
 
7661
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
7662
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
7663
 
 
7664
# Old names:
 
7665
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
7666
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
7667
AC_DIAGNOSE([obsolete],
 
7668
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
7669
the `fast-install' option into LT_INIT's first parameter.])
 
7670
])
 
7671
 
 
7672
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
7673
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
7674
AC_DIAGNOSE([obsolete],
 
7675
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
7676
the `disable-fast-install' option into LT_INIT's first parameter.])
 
7677
])
 
7678
 
 
7679
dnl aclocal-1.4 backwards compatibility:
 
7680
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
7681
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
7682
 
 
7683
 
 
7684
# _LT_WITH_PIC([MODE])
 
7685
# --------------------
 
7686
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
7687
# LT_INIT options.
 
7688
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
7689
m4_define([_LT_WITH_PIC],
 
7690
[AC_ARG_WITH([pic],
 
7691
    [AS_HELP_STRING([--with-pic],
 
7692
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
7693
    [pic_mode="$withval"],
 
7694
    [pic_mode=default])
 
7695
 
 
7696
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
7697
 
 
7698
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
7699
])# _LT_WITH_PIC
 
7700
 
 
7701
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
7702
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
7703
 
 
7704
# Old name:
 
7705
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
7706
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
7707
AC_DIAGNOSE([obsolete],
 
7708
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7709
put the `pic-only' option into LT_INIT's first parameter.])
 
7710
])
 
7711
 
 
7712
dnl aclocal-1.4 backwards compatibility:
 
7713
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
7714
 
 
7715
 
 
7716
m4_define([_LTDL_MODE], [])
 
7717
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
7718
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
7719
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
7720
                 [m4_define([_LTDL_MODE], [recursive])])
 
7721
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
7722
                 [m4_define([_LTDL_MODE], [subproject])])
 
7723
 
 
7724
m4_define([_LTDL_TYPE], [])
 
7725
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
7726
                 [m4_define([_LTDL_TYPE], [installable])])
 
7727
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
7728
                 [m4_define([_LTDL_TYPE], [convenience])])
 
7729
 
 
7730
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
7731
#
 
7732
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7733
# Written by Gary V. Vaughan, 2004
 
7734
#
 
7735
# This file is free software; the Free Software Foundation gives
 
7736
# unlimited permission to copy and/or distribute it, with or without
 
7737
# modifications, as long as this notice is preserved.
 
7738
 
 
7739
# serial 6 ltsugar.m4
 
7740
 
 
7741
# This is to help aclocal find these macros, as it can't see m4_define.
 
7742
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
7743
 
 
7744
 
 
7745
# lt_join(SEP, ARG1, [ARG2...])
 
7746
# -----------------------------
 
7747
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
7748
# associated separator.
 
7749
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
7750
# versions in m4sugar had bugs.
 
7751
m4_define([lt_join],
 
7752
[m4_if([$#], [1], [],
 
7753
       [$#], [2], [[$2]],
 
7754
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
7755
m4_define([_lt_join],
 
7756
[m4_if([$#$2], [2], [],
 
7757
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
7758
 
 
7759
 
 
7760
# lt_car(LIST)
 
7761
# lt_cdr(LIST)
 
7762
# ------------
 
7763
# Manipulate m4 lists.
 
7764
# These macros are necessary as long as will still need to support
 
7765
# Autoconf-2.59 which quotes differently.
 
7766
m4_define([lt_car], [[$1]])
 
7767
m4_define([lt_cdr],
 
7768
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
7769
       [$#], 1, [],
 
7770
       [m4_dquote(m4_shift($@))])])
 
7771
m4_define([lt_unquote], $1)
 
7772
 
 
7773
 
 
7774
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
7775
# ------------------------------------------
 
7776
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
7777
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
7778
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
7779
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
7780
# than defined and empty).
 
7781
#
 
7782
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
7783
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
7784
m4_define([lt_append],
 
7785
[m4_define([$1],
 
7786
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
7787
 
 
7788
 
 
7789
 
 
7790
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
7791
# ----------------------------------------------------------
 
7792
# Produce a SEP delimited list of all paired combinations of elements of
 
7793
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
7794
# has the form PREFIXmINFIXSUFFIXn.
 
7795
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
7796
m4_define([lt_combine],
 
7797
[m4_if(m4_eval([$# > 3]), [1],
 
7798
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
7799
[[m4_foreach([_Lt_prefix], [$2],
 
7800
             [m4_foreach([_Lt_suffix],
 
7801
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
7802
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
7803
 
 
7804
 
 
7805
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
7806
# -----------------------------------------------------------------------
 
7807
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
7808
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
7809
m4_define([lt_if_append_uniq],
 
7810
[m4_ifdef([$1],
 
7811
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
7812
                 [lt_append([$1], [$2], [$3])$4],
 
7813
                 [$5])],
 
7814
          [lt_append([$1], [$2], [$3])$4])])
 
7815
 
 
7816
 
 
7817
# lt_dict_add(DICT, KEY, VALUE)
 
7818
# -----------------------------
 
7819
m4_define([lt_dict_add],
 
7820
[m4_define([$1($2)], [$3])])
 
7821
 
 
7822
 
 
7823
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
7824
# --------------------------------------------
 
7825
m4_define([lt_dict_add_subkey],
 
7826
[m4_define([$1($2:$3)], [$4])])
 
7827
 
 
7828
 
 
7829
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
7830
# ----------------------------------
 
7831
m4_define([lt_dict_fetch],
 
7832
[m4_ifval([$3],
 
7833
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
7834
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
7835
 
 
7836
 
 
7837
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
7838
# -----------------------------------------------------------------
 
7839
m4_define([lt_if_dict_fetch],
 
7840
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
7841
        [$5],
 
7842
    [$6])])
 
7843
 
 
7844
 
 
7845
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
7846
# --------------------------------------------------------------
 
7847
m4_define([lt_dict_filter],
 
7848
[m4_if([$5], [], [],
 
7849
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
7850
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
7851
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
7852
])
 
7853
 
 
7854
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
7855
#
 
7856
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
7857
#   Written by Scott James Remnant, 2004
 
7858
#
 
7859
# This file is free software; the Free Software Foundation gives
 
7860
# unlimited permission to copy and/or distribute it, with or without
 
7861
# modifications, as long as this notice is preserved.
 
7862
 
 
7863
# Generated from ltversion.in.
 
7864
 
 
7865
# serial 3017 ltversion.m4
 
7866
# This file is part of GNU Libtool
 
7867
 
 
7868
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
 
7869
m4_define([LT_PACKAGE_REVISION], [1.3017])
 
7870
 
 
7871
AC_DEFUN([LTVERSION_VERSION],
 
7872
[macro_version='2.2.6b'
 
7873
macro_revision='1.3017'
 
7874
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
7875
_LT_DECL(, macro_revision, 0)
 
7876
])
 
7877
 
 
7878
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
7879
#
 
7880
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
7881
#   Written by Scott James Remnant, 2004.
 
7882
#
 
7883
# This file is free software; the Free Software Foundation gives
 
7884
# unlimited permission to copy and/or distribute it, with or without
 
7885
# modifications, as long as this notice is preserved.
 
7886
 
 
7887
# serial 4 lt~obsolete.m4
 
7888
 
 
7889
# These exist entirely to fool aclocal when bootstrapping libtool.
 
7890
#
 
7891
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
7892
# which have later been changed to m4_define as they aren't part of the
 
7893
# exported API, or moved to Autoconf or Automake where they belong.
 
7894
#
 
7895
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
7896
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
7897
# using a macro with the same name in our local m4/libtool.m4 it'll
 
7898
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
7899
# and doesn't know about Autoconf macros at all.)
 
7900
#
 
7901
# So we provide this file, which has a silly filename so it's always
 
7902
# included after everything else.  This provides aclocal with the
 
7903
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
7904
# because those macros already exist, or will be overwritten later.
 
7905
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
7906
#
 
7907
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
7908
# Yes, that means every name once taken will need to remain here until
 
7909
# we give up compatibility with versions before 1.7, at which point
 
7910
# we need to keep only those names which we still refer to.
 
7911
 
 
7912
# This is to help aclocal find these macros, as it can't see m4_define.
 
7913
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
7914
 
 
7915
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
7916
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
7917
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
7918
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
7919
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
7920
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
7921
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
7922
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
7923
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
7924
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
7925
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
7926
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
7927
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
7928
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
7929
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
7930
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
7931
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
7932
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
7933
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
7934
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
7935
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
7936
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
7937
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
7938
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
7939
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
7940
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
7941
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
7942
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
7943
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
7944
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
7945
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
7946
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
7947
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
7948
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
7949
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
7950
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
7951
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
7952
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
7953
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
7954
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
7955
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
7956
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
7957
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
7958
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
7959
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
7960
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
7961
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
7962
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
7963
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
7964
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
7965
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
7966
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
7967
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
7968
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
7969
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
6673
7970
 
6674
7971
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
6675
7972
6739
8036
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6740
8037
# ---------------------------------------------
6741
8038
m4_define([_PKG_CONFIG],
6742
 
[if test -n "$PKG_CONFIG"; then
6743
 
    if test -n "$$1"; then
6744
 
        pkg_cv_[]$1="$$1"
6745
 
    else
6746
 
        PKG_CHECK_EXISTS([$3],
6747
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6748
 
                         [pkg_failed=yes])
6749
 
    fi
6750
 
else
6751
 
        pkg_failed=untried
 
8039
[if test -n "$$1"; then
 
8040
    pkg_cv_[]$1="$$1"
 
8041
 elif test -n "$PKG_CONFIG"; then
 
8042
    PKG_CHECK_EXISTS([$3],
 
8043
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8044
                     [pkg_failed=yes])
 
8045
 else
 
8046
    pkg_failed=untried
6752
8047
fi[]dnl
6753
8048
])# _PKG_CONFIG
6754
8049
 
6792
8087
if test $pkg_failed = yes; then
6793
8088
        _PKG_SHORT_ERRORS_SUPPORTED
6794
8089
        if test $_pkg_short_errors_supported = yes; then
6795
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
8090
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
6796
8091
        else 
6797
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
8092
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
6798
8093
        fi
6799
8094
        # Put the nasty error message in config.log where it belongs
6800
8095
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
6829
8124
fi[]dnl
6830
8125
])# PKG_CHECK_MODULES
6831
8126
 
 
8127
dnl xorg-macros.m4.  Generated from xorg-macros.m4.in xorgversion.m4 by configure.
6832
8128
dnl
6833
8129
dnl Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.
6834
8130
dnl 
6835
8131
dnl Permission is hereby granted, free of charge, to any person obtaining a
6836
 
dnl copy of this software and associated documentation files (the
6837
 
dnl "Software"), to deal in the Software without restriction, including
6838
 
dnl without limitation the rights to use, copy, modify, merge, publish,
6839
 
dnl distribute, and/or sell copies of the Software, and to permit persons
6840
 
dnl to whom the Software is furnished to do so, provided that the above
6841
 
dnl copyright notice(s) and this permission notice appear in all copies of
6842
 
dnl the Software and that both the above copyright notice(s) and this
6843
 
dnl permission notice appear in supporting documentation.
6844
 
dnl
6845
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
6846
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6847
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6848
 
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6849
 
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6850
 
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6851
 
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6852
 
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6853
 
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6854
 
dnl
6855
 
dnl Except as contained in this notice, the name of a copyright holder
6856
 
dnl shall not be used in advertising or otherwise to promote the sale, use
6857
 
dnl or other dealings in this Software without prior written authorization
6858
 
dnl of the copyright holder.
 
8132
dnl copy of this software and associated documentation files (the "Software"),
 
8133
dnl to deal in the Software without restriction, including without limitation
 
8134
dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
8135
dnl and/or sell copies of the Software, and to permit persons to whom the
 
8136
dnl Software is furnished to do so, subject to the following conditions:
 
8137
dnl
 
8138
dnl The above copyright notice and this permission notice (including the next
 
8139
dnl paragraph) shall be included in all copies or substantial portions of the
 
8140
dnl Software.
 
8141
dnl
 
8142
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
8143
dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
8144
dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
8145
dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
8146
dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
8147
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
8148
dnl DEALINGS IN THE SOFTWARE.
6859
8149
 
6860
8150
# XORG_MACROS_VERSION(required-version)
6861
8151
# -------------------------------------
6865
8155
# your configure.ac with the minimum required version, such as:
6866
8156
# XORG_MACROS_VERSION(1.1)
6867
8157
#
6868
 
# To force at least a version with this macro defined, also add:
6869
 
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
 
8158
# To ensure that this macro is defined, also add:
 
8159
# m4_ifndef([XORG_MACROS_VERSION],
 
8160
#     [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
6870
8161
#
6871
8162
#
6872
8163
# See the "minimum version" comment for each macro you use to see what 
6873
8164
# version you require.
6874
 
AC_DEFUN([XORG_MACROS_VERSION],[
6875
 
        [XORG_MACROS_needed_version=$1
6876
 
        XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
6877
 
        XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
6878
 
        AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
6879
 
        [XORG_MACROS_version=1.1.6
6880
 
        XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
6881
 
        XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
6882
 
        if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
6883
 
                AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
6884
 
        fi
6885
 
        if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
6886
 
                AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
6887
 
        fi
6888
 
        AC_MSG_RESULT([yes, $XORG_MACROS_version])
 
8165
m4_defun([XORG_MACROS_VERSION],[
 
8166
m4_define([vers_have], [1.8.0])
 
8167
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
 
8168
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
 
8169
m4_if(m4_cmp(maj_have, maj_needed), 0,,
 
8170
    [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
 
8171
m4_if(m4_version_compare(vers_have, [$1]), -1,
 
8172
    [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
 
8173
m4_undefine([vers_have])
 
8174
m4_undefine([maj_have])
 
8175
m4_undefine([maj_needed])
6889
8176
]) # XORG_MACROS_VERSION
6890
8177
 
6891
8178
# XORG_PROG_RAWCPP()
6910
8197
        if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
6911
8198
                RAWCPPFLAGS=-undef
6912
8199
                AC_MSG_RESULT([yes])
 
8200
        # under Cygwin unix is still defined even with -undef
 
8201
        elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
 
8202
                RAWCPPFLAGS="-undef -ansi"
 
8203
                AC_MSG_RESULT([yes, with -ansi])
6913
8204
        else
6914
8205
                AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef.  I don't know what to do.])
6915
8206
        fi
6940
8231
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
6941
8232
# Not sure if there's any better way than just hardcoding by OS name.
6942
8233
# Override default settings by setting environment variables
 
8234
# Added MAN_SUBSTS in version 1.8
 
8235
# Added AC_PROG_SED in version 1.8
6943
8236
 
6944
8237
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
6945
8238
AC_REQUIRE([AC_CANONICAL_HOST])
 
8239
AC_REQUIRE([AC_PROG_SED])
6946
8240
 
6947
8241
if test x$APP_MAN_SUFFIX = x    ; then
6948
8242
    APP_MAN_SUFFIX=1
7011
8305
AC_SUBST([MISC_MAN_DIR])
7012
8306
AC_SUBST([DRIVER_MAN_DIR])
7013
8307
AC_SUBST([ADMIN_MAN_DIR])
 
8308
 
 
8309
XORG_MAN_PAGE="X Version 11"
 
8310
AC_SUBST([XORG_MAN_PAGE])
 
8311
MAN_SUBSTS="\
 
8312
        -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
8313
        -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
 
8314
        -e 's|__xservername__|Xorg|g' \
 
8315
        -e 's|__xconfigfile__|xorg.conf|g' \
 
8316
        -e 's|__projectroot__|\$(prefix)|g' \
 
8317
        -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
 
8318
        -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
 
8319
        -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
 
8320
        -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
 
8321
        -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
 
8322
        -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
 
8323
AC_SUBST([MAN_SUBSTS])
 
8324
 
7014
8325
]) # XORG_MANPAGE_SECTIONS
7015
8326
 
 
8327
# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION])
 
8328
# ------------------------
 
8329
# Minimum version: 1.7.0
 
8330
#
 
8331
# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent
 
8332
# provided by xorg-sgml-doctools, if installed.
 
8333
AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[
 
8334
AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])])
 
8335
XORG_SGML_PATH=
 
8336
PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
 
8337
    [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`],
 
8338
    [m4_ifval([$1],[:],
 
8339
        [if test x"$cross_compiling" != x"yes" ; then
 
8340
            AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
 
8341
                          [XORG_SGML_PATH=$prefix/share/sgml])
 
8342
         fi])
 
8343
    ])
 
8344
 
 
8345
if test "x$XORG_SGML_PATH" != "x" ; then
 
8346
   AC_MSG_RESULT([$XORG_SGML_PATH])
 
8347
else
 
8348
   AC_MSG_RESULT([no])
 
8349
fi
 
8350
 
 
8351
AC_SUBST(XORG_SGML_PATH)
 
8352
]) # XORG_CHECK_SGML_DOCTOOLS
 
8353
 
7016
8354
# XORG_CHECK_LINUXDOC
7017
8355
# -------------------
7018
8356
# Minimum version: 1.0.0
7022
8360
# Whether or not the necessary tools and files are found can be checked
7023
8361
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
7024
8362
AC_DEFUN([XORG_CHECK_LINUXDOC],[
7025
 
XORG_SGML_PATH=$prefix/share/sgml
7026
 
HAVE_DEFS_ENT=
7027
 
 
7028
 
if test x"$cross_compiling" = x"yes" ; then
7029
 
  HAVE_DEFS_ENT=no
7030
 
else
7031
 
  AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
7032
 
fi
 
8363
AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
 
8364
AC_REQUIRE([XORG_WITH_PS2PDF])
7033
8365
 
7034
8366
AC_PATH_PROG(LINUXDOC, linuxdoc)
7035
 
AC_PATH_PROG(PS2PDF, ps2pdf)
7036
 
 
7037
 
AC_MSG_CHECKING([Whether to build documentation])
7038
 
 
7039
 
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
 
8367
 
 
8368
AC_MSG_CHECKING([whether to build documentation])
 
8369
 
 
8370
if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then
7040
8371
   BUILDDOC=yes
7041
8372
else
7042
8373
   BUILDDOC=no
7046
8377
 
7047
8378
AC_MSG_RESULT([$BUILDDOC])
7048
8379
 
7049
 
AC_MSG_CHECKING([Whether to build pdf documentation])
 
8380
AC_MSG_CHECKING([whether to build pdf documentation])
7050
8381
 
7051
 
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
 
8382
if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then
7052
8383
   BUILDPDFDOC=yes
7053
8384
else
7054
8385
   BUILDPDFDOC=no
7058
8389
 
7059
8390
AC_MSG_RESULT([$BUILDPDFDOC])
7060
8391
 
7061
 
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
 
8392
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f"
7062
8393
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
7063
8394
MAKE_PDF="$PS2PDF"
7064
8395
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
7078
8409
# indicates whether the necessary tools and files are found and, if set,
7079
8410
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
7080
8411
AC_DEFUN([XORG_CHECK_DOCBOOK],[
7081
 
XORG_SGML_PATH=$prefix/share/sgml
7082
 
HAVE_DEFS_ENT=
 
8412
AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
 
8413
 
7083
8414
BUILDTXTDOC=no
7084
8415
BUILDPDFDOC=no
7085
8416
BUILDPSDOC=no
7086
8417
BUILDHTMLDOC=no
7087
8418
 
7088
 
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
7089
 
 
7090
8419
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
7091
8420
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
7092
8421
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
7093
8422
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
7094
8423
 
7095
 
AC_MSG_CHECKING([Whether to build text documentation])
7096
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
 
8424
AC_MSG_CHECKING([whether to build text documentation])
 
8425
if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x &&
7097
8426
   test x$BUILD_TXTDOC != xno; then
7098
8427
        BUILDTXTDOC=yes
7099
8428
fi
7100
8429
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
7101
8430
AC_MSG_RESULT([$BUILDTXTDOC])
7102
8431
 
7103
 
AC_MSG_CHECKING([Whether to build PDF documentation])
7104
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
 
8432
AC_MSG_CHECKING([whether to build PDF documentation])
 
8433
if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x &&
7105
8434
   test x$BUILD_PDFDOC != xno; then
7106
8435
        BUILDPDFDOC=yes
7107
8436
fi
7108
8437
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
7109
8438
AC_MSG_RESULT([$BUILDPDFDOC])
7110
8439
 
7111
 
AC_MSG_CHECKING([Whether to build PostScript documentation])
7112
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
 
8440
AC_MSG_CHECKING([whether to build PostScript documentation])
 
8441
if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x &&
7113
8442
   test x$BUILD_PSDOC != xno; then
7114
8443
        BUILDPSDOC=yes
7115
8444
fi
7116
8445
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
7117
8446
AC_MSG_RESULT([$BUILDPSDOC])
7118
8447
 
7119
 
AC_MSG_CHECKING([Whether to build HTML documentation])
7120
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
 
8448
AC_MSG_CHECKING([whether to build HTML documentation])
 
8449
if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x &&
7121
8450
   test x$BUILD_HTMLDOC != xno; then
7122
8451
        BUILDHTMLDOC=yes
7123
8452
fi
7135
8464
AC_SUBST(MAKE_HTML)
7136
8465
]) # XORG_CHECK_DOCBOOK
7137
8466
 
 
8467
# XORG_WITH_XMLTO([MIN-VERSION])
 
8468
# ----------------
 
8469
# Minimum version: 1.5.0
 
8470
#
 
8471
# Documentation tools are not always available on all platforms and sometimes
 
8472
# not at the appropriate level. This macro enables a module to test for the
 
8473
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8474
# the --with-xmlto option, it allows maximum flexibilty in making decisions
 
8475
# as whether or not to use the xmlto package.
 
8476
#
 
8477
# Interface to module:
 
8478
# HAVE_XMLTO:   used in makefiles to conditionally generate documentation
 
8479
# XMLTO:        returns the path of the xmlto program found
 
8480
#               returns the path set by the user in the environment
 
8481
# --with-xmlto: 'yes' user instructs the module to use xmlto
 
8482
#               'no' user instructs the module not to use xmlto
 
8483
#
 
8484
# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
 
8485
#
 
8486
AC_DEFUN([XORG_WITH_XMLTO],[
 
8487
AC_ARG_VAR([XMLTO], [Path to xmlto command])
 
8488
AC_ARG_WITH(xmlto,
 
8489
        AS_HELP_STRING([--with-xmlto],
 
8490
           [Use xmlto to regenerate documentation (default: yes, if installed)]),
 
8491
           [use_xmlto=$withval], [use_xmlto=auto])
 
8492
 
 
8493
if test "x$use_xmlto" = x"auto"; then
 
8494
   AC_PATH_PROG([XMLTO], [xmlto])
 
8495
   if test "x$XMLTO" = "x"; then
 
8496
        AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
 
8497
        have_xmlto=no
 
8498
   else
 
8499
        have_xmlto=yes
 
8500
   fi
 
8501
elif test "x$use_xmlto" = x"yes" ; then
 
8502
   AC_PATH_PROG([XMLTO], [xmlto])
 
8503
   if test "x$XMLTO" = "x"; then
 
8504
        AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
 
8505
   fi
 
8506
   have_xmlto=yes
 
8507
elif test "x$use_xmlto" = x"no" ; then
 
8508
   if test "x$XMLTO" != "x"; then
 
8509
      AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
 
8510
   fi
 
8511
   have_xmlto=no
 
8512
else
 
8513
   AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
 
8514
fi
 
8515
m4_ifval([$1],
 
8516
[if test "$have_xmlto" = yes; then
 
8517
    # scrape the xmlto version
 
8518
    AC_MSG_CHECKING([the xmlto version])
 
8519
    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
 
8520
    AC_MSG_RESULT([$xmlto_version])
 
8521
    AS_VERSION_COMPARE([$xmlto_version], [$1],
 
8522
        [if test "x$use_xmlto" = xauto; then
 
8523
            AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed])
 
8524
            have_xmlto=no
 
8525
        else
 
8526
            AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed])
 
8527
        fi])
 
8528
fi])
 
8529
AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
 
8530
]) # XORG_WITH_XMLTO
 
8531
 
 
8532
# XORG_WITH_ASCIIDOC([MIN-VERSION])
 
8533
# ----------------
 
8534
# Minimum version: 1.5.0
 
8535
#
 
8536
# Documentation tools are not always available on all platforms and sometimes
 
8537
# not at the appropriate level. This macro enables a module to test for the
 
8538
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8539
# the --with-asciidoc option, it allows maximum flexibilty in making decisions
 
8540
# as whether or not to use the asciidoc package.
 
8541
#
 
8542
# Interface to module:
 
8543
# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
 
8544
# ASCIIDOC:      returns the path of the asciidoc program found
 
8545
#                returns the path set by the user in the environment
 
8546
# --with-asciidoc: 'yes' user instructs the module to use asciidoc
 
8547
#                 'no' user instructs the module not to use asciidoc
 
8548
#
 
8549
# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
 
8550
#
 
8551
AC_DEFUN([XORG_WITH_ASCIIDOC],[
 
8552
AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
 
8553
AC_ARG_WITH(asciidoc,
 
8554
        AS_HELP_STRING([--with-asciidoc],
 
8555
           [Use asciidoc to regenerate documentation (default: yes, if installed)]),
 
8556
           [use_asciidoc=$withval], [use_asciidoc=auto])
 
8557
 
 
8558
if test "x$use_asciidoc" = x"auto"; then
 
8559
   AC_PATH_PROG([ASCIIDOC], [asciidoc])
 
8560
   if test "x$ASCIIDOC" = "x"; then
 
8561
        AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
 
8562
        have_asciidoc=no
 
8563
   else
 
8564
        have_asciidoc=yes
 
8565
   fi
 
8566
elif test "x$use_asciidoc" = x"yes" ; then
 
8567
   AC_PATH_PROG([ASCIIDOC], [asciidoc])
 
8568
   if test "x$ASCIIDOC" = "x"; then
 
8569
        AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
 
8570
   fi
 
8571
   have_asciidoc=yes
 
8572
elif test "x$use_asciidoc" = x"no" ; then
 
8573
   if test "x$ASCIIDOC" != "x"; then
 
8574
      AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
 
8575
   fi
 
8576
   have_asciidoc=no
 
8577
else
 
8578
   AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
 
8579
fi
 
8580
m4_ifval([$1],
 
8581
[if test "$have_asciidoc" = yes; then
 
8582
    # scrape the asciidoc version
 
8583
    AC_MSG_CHECKING([the asciidoc version])
 
8584
    asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
 
8585
    AC_MSG_RESULT([$asciidoc_version])
 
8586
    AS_VERSION_COMPARE([$asciidoc_version], [$1],
 
8587
        [if test "x$use_asciidoc" = xauto; then
 
8588
            AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed])
 
8589
            have_asciidoc=no
 
8590
        else
 
8591
            AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed])
 
8592
        fi])
 
8593
fi])
 
8594
AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
 
8595
]) # XORG_WITH_ASCIIDOC
 
8596
 
 
8597
# XORG_WITH_DOXYGEN([MIN-VERSION])
 
8598
# --------------------------------
 
8599
# Minimum version: 1.5.0
 
8600
#
 
8601
# Documentation tools are not always available on all platforms and sometimes
 
8602
# not at the appropriate level. This macro enables a module to test for the
 
8603
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8604
# the --with-doxygen option, it allows maximum flexibilty in making decisions
 
8605
# as whether or not to use the doxygen package.
 
8606
#
 
8607
# Interface to module:
 
8608
# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
 
8609
# DOXYGEN:       returns the path of the doxygen program found
 
8610
#                returns the path set by the user in the environment
 
8611
# --with-doxygen: 'yes' user instructs the module to use doxygen
 
8612
#                 'no' user instructs the module not to use doxygen
 
8613
#
 
8614
# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
 
8615
#
 
8616
AC_DEFUN([XORG_WITH_DOXYGEN],[
 
8617
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
 
8618
AC_ARG_WITH(doxygen,
 
8619
        AS_HELP_STRING([--with-doxygen],
 
8620
           [Use doxygen to regenerate documentation (default: yes, if installed)]),
 
8621
           [use_doxygen=$withval], [use_doxygen=auto])
 
8622
 
 
8623
if test "x$use_doxygen" = x"auto"; then
 
8624
   AC_PATH_PROG([DOXYGEN], [doxygen])
 
8625
   if test "x$DOXYGEN" = "x"; then
 
8626
        AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
 
8627
        have_doxygen=no
 
8628
   else
 
8629
        have_doxygen=yes
 
8630
   fi
 
8631
elif test "x$use_doxygen" = x"yes" ; then
 
8632
   AC_PATH_PROG([DOXYGEN], [doxygen])
 
8633
   if test "x$DOXYGEN" = "x"; then
 
8634
        AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
 
8635
   fi
 
8636
   have_doxygen=yes
 
8637
elif test "x$use_doxygen" = x"no" ; then
 
8638
   if test "x$DOXYGEN" != "x"; then
 
8639
      AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
 
8640
   fi
 
8641
   have_doxygen=no
 
8642
else
 
8643
   AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
 
8644
fi
 
8645
m4_ifval([$1],
 
8646
[if test "$have_doxygen" = yes; then
 
8647
    # scrape the doxygen version
 
8648
    AC_MSG_CHECKING([the doxygen version])
 
8649
    doxygen_version=`$DOXYGEN --version 2>/dev/null`
 
8650
    AC_MSG_RESULT([$doxygen_version])
 
8651
    AS_VERSION_COMPARE([$doxygen_version], [$1],
 
8652
        [if test "x$use_doxygen" = xauto; then
 
8653
            AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed])
 
8654
            have_doxygen=no
 
8655
        else
 
8656
            AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
 
8657
        fi])
 
8658
fi])
 
8659
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
 
8660
]) # XORG_WITH_DOXYGEN
 
8661
 
 
8662
# XORG_WITH_GROFF
 
8663
# ----------------
 
8664
# Minimum version: 1.6.0
 
8665
#
 
8666
# Documentation tools are not always available on all platforms and sometimes
 
8667
# not at the appropriate level. This macro enables a module to test for the
 
8668
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8669
# the --with-groff option, it allows maximum flexibilty in making decisions
 
8670
# as whether or not to use the groff package.
 
8671
#
 
8672
# Interface to module:
 
8673
# HAVE_GROFF:    used in makefiles to conditionally generate documentation
 
8674
# HAVE_GROFF_MM: the memorandum macros (-mm) package
 
8675
# HAVE_GROFF_MS: the -ms macros package
 
8676
# GROFF:         returns the path of the groff program found
 
8677
#                returns the path set by the user in the environment
 
8678
# --with-groff:  'yes' user instructs the module to use groff
 
8679
#                'no' user instructs the module not to use groff
 
8680
#
 
8681
# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path.
 
8682
#
 
8683
# OS and distros often splits groff in a basic and full package, the former
 
8684
# having the groff program and the later having devices, fonts and macros
 
8685
# Checking for the groff executable is not enough.
 
8686
#
 
8687
# If macros are missing, we cannot assume that groff is useless, so we don't
 
8688
# unset HAVE_GROFF or GROFF env variables.
 
8689
# HAVE_GROFF_?? can never be true while HAVE_GROFF is false.
 
8690
#
 
8691
AC_DEFUN([XORG_WITH_GROFF],[
 
8692
AC_ARG_VAR([GROFF], [Path to groff command])
 
8693
AC_ARG_WITH(groff,
 
8694
        AS_HELP_STRING([--with-groff],
 
8695
           [Use groff to regenerate documentation (default: yes, if installed)]),
 
8696
           [use_groff=$withval], [use_groff=auto])
 
8697
 
 
8698
if test "x$use_groff" = x"auto"; then
 
8699
   AC_PATH_PROG([GROFF], [groff])
 
8700
   if test "x$GROFF" = "x"; then
 
8701
        AC_MSG_WARN([groff not found - documentation targets will be skipped])
 
8702
        have_groff=no
 
8703
   else
 
8704
        have_groff=yes
 
8705
   fi
 
8706
elif test "x$use_groff" = x"yes" ; then
 
8707
   AC_PATH_PROG([GROFF], [groff])
 
8708
   if test "x$GROFF" = "x"; then
 
8709
        AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH])
 
8710
   fi
 
8711
   have_groff=yes
 
8712
elif test "x$use_groff" = x"no" ; then
 
8713
   if test "x$GROFF" != "x"; then
 
8714
      AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified])
 
8715
   fi
 
8716
   have_groff=no
 
8717
else
 
8718
   AC_MSG_ERROR([--with-groff expects 'yes' or 'no'])
 
8719
fi
 
8720
# We have groff, test for the presence of the macro packages
 
8721
if test "x$have_groff" = x"yes"; then
 
8722
    AC_MSG_CHECKING([for ${GROFF} -ms macros])
 
8723
    if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
 
8724
        groff_ms_works=yes
 
8725
    else
 
8726
        groff_ms_works=no
 
8727
    fi
 
8728
    AC_MSG_RESULT([$groff_ms_works])
 
8729
    AC_MSG_CHECKING([for ${GROFF} -mm macros])
 
8730
    if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then
 
8731
        groff_mm_works=yes
 
8732
    else
 
8733
        groff_mm_works=no
 
8734
    fi
 
8735
    AC_MSG_RESULT([$groff_mm_works])
 
8736
fi
 
8737
AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes])
 
8738
AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes])
 
8739
AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes])
 
8740
]) # XORG_WITH_GROFF
 
8741
 
 
8742
# XORG_WITH_FOP
 
8743
# ----------------
 
8744
# Minimum version: 1.6.0
 
8745
#
 
8746
# Documentation tools are not always available on all platforms and sometimes
 
8747
# not at the appropriate level. This macro enables a module to test for the
 
8748
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8749
# the --with-fop option, it allows maximum flexibilty in making decisions
 
8750
# as whether or not to use the fop package.
 
8751
#
 
8752
# Interface to module:
 
8753
# HAVE_FOP:     used in makefiles to conditionally generate documentation
 
8754
# FOP:          returns the path of the fop program found
 
8755
#               returns the path set by the user in the environment
 
8756
# --with-fop:   'yes' user instructs the module to use fop
 
8757
#               'no' user instructs the module not to use fop
 
8758
#
 
8759
# If the user sets the value of FOP, AC_PATH_PROG skips testing the path.
 
8760
#
 
8761
AC_DEFUN([XORG_WITH_FOP],[
 
8762
AC_ARG_VAR([FOP], [Path to fop command])
 
8763
AC_ARG_WITH(fop,
 
8764
        AS_HELP_STRING([--with-fop],
 
8765
           [Use fop to regenerate documentation (default: yes, if installed)]),
 
8766
           [use_fop=$withval], [use_fop=auto])
 
8767
 
 
8768
if test "x$use_fop" = x"auto"; then
 
8769
   AC_PATH_PROG([FOP], [fop])
 
8770
   if test "x$FOP" = "x"; then
 
8771
        AC_MSG_WARN([fop not found - documentation targets will be skipped])
 
8772
        have_fop=no
 
8773
   else
 
8774
        have_fop=yes
 
8775
   fi
 
8776
elif test "x$use_fop" = x"yes" ; then
 
8777
   AC_PATH_PROG([FOP], [fop])
 
8778
   if test "x$FOP" = "x"; then
 
8779
        AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH])
 
8780
   fi
 
8781
   have_fop=yes
 
8782
elif test "x$use_fop" = x"no" ; then
 
8783
   if test "x$FOP" != "x"; then
 
8784
      AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified])
 
8785
   fi
 
8786
   have_fop=no
 
8787
else
 
8788
   AC_MSG_ERROR([--with-fop expects 'yes' or 'no'])
 
8789
fi
 
8790
AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
 
8791
]) # XORG_WITH_FOP
 
8792
 
 
8793
# XORG_WITH_PS2PDF
 
8794
# ----------------
 
8795
# Minimum version: 1.6.0
 
8796
#
 
8797
# Documentation tools are not always available on all platforms and sometimes
 
8798
# not at the appropriate level. This macro enables a module to test for the
 
8799
# presence of the tool and obtain it's path in separate variables. Coupled with
 
8800
# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
 
8801
# as whether or not to use the ps2pdf package.
 
8802
#
 
8803
# Interface to module:
 
8804
# HAVE_PS2PDF:  used in makefiles to conditionally generate documentation
 
8805
# PS2PDF:       returns the path of the ps2pdf program found
 
8806
#               returns the path set by the user in the environment
 
8807
# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf
 
8808
#                'no' user instructs the module not to use ps2pdf
 
8809
#
 
8810
# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path.
 
8811
#
 
8812
AC_DEFUN([XORG_WITH_PS2PDF],[
 
8813
AC_ARG_VAR([PS2PDF], [Path to ps2pdf command])
 
8814
AC_ARG_WITH(ps2pdf,
 
8815
        AS_HELP_STRING([--with-ps2pdf],
 
8816
           [Use ps2pdf to regenerate documentation (default: yes, if installed)]),
 
8817
           [use_ps2pdf=$withval], [use_ps2pdf=auto])
 
8818
 
 
8819
if test "x$use_ps2pdf" = x"auto"; then
 
8820
   AC_PATH_PROG([PS2PDF], [ps2pdf])
 
8821
   if test "x$PS2PDF" = "x"; then
 
8822
        AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped])
 
8823
        have_ps2pdf=no
 
8824
   else
 
8825
        have_ps2pdf=yes
 
8826
   fi
 
8827
elif test "x$use_ps2pdf" = x"yes" ; then
 
8828
   AC_PATH_PROG([PS2PDF], [ps2pdf])
 
8829
   if test "x$PS2PDF" = "x"; then
 
8830
        AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH])
 
8831
   fi
 
8832
   have_ps2pdf=yes
 
8833
elif test "x$use_ps2pdf" = x"no" ; then
 
8834
   if test "x$PS2PDF" != "x"; then
 
8835
      AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified])
 
8836
   fi
 
8837
   have_ps2pdf=no
 
8838
else
 
8839
   AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no'])
 
8840
fi
 
8841
AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes])
 
8842
]) # XORG_WITH_PS2PDF
 
8843
 
 
8844
# XORG_ENABLE_DOCS (enable_docs=yes)
 
8845
# ----------------
 
8846
# Minimum version: 1.6.0
 
8847
#
 
8848
# Documentation tools are not always available on all platforms and sometimes
 
8849
# not at the appropriate level. This macro enables a builder to skip all
 
8850
# documentation targets except traditional man pages.
 
8851
# Combined with the specific tool checking macros XORG_WITH_*, it provides
 
8852
# maximum flexibilty in controlling documentation building.
 
8853
# Refer to:
 
8854
# XORG_WITH_XMLTO         --with-xmlto
 
8855
# XORG_WITH_ASCIIDOC      --with-asciidoc
 
8856
# XORG_WITH_DOXYGEN       --with-doxygen
 
8857
# XORG_WITH_FOP           --with-fop
 
8858
# XORG_WITH_GROFF         --with-groff
 
8859
# XORG_WITH_PS2PDF        --with-ps2pdf
 
8860
#
 
8861
# Interface to module:
 
8862
# ENABLE_DOCS:    used in makefiles to conditionally generate documentation
 
8863
# --enable-docs: 'yes' user instructs the module to generate docs
 
8864
#                'no' user instructs the module not to generate docs
 
8865
# parm1:        specify the default value, yes or no.
 
8866
#
 
8867
AC_DEFUN([XORG_ENABLE_DOCS],[
 
8868
default=$1
 
8869
if test "x$default" = x ; then
 
8870
  default="yes"
 
8871
fi
 
8872
AC_ARG_ENABLE(docs,
 
8873
        AS_HELP_STRING([--enable-docs],
 
8874
           [Enable building the documentation (default: yes)]),
 
8875
           [build_docs=$enableval], [build_docs=$default])
 
8876
AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
 
8877
AC_MSG_CHECKING([whether to build documentation])
 
8878
AC_MSG_RESULT([$build_docs])
 
8879
]) # XORG_ENABLE_DOCS
 
8880
 
 
8881
# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes)
 
8882
# ----------------
 
8883
# Minimum version: 1.6.0
 
8884
#
 
8885
# This macro enables a builder to skip all developer documentation.
 
8886
# Combined with the specific tool checking macros XORG_WITH_*, it provides
 
8887
# maximum flexibilty in controlling documentation building.
 
8888
# Refer to:
 
8889
# XORG_WITH_XMLTO         --with-xmlto
 
8890
# XORG_WITH_ASCIIDOC      --with-asciidoc
 
8891
# XORG_WITH_DOXYGEN       --with-doxygen
 
8892
# XORG_WITH_FOP           --with-fop
 
8893
# XORG_WITH_GROFF         --with-groff
 
8894
# XORG_WITH_PS2PDF        --with-ps2pdf
 
8895
#
 
8896
# Interface to module:
 
8897
# ENABLE_DEVEL_DOCS:    used in makefiles to conditionally generate developer docs
 
8898
# --enable-devel-docs:  'yes' user instructs the module to generate developer docs
 
8899
#                       'no' user instructs the module not to generate developer docs
 
8900
# parm1:                specify the default value, yes or no.
 
8901
#
 
8902
AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[
 
8903
devel_default=$1
 
8904
if test "x$devel_default" = x ; then
 
8905
  devel_default="yes"
 
8906
fi
 
8907
AC_ARG_ENABLE(devel-docs,
 
8908
        AS_HELP_STRING([--enable-devel-docs],
 
8909
           [Enable building the developer documentation (default: yes)]),
 
8910
           [build_devel_docs=$enableval], [build_devel_docs=$devel_default])
 
8911
AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes])
 
8912
AC_MSG_CHECKING([whether to build developer documentation])
 
8913
AC_MSG_RESULT([$build_devel_docs])
 
8914
]) # XORG_ENABLE_DEVEL_DOCS
 
8915
 
 
8916
# XORG_ENABLE_SPECS (enable_specs=yes)
 
8917
# ----------------
 
8918
# Minimum version: 1.6.0
 
8919
#
 
8920
# This macro enables a builder to skip all functional specification targets.
 
8921
# Combined with the specific tool checking macros XORG_WITH_*, it provides
 
8922
# maximum flexibilty in controlling documentation building.
 
8923
# Refer to:
 
8924
# XORG_WITH_XMLTO         --with-xmlto
 
8925
# XORG_WITH_ASCIIDOC      --with-asciidoc
 
8926
# XORG_WITH_DOXYGEN       --with-doxygen
 
8927
# XORG_WITH_FOP           --with-fop
 
8928
# XORG_WITH_GROFF         --with-groff
 
8929
# XORG_WITH_PS2PDF        --with-ps2pdf
 
8930
#
 
8931
# Interface to module:
 
8932
# ENABLE_SPECS:         used in makefiles to conditionally generate specs
 
8933
# --enable-specs:       'yes' user instructs the module to generate specs
 
8934
#                       'no' user instructs the module not to generate specs
 
8935
# parm1:                specify the default value, yes or no.
 
8936
#
 
8937
AC_DEFUN([XORG_ENABLE_SPECS],[
 
8938
spec_default=$1
 
8939
if test "x$spec_default" = x ; then
 
8940
  spec_default="yes"
 
8941
fi
 
8942
AC_ARG_ENABLE(specs,
 
8943
        AS_HELP_STRING([--enable-specs],
 
8944
           [Enable building the specs (default: yes)]),
 
8945
           [build_specs=$enableval], [build_specs=$spec_default])
 
8946
AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes])
 
8947
AC_MSG_CHECKING([whether to build functional specifications])
 
8948
AC_MSG_RESULT([$build_specs])
 
8949
]) # XORG_ENABLE_SPECS
 
8950
 
7138
8951
# XORG_CHECK_MALLOC_ZERO
7139
8952
# ----------------------
7140
8953
# Minimum version: 1.0.0
7144
8957
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
7145
8958
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
7146
8959
AC_ARG_ENABLE(malloc0returnsnull,
7147
 
        AC_HELP_STRING([--enable-malloc0returnsnull],
 
8960
        AS_HELP_STRING([--enable-malloc0returnsnull],
7148
8961
                       [malloc(0) returns NULL (default: auto)]),
7149
8962
        [MALLOC_ZERO_RETURNS_NULL=$enableval],
7150
8963
        [MALLOC_ZERO_RETURNS_NULL=auto])
7164
8977
    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
7165
8978
}],
7166
8979
                [MALLOC_ZERO_RETURNS_NULL=yes],
7167
 
                [MALLOC_ZERO_RETURNS_NULL=no])
 
8980
                [MALLOC_ZERO_RETURNS_NULL=no],
 
8981
                [MALLOC_ZERO_RETURNS_NULL=yes])
7168
8982
fi
7169
8983
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
7170
8984
 
7187
9001
# ----------------
7188
9002
# Minimum version: 1.1.0
7189
9003
#
7190
 
# Sets up flags for source checkers such as lint and sparse if --with-lint
7191
 
# is specified.   (Use --with-lint=sparse for sparse.)
7192
 
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
7193
 
# Sets $LINT_FLAGS to flags to pass to source checker
7194
 
# Sets LINT automake conditional if enabled (default: disabled)
 
9004
# This macro enables the use of a tool that flags some suspicious and
 
9005
# non-portable constructs (likely to be bugs) in C language source code.
 
9006
# It will attempt to locate the tool and use appropriate options.
 
9007
# There are various lint type tools on different platforms.
 
9008
#
 
9009
# Interface to module:
 
9010
# LINT:         returns the path to the tool found on the platform
 
9011
#               or the value set to LINT on the configure cmd line
 
9012
#               also an Automake conditional
 
9013
# LINT_FLAGS:   an Automake variable with appropriate flags
 
9014
#
 
9015
# --with-lint:  'yes' user instructs the module to use lint
 
9016
#               'no' user instructs the module not to use lint (default)
 
9017
#
 
9018
# If the user sets the value of LINT, AC_PATH_PROG skips testing the path.
 
9019
# If the user sets the value of LINT_FLAGS, they are used verbatim.
7195
9020
#
7196
9021
AC_DEFUN([XORG_WITH_LINT],[
7197
9022
 
7198
 
# Allow checking code with lint, sparse, etc.
7199
 
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
 
9023
AC_ARG_VAR([LINT], [Path to a lint-style command])
 
9024
AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command])
 
9025
AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
7200
9026
                [Use a lint-style source code checker (default: disabled)])],
7201
9027
                [use_lint=$withval], [use_lint=no])
7202
 
if test "x$use_lint" = "xyes" ; then
7203
 
        LINT="lint"
 
9028
 
 
9029
# Obtain platform specific info like program name and options
 
9030
# The lint program on FreeBSD and NetBSD is different from the one on Solaris
 
9031
case $host_os in
 
9032
  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
 
9033
        lint_name=splint
 
9034
        lint_options="-badflag"
 
9035
        ;;
 
9036
  *freebsd* | *netbsd*)
 
9037
        lint_name=lint
 
9038
        lint_options="-u -b"
 
9039
        ;;
 
9040
  *solaris*)
 
9041
        lint_name=lint
 
9042
        lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
 
9043
        ;;
 
9044
esac
 
9045
 
 
9046
# Test for the presence of the program (either guessed by the code or spelled out by the user)
 
9047
if test "x$use_lint" = x"yes" ; then
 
9048
   AC_PATH_PROG([LINT], [$lint_name])
 
9049
   if test "x$LINT" = "x"; then
 
9050
        AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH])
 
9051
   fi
 
9052
elif test "x$use_lint" = x"no" ; then
 
9053
   if test "x$LINT" != "x"; then
 
9054
      AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified])
 
9055
   fi
7204
9056
else
7205
 
        LINT="$use_lint"
7206
 
fi
7207
 
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
7208
 
    case $LINT in
7209
 
        lint|*/lint)
7210
 
            case $host_os in
7211
 
                solaris*)
7212
 
                        LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
7213
 
                        ;;
7214
 
            esac
7215
 
            ;;
7216
 
    esac
7217
 
fi
7218
 
 
7219
 
AC_SUBST(LINT)
7220
 
AC_SUBST(LINT_FLAGS)
7221
 
AM_CONDITIONAL(LINT, [test x$LINT != xno])
 
9057
   AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.])
 
9058
fi
 
9059
 
 
9060
# User supplied flags override default flags
 
9061
if test "x$LINT_FLAGS" != "x"; then
 
9062
   lint_options=$LINT_FLAGS
 
9063
fi
 
9064
 
 
9065
AC_SUBST([LINT_FLAGS],[$lint_options])
 
9066
AM_CONDITIONAL(LINT, [test "x$LINT" != x])
7222
9067
 
7223
9068
]) # XORG_WITH_LINT
7224
9069
 
7228
9073
#
7229
9074
# Sets up flags for building lint libraries for checking programs that call
7230
9075
# functions in the library.
7231
 
# Disabled by default, enable with --enable-lint-library
7232
 
# Sets: 
7233
 
#       @LINTLIB@               - name of lint library file to make
7234
 
#       MAKE_LINT_LIB           - automake conditional
7235
 
#
 
9076
#
 
9077
# Interface to module:
 
9078
# LINTLIB               - Automake variable with the name of lint library file to make
 
9079
# MAKE_LINT_LIB         - Automake conditional
 
9080
#
 
9081
# --enable-lint-library:  - 'yes' user instructs the module to created a lint library
 
9082
#                         - 'no' user instructs the module not to create a lint library (default)
7236
9083
 
7237
9084
AC_DEFUN([XORG_LINT_LIBRARY],[
7238
9085
AC_REQUIRE([XORG_WITH_LINT])
7239
 
# Build lint "library" for more indepth checks of programs calling this library
7240
 
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
 
9086
AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
7241
9087
        [Create lint library (default: disabled)])],
7242
9088
        [make_lint_lib=$enableval], [make_lint_lib=no])
7243
 
if test "x$make_lint_lib" != "xno" ; then
7244
 
        if test "x$LINT" = "xno" ; then
7245
 
                AC_MSG_ERROR([Cannot make lint library without --with-lint])
7246
 
        fi
7247
 
        if test "x$make_lint_lib" = "xyes" ; then
7248
 
                LINTLIB=llib-l$1.ln
7249
 
        else
7250
 
                LINTLIB=$make_lint_lib
7251
 
        fi
 
9089
 
 
9090
if test "x$make_lint_lib" = x"yes" ; then
 
9091
   LINTLIB=llib-l$1.ln
 
9092
   if test "x$LINT" = "x"; then
 
9093
        AC_MSG_ERROR([Cannot make lint library without --with-lint])
 
9094
   fi
 
9095
elif test "x$make_lint_lib" != x"no" ; then
 
9096
   AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.])
7252
9097
fi
 
9098
 
7253
9099
AC_SUBST(LINTLIB)
7254
9100
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
7255
9101
 
7256
9102
]) # XORG_LINT_LIBRARY
7257
9103
 
7258
 
dnl Copyright 2005 Red Hat, Inc
7259
 
dnl 
7260
 
dnl Permission to use, copy, modify, distribute, and sell this software and its
7261
 
dnl documentation for any purpose is hereby granted without fee, provided that
7262
 
dnl the above copyright notice appear in all copies and that both that
7263
 
dnl copyright notice and this permission notice appear in supporting
7264
 
dnl documentation.
7265
 
dnl 
7266
 
dnl The above copyright notice and this permission notice shall be included
7267
 
dnl in all copies or substantial portions of the Software.
7268
 
dnl 
7269
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
7270
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
7271
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
7272
 
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
7273
 
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
7274
 
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
7275
 
dnl OTHER DEALINGS IN THE SOFTWARE.
7276
 
dnl 
7277
 
dnl Except as contained in this notice, the name of the copyright holders shall
7278
 
dnl not be used in advertising or otherwise to promote the sale, use or
7279
 
dnl other dealings in this Software without prior written authorization
7280
 
dnl from the copyright holders.
7281
 
dnl 
7282
 
 
7283
 
# XORG_DRIVER_CHECK_EXT()
7284
 
# --------------------------
7285
 
# Checks for the $1 define in xorg-server.h (from the sdk).  If it
7286
 
# is defined, then add $1 to $REQUIRED_MODULES.
7287
 
 
7288
 
AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
7289
 
        SAVE_CFLAGS="$CFLAGS"
7290
 
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
7291
 
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
7292
 
#include "xorg-server.h"
7293
 
#if !defined $1
7294
 
#error $1 not defined
7295
 
#endif
7296
 
                ]])],
7297
 
                [_EXT_CHECK=yes],
7298
 
                [_EXT_CHECK=no])
7299
 
        CFLAGS="$SAVE_CFLAGS"
7300
 
        AC_MSG_CHECKING([if $1 is defined])
7301
 
        AC_MSG_RESULT([$_EXT_CHECK])
7302
 
        if test "$_EXT_CHECK" != no; then
7303
 
                REQUIRED_MODULES="$REQUIRED_MODULES $2"
 
9104
# XORG_CWARNFLAGS
 
9105
# ---------------
 
9106
# Minimum version: 1.2.0
 
9107
#
 
9108
# Defines CWARNFLAGS to enable C compiler warnings.
 
9109
#
 
9110
AC_DEFUN([XORG_CWARNFLAGS], [
 
9111
AC_REQUIRE([AC_PROG_CC_C99])
 
9112
if  test "x$GCC" = xyes ; then
 
9113
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
9114
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
9115
-Wbad-function-cast -Wformat=2"
 
9116
    case `$CC -dumpversion` in
 
9117
    3.4.* | 4.*)
 
9118
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
9119
        ;;
 
9120
    esac
 
9121
else
 
9122
    AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
9123
    if test "x$SUNCC" = "xyes"; then
 
9124
        CWARNFLAGS="-v"
 
9125
    fi
 
9126
fi
 
9127
AC_SUBST(CWARNFLAGS)
 
9128
]) # XORG_CWARNFLAGS
 
9129
 
 
9130
# XORG_STRICT_OPTION
 
9131
# -----------------------
 
9132
# Minimum version: 1.3.0
 
9133
#
 
9134
# Add configure option to enable strict compilation
 
9135
AC_DEFUN([XORG_STRICT_OPTION], [
 
9136
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
 
9137
AC_REQUIRE([AC_PROG_CC_C99])
 
9138
AC_REQUIRE([XORG_CWARNFLAGS])
 
9139
 
 
9140
AC_ARG_ENABLE(strict-compilation,
 
9141
                          AS_HELP_STRING([--enable-strict-compilation],
 
9142
                          [Enable all warnings from compiler and make them errors (default: disabled)]),
 
9143
                          [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
 
9144
if test "x$STRICT_COMPILE" = "xyes"; then
 
9145
        AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
9146
        AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
 
9147
        if test "x$GCC" = xyes ; then
 
9148
                STRICT_CFLAGS="-pedantic -Werror"
 
9149
        elif test "x$SUNCC" = "xyes"; then
 
9150
                STRICT_CFLAGS="-errwarn"
 
9151
    elif test "x$INTELCC" = "xyes"; then
 
9152
                STRICT_CFLAGS="-Werror"
7304
9153
        fi
7305
 
])
7306
 
 
 
9154
fi
 
9155
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
9156
AC_SUBST([CWARNFLAGS])
 
9157
]) # XORG_STRICT_OPTION
 
9158
 
 
9159
# XORG_DEFAULT_OPTIONS
 
9160
# --------------------
 
9161
# Minimum version: 1.3.0
 
9162
#
 
9163
# Defines default options for X.Org modules.
 
9164
#
 
9165
AC_DEFUN([XORG_DEFAULT_OPTIONS], [
 
9166
AC_REQUIRE([AC_PROG_INSTALL])
 
9167
XORG_CWARNFLAGS
 
9168
XORG_STRICT_OPTION
 
9169
XORG_RELEASE_VERSION
 
9170
XORG_CHANGELOG
 
9171
XORG_INSTALL
 
9172
XORG_MANPAGE_SECTIONS
 
9173
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
 
9174
    [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
 
9175
]) # XORG_DEFAULT_OPTIONS
 
9176
 
 
9177
# XORG_INSTALL()
 
9178
# ----------------
 
9179
# Minimum version: 1.4.0
 
9180
#
 
9181
# Defines the variable INSTALL_CMD as the command to copy
 
9182
# INSTALL from $prefix/share/util-macros.
 
9183
#
 
9184
AC_DEFUN([XORG_INSTALL], [
 
9185
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9186
macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
 
9187
INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
 
9188
mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
 
9189
|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
 
9190
echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
 
9191
AC_SUBST([INSTALL_CMD])
 
9192
]) # XORG_INSTALL
7307
9193
dnl Copyright 2005 Red Hat, Inc
7308
9194
dnl
7309
9195
dnl Permission to use, copy, modify, distribute, and sell this software and its
7331
9217
 
7332
9218
# XORG_RELEASE_VERSION
7333
9219
# --------------------
7334
 
# Adds --with/without-release-string and changes the PACKAGE and
7335
 
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
7336
 
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.  Also
7337
 
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
 
9220
# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
7338
9221
 
7339
9222
AC_DEFUN([XORG_RELEASE_VERSION],[
7340
 
        AC_ARG_WITH(release-version,
7341
 
                        AC_HELP_STRING([--with-release-version=STRING],
7342
 
                                [Use release version string in package name]),
7343
 
                        [RELEASE_VERSION="$withval"],
7344
 
                        [RELEASE_VERSION=""])
7345
 
        if test "x$RELEASE_VERSION" != "x"; then
7346
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
7347
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
7348
 
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
7349
 
        fi
7350
9223
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
7351
9224
                [`echo $PACKAGE_VERSION | cut -d . -f 1`],
7352
9225
                [Major version of this package])
7366
9239
                [Patch version of this package])
7367
9240
])
7368
9241
 
7369
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
9242
# XORG_CHANGELOG()
 
9243
# ----------------
 
9244
# Minimum version: 1.2.0
 
9245
#
 
9246
# Defines the variable CHANGELOG_CMD as the command to generate
 
9247
# ChangeLog from git.
 
9248
#
 
9249
#
 
9250
AC_DEFUN([XORG_CHANGELOG], [
 
9251
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
 
9252
mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
 
9253
|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
 
9254
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
9255
AC_SUBST([CHANGELOG_CMD])
 
9256
]) # XORG_CHANGELOG
 
9257
 
 
9258
dnl Copyright 2005 Red Hat, Inc
 
9259
dnl 
 
9260
dnl Permission to use, copy, modify, distribute, and sell this software and its
 
9261
dnl documentation for any purpose is hereby granted without fee, provided that
 
9262
dnl the above copyright notice appear in all copies and that both that
 
9263
dnl copyright notice and this permission notice appear in supporting
 
9264
dnl documentation.
 
9265
dnl 
 
9266
dnl The above copyright notice and this permission notice shall be included
 
9267
dnl in all copies or substantial portions of the Software.
 
9268
dnl 
 
9269
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
9270
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
9271
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
9272
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
9273
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
9274
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
9275
dnl OTHER DEALINGS IN THE SOFTWARE.
 
9276
dnl 
 
9277
dnl Except as contained in this notice, the name of the copyright holders shall
 
9278
dnl not be used in advertising or otherwise to promote the sale, use or
 
9279
dnl other dealings in this Software without prior written authorization
 
9280
dnl from the copyright holders.
 
9281
dnl 
 
9282
 
 
9283
# XORG_DRIVER_CHECK_EXT()
 
9284
# --------------------------
 
9285
# Checks for the $1 define in xorg-server.h (from the sdk).  If it
 
9286
# is defined, then add $1 to $REQUIRED_MODULES.
 
9287
 
 
9288
AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
 
9289
        AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9290
        SAVE_CFLAGS="$CFLAGS"
 
9291
        CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
 
9292
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
9293
#include "xorg-server.h"
 
9294
#if !defined $1
 
9295
#error $1 not defined
 
9296
#endif
 
9297
                ]])],
 
9298
                [_EXT_CHECK=yes],
 
9299
                [_EXT_CHECK=no])
 
9300
        CFLAGS="$SAVE_CFLAGS"
 
9301
        AC_MSG_CHECKING([if $1 is defined])
 
9302
        AC_MSG_RESULT([$_EXT_CHECK])
 
9303
        if test "$_EXT_CHECK" != no; then
 
9304
                REQUIRED_MODULES="$REQUIRED_MODULES $2"
 
9305
        fi
 
9306
])
 
9307
 
 
9308
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7370
9309
#
7371
9310
# This file is free software; the Free Software Foundation
7372
9311
# gives unlimited permission to copy and/or distribute it,
7378
9317
# generated from the m4 files accompanying Automake X.Y.
7379
9318
# (This private macro should not be called outside this file.)
7380
9319
AC_DEFUN([AM_AUTOMAKE_VERSION],
7381
 
[am__api_version='1.10'
 
9320
[am__api_version='1.11'
7382
9321
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7383
9322
dnl require some minimum version.  Point them to the right macro.
7384
 
m4_if([$1], [1.10.1], [],
 
9323
m4_if([$1], [1.11.1], [],
7385
9324
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7386
9325
])
7387
9326
 
7395
9334
# AM_SET_CURRENT_AUTOMAKE_VERSION
7396
9335
# -------------------------------
7397
9336
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7398
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
9337
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7399
9338
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7400
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
9339
[AM_AUTOMAKE_VERSION([1.11.1])dnl
7401
9340
m4_ifndef([AC_AUTOCONF_VERSION],
7402
9341
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7403
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
9342
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7404
9343
 
7405
9344
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7406
9345
 
7457
9396
 
7458
9397
# AM_CONDITIONAL                                            -*- Autoconf -*-
7459
9398
 
7460
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
9399
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
7461
9400
# Free Software Foundation, Inc.
7462
9401
#
7463
9402
# This file is free software; the Free Software Foundation
7464
9403
# gives unlimited permission to copy and/or distribute it,
7465
9404
# with or without modifications, as long as this notice is preserved.
7466
9405
 
7467
 
# serial 8
 
9406
# serial 9
7468
9407
 
7469
9408
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7470
9409
# -------------------------------------
7477
9416
AC_SUBST([$1_FALSE])dnl
7478
9417
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7479
9418
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9419
m4_define([_AM_COND_VALUE_$1], [$2])dnl
7480
9420
if $2; then
7481
9421
  $1_TRUE=
7482
9422
  $1_FALSE='#'
7490
9430
Usually this means the macro was only invoked conditionally.]])
7491
9431
fi])])
7492
9432
 
7493
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
9433
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
7494
9434
# Free Software Foundation, Inc.
7495
9435
#
7496
9436
# This file is free software; the Free Software Foundation
7497
9437
# gives unlimited permission to copy and/or distribute it,
7498
9438
# with or without modifications, as long as this notice is preserved.
7499
9439
 
7500
 
# serial 9
 
9440
# serial 10
7501
9441
 
7502
9442
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7503
9443
# written in clear, in which case automake, when reading aclocal.m4,
7554
9494
  if test "$am_compiler_list" = ""; then
7555
9495
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7556
9496
  fi
 
9497
  am__universal=false
 
9498
  m4_case([$1], [CC],
 
9499
    [case " $depcc " in #(
 
9500
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9501
     esac],
 
9502
    [CXX],
 
9503
    [case " $depcc " in #(
 
9504
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9505
     esac])
 
9506
 
7557
9507
  for depmode in $am_compiler_list; do
7558
9508
    # Setup a source with many dependencies, because some compilers
7559
9509
    # like to wrap large dependency lists on column 80 (with \), and
7571
9521
    done
7572
9522
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7573
9523
 
 
9524
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9525
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9526
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
9527
    # versions had trouble with output in subdirs
 
9528
    am__obj=sub/conftest.${OBJEXT-o}
 
9529
    am__minus_obj="-o $am__obj"
7574
9530
    case $depmode in
 
9531
    gcc)
 
9532
      # This depmode causes a compiler race in universal mode.
 
9533
      test "$am__universal" = false || continue
 
9534
      ;;
7575
9535
    nosideeffect)
7576
9536
      # after this tag, mechanisms are not by side-effect, so they'll
7577
9537
      # only be used when explicitly requested
7581
9541
        break
7582
9542
      fi
7583
9543
      ;;
 
9544
    msvisualcpp | msvcmsys)
 
9545
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9546
      # not run yet.  These depmodes are late enough in the game, and
 
9547
      # so weak that their functioning should not be impacted.
 
9548
      am__obj=conftest.${OBJEXT-o}
 
9549
      am__minus_obj=
 
9550
      ;;
7584
9551
    none) break ;;
7585
9552
    esac
7586
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7587
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7588
 
    # handle `-M -o', and we need to detect this.
7589
9553
    if depmode=$depmode \
7590
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
9554
       source=sub/conftest.c object=$am__obj \
7591
9555
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7592
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
9556
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7593
9557
         >/dev/null 2>conftest.err &&
7594
9558
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7595
9559
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7596
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
9560
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7597
9561
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7598
9562
      # icc doesn't choke on unknown options, it will just issue warnings
7599
9563
      # or remarks (even with -Werror).  So we grep stderr for any message
7650
9614
 
7651
9615
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7652
9616
 
7653
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9617
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7654
9618
# Free Software Foundation, Inc.
7655
9619
#
7656
9620
# This file is free software; the Free Software Foundation
7657
9621
# gives unlimited permission to copy and/or distribute it,
7658
9622
# with or without modifications, as long as this notice is preserved.
7659
9623
 
7660
 
#serial 3
 
9624
#serial 5
7661
9625
 
7662
9626
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7663
9627
# ------------------------------
7664
9628
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7665
 
[for mf in $CONFIG_FILES; do
7666
 
  # Strip MF so we end up with the name of the file.
7667
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7668
 
  # Check whether this is an Automake generated Makefile or not.
7669
 
  # We used to match only the files named `Makefile.in', but
7670
 
  # some people rename them; so instead we look at the file content.
7671
 
  # Grep'ing the first line is not enough: some people post-process
7672
 
  # each Makefile.in and add a new line on top of each file to say so.
7673
 
  # Grep'ing the whole file is not good either: AIX grep has a line
7674
 
  # limit of 2048, but all sed's we know have understand at least 4000.
7675
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7676
 
    dirpart=`AS_DIRNAME("$mf")`
7677
 
  else
7678
 
    continue
7679
 
  fi
7680
 
  # Extract the definition of DEPDIR, am__include, and am__quote
7681
 
  # from the Makefile without running `make'.
7682
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7683
 
  test -z "$DEPDIR" && continue
7684
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7685
 
  test -z "am__include" && continue
7686
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7687
 
  # When using ansi2knr, U may be empty or an underscore; expand it
7688
 
  U=`sed -n 's/^U = //p' < "$mf"`
7689
 
  # Find all dependency output files, they are included files with
7690
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7691
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
7692
 
  # expansion.
7693
 
  for file in `sed -n "
7694
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7695
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7696
 
    # Make sure the directory exists.
7697
 
    test -f "$dirpart/$file" && continue
7698
 
    fdir=`AS_DIRNAME(["$file"])`
7699
 
    AS_MKDIR_P([$dirpart/$fdir])
7700
 
    # echo "creating $dirpart/$file"
7701
 
    echo '# dummy' > "$dirpart/$file"
 
9629
[{
 
9630
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9631
  # are listed without --file.  Let's play safe and only enable the eval
 
9632
  # if we detect the quoting.
 
9633
  case $CONFIG_FILES in
 
9634
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9635
  *)   set x $CONFIG_FILES ;;
 
9636
  esac
 
9637
  shift
 
9638
  for mf
 
9639
  do
 
9640
    # Strip MF so we end up with the name of the file.
 
9641
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9642
    # Check whether this is an Automake generated Makefile or not.
 
9643
    # We used to match only the files named `Makefile.in', but
 
9644
    # some people rename them; so instead we look at the file content.
 
9645
    # Grep'ing the first line is not enough: some people post-process
 
9646
    # each Makefile.in and add a new line on top of each file to say so.
 
9647
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9648
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9649
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9650
      dirpart=`AS_DIRNAME("$mf")`
 
9651
    else
 
9652
      continue
 
9653
    fi
 
9654
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9655
    # from the Makefile without running `make'.
 
9656
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9657
    test -z "$DEPDIR" && continue
 
9658
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9659
    test -z "am__include" && continue
 
9660
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9661
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9662
    U=`sed -n 's/^U = //p' < "$mf"`
 
9663
    # Find all dependency output files, they are included files with
 
9664
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9665
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9666
    # expansion.
 
9667
    for file in `sed -n "
 
9668
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9669
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9670
      # Make sure the directory exists.
 
9671
      test -f "$dirpart/$file" && continue
 
9672
      fdir=`AS_DIRNAME(["$file"])`
 
9673
      AS_MKDIR_P([$dirpart/$fdir])
 
9674
      # echo "creating $dirpart/$file"
 
9675
      echo '# dummy' > "$dirpart/$file"
 
9676
    done
7702
9677
  done
7703
 
done
 
9678
}
7704
9679
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7705
9680
 
7706
9681
 
7732
9707
# Do all the work for Automake.                             -*- Autoconf -*-
7733
9708
 
7734
9709
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7735
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
9710
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
7736
9711
#
7737
9712
# This file is free software; the Free Software Foundation
7738
9713
# gives unlimited permission to copy and/or distribute it,
7739
9714
# with or without modifications, as long as this notice is preserved.
7740
9715
 
7741
 
# serial 13
 
9716
# serial 16
7742
9717
 
7743
9718
# This macro actually does too much.  Some checks are only needed if
7744
9719
# your package does certain things.  But this isn't really a big deal.
7755
9730
# arguments mandatory, and then we can depend on a new Autoconf
7756
9731
# release and drop the old call support.
7757
9732
AC_DEFUN([AM_INIT_AUTOMAKE],
7758
 
[AC_PREREQ([2.60])dnl
 
9733
[AC_PREREQ([2.62])dnl
7759
9734
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7760
9735
dnl the ones we care about.
7761
9736
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7806
9781
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7807
9782
AM_MISSING_PROG(AUTOHEADER, autoheader)
7808
9783
AM_MISSING_PROG(MAKEINFO, makeinfo)
7809
 
AM_PROG_INSTALL_SH
7810
 
AM_PROG_INSTALL_STRIP
 
9784
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9785
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
7811
9786
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7812
9787
# We need awk for the "check" target.  The system "awk" is bad on
7813
9788
# some platforms.
7815
9790
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7816
9791
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7817
9792
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7818
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7819
 
                             [_AM_PROG_TAR([v7])])])
 
9793
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9794
                             [_AM_PROG_TAR([v7])])])
7820
9795
_AM_IF_OPTION([no-dependencies],,
7821
9796
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7822
 
                  [_AM_DEPENDENCIES(CC)],
7823
 
                  [define([AC_PROG_CC],
7824
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9797
                  [_AM_DEPENDENCIES(CC)],
 
9798
                  [define([AC_PROG_CC],
 
9799
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7825
9800
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7826
 
                  [_AM_DEPENDENCIES(CXX)],
7827
 
                  [define([AC_PROG_CXX],
7828
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9801
                  [_AM_DEPENDENCIES(CXX)],
 
9802
                  [define([AC_PROG_CXX],
 
9803
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7829
9804
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7830
 
                  [_AM_DEPENDENCIES(OBJC)],
7831
 
                  [define([AC_PROG_OBJC],
7832
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7833
 
])
7834
 
])
 
9805
                  [_AM_DEPENDENCIES(OBJC)],
 
9806
                  [define([AC_PROG_OBJC],
 
9807
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9808
])
 
9809
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
9810
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
9811
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
9812
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9813
AC_CONFIG_COMMANDS_PRE(dnl
 
9814
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
9815
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
9816
])
 
9817
 
 
9818
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9819
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
9820
dnl mangled by Autoconf and run in a shell conditional statement.
 
9821
m4_define([_AC_COMPILER_EXEEXT],
 
9822
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
7835
9823
 
7836
9824
 
7837
9825
# When config.status generates a header, we must update the stamp-h file.
7855
9843
done
7856
9844
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7857
9845
 
7858
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9846
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
7859
9847
#
7860
9848
# This file is free software; the Free Software Foundation
7861
9849
# gives unlimited permission to copy and/or distribute it,
7866
9854
# Define $install_sh.
7867
9855
AC_DEFUN([AM_PROG_INSTALL_SH],
7868
9856
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7869
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
9857
if test x"${install_sh}" != xset; then
 
9858
  case $am_aux_dir in
 
9859
  *\ * | *\     *)
 
9860
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
9861
  *)
 
9862
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
9863
  esac
 
9864
fi
7870
9865
AC_SUBST(install_sh)])
7871
9866
 
7872
9867
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7893
9888
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
7894
9889
# From Jim Meyering
7895
9890
 
7896
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
9891
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7897
9892
# Free Software Foundation, Inc.
7898
9893
#
7899
9894
# This file is free software; the Free Software Foundation
7900
9895
# gives unlimited permission to copy and/or distribute it,
7901
9896
# with or without modifications, as long as this notice is preserved.
7902
9897
 
7903
 
# serial 4
 
9898
# serial 5
7904
9899
 
 
9900
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
9901
# ----------------------------------
 
9902
# Control maintainer-specific portions of Makefiles.
 
9903
# Default is to disable them, unless `enable' is passed literally.
 
9904
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
9905
# can override the default with the --enable/--disable switch.
7905
9906
AC_DEFUN([AM_MAINTAINER_MODE],
7906
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7907
 
  dnl maintainer-mode is disabled by default
7908
 
  AC_ARG_ENABLE(maintainer-mode,
7909
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
9907
[m4_case(m4_default([$1], [disable]),
 
9908
       [enable], [m4_define([am_maintainer_other], [disable])],
 
9909
       [disable], [m4_define([am_maintainer_other], [enable])],
 
9910
       [m4_define([am_maintainer_other], [enable])
 
9911
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
9912
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
9913
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
9914
  AC_ARG_ENABLE([maintainer-mode],
 
9915
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
7910
9916
                          (and sometimes confusing) to the casual installer],
7911
 
      USE_MAINTAINER_MODE=$enableval,
7912
 
      USE_MAINTAINER_MODE=no)
 
9917
      [USE_MAINTAINER_MODE=$enableval],
 
9918
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
7913
9919
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7914
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
9920
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
7915
9921
  MAINT=$MAINTAINER_MODE_TRUE
7916
 
  AC_SUBST(MAINT)dnl
 
9922
  AC_SUBST([MAINT])dnl
7917
9923
]
7918
9924
)
7919
9925
 
7921
9927
 
7922
9928
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
7923
9929
 
7924
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9930
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
7925
9931
#
7926
9932
# This file is free software; the Free Software Foundation
7927
9933
# gives unlimited permission to copy and/or distribute it,
7928
9934
# with or without modifications, as long as this notice is preserved.
7929
9935
 
7930
 
# serial 3
 
9936
# serial 4
7931
9937
 
7932
9938
# AM_MAKE_INCLUDE()
7933
9939
# -----------------
7936
9942
[am_make=${MAKE-make}
7937
9943
cat > confinc << 'END'
7938
9944
am__doit:
7939
 
        @echo done
 
9945
        @echo this is the am__doit target
7940
9946
.PHONY: am__doit
7941
9947
END
7942
9948
# If we don't find an include directive, just comment out the code.
7946
9952
_am_result=none
7947
9953
# First try GNU make style include.
7948
9954
echo "include confinc" > confmf
7949
 
# We grep out `Entering directory' and `Leaving directory'
7950
 
# messages which can occur if `w' ends up in MAKEFLAGS.
7951
 
# In particular we don't look at `^make:' because GNU make might
7952
 
# be invoked under some other name (usually "gmake"), in which
7953
 
# case it prints its new name instead of `make'.
7954
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7955
 
   am__include=include
7956
 
   am__quote=
7957
 
   _am_result=GNU
7958
 
fi
 
9955
# Ignore all kinds of additional output from `make'.
 
9956
case `$am_make -s -f confmf 2> /dev/null` in #(
 
9957
*the\ am__doit\ target*)
 
9958
  am__include=include
 
9959
  am__quote=
 
9960
  _am_result=GNU
 
9961
  ;;
 
9962
esac
7959
9963
# Now try BSD make style include.
7960
9964
if test "$am__include" = "#"; then
7961
9965
   echo '.include "confinc"' > confmf
7962
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7963
 
      am__include=.include
7964
 
      am__quote="\""
7965
 
      _am_result=BSD
7966
 
   fi
 
9966
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
9967
   *the\ am__doit\ target*)
 
9968
     am__include=.include
 
9969
     am__quote="\""
 
9970
     _am_result=BSD
 
9971
     ;;
 
9972
   esac
7967
9973
fi
7968
9974
AC_SUBST([am__include])
7969
9975
AC_SUBST([am__quote])
7973
9979
 
7974
9980
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7975
9981
 
7976
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
9982
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
7977
9983
# Free Software Foundation, Inc.
7978
9984
#
7979
9985
# This file is free software; the Free Software Foundation
7980
9986
# gives unlimited permission to copy and/or distribute it,
7981
9987
# with or without modifications, as long as this notice is preserved.
7982
9988
 
7983
 
# serial 5
 
9989
# serial 6
7984
9990
 
7985
9991
# AM_MISSING_PROG(NAME, PROGRAM)
7986
9992
# ------------------------------
7997
10003
AC_DEFUN([AM_MISSING_HAS_RUN],
7998
10004
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7999
10005
AC_REQUIRE_AUX_FILE([missing])dnl
8000
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
10006
if test x"${MISSING+set}" != xset; then
 
10007
  case $am_aux_dir in
 
10008
  *\ * | *\     *)
 
10009
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
10010
  *)
 
10011
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
10012
  esac
 
10013
fi
8001
10014
# Use eval to expand $SHELL
8002
10015
if eval "$MISSING --run true"; then
8003
10016
  am_missing_run="$MISSING --run "
8035
10048
 
8036
10049
# Helper functions for option handling.                     -*- Autoconf -*-
8037
10050
 
8038
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
10051
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
8039
10052
#
8040
10053
# This file is free software; the Free Software Foundation
8041
10054
# gives unlimited permission to copy and/or distribute it,
8042
10055
# with or without modifications, as long as this notice is preserved.
8043
10056
 
8044
 
# serial 3
 
10057
# serial 4
8045
10058
 
8046
10059
# _AM_MANGLE_OPTION(NAME)
8047
10060
# -----------------------
8058
10071
# ----------------------------------
8059
10072
# OPTIONS is a space-separated list of Automake options.
8060
10073
AC_DEFUN([_AM_SET_OPTIONS],
8061
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
10074
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8062
10075
 
8063
10076
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8064
10077
# -------------------------------------------
8068
10081
 
8069
10082
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
8070
10083
 
8071
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
10084
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
8072
10085
# Free Software Foundation, Inc.
8073
10086
#
8074
10087
# This file is free software; the Free Software Foundation
8075
10088
# gives unlimited permission to copy and/or distribute it,
8076
10089
# with or without modifications, as long as this notice is preserved.
8077
10090
 
8078
 
# serial 4
 
10091
# serial 5
8079
10092
 
8080
10093
# AM_SANITY_CHECK
8081
10094
# ---------------
8084
10097
# Just in case
8085
10098
sleep 1
8086
10099
echo timestamp > conftest.file
 
10100
# Reject unsafe characters in $srcdir or the absolute working directory
 
10101
# name.  Accept space and tab only in the latter.
 
10102
am_lf='
 
10103
'
 
10104
case `pwd` in
 
10105
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
10106
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
10107
esac
 
10108
case $srcdir in
 
10109
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
10110
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
10111
esac
 
10112
 
8087
10113
# Do `set' in a subshell so we don't clobber the current shell's
8088
10114
# arguments.  Must try -L first in case configure is actually a
8089
10115
# symlink; some systems play weird games with the mod time of symlinks
8090
10116
# (eg FreeBSD returns the mod time of the symlink's containing
8091
10117
# directory).
8092
10118
if (
8093
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
10119
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8094
10120
   if test "$[*]" = "X"; then
8095
10121
      # -L didn't work.
8096
 
      set X `ls -t $srcdir/configure conftest.file`
 
10122
      set X `ls -t "$srcdir/configure" conftest.file`
8097
10123
   fi
8098
10124
   rm -f conftest.file
8099
10125
   if test "$[*]" != "X $srcdir/configure conftest.file" \
8118
10144
fi
8119
10145
AC_MSG_RESULT(yes)])
8120
10146
 
 
10147
# Copyright (C) 2009  Free Software Foundation, Inc.
 
10148
#
 
10149
# This file is free software; the Free Software Foundation
 
10150
# gives unlimited permission to copy and/or distribute it,
 
10151
# with or without modifications, as long as this notice is preserved.
 
10152
 
 
10153
# serial 1
 
10154
 
 
10155
# AM_SILENT_RULES([DEFAULT])
 
10156
# --------------------------
 
10157
# Enable less verbose build rules; with the default set to DEFAULT
 
10158
# (`yes' being less verbose, `no' or empty being verbose).
 
10159
AC_DEFUN([AM_SILENT_RULES],
 
10160
[AC_ARG_ENABLE([silent-rules],
 
10161
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
10162
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
10163
case $enable_silent_rules in
 
10164
yes) AM_DEFAULT_VERBOSITY=0;;
 
10165
no)  AM_DEFAULT_VERBOSITY=1;;
 
10166
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
10167
esac
 
10168
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
10169
AM_BACKSLASH='\'
 
10170
AC_SUBST([AM_BACKSLASH])dnl
 
10171
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
10172
])
 
10173
 
8121
10174
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8122
10175
#
8123
10176
# This file is free software; the Free Software Foundation
8146
10199
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8147
10200
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8148
10201
 
8149
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
10202
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
8150
10203
#
8151
10204
# This file is free software; the Free Software Foundation
8152
10205
# gives unlimited permission to copy and/or distribute it,
8153
10206
# with or without modifications, as long as this notice is preserved.
8154
10207
 
 
10208
# serial 2
 
10209
 
8155
10210
# _AM_SUBST_NOTMAKE(VARIABLE)
8156
10211
# ---------------------------
8157
10212
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8158
10213
# This macro is traced by Automake.
8159
10214
AC_DEFUN([_AM_SUBST_NOTMAKE])
8160
10215
 
 
10216
# AM_SUBST_NOTMAKE(VARIABLE)
 
10217
# ---------------------------
 
10218
# Public sister of _AM_SUBST_NOTMAKE.
 
10219
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
10220
 
8161
10221
# Check how to create a tarball.                            -*- Autoconf -*-
8162
10222
 
8163
10223
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.