~ubuntu-branches/ubuntu/maverick/gnome-session/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-04-08 09:47:57 UTC
  • mto: This revision was merged to the branch mainline in revision 110.
  • Revision ID: james.westby@ubuntu.com-20090408094757-rs8ialby8p72at4e
Tags: upstream-2.26.0svn20090408
ImportĀ upstreamĀ versionĀ 2.26.0svn20090408

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.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
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.62],,
17
 
[m4_warning([this file was generated for autoconf 2.62.
 
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
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
23
 
#
24
 
# This file is free software; the Free Software Foundation
25
 
# gives unlimited permission to copy and/or distribute it,
26
 
# with or without modifications, as long as this notice is preserved.
27
 
 
28
 
# AM_AUTOMAKE_VERSION(VERSION)
29
 
# ----------------------------
30
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
 
# generated from the m4 files accompanying Automake X.Y.
32
 
# (This private macro should not be called outside this file.)
33
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.10'
35
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
 
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.10.1], [],
38
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
 
])
40
 
 
41
 
# _AM_AUTOCONF_VERSION(VERSION)
42
 
# -----------------------------
43
 
# aclocal traces this macro to find the Autoconf version.
44
 
# This is a private macro too.  Using m4_define simplifies
45
 
# the logic in aclocal, which can simply ignore this definition.
46
 
m4_define([_AM_AUTOCONF_VERSION], [])
47
 
 
48
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
 
# -------------------------------
50
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
52
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
54
 
m4_ifndef([AC_AUTOCONF_VERSION],
55
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
57
 
 
58
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
 
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
61
 
#
62
 
# This file is free software; the Free Software Foundation
63
 
# gives unlimited permission to copy and/or distribute it,
64
 
# with or without modifications, as long as this notice is preserved.
65
 
 
66
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
69
 
#
70
 
# Of course, Automake must honor this variable whenever it calls a
71
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
72
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
 
# depending on how configure is run.  This is pretty annoying, since
74
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
 
# source directory, any form will work fine, but in subdirectories a
76
 
# relative path needs to be adjusted first.
77
 
#
78
 
# $ac_aux_dir/missing
79
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
80
 
# $top_srcdir/$ac_aux_dir/missing
81
 
#    fails if $ac_aux_dir is absolute,
82
 
#    fails when called from a subdirectory in a VPATH build with
83
 
#          a relative $ac_aux_dir
84
 
#
85
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
 
# are both prefixed by $srcdir.  In an in-source build this is usually
87
 
# harmless because $srcdir is `.', but things will broke when you
88
 
# start a VPATH build or use an absolute $srcdir.
89
 
#
90
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
92
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
 
# and then we would define $MISSING as
94
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
95
 
# This will work as long as MISSING is not called from configure, because
96
 
# unfortunately $(top_srcdir) has no meaning in configure.
97
 
# However there are other variables, like CC, which are often used in
98
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
99
 
#
100
 
# Another solution, used here, is to always expand $ac_aux_dir to an
101
 
# absolute PATH.  The drawback is that using absolute paths prevent a
102
 
# configured tree to be moved without reconfiguration.
103
 
 
104
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
 
[dnl Rely on autoconf to set up CDPATH properly.
106
 
AC_PREREQ([2.50])dnl
107
 
# expand $ac_aux_dir to an absolute path
108
 
am_aux_dir=`cd $ac_aux_dir && pwd`
109
 
])
110
 
 
111
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
 
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114
 
# Free Software Foundation, Inc.
115
 
#
116
 
# This file is free software; the Free Software Foundation
117
 
# gives unlimited permission to copy and/or distribute it,
118
 
# with or without modifications, as long as this notice is preserved.
119
 
 
120
 
# serial 8
121
 
 
122
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
 
# -------------------------------------
124
 
# Define a conditional.
125
 
AC_DEFUN([AM_CONDITIONAL],
126
 
[AC_PREREQ(2.52)dnl
127
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
 
AC_SUBST([$1_TRUE])dnl
130
 
AC_SUBST([$1_FALSE])dnl
131
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
 
if $2; then
134
 
  $1_TRUE=
135
 
  $1_FALSE='#'
136
 
else
137
 
  $1_TRUE='#'
138
 
  $1_FALSE=
139
 
fi
140
 
AC_CONFIG_COMMANDS_PRE(
141
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
143
 
Usually this means the macro was only invoked conditionally.]])
144
 
fi])])
145
 
 
146
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
147
 
# Free Software Foundation, Inc.
148
 
#
149
 
# This file is free software; the Free Software Foundation
150
 
# gives unlimited permission to copy and/or distribute it,
151
 
# with or without modifications, as long as this notice is preserved.
152
 
 
153
 
# serial 9
154
 
 
155
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156
 
# written in clear, in which case automake, when reading aclocal.m4,
157
 
# will think it sees a *use*, and therefore will trigger all it's
158
 
# C support machinery.  Also note that it means that autoscan, seeing
159
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160
 
 
161
 
 
162
 
# _AM_DEPENDENCIES(NAME)
163
 
# ----------------------
164
 
# See how the compiler implements dependency checking.
165
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
166
 
# We try a few techniques and use that to set a single cache variable.
167
 
#
168
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170
 
# dependency, and given that the user is not expected to run this macro,
171
 
# just rely on AC_PROG_CC.
172
 
AC_DEFUN([_AM_DEPENDENCIES],
173
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
174
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176
 
AC_REQUIRE([AM_DEP_TRACK])dnl
177
 
 
178
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
179
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
180
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
182
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
183
 
                   [depcc="$$1"   am_compiler_list=])
184
 
 
185
 
AC_CACHE_CHECK([dependency style of $depcc],
186
 
               [am_cv_$1_dependencies_compiler_type],
187
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188
 
  # We make a subdir and do the tests there.  Otherwise we can end up
189
 
  # making bogus files that we don't know about and never remove.  For
190
 
  # instance it was reported that on HP-UX the gcc test will end up
191
 
  # making a dummy file named `D' -- because `-MD' means `put the output
192
 
  # in D'.
193
 
  mkdir conftest.dir
194
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
195
 
  # using a relative directory.
196
 
  cp "$am_depcomp" conftest.dir
197
 
  cd conftest.dir
198
 
  # We will build objects and dependencies in a subdirectory because
199
 
  # it helps to detect inapplicable dependency modes.  For instance
200
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
201
 
  # side effect of compilation, but ICC will put the dependencies in
202
 
  # the current directory while Tru64 will put them in the object
203
 
  # directory.
204
 
  mkdir sub
205
 
 
206
 
  am_cv_$1_dependencies_compiler_type=none
207
 
  if test "$am_compiler_list" = ""; then
208
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
209
 
  fi
210
 
  for depmode in $am_compiler_list; do
211
 
    # Setup a source with many dependencies, because some compilers
212
 
    # like to wrap large dependency lists on column 80 (with \), and
213
 
    # we should not choose a depcomp mode which is confused by this.
214
 
    #
215
 
    # We need to recreate these files for each test, as the compiler may
216
 
    # overwrite some of them when testing with obscure command lines.
217
 
    # This happens at least with the AIX C compiler.
218
 
    : > sub/conftest.c
219
 
    for i in 1 2 3 4 5 6; do
220
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
221
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
222
 
      # Solaris 8's {/usr,}/bin/sh.
223
 
      touch sub/conftst$i.h
224
 
    done
225
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
226
 
 
227
 
    case $depmode in
228
 
    nosideeffect)
229
 
      # after this tag, mechanisms are not by side-effect, so they'll
230
 
      # only be used when explicitly requested
231
 
      if test "x$enable_dependency_tracking" = xyes; then
232
 
        continue
233
 
      else
234
 
        break
235
 
      fi
236
 
      ;;
237
 
    none) break ;;
238
 
    esac
239
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
240
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
241
 
    # handle `-M -o', and we need to detect this.
242
 
    if depmode=$depmode \
243
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
244
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
245
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
246
 
         >/dev/null 2>conftest.err &&
247
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
248
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
249
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
250
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
251
 
      # icc doesn't choke on unknown options, it will just issue warnings
252
 
      # or remarks (even with -Werror).  So we grep stderr for any message
253
 
      # that says an option was ignored or not supported.
254
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
255
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
256
 
      # The diagnosis changed in icc 8.0:
257
 
      #   icc: Command line remark: option '-MP' not supported
258
 
      if (grep 'ignoring option' conftest.err ||
259
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
260
 
        am_cv_$1_dependencies_compiler_type=$depmode
261
 
        break
262
 
      fi
263
 
    fi
264
 
  done
265
 
 
266
 
  cd ..
267
 
  rm -rf conftest.dir
268
 
else
269
 
  am_cv_$1_dependencies_compiler_type=none
270
 
fi
271
 
])
272
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
273
 
AM_CONDITIONAL([am__fastdep$1], [
274
 
  test "x$enable_dependency_tracking" != xno \
275
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
276
 
])
277
 
 
278
 
 
279
 
# AM_SET_DEPDIR
280
 
# -------------
281
 
# Choose a directory name for dependency files.
282
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
283
 
AC_DEFUN([AM_SET_DEPDIR],
284
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
285
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
286
 
])
287
 
 
288
 
 
289
 
# AM_DEP_TRACK
290
 
# ------------
291
 
AC_DEFUN([AM_DEP_TRACK],
292
 
[AC_ARG_ENABLE(dependency-tracking,
293
 
[  --disable-dependency-tracking  speeds up one-time build
294
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
295
 
if test "x$enable_dependency_tracking" != xno; then
296
 
  am_depcomp="$ac_aux_dir/depcomp"
297
 
  AMDEPBACKSLASH='\'
298
 
fi
299
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
300
 
AC_SUBST([AMDEPBACKSLASH])dnl
301
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
302
 
])
303
 
 
304
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
305
 
 
306
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
307
 
# Free Software Foundation, Inc.
308
 
#
309
 
# This file is free software; the Free Software Foundation
310
 
# gives unlimited permission to copy and/or distribute it,
311
 
# with or without modifications, as long as this notice is preserved.
312
 
 
313
 
#serial 3
314
 
 
315
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
316
 
# ------------------------------
317
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
318
 
[for mf in $CONFIG_FILES; do
319
 
  # Strip MF so we end up with the name of the file.
320
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
321
 
  # Check whether this is an Automake generated Makefile or not.
322
 
  # We used to match only the files named `Makefile.in', but
323
 
  # some people rename them; so instead we look at the file content.
324
 
  # Grep'ing the first line is not enough: some people post-process
325
 
  # each Makefile.in and add a new line on top of each file to say so.
326
 
  # Grep'ing the whole file is not good either: AIX grep has a line
327
 
  # limit of 2048, but all sed's we know have understand at least 4000.
328
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
329
 
    dirpart=`AS_DIRNAME("$mf")`
330
 
  else
331
 
    continue
332
 
  fi
333
 
  # Extract the definition of DEPDIR, am__include, and am__quote
334
 
  # from the Makefile without running `make'.
335
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
336
 
  test -z "$DEPDIR" && continue
337
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
338
 
  test -z "am__include" && continue
339
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
340
 
  # When using ansi2knr, U may be empty or an underscore; expand it
341
 
  U=`sed -n 's/^U = //p' < "$mf"`
342
 
  # Find all dependency output files, they are included files with
343
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
344
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
345
 
  # expansion.
346
 
  for file in `sed -n "
347
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
348
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
349
 
    # Make sure the directory exists.
350
 
    test -f "$dirpart/$file" && continue
351
 
    fdir=`AS_DIRNAME(["$file"])`
352
 
    AS_MKDIR_P([$dirpart/$fdir])
353
 
    # echo "creating $dirpart/$file"
354
 
    echo '# dummy' > "$dirpart/$file"
355
 
  done
356
 
done
357
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
358
 
 
359
 
 
360
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
361
 
# -----------------------------
362
 
# This macro should only be invoked once -- use via AC_REQUIRE.
363
 
#
364
 
# This code is only required when automatic dependency tracking
365
 
# is enabled.  FIXME.  This creates each `.P' file that we will
366
 
# need in order to bootstrap the dependency handling code.
367
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
368
 
[AC_CONFIG_COMMANDS([depfiles],
369
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
370
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
371
 
])
372
 
 
373
 
# Do all the work for Automake.                             -*- Autoconf -*-
374
 
 
375
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
376
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
377
 
#
378
 
# This file is free software; the Free Software Foundation
379
 
# gives unlimited permission to copy and/or distribute it,
380
 
# with or without modifications, as long as this notice is preserved.
381
 
 
382
 
# serial 13
383
 
 
384
 
# This macro actually does too much.  Some checks are only needed if
385
 
# your package does certain things.  But this isn't really a big deal.
386
 
 
387
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
388
 
# AM_INIT_AUTOMAKE([OPTIONS])
389
 
# -----------------------------------------------
390
 
# The call with PACKAGE and VERSION arguments is the old style
391
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
392
 
# and VERSION should now be passed to AC_INIT and removed from
393
 
# the call to AM_INIT_AUTOMAKE.
394
 
# We support both call styles for the transition.  After
395
 
# the next Automake release, Autoconf can make the AC_INIT
396
 
# arguments mandatory, and then we can depend on a new Autoconf
397
 
# release and drop the old call support.
398
 
AC_DEFUN([AM_INIT_AUTOMAKE],
399
 
[AC_PREREQ([2.60])dnl
400
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
401
 
dnl the ones we care about.
402
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
403
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
404
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
405
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
406
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
407
 
  # is not polluted with repeated "-I."
408
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
409
 
  # test to see if srcdir already configured
410
 
  if test -f $srcdir/config.status; then
411
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
412
 
  fi
413
 
fi
414
 
 
415
 
# test whether we have cygpath
416
 
if test -z "$CYGPATH_W"; then
417
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
418
 
    CYGPATH_W='cygpath -w'
419
 
  else
420
 
    CYGPATH_W=echo
421
 
  fi
422
 
fi
423
 
AC_SUBST([CYGPATH_W])
424
 
 
425
 
# Define the identity of the package.
426
 
dnl Distinguish between old-style and new-style calls.
427
 
m4_ifval([$2],
428
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
429
 
 AC_SUBST([PACKAGE], [$1])dnl
430
 
 AC_SUBST([VERSION], [$2])],
431
 
[_AM_SET_OPTIONS([$1])dnl
432
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
433
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
434
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
435
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
436
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
437
 
 
438
 
_AM_IF_OPTION([no-define],,
439
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
440
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
441
 
 
442
 
# Some tools Automake needs.
443
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
444
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
445
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
446
 
AM_MISSING_PROG(AUTOCONF, autoconf)
447
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
448
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
449
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
450
 
AM_PROG_INSTALL_SH
451
 
AM_PROG_INSTALL_STRIP
452
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
453
 
# We need awk for the "check" target.  The system "awk" is bad on
454
 
# some platforms.
455
 
AC_REQUIRE([AC_PROG_AWK])dnl
456
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
457
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
458
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
459
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
460
 
                             [_AM_PROG_TAR([v7])])])
461
 
_AM_IF_OPTION([no-dependencies],,
462
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
463
 
                  [_AM_DEPENDENCIES(CC)],
464
 
                  [define([AC_PROG_CC],
465
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
466
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
467
 
                  [_AM_DEPENDENCIES(CXX)],
468
 
                  [define([AC_PROG_CXX],
469
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
470
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
471
 
                  [_AM_DEPENDENCIES(OBJC)],
472
 
                  [define([AC_PROG_OBJC],
473
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
474
 
])
475
 
])
476
 
 
477
 
 
478
 
# When config.status generates a header, we must update the stamp-h file.
479
 
# This file resides in the same directory as the config header
480
 
# that is generated.  The stamp files are numbered to have different names.
481
 
 
482
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
483
 
# loop where config.status creates the headers, so we can generate
484
 
# our stamp files there.
485
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
486
 
[# Compute $1's index in $config_headers.
487
 
_am_arg=$1
488
 
_am_stamp_count=1
489
 
for _am_header in $config_headers :; do
490
 
  case $_am_header in
491
 
    $_am_arg | $_am_arg:* )
492
 
      break ;;
493
 
    * )
494
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
495
 
  esac
496
 
done
497
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
498
 
 
499
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
500
 
#
501
 
# This file is free software; the Free Software Foundation
502
 
# gives unlimited permission to copy and/or distribute it,
503
 
# with or without modifications, as long as this notice is preserved.
504
 
 
505
 
# AM_PROG_INSTALL_SH
506
 
# ------------------
507
 
# Define $install_sh.
508
 
AC_DEFUN([AM_PROG_INSTALL_SH],
509
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
510
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
511
 
AC_SUBST(install_sh)])
512
 
 
513
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
514
 
#
515
 
# This file is free software; the Free Software Foundation
516
 
# gives unlimited permission to copy and/or distribute it,
517
 
# with or without modifications, as long as this notice is preserved.
518
 
 
519
 
# serial 2
520
 
 
521
 
# Check whether the underlying file-system supports filenames
522
 
# with a leading dot.  For instance MS-DOS doesn't.
523
 
AC_DEFUN([AM_SET_LEADING_DOT],
524
 
[rm -rf .tst 2>/dev/null
525
 
mkdir .tst 2>/dev/null
526
 
if test -d .tst; then
527
 
  am__leading_dot=.
528
 
else
529
 
  am__leading_dot=_
530
 
fi
531
 
rmdir .tst 2>/dev/null
532
 
AC_SUBST([am__leading_dot])])
533
 
 
534
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
535
 
# From Jim Meyering
536
 
 
537
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
538
 
# Free Software Foundation, Inc.
539
 
#
540
 
# This file is free software; the Free Software Foundation
541
 
# gives unlimited permission to copy and/or distribute it,
542
 
# with or without modifications, as long as this notice is preserved.
543
 
 
544
 
# serial 4
545
 
 
546
 
AC_DEFUN([AM_MAINTAINER_MODE],
547
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
548
 
  dnl maintainer-mode is disabled by default
549
 
  AC_ARG_ENABLE(maintainer-mode,
550
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
551
 
                          (and sometimes confusing) to the casual installer],
552
 
      USE_MAINTAINER_MODE=$enableval,
553
 
      USE_MAINTAINER_MODE=no)
554
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
555
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
556
 
  MAINT=$MAINTAINER_MODE_TRUE
557
 
  AC_SUBST(MAINT)dnl
558
 
]
559
 
)
560
 
 
561
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
562
 
 
563
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
564
 
 
565
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
566
 
#
567
 
# This file is free software; the Free Software Foundation
568
 
# gives unlimited permission to copy and/or distribute it,
569
 
# with or without modifications, as long as this notice is preserved.
570
 
 
571
 
# serial 3
572
 
 
573
 
# AM_MAKE_INCLUDE()
574
 
# -----------------
575
 
# Check to see how make treats includes.
576
 
AC_DEFUN([AM_MAKE_INCLUDE],
577
 
[am_make=${MAKE-make}
578
 
cat > confinc << 'END'
579
 
am__doit:
580
 
        @echo done
581
 
.PHONY: am__doit
582
 
END
583
 
# If we don't find an include directive, just comment out the code.
584
 
AC_MSG_CHECKING([for style of include used by $am_make])
585
 
am__include="#"
586
 
am__quote=
587
 
_am_result=none
588
 
# First try GNU make style include.
589
 
echo "include confinc" > confmf
590
 
# We grep out `Entering directory' and `Leaving directory'
591
 
# messages which can occur if `w' ends up in MAKEFLAGS.
592
 
# In particular we don't look at `^make:' because GNU make might
593
 
# be invoked under some other name (usually "gmake"), in which
594
 
# case it prints its new name instead of `make'.
595
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
596
 
   am__include=include
597
 
   am__quote=
598
 
   _am_result=GNU
599
 
fi
600
 
# Now try BSD make style include.
601
 
if test "$am__include" = "#"; then
602
 
   echo '.include "confinc"' > confmf
603
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
604
 
      am__include=.include
605
 
      am__quote="\""
606
 
      _am_result=BSD
607
 
   fi
608
 
fi
609
 
AC_SUBST([am__include])
610
 
AC_SUBST([am__quote])
611
 
AC_MSG_RESULT([$_am_result])
612
 
rm -f confinc confmf
613
 
])
614
 
 
615
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
616
 
 
617
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
618
 
# Free Software Foundation, Inc.
619
 
#
620
 
# This file is free software; the Free Software Foundation
621
 
# gives unlimited permission to copy and/or distribute it,
622
 
# with or without modifications, as long as this notice is preserved.
623
 
 
624
 
# serial 5
625
 
 
626
 
# AM_MISSING_PROG(NAME, PROGRAM)
627
 
# ------------------------------
628
 
AC_DEFUN([AM_MISSING_PROG],
629
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
630
 
$1=${$1-"${am_missing_run}$2"}
631
 
AC_SUBST($1)])
632
 
 
633
 
 
634
 
# AM_MISSING_HAS_RUN
635
 
# ------------------
636
 
# Define MISSING if not defined so far and test if it supports --run.
637
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
638
 
AC_DEFUN([AM_MISSING_HAS_RUN],
639
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
640
 
AC_REQUIRE_AUX_FILE([missing])dnl
641
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
642
 
# Use eval to expand $SHELL
643
 
if eval "$MISSING --run true"; then
644
 
  am_missing_run="$MISSING --run "
645
 
else
646
 
  am_missing_run=
647
 
  AC_MSG_WARN([`missing' script is too old or missing])
648
 
fi
649
 
])
650
 
 
651
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
652
 
#
653
 
# This file is free software; the Free Software Foundation
654
 
# gives unlimited permission to copy and/or distribute it,
655
 
# with or without modifications, as long as this notice is preserved.
656
 
 
657
 
# AM_PROG_MKDIR_P
658
 
# ---------------
659
 
# Check for `mkdir -p'.
660
 
AC_DEFUN([AM_PROG_MKDIR_P],
661
 
[AC_PREREQ([2.60])dnl
662
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
663
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
664
 
dnl while keeping a definition of mkdir_p for backward compatibility.
665
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
666
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
667
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
668
 
dnl adjustment using top_builddir (which is defined more often than
669
 
dnl MKDIR_P).
670
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
671
 
case $mkdir_p in
672
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
673
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
674
 
esac
675
 
])
676
 
 
677
 
# Helper functions for option handling.                     -*- Autoconf -*-
678
 
 
679
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
680
 
#
681
 
# This file is free software; the Free Software Foundation
682
 
# gives unlimited permission to copy and/or distribute it,
683
 
# with or without modifications, as long as this notice is preserved.
684
 
 
685
 
# serial 3
686
 
 
687
 
# _AM_MANGLE_OPTION(NAME)
688
 
# -----------------------
689
 
AC_DEFUN([_AM_MANGLE_OPTION],
690
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
691
 
 
692
 
# _AM_SET_OPTION(NAME)
693
 
# ------------------------------
694
 
# Set option NAME.  Presently that only means defining a flag for this option.
695
 
AC_DEFUN([_AM_SET_OPTION],
696
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
697
 
 
698
 
# _AM_SET_OPTIONS(OPTIONS)
699
 
# ----------------------------------
700
 
# OPTIONS is a space-separated list of Automake options.
701
 
AC_DEFUN([_AM_SET_OPTIONS],
702
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
703
 
 
704
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
705
 
# -------------------------------------------
706
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
707
 
AC_DEFUN([_AM_IF_OPTION],
708
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
709
 
 
710
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
711
 
 
712
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
713
 
# Free Software Foundation, Inc.
714
 
#
715
 
# This file is free software; the Free Software Foundation
716
 
# gives unlimited permission to copy and/or distribute it,
717
 
# with or without modifications, as long as this notice is preserved.
718
 
 
719
 
# serial 4
720
 
 
721
 
# AM_SANITY_CHECK
722
 
# ---------------
723
 
AC_DEFUN([AM_SANITY_CHECK],
724
 
[AC_MSG_CHECKING([whether build environment is sane])
725
 
# Just in case
726
 
sleep 1
727
 
echo timestamp > conftest.file
728
 
# Do `set' in a subshell so we don't clobber the current shell's
729
 
# arguments.  Must try -L first in case configure is actually a
730
 
# symlink; some systems play weird games with the mod time of symlinks
731
 
# (eg FreeBSD returns the mod time of the symlink's containing
732
 
# directory).
733
 
if (
734
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
735
 
   if test "$[*]" = "X"; then
736
 
      # -L didn't work.
737
 
      set X `ls -t $srcdir/configure conftest.file`
738
 
   fi
739
 
   rm -f conftest.file
740
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
741
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
742
 
 
743
 
      # If neither matched, then we have a broken ls.  This can happen
744
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
745
 
      # broken ls alias from the environment.  This has actually
746
 
      # happened.  Such a system could not be considered "sane".
747
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
748
 
alias in your environment])
749
 
   fi
750
 
 
751
 
   test "$[2]" = conftest.file
752
 
   )
753
 
then
754
 
   # Ok.
755
 
   :
756
 
else
757
 
   AC_MSG_ERROR([newly created file is older than distributed files!
758
 
Check your system clock])
759
 
fi
760
 
AC_MSG_RESULT(yes)])
761
 
 
762
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
763
 
#
764
 
# This file is free software; the Free Software Foundation
765
 
# gives unlimited permission to copy and/or distribute it,
766
 
# with or without modifications, as long as this notice is preserved.
767
 
 
768
 
# AM_PROG_INSTALL_STRIP
769
 
# ---------------------
770
 
# One issue with vendor `install' (even GNU) is that you can't
771
 
# specify the program used to strip binaries.  This is especially
772
 
# annoying in cross-compiling environments, where the build's strip
773
 
# is unlikely to handle the host's binaries.
774
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
775
 
# always use install-sh in `make install-strip', and initialize
776
 
# STRIPPROG with the value of the STRIP variable (set by the user).
777
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
778
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
779
 
# Installed binaries are usually stripped using `strip' when the user
780
 
# run `make install-strip'.  However `strip' might not be the right
781
 
# tool to use in cross-compilation environments, therefore Automake
782
 
# will honor the `STRIP' environment variable to overrule this program.
783
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
784
 
if test "$cross_compiling" != no; then
785
 
  AC_CHECK_TOOL([STRIP], [strip], :)
786
 
fi
787
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
788
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
789
 
 
790
 
# Copyright (C) 2006  Free Software Foundation, Inc.
791
 
#
792
 
# This file is free software; the Free Software Foundation
793
 
# gives unlimited permission to copy and/or distribute it,
794
 
# with or without modifications, as long as this notice is preserved.
795
 
 
796
 
# _AM_SUBST_NOTMAKE(VARIABLE)
797
 
# ---------------------------
798
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
799
 
# This macro is traced by Automake.
800
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
801
 
 
802
 
# Check how to create a tarball.                            -*- Autoconf -*-
803
 
 
804
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
805
 
#
806
 
# This file is free software; the Free Software Foundation
807
 
# gives unlimited permission to copy and/or distribute it,
808
 
# with or without modifications, as long as this notice is preserved.
809
 
 
810
 
# serial 2
811
 
 
812
 
# _AM_PROG_TAR(FORMAT)
813
 
# --------------------
814
 
# Check how to create a tarball in format FORMAT.
815
 
# FORMAT should be one of `v7', `ustar', or `pax'.
816
 
#
817
 
# Substitute a variable $(am__tar) that is a command
818
 
# writing to stdout a FORMAT-tarball containing the directory
819
 
# $tardir.
820
 
#     tardir=directory && $(am__tar) > result.tar
821
 
#
822
 
# Substitute a variable $(am__untar) that extract such
823
 
# a tarball read from stdin.
824
 
#     $(am__untar) < result.tar
825
 
AC_DEFUN([_AM_PROG_TAR],
826
 
[# Always define AMTAR for backward compatibility.
827
 
AM_MISSING_PROG([AMTAR], [tar])
828
 
m4_if([$1], [v7],
829
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
830
 
     [m4_case([$1], [ustar],, [pax],,
831
 
              [m4_fatal([Unknown tar format])])
832
 
AC_MSG_CHECKING([how to create a $1 tar archive])
833
 
# Loop over all known methods to create a tar archive until one works.
834
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
835
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
836
 
# Do not fold the above two line into one, because Tru64 sh and
837
 
# Solaris sh will not grok spaces in the rhs of `-'.
838
 
for _am_tool in $_am_tools
839
 
do
840
 
  case $_am_tool in
841
 
  gnutar)
842
 
    for _am_tar in tar gnutar gtar;
843
 
    do
844
 
      AM_RUN_LOG([$_am_tar --version]) && break
845
 
    done
846
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
847
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
848
 
    am__untar="$_am_tar -xf -"
849
 
    ;;
850
 
  plaintar)
851
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
852
 
    # ustar tarball either.
853
 
    (tar --version) >/dev/null 2>&1 && continue
854
 
    am__tar='tar chf - "$$tardir"'
855
 
    am__tar_='tar chf - "$tardir"'
856
 
    am__untar='tar xf -'
857
 
    ;;
858
 
  pax)
859
 
    am__tar='pax -L -x $1 -w "$$tardir"'
860
 
    am__tar_='pax -L -x $1 -w "$tardir"'
861
 
    am__untar='pax -r'
862
 
    ;;
863
 
  cpio)
864
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
865
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
866
 
    am__untar='cpio -i -H $1 -d'
867
 
    ;;
868
 
  none)
869
 
    am__tar=false
870
 
    am__tar_=false
871
 
    am__untar=false
872
 
    ;;
873
 
  esac
874
 
 
875
 
  # If the value was cached, stop now.  We just wanted to have am__tar
876
 
  # and am__untar set.
877
 
  test -n "${am_cv_prog_tar_$1}" && break
878
 
 
879
 
  # tar/untar a dummy directory, and stop if the command works
880
 
  rm -rf conftest.dir
881
 
  mkdir conftest.dir
882
 
  echo GrepMe > conftest.dir/file
883
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
884
 
  rm -rf conftest.dir
885
 
  if test -s conftest.tar; then
886
 
    AM_RUN_LOG([$am__untar <conftest.tar])
887
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
888
 
  fi
889
 
done
890
 
rm -rf conftest.dir
891
 
 
892
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
893
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
894
 
AC_SUBST([am__tar])
895
 
AC_SUBST([am__untar])
896
 
]) # _AM_PROG_TAR
897
 
 
898
22
dnl AM_GCONF_SOURCE_2
899
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
900
24
dnl  (i.e. pass to gconftool-2
1413
537
        AC_REQUIRE([AM_MAINTAINER_MODE])
1414
538
 
1415
539
        if test $USE_MAINTAINER_MODE = yes; then
1416
 
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DWNCK_DISABLE_DEPRECATED -DLIBSOUP_DISABLE_DEPRECATED"
 
540
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
1417
541
        else
1418
542
                DISABLE_DEPRECATED=""
1419
543
        fi
1616
740
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1617
741
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1618
742
 
1619
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
1620
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
1621
 
AC_SUBST(INTLTOOL_KEYS_RULE)
1622
 
AC_SUBST(INTLTOOL_PROP_RULE)
1623
 
AC_SUBST(INTLTOOL_OAF_RULE)
1624
 
AC_SUBST(INTLTOOL_PONG_RULE)
1625
 
AC_SUBST(INTLTOOL_SERVER_RULE)
1626
 
AC_SUBST(INTLTOOL_SHEET_RULE)
1627
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
1628
 
AC_SUBST(INTLTOOL_UI_RULE)
1629
 
AC_SUBST(INTLTOOL_XAM_RULE)
1630
 
AC_SUBST(INTLTOOL_KBD_RULE)
1631
 
AC_SUBST(INTLTOOL_XML_RULE)
1632
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1633
 
AC_SUBST(INTLTOOL_CAVES_RULE)
1634
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
1635
 
AC_SUBST(INTLTOOL_THEME_RULE)
1636
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
1637
 
AC_SUBST(INTLTOOL_POLICY_RULE)
 
743
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
744
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
745
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
746
_IT_SUBST(INTLTOOL_PROP_RULE)
 
747
_IT_SUBST(INTLTOOL_OAF_RULE)
 
748
_IT_SUBST(INTLTOOL_PONG_RULE)
 
749
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
750
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
751
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
752
_IT_SUBST(INTLTOOL_UI_RULE)
 
753
_IT_SUBST(INTLTOOL_XAM_RULE)
 
754
_IT_SUBST(INTLTOOL_KBD_RULE)
 
755
_IT_SUBST(INTLTOOL_XML_RULE)
 
756
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
757
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
758
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
759
_IT_SUBST(INTLTOOL_THEME_RULE)
 
760
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
761
_IT_SUBST(INTLTOOL_POLICY_RULE)
1638
762
 
1639
763
# Check the gettext tools to make sure they are GNU
1640
764
AC_PATH_PROG(XGETTEXT, xgettext)
1651
775
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1652
776
fi
1653
777
 
1654
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
778
AC_PATH_PROG(INTLTOOL_PERL, perl)
1655
779
if test -z "$INTLTOOL_PERL"; then
1656
 
   AC_MSG_ERROR([perl not found; required for intltool])
 
780
   AC_MSG_ERROR([perl not found])
1657
781
fi
1658
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
1659
 
   AC_MSG_ERROR([perl 5.x required for intltool])
 
782
AC_MSG_CHECKING([for perl >= 5.8.1])
 
783
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
784
if test $? -ne 0; then
 
785
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
786
else
 
787
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
788
   AC_MSG_RESULT([$IT_PERL_VERSION])
1660
789
fi
1661
790
if test "x$2" != "xno-xml"; then
1662
791
   AC_MSG_CHECKING([for XML::Parser])
1712
841
dnl of config.status.
1713
842
AC_CONFIG_COMMANDS_PRE([
1714
843
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1715
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
844
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1716
845
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1717
846
    fi
1718
847
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1734
863
])dnl
1735
864
])
1736
865
 
 
866
# _IT_SUBST(VARIABLE)
 
867
# -------------------
 
868
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
869
#
 
870
AC_DEFUN([_IT_SUBST],
 
871
[
 
872
AC_SUBST([$1])
 
873
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
874
]
 
875
)
 
876
 
1737
877
# deprecated macros
1738
878
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1739
879
# A hint is needed for aclocal from Automake <= 1.9.4:
1741
881
 
1742
882
 
1743
883
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1744
 
 
1745
 
# serial 52 AC_PROG_LIBTOOL
1746
 
 
1747
 
 
1748
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1749
 
# -----------------------------------------------------------
1750
 
# If this macro is not defined by Autoconf, define it here.
1751
 
m4_ifdef([AC_PROVIDE_IFELSE],
1752
 
         [],
1753
 
         [m4_define([AC_PROVIDE_IFELSE],
1754
 
                 [m4_ifdef([AC_PROVIDE_$1],
1755
 
                           [$2], [$3])])])
1756
 
 
1757
 
 
1758
 
# AC_PROG_LIBTOOL
1759
 
# ---------------
1760
 
AC_DEFUN([AC_PROG_LIBTOOL],
1761
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1762
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1763
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1764
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
1765
 
    [AC_LIBTOOL_CXX],
1766
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1767
 
  ])])
1768
 
dnl And a similar setup for Fortran 77 support
1769
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
1770
 
    [AC_LIBTOOL_F77],
1771
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1772
 
])])
1773
 
 
1774
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1775
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1776
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1777
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1778
 
    [AC_LIBTOOL_GCJ],
1779
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1780
 
      [AC_LIBTOOL_GCJ],
1781
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1782
 
        [AC_LIBTOOL_GCJ],
1783
 
      [ifdef([AC_PROG_GCJ],
1784
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1785
 
       ifdef([A][M_PROG_GCJ],
1786
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1787
 
       ifdef([LT_AC_PROG_GCJ],
1788
 
             [define([LT_AC_PROG_GCJ],
1789
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1790
 
])])# AC_PROG_LIBTOOL
1791
 
 
1792
 
 
1793
 
# _AC_PROG_LIBTOOL
1794
 
# ----------------
1795
 
AC_DEFUN([_AC_PROG_LIBTOOL],
1796
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1797
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1798
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1799
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
884
#
 
885
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
886
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
887
#   Written by Gordon Matzigkeit, 1996
 
888
#
 
889
# This file is free software; the Free Software Foundation gives
 
890
# unlimited permission to copy and/or distribute it, with or without
 
891
# modifications, as long as this notice is preserved.
 
892
 
 
893
m4_define([_LT_COPYING], [dnl
 
894
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
895
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
896
#   Written by Gordon Matzigkeit, 1996
 
897
#
 
898
#   This file is part of GNU Libtool.
 
899
#
 
900
# GNU Libtool is free software; you can redistribute it and/or
 
901
# modify it under the terms of the GNU General Public License as
 
902
# published by the Free Software Foundation; either version 2 of
 
903
# the License, or (at your option) any later version.
 
904
#
 
905
# As a special exception to the GNU General Public License,
 
906
# if you distribute this file as part of a program or library that
 
907
# is built using GNU Libtool, you may include this file under the
 
908
# same distribution terms that you use for the rest of that program.
 
909
#
 
910
# GNU Libtool is distributed in the hope that it will be useful,
 
911
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
912
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
913
# GNU General Public License for more details.
 
914
#
 
915
# You should have received a copy of the GNU General Public License
 
916
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
917
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
918
# obtained by writing to the Free Software Foundation, Inc.,
 
919
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
920
])
 
921
 
 
922
# serial 56 LT_INIT
 
923
 
 
924
 
 
925
# LT_PREREQ(VERSION)
 
926
# ------------------
 
927
# Complain and exit if this libtool version is less that VERSION.
 
928
m4_defun([LT_PREREQ],
 
929
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
930
       [m4_default([$3],
 
931
                   [m4_fatal([Libtool version $1 or higher is required],
 
932
                             63)])],
 
933
       [$2])])
 
934
 
 
935
 
 
936
# _LT_CHECK_BUILDDIR
 
937
# ------------------
 
938
# Complain if the absolute build directory name contains unusual characters
 
939
m4_defun([_LT_CHECK_BUILDDIR],
 
940
[case `pwd` in
 
941
  *\ * | *\     *)
 
942
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
943
esac
 
944
])
 
945
 
 
946
 
 
947
# LT_INIT([OPTIONS])
 
948
# ------------------
 
949
AC_DEFUN([LT_INIT],
 
950
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
951
AC_BEFORE([$0], [LT_LANG])dnl
 
952
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
953
AC_BEFORE([$0], [LTDL_INIT])dnl
 
954
m4_require([_LT_CHECK_BUILDDIR])dnl
 
955
 
 
956
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
957
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
958
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
959
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
960
dnl unless we require an AC_DEFUNed macro:
 
961
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
962
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
963
AC_REQUIRE([LTVERSION_VERSION])dnl
 
964
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
965
m4_require([_LT_PROG_LTMAIN])dnl
 
966
 
 
967
dnl Parse OPTIONS
 
968
_LT_SET_OPTIONS([$0], [$1])
1800
969
 
1801
970
# This can be used to rebuild libtool when needed
1802
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
971
LIBTOOL_DEPS="$ltmain"
1803
972
 
1804
973
# Always use our own libtool.
1805
974
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1806
975
AC_SUBST(LIBTOOL)dnl
1807
976
 
1808
 
# Prevent multiple expansion
1809
 
define([AC_PROG_LIBTOOL], [])
1810
 
])# _AC_PROG_LIBTOOL
1811
 
 
1812
 
 
1813
 
# AC_LIBTOOL_SETUP
1814
 
# ----------------
1815
 
AC_DEFUN([AC_LIBTOOL_SETUP],
1816
 
[AC_PREREQ(2.50)dnl
1817
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1818
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1819
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1820
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
977
_LT_SETUP
 
978
 
 
979
# Only expand once:
 
980
m4_define([LT_INIT])
 
981
])# LT_INIT
 
982
 
 
983
# Old names:
 
984
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
985
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
986
dnl aclocal-1.4 backwards compatibility:
 
987
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
988
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
989
 
 
990
 
 
991
# _LT_CC_BASENAME(CC)
 
992
# -------------------
 
993
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
994
m4_defun([_LT_CC_BASENAME],
 
995
[for cc_temp in $1""; do
 
996
  case $cc_temp in
 
997
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
998
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
999
    \-*) ;;
 
1000
    *) break;;
 
1001
  esac
 
1002
done
 
1003
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1004
])
 
1005
 
 
1006
 
 
1007
# _LT_FILEUTILS_DEFAULTS
 
1008
# ----------------------
 
1009
# It is okay to use these file commands and assume they have been set
 
1010
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1011
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1012
[: ${CP="cp -f"}
 
1013
: ${MV="mv -f"}
 
1014
: ${RM="rm -f"}
 
1015
])# _LT_FILEUTILS_DEFAULTS
 
1016
 
 
1017
 
 
1018
# _LT_SETUP
 
1019
# ---------
 
1020
m4_defun([_LT_SETUP],
 
1021
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1821
1022
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1023
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1024
_LT_DECL([], [host], [0])dnl
 
1025
_LT_DECL([], [host_os], [0])dnl
 
1026
dnl
 
1027
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1028
_LT_DECL([], [build], [0])dnl
 
1029
_LT_DECL([], [build_os], [0])dnl
 
1030
dnl
1822
1031
AC_REQUIRE([AC_PROG_CC])dnl
1823
 
AC_REQUIRE([AC_PROG_LD])dnl
1824
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1825
 
AC_REQUIRE([AC_PROG_NM])dnl
1826
 
 
 
1032
AC_REQUIRE([LT_PATH_LD])dnl
 
1033
AC_REQUIRE([LT_PATH_NM])dnl
 
1034
dnl
1827
1035
AC_REQUIRE([AC_PROG_LN_S])dnl
1828
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1829
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1830
 
AC_REQUIRE([AC_OBJEXT])dnl
1831
 
AC_REQUIRE([AC_EXEEXT])dnl
1832
 
dnl
1833
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
1834
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1835
 
AC_LIBTOOL_OBJDIR
1836
 
 
1837
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1838
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1036
test -z "$LN_S" && LN_S="ln -s"
 
1037
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1038
dnl
 
1039
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1040
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1041
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1042
dnl
 
1043
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1044
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1045
m4_require([_LT_CMD_RELOAD])dnl
 
1046
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1047
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1048
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1049
 
 
1050
_LT_CONFIG_LIBTOOL_INIT([
 
1051
# See if we are running on zsh, and set the options which allow our
 
1052
# commands through without removal of \ escapes INIT.
 
1053
if test -n "\${ZSH_VERSION+set}" ; then
 
1054
   setopt NO_GLOB_SUBST
 
1055
fi
 
1056
])
 
1057
if test -n "${ZSH_VERSION+set}" ; then
 
1058
   setopt NO_GLOB_SUBST
 
1059
fi
 
1060
 
 
1061
_LT_CHECK_OBJDIR
 
1062
 
 
1063
m4_require([_LT_TAG_COMPILER])dnl
 
1064
_LT_PROG_ECHO_BACKSLASH
1839
1065
 
1840
1066
case $host_os in
1841
1067
aix3*)
1851
1077
 
1852
1078
# Sed substitution that helps us do robust quoting.  It backslashifies
1853
1079
# metacharacters that are still active within double-quoted strings.
1854
 
Xsed='sed -e 1s/^X//'
1855
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1080
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1856
1081
 
1857
1082
# Same as above, but do not quote variable references.
1858
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1083
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1859
1084
 
1860
1085
# Sed substitution to delay expansion of an escaped shell variable in a
1861
1086
# double_quote_subst'ed string.
1862
1087
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1863
1088
 
 
1089
# Sed substitution to delay expansion of an escaped single quote.
 
1090
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1091
 
1864
1092
# Sed substitution to avoid accidental globbing in evaled expressions
1865
1093
no_glob_subst='s/\*/\\\*/g'
1866
1094
 
1867
 
# Constants:
1868
 
rm="rm -f"
1869
 
 
1870
1095
# Global variables:
1871
 
default_ofile=libtool
 
1096
ofile=libtool
1872
1097
can_build_shared=yes
1873
1098
 
1874
1099
# All known linkers require a `.a' archive for static linking (except MSVC,
1875
1100
# which needs '.lib').
1876
1101
libext=a
1877
 
ltmain="$ac_aux_dir/ltmain.sh"
1878
 
ofile="$default_ofile"
 
1102
 
1879
1103
with_gnu_ld="$lt_cv_prog_gnu_ld"
1880
1104
 
1881
 
AC_CHECK_TOOL(AR, ar, false)
1882
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1883
 
AC_CHECK_TOOL(STRIP, strip, :)
1884
 
 
1885
1105
old_CC="$CC"
1886
1106
old_CFLAGS="$CFLAGS"
1887
1107
 
1888
1108
# Set sane defaults for various variables
1889
 
test -z "$AR" && AR=ar
1890
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1891
 
test -z "$AS" && AS=as
1892
1109
test -z "$CC" && CC=cc
1893
1110
test -z "$LTCC" && LTCC=$CC
1894
1111
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1895
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1896
1112
test -z "$LD" && LD=ld
1897
 
test -z "$LN_S" && LN_S="ln -s"
1898
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1899
 
test -z "$NM" && NM=nm
1900
 
test -z "$SED" && SED=sed
1901
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1902
 
test -z "$RANLIB" && RANLIB=:
1903
 
test -z "$STRIP" && STRIP=:
1904
1113
test -z "$ac_objext" && ac_objext=o
1905
1114
 
1906
 
# Determine commands to create old-style static archives.
1907
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1908
 
old_postinstall_cmds='chmod 644 $oldlib'
1909
 
old_postuninstall_cmds=
1910
 
 
1911
 
if test -n "$RANLIB"; then
1912
 
  case $host_os in
1913
 
  openbsd*)
1914
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1915
 
    ;;
1916
 
  *)
1917
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1918
 
    ;;
1919
 
  esac
1920
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1921
 
fi
1922
 
 
1923
1115
_LT_CC_BASENAME([$compiler])
1924
1116
 
1925
1117
# Only perform the check for file, if the check method requires it
 
1118
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1926
1119
case $deplibs_check_method in
1927
1120
file_magic*)
1928
1121
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1929
 
    AC_PATH_MAGIC
 
1122
    _LT_PATH_MAGIC
1930
1123
  fi
1931
1124
  ;;
1932
1125
esac
1933
1126
 
1934
 
_LT_REQUIRED_DARWIN_CHECKS
1935
 
 
1936
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1937
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1938
 
enable_win32_dll=yes, enable_win32_dll=no)
1939
 
 
1940
 
AC_ARG_ENABLE([libtool-lock],
1941
 
    [AC_HELP_STRING([--disable-libtool-lock],
1942
 
        [avoid locking (might break parallel builds)])])
1943
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1944
 
 
1945
 
AC_ARG_WITH([pic],
1946
 
    [AC_HELP_STRING([--with-pic],
1947
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1948
 
    [pic_mode="$withval"],
1949
 
    [pic_mode=default])
1950
 
test -z "$pic_mode" && pic_mode=default
1951
 
 
1952
1127
# Use C for the default configuration in the libtool script
1953
 
tagname=
1954
 
AC_LIBTOOL_LANG_C_CONFIG
1955
 
_LT_AC_TAGCONFIG
1956
 
])# AC_LIBTOOL_SETUP
1957
 
 
1958
 
 
1959
 
# _LT_AC_SYS_COMPILER
 
1128
LT_SUPPORTED_TAG([CC])
 
1129
_LT_LANG_C_CONFIG
 
1130
_LT_LANG_DEFAULT_CONFIG
 
1131
_LT_CONFIG_COMMANDS
 
1132
])# _LT_SETUP
 
1133
 
 
1134
 
 
1135
# _LT_PROG_LTMAIN
 
1136
# ---------------
 
1137
# Note that this code is called both from `configure', and `config.status'
 
1138
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1139
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1140
# so we pass a copy along to make sure it has a sensible value anyway.
 
1141
m4_defun([_LT_PROG_LTMAIN],
 
1142
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1143
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1144
ltmain="$ac_aux_dir/ltmain.sh"
 
1145
])# _LT_PROG_LTMAIN
 
1146
 
 
1147
 
 
1148
 
 
1149
# So that we can recreate a full libtool script including additional
 
1150
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1151
# in macros and then make a single call at the end using the `libtool'
 
1152
# label.
 
1153
 
 
1154
 
 
1155
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1156
# ----------------------------------------
 
1157
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1158
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1159
[m4_ifval([$1],
 
1160
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1161
                     [$1
 
1162
])])])
 
1163
 
 
1164
# Initialize.
 
1165
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1166
 
 
1167
 
 
1168
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1169
# ------------------------------
 
1170
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1171
m4_define([_LT_CONFIG_LIBTOOL],
 
1172
[m4_ifval([$1],
 
1173
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1174
                     [$1
 
1175
])])])
 
1176
 
 
1177
# Initialize.
 
1178
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1179
 
 
1180
 
 
1181
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1182
# -----------------------------------------------------
 
1183
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1184
[_LT_CONFIG_LIBTOOL([$1])
 
1185
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1186
])
 
1187
 
 
1188
 
 
1189
# _LT_FORMAT_COMMENT([COMMENT])
 
1190
# -----------------------------
 
1191
# Add leading comment marks to the start of each line, and a trailing
 
1192
# full-stop to the whole comment if one is not present already.
 
1193
m4_define([_LT_FORMAT_COMMENT],
 
1194
[m4_ifval([$1], [
 
1195
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1196
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1197
)])
 
1198
 
 
1199
 
 
1200
 
 
1201
 
 
1202
 
 
1203
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1204
# -------------------------------------------------------------------
 
1205
# CONFIGNAME is the name given to the value in the libtool script.
 
1206
# VARNAME is the (base) name used in the configure script.
 
1207
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1208
# VARNAME.  Any other value will be used directly.
 
1209
m4_define([_LT_DECL],
 
1210
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1211
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1212
        [m4_ifval([$1], [$1], [$2])])
 
1213
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1214
    m4_ifval([$4],
 
1215
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1216
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1217
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1218
])
 
1219
 
 
1220
 
 
1221
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1222
# --------------------------------------------------------
 
1223
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1224
 
 
1225
 
 
1226
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1227
# ------------------------------------------------
 
1228
m4_define([lt_decl_tag_varnames],
 
1229
[_lt_decl_filter([tagged?], [yes], $@)])
 
1230
 
 
1231
 
 
1232
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1233
# ---------------------------------------------------------
 
1234
m4_define([_lt_decl_filter],
 
1235
[m4_case([$#],
 
1236
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1237
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1238
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1239
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1240
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1241
])
 
1242
 
 
1243
 
 
1244
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1245
# --------------------------------------------------
 
1246
m4_define([lt_decl_quote_varnames],
 
1247
[_lt_decl_filter([value], [1], $@)])
 
1248
 
 
1249
 
 
1250
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1251
# ---------------------------------------------------
 
1252
m4_define([lt_decl_dquote_varnames],
 
1253
[_lt_decl_filter([value], [2], $@)])
 
1254
 
 
1255
 
 
1256
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1257
# ---------------------------------------------------
 
1258
m4_define([lt_decl_varnames_tagged],
 
1259
[m4_assert([$# <= 2])dnl
 
1260
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1261
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1262
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1263
m4_define([_lt_decl_varnames_tagged],
 
1264
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1265
 
 
1266
 
 
1267
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1268
# ------------------------------------------------
 
1269
m4_define([lt_decl_all_varnames],
 
1270
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1271
     m4_if([$2], [],
 
1272
           m4_quote(lt_decl_varnames),
 
1273
        m4_quote(m4_shift($@))))[]dnl
 
1274
])
 
1275
m4_define([_lt_decl_all_varnames],
 
1276
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1277
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1278
])
 
1279
 
 
1280
 
 
1281
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1282
# ------------------------------------
 
1283
# Quote a variable value, and forward it to `config.status' so that its
 
1284
# declaration there will have the same value as in `configure'.  VARNAME
 
1285
# must have a single quote delimited value for this to work.
 
1286
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1287
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1288
 
 
1289
 
 
1290
# _LT_CONFIG_STATUS_DECLARATIONS
 
1291
# ------------------------------
 
1292
# We delimit libtool config variables with single quotes, so when
 
1293
# we write them to config.status, we have to be sure to quote all
 
1294
# embedded single quotes properly.  In configure, this macro expands
 
1295
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1296
#
 
1297
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1298
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1299
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1300
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1301
 
 
1302
 
 
1303
# _LT_LIBTOOL_TAGS
 
1304
# ----------------
 
1305
# Output comment and list of tags supported by the script
 
1306
m4_defun([_LT_LIBTOOL_TAGS],
 
1307
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1308
available_tags="_LT_TAGS"dnl
 
1309
])
 
1310
 
 
1311
 
 
1312
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1313
# -----------------------------------
 
1314
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1315
# expand to a commented shell variable setting:
 
1316
#
 
1317
#    # Some comment about what VAR is for.
 
1318
#    visible_name=$lt_internal_name
 
1319
m4_define([_LT_LIBTOOL_DECLARE],
 
1320
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1321
                                           [description])))[]dnl
 
1322
m4_pushdef([_libtool_name],
 
1323
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1324
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1325
    [0], [_libtool_name=[$]$1],
 
1326
    [1], [_libtool_name=$lt_[]$1],
 
1327
    [2], [_libtool_name=$lt_[]$1],
 
1328
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1329
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1330
])
 
1331
 
 
1332
 
 
1333
# _LT_LIBTOOL_CONFIG_VARS
 
1334
# -----------------------
 
1335
# Produce commented declarations of non-tagged libtool config variables
 
1336
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1337
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1338
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1339
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1340
[m4_foreach([_lt_var],
 
1341
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1342
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1343
 
 
1344
 
 
1345
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1346
# -------------------------
 
1347
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1348
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1349
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1350
 
 
1351
 
 
1352
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1353
# ------------------------------
 
1354
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1355
 
 
1356
 
 
1357
# _LT_CONFIG_COMMANDS
1960
1358
# -------------------
1961
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1359
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1360
# variables for single and double quote escaping we saved from calls
 
1361
# to _LT_DECL, we can put quote escaped variables declarations
 
1362
# into `config.status', and then the shell code to quote escape them in
 
1363
# for loops in `config.status'.  Finally, any additional code accumulated
 
1364
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1365
m4_defun([_LT_CONFIG_COMMANDS],
 
1366
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1367
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1368
        dnl instead of duplicating it all over again into config.status,
 
1369
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1370
        dnl needs to know what name is stored there:
 
1371
        [AC_CONFIG_COMMANDS([libtool],
 
1372
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1373
    dnl If the libtool generation code is destined for config.status,
 
1374
    dnl expand the accumulated commands and init code now:
 
1375
    [AC_CONFIG_COMMANDS([libtool],
 
1376
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1377
])#_LT_CONFIG_COMMANDS
 
1378
 
 
1379
 
 
1380
# Initialize.
 
1381
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1382
[
 
1383
 
 
1384
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1385
# if CDPATH is set.
 
1386
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1387
 
 
1388
sed_quote_subst='$sed_quote_subst'
 
1389
double_quote_subst='$double_quote_subst'
 
1390
delay_variable_subst='$delay_variable_subst'
 
1391
_LT_CONFIG_STATUS_DECLARATIONS
 
1392
LTCC='$LTCC'
 
1393
LTCFLAGS='$LTCFLAGS'
 
1394
compiler='$compiler_DEFAULT'
 
1395
 
 
1396
# Quote evaled strings.
 
1397
for var in lt_decl_all_varnames([[ \
 
1398
]], lt_decl_quote_varnames); do
 
1399
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1400
    *[[\\\\\\\`\\"\\\$]]*)
 
1401
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1402
      ;;
 
1403
    *)
 
1404
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1405
      ;;
 
1406
    esac
 
1407
done
 
1408
 
 
1409
# Double-quote double-evaled strings.
 
1410
for var in lt_decl_all_varnames([[ \
 
1411
]], lt_decl_dquote_varnames); do
 
1412
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1413
    *[[\\\\\\\`\\"\\\$]]*)
 
1414
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1415
      ;;
 
1416
    *)
 
1417
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1418
      ;;
 
1419
    esac
 
1420
done
 
1421
 
 
1422
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1423
case \$lt_ECHO in
 
1424
*'\\\[$]0 --fallback-echo"')dnl "
 
1425
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1426
  ;;
 
1427
esac
 
1428
 
 
1429
_LT_OUTPUT_LIBTOOL_INIT
 
1430
])
 
1431
 
 
1432
 
 
1433
# LT_OUTPUT
 
1434
# ---------
 
1435
# This macro allows early generation of the libtool script (before
 
1436
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1437
# tests.
 
1438
AC_DEFUN([LT_OUTPUT],
 
1439
[: ${CONFIG_LT=./config.lt}
 
1440
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1441
cat >"$CONFIG_LT" <<_LTEOF
 
1442
#! $SHELL
 
1443
# Generated by $as_me.
 
1444
# Run this file to recreate a libtool stub with the current configuration.
 
1445
 
 
1446
lt_cl_silent=false
 
1447
SHELL=\${CONFIG_SHELL-$SHELL}
 
1448
_LTEOF
 
1449
 
 
1450
cat >>"$CONFIG_LT" <<\_LTEOF
 
1451
AS_SHELL_SANITIZE
 
1452
_AS_PREPARE
 
1453
 
 
1454
exec AS_MESSAGE_FD>&1
 
1455
exec AS_MESSAGE_LOG_FD>>config.log
 
1456
{
 
1457
  echo
 
1458
  AS_BOX([Running $as_me.])
 
1459
} >&AS_MESSAGE_LOG_FD
 
1460
 
 
1461
lt_cl_help="\
 
1462
\`$as_me' creates a local libtool stub from the current configuration,
 
1463
for use in further configure time tests before the real libtool is
 
1464
generated.
 
1465
 
 
1466
Usage: $[0] [[OPTIONS]]
 
1467
 
 
1468
  -h, --help      print this help, then exit
 
1469
  -V, --version   print version number, then exit
 
1470
  -q, --quiet     do not print progress messages
 
1471
  -d, --debug     don't remove temporary files
 
1472
 
 
1473
Report bugs to <bug-libtool@gnu.org>."
 
1474
 
 
1475
lt_cl_version="\
 
1476
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1477
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1478
configured by $[0], generated by m4_PACKAGE_STRING.
 
1479
 
 
1480
Copyright (C) 2008 Free Software Foundation, Inc.
 
1481
This config.lt script is free software; the Free Software Foundation
 
1482
gives unlimited permision to copy, distribute and modify it."
 
1483
 
 
1484
while test $[#] != 0
 
1485
do
 
1486
  case $[1] in
 
1487
    --version | --v* | -V )
 
1488
      echo "$lt_cl_version"; exit 0 ;;
 
1489
    --help | --h* | -h )
 
1490
      echo "$lt_cl_help"; exit 0 ;;
 
1491
    --debug | --d* | -d )
 
1492
      debug=: ;;
 
1493
    --quiet | --q* | --silent | --s* | -q )
 
1494
      lt_cl_silent=: ;;
 
1495
 
 
1496
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1497
Try \`$[0] --help' for more information.]) ;;
 
1498
 
 
1499
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1500
Try \`$[0] --help' for more information.]) ;;
 
1501
  esac
 
1502
  shift
 
1503
done
 
1504
 
 
1505
if $lt_cl_silent; then
 
1506
  exec AS_MESSAGE_FD>/dev/null
 
1507
fi
 
1508
_LTEOF
 
1509
 
 
1510
cat >>"$CONFIG_LT" <<_LTEOF
 
1511
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1512
_LTEOF
 
1513
 
 
1514
cat >>"$CONFIG_LT" <<\_LTEOF
 
1515
AC_MSG_NOTICE([creating $ofile])
 
1516
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1517
AS_EXIT(0)
 
1518
_LTEOF
 
1519
chmod +x "$CONFIG_LT"
 
1520
 
 
1521
# configure is writing to config.log, but config.lt does its own redirection,
 
1522
# appending to config.log, which fails on DOS, as config.log is still kept
 
1523
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1524
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1525
if test "$no_create" != yes; then
 
1526
  lt_cl_success=:
 
1527
  test "$silent" = yes &&
 
1528
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1529
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1530
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1531
  exec AS_MESSAGE_LOG_FD>>config.log
 
1532
  $lt_cl_success || AS_EXIT(1)
 
1533
fi
 
1534
])# LT_OUTPUT
 
1535
 
 
1536
 
 
1537
# _LT_CONFIG(TAG)
 
1538
# ---------------
 
1539
# If TAG is the built-in tag, create an initial libtool script with a
 
1540
# default configuration from the untagged config vars.  Otherwise add code
 
1541
# to config.status for appending the configuration named by TAG from the
 
1542
# matching tagged config vars.
 
1543
m4_defun([_LT_CONFIG],
 
1544
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1545
_LT_CONFIG_SAVE_COMMANDS([
 
1546
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1547
  m4_if(_LT_TAG, [C], [
 
1548
    # See if we are running on zsh, and set the options which allow our
 
1549
    # commands through without removal of \ escapes.
 
1550
    if test -n "${ZSH_VERSION+set}" ; then
 
1551
      setopt NO_GLOB_SUBST
 
1552
    fi
 
1553
 
 
1554
    cfgfile="${ofile}T"
 
1555
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1556
    $RM "$cfgfile"
 
1557
 
 
1558
    cat <<_LT_EOF >> "$cfgfile"
 
1559
#! $SHELL
 
1560
 
 
1561
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1562
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1563
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1564
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1565
#
 
1566
_LT_COPYING
 
1567
_LT_LIBTOOL_TAGS
 
1568
 
 
1569
# ### BEGIN LIBTOOL CONFIG
 
1570
_LT_LIBTOOL_CONFIG_VARS
 
1571
_LT_LIBTOOL_TAG_VARS
 
1572
# ### END LIBTOOL CONFIG
 
1573
 
 
1574
_LT_EOF
 
1575
 
 
1576
  case $host_os in
 
1577
  aix3*)
 
1578
    cat <<\_LT_EOF >> "$cfgfile"
 
1579
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1580
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1581
# vanish in a puff of smoke.
 
1582
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1583
  COLLECT_NAMES=
 
1584
  export COLLECT_NAMES
 
1585
fi
 
1586
_LT_EOF
 
1587
    ;;
 
1588
  esac
 
1589
 
 
1590
  _LT_PROG_LTMAIN
 
1591
 
 
1592
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1593
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1594
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1595
  # is reportedly fixed, but why not run on old versions too?
 
1596
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1597
    || (rm -f "$cfgfile"; exit 1)
 
1598
 
 
1599
  _LT_PROG_XSI_SHELLFNS
 
1600
 
 
1601
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1602
    || (rm -f "$cfgfile"; exit 1)
 
1603
 
 
1604
  mv -f "$cfgfile" "$ofile" ||
 
1605
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1606
  chmod +x "$ofile"
 
1607
],
 
1608
[cat <<_LT_EOF >> "$ofile"
 
1609
 
 
1610
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1611
dnl in a comment (ie after a #).
 
1612
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1613
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1614
# ### END LIBTOOL TAG CONFIG: $1
 
1615
_LT_EOF
 
1616
])dnl /m4_if
 
1617
],
 
1618
[m4_if([$1], [], [
 
1619
    PACKAGE='$PACKAGE'
 
1620
    VERSION='$VERSION'
 
1621
    TIMESTAMP='$TIMESTAMP'
 
1622
    RM='$RM'
 
1623
    ofile='$ofile'], [])
 
1624
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1625
])# _LT_CONFIG
 
1626
 
 
1627
 
 
1628
# LT_SUPPORTED_TAG(TAG)
 
1629
# ---------------------
 
1630
# Trace this macro to discover what tags are supported by the libtool
 
1631
# --tag option, using:
 
1632
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1633
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1634
 
 
1635
 
 
1636
# C support is built-in for now
 
1637
m4_define([_LT_LANG_C_enabled], [])
 
1638
m4_define([_LT_TAGS], [])
 
1639
 
 
1640
 
 
1641
# LT_LANG(LANG)
 
1642
# -------------
 
1643
# Enable libtool support for the given language if not already enabled.
 
1644
AC_DEFUN([LT_LANG],
 
1645
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1646
m4_case([$1],
 
1647
  [C],                  [_LT_LANG(C)],
 
1648
  [C++],                [_LT_LANG(CXX)],
 
1649
  [Java],               [_LT_LANG(GCJ)],
 
1650
  [Fortran 77],         [_LT_LANG(F77)],
 
1651
  [Fortran],            [_LT_LANG(FC)],
 
1652
  [Windows Resource],   [_LT_LANG(RC)],
 
1653
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1654
    [_LT_LANG($1)],
 
1655
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1656
])# LT_LANG
 
1657
 
 
1658
 
 
1659
# _LT_LANG(LANGNAME)
 
1660
# ------------------
 
1661
m4_defun([_LT_LANG],
 
1662
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1663
  [LT_SUPPORTED_TAG([$1])dnl
 
1664
  m4_append([_LT_TAGS], [$1 ])dnl
 
1665
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1666
  _LT_LANG_$1_CONFIG($1)])dnl
 
1667
])# _LT_LANG
 
1668
 
 
1669
 
 
1670
# _LT_LANG_DEFAULT_CONFIG
 
1671
# -----------------------
 
1672
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1673
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1674
  [LT_LANG(CXX)],
 
1675
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1676
 
 
1677
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1678
  [LT_LANG(F77)],
 
1679
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1680
 
 
1681
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1682
  [LT_LANG(FC)],
 
1683
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1684
 
 
1685
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1686
dnl pulling things in needlessly.
 
1687
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1688
  [LT_LANG(GCJ)],
 
1689
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1690
    [LT_LANG(GCJ)],
 
1691
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1692
      [LT_LANG(GCJ)],
 
1693
      [m4_ifdef([AC_PROG_GCJ],
 
1694
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1695
       m4_ifdef([A][M_PROG_GCJ],
 
1696
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1697
       m4_ifdef([LT_PROG_GCJ],
 
1698
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1699
 
 
1700
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1701
  [LT_LANG(RC)],
 
1702
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1703
])# _LT_LANG_DEFAULT_CONFIG
 
1704
 
 
1705
# Obsolete macros:
 
1706
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1707
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1708
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1709
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1710
dnl aclocal-1.4 backwards compatibility:
 
1711
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1712
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1713
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1714
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1715
 
 
1716
 
 
1717
# _LT_TAG_COMPILER
 
1718
# ----------------
 
1719
m4_defun([_LT_TAG_COMPILER],
1962
1720
[AC_REQUIRE([AC_PROG_CC])dnl
1963
1721
 
 
1722
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1723
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1724
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1725
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1726
 
1964
1727
# If no C compiler was specified, use CC.
1965
1728
LTCC=${LTCC-"$CC"}
1966
1729
 
1969
1732
 
1970
1733
# Allow CC to be a program name with arguments.
1971
1734
compiler=$CC
1972
 
])# _LT_AC_SYS_COMPILER
1973
 
 
1974
 
 
1975
 
# _LT_CC_BASENAME(CC)
1976
 
# -------------------
1977
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1978
 
AC_DEFUN([_LT_CC_BASENAME],
1979
 
[for cc_temp in $1""; do
1980
 
  case $cc_temp in
1981
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1982
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1983
 
    \-*) ;;
1984
 
    *) break;;
1985
 
  esac
1986
 
done
1987
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1988
 
])
 
1735
])# _LT_TAG_COMPILER
1989
1736
 
1990
1737
 
1991
1738
# _LT_COMPILER_BOILERPLATE
1992
1739
# ------------------------
1993
1740
# Check for compiler boilerplate output or warnings with
1994
1741
# the simple compiler test code.
1995
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1996
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1742
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1743
[m4_require([_LT_DECL_SED])dnl
1997
1744
ac_outfile=conftest.$ac_objext
1998
1745
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1999
1746
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2000
1747
_lt_compiler_boilerplate=`cat conftest.err`
2001
 
$rm conftest*
 
1748
$RM conftest*
2002
1749
])# _LT_COMPILER_BOILERPLATE
2003
1750
 
2004
1751
 
2006
1753
# ----------------------
2007
1754
# Check for linker boilerplate output or warnings with
2008
1755
# the simple link test code.
2009
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
2010
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1756
m4_defun([_LT_LINKER_BOILERPLATE],
 
1757
[m4_require([_LT_DECL_SED])dnl
2011
1758
ac_outfile=conftest.$ac_objext
2012
1759
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2013
1760
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2014
1761
_lt_linker_boilerplate=`cat conftest.err`
2015
 
$rm -r conftest*
 
1762
$RM -r conftest*
2016
1763
])# _LT_LINKER_BOILERPLATE
2017
1764
 
2018
1765
# _LT_REQUIRED_DARWIN_CHECKS
2019
 
# --------------------------
2020
 
# Check for some things on darwin
2021
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1766
# -------------------------
 
1767
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2022
1768
  case $host_os in
2023
1769
    rhapsody* | darwin*)
2024
1770
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2025
1771
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1772
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1773
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1774
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1775
    _LT_DECL([], [DSYMUTIL], [1],
 
1776
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1777
    _LT_DECL([], [NMEDIT], [1],
 
1778
      [Tool to change global to local symbols on Mac OS X])
 
1779
    _LT_DECL([], [LIPO], [1],
 
1780
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1781
    _LT_DECL([], [OTOOL], [1],
 
1782
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1783
    _LT_DECL([], [OTOOL64], [1],
 
1784
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2026
1785
 
2027
1786
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2028
1787
      [lt_cv_apple_cc_single_mod=no
2029
1788
      if test -z "${LT_MULTI_MODULE}"; then
2030
 
   # By default we will add the -single_module flag. You can override
2031
 
   # by either setting the environment variable LT_MULTI_MODULE
2032
 
   # non-empty at configure time, or by adding -multi_module to the
2033
 
   # link flags.
2034
 
   echo "int foo(void){return 1;}" > conftest.c
2035
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2036
 
     -dynamiclib ${wl}-single_module conftest.c
2037
 
   if test -f libconftest.dylib; then
2038
 
     lt_cv_apple_cc_single_mod=yes
2039
 
     rm -rf libconftest.dylib*
2040
 
   fi
2041
 
   rm conftest.c
 
1789
        # By default we will add the -single_module flag. You can override
 
1790
        # by either setting the environment variable LT_MULTI_MODULE
 
1791
        # non-empty at configure time, or by adding -multi_module to the
 
1792
        # link flags.
 
1793
        rm -rf libconftest.dylib*
 
1794
        echo "int foo(void){return 1;}" > conftest.c
 
1795
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1796
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1797
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1798
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1799
        _lt_result=$?
 
1800
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1801
          lt_cv_apple_cc_single_mod=yes
 
1802
        else
 
1803
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1804
        fi
 
1805
        rm -rf libconftest.dylib*
 
1806
        rm -f conftest.*
2042
1807
      fi])
2043
1808
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2044
1809
      [lt_cv_ld_exported_symbols_list],
2047
1812
      echo "_main" > conftest.sym
2048
1813
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2049
1814
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2050
 
   [lt_cv_ld_exported_symbols_list=yes],
2051
 
   [lt_cv_ld_exported_symbols_list=no])
2052
 
   LDFLAGS="$save_LDFLAGS"
 
1815
        [lt_cv_ld_exported_symbols_list=yes],
 
1816
        [lt_cv_ld_exported_symbols_list=no])
 
1817
        LDFLAGS="$save_LDFLAGS"
2053
1818
    ])
2054
1819
    case $host_os in
2055
 
    rhapsody* | darwin1.[[0123]])
 
1820
    rhapsody* | darwin1.[[012]])
2056
1821
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2057
1822
    darwin1.*)
2058
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2059
 
    darwin*)
 
1823
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1824
    darwin*) # darwin 5.x on
2060
1825
      # if running on 10.5 or later, the deployment target defaults
2061
1826
      # to the OS version, if on x86, and 10.4, the deployment
2062
1827
      # target defaults to 10.4. Don't you love it?
2063
1828
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2064
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2065
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2066
 
   10.[[012]]*)
2067
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2068
 
   10.*)
2069
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1829
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1830
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1831
        10.[[012]]*)
 
1832
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1833
        10.*)
 
1834
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2070
1835
      esac
2071
1836
    ;;
2072
1837
  esac
2076
1841
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2077
1842
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2078
1843
    else
2079
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1844
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2080
1845
    fi
2081
1846
    if test "$DSYMUTIL" != ":"; then
2082
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1847
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2083
1848
    else
2084
1849
      _lt_dsymutil=
2085
1850
    fi
2087
1852
  esac
2088
1853
])
2089
1854
 
2090
 
# _LT_AC_SYS_LIBPATH_AIX
2091
 
# ----------------------
 
1855
 
 
1856
# _LT_DARWIN_LINKER_FEATURES
 
1857
# --------------------------
 
1858
# Checks for linker and compiler features on darwin
 
1859
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1860
[
 
1861
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1862
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1863
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1864
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1865
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1866
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1867
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1868
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1869
  case $cc_basename in
 
1870
     ifort*) _lt_dar_can_shared=yes ;;
 
1871
     *) _lt_dar_can_shared=$GCC ;;
 
1872
  esac
 
1873
  if test "$_lt_dar_can_shared" = "yes"; then
 
1874
    output_verbose_link_cmd=echo
 
1875
    _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}"
 
1876
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1877
    _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}"
 
1878
    _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}"
 
1879
    m4_if([$1], [CXX],
 
1880
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1881
      _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}"
 
1882
      _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}"
 
1883
    fi
 
1884
],[])
 
1885
  else
 
1886
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1887
  fi
 
1888
])
 
1889
 
 
1890
# _LT_SYS_MODULE_PATH_AIX
 
1891
# -----------------------
2092
1892
# Links a minimal program and checks the executable
2093
1893
# for the system default hardcoded library path. In most cases,
2094
1894
# this is /usr/lib:/lib, but when the MPI compilers are used
2095
1895
# the location of the communication and MPI libs are included too.
2096
1896
# If we don't find anything, use the default library path according
2097
1897
# to the aix ld manual.
2098
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2099
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1898
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1899
[m4_require([_LT_DECL_SED])dnl
2100
1900
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2101
1901
lt_aix_libpath_sed='
2102
1902
    /Import File Strings/,/^$/ {
2111
1911
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2112
1912
fi],[])
2113
1913
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2114
 
])# _LT_AC_SYS_LIBPATH_AIX
2115
 
 
2116
 
 
2117
 
# _LT_AC_SHELL_INIT(ARG)
2118
 
# ----------------------
2119
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1914
])# _LT_SYS_MODULE_PATH_AIX
 
1915
 
 
1916
 
 
1917
# _LT_SHELL_INIT(ARG)
 
1918
# -------------------
 
1919
m4_define([_LT_SHELL_INIT],
2120
1920
[ifdef([AC_DIVERSION_NOTICE],
2121
1921
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2122
1922
         [AC_DIVERT_PUSH(NOTICE)])
2123
1923
$1
2124
1924
AC_DIVERT_POP
2125
 
])# _LT_AC_SHELL_INIT
2126
 
 
2127
 
 
2128
 
# _LT_AC_PROG_ECHO_BACKSLASH
2129
 
# --------------------------
 
1925
])# _LT_SHELL_INIT
 
1926
 
 
1927
 
 
1928
# _LT_PROG_ECHO_BACKSLASH
 
1929
# -----------------------
2130
1930
# Add some code to the start of the generated configure script which
2131
1931
# will find an echo command which doesn't interpret backslashes.
2132
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2133
 
[_LT_AC_SHELL_INIT([
 
1932
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1933
[_LT_SHELL_INIT([
2134
1934
# Check that we are running under the correct shell.
2135
1935
SHELL=${CONFIG_SHELL-/bin/sh}
2136
1936
 
2137
 
case X$ECHO in
 
1937
case X$lt_ECHO in
2138
1938
X*--fallback-echo)
2139
1939
  # Remove one level of quotation (which was required for Make).
2140
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1940
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2141
1941
  ;;
2142
1942
esac
2143
1943
 
2144
 
echo=${ECHO-echo}
 
1944
ECHO=${lt_ECHO-echo}
2145
1945
if test "X[$]1" = X--no-reexec; then
2146
1946
  # Discard the --no-reexec flag, and continue.
2147
1947
  shift
2148
1948
elif test "X[$]1" = X--fallback-echo; then
2149
1949
  # Avoid inline document here, it may be left over
2150
1950
  :
2151
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2152
 
  # Yippee, $echo works!
 
1951
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1952
  # Yippee, $ECHO works!
2153
1953
  :
2154
1954
else
2155
1955
  # Restart under the correct shell.
2159
1959
if test "X[$]1" = X--fallback-echo; then
2160
1960
  # used as fallback echo
2161
1961
  shift
2162
 
  cat <<EOF
 
1962
  cat <<_LT_EOF
2163
1963
[$]*
2164
 
EOF
 
1964
_LT_EOF
2165
1965
  exit 0
2166
1966
fi
2167
1967
 
2169
1969
# if CDPATH is set.
2170
1970
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2171
1971
 
2172
 
if test -z "$ECHO"; then
2173
 
if test "X${echo_test_string+set}" != Xset; then
2174
 
# find a string as large as possible, as long as the shell can cope with it
2175
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2176
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2177
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
2178
 
       echo_test_string=`eval $cmd` &&
2179
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2180
 
    then
2181
 
      break
2182
 
    fi
2183
 
  done
2184
 
fi
2185
 
 
2186
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2187
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2188
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
2189
 
  :
2190
 
else
2191
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
2192
 
  # backslashes.  This makes it impossible to quote backslashes using
2193
 
  #   echo "$something" | sed 's/\\/\\\\/g'
2194
 
  #
2195
 
  # So, first we look for a working echo in the user's PATH.
2196
 
 
2197
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2198
 
  for dir in $PATH /usr/ucb; do
 
1972
if test -z "$lt_ECHO"; then
 
1973
  if test "X${echo_test_string+set}" != Xset; then
 
1974
    # find a string as large as possible, as long as the shell can cope with it
 
1975
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1976
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1977
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1978
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1979
      then
 
1980
        break
 
1981
      fi
 
1982
    done
 
1983
  fi
 
1984
 
 
1985
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1986
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1987
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1988
    :
 
1989
  else
 
1990
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1991
    # backslashes.  This makes it impossible to quote backslashes using
 
1992
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1993
    #
 
1994
    # So, first we look for a working echo in the user's PATH.
 
1995
 
 
1996
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1997
    for dir in $PATH /usr/ucb; do
 
1998
      IFS="$lt_save_ifs"
 
1999
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2000
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2001
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2002
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2003
        ECHO="$dir/echo"
 
2004
        break
 
2005
      fi
 
2006
    done
2199
2007
    IFS="$lt_save_ifs"
2200
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2201
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2202
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2203
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
2204
 
      echo="$dir/echo"
2205
 
      break
2206
 
    fi
2207
 
  done
2208
 
  IFS="$lt_save_ifs"
2209
2008
 
2210
 
  if test "X$echo" = Xecho; then
2211
 
    # We didn't find a better echo, so look for alternatives.
2212
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2213
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2214
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
2215
 
      # This shell has a builtin print -r that does the trick.
2216
 
      echo='print -r'
2217
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2218
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
2219
 
      # If we have ksh, try running configure again with it.
2220
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2221
 
      export ORIGINAL_CONFIG_SHELL
2222
 
      CONFIG_SHELL=/bin/ksh
2223
 
      export CONFIG_SHELL
2224
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2225
 
    else
2226
 
      # Try using printf.
2227
 
      echo='printf %s\n'
2228
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2229
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2230
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2231
 
        # Cool, printf works
2232
 
        :
2233
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2234
 
           test "X$echo_testing_string" = 'X\t' &&
2235
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2236
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2237
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2238
 
        export CONFIG_SHELL
2239
 
        SHELL="$CONFIG_SHELL"
2240
 
        export SHELL
2241
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
2242
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2243
 
           test "X$echo_testing_string" = 'X\t' &&
2244
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2245
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2246
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2009
    if test "X$ECHO" = Xecho; then
 
2010
      # We didn't find a better echo, so look for alternatives.
 
2011
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2012
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2013
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2014
        # This shell has a builtin print -r that does the trick.
 
2015
        ECHO='print -r'
 
2016
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2017
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2018
        # If we have ksh, try running configure again with it.
 
2019
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2020
        export ORIGINAL_CONFIG_SHELL
 
2021
        CONFIG_SHELL=/bin/ksh
 
2022
        export CONFIG_SHELL
 
2023
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2247
2024
      else
2248
 
        # maybe with a smaller string...
2249
 
        prev=:
2250
 
 
2251
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2252
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2253
 
          then
2254
 
            break
 
2025
        # Try using printf.
 
2026
        ECHO='printf %s\n'
 
2027
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2028
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2029
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2030
          # Cool, printf works
 
2031
          :
 
2032
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2033
             test "X$echo_testing_string" = 'X\t' &&
 
2034
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2035
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2036
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2037
          export CONFIG_SHELL
 
2038
          SHELL="$CONFIG_SHELL"
 
2039
          export SHELL
 
2040
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2041
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2042
             test "X$echo_testing_string" = 'X\t' &&
 
2043
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2044
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2045
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2046
        else
 
2047
          # maybe with a smaller string...
 
2048
          prev=:
 
2049
 
 
2050
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2051
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2052
            then
 
2053
              break
 
2054
            fi
 
2055
            prev="$cmd"
 
2056
          done
 
2057
 
 
2058
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2059
            echo_test_string=`eval $prev`
 
2060
            export echo_test_string
 
2061
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2062
          else
 
2063
            # Oops.  We lost completely, so just stick with echo.
 
2064
            ECHO=echo
2255
2065
          fi
2256
 
          prev="$cmd"
2257
 
        done
2258
 
 
2259
 
        if test "$prev" != 'sed 50q "[$]0"'; then
2260
 
          echo_test_string=`eval $prev`
2261
 
          export echo_test_string
2262
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2263
 
        else
2264
 
          # Oops.  We lost completely, so just stick with echo.
2265
 
          echo=echo
2266
 
        fi
 
2066
        fi
2267
2067
      fi
2268
2068
    fi
2269
2069
  fi
2270
2070
fi
2271
 
fi
2272
2071
 
2273
2072
# Copy echo and quote the copy suitably for passing to libtool from
2274
2073
# the Makefile, instead of quoting the original, which is used later.
2275
 
ECHO=$echo
2276
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2277
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2074
lt_ECHO=$ECHO
 
2075
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2076
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2278
2077
fi
2279
2078
 
2280
 
AC_SUBST(ECHO)
2281
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
2282
 
 
2283
 
 
2284
 
# _LT_AC_LOCK
2285
 
# -----------
2286
 
AC_DEFUN([_LT_AC_LOCK],
 
2079
AC_SUBST(lt_ECHO)
 
2080
])
 
2081
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2082
_LT_DECL([], [ECHO], [1],
 
2083
    [An echo program that does not interpret backslashes])
 
2084
])# _LT_PROG_ECHO_BACKSLASH
 
2085
 
 
2086
 
 
2087
# _LT_ENABLE_LOCK
 
2088
# ---------------
 
2089
m4_defun([_LT_ENABLE_LOCK],
2287
2090
[AC_ARG_ENABLE([libtool-lock],
2288
 
    [AC_HELP_STRING([--disable-libtool-lock],
2289
 
        [avoid locking (might break parallel builds)])])
 
2091
  [AS_HELP_STRING([--disable-libtool-lock],
 
2092
    [avoid locking (might break parallel builds)])])
2290
2093
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2291
2094
 
2292
2095
# Some flags need to be propagated to the compiler or linker for good
2297
2100
  echo 'int i;' > conftest.$ac_ext
2298
2101
  if AC_TRY_EVAL(ac_compile); then
2299
2102
    case `/usr/bin/file conftest.$ac_objext` in
2300
 
    *ELF-32*)
2301
 
      HPUX_IA64_MODE="32"
2302
 
      ;;
2303
 
    *ELF-64*)
2304
 
      HPUX_IA64_MODE="64"
2305
 
      ;;
 
2103
      *ELF-32*)
 
2104
        HPUX_IA64_MODE="32"
 
2105
        ;;
 
2106
      *ELF-64*)
 
2107
        HPUX_IA64_MODE="64"
 
2108
        ;;
2306
2109
    esac
2307
2110
  fi
2308
2111
  rm -rf conftest*
2311
2114
  # Find out which ABI we are using.
2312
2115
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2313
2116
  if AC_TRY_EVAL(ac_compile); then
2314
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
2315
 
    case `/usr/bin/file conftest.$ac_objext` in
2316
 
    *32-bit*)
2317
 
      LD="${LD-ld} -melf32bsmip"
2318
 
      ;;
2319
 
    *N32*)
2320
 
      LD="${LD-ld} -melf32bmipn32"
2321
 
      ;;
2322
 
    *64-bit*)
2323
 
      LD="${LD-ld} -melf64bmip"
2324
 
      ;;
2325
 
    esac
2326
 
   else
2327
 
    case `/usr/bin/file conftest.$ac_objext` in
2328
 
    *32-bit*)
2329
 
      LD="${LD-ld} -32"
2330
 
      ;;
2331
 
    *N32*)
2332
 
      LD="${LD-ld} -n32"
2333
 
      ;;
2334
 
    *64-bit*)
2335
 
      LD="${LD-ld} -64"
2336
 
      ;;
2337
 
    esac
2338
 
   fi
 
2117
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2118
      case `/usr/bin/file conftest.$ac_objext` in
 
2119
        *32-bit*)
 
2120
          LD="${LD-ld} -melf32bsmip"
 
2121
          ;;
 
2122
        *N32*)
 
2123
          LD="${LD-ld} -melf32bmipn32"
 
2124
          ;;
 
2125
        *64-bit*)
 
2126
          LD="${LD-ld} -melf64bmip"
 
2127
        ;;
 
2128
      esac
 
2129
    else
 
2130
      case `/usr/bin/file conftest.$ac_objext` in
 
2131
        *32-bit*)
 
2132
          LD="${LD-ld} -32"
 
2133
          ;;
 
2134
        *N32*)
 
2135
          LD="${LD-ld} -n32"
 
2136
          ;;
 
2137
        *64-bit*)
 
2138
          LD="${LD-ld} -64"
 
2139
          ;;
 
2140
      esac
 
2141
    fi
2339
2142
  fi
2340
2143
  rm -rf conftest*
2341
2144
  ;;
2342
2145
 
2343
2146
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2344
 
s390*-*linux*|sparc*-*linux*)
 
2147
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2345
2148
  # Find out which ABI we are using.
2346
2149
  echo 'int i;' > conftest.$ac_ext
2347
2150
  if AC_TRY_EVAL(ac_compile); then
2348
2151
    case `/usr/bin/file conftest.o` in
2349
 
    *32-bit*)
2350
 
      case $host in
2351
 
        x86_64-*kfreebsd*-gnu)
2352
 
          LD="${LD-ld} -m elf_i386_fbsd"
2353
 
          ;;
2354
 
        x86_64-*linux*)
2355
 
          LD="${LD-ld} -m elf_i386"
2356
 
          ;;
2357
 
        ppc64-*linux*|powerpc64-*linux*)
2358
 
          LD="${LD-ld} -m elf32ppclinux"
2359
 
          ;;
2360
 
        s390x-*linux*)
2361
 
          LD="${LD-ld} -m elf_s390"
2362
 
          ;;
2363
 
        sparc64-*linux*)
2364
 
          LD="${LD-ld} -m elf32_sparc"
2365
 
          ;;
2366
 
      esac
2367
 
      ;;
2368
 
    *64-bit*)
2369
 
      libsuff=64
2370
 
      case $host in
2371
 
        x86_64-*kfreebsd*-gnu)
2372
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
2373
 
          ;;
2374
 
        x86_64-*linux*)
2375
 
          LD="${LD-ld} -m elf_x86_64"
2376
 
          ;;
2377
 
        ppc*-*linux*|powerpc*-*linux*)
2378
 
          LD="${LD-ld} -m elf64ppc"
2379
 
          ;;
2380
 
        s390*-*linux*)
2381
 
          LD="${LD-ld} -m elf64_s390"
2382
 
          ;;
2383
 
        sparc*-*linux*)
2384
 
          LD="${LD-ld} -m elf64_sparc"
2385
 
          ;;
2386
 
      esac
2387
 
      ;;
 
2152
      *32-bit*)
 
2153
        case $host in
 
2154
          x86_64-*kfreebsd*-gnu)
 
2155
            LD="${LD-ld} -m elf_i386_fbsd"
 
2156
            ;;
 
2157
          x86_64-*linux*)
 
2158
            LD="${LD-ld} -m elf_i386"
 
2159
            ;;
 
2160
          ppc64-*linux*|powerpc64-*linux*)
 
2161
            LD="${LD-ld} -m elf32ppclinux"
 
2162
            ;;
 
2163
          s390x-*linux*)
 
2164
            LD="${LD-ld} -m elf_s390"
 
2165
            ;;
 
2166
          sparc64-*linux*)
 
2167
            LD="${LD-ld} -m elf32_sparc"
 
2168
            ;;
 
2169
        esac
 
2170
        ;;
 
2171
      *64-bit*)
 
2172
        case $host in
 
2173
          x86_64-*kfreebsd*-gnu)
 
2174
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2175
            ;;
 
2176
          x86_64-*linux*)
 
2177
            LD="${LD-ld} -m elf_x86_64"
 
2178
            ;;
 
2179
          ppc*-*linux*|powerpc*-*linux*)
 
2180
            LD="${LD-ld} -m elf64ppc"
 
2181
            ;;
 
2182
          s390*-*linux*|s390*-*tpf*)
 
2183
            LD="${LD-ld} -m elf64_s390"
 
2184
            ;;
 
2185
          sparc*-*linux*)
 
2186
            LD="${LD-ld} -m elf64_sparc"
 
2187
            ;;
 
2188
        esac
 
2189
        ;;
2388
2190
    esac
2389
2191
  fi
2390
2192
  rm -rf conftest*
2396
2198
  CFLAGS="$CFLAGS -belf"
2397
2199
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2398
2200
    [AC_LANG_PUSH(C)
2399
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2201
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2400
2202
     AC_LANG_POP])
2401
2203
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2402
2204
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2412
2214
      case $lt_cv_prog_gnu_ld in
2413
2215
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2414
2216
      *)
2415
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2217
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2416
2218
          LD="${LD-ld} -64"
2417
2219
        fi
2418
2220
        ;;
2422
2224
  fi
2423
2225
  rm -rf conftest*
2424
2226
  ;;
2425
 
 
2426
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2427
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2428
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2429
 
  AC_CHECK_TOOL(AS, as, false)
2430
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
2431
 
  ;;
2432
 
  ])
2433
2227
esac
2434
2228
 
2435
2229
need_locks="$enable_libtool_lock"
2436
 
 
2437
 
])# _LT_AC_LOCK
2438
 
 
2439
 
 
2440
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2230
])# _LT_ENABLE_LOCK
 
2231
 
 
2232
 
 
2233
# _LT_CMD_OLD_ARCHIVE
 
2234
# -------------------
 
2235
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2236
[AC_CHECK_TOOL(AR, ar, false)
 
2237
test -z "$AR" && AR=ar
 
2238
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2239
_LT_DECL([], [AR], [1], [The archiver])
 
2240
_LT_DECL([], [AR_FLAGS], [1])
 
2241
 
 
2242
AC_CHECK_TOOL(STRIP, strip, :)
 
2243
test -z "$STRIP" && STRIP=:
 
2244
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2245
 
 
2246
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2247
test -z "$RANLIB" && RANLIB=:
 
2248
_LT_DECL([], [RANLIB], [1],
 
2249
    [Commands used to install an old-style archive])
 
2250
 
 
2251
# Determine commands to create old-style static archives.
 
2252
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2253
old_postinstall_cmds='chmod 644 $oldlib'
 
2254
old_postuninstall_cmds=
 
2255
 
 
2256
if test -n "$RANLIB"; then
 
2257
  case $host_os in
 
2258
  openbsd*)
 
2259
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2260
    ;;
 
2261
  *)
 
2262
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2263
    ;;
 
2264
  esac
 
2265
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2266
fi
 
2267
_LT_DECL([], [old_postinstall_cmds], [2])
 
2268
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2269
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2270
    [Commands used to build an old-style archive])
 
2271
])# _LT_CMD_OLD_ARCHIVE
 
2272
 
 
2273
 
 
2274
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2441
2275
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2442
2276
# ----------------------------------------------------------------
2443
2277
# Check whether the given compiler option works
2444
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2445
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2278
AC_DEFUN([_LT_COMPILER_OPTION],
 
2279
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2280
m4_require([_LT_DECL_SED])dnl
2446
2281
AC_CACHE_CHECK([$1], [$2],
2447
2282
  [$2=no
2448
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2283
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2449
2284
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2450
2285
   lt_compiler_flag="$3"
2451
2286
   # Insert the option either (1) after the last *FLAGS variable, or
2465
2300
   if (exit $ac_status) && test -s "$ac_outfile"; then
2466
2301
     # The compiler can only warn and ignore the option if not recognized
2467
2302
     # So say no if there are warnings other than the usual output.
2468
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2303
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2469
2304
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2470
2305
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2471
2306
       $2=yes
2472
2307
     fi
2473
2308
   fi
2474
 
   $rm conftest*
 
2309
   $RM conftest*
2475
2310
])
2476
2311
 
2477
2312
if test x"[$]$2" = xyes; then
2478
 
    ifelse([$5], , :, [$5])
 
2313
    m4_if([$5], , :, [$5])
2479
2314
else
2480
 
    ifelse([$6], , :, [$6])
 
2315
    m4_if([$6], , :, [$6])
2481
2316
fi
2482
 
])# AC_LIBTOOL_COMPILER_OPTION
2483
 
 
2484
 
 
2485
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2486
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
2487
 
# ------------------------------------------------------------
2488
 
# Check whether the given compiler option works
2489
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2490
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2317
])# _LT_COMPILER_OPTION
 
2318
 
 
2319
# Old name:
 
2320
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2321
dnl aclocal-1.4 backwards compatibility:
 
2322
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2323
 
 
2324
 
 
2325
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2326
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2327
# ----------------------------------------------------
 
2328
# Check whether the given linker option works
 
2329
AC_DEFUN([_LT_LINKER_OPTION],
 
2330
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2331
m4_require([_LT_DECL_SED])dnl
2491
2332
AC_CACHE_CHECK([$1], [$2],
2492
2333
  [$2=no
2493
2334
   save_LDFLAGS="$LDFLAGS"
2499
2340
     if test -s conftest.err; then
2500
2341
       # Append any errors to the config.log.
2501
2342
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2502
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2343
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2503
2344
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2504
2345
       if diff conftest.exp conftest.er2 >/dev/null; then
2505
2346
         $2=yes
2508
2349
       $2=yes
2509
2350
     fi
2510
2351
   fi
2511
 
   $rm -r conftest*
 
2352
   $RM -r conftest*
2512
2353
   LDFLAGS="$save_LDFLAGS"
2513
2354
])
2514
2355
 
2515
2356
if test x"[$]$2" = xyes; then
2516
 
    ifelse([$4], , :, [$4])
 
2357
    m4_if([$4], , :, [$4])
2517
2358
else
2518
 
    ifelse([$5], , :, [$5])
 
2359
    m4_if([$5], , :, [$5])
2519
2360
fi
2520
 
])# AC_LIBTOOL_LINKER_OPTION
2521
 
 
2522
 
 
2523
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2524
 
# --------------------------
2525
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2526
 
[# find the maximum length of command line arguments
 
2361
])# _LT_LINKER_OPTION
 
2362
 
 
2363
# Old name:
 
2364
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2365
dnl aclocal-1.4 backwards compatibility:
 
2366
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2367
 
 
2368
 
 
2369
# LT_CMD_MAX_LEN
 
2370
#---------------
 
2371
AC_DEFUN([LT_CMD_MAX_LEN],
 
2372
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2373
# find the maximum length of command line arguments
2527
2374
AC_MSG_CHECKING([the maximum length of command line arguments])
2528
2375
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2529
2376
  i=0
2545
2392
    lt_cv_sys_max_cmd_len=-1;
2546
2393
    ;;
2547
2394
 
2548
 
  cygwin* | mingw*)
 
2395
  cygwin* | mingw* | cegcc*)
2549
2396
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2550
2397
    # about 5 minutes as the teststring grows exponentially.
2551
2398
    # Worse, since 9x/ME are not pre-emptively multitasking,
2600
2447
  sysv5* | sco5v6* | sysv4.2uw2*)
2601
2448
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2602
2449
    if test -n "$kargmax"; then
2603
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2450
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
2604
2451
    else
2605
2452
      lt_cv_sys_max_cmd_len=32768
2606
2453
    fi
2611
2458
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2612
2459
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2613
2460
    else
 
2461
      # Make teststring a little bigger before we do anything with it.
 
2462
      # a 1K string should be a reasonable start.
 
2463
      for i in 1 2 3 4 5 6 7 8 ; do
 
2464
        teststring=$teststring$teststring
 
2465
      done
2614
2466
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2615
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2616
 
               = "XX$teststring") >/dev/null 2>&1 &&
2617
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
2618
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
2467
      # If test is not a shell built-in, we'll probably end up computing a
 
2468
      # maximum length that is only half of the actual maximum length, but
 
2469
      # we can't tell.
 
2470
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2471
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2619
2472
              test $i != 17 # 1/2 MB should be enough
2620
2473
      do
2621
2474
        i=`expr $i + 1`
2622
2475
        teststring=$teststring$teststring
2623
2476
      done
 
2477
      # Only check the string length outside the loop.
 
2478
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2624
2479
      teststring=
2625
 
      # Add a significant safety factor because C++ compilers can tack on massive
2626
 
      # amounts of additional arguments before passing them to the linker.
2627
 
      # It appears as though 1/2 is a usable value.
 
2480
      # Add a significant safety factor because C++ compilers can tack on
 
2481
      # massive amounts of additional arguments before passing them to the
 
2482
      # linker.  It appears as though 1/2 is a usable value.
2628
2483
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2629
2484
    fi
2630
2485
    ;;
2635
2490
else
2636
2491
  AC_MSG_RESULT(none)
2637
2492
fi
2638
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2639
 
 
2640
 
 
2641
 
# _LT_AC_CHECK_DLFCN
2642
 
# ------------------
2643
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
2644
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
2645
 
])# _LT_AC_CHECK_DLFCN
2646
 
 
2647
 
 
2648
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2649
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2650
 
# ---------------------------------------------------------------------
2651
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2652
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2493
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2494
_LT_DECL([], [max_cmd_len], [0],
 
2495
    [What is the maximum length of a command?])
 
2496
])# LT_CMD_MAX_LEN
 
2497
 
 
2498
# Old name:
 
2499
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2500
dnl aclocal-1.4 backwards compatibility:
 
2501
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2502
 
 
2503
 
 
2504
# _LT_HEADER_DLFCN
 
2505
# ----------------
 
2506
m4_defun([_LT_HEADER_DLFCN],
 
2507
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2508
])# _LT_HEADER_DLFCN
 
2509
 
 
2510
 
 
2511
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2512
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2513
# ----------------------------------------------------------------
 
2514
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2515
[m4_require([_LT_HEADER_DLFCN])dnl
2653
2516
if test "$cross_compiling" = yes; then :
2654
2517
  [$4]
2655
2518
else
2656
2519
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2657
2520
  lt_status=$lt_dlunknown
2658
 
  cat > conftest.$ac_ext <<EOF
 
2521
  cat > conftest.$ac_ext <<_LT_EOF
2659
2522
[#line __oline__ "configure"
2660
2523
#include "confdefs.h"
2661
2524
 
2697
2560
#  endif
2698
2561
#endif
2699
2562
 
2700
 
#ifdef __cplusplus
2701
 
extern "C" void exit (int);
2702
 
#endif
2703
 
 
2704
2563
void fnord() { int i=42;}
2705
2564
int main ()
2706
2565
{
2716
2575
  else
2717
2576
    puts (dlerror ());
2718
2577
 
2719
 
    exit (status);
 
2578
  return status;
2720
2579
}]
2721
 
EOF
 
2580
_LT_EOF
2722
2581
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2723
2582
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2724
2583
    lt_status=$?
2733
2592
  fi
2734
2593
fi
2735
2594
rm -fr conftest*
2736
 
])# _LT_AC_TRY_DLOPEN_SELF
2737
 
 
2738
 
 
2739
 
# AC_LIBTOOL_DLOPEN_SELF
2740
 
# ----------------------
2741
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2742
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2595
])# _LT_TRY_DLOPEN_SELF
 
2596
 
 
2597
 
 
2598
# LT_SYS_DLOPEN_SELF
 
2599
# ------------------
 
2600
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2601
[m4_require([_LT_HEADER_DLFCN])dnl
2743
2602
if test "x$enable_dlopen" != xyes; then
2744
2603
  enable_dlopen=unknown
2745
2604
  enable_dlopen_self=unknown
2755
2614
    lt_cv_dlopen_self=yes
2756
2615
    ;;
2757
2616
 
2758
 
  mingw* | pw32*)
 
2617
  mingw* | pw32* | cegcc*)
2759
2618
    lt_cv_dlopen="LoadLibrary"
2760
2619
    lt_cv_dlopen_libs=
2761
 
   ;;
 
2620
    ;;
2762
2621
 
2763
2622
  cygwin*)
2764
2623
    lt_cv_dlopen="dlopen"
2765
2624
    lt_cv_dlopen_libs=
2766
 
   ;;
 
2625
    ;;
2767
2626
 
2768
2627
  darwin*)
2769
2628
  # if libdl is installed we need to link against it
2773
2632
    lt_cv_dlopen_libs=
2774
2633
    lt_cv_dlopen_self=yes
2775
2634
    ])
2776
 
   ;;
 
2635
    ;;
2777
2636
 
2778
2637
  *)
2779
2638
    AC_CHECK_FUNC([shl_load],
2815
2674
 
2816
2675
    AC_CACHE_CHECK([whether a program can dlopen itself],
2817
2676
          lt_cv_dlopen_self, [dnl
2818
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2677
          _LT_TRY_DLOPEN_SELF(
2819
2678
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2820
2679
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2821
2680
    ])
2823
2682
    if test "x$lt_cv_dlopen_self" = xyes; then
2824
2683
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2825
2684
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2826
 
          lt_cv_dlopen_self_static, [dnl
2827
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2685
          lt_cv_dlopen_self_static, [dnl
 
2686
          _LT_TRY_DLOPEN_SELF(
2828
2687
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2829
2688
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2830
2689
      ])
2846
2705
  *) enable_dlopen_self_static=unknown ;;
2847
2706
  esac
2848
2707
fi
2849
 
])# AC_LIBTOOL_DLOPEN_SELF
2850
 
 
2851
 
 
2852
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2853
 
# ---------------------------------
2854
 
# Check to see if options -c and -o are simultaneously supported by compiler
2855
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2856
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2857
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2708
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2709
         [Whether dlopen is supported])
 
2710
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2711
         [Whether dlopen of programs is supported])
 
2712
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2713
         [Whether dlopen of statically linked programs is supported])
 
2714
])# LT_SYS_DLOPEN_SELF
 
2715
 
 
2716
# Old name:
 
2717
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2718
dnl aclocal-1.4 backwards compatibility:
 
2719
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2720
 
 
2721
 
 
2722
# _LT_COMPILER_C_O([TAGNAME])
 
2723
# ---------------------------
 
2724
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2725
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2726
m4_defun([_LT_COMPILER_C_O],
 
2727
[m4_require([_LT_DECL_SED])dnl
 
2728
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2729
m4_require([_LT_TAG_COMPILER])dnl
2858
2730
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2859
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2860
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2861
 
   $rm -r conftest 2>/dev/null
 
2731
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2732
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2733
   $RM -r conftest 2>/dev/null
2862
2734
   mkdir conftest
2863
2735
   cd conftest
2864
2736
   mkdir out
2882
2754
   then
2883
2755
     # The compiler can only warn and ignore the option if not recognized
2884
2756
     # So say no if there are warnings
2885
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2757
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2886
2758
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2887
2759
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2888
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2760
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2889
2761
     fi
2890
2762
   fi
2891
2763
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2892
 
   $rm conftest*
 
2764
   $RM conftest*
2893
2765
   # SGI C++ compiler will create directory out/ii_files/ for
2894
2766
   # template instantiation
2895
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2896
 
   $rm out/* && rmdir out
 
2767
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2768
   $RM out/* && rmdir out
2897
2769
   cd ..
2898
 
   rmdir conftest
2899
 
   $rm conftest*
 
2770
   $RM -r conftest
 
2771
   $RM conftest*
2900
2772
])
2901
 
])# AC_LIBTOOL_PROG_CC_C_O
2902
 
 
2903
 
 
2904
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2905
 
# -----------------------------------------
 
2773
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2774
        [Does compiler simultaneously support -c and -o options?])
 
2775
])# _LT_COMPILER_C_O
 
2776
 
 
2777
 
 
2778
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2779
# ----------------------------------
2906
2780
# Check to see if we can do hard links to lock some files if needed
2907
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2908
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2781
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2782
[m4_require([_LT_ENABLE_LOCK])dnl
 
2783
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2784
_LT_COMPILER_C_O([$1])
2909
2785
 
2910
2786
hard_links="nottested"
2911
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2787
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2912
2788
  # do not overwrite the value of need_locks provided by the user
2913
2789
  AC_MSG_CHECKING([if we can lock with hard links])
2914
2790
  hard_links=yes
2915
 
  $rm conftest*
 
2791
  $RM conftest*
2916
2792
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2917
2793
  touch conftest.a
2918
2794
  ln conftest.a conftest.b 2>&5 || hard_links=no
2925
2801
else
2926
2802
  need_locks=no
2927
2803
fi
2928
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2929
 
 
2930
 
 
2931
 
# AC_LIBTOOL_OBJDIR
2932
 
# -----------------
2933
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2804
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2805
])# _LT_COMPILER_FILE_LOCKS
 
2806
 
 
2807
 
 
2808
# _LT_CHECK_OBJDIR
 
2809
# ----------------
 
2810
m4_defun([_LT_CHECK_OBJDIR],
2934
2811
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2935
2812
[rm -f .libs 2>/dev/null
2936
2813
mkdir .libs 2>/dev/null
2942
2819
fi
2943
2820
rmdir .libs 2>/dev/null])
2944
2821
objdir=$lt_cv_objdir
2945
 
])# AC_LIBTOOL_OBJDIR
2946
 
 
2947
 
 
2948
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2949
 
# ----------------------------------------------
 
2822
_LT_DECL([], [objdir], [0],
 
2823
         [The name of the directory that contains temporary libtool files])dnl
 
2824
m4_pattern_allow([LT_OBJDIR])dnl
 
2825
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2826
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2827
])# _LT_CHECK_OBJDIR
 
2828
 
 
2829
 
 
2830
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2831
# --------------------------------------
2950
2832
# Check hardcoding attributes.
2951
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2833
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2952
2834
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2953
 
_LT_AC_TAGVAR(hardcode_action, $1)=
2954
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2955
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2956
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2835
_LT_TAGVAR(hardcode_action, $1)=
 
2836
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2837
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2838
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2957
2839
 
2958
 
  # We can hardcode non-existant directories.
2959
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2840
  # We can hardcode non-existent directories.
 
2841
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2960
2842
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2961
2843
     # have to relink, otherwise we might link with an installed library
2962
2844
     # when we should be linking with a yet-to-be-installed one
2963
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2964
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2845
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2846
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2965
2847
    # Linking always hardcodes the temporary library directory.
2966
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2848
    _LT_TAGVAR(hardcode_action, $1)=relink
2967
2849
  else
2968
2850
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2969
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2851
    _LT_TAGVAR(hardcode_action, $1)=immediate
2970
2852
  fi
2971
2853
else
2972
2854
  # We cannot hardcode anything, or else we can only hardcode existing
2973
2855
  # directories.
2974
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2856
  _LT_TAGVAR(hardcode_action, $1)=unsupported
2975
2857
fi
2976
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2858
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2977
2859
 
2978
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2860
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2861
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2979
2862
  # Fast installation is not supported
2980
2863
  enable_fast_install=no
2981
2864
elif test "$shlibpath_overrides_runpath" = yes ||
2983
2866
  # Fast installation is not necessary
2984
2867
  enable_fast_install=needless
2985
2868
fi
2986
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2987
 
 
2988
 
 
2989
 
# AC_LIBTOOL_SYS_LIB_STRIP
2990
 
# ------------------------
2991
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2992
 
[striplib=
 
2869
_LT_TAGDECL([], [hardcode_action], [0],
 
2870
    [How to hardcode a shared library path into an executable])
 
2871
])# _LT_LINKER_HARDCODE_LIBPATH
 
2872
 
 
2873
 
 
2874
# _LT_CMD_STRIPLIB
 
2875
# ----------------
 
2876
m4_defun([_LT_CMD_STRIPLIB],
 
2877
[m4_require([_LT_DECL_EGREP])
 
2878
striplib=
2993
2879
old_striplib=
2994
2880
AC_MSG_CHECKING([whether stripping libraries is possible])
2995
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2881
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2996
2882
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2997
2883
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2998
2884
  AC_MSG_RESULT([yes])
2999
2885
else
3000
2886
# FIXME - insert some real tests, host_os isn't really good enough
3001
2887
  case $host_os in
3002
 
   darwin*)
3003
 
       if test -n "$STRIP" ; then
3004
 
         striplib="$STRIP -x"
3005
 
         old_striplib="$STRIP -S"
3006
 
         AC_MSG_RESULT([yes])
3007
 
       else
3008
 
  AC_MSG_RESULT([no])
3009
 
fi
3010
 
       ;;
3011
 
   *)
3012
 
  AC_MSG_RESULT([no])
 
2888
  darwin*)
 
2889
    if test -n "$STRIP" ; then
 
2890
      striplib="$STRIP -x"
 
2891
      old_striplib="$STRIP -S"
 
2892
      AC_MSG_RESULT([yes])
 
2893
    else
 
2894
      AC_MSG_RESULT([no])
 
2895
    fi
 
2896
    ;;
 
2897
  *)
 
2898
    AC_MSG_RESULT([no])
3013
2899
    ;;
3014
2900
  esac
3015
2901
fi
3016
 
])# AC_LIBTOOL_SYS_LIB_STRIP
3017
 
 
3018
 
 
3019
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2902
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2903
_LT_DECL([], [striplib], [1])
 
2904
])# _LT_CMD_STRIPLIB
 
2905
 
 
2906
 
 
2907
# _LT_SYS_DYNAMIC_LINKER([TAG])
3020
2908
# -----------------------------
3021
2909
# PORTME Fill in your ld.so characteristics
3022
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3023
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2910
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2911
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2912
m4_require([_LT_DECL_EGREP])dnl
 
2913
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2914
m4_require([_LT_DECL_OBJDUMP])dnl
 
2915
m4_require([_LT_DECL_SED])dnl
3024
2916
AC_MSG_CHECKING([dynamic linker characteristics])
3025
 
library_names_spec=
3026
 
libname_spec='lib$name'
3027
 
soname_spec=
3028
 
shrext_cmds=".so"
3029
 
postinstall_cmds=
3030
 
postuninstall_cmds=
3031
 
finish_cmds=
3032
 
finish_eval=
3033
 
shlibpath_var=
3034
 
shlibpath_overrides_runpath=unknown
3035
 
version_type=none
3036
 
dynamic_linker="$host_os ld.so"
3037
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3038
 
m4_if($1,[],[
 
2917
m4_if([$1],
 
2918
        [], [
3039
2919
if test "$GCC" = yes; then
3040
2920
  case $host_os in
3041
2921
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3042
2922
    *) lt_awk_arg="/^libraries:/" ;;
3043
2923
  esac
3044
2924
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3045
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2925
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3046
2926
    # if the path contains ";" then we assume it to be the separator
3047
2927
    # otherwise default to the standard path separator (i.e. ":") - it is
3048
2928
    # assumed that no part of a normal pathname contains ";" but that should
3049
2929
    # okay in the real world where ";" in dirpaths is itself problematic.
3050
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2930
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3051
2931
  else
3052
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2932
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3053
2933
  fi
3054
2934
  # Ok, now we have the path, separated by spaces, we can step through it
3055
2935
  # and add multilib dir if necessary.
3063
2943
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3064
2944
    fi
3065
2945
  done
3066
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2946
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3067
2947
BEGIN {RS=" "; FS="/|\n";} {
3068
2948
  lt_foo="";
3069
2949
  lt_count=0;
3083
2963
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3084
2964
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3085
2965
}'`
3086
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2966
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3087
2967
else
3088
2968
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3089
2969
fi])
 
2970
library_names_spec=
 
2971
libname_spec='lib$name'
 
2972
soname_spec=
 
2973
shrext_cmds=".so"
 
2974
postinstall_cmds=
 
2975
postuninstall_cmds=
 
2976
finish_cmds=
 
2977
finish_eval=
 
2978
shlibpath_var=
 
2979
shlibpath_overrides_runpath=unknown
 
2980
version_type=none
 
2981
dynamic_linker="$host_os ld.so"
 
2982
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3090
2983
need_lib_prefix=unknown
3091
2984
hardcode_into_libs=no
3092
2985
 
3123
3016
      aix4 | aix4.[[01]] | aix4.[[01]].*)
3124
3017
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3125
3018
           echo ' yes '
3126
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3019
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3127
3020
        :
3128
3021
      else
3129
3022
        can_build_shared=no
3149
3042
  ;;
3150
3043
 
3151
3044
amigaos*)
3152
 
  library_names_spec='$libname.ixlibrary $libname.a'
3153
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
3154
 
  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'
 
3045
  case $host_cpu in
 
3046
  powerpc)
 
3047
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3048
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3049
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3050
    ;;
 
3051
  m68k)
 
3052
    library_names_spec='$libname.ixlibrary $libname.a'
 
3053
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3054
    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'
 
3055
    ;;
 
3056
  esac
3155
3057
  ;;
3156
3058
 
3157
3059
beos*)
3174
3076
  # libtool to hard-code these into programs
3175
3077
  ;;
3176
3078
 
3177
 
cygwin* | mingw* | pw32*)
 
3079
cygwin* | mingw* | pw32* | cegcc*)
3178
3080
  version_type=windows
3179
3081
  shrext_cmds=".dll"
3180
3082
  need_version=no
3181
3083
  need_lib_prefix=no
3182
3084
 
3183
3085
  case $GCC,$host_os in
3184
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3086
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3185
3087
    library_names_spec='$libname.dll.a'
3186
3088
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3187
3089
    postinstall_cmds='base_file=`basename \${file}`~
3188
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3090
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3189
3091
      dldir=$destdir/`dirname \$dlpath`~
3190
3092
      test -d \$dldir || mkdir -p \$dldir~
3191
3093
      $install_prog $dir/$dlname \$dldir/$dlname~
3192
 
      chmod a+x \$dldir/$dlname'
 
3094
      chmod a+x \$dldir/$dlname~
 
3095
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3096
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3097
      fi'
3193
3098
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3194
3099
      dlpath=$dir/\$dldll~
3195
 
       $rm \$dlpath'
 
3100
       $RM \$dlpath'
3196
3101
    shlibpath_overrides_runpath=yes
3197
3102
 
3198
3103
    case $host_os in
3201
3106
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3202
3107
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3203
3108
      ;;
3204
 
    mingw*)
 
3109
    mingw* | cegcc*)
3205
3110
      # MinGW DLLs use traditional 'lib' prefix
3206
3111
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3207
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3208
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3112
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3113
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3209
3114
        # It is most probably a Windows format PATH printed by
3210
3115
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3211
3116
        # path with ; separators, and with drive letters. We can handle the
3212
3117
        # drive letters (cygwin fileutils understands them), so leave them,
3213
3118
        # especially as we might pass files found there to a mingw objdump,
3214
3119
        # which wouldn't understand a cygwinified path. Ahh.
3215
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3120
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3216
3121
      else
3217
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3122
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3218
3123
      fi
3219
3124
      ;;
3220
3125
    pw32*)
3238
3143
  version_type=darwin
3239
3144
  need_lib_prefix=no
3240
3145
  need_version=no
3241
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3146
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3242
3147
  soname_spec='${libname}${release}${major}$shared_ext'
3243
3148
  shlibpath_overrides_runpath=yes
3244
3149
  shlibpath_var=DYLD_LIBRARY_PATH
3245
3150
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3246
 
  m4_if([$1], [],[
3247
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3151
m4_if([$1], [],[
 
3152
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3248
3153
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3249
3154
  ;;
3250
3155
 
3337
3242
    fi
3338
3243
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3339
3244
    ;;
3340
 
   hppa*64*)
3341
 
     shrext_cmds='.sl'
3342
 
     hardcode_into_libs=yes
3343
 
     dynamic_linker="$host_os dld.sl"
3344
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3345
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3346
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3347
 
     soname_spec='${libname}${release}${shared_ext}$major'
3348
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3349
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3350
 
     ;;
3351
 
   *)
 
3245
  hppa*64*)
 
3246
    shrext_cmds='.sl'
 
3247
    hardcode_into_libs=yes
 
3248
    dynamic_linker="$host_os dld.sl"
 
3249
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3250
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3251
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3252
    soname_spec='${libname}${release}${shared_ext}$major'
 
3253
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3254
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3255
    ;;
 
3256
  *)
3352
3257
    shrext_cmds='.sl'
3353
3258
    dynamic_linker="$host_os dld.sl"
3354
3259
    shlibpath_var=SHLIB_PATH
3425
3330
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3426
3331
  shlibpath_var=LD_LIBRARY_PATH
3427
3332
  shlibpath_overrides_runpath=no
 
3333
  # Some binutils ld are patched to set DT_RUNPATH
 
3334
  save_LDFLAGS=$LDFLAGS
 
3335
  save_libdir=$libdir
 
3336
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3337
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3338
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3339
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3340
       [shlibpath_overrides_runpath=yes])])
 
3341
  LDFLAGS=$save_LDFLAGS
 
3342
  libdir=$save_libdir
 
3343
 
3428
3344
  # This implies no fast_install, which is unacceptable.
3429
3345
  # Some rework will be needed to allow for fast_install
3430
3346
  # before this can be enabled.
3431
3347
  hardcode_into_libs=yes
3432
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3433
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3434
3348
 
3435
3349
  # Append ld.so.conf contents to the search path
3436
3350
  if test -f /etc/ld.so.conf; then
3437
 
    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' ' '`
3438
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
3351
    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' ' '`
 
3352
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3439
3353
  fi
3440
3354
 
3441
3355
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3447
3361
  dynamic_linker='GNU/Linux ld.so'
3448
3362
  ;;
3449
3363
 
 
3364
netbsdelf*-gnu)
 
3365
  version_type=linux
 
3366
  need_lib_prefix=no
 
3367
  need_version=no
 
3368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3369
  soname_spec='${libname}${release}${shared_ext}$major'
 
3370
  shlibpath_var=LD_LIBRARY_PATH
 
3371
  shlibpath_overrides_runpath=no
 
3372
  hardcode_into_libs=yes
 
3373
  dynamic_linker='NetBSD ld.elf_so'
 
3374
  ;;
 
3375
 
3450
3376
netbsd*)
3451
3377
  version_type=sunos
3452
3378
  need_lib_prefix=no
3453
3379
  need_version=no
3454
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3380
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3455
3381
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3456
3382
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3457
3383
    dynamic_linker='NetBSD (a.out) ld.so'
3472
3398
  shlibpath_overrides_runpath=yes
3473
3399
  ;;
3474
3400
 
3475
 
nto-qnx*)
3476
 
  version_type=linux
 
3401
*nto* | *qnx*)
 
3402
  version_type=qnx
3477
3403
  need_lib_prefix=no
3478
3404
  need_version=no
3479
3405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3480
3406
  soname_spec='${libname}${release}${shared_ext}$major'
3481
3407
  shlibpath_var=LD_LIBRARY_PATH
3482
 
  shlibpath_overrides_runpath=yes
 
3408
  shlibpath_overrides_runpath=no
 
3409
  hardcode_into_libs=yes
 
3410
  dynamic_linker='ldqnx.so'
3483
3411
  ;;
3484
3412
 
3485
3413
openbsd*)
3488
3416
  need_lib_prefix=no
3489
3417
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3490
3418
  case $host_os in
3491
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3492
 
    *)                         need_version=no  ;;
 
3419
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3420
    *)                          need_version=no  ;;
3493
3421
  esac
3494
3422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3495
3423
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3496
3424
  shlibpath_var=LD_LIBRARY_PATH
3497
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3425
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3498
3426
    case $host_os in
3499
3427
      openbsd2.[[89]] | openbsd2.[[89]].*)
3500
3428
        shlibpath_overrides_runpath=no
3566
3494
    sni)
3567
3495
      shlibpath_overrides_runpath=no
3568
3496
      need_lib_prefix=no
3569
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
3570
3497
      runpath_var=LD_RUN_PATH
3571
3498
      ;;
3572
3499
    siemens)
3597
3524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3598
3525
  soname_spec='${libname}${release}${shared_ext}$major'
3599
3526
  shlibpath_var=LD_LIBRARY_PATH
 
3527
  shlibpath_overrides_runpath=yes
3600
3528
  hardcode_into_libs=yes
3601
3529
  if test "$with_gnu_ld" = yes; then
3602
3530
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3603
 
    shlibpath_overrides_runpath=no
3604
3531
  else
3605
3532
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3606
 
    shlibpath_overrides_runpath=yes
3607
3533
    case $host_os in
3608
3534
      sco3.2v5*)
3609
3535
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3613
3539
  sys_lib_dlsearch_path_spec='/usr/lib'
3614
3540
  ;;
3615
3541
 
 
3542
tpf*)
 
3543
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3544
  version_type=linux
 
3545
  need_lib_prefix=no
 
3546
  need_version=no
 
3547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3548
  shlibpath_var=LD_LIBRARY_PATH
 
3549
  shlibpath_overrides_runpath=no
 
3550
  hardcode_into_libs=yes
 
3551
  ;;
 
3552
 
3616
3553
uts4*)
3617
3554
  version_type=linux
3618
3555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3627
3564
AC_MSG_RESULT([$dynamic_linker])
3628
3565
test "$dynamic_linker" = no && can_build_shared=no
3629
3566
 
3630
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
3631
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
3632
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3633
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
3634
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
3635
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3636
 
 
3637
3567
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3638
3568
if test "$GCC" = yes; then
3639
3569
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3640
3570
fi
3641
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3642
 
 
3643
 
 
3644
 
# _LT_AC_TAGCONFIG
3645
 
# ----------------
3646
 
AC_DEFUN([_LT_AC_TAGCONFIG],
3647
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3648
 
AC_ARG_WITH([tags],
3649
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3650
 
        [include additional configurations @<:@automatic@:>@])],
3651
 
    [tagnames="$withval"])
3652
 
 
3653
 
if test -f "$ltmain" && test -n "$tagnames"; then
3654
 
  if test ! -f "${ofile}"; then
3655
 
    AC_MSG_WARN([output file `$ofile' does not exist])
3656
 
  fi
3657
 
 
3658
 
  if test -z "$LTCC"; then
3659
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3660
 
    if test -z "$LTCC"; then
3661
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3662
 
    else
3663
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3664
 
    fi
3665
 
  fi
3666
 
  if test -z "$LTCFLAGS"; then
3667
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3668
 
  fi
3669
 
 
3670
 
  # Extract list of available tagged configurations in $ofile.
3671
 
  # Note that this assumes the entire list is on one line.
3672
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3673
 
 
3674
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675
 
  for tagname in $tagnames; do
3676
 
    IFS="$lt_save_ifs"
3677
 
    # Check whether tagname contains only valid characters
3678
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3679
 
    "") ;;
3680
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
3681
 
        ;;
3682
 
    esac
3683
 
 
3684
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3685
 
    then
3686
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
3687
 
    fi
3688
 
 
3689
 
    # Update the list of available tags.
3690
 
    if test -n "$tagname"; then
3691
 
      echo appending configuration tag \"$tagname\" to $ofile
3692
 
 
3693
 
      case $tagname in
3694
 
      CXX)
3695
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3696
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3697
 
            (test "X$CXX" != "Xg++"))) ; then
3698
 
          AC_LIBTOOL_LANG_CXX_CONFIG
3699
 
        else
3700
 
          tagname=""
3701
 
        fi
3702
 
        ;;
3703
 
 
3704
 
      F77)
3705
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
3706
 
          AC_LIBTOOL_LANG_F77_CONFIG
3707
 
        else
3708
 
          tagname=""
3709
 
        fi
3710
 
        ;;
3711
 
 
3712
 
      GCJ)
3713
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3714
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
3715
 
        else
3716
 
          tagname=""
3717
 
        fi
3718
 
        ;;
3719
 
 
3720
 
      RC)
3721
 
        AC_LIBTOOL_LANG_RC_CONFIG
3722
 
        ;;
3723
 
 
3724
 
      *)
3725
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
3726
 
        ;;
3727
 
      esac
3728
 
 
3729
 
      # Append the new tag name to the list of available tags.
3730
 
      if test -n "$tagname" ; then
3731
 
      available_tags="$available_tags $tagname"
3732
 
    fi
3733
 
    fi
3734
 
  done
3735
 
  IFS="$lt_save_ifs"
3736
 
 
3737
 
  # Now substitute the updated list of available tags.
3738
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3739
 
    mv "${ofile}T" "$ofile"
3740
 
    chmod +x "$ofile"
3741
 
  else
3742
 
    rm -f "${ofile}T"
3743
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
3744
 
  fi
3745
 
fi
3746
 
])# _LT_AC_TAGCONFIG
3747
 
 
3748
 
 
3749
 
# AC_LIBTOOL_DLOPEN
3750
 
# -----------------
3751
 
# enable checks for dlopen support
3752
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3753
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3754
 
])# AC_LIBTOOL_DLOPEN
3755
 
 
3756
 
 
3757
 
# AC_LIBTOOL_WIN32_DLL
3758
 
# --------------------
3759
 
# declare package support for building win32 DLLs
3760
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3761
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3762
 
])# AC_LIBTOOL_WIN32_DLL
3763
 
 
3764
 
 
3765
 
# AC_ENABLE_SHARED([DEFAULT])
3766
 
# ---------------------------
3767
 
# implement the --enable-shared flag
3768
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3769
 
AC_DEFUN([AC_ENABLE_SHARED],
3770
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3771
 
AC_ARG_ENABLE([shared],
3772
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3773
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3774
 
    [p=${PACKAGE-default}
3775
 
    case $enableval in
3776
 
    yes) enable_shared=yes ;;
3777
 
    no) enable_shared=no ;;
3778
 
    *)
3779
 
      enable_shared=no
3780
 
      # Look at the argument we got.  We use all the common list separators.
3781
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782
 
      for pkg in $enableval; do
3783
 
        IFS="$lt_save_ifs"
3784
 
        if test "X$pkg" = "X$p"; then
3785
 
          enable_shared=yes
3786
 
        fi
3787
 
      done
3788
 
      IFS="$lt_save_ifs"
3789
 
      ;;
3790
 
    esac],
3791
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3792
 
])# AC_ENABLE_SHARED
3793
 
 
3794
 
 
3795
 
# AC_DISABLE_SHARED
3796
 
# -----------------
3797
 
# set the default shared flag to --disable-shared
3798
 
AC_DEFUN([AC_DISABLE_SHARED],
3799
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3800
 
AC_ENABLE_SHARED(no)
3801
 
])# AC_DISABLE_SHARED
3802
 
 
3803
 
 
3804
 
# AC_ENABLE_STATIC([DEFAULT])
3805
 
# ---------------------------
3806
 
# implement the --enable-static flag
3807
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3808
 
AC_DEFUN([AC_ENABLE_STATIC],
3809
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3810
 
AC_ARG_ENABLE([static],
3811
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3812
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3813
 
    [p=${PACKAGE-default}
3814
 
    case $enableval in
3815
 
    yes) enable_static=yes ;;
3816
 
    no) enable_static=no ;;
3817
 
    *)
3818
 
     enable_static=no
3819
 
      # Look at the argument we got.  We use all the common list separators.
3820
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3821
 
      for pkg in $enableval; do
3822
 
        IFS="$lt_save_ifs"
3823
 
        if test "X$pkg" = "X$p"; then
3824
 
          enable_static=yes
3825
 
        fi
3826
 
      done
3827
 
      IFS="$lt_save_ifs"
3828
 
      ;;
3829
 
    esac],
3830
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3831
 
])# AC_ENABLE_STATIC
3832
 
 
3833
 
 
3834
 
# AC_DISABLE_STATIC
3835
 
# -----------------
3836
 
# set the default static flag to --disable-static
3837
 
AC_DEFUN([AC_DISABLE_STATIC],
3838
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3839
 
AC_ENABLE_STATIC(no)
3840
 
])# AC_DISABLE_STATIC
3841
 
 
3842
 
 
3843
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3844
 
# ---------------------------------
3845
 
# implement the --enable-fast-install flag
3846
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3847
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3848
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3849
 
AC_ARG_ENABLE([fast-install],
3850
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3851
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3852
 
    [p=${PACKAGE-default}
3853
 
    case $enableval in
3854
 
    yes) enable_fast_install=yes ;;
3855
 
    no) enable_fast_install=no ;;
3856
 
    *)
3857
 
      enable_fast_install=no
3858
 
      # Look at the argument we got.  We use all the common list separators.
3859
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3860
 
      for pkg in $enableval; do
3861
 
        IFS="$lt_save_ifs"
3862
 
        if test "X$pkg" = "X$p"; then
3863
 
          enable_fast_install=yes
3864
 
        fi
3865
 
      done
3866
 
      IFS="$lt_save_ifs"
3867
 
      ;;
3868
 
    esac],
3869
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3870
 
])# AC_ENABLE_FAST_INSTALL
3871
 
 
3872
 
 
3873
 
# AC_DISABLE_FAST_INSTALL
3874
 
# -----------------------
3875
 
# set the default to --disable-fast-install
3876
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3877
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3878
 
AC_ENABLE_FAST_INSTALL(no)
3879
 
])# AC_DISABLE_FAST_INSTALL
3880
 
 
3881
 
 
3882
 
# AC_LIBTOOL_PICMODE([MODE])
 
3571
 
 
3572
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3573
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3574
fi
 
3575
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3576
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3577
fi
 
3578
 
 
3579
_LT_DECL([], [variables_saved_for_relink], [1],
 
3580
    [Variables whose values should be saved in libtool wrapper scripts and
 
3581
    restored at link time])
 
3582
_LT_DECL([], [need_lib_prefix], [0],
 
3583
    [Do we need the "lib" prefix for modules?])
 
3584
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3585
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3586
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3587
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3588
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3589
    [Is shlibpath searched before the hard-coded library search path?])
 
3590
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3591
_LT_DECL([], [library_names_spec], [1],
 
3592
    [[List of archive names.  First name is the real one, the rest are links.
 
3593
    The last name is the one that the linker finds with -lNAME]])
 
3594
_LT_DECL([], [soname_spec], [1],
 
3595
    [[The coded name of the library, if different from the real name]])
 
3596
_LT_DECL([], [postinstall_cmds], [2],
 
3597
    [Command to use after installation of a shared archive])
 
3598
_LT_DECL([], [postuninstall_cmds], [2],
 
3599
    [Command to use after uninstallation of a shared archive])
 
3600
_LT_DECL([], [finish_cmds], [2],
 
3601
    [Commands used to finish a libtool library installation in a directory])
 
3602
_LT_DECL([], [finish_eval], [1],
 
3603
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3604
    not shown]])
 
3605
_LT_DECL([], [hardcode_into_libs], [0],
 
3606
    [Whether we should hardcode library paths into libraries])
 
3607
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3608
    [Compile-time system search path for libraries])
 
3609
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3610
    [Run-time system search path for libraries])
 
3611
])# _LT_SYS_DYNAMIC_LINKER
 
3612
 
 
3613
 
 
3614
# _LT_PATH_TOOL_PREFIX(TOOL)
3883
3615
# --------------------------
3884
 
# implement the --with-pic flag
3885
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3886
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
3887
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3888
 
pic_mode=ifelse($#,1,$1,default)
3889
 
])# AC_LIBTOOL_PICMODE
3890
 
 
3891
 
 
3892
 
# AC_PROG_EGREP
3893
 
# -------------
3894
 
# This is predefined starting with Autoconf 2.54, so this conditional
3895
 
# definition can be removed once we require Autoconf 2.54 or later.
3896
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3897
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3898
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3899
 
    then ac_cv_prog_egrep='grep -E'
3900
 
    else ac_cv_prog_egrep='egrep'
3901
 
    fi])
3902
 
 EGREP=$ac_cv_prog_egrep
3903
 
 AC_SUBST([EGREP])
3904
 
])])
3905
 
 
3906
 
 
3907
 
# AC_PATH_TOOL_PREFIX
3908
 
# -------------------
3909
3616
# find a file program which can recognize shared library
3910
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3911
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3617
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3618
[m4_require([_LT_DECL_EGREP])dnl
3912
3619
AC_MSG_CHECKING([for $1])
3913
3620
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3914
3621
[case $MAGIC_CMD in
3921
3628
dnl $ac_dummy forces splitting on constant user-supplied paths.
3922
3629
dnl POSIX.2 word splitting is done only on the output of word expansions,
3923
3630
dnl not every word.  This closes a longstanding sh security hole.
3924
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3631
  ac_dummy="m4_if([$2], , $PATH, [$2])"
3925
3632
  for ac_dir in $ac_dummy; do
3926
3633
    IFS="$lt_save_ifs"
3927
3634
    test -z "$ac_dir" && ac_dir=.
3936
3643
            $EGREP "$file_magic_regex" > /dev/null; then
3937
3644
            :
3938
3645
          else
3939
 
            cat <<EOF 1>&2
 
3646
            cat <<_LT_EOF 1>&2
3940
3647
 
3941
3648
*** Warning: the command libtool uses to detect shared libraries,
3942
3649
*** $file_magic_cmd, produces output that libtool cannot recognize.
3947
3654
*** may want to report the problem to your system manager and/or to
3948
3655
*** bug-libtool@gnu.org
3949
3656
 
3950
 
EOF
 
3657
_LT_EOF
3951
3658
          fi ;;
3952
3659
        esac
3953
3660
      fi
3964
3671
else
3965
3672
  AC_MSG_RESULT(no)
3966
3673
fi
3967
 
])# AC_PATH_TOOL_PREFIX
3968
 
 
3969
 
 
3970
 
# AC_PATH_MAGIC
3971
 
# -------------
 
3674
_LT_DECL([], [MAGIC_CMD], [0],
 
3675
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3676
])# _LT_PATH_TOOL_PREFIX
 
3677
 
 
3678
# Old name:
 
3679
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3680
dnl aclocal-1.4 backwards compatibility:
 
3681
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3682
 
 
3683
 
 
3684
# _LT_PATH_MAGIC
 
3685
# --------------
3972
3686
# find a file program which can recognize a shared library
3973
 
AC_DEFUN([AC_PATH_MAGIC],
3974
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3687
m4_defun([_LT_PATH_MAGIC],
 
3688
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3975
3689
if test -z "$lt_cv_path_MAGIC_CMD"; then
3976
3690
  if test -n "$ac_tool_prefix"; then
3977
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3691
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3978
3692
  else
3979
3693
    MAGIC_CMD=:
3980
3694
  fi
3981
3695
fi
3982
 
])# AC_PATH_MAGIC
3983
 
 
3984
 
 
3985
 
# AC_PROG_LD
 
3696
])# _LT_PATH_MAGIC
 
3697
 
 
3698
 
 
3699
# LT_PATH_LD
3986
3700
# ----------
3987
3701
# find the pathname to the GNU or non-GNU linker
3988
 
AC_DEFUN([AC_PROG_LD],
3989
 
[AC_ARG_WITH([gnu-ld],
3990
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3702
AC_DEFUN([LT_PATH_LD],
 
3703
[AC_REQUIRE([AC_PROG_CC])dnl
 
3704
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3705
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3706
m4_require([_LT_DECL_SED])dnl
 
3707
m4_require([_LT_DECL_EGREP])dnl
 
3708
 
 
3709
AC_ARG_WITH([gnu-ld],
 
3710
    [AS_HELP_STRING([--with-gnu-ld],
3991
3711
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3992
3712
    [test "$withval" = no || with_gnu_ld=yes],
3993
 
    [with_gnu_ld=no])
3994
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
3995
 
AC_REQUIRE([AC_PROG_CC])dnl
3996
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3997
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3713
    [with_gnu_ld=no])dnl
 
3714
 
3998
3715
ac_prog=ld
3999
3716
if test "$GCC" = yes; then
4000
3717
  # Check if gcc -print-prog-name=ld gives a path.
4011
3728
    [[\\/]]* | ?:[[\\/]]*)
4012
3729
      re_direlt='/[[^/]][[^/]]*/\.\./'
4013
3730
      # Canonicalize the pathname of ld
4014
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4015
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4016
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3731
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3732
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3733
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4017
3734
      done
4018
3735
      test -z "$LD" && LD="$ac_prog"
4019
3736
      ;;
4063
3780
  AC_MSG_RESULT(no)
4064
3781
fi
4065
3782
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4066
 
AC_PROG_LD_GNU
4067
 
])# AC_PROG_LD
4068
 
 
4069
 
 
4070
 
# AC_PROG_LD_GNU
4071
 
# --------------
4072
 
AC_DEFUN([AC_PROG_LD_GNU],
4073
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
4074
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3783
_LT_PATH_LD_GNU
 
3784
AC_SUBST([LD])
 
3785
 
 
3786
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3787
])# LT_PATH_LD
 
3788
 
 
3789
# Old names:
 
3790
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3791
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3792
dnl aclocal-1.4 backwards compatibility:
 
3793
dnl AC_DEFUN([AM_PROG_LD], [])
 
3794
dnl AC_DEFUN([AC_PROG_LD], [])
 
3795
 
 
3796
 
 
3797
# _LT_PATH_LD_GNU
 
3798
#- --------------
 
3799
m4_defun([_LT_PATH_LD_GNU],
 
3800
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4075
3801
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4076
3802
case `$LD -v 2>&1 </dev/null` in
4077
3803
*GNU* | *'with BFD'*)
4082
3808
  ;;
4083
3809
esac])
4084
3810
with_gnu_ld=$lt_cv_prog_gnu_ld
4085
 
])# AC_PROG_LD_GNU
4086
 
 
4087
 
 
4088
 
# AC_PROG_LD_RELOAD_FLAG
4089
 
# ----------------------
 
3811
])# _LT_PATH_LD_GNU
 
3812
 
 
3813
 
 
3814
# _LT_CMD_RELOAD
 
3815
# --------------
4090
3816
# find reload flag for linker
4091
3817
#   -- PORTME Some linkers may need a different reload flag.
4092
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3818
m4_defun([_LT_CMD_RELOAD],
4093
3819
[AC_CACHE_CHECK([for $LD option to reload object files],
4094
3820
  lt_cv_ld_reload_flag,
4095
3821
  [lt_cv_ld_reload_flag='-r'])
4108
3834
    fi
4109
3835
    ;;
4110
3836
esac
4111
 
])# AC_PROG_LD_RELOAD_FLAG
4112
 
 
4113
 
 
4114
 
# AC_DEPLIBS_CHECK_METHOD
4115
 
# -----------------------
 
3837
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3838
_LT_DECL([], [reload_cmds], [2])dnl
 
3839
])# _LT_CMD_RELOAD
 
3840
 
 
3841
 
 
3842
# _LT_CHECK_MAGIC_METHOD
 
3843
# ----------------------
4116
3844
# how to check for library dependencies
4117
3845
#  -- PORTME fill in with the dynamic library characteristics
4118
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4119
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3846
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3847
[m4_require([_LT_DECL_EGREP])
 
3848
m4_require([_LT_DECL_OBJDUMP])
 
3849
AC_CACHE_CHECK([how to recognize dependent libraries],
4120
3850
lt_cv_deplibs_check_method,
4121
3851
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4122
3852
lt_cv_file_magic_test_file=
4166
3896
  fi
4167
3897
  ;;
4168
3898
 
 
3899
cegcc)
 
3900
  # use the weaker test based on 'objdump'. See mingw*.
 
3901
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3902
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3903
  ;;
 
3904
 
4169
3905
darwin* | rhapsody*)
4170
3906
  lt_cv_deplibs_check_method=pass_all
4171
3907
  ;;
4172
3908
 
4173
3909
freebsd* | dragonfly*)
4174
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3910
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4175
3911
    case $host_cpu in
4176
3912
    i*86 )
4177
3913
      # Not sure whether the presence of OpenBSD here was a mistake.
4228
3964
  lt_cv_deplibs_check_method=pass_all
4229
3965
  ;;
4230
3966
 
4231
 
netbsd*)
4232
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3967
netbsd* | netbsdelf*-gnu)
 
3968
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4233
3969
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4234
3970
  else
4235
3971
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4242
3978
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4243
3979
  ;;
4244
3980
 
4245
 
nto-qnx*)
4246
 
  lt_cv_deplibs_check_method=unknown
 
3981
*nto* | *qnx*)
 
3982
  lt_cv_deplibs_check_method=pass_all
4247
3983
  ;;
4248
3984
 
4249
3985
openbsd*)
4250
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3986
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4251
3987
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4252
3988
  else
4253
3989
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4266
4002
  lt_cv_deplibs_check_method=pass_all
4267
4003
  ;;
4268
4004
 
 
4005
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4006
  lt_cv_deplibs_check_method=pass_all
 
4007
  ;;
 
4008
 
4269
4009
sysv4 | sysv4.3*)
4270
4010
  case $host_vendor in
4271
4011
  motorola)
4293
4033
  esac
4294
4034
  ;;
4295
4035
 
4296
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4036
tpf*)
4297
4037
  lt_cv_deplibs_check_method=pass_all
4298
4038
  ;;
4299
4039
esac
4301
4041
file_magic_cmd=$lt_cv_file_magic_cmd
4302
4042
deplibs_check_method=$lt_cv_deplibs_check_method
4303
4043
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4304
 
])# AC_DEPLIBS_CHECK_METHOD
4305
 
 
4306
 
 
4307
 
# AC_PROG_NM
 
4044
 
 
4045
_LT_DECL([], [deplibs_check_method], [1],
 
4046
    [Method to check whether dependent libraries are shared objects])
 
4047
_LT_DECL([], [file_magic_cmd], [1],
 
4048
    [Command to use when deplibs_check_method == "file_magic"])
 
4049
])# _LT_CHECK_MAGIC_METHOD
 
4050
 
 
4051
 
 
4052
# LT_PATH_NM
4308
4053
# ----------
4309
 
# find the pathname to a BSD-compatible name lister
4310
 
AC_DEFUN([AC_PROG_NM],
4311
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4054
# find the pathname to a BSD- or MS-compatible name lister
 
4055
AC_DEFUN([LT_PATH_NM],
 
4056
[AC_REQUIRE([AC_PROG_CC])dnl
 
4057
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4312
4058
[if test -n "$NM"; then
4313
4059
  # Let the user override the test.
4314
4060
  lt_cv_path_NM="$NM"
4350
4096
    done
4351
4097
    IFS="$lt_save_ifs"
4352
4098
  done
4353
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4099
  : ${lt_cv_path_NM=no}
4354
4100
fi])
4355
 
NM="$lt_cv_path_NM"
4356
 
])# AC_PROG_NM
4357
 
 
4358
 
 
4359
 
# AC_CHECK_LIBM
4360
 
# -------------
 
4101
if test "$lt_cv_path_NM" != "no"; then
 
4102
  NM="$lt_cv_path_NM"
 
4103
else
 
4104
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4105
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4106
  AC_SUBST([DUMPBIN])
 
4107
  if test "$DUMPBIN" != ":"; then
 
4108
    NM="$DUMPBIN"
 
4109
  fi
 
4110
fi
 
4111
test -z "$NM" && NM=nm
 
4112
AC_SUBST([NM])
 
4113
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4114
 
 
4115
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4116
  [lt_cv_nm_interface="BSD nm"
 
4117
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4118
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4119
  (eval "$ac_compile" 2>conftest.err)
 
4120
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4121
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4122
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4123
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4124
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4125
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4126
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4127
    lt_cv_nm_interface="MS dumpbin"
 
4128
  fi
 
4129
  rm -f conftest*])
 
4130
])# LT_PATH_NM
 
4131
 
 
4132
# Old names:
 
4133
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4134
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4135
dnl aclocal-1.4 backwards compatibility:
 
4136
dnl AC_DEFUN([AM_PROG_NM], [])
 
4137
dnl AC_DEFUN([AC_PROG_NM], [])
 
4138
 
 
4139
 
 
4140
# LT_LIB_M
 
4141
# --------
4361
4142
# check for math library
4362
 
AC_DEFUN([AC_CHECK_LIBM],
 
4143
AC_DEFUN([LT_LIB_M],
4363
4144
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4364
4145
LIBM=
4365
4146
case $host in
4374
4155
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4375
4156
  ;;
4376
4157
esac
4377
 
])# AC_CHECK_LIBM
4378
 
 
4379
 
 
4380
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4381
 
# -----------------------------------
4382
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
4383
 
# LTDLINCL to the include flags for the libltdl header and adds
4384
 
# --enable-ltdl-convenience to the configure arguments.  Note that
4385
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
4386
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
4387
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4388
 
# (note the single quotes!).  If your package is not flat and you're not
4389
 
# using automake, define top_builddir and top_srcdir appropriately in
4390
 
# the Makefiles.
4391
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4392
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4393
 
  case $enable_ltdl_convenience in
4394
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4395
 
  "") enable_ltdl_convenience=yes
4396
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4397
 
  esac
4398
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4399
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4400
 
  # For backwards non-gettext consistent compatibility...
4401
 
  INCLTDL="$LTDLINCL"
4402
 
])# AC_LIBLTDL_CONVENIENCE
4403
 
 
4404
 
 
4405
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4406
 
# -----------------------------------
4407
 
# sets LIBLTDL to the link flags for the libltdl installable library and
4408
 
# LTDLINCL to the include flags for the libltdl header and adds
4409
 
# --enable-ltdl-install to the configure arguments.  Note that
4410
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
4411
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
4412
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4413
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
4414
 
# flat and you're not using automake, define top_builddir and top_srcdir
4415
 
# appropriately in the Makefiles.
4416
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4417
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4418
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4419
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
4420
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4421
 
  [if test x"$enable_ltdl_install" = xno; then
4422
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
4423
 
   else
4424
 
     enable_ltdl_install=yes
4425
 
   fi
4426
 
  ])
4427
 
  if test x"$enable_ltdl_install" = x"yes"; then
4428
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
4429
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4430
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4431
 
  else
4432
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4433
 
    LIBLTDL="-lltdl"
4434
 
    LTDLINCL=
4435
 
  fi
4436
 
  # For backwards non-gettext consistent compatibility...
4437
 
  INCLTDL="$LTDLINCL"
4438
 
])# AC_LIBLTDL_INSTALLABLE
4439
 
 
4440
 
 
4441
 
# AC_LIBTOOL_CXX
4442
 
# --------------
4443
 
# enable support for C++ libraries
4444
 
AC_DEFUN([AC_LIBTOOL_CXX],
4445
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
4446
 
])# AC_LIBTOOL_CXX
4447
 
 
4448
 
 
4449
 
# _LT_AC_LANG_CXX
4450
 
# ---------------
4451
 
AC_DEFUN([_LT_AC_LANG_CXX],
4452
 
[AC_REQUIRE([AC_PROG_CXX])
4453
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4454
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4455
 
])# _LT_AC_LANG_CXX
4456
 
 
4457
 
# _LT_AC_PROG_CXXCPP
4458
 
# ------------------
4459
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
4460
 
[
4461
 
AC_REQUIRE([AC_PROG_CXX])
4462
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4463
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4464
 
    (test "X$CXX" != "Xg++"))) ; then
4465
 
  AC_PROG_CXXCPP
4466
 
fi
4467
 
])# _LT_AC_PROG_CXXCPP
4468
 
 
4469
 
# AC_LIBTOOL_F77
4470
 
# --------------
4471
 
# enable support for Fortran 77 libraries
4472
 
AC_DEFUN([AC_LIBTOOL_F77],
4473
 
[AC_REQUIRE([_LT_AC_LANG_F77])
4474
 
])# AC_LIBTOOL_F77
4475
 
 
4476
 
 
4477
 
# _LT_AC_LANG_F77
4478
 
# ---------------
4479
 
AC_DEFUN([_LT_AC_LANG_F77],
4480
 
[AC_REQUIRE([AC_PROG_F77])
4481
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4482
 
])# _LT_AC_LANG_F77
4483
 
 
4484
 
 
4485
 
# AC_LIBTOOL_GCJ
4486
 
# --------------
4487
 
# enable support for GCJ libraries
4488
 
AC_DEFUN([AC_LIBTOOL_GCJ],
4489
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4490
 
])# AC_LIBTOOL_GCJ
4491
 
 
4492
 
 
4493
 
# _LT_AC_LANG_GCJ
4494
 
# ---------------
4495
 
AC_DEFUN([_LT_AC_LANG_GCJ],
4496
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4497
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4498
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4499
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4500
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4501
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4502
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4503
 
])# _LT_AC_LANG_GCJ
4504
 
 
4505
 
 
4506
 
# AC_LIBTOOL_RC
4507
 
# -------------
4508
 
# enable support for Windows resource files
4509
 
AC_DEFUN([AC_LIBTOOL_RC],
4510
 
[AC_REQUIRE([LT_AC_PROG_RC])
4511
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4512
 
])# AC_LIBTOOL_RC
4513
 
 
4514
 
 
4515
 
# AC_LIBTOOL_LANG_C_CONFIG
4516
 
# ------------------------
4517
 
# Ensure that the configuration vars for the C compiler are
4518
 
# suitably defined.  Those variables are subsequently used by
4519
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4520
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4521
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4522
 
[lt_save_CC="$CC"
4523
 
AC_LANG_PUSH(C)
4524
 
 
4525
 
# Source file extension for C test sources.
4526
 
ac_ext=c
4527
 
 
4528
 
# Object file extension for compiled C test sources.
4529
 
objext=o
4530
 
_LT_AC_TAGVAR(objext, $1)=$objext
4531
 
 
4532
 
# Code to be used in simple compile tests
4533
 
lt_simple_compile_test_code="int some_variable = 0;"
4534
 
 
4535
 
# Code to be used in simple link tests
4536
 
lt_simple_link_test_code='int main(){return(0);}'
4537
 
 
4538
 
_LT_AC_SYS_COMPILER
4539
 
 
4540
 
# save warnings/boilerplate of simple test code
4541
 
_LT_COMPILER_BOILERPLATE
4542
 
_LT_LINKER_BOILERPLATE
4543
 
 
4544
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4545
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4546
 
AC_LIBTOOL_PROG_CC_C_O($1)
4547
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4548
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4549
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4550
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4551
 
AC_LIBTOOL_SYS_LIB_STRIP
4552
 
AC_LIBTOOL_DLOPEN_SELF
4553
 
 
4554
 
# Report which library types will actually be built
4555
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4556
 
AC_MSG_RESULT([$can_build_shared])
4557
 
 
4558
 
AC_MSG_CHECKING([whether to build shared libraries])
4559
 
test "$can_build_shared" = "no" && enable_shared=no
4560
 
 
4561
 
# On AIX, shared libraries and static libraries use the same namespace, and
4562
 
# are all built from PIC.
4563
 
case $host_os in
4564
 
aix3*)
4565
 
  test "$enable_shared" = yes && enable_static=no
4566
 
  if test -n "$RANLIB"; then
4567
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4568
 
    postinstall_cmds='$RANLIB $lib'
4569
 
  fi
4570
 
  ;;
4571
 
 
4572
 
aix[[4-9]]*)
4573
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4574
 
    test "$enable_shared" = yes && enable_static=no
4575
 
  fi
4576
 
    ;;
4577
 
esac
4578
 
AC_MSG_RESULT([$enable_shared])
4579
 
 
4580
 
AC_MSG_CHECKING([whether to build static libraries])
4581
 
# Make sure either enable_shared or enable_static is yes.
4582
 
test "$enable_shared" = yes || enable_static=yes
4583
 
AC_MSG_RESULT([$enable_static])
4584
 
 
4585
 
AC_LIBTOOL_CONFIG($1)
4586
 
 
4587
 
AC_LANG_POP
4588
 
CC="$lt_save_CC"
4589
 
])# AC_LIBTOOL_LANG_C_CONFIG
4590
 
 
4591
 
 
4592
 
# AC_LIBTOOL_LANG_CXX_CONFIG
4593
 
# --------------------------
4594
 
# Ensure that the configuration vars for the C compiler are
4595
 
# suitably defined.  Those variables are subsequently used by
4596
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4597
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4598
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4599
 
[AC_LANG_PUSH(C++)
4600
 
AC_REQUIRE([AC_PROG_CXX])
4601
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4602
 
 
4603
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4604
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4605
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4606
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4607
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4608
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4609
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4610
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4611
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4612
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4613
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4614
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4615
 
_LT_AC_TAGVAR(module_cmds, $1)=
4616
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4617
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4618
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4619
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4620
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4621
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4622
 
 
4623
 
# Dependencies to place before and after the object being linked:
4624
 
_LT_AC_TAGVAR(predep_objects, $1)=
4625
 
_LT_AC_TAGVAR(postdep_objects, $1)=
4626
 
_LT_AC_TAGVAR(predeps, $1)=
4627
 
_LT_AC_TAGVAR(postdeps, $1)=
4628
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4629
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4630
 
 
4631
 
# Source file extension for C++ test sources.
4632
 
ac_ext=cpp
4633
 
 
4634
 
# Object file extension for compiled C++ test sources.
4635
 
objext=o
4636
 
_LT_AC_TAGVAR(objext, $1)=$objext
4637
 
 
4638
 
# Code to be used in simple compile tests
4639
 
lt_simple_compile_test_code="int some_variable = 0;"
4640
 
 
4641
 
# Code to be used in simple link tests
4642
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
4643
 
 
4644
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4645
 
_LT_AC_SYS_COMPILER
4646
 
 
4647
 
# save warnings/boilerplate of simple test code
4648
 
_LT_COMPILER_BOILERPLATE
4649
 
_LT_LINKER_BOILERPLATE
4650
 
 
4651
 
# Allow CC to be a program name with arguments.
4652
 
lt_save_CC=$CC
4653
 
lt_save_LD=$LD
4654
 
lt_save_GCC=$GCC
4655
 
GCC=$GXX
4656
 
lt_save_with_gnu_ld=$with_gnu_ld
4657
 
lt_save_path_LD=$lt_cv_path_LD
4658
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4659
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4660
 
else
4661
 
  $as_unset lt_cv_prog_gnu_ld
4662
 
fi
4663
 
if test -n "${lt_cv_path_LDCXX+set}"; then
4664
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
4665
 
else
4666
 
  $as_unset lt_cv_path_LD
4667
 
fi
4668
 
test -z "${LDCXX+set}" || LD=$LDCXX
4669
 
CC=${CXX-"c++"}
4670
 
compiler=$CC
4671
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4672
 
_LT_CC_BASENAME([$compiler])
4673
 
 
4674
 
# We don't want -fno-exception wen compiling C++ code, so set the
4675
 
# no_builtin_flag separately
4676
 
if test "$GXX" = yes; then
4677
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4678
 
else
4679
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4680
 
fi
4681
 
 
4682
 
if test "$GXX" = yes; then
4683
 
  # Set up default GNU C++ configuration
4684
 
 
4685
 
  AC_PROG_LD
4686
 
 
4687
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
4688
 
  # archiving commands below assume that GNU ld is being used.
4689
 
  if test "$with_gnu_ld" = yes; then
4690
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4691
 
    _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'
4692
 
 
4693
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4694
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4695
 
 
4696
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
4697
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4698
 
    #     investigate it a little bit more. (MM)
4699
 
    wlarc='${wl}'
4700
 
 
4701
 
    # ancient GNU ld didn't support --whole-archive et. al.
4702
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4703
 
        grep 'no-whole-archive' > /dev/null; then
4704
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4705
 
    else
4706
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4707
 
    fi
4708
 
  else
4709
 
    with_gnu_ld=no
4710
 
    wlarc=
4711
 
 
4712
 
    # A generic and very simple default shared library creation
4713
 
    # command for GNU C++ for the case where it uses the native
4714
 
    # linker, instead of GNU ld.  If possible, this setting should
4715
 
    # overridden to take advantage of the native linker features on
4716
 
    # the platform it is being used on.
4717
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4718
 
  fi
4719
 
 
4720
 
  # Commands to make compiler produce verbose output that lists
4721
 
  # what "hidden" libraries, object files and flags are used when
4722
 
  # linking a shared library.
4723
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4724
 
 
4725
 
else
4726
 
  GXX=no
4727
 
  with_gnu_ld=no
4728
 
  wlarc=
4729
 
fi
4730
 
 
4731
 
# PORTME: fill in a description of your system's C++ link characteristics
4732
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4733
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4734
 
case $host_os in
4735
 
  aix3*)
4736
 
    # FIXME: insert proper C++ library support
4737
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4738
 
    ;;
4739
 
  aix[[4-9]]*)
4740
 
    if test "$host_cpu" = ia64; then
4741
 
      # On IA64, the linker does run time linking by default, so we don't
4742
 
      # have to do anything special.
4743
 
      aix_use_runtimelinking=no
4744
 
      exp_sym_flag='-Bexport'
4745
 
      no_entry_flag=""
4746
 
    else
4747
 
      aix_use_runtimelinking=no
4748
 
 
4749
 
      # Test if we are trying to use run time linking or normal
4750
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4751
 
      # need to do runtime linking.
4752
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4753
 
        for ld_flag in $LDFLAGS; do
4754
 
          case $ld_flag in
4755
 
          *-brtl*)
4756
 
            aix_use_runtimelinking=yes
4757
 
            break
4758
 
            ;;
4759
 
          esac
4760
 
        done
4761
 
        ;;
4762
 
      esac
4763
 
 
4764
 
      exp_sym_flag='-bexport'
4765
 
      no_entry_flag='-bnoentry'
4766
 
    fi
4767
 
 
4768
 
    # When large executables or shared objects are built, AIX ld can
4769
 
    # have problems creating the table of contents.  If linking a library
4770
 
    # or program results in "error TOC overflow" add -mminimal-toc to
4771
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4772
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4773
 
 
4774
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
4775
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4776
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4777
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4778
 
 
4779
 
    if test "$GXX" = yes; then
4780
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
4781
 
      # We only want to do this on AIX 4.2 and lower, the check
4782
 
      # below for broken collect2 doesn't work under 4.3+
4783
 
        collect2name=`${CC} -print-prog-name=collect2`
4784
 
        if test -f "$collect2name" && \
4785
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4786
 
        then
4787
 
          # We have reworked collect2
4788
 
          :
4789
 
        else
4790
 
          # We have old collect2
4791
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4792
 
          # It fails to find uninstalled libraries when the uninstalled
4793
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
4794
 
          # to unsupported forces relinking
4795
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4796
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4797
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4798
 
        fi
4799
 
        ;;
4800
 
      esac
4801
 
      shared_flag='-shared'
4802
 
      if test "$aix_use_runtimelinking" = yes; then
4803
 
        shared_flag="$shared_flag "'${wl}-G'
4804
 
      fi
4805
 
    else
4806
 
      # not using gcc
4807
 
      if test "$host_cpu" = ia64; then
4808
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4809
 
        # chokes on -Wl,-G. The following line is correct:
4810
 
        shared_flag='-G'
4811
 
      else
4812
 
        if test "$aix_use_runtimelinking" = yes; then
4813
 
          shared_flag='${wl}-G'
4814
 
        else
4815
 
          shared_flag='${wl}-bM:SRE'
4816
 
        fi
4817
 
      fi
4818
 
    fi
4819
 
 
4820
 
    # It seems that -bexpall does not export symbols beginning with
4821
 
    # underscore (_), so it is better to generate a list of symbols to export.
4822
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4823
 
    if test "$aix_use_runtimelinking" = yes; then
4824
 
      # Warning - without using the other runtime loading flags (-brtl),
4825
 
      # -berok will link without error, but may produce a broken library.
4826
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4827
 
      # Determine the default libpath from the value encoded in an empty executable.
4828
 
      _LT_AC_SYS_LIBPATH_AIX
4829
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4830
 
 
4831
 
      _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"
4832
 
     else
4833
 
      if test "$host_cpu" = ia64; then
4834
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4835
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4836
 
        _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"
4837
 
      else
4838
 
        # Determine the default libpath from the value encoded in an empty executable.
4839
 
        _LT_AC_SYS_LIBPATH_AIX
4840
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4841
 
        # Warning - without using the other run time loading flags,
4842
 
        # -berok will link without error, but may produce a broken library.
4843
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4844
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4845
 
        # Exported symbols can be pulled into shared objects from archives
4846
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4847
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4848
 
        # This is similar to how AIX traditionally builds its shared libraries.
4849
 
        _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'
4850
 
      fi
4851
 
    fi
4852
 
    ;;
4853
 
 
4854
 
  beos*)
4855
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4856
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4857
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4858
 
      # support --undefined.  This deserves some investigation.  FIXME
4859
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4860
 
    else
4861
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4862
 
    fi
4863
 
    ;;
4864
 
 
4865
 
  chorus*)
4866
 
    case $cc_basename in
4867
 
      *)
4868
 
        # FIXME: insert proper C++ library support
4869
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4870
 
        ;;
4871
 
    esac
4872
 
    ;;
4873
 
 
4874
 
  cygwin* | mingw* | pw32*)
4875
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4876
 
    # as there is no search path for DLLs.
4877
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4878
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4879
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
4880
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4881
 
 
4882
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4883
 
      _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'
4884
 
      # If the export-symbols file already is a .def file (1st line
4885
 
      # is EXPORTS), use it as is; otherwise, prepend...
4886
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4887
 
        cp $export_symbols $output_objdir/$soname.def;
4888
 
      else
4889
 
        echo EXPORTS > $output_objdir/$soname.def;
4890
 
        cat $export_symbols >> $output_objdir/$soname.def;
4891
 
      fi~
4892
 
      $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'
4893
 
    else
4894
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4895
 
    fi
4896
 
  ;;
4897
 
      darwin* | rhapsody*)
4898
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4899
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4900
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4901
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4902
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4903
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4904
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4905
 
      if test "$GXX" = yes ; then
4906
 
      output_verbose_link_cmd='echo'
4907
 
      _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}"
4908
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4909
 
      _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}"
4910
 
      _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}"
4911
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4912
 
        _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}"
4913
 
        _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}"
4914
 
      fi
4915
 
      else
4916
 
      case $cc_basename in
4917
 
        xlc*)
4918
 
         output_verbose_link_cmd='echo'
4919
 
          _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'
4920
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4921
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4922
 
          _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}'
4923
 
          _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}'
4924
 
          ;;
4925
 
       *)
4926
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4927
 
          ;;
4928
 
      esac
4929
 
      fi
4930
 
        ;;
4931
 
 
4932
 
  dgux*)
4933
 
    case $cc_basename in
4934
 
      ec++*)
4935
 
        # FIXME: insert proper C++ library support
4936
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4937
 
        ;;
4938
 
      ghcx*)
4939
 
        # Green Hills C++ Compiler
4940
 
        # FIXME: insert proper C++ library support
4941
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4942
 
        ;;
4943
 
      *)
4944
 
        # FIXME: insert proper C++ library support
4945
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4946
 
        ;;
4947
 
    esac
4948
 
    ;;
4949
 
  freebsd[[12]]*)
4950
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
4951
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4952
 
    ;;
4953
 
  freebsd-elf*)
4954
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4955
 
    ;;
4956
 
  freebsd* | dragonfly*)
4957
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4958
 
    # conventions
4959
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4960
 
    ;;
4961
 
  gnu*)
4962
 
    ;;
4963
 
  hpux9*)
4964
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4965
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4966
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4967
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4968
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4969
 
                                # but as the default
4970
 
                                # location of the library.
4971
 
 
4972
 
    case $cc_basename in
4973
 
    CC*)
4974
 
      # FIXME: insert proper C++ library support
4975
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4976
 
      ;;
4977
 
    aCC*)
4978
 
      _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'
4979
 
      # Commands to make compiler produce verbose output that lists
4980
 
      # what "hidden" libraries, object files and flags are used when
4981
 
      # linking a shared library.
4982
 
      #
4983
 
      # There doesn't appear to be a way to prevent this compiler from
4984
 
      # explicitly linking system object files so we need to strip them
4985
 
      # from the output so that they don't get included in the library
4986
 
      # dependencies.
4987
 
      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'
4988
 
      ;;
4989
 
    *)
4990
 
      if test "$GXX" = yes; then
4991
 
        _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'
4992
 
      else
4993
 
        # FIXME: insert proper C++ library support
4994
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4995
 
      fi
4996
 
      ;;
4997
 
    esac
4998
 
    ;;
4999
 
  hpux10*|hpux11*)
5000
 
    if test $with_gnu_ld = no; then
5001
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5002
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5003
 
 
5004
 
      case $host_cpu in
5005
 
      hppa*64*|ia64*) ;;
5006
 
      *)
5007
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5008
 
        ;;
5009
 
      esac
5010
 
    fi
5011
 
    case $host_cpu in
5012
 
    hppa*64*|ia64*)
5013
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5014
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5015
 
      ;;
5016
 
    *)
5017
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5018
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5019
 
                                              # but as the default
5020
 
                                              # location of the library.
5021
 
      ;;
5022
 
    esac
5023
 
 
5024
 
    case $cc_basename in
5025
 
      CC*)
5026
 
        # FIXME: insert proper C++ library support
5027
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5028
 
        ;;
5029
 
      aCC*)
5030
 
        case $host_cpu in
5031
 
        hppa*64*)
5032
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5033
 
          ;;
5034
 
        ia64*)
5035
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5036
 
          ;;
5037
 
        *)
5038
 
          _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'
5039
 
          ;;
5040
 
        esac
5041
 
        # Commands to make compiler produce verbose output that lists
5042
 
        # what "hidden" libraries, object files and flags are used when
5043
 
        # linking a shared library.
5044
 
        #
5045
 
        # There doesn't appear to be a way to prevent this compiler from
5046
 
        # explicitly linking system object files so we need to strip them
5047
 
        # from the output so that they don't get included in the library
5048
 
        # dependencies.
5049
 
        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'
5050
 
        ;;
5051
 
      *)
5052
 
        if test "$GXX" = yes; then
5053
 
          if test $with_gnu_ld = no; then
5054
 
            case $host_cpu in
5055
 
            hppa*64*)
5056
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5057
 
              ;;
5058
 
            ia64*)
5059
 
              _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'
5060
 
              ;;
5061
 
            *)
5062
 
              _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'
5063
 
              ;;
5064
 
            esac
5065
 
          fi
5066
 
        else
5067
 
          # FIXME: insert proper C++ library support
5068
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5069
 
        fi
5070
 
        ;;
5071
 
    esac
5072
 
    ;;
5073
 
  interix[[3-9]]*)
5074
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
5075
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5076
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5077
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5078
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5079
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
5080
 
    # default) and relocated if they conflict, which is a slow very memory
5081
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
5082
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5083
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5084
 
    _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'
5085
 
    _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'
5086
 
    ;;
5087
 
  irix5* | irix6*)
5088
 
    case $cc_basename in
5089
 
      CC*)
5090
 
        # SGI C++
5091
 
        _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'
5092
 
 
5093
 
        # Archives containing C++ object files must be created using
5094
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5095
 
        # necessary to make sure instantiated templates are included
5096
 
        # in the archive.
5097
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5098
 
        ;;
5099
 
      *)
5100
 
        if test "$GXX" = yes; then
5101
 
          if test "$with_gnu_ld" = no; then
5102
 
            _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'
5103
 
          else
5104
 
            _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'
5105
 
          fi
5106
 
        fi
5107
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5108
 
        ;;
5109
 
    esac
5110
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5111
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5112
 
    ;;
5113
 
  linux* | k*bsd*-gnu)
5114
 
    case $cc_basename in
5115
 
      KCC*)
5116
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5117
 
 
5118
 
        # KCC will only create a shared library if the output file
5119
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5120
 
        # to its proper name (with version) after linking.
5121
 
        _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'
5122
 
        _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'
5123
 
        # Commands to make compiler produce verbose output that lists
5124
 
        # what "hidden" libraries, object files and flags are used when
5125
 
        # linking a shared library.
5126
 
        #
5127
 
        # There doesn't appear to be a way to prevent this compiler from
5128
 
        # explicitly linking system object files so we need to strip them
5129
 
        # from the output so that they don't get included in the library
5130
 
        # dependencies.
5131
 
        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'
5132
 
 
5133
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5134
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5135
 
 
5136
 
        # Archives containing C++ object files must be created using
5137
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5138
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5139
 
        ;;
5140
 
      icpc*)
5141
 
        # Intel C++
5142
 
        with_gnu_ld=yes
5143
 
        # version 8.0 and above of icpc choke on multiply defined symbols
5144
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
5145
 
        # earlier do not add the objects themselves.
5146
 
        case `$CC -V 2>&1` in
5147
 
        *"Version 7."*)
5148
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5149
 
          _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'
5150
 
          ;;
5151
 
        *)  # Version 8.0 or newer
5152
 
          tmp_idyn=
5153
 
          case $host_cpu in
5154
 
            ia64*) tmp_idyn=' -i_dynamic';;
5155
 
          esac
5156
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5157
 
          _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'
5158
 
          ;;
5159
 
        esac
5160
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5161
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5162
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5163
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5164
 
        ;;
5165
 
      pgCC* | pgcpp*)
5166
 
        # Portland Group C++ compiler
5167
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5168
 
        _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'
5169
 
 
5170
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5171
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5172
 
        _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'
5173
 
        ;;
5174
 
      cxx*)
5175
 
        # Compaq C++
5176
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5177
 
        _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'
5178
 
 
5179
 
        runpath_var=LD_RUN_PATH
5180
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5181
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5182
 
 
5183
 
        # Commands to make compiler produce verbose output that lists
5184
 
        # what "hidden" libraries, object files and flags are used when
5185
 
        # linking a shared library.
5186
 
        #
5187
 
        # There doesn't appear to be a way to prevent this compiler from
5188
 
        # explicitly linking system object files so we need to strip them
5189
 
        # from the output so that they don't get included in the library
5190
 
        # dependencies.
5191
 
        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'
5192
 
        ;;
5193
 
      *)
5194
 
        case `$CC -V 2>&1 | sed 5q` in
5195
 
        *Sun\ C*)
5196
 
          # Sun C++ 5.9
5197
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5198
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5199
 
          _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'
5200
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5201
 
          _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'
5202
 
 
5203
 
          # Not sure whether something based on
5204
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5205
 
          # would be better.
5206
 
          output_verbose_link_cmd='echo'
5207
 
 
5208
 
          # Archives containing C++ object files must be created using
5209
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5210
 
          # necessary to make sure instantiated templates are included
5211
 
          # in the archive.
5212
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5213
 
          ;;
5214
 
        esac
5215
 
        ;;
5216
 
    esac
5217
 
    ;;
5218
 
  lynxos*)
5219
 
    # FIXME: insert proper C++ library support
5220
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5221
 
    ;;
5222
 
  m88k*)
5223
 
    # FIXME: insert proper C++ library support
5224
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5225
 
    ;;
5226
 
  mvs*)
5227
 
    case $cc_basename in
5228
 
      cxx*)
5229
 
        # FIXME: insert proper C++ library support
5230
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5231
 
        ;;
5232
 
      *)
5233
 
        # FIXME: insert proper C++ library support
5234
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5235
 
        ;;
5236
 
    esac
5237
 
    ;;
5238
 
  netbsd*)
5239
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5240
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5241
 
      wlarc=
5242
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5243
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5244
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5245
 
    fi
5246
 
    # Workaround some broken pre-1.5 toolchains
5247
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5248
 
    ;;
5249
 
  openbsd2*)
5250
 
    # C++ shared libraries are fairly broken
5251
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5252
 
    ;;
5253
 
  openbsd*)
5254
 
    if test -f /usr/libexec/ld.so; then
5255
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5256
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5257
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5258
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5259
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5260
 
        _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'
5261
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5262
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5263
 
      fi
5264
 
      output_verbose_link_cmd='echo'
5265
 
    else
5266
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5267
 
    fi
5268
 
    ;;
5269
 
  osf3*)
5270
 
    case $cc_basename in
5271
 
      KCC*)
5272
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5273
 
 
5274
 
        # KCC will only create a shared library if the output file
5275
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5276
 
        # to its proper name (with version) after linking.
5277
 
        _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'
5278
 
 
5279
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5280
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5281
 
 
5282
 
        # Archives containing C++ object files must be created using
5283
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5284
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5285
 
 
5286
 
        ;;
5287
 
      RCC*)
5288
 
        # Rational C++ 2.4.1
5289
 
        # FIXME: insert proper C++ library support
5290
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5291
 
        ;;
5292
 
      cxx*)
5293
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5294
 
        _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'
5295
 
 
5296
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5297
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5298
 
 
5299
 
        # Commands to make compiler produce verbose output that lists
5300
 
        # what "hidden" libraries, object files and flags are used when
5301
 
        # linking a shared library.
5302
 
        #
5303
 
        # There doesn't appear to be a way to prevent this compiler from
5304
 
        # explicitly linking system object files so we need to strip them
5305
 
        # from the output so that they don't get included in the library
5306
 
        # dependencies.
5307
 
        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'
5308
 
        ;;
5309
 
      *)
5310
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5311
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5312
 
          _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'
5313
 
 
5314
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5315
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5316
 
 
5317
 
          # Commands to make compiler produce verbose output that lists
5318
 
          # what "hidden" libraries, object files and flags are used when
5319
 
          # linking a shared library.
5320
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5321
 
 
5322
 
        else
5323
 
          # FIXME: insert proper C++ library support
5324
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5325
 
        fi
5326
 
        ;;
5327
 
    esac
5328
 
    ;;
5329
 
  osf4* | osf5*)
5330
 
    case $cc_basename in
5331
 
      KCC*)
5332
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
5333
 
 
5334
 
        # KCC will only create a shared library if the output file
5335
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
5336
 
        # to its proper name (with version) after linking.
5337
 
        _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'
5338
 
 
5339
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5340
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5341
 
 
5342
 
        # Archives containing C++ object files must be created using
5343
 
        # the KAI C++ compiler.
5344
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5345
 
        ;;
5346
 
      RCC*)
5347
 
        # Rational C++ 2.4.1
5348
 
        # FIXME: insert proper C++ library support
5349
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5350
 
        ;;
5351
 
      cxx*)
5352
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5353
 
        _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'
5354
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5355
 
          echo "-hidden">> $lib.exp~
5356
 
          $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~
5357
 
          $rm $lib.exp'
5358
 
 
5359
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5360
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5361
 
 
5362
 
        # Commands to make compiler produce verbose output that lists
5363
 
        # what "hidden" libraries, object files and flags are used when
5364
 
        # linking a shared library.
5365
 
        #
5366
 
        # There doesn't appear to be a way to prevent this compiler from
5367
 
        # explicitly linking system object files so we need to strip them
5368
 
        # from the output so that they don't get included in the library
5369
 
        # dependencies.
5370
 
        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'
5371
 
        ;;
5372
 
      *)
5373
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5374
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5375
 
         _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'
5376
 
 
5377
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5378
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5379
 
 
5380
 
          # Commands to make compiler produce verbose output that lists
5381
 
          # what "hidden" libraries, object files and flags are used when
5382
 
          # linking a shared library.
5383
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5384
 
 
5385
 
        else
5386
 
          # FIXME: insert proper C++ library support
5387
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5388
 
        fi
5389
 
        ;;
5390
 
    esac
5391
 
    ;;
5392
 
  psos*)
5393
 
    # FIXME: insert proper C++ library support
5394
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5395
 
    ;;
5396
 
  sunos4*)
5397
 
    case $cc_basename in
5398
 
      CC*)
5399
 
        # Sun C++ 4.x
5400
 
        # FIXME: insert proper C++ library support
5401
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5402
 
        ;;
5403
 
      lcc*)
5404
 
        # Lucid
5405
 
        # FIXME: insert proper C++ library support
5406
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5407
 
        ;;
5408
 
      *)
5409
 
        # FIXME: insert proper C++ library support
5410
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5411
 
        ;;
5412
 
    esac
5413
 
    ;;
5414
 
  solaris*)
5415
 
    case $cc_basename in
5416
 
      CC*)
5417
 
        # Sun C++ 4.2, 5.x and Centerline C++
5418
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5419
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5420
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5421
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5422
 
        $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'
5423
 
 
5424
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5425
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5426
 
        case $host_os in
5427
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5428
 
          *)
5429
 
            # The compiler driver will combine and reorder linker options,
5430
 
            # but understands `-z linker_flag'.
5431
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
5432
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5433
 
            ;;
5434
 
        esac
5435
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5436
 
 
5437
 
        output_verbose_link_cmd='echo'
5438
 
 
5439
 
        # Archives containing C++ object files must be created using
5440
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5441
 
        # necessary to make sure instantiated templates are included
5442
 
        # in the archive.
5443
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5444
 
        ;;
5445
 
      gcx*)
5446
 
        # Green Hills C++ Compiler
5447
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5448
 
 
5449
 
        # The C++ compiler must be used to create the archive.
5450
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5451
 
        ;;
5452
 
      *)
5453
 
        # GNU C++ compiler with Solaris linker
5454
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5455
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5456
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
5457
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5458
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5459
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5460
 
 
5461
 
            # Commands to make compiler produce verbose output that lists
5462
 
            # what "hidden" libraries, object files and flags are used when
5463
 
            # linking a shared library.
5464
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5465
 
          else
5466
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
5467
 
            # platform.
5468
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5469
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5470
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5471
 
 
5472
 
            # Commands to make compiler produce verbose output that lists
5473
 
            # what "hidden" libraries, object files and flags are used when
5474
 
            # linking a shared library.
5475
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5476
 
          fi
5477
 
 
5478
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5479
 
          case $host_os in
5480
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5481
 
          *)
5482
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5483
 
            ;;
5484
 
          esac
5485
 
        fi
5486
 
        ;;
5487
 
    esac
5488
 
    ;;
5489
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5490
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5491
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5492
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5493
 
    runpath_var='LD_RUN_PATH'
5494
 
 
5495
 
    case $cc_basename in
5496
 
      CC*)
5497
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5498
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5499
 
        ;;
5500
 
      *)
5501
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5502
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5503
 
        ;;
5504
 
    esac
5505
 
    ;;
5506
 
  sysv5* | sco3.2v5* | sco5v6*)
5507
 
    # Note: We can NOT use -z defs as we might desire, because we do not
5508
 
    # link with -lc, and that would cause any symbols used from libc to
5509
 
    # always be unresolved, which means just about no library would
5510
 
    # ever link correctly.  If we're not using GNU ld we use -z text
5511
 
    # though, which does catch some bad symbols but isn't as heavy-handed
5512
 
    # as -z defs.
5513
 
    # For security reasons, it is highly recommended that you always
5514
 
    # use absolute paths for naming shared libraries, and exclude the
5515
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
5516
 
    # requires that you compile everything twice, which is a pain.
5517
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
5518
 
    # non-empty value in the environment.  Most likely only useful for
5519
 
    # creating official distributions of packages.
5520
 
    # This is a hack until libtool officially supports absolute path
5521
 
    # names for shared libraries.
5522
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5523
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5524
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5525
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5526
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5527
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5528
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5529
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5530
 
    runpath_var='LD_RUN_PATH'
5531
 
 
5532
 
    case $cc_basename in
5533
 
      CC*)
5534
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5535
 
        _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'
5536
 
        ;;
5537
 
      *)
5538
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5539
 
        _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'
5540
 
        ;;
5541
 
    esac
5542
 
    ;;
5543
 
  tandem*)
5544
 
    case $cc_basename in
5545
 
      NCC*)
5546
 
        # NonStop-UX NCC 3.20
5547
 
        # FIXME: insert proper C++ library support
5548
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5549
 
        ;;
5550
 
      *)
5551
 
        # FIXME: insert proper C++ library support
5552
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5553
 
        ;;
5554
 
    esac
5555
 
    ;;
5556
 
  vxworks*)
5557
 
    # FIXME: insert proper C++ library support
5558
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5559
 
    ;;
5560
 
  *)
5561
 
    # FIXME: insert proper C++ library support
5562
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5563
 
    ;;
5564
 
esac
5565
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5566
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5567
 
 
5568
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5569
 
_LT_AC_TAGVAR(LD, $1)="$LD"
5570
 
 
5571
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
5572
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5573
 
AC_LIBTOOL_PROG_CC_C_O($1)
5574
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5575
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5576
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5577
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5578
 
 
5579
 
AC_LIBTOOL_CONFIG($1)
5580
 
 
5581
 
AC_LANG_POP
5582
 
CC=$lt_save_CC
5583
 
LDCXX=$LD
5584
 
LD=$lt_save_LD
5585
 
GCC=$lt_save_GCC
5586
 
with_gnu_ldcxx=$with_gnu_ld
5587
 
with_gnu_ld=$lt_save_with_gnu_ld
5588
 
lt_cv_path_LDCXX=$lt_cv_path_LD
5589
 
lt_cv_path_LD=$lt_save_path_LD
5590
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5591
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5592
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
5593
 
 
5594
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5595
 
# ------------------------------------
5596
 
# Figure out "hidden" library dependencies from verbose
5597
 
# compiler output when linking a shared library.
5598
 
# Parse the compiler output and extract the necessary
5599
 
# objects, libraries and library flags.
5600
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
5601
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5602
 
dnl we can't use the lt_simple_compile_test_code here,
5603
 
dnl because it contains code intended for an executable,
5604
 
dnl not a library.  It's possible we should let each
5605
 
dnl tag define a new lt_????_link_test_code variable,
5606
 
dnl but it's only used here...
5607
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5608
 
int a;
5609
 
void foo (void) { a = 0; }
5610
 
EOF
5611
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5612
 
class Foo
5613
 
{
5614
 
public:
5615
 
  Foo (void) { a = 0; }
5616
 
private:
5617
 
  int a;
5618
 
};
5619
 
EOF
5620
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5621
 
      subroutine foo
5622
 
      implicit none
5623
 
      integer*4 a
5624
 
      a=0
5625
 
      return
5626
 
      end
5627
 
EOF
5628
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5629
 
public class foo {
5630
 
  private int a;
5631
 
  public void bar (void) {
5632
 
    a = 0;
5633
 
  }
5634
 
};
5635
 
EOF
5636
 
])
5637
 
dnl Parse the compiler output and extract the necessary
5638
 
dnl objects, libraries and library flags.
5639
 
if AC_TRY_EVAL(ac_compile); then
5640
 
  # Parse the compiler output and extract the necessary
5641
 
  # objects, libraries and library flags.
5642
 
 
5643
 
  # Sentinel used to keep track of whether or not we are before
5644
 
  # the conftest object file.
5645
 
  pre_test_object_deps_done=no
5646
 
 
5647
 
  # The `*' in the case matches for architectures that use `case' in
5648
 
  # $output_verbose_cmd can trigger glob expansion during the loop
5649
 
  # eval without this substitution.
5650
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5651
 
 
5652
 
  for p in `eval $output_verbose_link_cmd`; do
5653
 
    case $p in
5654
 
 
5655
 
    -L* | -R* | -l*)
5656
 
       # Some compilers place space between "-{L,R}" and the path.
5657
 
       # Remove the space.
5658
 
       if test $p = "-L" \
5659
 
          || test $p = "-R"; then
5660
 
         prev=$p
5661
 
         continue
5662
 
       else
5663
 
         prev=
5664
 
       fi
5665
 
 
5666
 
       if test "$pre_test_object_deps_done" = no; then
5667
 
         case $p in
5668
 
         -L* | -R*)
5669
 
           # Internal compiler library paths should come after those
5670
 
           # provided the user.  The postdeps already come after the
5671
 
           # user supplied libs so there is no need to process them.
5672
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5673
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5674
 
           else
5675
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5676
 
           fi
5677
 
           ;;
5678
 
         # The "-l" case would never come before the object being
5679
 
         # linked, so don't bother handling this case.
5680
 
         esac
5681
 
       else
5682
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5683
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5684
 
         else
5685
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5686
 
         fi
5687
 
       fi
5688
 
       ;;
5689
 
 
5690
 
    *.$objext)
5691
 
       # This assumes that the test object file only shows up
5692
 
       # once in the compiler output.
5693
 
       if test "$p" = "conftest.$objext"; then
5694
 
         pre_test_object_deps_done=yes
5695
 
         continue
5696
 
       fi
5697
 
 
5698
 
       if test "$pre_test_object_deps_done" = no; then
5699
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5700
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
5701
 
         else
5702
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5703
 
         fi
5704
 
       else
5705
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5706
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5707
 
         else
5708
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5709
 
         fi
5710
 
       fi
5711
 
       ;;
5712
 
 
5713
 
    *) ;; # Ignore the rest.
5714
 
 
5715
 
    esac
5716
 
  done
5717
 
 
5718
 
  # Clean up.
5719
 
  rm -f a.out a.exe
5720
 
else
5721
 
  echo "libtool.m4: error: problem compiling $1 test program"
5722
 
fi
5723
 
 
5724
 
$rm -f confest.$objext
5725
 
 
5726
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5727
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5728
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
5729
 
fi
5730
 
 
5731
 
# PORTME: override above test on systems where it is broken
5732
 
ifelse([$1],[CXX],
5733
 
[case $host_os in
5734
 
interix[[3-9]]*)
5735
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
5736
 
  # hack all around it, let's just trust "g++" to DTRT.
5737
 
  _LT_AC_TAGVAR(predep_objects,$1)=
5738
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
5739
 
  _LT_AC_TAGVAR(postdeps,$1)=
5740
 
  ;;
5741
 
 
5742
 
linux*)
5743
 
  case `$CC -V 2>&1 | sed 5q` in
5744
 
  *Sun\ C*)
5745
 
    # Sun C++ 5.9
5746
 
    #
5747
 
    # The more standards-conforming stlport4 library is
5748
 
    # incompatible with the Cstd library. Avoid specifying
5749
 
    # it if it's in CXXFLAGS. Ignore libCrun as
5750
 
    # -library=stlport4 depends on it.
5751
 
    case " $CXX $CXXFLAGS " in
5752
 
    *" -library=stlport4 "*)
5753
 
      solaris_use_stlport4=yes
5754
 
      ;;
5755
 
    esac
5756
 
    if test "$solaris_use_stlport4" != yes; then
5757
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5758
 
    fi
5759
 
    ;;
5760
 
  esac
5761
 
  ;;
5762
 
 
5763
 
solaris*)
5764
 
  case $cc_basename in
5765
 
  CC*)
5766
 
    # The more standards-conforming stlport4 library is
5767
 
    # incompatible with the Cstd library. Avoid specifying
5768
 
    # it if it's in CXXFLAGS. Ignore libCrun as
5769
 
    # -library=stlport4 depends on it.
5770
 
    case " $CXX $CXXFLAGS " in
5771
 
    *" -library=stlport4 "*)
5772
 
      solaris_use_stlport4=yes
5773
 
      ;;
5774
 
    esac
5775
 
 
5776
 
    # Adding this requires a known-good setup of shared libraries for
5777
 
    # Sun compiler versions before 5.6, else PIC objects from an old
5778
 
    # archive will be linked into the output, leading to subtle bugs.
5779
 
    if test "$solaris_use_stlport4" != yes; then
5780
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5781
 
    fi
5782
 
    ;;
5783
 
  esac
5784
 
  ;;
5785
 
esac
5786
 
])
5787
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5788
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5789
 
esac
5790
 
])# AC_LIBTOOL_POSTDEP_PREDEP
5791
 
 
5792
 
# AC_LIBTOOL_LANG_F77_CONFIG
5793
 
# --------------------------
5794
 
# Ensure that the configuration vars for the C compiler are
5795
 
# suitably defined.  Those variables are subsequently used by
5796
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5797
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5798
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5799
 
[AC_REQUIRE([AC_PROG_F77])
5800
 
AC_LANG_PUSH(Fortran 77)
5801
 
 
5802
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5803
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5804
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5805
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5806
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5807
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5808
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5809
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5810
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5811
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5812
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5813
 
_LT_AC_TAGVAR(module_cmds, $1)=
5814
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5815
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5816
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5817
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5818
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5819
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5820
 
 
5821
 
# Source file extension for f77 test sources.
5822
 
ac_ext=f
5823
 
 
5824
 
# Object file extension for compiled f77 test sources.
5825
 
objext=o
5826
 
_LT_AC_TAGVAR(objext, $1)=$objext
5827
 
 
5828
 
# Code to be used in simple compile tests
5829
 
lt_simple_compile_test_code="\
5830
 
      subroutine t
5831
 
      return
5832
 
      end
5833
 
"
5834
 
 
5835
 
# Code to be used in simple link tests
5836
 
lt_simple_link_test_code="\
5837
 
      program t
5838
 
      end
5839
 
"
5840
 
 
5841
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5842
 
_LT_AC_SYS_COMPILER
5843
 
 
5844
 
# save warnings/boilerplate of simple test code
5845
 
_LT_COMPILER_BOILERPLATE
5846
 
_LT_LINKER_BOILERPLATE
5847
 
 
5848
 
# Allow CC to be a program name with arguments.
5849
 
lt_save_CC="$CC"
5850
 
CC=${F77-"f77"}
5851
 
compiler=$CC
5852
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5853
 
_LT_CC_BASENAME([$compiler])
5854
 
 
5855
 
AC_MSG_CHECKING([if libtool supports shared libraries])
5856
 
AC_MSG_RESULT([$can_build_shared])
5857
 
 
5858
 
AC_MSG_CHECKING([whether to build shared libraries])
5859
 
test "$can_build_shared" = "no" && enable_shared=no
5860
 
 
5861
 
# On AIX, shared libraries and static libraries use the same namespace, and
5862
 
# are all built from PIC.
5863
 
case $host_os in
5864
 
aix3*)
5865
 
  test "$enable_shared" = yes && enable_static=no
5866
 
  if test -n "$RANLIB"; then
5867
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5868
 
    postinstall_cmds='$RANLIB $lib'
5869
 
  fi
5870
 
  ;;
5871
 
aix[[4-9]]*)
5872
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5873
 
    test "$enable_shared" = yes && enable_static=no
5874
 
  fi
5875
 
  ;;
5876
 
esac
5877
 
AC_MSG_RESULT([$enable_shared])
5878
 
 
5879
 
AC_MSG_CHECKING([whether to build static libraries])
5880
 
# Make sure either enable_shared or enable_static is yes.
5881
 
test "$enable_shared" = yes || enable_static=yes
5882
 
AC_MSG_RESULT([$enable_static])
5883
 
 
5884
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
5885
 
_LT_AC_TAGVAR(LD, $1)="$LD"
5886
 
 
5887
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5888
 
AC_LIBTOOL_PROG_CC_C_O($1)
5889
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5890
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5891
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5892
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5893
 
 
5894
 
AC_LIBTOOL_CONFIG($1)
5895
 
 
5896
 
AC_LANG_POP
5897
 
CC="$lt_save_CC"
5898
 
])# AC_LIBTOOL_LANG_F77_CONFIG
5899
 
 
5900
 
 
5901
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
5902
 
# --------------------------
5903
 
# Ensure that the configuration vars for the C compiler are
5904
 
# suitably defined.  Those variables are subsequently used by
5905
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5906
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5907
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5908
 
[AC_LANG_SAVE
5909
 
 
5910
 
# Source file extension for Java test sources.
5911
 
ac_ext=java
5912
 
 
5913
 
# Object file extension for compiled Java test sources.
5914
 
objext=o
5915
 
_LT_AC_TAGVAR(objext, $1)=$objext
5916
 
 
5917
 
# Code to be used in simple compile tests
5918
 
lt_simple_compile_test_code="class foo {}"
5919
 
 
5920
 
# Code to be used in simple link tests
5921
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5922
 
 
5923
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5924
 
_LT_AC_SYS_COMPILER
5925
 
 
5926
 
# save warnings/boilerplate of simple test code
5927
 
_LT_COMPILER_BOILERPLATE
5928
 
_LT_LINKER_BOILERPLATE
5929
 
 
5930
 
# Allow CC to be a program name with arguments.
5931
 
lt_save_CC="$CC"
5932
 
CC=${GCJ-"gcj"}
5933
 
compiler=$CC
5934
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5935
 
_LT_CC_BASENAME([$compiler])
5936
 
 
5937
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5938
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5939
 
 
5940
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5941
 
 
5942
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5943
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5944
 
AC_LIBTOOL_PROG_CC_C_O($1)
5945
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5946
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5947
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5948
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5949
 
 
5950
 
AC_LIBTOOL_CONFIG($1)
5951
 
 
5952
 
AC_LANG_RESTORE
5953
 
CC="$lt_save_CC"
5954
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5955
 
 
5956
 
 
5957
 
# AC_LIBTOOL_LANG_RC_CONFIG
5958
 
# -------------------------
5959
 
# Ensure that the configuration vars for the Windows resource compiler are
5960
 
# suitably defined.  Those variables are subsequently used by
5961
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5962
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5963
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5964
 
[AC_LANG_SAVE
5965
 
 
5966
 
# Source file extension for RC test sources.
5967
 
ac_ext=rc
5968
 
 
5969
 
# Object file extension for compiled RC test sources.
5970
 
objext=o
5971
 
_LT_AC_TAGVAR(objext, $1)=$objext
5972
 
 
5973
 
# Code to be used in simple compile tests
5974
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5975
 
 
5976
 
# Code to be used in simple link tests
5977
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
5978
 
 
5979
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5980
 
_LT_AC_SYS_COMPILER
5981
 
 
5982
 
# save warnings/boilerplate of simple test code
5983
 
_LT_COMPILER_BOILERPLATE
5984
 
_LT_LINKER_BOILERPLATE
5985
 
 
5986
 
# Allow CC to be a program name with arguments.
5987
 
lt_save_CC="$CC"
5988
 
CC=${RC-"windres"}
5989
 
compiler=$CC
5990
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5991
 
_LT_CC_BASENAME([$compiler])
5992
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5993
 
 
5994
 
AC_LIBTOOL_CONFIG($1)
5995
 
 
5996
 
AC_LANG_RESTORE
5997
 
CC="$lt_save_CC"
5998
 
])# AC_LIBTOOL_LANG_RC_CONFIG
5999
 
 
6000
 
 
6001
 
# AC_LIBTOOL_CONFIG([TAGNAME])
6002
 
# ----------------------------
6003
 
# If TAGNAME is not passed, then create an initial libtool script
6004
 
# with a default configuration from the untagged config vars.  Otherwise
6005
 
# add code to config.status for appending the configuration named by
6006
 
# TAGNAME from the matching tagged config vars.
6007
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
6008
 
[# The else clause should only fire when bootstrapping the
6009
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
6010
 
# with your package, and you will get complaints that there are
6011
 
# no rules to generate ltmain.sh.
6012
 
if test -f "$ltmain"; then
6013
 
  # See if we are running on zsh, and set the options which allow our commands through
6014
 
  # without removal of \ escapes.
6015
 
  if test -n "${ZSH_VERSION+set}" ; then
6016
 
    setopt NO_GLOB_SUBST
6017
 
  fi
6018
 
  # Now quote all the things that may contain metacharacters while being
6019
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6020
 
  # variables and quote the copies for generation of the libtool script.
6021
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
6022
 
    SED SHELL STRIP \
6023
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6024
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6025
 
    deplibs_check_method reload_flag reload_cmds need_locks \
6026
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6027
 
    lt_cv_sys_global_symbol_to_c_name_address \
6028
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6029
 
    old_postinstall_cmds old_postuninstall_cmds \
6030
 
    _LT_AC_TAGVAR(compiler, $1) \
6031
 
    _LT_AC_TAGVAR(CC, $1) \
6032
 
    _LT_AC_TAGVAR(LD, $1) \
6033
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6034
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6035
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6036
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6037
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6038
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6039
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6040
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6041
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
6042
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6043
 
    _LT_AC_TAGVAR(predep_objects, $1) \
6044
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
6045
 
    _LT_AC_TAGVAR(predeps, $1) \
6046
 
    _LT_AC_TAGVAR(postdeps, $1) \
6047
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6048
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
6049
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
6050
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6051
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
6052
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6053
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6054
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6055
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
6056
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6057
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6058
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6059
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6060
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
6061
 
    _LT_AC_TAGVAR(module_cmds, $1) \
6062
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6063
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6064
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
6065
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
6066
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
6067
 
 
6068
 
    case $var in
6069
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6070
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6071
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
6072
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6073
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
6074
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6075
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6076
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6077
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
6078
 
    postinstall_cmds | postuninstall_cmds | \
6079
 
    old_postinstall_cmds | old_postuninstall_cmds | \
6080
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6081
 
      # Double-quote double-evaled strings.
6082
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6083
 
      ;;
6084
 
    *)
6085
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6086
 
      ;;
6087
 
    esac
6088
 
  done
6089
 
 
6090
 
  case $lt_echo in
6091
 
  *'\[$]0 --fallback-echo"')
6092
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6093
 
    ;;
6094
 
  esac
6095
 
 
6096
 
ifelse([$1], [],
6097
 
  [cfgfile="${ofile}T"
6098
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6099
 
  $rm -f "$cfgfile"
6100
 
  AC_MSG_NOTICE([creating $ofile])],
6101
 
  [cfgfile="$ofile"])
6102
 
 
6103
 
  cat <<__EOF__ >> "$cfgfile"
6104
 
ifelse([$1], [],
6105
 
[#! $SHELL
6106
 
 
6107
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6108
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6109
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6110
 
#
6111
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6112
 
# Free Software Foundation, Inc.
6113
 
#
6114
 
# This file is part of GNU Libtool:
6115
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6116
 
#
6117
 
# This program is free software; you can redistribute it and/or modify
6118
 
# it under the terms of the GNU General Public License as published by
6119
 
# the Free Software Foundation; either version 2 of the License, or
6120
 
# (at your option) any later version.
6121
 
#
6122
 
# This program is distributed in the hope that it will be useful, but
6123
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
6124
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6125
 
# General Public License for more details.
6126
 
#
6127
 
# You should have received a copy of the GNU General Public License
6128
 
# along with this program; if not, write to the Free Software
6129
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6130
 
#
6131
 
# As a special exception to the GNU General Public License, if you
6132
 
# distribute this file as part of a program that contains a
6133
 
# configuration script generated by Autoconf, you may include it under
6134
 
# the same distribution terms that you use for the rest of that program.
6135
 
 
6136
 
# A sed program that does not truncate output.
6137
 
SED=$lt_SED
6138
 
 
6139
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6140
 
Xsed="$SED -e 1s/^X//"
6141
 
 
6142
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
6143
 
# if CDPATH is set.
6144
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6145
 
 
6146
 
# The names of the tagged configurations supported by this script.
6147
 
available_tags=
6148
 
 
6149
 
# ### BEGIN LIBTOOL CONFIG],
6150
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6151
 
 
6152
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6153
 
 
6154
 
# Shell to use when invoking shell scripts.
6155
 
SHELL=$lt_SHELL
6156
 
 
6157
 
# Whether or not to build shared libraries.
6158
 
build_libtool_libs=$enable_shared
6159
 
 
6160
 
# Whether or not to build static libraries.
6161
 
build_old_libs=$enable_static
6162
 
 
6163
 
# Whether or not to add -lc for building shared libraries.
6164
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6165
 
 
6166
 
# Whether or not to disallow shared libs when runtime libs are static
6167
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6168
 
 
6169
 
# Whether or not to optimize for fast installation.
6170
 
fast_install=$enable_fast_install
6171
 
 
6172
 
# The host system.
6173
 
host_alias=$host_alias
6174
 
host=$host
6175
 
host_os=$host_os
6176
 
 
6177
 
# The build system.
6178
 
build_alias=$build_alias
6179
 
build=$build
6180
 
build_os=$build_os
6181
 
 
6182
 
# An echo program that does not interpret backslashes.
6183
 
echo=$lt_echo
6184
 
 
6185
 
# The archiver.
6186
 
AR=$lt_AR
6187
 
AR_FLAGS=$lt_AR_FLAGS
6188
 
 
6189
 
# A C compiler.
6190
 
LTCC=$lt_LTCC
6191
 
 
6192
 
# LTCC compiler flags.
6193
 
LTCFLAGS=$lt_LTCFLAGS
6194
 
 
6195
 
# A language-specific compiler.
6196
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6197
 
 
6198
 
# Is the compiler the GNU C compiler?
6199
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6200
 
 
6201
 
# An ERE matcher.
6202
 
EGREP=$lt_EGREP
6203
 
 
6204
 
# The linker used to build libraries.
6205
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6206
 
 
6207
 
# Whether we need hard or soft links.
6208
 
LN_S=$lt_LN_S
6209
 
 
6210
 
# A BSD-compatible nm program.
6211
 
NM=$lt_NM
6212
 
 
6213
 
# A symbol stripping program
6214
 
STRIP=$lt_STRIP
6215
 
 
6216
 
# Used to examine libraries when file_magic_cmd begins "file"
6217
 
MAGIC_CMD=$MAGIC_CMD
6218
 
 
6219
 
# Used on cygwin: DLL creation program.
6220
 
DLLTOOL="$DLLTOOL"
6221
 
 
6222
 
# Used on cygwin: object dumper.
6223
 
OBJDUMP="$OBJDUMP"
6224
 
 
6225
 
# Used on cygwin: assembler.
6226
 
AS="$AS"
6227
 
 
6228
 
# The name of the directory that contains temporary libtool files.
6229
 
objdir=$objdir
6230
 
 
6231
 
# How to create reloadable object files.
6232
 
reload_flag=$lt_reload_flag
6233
 
reload_cmds=$lt_reload_cmds
6234
 
 
6235
 
# How to pass a linker flag through the compiler.
6236
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6237
 
 
6238
 
# Object file suffix (normally "o").
6239
 
objext="$ac_objext"
6240
 
 
6241
 
# Old archive suffix (normally "a").
6242
 
libext="$libext"
6243
 
 
6244
 
# Shared library suffix (normally ".so").
6245
 
shrext_cmds='$shrext_cmds'
6246
 
 
6247
 
# Executable file suffix (normally "").
6248
 
exeext="$exeext"
6249
 
 
6250
 
# Additional compiler flags for building library objects.
6251
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6252
 
pic_mode=$pic_mode
6253
 
 
6254
 
# What is the maximum length of a command?
6255
 
max_cmd_len=$lt_cv_sys_max_cmd_len
6256
 
 
6257
 
# Does compiler simultaneously support -c and -o options?
6258
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6259
 
 
6260
 
# Must we lock files when doing compilation?
6261
 
need_locks=$lt_need_locks
6262
 
 
6263
 
# Do we need the lib prefix for modules?
6264
 
need_lib_prefix=$need_lib_prefix
6265
 
 
6266
 
# Do we need a version for libraries?
6267
 
need_version=$need_version
6268
 
 
6269
 
# Whether dlopen is supported.
6270
 
dlopen_support=$enable_dlopen
6271
 
 
6272
 
# Whether dlopen of programs is supported.
6273
 
dlopen_self=$enable_dlopen_self
6274
 
 
6275
 
# Whether dlopen of statically linked programs is supported.
6276
 
dlopen_self_static=$enable_dlopen_self_static
6277
 
 
6278
 
# Compiler flag to prevent dynamic linking.
6279
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6280
 
 
6281
 
# Compiler flag to turn off builtin functions.
6282
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6283
 
 
6284
 
# Compiler flag to allow reflexive dlopens.
6285
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6286
 
 
6287
 
# Compiler flag to generate shared objects directly from archives.
6288
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6289
 
 
6290
 
# Compiler flag to generate thread-safe objects.
6291
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6292
 
 
6293
 
# Library versioning type.
6294
 
version_type=$version_type
6295
 
 
6296
 
# Format of library name prefix.
6297
 
libname_spec=$lt_libname_spec
6298
 
 
6299
 
# List of archive names.  First name is the real one, the rest are links.
6300
 
# The last name is the one that the linker finds with -lNAME.
6301
 
library_names_spec=$lt_library_names_spec
6302
 
 
6303
 
# The coded name of the library, if different from the real name.
6304
 
soname_spec=$lt_soname_spec
6305
 
 
6306
 
# Commands used to build and install an old-style archive.
6307
 
RANLIB=$lt_RANLIB
6308
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6309
 
old_postinstall_cmds=$lt_old_postinstall_cmds
6310
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6311
 
 
6312
 
# Create an old-style archive from a shared archive.
6313
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6314
 
 
6315
 
# Create a temporary old-style archive to link instead of a shared archive.
6316
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6317
 
 
6318
 
# Commands used to build and install a shared archive.
6319
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6320
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6321
 
postinstall_cmds=$lt_postinstall_cmds
6322
 
postuninstall_cmds=$lt_postuninstall_cmds
6323
 
 
6324
 
# Commands used to build a loadable module (assumed same as above if empty)
6325
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6326
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6327
 
 
6328
 
# Commands to strip libraries.
6329
 
old_striplib=$lt_old_striplib
6330
 
striplib=$lt_striplib
6331
 
 
6332
 
# Dependencies to place before the objects being linked to create a
6333
 
# shared library.
6334
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6335
 
 
6336
 
# Dependencies to place after the objects being linked to create a
6337
 
# shared library.
6338
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6339
 
 
6340
 
# Dependencies to place before the objects being linked to create a
6341
 
# shared library.
6342
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6343
 
 
6344
 
# Dependencies to place after the objects being linked to create a
6345
 
# shared library.
6346
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6347
 
 
6348
 
# The directories searched by this compiler when creating a shared
6349
 
# library
6350
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
6351
 
 
6352
 
# The library search path used internally by the compiler when linking
6353
 
# a shared library.
6354
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6355
 
 
6356
 
# Method to check whether dependent libraries are shared objects.
6357
 
deplibs_check_method=$lt_deplibs_check_method
6358
 
 
6359
 
# Command to use when deplibs_check_method == file_magic.
6360
 
file_magic_cmd=$lt_file_magic_cmd
6361
 
 
6362
 
# Flag that allows shared libraries with undefined symbols to be built.
6363
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6364
 
 
6365
 
# Flag that forces no undefined symbols.
6366
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6367
 
 
6368
 
# Commands used to finish a libtool library installation in a directory.
6369
 
finish_cmds=$lt_finish_cmds
6370
 
 
6371
 
# Same as above, but a single script fragment to be evaled but not shown.
6372
 
finish_eval=$lt_finish_eval
6373
 
 
6374
 
# Take the output of nm and produce a listing of raw symbols and C names.
6375
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6376
 
 
6377
 
# Transform the output of nm in a proper C declaration
6378
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6379
 
 
6380
 
# Transform the output of nm in a C name address pair
6381
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6382
 
 
6383
 
# This is the shared library runtime path variable.
6384
 
runpath_var=$runpath_var
6385
 
 
6386
 
# This is the shared library path variable.
6387
 
shlibpath_var=$shlibpath_var
6388
 
 
6389
 
# Is shlibpath searched before the hard-coded library search path?
6390
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6391
 
 
6392
 
# How to hardcode a shared library path into an executable.
6393
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6394
 
 
6395
 
# Whether we should hardcode library paths into libraries.
6396
 
hardcode_into_libs=$hardcode_into_libs
6397
 
 
6398
 
# Flag to hardcode \$libdir into a binary during linking.
6399
 
# This must work even if \$libdir does not exist.
6400
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6401
 
 
6402
 
# If ld is used when linking, flag to hardcode \$libdir into
6403
 
# a binary during linking. This must work even if \$libdir does
6404
 
# not exist.
6405
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6406
 
 
6407
 
# Whether we need a single -rpath flag with a separated argument.
6408
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6409
 
 
6410
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6411
 
# resulting binary.
6412
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6413
 
 
6414
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6415
 
# resulting binary.
6416
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6417
 
 
6418
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6419
 
# the resulting binary.
6420
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6421
 
 
6422
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
6423
 
# and all subsequent libraries and executables linked against it.
6424
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6425
 
 
6426
 
# Variables whose values should be saved in libtool wrapper scripts and
6427
 
# restored at relink time.
6428
 
variables_saved_for_relink="$variables_saved_for_relink"
6429
 
 
6430
 
# Whether libtool must link a program against all its dependency libraries.
6431
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6432
 
 
6433
 
# Compile-time system search path for libraries
6434
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6435
 
 
6436
 
# Run-time system search path for libraries
6437
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6438
 
 
6439
 
# Fix the shell variable \$srcfile for the compiler.
6440
 
fix_srcfile_path=$lt_fix_srcfile_path
6441
 
 
6442
 
# Set to yes if exported symbols are required.
6443
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6444
 
 
6445
 
# The commands to list exported symbols.
6446
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6447
 
 
6448
 
# The commands to extract the exported symbol list from a shared archive.
6449
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6450
 
 
6451
 
# Symbols that should not be listed in the preloaded symbols.
6452
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6453
 
 
6454
 
# Symbols that must always be exported.
6455
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6456
 
 
6457
 
ifelse([$1],[],
6458
 
[# ### END LIBTOOL CONFIG],
6459
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
6460
 
 
6461
 
__EOF__
6462
 
 
6463
 
ifelse([$1],[], [
6464
 
  case $host_os in
6465
 
  aix3*)
6466
 
    cat <<\EOF >> "$cfgfile"
6467
 
 
6468
 
# AIX sometimes has problems with the GCC collect2 program.  For some
6469
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
6470
 
# vanish in a puff of smoke.
6471
 
if test "X${COLLECT_NAMES+set}" != Xset; then
6472
 
  COLLECT_NAMES=
6473
 
  export COLLECT_NAMES
6474
 
fi
6475
 
EOF
6476
 
    ;;
6477
 
  esac
6478
 
 
6479
 
  # We use sed instead of cat because bash on DJGPP gets confused if
6480
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6481
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
6482
 
  # is reportedly fixed, but why not run on old versions too?
6483
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6484
 
 
6485
 
  mv -f "$cfgfile" "$ofile" || \
6486
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6487
 
  chmod +x "$ofile"
6488
 
])
6489
 
else
6490
 
  # If there is no Makefile yet, we rely on a make rule to execute
6491
 
  # `config.status --recheck' to rerun these tests and create the
6492
 
  # libtool script then.
6493
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6494
 
  if test -f "$ltmain_in"; then
6495
 
    test -f Makefile && make "$ltmain"
6496
 
  fi
6497
 
fi
6498
 
])# AC_LIBTOOL_CONFIG
6499
 
 
6500
 
 
6501
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6502
 
# -------------------------------------------
6503
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6504
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6505
 
 
6506
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4158
AC_SUBST([LIBM])
 
4159
])# LT_LIB_M
 
4160
 
 
4161
# Old name:
 
4162
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4163
dnl aclocal-1.4 backwards compatibility:
 
4164
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4165
 
 
4166
 
 
4167
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4168
# -------------------------------
 
4169
m4_defun([_LT_COMPILER_NO_RTTI],
 
4170
[m4_require([_LT_TAG_COMPILER])dnl
 
4171
 
 
4172
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6507
4173
 
6508
4174
if test "$GCC" = yes; then
6509
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4175
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6510
4176
 
6511
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4177
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6512
4178
    lt_cv_prog_compiler_rtti_exceptions,
6513
4179
    [-fno-rtti -fno-exceptions], [],
6514
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4180
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6515
4181
fi
6516
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6517
 
 
6518
 
 
6519
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6520
 
# ---------------------------------
6521
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6522
 
[AC_REQUIRE([AC_CANONICAL_HOST])
6523
 
AC_REQUIRE([LT_AC_PROG_SED])
6524
 
AC_REQUIRE([AC_PROG_NM])
6525
 
AC_REQUIRE([AC_OBJEXT])
 
4182
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4183
        [Compiler flag to turn off builtin functions])
 
4184
])# _LT_COMPILER_NO_RTTI
 
4185
 
 
4186
 
 
4187
# _LT_CMD_GLOBAL_SYMBOLS
 
4188
# ----------------------
 
4189
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4190
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4191
AC_REQUIRE([AC_PROG_CC])dnl
 
4192
AC_REQUIRE([LT_PATH_NM])dnl
 
4193
AC_REQUIRE([LT_PATH_LD])dnl
 
4194
m4_require([_LT_DECL_SED])dnl
 
4195
m4_require([_LT_DECL_EGREP])dnl
 
4196
m4_require([_LT_TAG_COMPILER])dnl
 
4197
 
6526
4198
# Check for command to grab the raw symbol name followed by C symbol from nm.
6527
4199
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6528
4200
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6536
4208
# Regexp to match symbols that can be accessed directly from C.
6537
4209
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6538
4210
 
6539
 
# Transform an extracted symbol line into a proper C declaration
6540
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6541
 
 
6542
 
# Transform an extracted symbol line into symbol name and symbol address
6543
 
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'"
6544
 
 
6545
4211
# Define system-specific variables.
6546
4212
case $host_os in
6547
4213
aix*)
6548
4214
  symcode='[[BCDT]]'
6549
4215
  ;;
6550
 
cygwin* | mingw* | pw32*)
 
4216
cygwin* | mingw* | pw32* | cegcc*)
6551
4217
  symcode='[[ABCDGISTW]]'
6552
4218
  ;;
6553
 
hpux*) # Its linker distinguishes data from code symbols
 
4219
hpux*)
6554
4220
  if test "$host_cpu" = ia64; then
6555
4221
    symcode='[[ABCDEGRST]]'
6556
4222
  fi
6557
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6558
 
  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'"
6559
 
  ;;
6560
 
linux* | k*bsd*-gnu)
6561
 
  if test "$host_cpu" = ia64; then
6562
 
    symcode='[[ABCDGIRSTW]]'
6563
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564
 
    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'"
6565
 
  fi
6566
4223
  ;;
6567
4224
irix* | nonstopux*)
6568
4225
  symcode='[[BCDEGRST]]'
6587
4244
  ;;
6588
4245
esac
6589
4246
 
 
4247
# If we're using GNU nm, then use its standard symbol codes.
 
4248
case `$NM -V 2>&1` in
 
4249
*GNU* | *'with BFD'*)
 
4250
  symcode='[[ABCDGIRSTW]]' ;;
 
4251
esac
 
4252
 
 
4253
# Transform an extracted symbol line into a proper C declaration.
 
4254
# Some systems (esp. on ia64) link data and code symbols differently,
 
4255
# so use this general approach.
 
4256
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4257
 
 
4258
# Transform an extracted symbol line into symbol name and symbol address
 
4259
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4260
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'"
 
4261
 
6590
4262
# Handle CRLF in mingw tool chain
6591
4263
opt_cr=
6592
4264
case $build_os in
6593
4265
mingw*)
6594
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4266
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6595
4267
  ;;
6596
4268
esac
6597
4269
 
6598
 
# If we're using GNU nm, then use its standard symbol codes.
6599
 
case `$NM -V 2>&1` in
6600
 
*GNU* | *'with BFD'*)
6601
 
  symcode='[[ABCDGIRSTW]]' ;;
6602
 
esac
6603
 
 
6604
 
# Try without a prefix undercore, then with it.
 
4270
# Try without a prefix underscore, then with it.
6605
4271
for ac_symprfx in "" "_"; do
6606
4272
 
6607
4273
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6608
4274
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6609
4275
 
6610
4276
  # Write the raw and C identifiers.
6611
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4277
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4278
    # Fake it for dumpbin and say T for any non-static function
 
4279
    # and D for any global variable.
 
4280
    # Also find C++ and __fastcall symbols from MSVC++,
 
4281
    # which start with @ or ?.
 
4282
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4283
"     {last_section=section; section=\$ 3};"\
 
4284
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4285
"     \$ 0!~/External *\|/{next};"\
 
4286
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4287
"     {if(hide[section]) next};"\
 
4288
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4289
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4290
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4291
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4292
"     ' prfx=^$ac_symprfx]"
 
4293
  else
 
4294
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4295
  fi
6612
4296
 
6613
4297
  # Check to see that the pipe works correctly.
6614
4298
  pipe_works=no
6615
4299
 
6616
4300
  rm -f conftest*
6617
 
  cat > conftest.$ac_ext <<EOF
 
4301
  cat > conftest.$ac_ext <<_LT_EOF
6618
4302
#ifdef __cplusplus
6619
4303
extern "C" {
6620
4304
#endif
6621
4305
char nm_test_var;
6622
 
void nm_test_func(){}
 
4306
void nm_test_func(void);
 
4307
void nm_test_func(void){}
6623
4308
#ifdef __cplusplus
6624
4309
}
6625
4310
#endif
6626
4311
int main(){nm_test_var='a';nm_test_func();return(0);}
6627
 
EOF
 
4312
_LT_EOF
6628
4313
 
6629
4314
  if AC_TRY_EVAL(ac_compile); then
6630
4315
    # Now try to grab the symbols.
6638
4323
      fi
6639
4324
 
6640
4325
      # Make sure that we snagged all the symbols we need.
6641
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643
 
          cat <<EOF > conftest.$ac_ext
 
4326
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4327
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4328
          cat <<_LT_EOF > conftest.$ac_ext
6644
4329
#ifdef __cplusplus
6645
4330
extern "C" {
6646
4331
#endif
6647
4332
 
6648
 
EOF
 
4333
_LT_EOF
6649
4334
          # Now generate the symbol file.
6650
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6651
 
 
6652
 
          cat <<EOF >> conftest.$ac_ext
6653
 
#if defined (__STDC__) && __STDC__
6654
 
# define lt_ptr_t void *
6655
 
#else
6656
 
# define lt_ptr_t char *
6657
 
# define const
6658
 
#endif
6659
 
 
6660
 
/* The mapping between symbol names and symbols. */
 
4335
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4336
 
 
4337
          cat <<_LT_EOF >> conftest.$ac_ext
 
4338
 
 
4339
/* The mapping between symbol names and symbols.  */
6661
4340
const struct {
6662
4341
  const char *name;
6663
 
  lt_ptr_t address;
 
4342
  void       *address;
6664
4343
}
6665
 
lt_preloaded_symbols[[]] =
 
4344
lt__PROGRAM__LTX_preloaded_symbols[[]] =
6666
4345
{
6667
 
EOF
6668
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669
 
          cat <<\EOF >> conftest.$ac_ext
6670
 
  {0, (lt_ptr_t) 0}
 
4346
  { "@PROGRAM@", (void *) 0 },
 
4347
_LT_EOF
 
4348
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4349
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4350
  {0, (void *) 0}
6671
4351
};
6672
4352
 
 
4353
/* This works around a problem in FreeBSD linker */
 
4354
#ifdef FREEBSD_WORKAROUND
 
4355
static const void *lt_preloaded_setup() {
 
4356
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4357
}
 
4358
#endif
 
4359
 
6673
4360
#ifdef __cplusplus
6674
4361
}
6675
4362
#endif
6676
 
EOF
 
4363
_LT_EOF
6677
4364
          # Now try linking the two files.
6678
4365
          mv conftest.$ac_objext conftstm.$ac_objext
6679
4366
          lt_save_LIBS="$LIBS"
6680
4367
          lt_save_CFLAGS="$CFLAGS"
6681
4368
          LIBS="conftstm.$ac_objext"
6682
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4369
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6683
4370
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6684
4371
            pipe_works=yes
6685
4372
          fi
6716
4403
else
6717
4404
  AC_MSG_RESULT(ok)
6718
4405
fi
6719
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6720
 
 
6721
 
 
6722
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6723
 
# ---------------------------------------
6724
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6725
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6726
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6727
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4406
 
 
4407
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4408
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4409
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4410
    [Transform the output of nm in a proper C declaration])
 
4411
_LT_DECL([global_symbol_to_c_name_address],
 
4412
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4413
    [Transform the output of nm in a C name address pair])
 
4414
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4415
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4416
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4417
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4418
 
 
4419
 
 
4420
# _LT_COMPILER_PIC([TAGNAME])
 
4421
# ---------------------------
 
4422
m4_defun([_LT_COMPILER_PIC],
 
4423
[m4_require([_LT_TAG_COMPILER])dnl
 
4424
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4425
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4426
_LT_TAGVAR(lt_prog_compiler_static, $1)=
6728
4427
 
6729
4428
AC_MSG_CHECKING([for $compiler option to produce PIC])
6730
 
 ifelse([$1],[CXX],[
 
4429
m4_if([$1], [CXX], [
6731
4430
  # C++ specific cases for pic, static, wl, etc.
6732
4431
  if test "$GXX" = yes; then
6733
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6734
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4432
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4433
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6735
4434
 
6736
4435
    case $host_os in
6737
4436
    aix*)
6738
4437
      # All AIX code is PIC.
6739
4438
      if test "$host_cpu" = ia64; then
6740
4439
        # AIX 5 now supports IA64 processor
6741
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4440
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6742
4441
      fi
6743
4442
      ;;
 
4443
 
6744
4444
    amigaos*)
6745
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6746
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6747
 
      # like `-m68040'.
6748
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4445
      case $host_cpu in
 
4446
      powerpc)
 
4447
            # see comment about AmigaOS4 .so support
 
4448
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4449
        ;;
 
4450
      m68k)
 
4451
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4452
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4453
            # like `-m68040'.
 
4454
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4455
        ;;
 
4456
      esac
6749
4457
      ;;
 
4458
 
6750
4459
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6751
4460
      # PIC is the default for these OSes.
6752
4461
      ;;
6753
 
    mingw* | cygwin* | os2* | pw32*)
 
4462
    mingw* | cygwin* | os2* | pw32* | cegcc*)
6754
4463
      # This hack is so that the source file can tell whether it is being
6755
4464
      # built for inclusion in a dll (and should export symbols for example).
6756
4465
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6757
4466
      # (--disable-auto-import) libraries
6758
4467
      m4_if([$1], [GCJ], [],
6759
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4468
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6760
4469
      ;;
6761
4470
    darwin* | rhapsody*)
6762
4471
      # PIC is the default on this platform
6763
4472
      # Common symbols not allowed in MH_DYLIB files
6764
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4473
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6765
4474
      ;;
6766
4475
    *djgpp*)
6767
4476
      # DJGPP does not support shared libraries at all
6768
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4477
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6769
4478
      ;;
6770
4479
    interix[[3-9]]*)
6771
4480
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6773
4482
      ;;
6774
4483
    sysv4*MP*)
6775
4484
      if test -d /usr/nec; then
6776
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4485
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6777
4486
      fi
6778
4487
      ;;
6779
4488
    hpux*)
6780
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6781
 
      # not for PA HP-UX.
 
4489
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4490
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4491
      # sets the default TLS model and affects inlining.
6782
4492
      case $host_cpu in
6783
 
      hppa*64*|ia64*)
 
4493
      hppa*64*)
6784
4494
        ;;
6785
4495
      *)
6786
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4496
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6787
4497
        ;;
6788
4498
      esac
6789
4499
      ;;
 
4500
    *qnx* | *nto*)
 
4501
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4502
      # it will coredump.
 
4503
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4504
      ;;
6790
4505
    *)
6791
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4506
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6792
4507
      ;;
6793
4508
    esac
6794
4509
  else
6797
4512
        # All AIX code is PIC.
6798
4513
        if test "$host_cpu" = ia64; then
6799
4514
          # AIX 5 now supports IA64 processor
6800
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4515
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6801
4516
        else
6802
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4517
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6803
4518
        fi
6804
4519
        ;;
6805
4520
      chorus*)
6806
4521
        case $cc_basename in
6807
4522
        cxch68*)
6808
4523
          # Green Hills C++ Compiler
6809
 
          # _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"
 
4524
          # _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"
6810
4525
          ;;
6811
4526
        esac
6812
4527
        ;;
6813
 
       darwin*)
6814
 
         # PIC is the default on this platform
6815
 
         # Common symbols not allowed in MH_DYLIB files
6816
 
         case $cc_basename in
6817
 
           xlc*)
6818
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6819
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6820
 
           ;;
6821
 
         esac
6822
 
       ;;
6823
4528
      dgux*)
6824
4529
        case $cc_basename in
6825
4530
          ec++*)
6826
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4531
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6827
4532
            ;;
6828
4533
          ghcx*)
6829
4534
            # Green Hills C++ Compiler
6830
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4535
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6831
4536
            ;;
6832
4537
          *)
6833
4538
            ;;
6839
4544
      hpux9* | hpux10* | hpux11*)
6840
4545
        case $cc_basename in
6841
4546
          CC*)
6842
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6843
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4547
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4548
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6844
4549
            if test "$host_cpu" != ia64; then
6845
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4550
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6846
4551
            fi
6847
4552
            ;;
6848
4553
          aCC*)
6849
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6850
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4554
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4555
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6851
4556
            case $host_cpu in
6852
4557
            hppa*64*|ia64*)
6853
4558
              # +Z the default
6854
4559
              ;;
6855
4560
            *)
6856
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4561
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6857
4562
              ;;
6858
4563
            esac
6859
4564
            ;;
6868
4573
      irix5* | irix6* | nonstopux*)
6869
4574
        case $cc_basename in
6870
4575
          CC*)
6871
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6872
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4576
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4577
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6873
4578
            # CC pic flag -KPIC is the default.
6874
4579
            ;;
6875
4580
          *)
6880
4585
        case $cc_basename in
6881
4586
          KCC*)
6882
4587
            # KAI C++ Compiler
6883
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6884
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6885
 
            ;;
6886
 
          icpc* | ecpc*)
6887
 
            # Intel C++
6888
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6889
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6890
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4588
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4589
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4590
            ;;
 
4591
          ecpc* )
 
4592
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4593
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4594
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4595
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4596
            ;;
 
4597
          icpc* )
 
4598
            # Intel C++, used to be incompatible with GCC.
 
4599
            # ICC 10 doesn't accept -KPIC any more.
 
4600
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4601
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4602
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6891
4603
            ;;
6892
4604
          pgCC* | pgcpp*)
6893
 
            # Portland Group C++ compiler.
6894
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6895
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6896
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4605
            # Portland Group C++ compiler
 
4606
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4607
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4608
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6897
4609
            ;;
6898
4610
          cxx*)
6899
4611
            # Compaq C++
6900
4612
            # Make sure the PIC flag is empty.  It appears that all Alpha
6901
4613
            # Linux and Compaq Tru64 Unix objects are PIC.
6902
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6903
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4614
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4615
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4616
            ;;
 
4617
          xlc* | xlC*)
 
4618
            # IBM XL 8.0 on PPC
 
4619
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4620
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4621
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6904
4622
            ;;
6905
4623
          *)
6906
4624
            case `$CC -V 2>&1 | sed 5q` in
6907
4625
            *Sun\ C*)
6908
4626
              # Sun C++ 5.9
6909
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6910
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6911
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4627
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4628
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4629
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6912
4630
              ;;
6913
4631
            esac
6914
4632
            ;;
6921
4639
      mvs*)
6922
4640
        case $cc_basename in
6923
4641
          cxx*)
6924
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4642
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6925
4643
            ;;
6926
4644
          *)
6927
4645
            ;;
6928
4646
        esac
6929
4647
        ;;
6930
 
      netbsd*)
 
4648
      netbsd* | netbsdelf*-gnu)
6931
4649
        ;;
 
4650
      *qnx* | *nto*)
 
4651
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4652
        # it will coredump.
 
4653
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4654
        ;;
6932
4655
      osf3* | osf4* | osf5*)
6933
4656
        case $cc_basename in
6934
4657
          KCC*)
6935
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4658
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6936
4659
            ;;
6937
4660
          RCC*)
6938
4661
            # Rational C++ 2.4.1
6939
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4662
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6940
4663
            ;;
6941
4664
          cxx*)
6942
4665
            # Digital/Compaq C++
6943
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4666
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6944
4667
            # Make sure the PIC flag is empty.  It appears that all Alpha
6945
4668
            # Linux and Compaq Tru64 Unix objects are PIC.
6946
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6947
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4669
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4670
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6948
4671
            ;;
6949
4672
          *)
6950
4673
            ;;
6956
4679
        case $cc_basename in
6957
4680
          CC*)
6958
4681
            # Sun C++ 4.2, 5.x and Centerline C++
6959
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6960
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6961
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4682
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4683
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4684
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6962
4685
            ;;
6963
4686
          gcx*)
6964
4687
            # Green Hills C++ Compiler
6965
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4688
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6966
4689
            ;;
6967
4690
          *)
6968
4691
            ;;
6972
4695
        case $cc_basename in
6973
4696
          CC*)
6974
4697
            # Sun C++ 4.x
6975
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6976
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4698
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4699
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6977
4700
            ;;
6978
4701
          lcc*)
6979
4702
            # Lucid
6980
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4703
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6981
4704
            ;;
6982
4705
          *)
6983
4706
            ;;
6984
4707
        esac
6985
4708
        ;;
 
4709
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4710
        case $cc_basename in
 
4711
          CC*)
 
4712
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4713
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4714
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4715
            ;;
 
4716
        esac
 
4717
        ;;
6986
4718
      tandem*)
6987
4719
        case $cc_basename in
6988
4720
          NCC*)
6989
4721
            # NonStop-UX NCC 3.20
6990
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4722
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6991
4723
            ;;
6992
4724
          *)
6993
4725
            ;;
6994
4726
        esac
6995
4727
        ;;
6996
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6997
 
        case $cc_basename in
6998
 
          CC*)
6999
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7000
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7001
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7002
 
            ;;
7003
 
        esac
7004
 
        ;;
7005
4728
      vxworks*)
7006
4729
        ;;
7007
4730
      *)
7008
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4731
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7009
4732
        ;;
7010
4733
    esac
7011
4734
  fi
7012
4735
],
7013
4736
[
7014
4737
  if test "$GCC" = yes; then
7015
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7016
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4738
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4739
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7017
4740
 
7018
4741
    case $host_os in
7019
4742
      aix*)
7020
4743
      # All AIX code is PIC.
7021
4744
      if test "$host_cpu" = ia64; then
7022
4745
        # AIX 5 now supports IA64 processor
7023
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4746
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7024
4747
      fi
7025
4748
      ;;
7026
4749
 
7027
4750
    amigaos*)
7028
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7029
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7030
 
      # like `-m68040'.
7031
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4751
      case $host_cpu in
 
4752
      powerpc)
 
4753
            # see comment about AmigaOS4 .so support
 
4754
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4755
        ;;
 
4756
      m68k)
 
4757
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4758
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4759
            # like `-m68040'.
 
4760
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4761
        ;;
 
4762
      esac
7032
4763
      ;;
7033
4764
 
7034
4765
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7035
4766
      # PIC is the default for these OSes.
7036
4767
      ;;
7037
4768
 
7038
 
    mingw* | cygwin* | pw32* | os2*)
 
4769
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7039
4770
      # This hack is so that the source file can tell whether it is being
7040
4771
      # built for inclusion in a dll (and should export symbols for example).
7041
4772
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7042
4773
      # (--disable-auto-import) libraries
7043
4774
      m4_if([$1], [GCJ], [],
7044
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4775
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7045
4776
      ;;
7046
4777
 
7047
4778
    darwin* | rhapsody*)
7048
4779
      # PIC is the default on this platform
7049
4780
      # Common symbols not allowed in MH_DYLIB files
7050
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4781
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4782
      ;;
 
4783
 
 
4784
    hpux*)
 
4785
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4786
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4787
      # sets the default TLS model and affects inlining.
 
4788
      case $host_cpu in
 
4789
      hppa*64*)
 
4790
        # +Z the default
 
4791
        ;;
 
4792
      *)
 
4793
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4794
        ;;
 
4795
      esac
7051
4796
      ;;
7052
4797
 
7053
4798
    interix[[3-9]]*)
7058
4803
    msdosdjgpp*)
7059
4804
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7060
4805
      # on systems that don't support them.
7061
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4806
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7062
4807
      enable_shared=no
7063
4808
      ;;
7064
4809
 
 
4810
    *nto* | *qnx*)
 
4811
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4812
      # it will coredump.
 
4813
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4814
      ;;
 
4815
 
7065
4816
    sysv4*MP*)
7066
4817
      if test -d /usr/nec; then
7067
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4818
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7068
4819
      fi
7069
4820
      ;;
7070
4821
 
7071
 
    hpux*)
7072
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7073
 
      # not for PA HP-UX.
7074
 
      case $host_cpu in
7075
 
      hppa*64*|ia64*)
7076
 
        # +Z the default
7077
 
        ;;
7078
 
      *)
7079
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7080
 
        ;;
7081
 
      esac
7082
 
      ;;
7083
 
 
7084
4822
    *)
7085
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4823
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7086
4824
      ;;
7087
4825
    esac
7088
4826
  else
7089
4827
    # PORTME Check for flag to pass linker flags through the system compiler.
7090
4828
    case $host_os in
7091
4829
    aix*)
7092
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4830
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7093
4831
      if test "$host_cpu" = ia64; then
7094
4832
        # AIX 5 now supports IA64 processor
7095
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4833
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7096
4834
      else
7097
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4835
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7098
4836
      fi
7099
4837
      ;;
7100
 
      darwin*)
7101
 
        # PIC is the default on this platform
7102
 
        # Common symbols not allowed in MH_DYLIB files
7103
 
       case $cc_basename in
7104
 
         xlc*)
7105
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
7106
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7107
 
         ;;
7108
 
       esac
7109
 
       ;;
7110
4838
 
7111
 
    mingw* | cygwin* | pw32* | os2*)
 
4839
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7112
4840
      # This hack is so that the source file can tell whether it is being
7113
4841
      # built for inclusion in a dll (and should export symbols for example).
7114
4842
      m4_if([$1], [GCJ], [],
7115
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4843
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7116
4844
      ;;
7117
4845
 
7118
4846
    hpux9* | hpux10* | hpux11*)
7119
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4847
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7120
4848
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7121
4849
      # not for PA HP-UX.
7122
4850
      case $host_cpu in
7124
4852
        # +Z the default
7125
4853
        ;;
7126
4854
      *)
7127
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4855
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7128
4856
        ;;
7129
4857
      esac
7130
4858
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7131
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4859
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7132
4860
      ;;
7133
4861
 
7134
4862
    irix5* | irix6* | nonstopux*)
7135
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4863
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7136
4864
      # PIC (with -KPIC) is the default.
7137
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7138
 
      ;;
7139
 
 
7140
 
    newsos6)
7141
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7142
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4865
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7143
4866
      ;;
7144
4867
 
7145
4868
    linux* | k*bsd*-gnu)
7146
4869
      case $cc_basename in
7147
 
      icc* | ecc*)
7148
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7149
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7150
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7151
 
        ;;
 
4870
      # old Intel for x86_64 which still supported -KPIC.
 
4871
      ecc*)
 
4872
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4873
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4874
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4875
        ;;
 
4876
      # icc used to be incompatible with GCC.
 
4877
      # ICC 10 doesn't accept -KPIC any more.
 
4878
      icc* | ifort*)
 
4879
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4880
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4881
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4882
        ;;
 
4883
      # Lahey Fortran 8.1.
 
4884
      lf95*)
 
4885
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4886
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4887
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4888
        ;;
7152
4889
      pgcc* | pgf77* | pgf90* | pgf95*)
7153
4890
        # Portland Group compilers (*not* the Pentium gcc compiler,
7154
4891
        # which looks to be a dead project)
7155
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7156
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7157
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4892
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4893
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4894
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7158
4895
        ;;
7159
4896
      ccc*)
7160
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4897
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7161
4898
        # All Alpha code is PIC.
7162
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4899
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7163
4900
        ;;
 
4901
      xl*)
 
4902
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4903
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4904
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4905
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4906
        ;;
7164
4907
      *)
7165
 
        case `$CC -V 2>&1 | sed 5q` in
 
4908
        case `$CC -V 2>&1 | sed 5q` in
7166
4909
        *Sun\ C*)
7167
4910
          # Sun C 5.9
7168
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7169
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7170
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4911
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4912
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4913
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7171
4914
          ;;
7172
4915
        *Sun\ F*)
7173
4916
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7174
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7175
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7176
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4917
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4918
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4919
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7177
4920
          ;;
7178
4921
        esac
7179
4922
        ;;
7180
4923
      esac
7181
4924
      ;;
7182
4925
 
 
4926
    newsos6)
 
4927
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4928
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4929
      ;;
 
4930
 
 
4931
    *nto* | *qnx*)
 
4932
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4933
      # it will coredump.
 
4934
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4935
      ;;
 
4936
 
7183
4937
    osf3* | osf4* | osf5*)
7184
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4938
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7185
4939
      # All OSF/1 code is PIC.
7186
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4940
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7187
4941
      ;;
7188
4942
 
7189
4943
    rdos*)
7190
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4944
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7191
4945
      ;;
7192
4946
 
7193
4947
    solaris*)
7194
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7195
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4948
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4949
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7196
4950
      case $cc_basename in
7197
4951
      f77* | f90* | f95*)
7198
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4952
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7199
4953
      *)
7200
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4954
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7201
4955
      esac
7202
4956
      ;;
7203
4957
 
7204
4958
    sunos4*)
7205
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7206
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7207
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4959
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4960
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4961
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7208
4962
      ;;
7209
4963
 
7210
4964
    sysv4 | sysv4.2uw2* | sysv4.3*)
7211
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7212
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7213
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4965
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4966
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4967
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7214
4968
      ;;
7215
4969
 
7216
4970
    sysv4*MP*)
7217
4971
      if test -d /usr/nec ;then
7218
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7219
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4972
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4973
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7220
4974
      fi
7221
4975
      ;;
7222
4976
 
7223
4977
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7224
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7225
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7226
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4978
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4979
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4980
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7227
4981
      ;;
7228
4982
 
7229
4983
    unicos*)
7230
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7231
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4984
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4985
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7232
4986
      ;;
7233
4987
 
7234
4988
    uts4*)
7235
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7236
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4989
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4990
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7237
4991
      ;;
7238
4992
 
7239
4993
    *)
7240
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4994
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7241
4995
      ;;
7242
4996
    esac
7243
4997
  fi
7244
4998
])
7245
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4999
case $host_os in
 
5000
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5001
  *djgpp*)
 
5002
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5003
    ;;
 
5004
  *)
 
5005
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5006
    ;;
 
5007
esac
 
5008
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5009
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5010
        [How to pass a linker flag through the compiler])
7246
5011
 
7247
5012
#
7248
5013
# Check to make sure the PIC flag actually works.
7249
5014
#
7250
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7251
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7252
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
7253
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7254
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5015
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5016
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5017
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5018
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5019
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7255
5020
     "" | " "*) ;;
7256
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5021
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7257
5022
     esac],
7258
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7259
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5023
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5024
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7260
5025
fi
7261
 
case $host_os in
7262
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7263
 
  *djgpp*)
7264
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7265
 
    ;;
7266
 
  *)
7267
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7268
 
    ;;
7269
 
esac
 
5026
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5027
        [Additional compiler flags for building library objects])
7270
5028
 
7271
5029
#
7272
5030
# Check to make sure the static flag actually works.
7273
5031
#
7274
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7275
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7276
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5032
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5033
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5034
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7277
5035
  $lt_tmp_static_flag,
7278
5036
  [],
7279
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7280
 
])
7281
 
 
7282
 
 
7283
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7284
 
# ------------------------------------
 
5037
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5038
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5039
        [Compiler flag to prevent dynamic linking])
 
5040
])# _LT_COMPILER_PIC
 
5041
 
 
5042
 
 
5043
# _LT_LINKER_SHLIBS([TAGNAME])
 
5044
# ----------------------------
7285
5045
# See if the linker supports building shared libraries.
7286
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7287
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5046
m4_defun([_LT_LINKER_SHLIBS],
 
5047
[AC_REQUIRE([LT_PATH_LD])dnl
 
5048
AC_REQUIRE([LT_PATH_NM])dnl
 
5049
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5050
m4_require([_LT_DECL_EGREP])dnl
 
5051
m4_require([_LT_DECL_SED])dnl
 
5052
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5053
m4_require([_LT_TAG_COMPILER])dnl
7288
5054
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7289
 
ifelse([$1],[CXX],[
7290
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5055
m4_if([$1], [CXX], [
 
5056
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7291
5057
  case $host_os in
7292
5058
  aix[[4-9]]*)
7293
5059
    # If we're using GNU nm, then we don't want the "-C" option.
7294
5060
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
7295
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296
 
      _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'
 
5061
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5062
      _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'
7297
5063
    else
7298
 
      _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'
 
5064
      _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'
7299
5065
    fi
7300
5066
    ;;
7301
5067
  pw32*)
7302
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7303
 
  ;;
7304
 
  cygwin* | mingw*)
7305
 
    _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'
 
5068
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5069
  ;;
 
5070
  cygwin* | mingw* | cegcc*)
 
5071
    _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'
 
5072
  ;;
 
5073
  linux* | k*bsd*-gnu)
 
5074
    _LT_TAGVAR(link_all_deplibs, $1)=no
7306
5075
  ;;
7307
5076
  *)
7308
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5077
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7309
5078
  ;;
7310
5079
  esac
7311
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7312
 
],[
 
5080
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5081
], [
7313
5082
  runpath_var=
7314
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7315
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7316
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
7317
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7318
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7319
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7320
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7321
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7322
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7323
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7324
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7325
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7326
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
7327
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7328
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7329
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7330
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7331
 
  _LT_AC_TAGVAR(module_cmds, $1)=
7332
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7333
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
7334
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5083
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5084
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5085
  _LT_TAGVAR(archive_cmds, $1)=
 
5086
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5087
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5088
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5089
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5090
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5091
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5092
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5093
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5094
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5095
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5096
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5097
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5098
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5099
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5100
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5101
  _LT_TAGVAR(module_cmds, $1)=
 
5102
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5103
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5104
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5105
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5106
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
7335
5107
  # include_expsyms should be a list of space-separated symbols to be *always*
7336
5108
  # included in the symbol list
7337
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5109
  _LT_TAGVAR(include_expsyms, $1)=
7338
5110
  # exclude_expsyms can be an extended regexp of symbols to exclude
7339
5111
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7340
5112
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7341
5113
  # as well as any symbol that contains `d'.
7342
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5114
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7343
5115
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7344
5116
  # platforms (ab)use it in PIC code, but their linkers get confused if
7345
5117
  # the symbol is explicitly referenced.  Since portable code cannot
7348
5120
  # Exclude shared library initialization/finalization symbols.
7349
5121
dnl Note also adjust exclude_expsyms for C++ above.
7350
5122
  extract_expsyms_cmds=
7351
 
  # Just being paranoid about ensuring that cc_basename is set.
7352
 
  _LT_CC_BASENAME([$compiler])
 
5123
 
7353
5124
  case $host_os in
7354
 
  cygwin* | mingw* | pw32*)
 
5125
  cygwin* | mingw* | pw32* | cegcc*)
7355
5126
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7356
5127
    # When not using gcc, we currently assume that we are using
7357
5128
    # Microsoft Visual C++.
7368
5139
    ;;
7369
5140
  esac
7370
5141
 
7371
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5142
  _LT_TAGVAR(ld_shlibs, $1)=yes
7372
5143
  if test "$with_gnu_ld" = yes; then
7373
5144
    # If archive_cmds runs LD, not CC, wlarc should be empty
7374
5145
    wlarc='${wl}'
7377
5148
    # are reset later if shared libraries are not supported. Putting them
7378
5149
    # here allows them to be overridden if necessary.
7379
5150
    runpath_var=LD_RUN_PATH
7380
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7381
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5151
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5152
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7382
5153
    # ancient GNU ld didn't support --whole-archive et. al.
7383
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7384
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7385
 
      else
7386
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5154
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5155
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5156
    else
 
5157
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
7387
5158
    fi
7388
5159
    supports_anon_versioning=no
7389
 
    case `$LD -v 2>/dev/null` in
 
5160
    case `$LD -v 2>&1` in
7390
5161
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7391
5162
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7392
5163
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7399
5170
    aix[[3-9]]*)
7400
5171
      # On AIX/PPC, the GNU linker is very broken
7401
5172
      if test "$host_cpu" != ia64; then
7402
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7403
 
        cat <<EOF 1>&2
 
5173
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5174
        cat <<_LT_EOF 1>&2
7404
5175
 
7405
5176
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7406
5177
*** to be unable to reliably create shared libraries on AIX.
7408
5179
*** really care for shared libraries, you may want to modify your PATH
7409
5180
*** so that a non-GNU linker is found, and then restart.
7410
5181
 
7411
 
EOF
 
5182
_LT_EOF
7412
5183
      fi
7413
5184
      ;;
7414
5185
 
7415
5186
    amigaos*)
7416
 
      _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)'
7417
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7418
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7419
 
 
7420
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7421
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7422
 
      # to version 4, is to share data among multiple programs linked
7423
 
      # with the same dynamic library.  Since this doesn't match the
7424
 
      # behavior of shared libraries on other platforms, we can't use
7425
 
      # them.
7426
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5187
      case $host_cpu in
 
5188
      powerpc)
 
5189
            # see comment about AmigaOS4 .so support
 
5190
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5191
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5192
        ;;
 
5193
      m68k)
 
5194
            _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)'
 
5195
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5196
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5197
        ;;
 
5198
      esac
7427
5199
      ;;
7428
5200
 
7429
5201
    beos*)
7430
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7431
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5202
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5203
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7432
5204
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7433
5205
        # support --undefined.  This deserves some investigation.  FIXME
7434
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5206
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7435
5207
      else
7436
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5208
        _LT_TAGVAR(ld_shlibs, $1)=no
7437
5209
      fi
7438
5210
      ;;
7439
5211
 
7440
 
    cygwin* | mingw* | pw32*)
7441
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5212
    cygwin* | mingw* | pw32* | cegcc*)
 
5213
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7442
5214
      # as there is no search path for DLLs.
7443
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7444
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7445
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
7446
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7447
 
      _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'
 
5215
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5216
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5217
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5218
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5219
      _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'
7448
5220
 
7449
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7450
 
        _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'
 
5221
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5222
        _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'
7451
5223
        # If the export-symbols file already is a .def file (1st line
7452
5224
        # is EXPORTS), use it as is; otherwise, prepend...
7453
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5225
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7454
5226
          cp $export_symbols $output_objdir/$soname.def;
7455
5227
        else
7456
5228
          echo EXPORTS > $output_objdir/$soname.def;
7458
5230
        fi~
7459
5231
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7460
5232
      else
7461
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5233
        _LT_TAGVAR(ld_shlibs, $1)=no
7462
5234
      fi
7463
5235
      ;;
7464
5236
 
7465
5237
    interix[[3-9]]*)
7466
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
7467
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7468
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7469
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5238
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5239
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5240
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5241
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7470
5242
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7471
5243
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7472
5244
      # default) and relocated if they conflict, which is a slow very memory
7473
5245
      # consuming and fragmenting process.  To avoid this, we pick a random,
7474
5246
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7475
5247
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7476
 
      _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'
7477
 
      _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'
 
5248
      _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'
 
5249
      _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'
7478
5250
      ;;
7479
5251
 
7480
 
    gnu* | linux* | k*bsd*-gnu)
7481
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5252
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5253
      tmp_diet=no
 
5254
      if test "$host_os" = linux-dietlibc; then
 
5255
        case $cc_basename in
 
5256
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5257
        esac
 
5258
      fi
 
5259
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5260
         && test "$tmp_diet" = no
 
5261
      then
7482
5262
        tmp_addflag=
 
5263
        tmp_sharedflag='-shared'
7483
5264
        case $cc_basename,$host_cpu in
7484
 
        pgcc*)                          # Portland Group C compiler
7485
 
          _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'
 
5265
        pgcc*)                          # Portland Group C compiler
 
5266
          _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'
7486
5267
          tmp_addflag=' $pic_flag'
7487
5268
          ;;
7488
5269
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7489
 
          _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'
 
5270
          _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'
7490
5271
          tmp_addflag=' $pic_flag -Mnomain' ;;
7491
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5272
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7492
5273
          tmp_addflag=' -i_dynamic' ;;
7493
5274
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7494
5275
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7495
5276
        ifc* | ifort*)                  # Intel Fortran compiler
7496
5277
          tmp_addflag=' -nofor_main' ;;
 
5278
        lf95*)                          # Lahey Fortran 8.1
 
5279
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5280
          tmp_sharedflag='--shared' ;;
 
5281
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5282
          tmp_sharedflag='-qmkshrobj'
 
5283
          tmp_addflag= ;;
7497
5284
        esac
7498
5285
        case `$CC -V 2>&1 | sed 5q` in
7499
5286
        *Sun\ C*)                       # Sun C 5.9
7500
 
          _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'
 
5287
          _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'
 
5288
          _LT_TAGVAR(compiler_needs_object, $1)=yes
7501
5289
          tmp_sharedflag='-G' ;;
7502
5290
        *Sun\ F*)                       # Sun Fortran 8.3
7503
5291
          tmp_sharedflag='-G' ;;
7504
 
        *)
7505
 
          tmp_sharedflag='-shared' ;;
7506
 
        esac
7507
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7508
 
 
7509
 
        if test $supports_anon_versioning = yes; then
7510
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7511
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7512
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7513
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7514
 
        fi
 
5292
        esac
 
5293
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5294
 
 
5295
        if test "x$supports_anon_versioning" = xyes; then
 
5296
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5297
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5298
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5299
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5300
        fi
 
5301
 
 
5302
        case $cc_basename in
 
5303
        xlf*)
 
5304
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5305
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5306
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5307
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5308
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5309
          if test "x$supports_anon_versioning" = xyes; then
 
5310
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5311
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5312
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5313
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5314
          fi
 
5315
          ;;
 
5316
        esac
7515
5317
      else
7516
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5318
        _LT_TAGVAR(ld_shlibs, $1)=no
7517
5319
      fi
7518
5320
      ;;
7519
5321
 
7520
 
    netbsd*)
7521
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7522
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5322
    netbsd* | netbsdelf*-gnu)
 
5323
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5324
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7523
5325
        wlarc=
7524
5326
      else
7525
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7526
 
        _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'
 
5327
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5328
        _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'
7527
5329
      fi
7528
5330
      ;;
7529
5331
 
7530
5332
    solaris*)
7531
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7532
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7533
 
        cat <<EOF 1>&2
 
5333
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5334
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5335
        cat <<_LT_EOF 1>&2
7534
5336
 
7535
5337
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7536
5338
*** create shared libraries on Solaris systems.  Therefore, libtool
7539
5341
*** your PATH or compiler configuration so that the native linker is
7540
5342
*** used, and then restart.
7541
5343
 
7542
 
EOF
7543
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7544
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7545
 
        _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'
 
5344
_LT_EOF
 
5345
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5346
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5347
        _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'
7546
5348
      else
7547
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5349
        _LT_TAGVAR(ld_shlibs, $1)=no
7548
5350
      fi
7549
5351
      ;;
7550
5352
 
7551
5353
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7552
5354
      case `$LD -v 2>&1` in
7553
5355
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7554
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5356
        _LT_TAGVAR(ld_shlibs, $1)=no
7555
5357
        cat <<_LT_EOF 1>&2
7556
5358
 
7557
5359
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7564
5366
_LT_EOF
7565
5367
        ;;
7566
5368
        *)
7567
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7568
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7569
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7570
 
            _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'
 
5369
          # For security reasons, it is highly recommended that you always
 
5370
          # use absolute paths for naming shared libraries, and exclude the
 
5371
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5372
          # requires that you compile everything twice, which is a pain.
 
5373
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5374
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5375
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5376
            _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'
7571
5377
          else
7572
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5378
            _LT_TAGVAR(ld_shlibs, $1)=no
7573
5379
          fi
7574
5380
        ;;
7575
5381
      esac
7576
5382
      ;;
7577
5383
 
7578
5384
    sunos4*)
7579
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5385
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7580
5386
      wlarc=
7581
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7582
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5387
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5388
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7583
5389
      ;;
7584
5390
 
7585
5391
    *)
7586
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7587
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588
 
        _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'
 
5392
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5393
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5394
        _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'
7589
5395
      else
7590
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5396
        _LT_TAGVAR(ld_shlibs, $1)=no
7591
5397
      fi
7592
5398
      ;;
7593
5399
    esac
7594
5400
 
7595
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5401
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
7596
5402
      runpath_var=
7597
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7598
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7599
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5403
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5404
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5405
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
7600
5406
    fi
7601
5407
  else
7602
5408
    # PORTME fill in a description of your system's linker (not GNU ld)
7603
5409
    case $host_os in
7604
5410
    aix3*)
7605
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7606
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7607
 
      _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'
 
5411
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5412
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5413
      _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'
7608
5414
      # Note: this linker hardcodes the directories in LIBPATH if there
7609
5415
      # are no directories specified by -L.
7610
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5416
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
7611
5417
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7612
5418
        # Neither direct hardcoding nor static linking is supported with a
7613
5419
        # broken collect2.
7614
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5420
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
7615
5421
      fi
7616
5422
      ;;
7617
5423
 
7625
5431
      else
7626
5432
        # If we're using GNU nm, then we don't want the "-C" option.
7627
5433
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7628
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7629
 
          _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'
 
5434
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5435
          _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'
7630
5436
        else
7631
 
          _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'
 
5437
          _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'
7632
5438
        fi
7633
5439
        aix_use_runtimelinking=no
7634
5440
 
7637
5443
        # need to do runtime linking.
7638
5444
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7639
5445
          for ld_flag in $LDFLAGS; do
7640
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7641
 
            aix_use_runtimelinking=yes
7642
 
            break
7643
 
          fi
 
5446
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5447
            aix_use_runtimelinking=yes
 
5448
            break
 
5449
          fi
7644
5450
          done
7645
5451
          ;;
7646
5452
        esac
7655
5461
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7656
5462
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7657
5463
 
7658
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
7659
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7660
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7661
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5464
      _LT_TAGVAR(archive_cmds, $1)=''
 
5465
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5466
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5467
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5468
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5469
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7662
5470
 
7663
5471
      if test "$GCC" = yes; then
7664
5472
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
7665
5473
        # We only want to do this on AIX 4.2 and lower, the check
7666
5474
        # below for broken collect2 doesn't work under 4.3+
7667
5475
          collect2name=`${CC} -print-prog-name=collect2`
7668
 
          if test -f "$collect2name" && \
7669
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5476
          if test -f "$collect2name" &&
 
5477
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7670
5478
          then
7671
 
          # We have reworked collect2
7672
 
          :
 
5479
          # We have reworked collect2
 
5480
          :
7673
5481
          else
7674
 
          # We have old collect2
7675
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7676
 
          # It fails to find uninstalled libraries when the uninstalled
7677
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7678
 
          # to unsupported forces relinking
7679
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7680
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7681
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5482
          # We have old collect2
 
5483
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5484
          # It fails to find uninstalled libraries when the uninstalled
 
5485
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5486
          # to unsupported forces relinking
 
5487
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5488
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5489
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
7682
5490
          fi
7683
5491
          ;;
7684
5492
        esac
7686
5494
        if test "$aix_use_runtimelinking" = yes; then
7687
5495
          shared_flag="$shared_flag "'${wl}-G'
7688
5496
        fi
 
5497
        _LT_TAGVAR(link_all_deplibs, $1)=no
7689
5498
      else
7690
5499
        # not using gcc
7691
5500
        if test "$host_cpu" = ia64; then
7692
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7693
 
        # chokes on -Wl,-G. The following line is correct:
 
5501
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5502
        # chokes on -Wl,-G. The following line is correct:
7694
5503
          shared_flag='-G'
7695
5504
        else
7696
5505
          if test "$aix_use_runtimelinking" = yes; then
7701
5510
        fi
7702
5511
      fi
7703
5512
 
 
5513
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7704
5514
      # It seems that -bexpall does not export symbols beginning with
7705
5515
      # underscore (_), so it is better to generate a list of symbols to export.
7706
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5516
      _LT_TAGVAR(always_export_symbols, $1)=yes
7707
5517
      if test "$aix_use_runtimelinking" = yes; then
7708
5518
        # Warning - without using the other runtime loading flags (-brtl),
7709
5519
        # -berok will link without error, but may produce a broken library.
7710
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7711
 
       # Determine the default libpath from the value encoded in an empty executable.
7712
 
       _LT_AC_SYS_LIBPATH_AIX
7713
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7714
 
        _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"
7715
 
       else
 
5520
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5521
        # Determine the default libpath from the value encoded in an
 
5522
        # empty executable.
 
5523
        _LT_SYS_MODULE_PATH_AIX
 
5524
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5525
        _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"
 
5526
      else
7716
5527
        if test "$host_cpu" = ia64; then
7717
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7718
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7719
 
          _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"
 
5528
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5529
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5530
          _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"
7720
5531
        else
7721
 
         # Determine the default libpath from the value encoded in an empty executable.
7722
 
         _LT_AC_SYS_LIBPATH_AIX
7723
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5532
         # Determine the default libpath from the value encoded in an
 
5533
         # empty executable.
 
5534
         _LT_SYS_MODULE_PATH_AIX
 
5535
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7724
5536
          # Warning - without using the other run time loading flags,
7725
5537
          # -berok will link without error, but may produce a broken library.
7726
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7727
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5538
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5539
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7728
5540
          # Exported symbols can be pulled into shared objects from archives
7729
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7730
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5541
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5542
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7731
5543
          # This is similar to how AIX traditionally builds its shared libraries.
7732
 
          _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'
 
5544
          _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'
7733
5545
        fi
7734
5546
      fi
7735
5547
      ;;
7736
5548
 
7737
5549
    amigaos*)
7738
 
      _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)'
7739
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7740
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7741
 
      # see comment about different semantics on the GNU ld section
7742
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5550
      case $host_cpu in
 
5551
      powerpc)
 
5552
            # see comment about AmigaOS4 .so support
 
5553
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5554
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5555
        ;;
 
5556
      m68k)
 
5557
            _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)'
 
5558
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5559
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5560
        ;;
 
5561
      esac
7743
5562
      ;;
7744
5563
 
7745
5564
    bsdi[[45]]*)
7746
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5565
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7747
5566
      ;;
7748
5567
 
7749
 
    cygwin* | mingw* | pw32*)
 
5568
    cygwin* | mingw* | pw32* | cegcc*)
7750
5569
      # When not using gcc, we currently assume that we are using
7751
5570
      # Microsoft Visual C++.
7752
5571
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7753
5572
      # no search path for DLLs.
7754
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7755
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5573
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5574
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7756
5575
      # Tell ltmain to make .lib files, not .a files.
7757
5576
      libext=lib
7758
5577
      # Tell ltmain to make .dll files, not .so files.
7759
5578
      shrext_cmds=".dll"
7760
5579
      # FIXME: Setting linknames here is a bad hack.
7761
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5580
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7762
5581
      # The linker will automatically build a .lib file if we build a DLL.
7763
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5582
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7764
5583
      # FIXME: Should let the user specify the lib program.
7765
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7766
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7767
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5584
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5585
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5586
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7768
5587
      ;;
7769
5588
 
7770
5589
    darwin* | rhapsody*)
7771
 
      case $host_os in
7772
 
        rhapsody* | darwin1.[[012]])
7773
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7774
 
         ;;
7775
 
       *) # Darwin 1.3 on
7776
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7777
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7778
 
         else
7779
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7780
 
             10.[[012]])
7781
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7782
 
               ;;
7783
 
             10.*)
7784
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7785
 
               ;;
7786
 
           esac
7787
 
         fi
7788
 
         ;;
7789
 
      esac
7790
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7791
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
7792
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7793
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7794
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7795
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7796
 
    if test "$GCC" = yes ; then
7797
 
        output_verbose_link_cmd='echo'
7798
 
        _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}"
7799
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7800
 
        _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}"
7801
 
        _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}"
7802
 
    else
7803
 
      case $cc_basename in
7804
 
        xlc*)
7805
 
         output_verbose_link_cmd='echo'
7806
 
         _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'
7807
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7808
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7809
 
         _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}'
7810
 
          _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}'
7811
 
          ;;
7812
 
       *)
7813
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
7814
 
          ;;
7815
 
      esac
7816
 
    fi
 
5590
      _LT_DARWIN_LINKER_FEATURES($1)
7817
5591
      ;;
7818
5592
 
7819
5593
    dgux*)
7820
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7821
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7822
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5594
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5595
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5596
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7823
5597
      ;;
7824
5598
 
7825
5599
    freebsd1*)
7826
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5600
      _LT_TAGVAR(ld_shlibs, $1)=no
7827
5601
      ;;
7828
5602
 
7829
5603
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7831
5605
    # does not break anything, and helps significantly (at the cost of a little
7832
5606
    # extra space).
7833
5607
    freebsd2.2*)
7834
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7835
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7836
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7837
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5608
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5609
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5610
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5611
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7838
5612
      ;;
7839
5613
 
7840
5614
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7841
5615
    freebsd2*)
7842
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7843
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7844
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7845
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5616
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5617
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5618
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5619
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7846
5620
      ;;
7847
5621
 
7848
5622
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7849
5623
    freebsd* | dragonfly*)
7850
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7851
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7852
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7853
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5624
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5625
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5626
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5627
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7854
5628
      ;;
7855
5629
 
7856
5630
    hpux9*)
7857
5631
      if test "$GCC" = yes; then
7858
 
        _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'
 
5632
        _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'
7859
5633
      else
7860
 
        _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'
 
5634
        _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'
7861
5635
      fi
7862
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7863
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7864
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5636
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5637
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5638
      _LT_TAGVAR(hardcode_direct, $1)=yes
7865
5639
 
7866
5640
      # hardcode_minus_L: Not really in the search PATH,
7867
5641
      # but as the default location of the library.
7868
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7869
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5642
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5643
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7870
5644
      ;;
7871
5645
 
7872
5646
    hpux10*)
7873
5647
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7874
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5648
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7875
5649
      else
7876
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5650
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7877
5651
      fi
7878
5652
      if test "$with_gnu_ld" = no; then
7879
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7880
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7881
 
 
7882
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7883
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7884
 
 
 
5653
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5654
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5655
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5656
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5657
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5658
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7885
5659
        # hardcode_minus_L: Not really in the search PATH,
7886
5660
        # but as the default location of the library.
7887
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5661
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
7888
5662
      fi
7889
5663
      ;;
7890
5664
 
7892
5666
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7893
5667
        case $host_cpu in
7894
5668
        hppa*64*)
7895
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5669
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7896
5670
          ;;
7897
5671
        ia64*)
7898
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5672
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7899
5673
          ;;
7900
5674
        *)
7901
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5675
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7902
5676
          ;;
7903
5677
        esac
7904
5678
      else
7905
5679
        case $host_cpu in
7906
5680
        hppa*64*)
7907
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5681
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7908
5682
          ;;
7909
5683
        ia64*)
7910
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5684
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7911
5685
          ;;
7912
5686
        *)
7913
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5687
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7914
5688
          ;;
7915
5689
        esac
7916
5690
      fi
7917
5691
      if test "$with_gnu_ld" = no; then
7918
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7919
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5692
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5693
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7920
5694
 
7921
5695
        case $host_cpu in
7922
5696
        hppa*64*|ia64*)
7923
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7924
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
7925
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5697
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5698
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7926
5699
          ;;
7927
5700
        *)
7928
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7929
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5701
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5702
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5703
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7930
5704
 
7931
5705
          # hardcode_minus_L: Not really in the search PATH,
7932
5706
          # but as the default location of the library.
7933
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5707
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
7934
5708
          ;;
7935
5709
        esac
7936
5710
      fi
7938
5712
 
7939
5713
    irix5* | irix6* | nonstopux*)
7940
5714
      if test "$GCC" = yes; then
7941
 
        _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'
 
5715
        _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'
 
5716
        # Try to use the -exported_symbol ld option, if it does not
 
5717
        # work, assume that -exports_file does not work either and
 
5718
        # implicitly export all symbols.
 
5719
        save_LDFLAGS="$LDFLAGS"
 
5720
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5721
        AC_LINK_IFELSE(int foo(void) {},
 
5722
          _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'
 
5723
        )
 
5724
        LDFLAGS="$save_LDFLAGS"
7942
5725
      else
7943
 
        _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'
7944
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5726
        _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'
 
5727
        _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'
7945
5728
      fi
7946
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7947
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7948
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5729
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5730
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5731
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5732
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5733
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7949
5734
      ;;
7950
5735
 
7951
 
    netbsd*)
7952
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7953
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5736
    netbsd* | netbsdelf*-gnu)
 
5737
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5738
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7954
5739
      else
7955
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5740
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7956
5741
      fi
7957
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7958
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7959
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5742
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5743
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5744
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7960
5745
      ;;
7961
5746
 
7962
5747
    newsos6)
7963
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7964
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7965
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7966
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7967
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5748
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5749
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5750
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5751
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5752
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5753
      ;;
 
5754
 
 
5755
    *nto* | *qnx*)
7968
5756
      ;;
7969
5757
 
7970
5758
    openbsd*)
7971
5759
      if test -f /usr/libexec/ld.so; then
7972
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7973
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7974
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7975
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7976
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7977
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7978
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5760
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5761
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5762
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5763
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5764
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5765
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5766
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5767
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7979
5768
        else
7980
5769
          case $host_os in
7981
5770
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7982
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7983
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5771
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5772
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7984
5773
             ;;
7985
5774
           *)
7986
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7987
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5775
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5776
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7988
5777
             ;;
7989
5778
          esac
7990
 
        fi
 
5779
        fi
7991
5780
      else
7992
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5781
        _LT_TAGVAR(ld_shlibs, $1)=no
7993
5782
      fi
7994
5783
      ;;
7995
5784
 
7996
5785
    os2*)
7997
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7998
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7999
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8000
 
      _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'
8001
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5786
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5787
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5788
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5789
      _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'
 
5790
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8002
5791
      ;;
8003
5792
 
8004
5793
    osf3*)
8005
5794
      if test "$GCC" = yes; then
8006
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8007
 
        _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'
 
5795
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5796
        _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'
8008
5797
      else
8009
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8010
 
        _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'
 
5798
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5799
        _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'
8011
5800
      fi
8012
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8013
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5801
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5802
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5803
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8014
5804
      ;;
8015
5805
 
8016
5806
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8017
5807
      if test "$GCC" = yes; then
8018
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8019
 
        _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'
8020
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5808
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5809
        _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'
 
5810
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8021
5811
      else
8022
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8023
 
        _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'
8024
 
        _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~
8025
 
        $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'
 
5812
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5813
        _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'
 
5814
        _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~
 
5815
        $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'
8026
5816
 
8027
5817
        # Both c and cxx compiler support -rpath directly
8028
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5818
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8029
5819
      fi
8030
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5820
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5821
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8031
5822
      ;;
8032
5823
 
8033
5824
    solaris*)
8034
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5825
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8035
5826
      if test "$GCC" = yes; then
8036
5827
        wlarc='${wl}'
8037
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8038
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8039
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5828
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5829
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5830
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8040
5831
      else
8041
 
        wlarc=''
8042
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8043
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8044
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5832
        case `$CC -V 2>&1` in
 
5833
        *"Compilers 5.0"*)
 
5834
          wlarc=''
 
5835
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5836
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5837
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5838
          ;;
 
5839
        *)
 
5840
          wlarc='${wl}'
 
5841
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5842
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5843
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5844
          ;;
 
5845
        esac
8045
5846
      fi
8046
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8047
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5847
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5848
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8048
5849
      case $host_os in
8049
5850
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8050
5851
      *)
8051
5852
        # The compiler driver will combine and reorder linker options,
8052
5853
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8053
5854
        # but is careful enough not to reorder.
8054
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5855
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8055
5856
        if test "$GCC" = yes; then
8056
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5857
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8057
5858
        else
8058
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5859
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8059
5860
        fi
8060
5861
        ;;
8061
5862
      esac
8062
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5863
      _LT_TAGVAR(link_all_deplibs, $1)=yes
8063
5864
      ;;
8064
5865
 
8065
5866
    sunos4*)
8066
5867
      if test "x$host_vendor" = xsequent; then
8067
5868
        # Use $CC to link under sequent, because it throws in some extra .o
8068
5869
        # files that make .init and .fini sections work.
8069
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5870
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8070
5871
      else
8071
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5872
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8072
5873
      fi
8073
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8074
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8075
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8076
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5874
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5875
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5876
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5877
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8077
5878
      ;;
8078
5879
 
8079
5880
    sysv4)
8080
5881
      case $host_vendor in
8081
5882
        sni)
8082
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5883
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5884
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8084
5885
        ;;
8085
5886
        siemens)
8086
5887
          ## LD is ld it makes a PLAMLIB
8087
5888
          ## CC just makes a GrossModule.
8088
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8089
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8090
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5889
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5890
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5891
          _LT_TAGVAR(hardcode_direct, $1)=no
8091
5892
        ;;
8092
5893
        motorola)
8093
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8094
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5894
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5895
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8095
5896
        ;;
8096
5897
      esac
8097
5898
      runpath_var='LD_RUN_PATH'
8098
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5899
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8099
5900
      ;;
8100
5901
 
8101
5902
    sysv4.3*)
8102
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8104
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5903
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5904
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5905
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8105
5906
      ;;
8106
5907
 
8107
5908
    sysv4*MP*)
8108
5909
      if test -d /usr/nec; then
8109
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5910
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5911
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8111
5912
        runpath_var=LD_RUN_PATH
8112
5913
        hardcode_runpath_var=yes
8113
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5914
        _LT_TAGVAR(ld_shlibs, $1)=yes
8114
5915
      fi
8115
5916
      ;;
8116
5917
 
8117
5918
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8118
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8119
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8120
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5919
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5920
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5921
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8121
5922
      runpath_var='LD_RUN_PATH'
8122
5923
 
8123
5924
      if test "$GCC" = yes; then
8124
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8125
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5925
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5926
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8126
5927
      else
8127
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8128
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5928
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5929
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8129
5930
      fi
8130
5931
      ;;
8131
5932
 
8136
5937
      # ever link correctly.  If we're not using GNU ld we use -z text
8137
5938
      # though, which does catch some bad symbols but isn't as heavy-handed
8138
5939
      # as -z defs.
8139
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8140
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8141
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8142
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8143
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8144
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8145
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8146
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5940
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5941
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5942
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5943
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5944
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5945
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5946
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5947
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8147
5948
      runpath_var='LD_RUN_PATH'
8148
5949
 
8149
5950
      if test "$GCC" = yes; then
8150
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8151
 
        _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'
 
5951
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5952
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152
5953
      else
8153
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8154
 
        _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'
 
5954
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5955
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155
5956
      fi
8156
5957
      ;;
8157
5958
 
8158
5959
    uts4*)
8159
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8161
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5960
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5961
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5962
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8162
5963
      ;;
8163
5964
 
8164
5965
    *)
8165
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5966
      _LT_TAGVAR(ld_shlibs, $1)=no
8166
5967
      ;;
8167
5968
    esac
 
5969
 
 
5970
    if test x$host_vendor = xsni; then
 
5971
      case $host in
 
5972
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5973
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5974
        ;;
 
5975
      esac
 
5976
    fi
8168
5977
  fi
8169
5978
])
8170
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8171
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5979
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5980
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5981
 
 
5982
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5983
 
 
5984
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5985
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5986
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5987
    [The commands to extract the exported symbol list from a shared archive])
8172
5988
 
8173
5989
#
8174
5990
# Do we need to explicitly link libc?
8175
5991
#
8176
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5992
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8177
5993
x|xyes)
8178
5994
  # Assume -lc should be added
8179
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5995
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8180
5996
 
8181
5997
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8182
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5998
    case $_LT_TAGVAR(archive_cmds, $1) in
8183
5999
    *'~'*)
8184
6000
      # FIXME: we may have to deal with multi-command sequences.
8185
6001
      ;;
8188
6004
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8189
6005
      # to ld, don't add -lc before -lgcc.
8190
6006
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8191
 
      $rm conftest*
 
6007
      $RM conftest*
8192
6008
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8193
6009
 
8194
6010
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8196
6012
        lib=conftest
8197
6013
        libobjs=conftest.$ac_objext
8198
6014
        deplibs=
8199
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8200
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6015
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6016
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8201
6017
        compiler_flags=-v
8202
6018
        linker_flags=-v
8203
6019
        verstring=
8204
6020
        output_objdir=.
8205
6021
        libname=conftest
8206
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8207
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8208
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6022
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6023
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6024
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8209
6025
        then
8210
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6026
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8211
6027
        else
8212
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6028
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8213
6029
        fi
8214
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6030
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8215
6031
      else
8216
6032
        cat conftest.err 1>&5
8217
6033
      fi
8218
 
      $rm conftest*
8219
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6034
      $RM conftest*
 
6035
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8220
6036
      ;;
8221
6037
    esac
8222
6038
  fi
8223
6039
  ;;
8224
6040
esac
8225
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
8226
 
 
8227
 
 
8228
 
# _LT_AC_FILE_LTDLL_C
8229
 
# -------------------
8230
 
# Be careful that the start marker always follows a newline.
8231
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8232
 
# /* ltdll.c starts here */
8233
 
# #define WIN32_LEAN_AND_MEAN
8234
 
# #include <windows.h>
8235
 
# #undef WIN32_LEAN_AND_MEAN
8236
 
# #include <stdio.h>
8237
 
#
8238
 
# #ifndef __CYGWIN__
8239
 
# #  ifdef __CYGWIN32__
8240
 
# #    define __CYGWIN__ __CYGWIN32__
8241
 
# #  endif
8242
 
# #endif
8243
 
#
8244
 
# #ifdef __cplusplus
8245
 
# extern "C" {
8246
 
# #endif
8247
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8248
 
# #ifdef __cplusplus
8249
 
# }
8250
 
# #endif
8251
 
#
8252
 
# #ifdef __CYGWIN__
8253
 
# #include <cygwin/cygwin_dll.h>
8254
 
# DECLARE_CYGWIN_DLL( DllMain );
8255
 
# #endif
8256
 
# HINSTANCE __hDllInstance_base;
8257
 
#
8258
 
# BOOL APIENTRY
8259
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8260
 
# {
8261
 
#   __hDllInstance_base = hInst;
8262
 
#   return TRUE;
8263
 
# }
8264
 
# /* ltdll.c ends here */
8265
 
])# _LT_AC_FILE_LTDLL_C
8266
 
 
8267
 
 
8268
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6041
 
 
6042
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6043
    [Whether or not to add -lc for building shared libraries])
 
6044
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6045
    [enable_shared_with_static_runtimes], [0],
 
6046
    [Whether or not to disallow shared libs when runtime libs are static])
 
6047
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6048
    [Compiler flag to allow reflexive dlopens])
 
6049
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6050
    [Compiler flag to generate shared objects directly from archives])
 
6051
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6052
    [Whether the compiler copes with passing no objects directly])
 
6053
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6054
    [Create an old-style archive from a shared archive])
 
6055
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6056
    [Create a temporary old-style archive to link instead of a shared archive])
 
6057
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6058
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6059
_LT_TAGDECL([], [module_cmds], [2],
 
6060
    [Commands used to build a loadable module if different from building
 
6061
    a shared archive.])
 
6062
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6063
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6064
    [Whether we are building with GNU ld or not])
 
6065
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6066
    [Flag that allows shared libraries with undefined symbols to be built])
 
6067
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6068
    [Flag that enforces no undefined symbols])
 
6069
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6070
    [Flag to hardcode $libdir into a binary during linking.
 
6071
    This must work even if $libdir does not exist])
 
6072
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6073
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6074
    during linking.  This must work even if $libdir does not exist]])
 
6075
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6076
    [Whether we need a single "-rpath" flag with a separated argument])
 
6077
_LT_TAGDECL([], [hardcode_direct], [0],
 
6078
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6079
    DIR into the resulting binary])
 
6080
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6081
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6082
    DIR into the resulting binary and the resulting library dependency is
 
6083
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6084
    library is relocated])
 
6085
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6086
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6087
    into the resulting binary])
 
6088
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6089
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6090
    into the resulting binary])
 
6091
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6092
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6093
    into the library and all subsequent libraries and executables linked
 
6094
    against it])
 
6095
_LT_TAGDECL([], [inherit_rpath], [0],
 
6096
    [Set to yes if linker adds runtime paths of dependent libraries
 
6097
    to runtime path list])
 
6098
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6099
    [Whether libtool must link a program against all its dependency libraries])
 
6100
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6101
    [Fix the shell variable $srcfile for the compiler])
 
6102
_LT_TAGDECL([], [always_export_symbols], [0],
 
6103
    [Set to "yes" if exported symbols are required])
 
6104
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6105
    [The commands to list exported symbols])
 
6106
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6107
    [Symbols that should not be listed in the preloaded symbols])
 
6108
_LT_TAGDECL([], [include_expsyms], [1],
 
6109
    [Symbols that must always be exported])
 
6110
_LT_TAGDECL([], [prelink_cmds], [2],
 
6111
    [Commands necessary for linking programs (against libraries) with templates])
 
6112
_LT_TAGDECL([], [file_list_spec], [1],
 
6113
    [Specify filename containing input files])
 
6114
dnl FIXME: Not yet implemented
 
6115
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6116
dnl    [Compiler flag to generate thread safe objects])
 
6117
])# _LT_LINKER_SHLIBS
 
6118
 
 
6119
 
 
6120
# _LT_LANG_C_CONFIG([TAG])
 
6121
# ------------------------
 
6122
# Ensure that the configuration variables for a C compiler are suitably
 
6123
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6124
# the compiler configuration to `libtool'.
 
6125
m4_defun([_LT_LANG_C_CONFIG],
 
6126
[m4_require([_LT_DECL_EGREP])dnl
 
6127
lt_save_CC="$CC"
 
6128
AC_LANG_PUSH(C)
 
6129
 
 
6130
# Source file extension for C test sources.
 
6131
ac_ext=c
 
6132
 
 
6133
# Object file extension for compiled C test sources.
 
6134
objext=o
 
6135
_LT_TAGVAR(objext, $1)=$objext
 
6136
 
 
6137
# Code to be used in simple compile tests
 
6138
lt_simple_compile_test_code="int some_variable = 0;"
 
6139
 
 
6140
# Code to be used in simple link tests
 
6141
lt_simple_link_test_code='int main(){return(0);}'
 
6142
 
 
6143
_LT_TAG_COMPILER
 
6144
# Save the default compiler, since it gets overwritten when the other
 
6145
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6146
compiler_DEFAULT=$CC
 
6147
 
 
6148
# save warnings/boilerplate of simple test code
 
6149
_LT_COMPILER_BOILERPLATE
 
6150
_LT_LINKER_BOILERPLATE
 
6151
 
 
6152
if test -n "$compiler"; then
 
6153
  _LT_COMPILER_NO_RTTI($1)
 
6154
  _LT_COMPILER_PIC($1)
 
6155
  _LT_COMPILER_C_O($1)
 
6156
  _LT_COMPILER_FILE_LOCKS($1)
 
6157
  _LT_LINKER_SHLIBS($1)
 
6158
  _LT_SYS_DYNAMIC_LINKER($1)
 
6159
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6160
  LT_SYS_DLOPEN_SELF
 
6161
  _LT_CMD_STRIPLIB
 
6162
 
 
6163
  # Report which library types will actually be built
 
6164
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6165
  AC_MSG_RESULT([$can_build_shared])
 
6166
 
 
6167
  AC_MSG_CHECKING([whether to build shared libraries])
 
6168
  test "$can_build_shared" = "no" && enable_shared=no
 
6169
 
 
6170
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6171
  # are all built from PIC.
 
6172
  case $host_os in
 
6173
  aix3*)
 
6174
    test "$enable_shared" = yes && enable_static=no
 
6175
    if test -n "$RANLIB"; then
 
6176
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6177
      postinstall_cmds='$RANLIB $lib'
 
6178
    fi
 
6179
    ;;
 
6180
 
 
6181
  aix[[4-9]]*)
 
6182
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6183
      test "$enable_shared" = yes && enable_static=no
 
6184
    fi
 
6185
    ;;
 
6186
  esac
 
6187
  AC_MSG_RESULT([$enable_shared])
 
6188
 
 
6189
  AC_MSG_CHECKING([whether to build static libraries])
 
6190
  # Make sure either enable_shared or enable_static is yes.
 
6191
  test "$enable_shared" = yes || enable_static=yes
 
6192
  AC_MSG_RESULT([$enable_static])
 
6193
 
 
6194
  _LT_CONFIG($1)
 
6195
fi
 
6196
AC_LANG_POP
 
6197
CC="$lt_save_CC"
 
6198
])# _LT_LANG_C_CONFIG
 
6199
 
 
6200
 
 
6201
# _LT_PROG_CXX
 
6202
# ------------
 
6203
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6204
# compiler, we have our own version here.
 
6205
m4_defun([_LT_PROG_CXX],
 
6206
[
 
6207
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6208
AC_PROG_CXX
 
6209
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6210
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6211
    (test "X$CXX" != "Xg++"))) ; then
 
6212
  AC_PROG_CXXCPP
 
6213
else
 
6214
  _lt_caught_CXX_error=yes
 
6215
fi
 
6216
popdef([AC_MSG_ERROR])
 
6217
])# _LT_PROG_CXX
 
6218
 
 
6219
dnl aclocal-1.4 backwards compatibility:
 
6220
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6221
 
 
6222
 
 
6223
# _LT_LANG_CXX_CONFIG([TAG])
 
6224
# --------------------------
 
6225
# Ensure that the configuration variables for a C++ compiler are suitably
 
6226
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6227
# the compiler configuration to `libtool'.
 
6228
m4_defun([_LT_LANG_CXX_CONFIG],
 
6229
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6230
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6231
m4_require([_LT_DECL_EGREP])dnl
 
6232
 
 
6233
AC_LANG_PUSH(C++)
 
6234
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6235
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6236
_LT_TAGVAR(always_export_symbols, $1)=no
 
6237
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6238
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6239
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6240
_LT_TAGVAR(hardcode_direct, $1)=no
 
6241
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6242
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6243
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6244
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6245
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6246
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6247
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6248
_LT_TAGVAR(inherit_rpath, $1)=no
 
6249
_LT_TAGVAR(module_cmds, $1)=
 
6250
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6251
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6252
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6253
_LT_TAGVAR(no_undefined_flag, $1)=
 
6254
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6255
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6256
 
 
6257
# Source file extension for C++ test sources.
 
6258
ac_ext=cpp
 
6259
 
 
6260
# Object file extension for compiled C++ test sources.
 
6261
objext=o
 
6262
_LT_TAGVAR(objext, $1)=$objext
 
6263
 
 
6264
# No sense in running all these tests if we already determined that
 
6265
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6266
# are currently assumed to apply to all compilers on this platform,
 
6267
# and will be corrupted by setting them based on a non-working compiler.
 
6268
if test "$_lt_caught_CXX_error" != yes; then
 
6269
  # Code to be used in simple compile tests
 
6270
  lt_simple_compile_test_code="int some_variable = 0;"
 
6271
 
 
6272
  # Code to be used in simple link tests
 
6273
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6274
 
 
6275
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6276
  _LT_TAG_COMPILER
 
6277
 
 
6278
  # save warnings/boilerplate of simple test code
 
6279
  _LT_COMPILER_BOILERPLATE
 
6280
  _LT_LINKER_BOILERPLATE
 
6281
 
 
6282
  # Allow CC to be a program name with arguments.
 
6283
  lt_save_CC=$CC
 
6284
  lt_save_LD=$LD
 
6285
  lt_save_GCC=$GCC
 
6286
  GCC=$GXX
 
6287
  lt_save_with_gnu_ld=$with_gnu_ld
 
6288
  lt_save_path_LD=$lt_cv_path_LD
 
6289
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6290
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6291
  else
 
6292
    $as_unset lt_cv_prog_gnu_ld
 
6293
  fi
 
6294
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6295
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6296
  else
 
6297
    $as_unset lt_cv_path_LD
 
6298
  fi
 
6299
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6300
  CC=${CXX-"c++"}
 
6301
  compiler=$CC
 
6302
  _LT_TAGVAR(compiler, $1)=$CC
 
6303
  _LT_CC_BASENAME([$compiler])
 
6304
 
 
6305
  if test -n "$compiler"; then
 
6306
    # We don't want -fno-exception when compiling C++ code, so set the
 
6307
    # no_builtin_flag separately
 
6308
    if test "$GXX" = yes; then
 
6309
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6310
    else
 
6311
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6312
    fi
 
6313
 
 
6314
    if test "$GXX" = yes; then
 
6315
      # Set up default GNU C++ configuration
 
6316
 
 
6317
      LT_PATH_LD
 
6318
 
 
6319
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6320
      # archiving commands below assume that GNU ld is being used.
 
6321
      if test "$with_gnu_ld" = yes; then
 
6322
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6323
        _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'
 
6324
 
 
6325
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6326
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6327
 
 
6328
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6329
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6330
        #     investigate it a little bit more. (MM)
 
6331
        wlarc='${wl}'
 
6332
 
 
6333
        # ancient GNU ld didn't support --whole-archive et. al.
 
6334
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6335
          $GREP 'no-whole-archive' > /dev/null; then
 
6336
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6337
        else
 
6338
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6339
        fi
 
6340
      else
 
6341
        with_gnu_ld=no
 
6342
        wlarc=
 
6343
 
 
6344
        # A generic and very simple default shared library creation
 
6345
        # command for GNU C++ for the case where it uses the native
 
6346
        # linker, instead of GNU ld.  If possible, this setting should
 
6347
        # overridden to take advantage of the native linker features on
 
6348
        # the platform it is being used on.
 
6349
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6350
      fi
 
6351
 
 
6352
      # Commands to make compiler produce verbose output that lists
 
6353
      # what "hidden" libraries, object files and flags are used when
 
6354
      # linking a shared library.
 
6355
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6356
 
 
6357
    else
 
6358
      GXX=no
 
6359
      with_gnu_ld=no
 
6360
      wlarc=
 
6361
    fi
 
6362
 
 
6363
    # PORTME: fill in a description of your system's C++ link characteristics
 
6364
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6365
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6366
    case $host_os in
 
6367
      aix3*)
 
6368
        # FIXME: insert proper C++ library support
 
6369
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6370
        ;;
 
6371
      aix[[4-9]]*)
 
6372
        if test "$host_cpu" = ia64; then
 
6373
          # On IA64, the linker does run time linking by default, so we don't
 
6374
          # have to do anything special.
 
6375
          aix_use_runtimelinking=no
 
6376
          exp_sym_flag='-Bexport'
 
6377
          no_entry_flag=""
 
6378
        else
 
6379
          aix_use_runtimelinking=no
 
6380
 
 
6381
          # Test if we are trying to use run time linking or normal
 
6382
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6383
          # need to do runtime linking.
 
6384
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6385
            for ld_flag in $LDFLAGS; do
 
6386
              case $ld_flag in
 
6387
              *-brtl*)
 
6388
                aix_use_runtimelinking=yes
 
6389
                break
 
6390
                ;;
 
6391
              esac
 
6392
            done
 
6393
            ;;
 
6394
          esac
 
6395
 
 
6396
          exp_sym_flag='-bexport'
 
6397
          no_entry_flag='-bnoentry'
 
6398
        fi
 
6399
 
 
6400
        # When large executables or shared objects are built, AIX ld can
 
6401
        # have problems creating the table of contents.  If linking a library
 
6402
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6403
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6404
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6405
 
 
6406
        _LT_TAGVAR(archive_cmds, $1)=''
 
6407
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6408
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6409
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6410
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6411
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6412
 
 
6413
        if test "$GXX" = yes; then
 
6414
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6415
          # We only want to do this on AIX 4.2 and lower, the check
 
6416
          # below for broken collect2 doesn't work under 4.3+
 
6417
          collect2name=`${CC} -print-prog-name=collect2`
 
6418
          if test -f "$collect2name" &&
 
6419
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6420
          then
 
6421
            # We have reworked collect2
 
6422
            :
 
6423
          else
 
6424
            # We have old collect2
 
6425
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6426
            # It fails to find uninstalled libraries when the uninstalled
 
6427
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6428
            # to unsupported forces relinking
 
6429
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6430
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6431
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6432
          fi
 
6433
          esac
 
6434
          shared_flag='-shared'
 
6435
          if test "$aix_use_runtimelinking" = yes; then
 
6436
            shared_flag="$shared_flag "'${wl}-G'
 
6437
          fi
 
6438
        else
 
6439
          # not using gcc
 
6440
          if test "$host_cpu" = ia64; then
 
6441
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6442
          # chokes on -Wl,-G. The following line is correct:
 
6443
          shared_flag='-G'
 
6444
          else
 
6445
            if test "$aix_use_runtimelinking" = yes; then
 
6446
              shared_flag='${wl}-G'
 
6447
            else
 
6448
              shared_flag='${wl}-bM:SRE'
 
6449
            fi
 
6450
          fi
 
6451
        fi
 
6452
 
 
6453
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6454
        # It seems that -bexpall does not export symbols beginning with
 
6455
        # underscore (_), so it is better to generate a list of symbols to
 
6456
        # export.
 
6457
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6458
        if test "$aix_use_runtimelinking" = yes; then
 
6459
          # Warning - without using the other runtime loading flags (-brtl),
 
6460
          # -berok will link without error, but may produce a broken library.
 
6461
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6462
          # Determine the default libpath from the value encoded in an empty
 
6463
          # executable.
 
6464
          _LT_SYS_MODULE_PATH_AIX
 
6465
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6466
 
 
6467
          _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"
 
6468
        else
 
6469
          if test "$host_cpu" = ia64; then
 
6470
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6471
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6472
            _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"
 
6473
          else
 
6474
            # Determine the default libpath from the value encoded in an
 
6475
            # empty executable.
 
6476
            _LT_SYS_MODULE_PATH_AIX
 
6477
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6478
            # Warning - without using the other run time loading flags,
 
6479
            # -berok will link without error, but may produce a broken library.
 
6480
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6481
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6482
            # Exported symbols can be pulled into shared objects from archives
 
6483
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6484
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6485
            # This is similar to how AIX traditionally builds its shared
 
6486
            # libraries.
 
6487
            _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'
 
6488
          fi
 
6489
        fi
 
6490
        ;;
 
6491
 
 
6492
      beos*)
 
6493
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6494
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6495
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6496
          # support --undefined.  This deserves some investigation.  FIXME
 
6497
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6498
        else
 
6499
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6500
        fi
 
6501
        ;;
 
6502
 
 
6503
      chorus*)
 
6504
        case $cc_basename in
 
6505
          *)
 
6506
          # FIXME: insert proper C++ library support
 
6507
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6508
          ;;
 
6509
        esac
 
6510
        ;;
 
6511
 
 
6512
      cygwin* | mingw* | pw32* | cegcc*)
 
6513
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6514
        # as there is no search path for DLLs.
 
6515
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6516
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6517
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6518
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6519
 
 
6520
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6521
          _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'
 
6522
          # If the export-symbols file already is a .def file (1st line
 
6523
          # is EXPORTS), use it as is; otherwise, prepend...
 
6524
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6525
            cp $export_symbols $output_objdir/$soname.def;
 
6526
          else
 
6527
            echo EXPORTS > $output_objdir/$soname.def;
 
6528
            cat $export_symbols >> $output_objdir/$soname.def;
 
6529
          fi~
 
6530
          $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'
 
6531
        else
 
6532
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6533
        fi
 
6534
        ;;
 
6535
      darwin* | rhapsody*)
 
6536
        _LT_DARWIN_LINKER_FEATURES($1)
 
6537
        ;;
 
6538
 
 
6539
      dgux*)
 
6540
        case $cc_basename in
 
6541
          ec++*)
 
6542
            # FIXME: insert proper C++ library support
 
6543
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6544
            ;;
 
6545
          ghcx*)
 
6546
            # Green Hills C++ Compiler
 
6547
            # FIXME: insert proper C++ library support
 
6548
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6549
            ;;
 
6550
          *)
 
6551
            # FIXME: insert proper C++ library support
 
6552
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6553
            ;;
 
6554
        esac
 
6555
        ;;
 
6556
 
 
6557
      freebsd[[12]]*)
 
6558
        # C++ shared libraries reported to be fairly broken before
 
6559
        # switch to ELF
 
6560
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6561
        ;;
 
6562
 
 
6563
      freebsd-elf*)
 
6564
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6565
        ;;
 
6566
 
 
6567
      freebsd* | dragonfly*)
 
6568
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6569
        # conventions
 
6570
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6571
        ;;
 
6572
 
 
6573
      gnu*)
 
6574
        ;;
 
6575
 
 
6576
      hpux9*)
 
6577
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6578
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6579
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6580
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6581
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6582
                                             # but as the default
 
6583
                                             # location of the library.
 
6584
 
 
6585
        case $cc_basename in
 
6586
          CC*)
 
6587
            # FIXME: insert proper C++ library support
 
6588
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6589
            ;;
 
6590
          aCC*)
 
6591
            _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'
 
6592
            # Commands to make compiler produce verbose output that lists
 
6593
            # what "hidden" libraries, object files and flags are used when
 
6594
            # linking a shared library.
 
6595
            #
 
6596
            # There doesn't appear to be a way to prevent this compiler from
 
6597
            # explicitly linking system object files so we need to strip them
 
6598
            # from the output so that they don't get included in the library
 
6599
            # dependencies.
 
6600
            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'
 
6601
            ;;
 
6602
          *)
 
6603
            if test "$GXX" = yes; then
 
6604
              _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'
 
6605
            else
 
6606
              # FIXME: insert proper C++ library support
 
6607
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6608
            fi
 
6609
            ;;
 
6610
        esac
 
6611
        ;;
 
6612
 
 
6613
      hpux10*|hpux11*)
 
6614
        if test $with_gnu_ld = no; then
 
6615
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6616
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6617
 
 
6618
          case $host_cpu in
 
6619
            hppa*64*|ia64*)
 
6620
              ;;
 
6621
            *)
 
6622
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6623
              ;;
 
6624
          esac
 
6625
        fi
 
6626
        case $host_cpu in
 
6627
          hppa*64*|ia64*)
 
6628
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6629
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6630
            ;;
 
6631
          *)
 
6632
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6633
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6634
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6635
                                                 # but as the default
 
6636
                                                 # location of the library.
 
6637
            ;;
 
6638
        esac
 
6639
 
 
6640
        case $cc_basename in
 
6641
          CC*)
 
6642
            # FIXME: insert proper C++ library support
 
6643
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6644
            ;;
 
6645
          aCC*)
 
6646
            case $host_cpu in
 
6647
              hppa*64*)
 
6648
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6649
                ;;
 
6650
              ia64*)
 
6651
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6652
                ;;
 
6653
              *)
 
6654
                _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'
 
6655
                ;;
 
6656
            esac
 
6657
            # Commands to make compiler produce verbose output that lists
 
6658
            # what "hidden" libraries, object files and flags are used when
 
6659
            # linking a shared library.
 
6660
            #
 
6661
            # There doesn't appear to be a way to prevent this compiler from
 
6662
            # explicitly linking system object files so we need to strip them
 
6663
            # from the output so that they don't get included in the library
 
6664
            # dependencies.
 
6665
            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'
 
6666
            ;;
 
6667
          *)
 
6668
            if test "$GXX" = yes; then
 
6669
              if test $with_gnu_ld = no; then
 
6670
                case $host_cpu in
 
6671
                  hppa*64*)
 
6672
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6673
                    ;;
 
6674
                  ia64*)
 
6675
                    _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'
 
6676
                    ;;
 
6677
                  *)
 
6678
                    _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'
 
6679
                    ;;
 
6680
                esac
 
6681
              fi
 
6682
            else
 
6683
              # FIXME: insert proper C++ library support
 
6684
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6685
            fi
 
6686
            ;;
 
6687
        esac
 
6688
        ;;
 
6689
 
 
6690
      interix[[3-9]]*)
 
6691
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6692
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6693
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6694
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6695
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6696
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6697
        # default) and relocated if they conflict, which is a slow very memory
 
6698
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6699
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6700
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6701
        _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'
 
6702
        _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'
 
6703
        ;;
 
6704
      irix5* | irix6*)
 
6705
        case $cc_basename in
 
6706
          CC*)
 
6707
            # SGI C++
 
6708
            _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'
 
6709
 
 
6710
            # Archives containing C++ object files must be created using
 
6711
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6712
            # necessary to make sure instantiated templates are included
 
6713
            # in the archive.
 
6714
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6715
            ;;
 
6716
          *)
 
6717
            if test "$GXX" = yes; then
 
6718
              if test "$with_gnu_ld" = no; then
 
6719
                _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'
 
6720
              else
 
6721
                _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'
 
6722
              fi
 
6723
            fi
 
6724
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6725
            ;;
 
6726
        esac
 
6727
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6728
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6729
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6730
        ;;
 
6731
 
 
6732
      linux* | k*bsd*-gnu)
 
6733
        case $cc_basename in
 
6734
          KCC*)
 
6735
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6736
 
 
6737
            # KCC will only create a shared library if the output file
 
6738
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6739
            # to its proper name (with version) after linking.
 
6740
            _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'
 
6741
            _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'
 
6742
            # Commands to make compiler produce verbose output that lists
 
6743
            # what "hidden" libraries, object files and flags are used when
 
6744
            # linking a shared library.
 
6745
            #
 
6746
            # There doesn't appear to be a way to prevent this compiler from
 
6747
            # explicitly linking system object files so we need to strip them
 
6748
            # from the output so that they don't get included in the library
 
6749
            # dependencies.
 
6750
            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'
 
6751
 
 
6752
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6753
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6754
 
 
6755
            # Archives containing C++ object files must be created using
 
6756
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6757
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6758
            ;;
 
6759
          icpc* | ecpc* )
 
6760
            # Intel C++
 
6761
            with_gnu_ld=yes
 
6762
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6763
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6764
            # earlier do not add the objects themselves.
 
6765
            case `$CC -V 2>&1` in
 
6766
              *"Version 7."*)
 
6767
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6768
                _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'
 
6769
                ;;
 
6770
              *)  # Version 8.0 or newer
 
6771
                tmp_idyn=
 
6772
                case $host_cpu in
 
6773
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6774
                esac
 
6775
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6776
                _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'
 
6777
                ;;
 
6778
            esac
 
6779
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6780
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6781
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6782
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6783
            ;;
 
6784
          pgCC* | pgcpp*)
 
6785
            # Portland Group C++ compiler
 
6786
            case `$CC -V` in
 
6787
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6788
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6789
                rm -rf $tpldir~
 
6790
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6791
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6792
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6793
                rm -rf $tpldir~
 
6794
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6795
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6796
                $RANLIB $oldlib'
 
6797
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6798
                rm -rf $tpldir~
 
6799
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6800
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6801
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6802
                rm -rf $tpldir~
 
6803
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6804
                $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'
 
6805
              ;;
 
6806
            *) # Version 6 will use weak symbols
 
6807
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6808
              _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'
 
6809
              ;;
 
6810
            esac
 
6811
 
 
6812
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6813
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6814
            _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'
 
6815
            ;;
 
6816
          cxx*)
 
6817
            # Compaq C++
 
6818
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6819
            _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'
 
6820
 
 
6821
            runpath_var=LD_RUN_PATH
 
6822
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6823
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6824
 
 
6825
            # Commands to make compiler produce verbose output that lists
 
6826
            # what "hidden" libraries, object files and flags are used when
 
6827
            # linking a shared library.
 
6828
            #
 
6829
            # There doesn't appear to be a way to prevent this compiler from
 
6830
            # explicitly linking system object files so we need to strip them
 
6831
            # from the output so that they don't get included in the library
 
6832
            # dependencies.
 
6833
            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'
 
6834
            ;;
 
6835
          xl*)
 
6836
            # IBM XL 8.0 on PPC, with GNU ld
 
6837
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6838
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6839
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6840
            if test "x$supports_anon_versioning" = xyes; then
 
6841
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6842
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6843
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6844
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6845
            fi
 
6846
            ;;
 
6847
          *)
 
6848
            case `$CC -V 2>&1 | sed 5q` in
 
6849
            *Sun\ C*)
 
6850
              # Sun C++ 5.9
 
6851
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6852
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6853
              _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'
 
6854
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6855
              _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'
 
6856
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6857
 
 
6858
              # Not sure whether something based on
 
6859
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6860
              # would be better.
 
6861
              output_verbose_link_cmd='echo'
 
6862
 
 
6863
              # Archives containing C++ object files must be created using
 
6864
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6865
              # necessary to make sure instantiated templates are included
 
6866
              # in the archive.
 
6867
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6868
              ;;
 
6869
            esac
 
6870
            ;;
 
6871
        esac
 
6872
        ;;
 
6873
 
 
6874
      lynxos*)
 
6875
        # FIXME: insert proper C++ library support
 
6876
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6877
        ;;
 
6878
 
 
6879
      m88k*)
 
6880
        # FIXME: insert proper C++ library support
 
6881
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6882
        ;;
 
6883
 
 
6884
      mvs*)
 
6885
        case $cc_basename in
 
6886
          cxx*)
 
6887
            # FIXME: insert proper C++ library support
 
6888
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6889
            ;;
 
6890
          *)
 
6891
            # FIXME: insert proper C++ library support
 
6892
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6893
            ;;
 
6894
        esac
 
6895
        ;;
 
6896
 
 
6897
      netbsd*)
 
6898
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6899
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6900
          wlarc=
 
6901
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6902
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6903
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6904
        fi
 
6905
        # Workaround some broken pre-1.5 toolchains
 
6906
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6907
        ;;
 
6908
 
 
6909
      *nto* | *qnx*)
 
6910
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6911
        ;;
 
6912
 
 
6913
      openbsd2*)
 
6914
        # C++ shared libraries are fairly broken
 
6915
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6916
        ;;
 
6917
 
 
6918
      openbsd*)
 
6919
        if test -f /usr/libexec/ld.so; then
 
6920
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6921
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6922
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6923
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6924
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6925
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6926
            _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'
 
6927
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6928
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6929
          fi
 
6930
          output_verbose_link_cmd=echo
 
6931
        else
 
6932
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6933
        fi
 
6934
        ;;
 
6935
 
 
6936
      osf3* | osf4* | osf5*)
 
6937
        case $cc_basename in
 
6938
          KCC*)
 
6939
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6940
 
 
6941
            # KCC will only create a shared library if the output file
 
6942
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6943
            # to its proper name (with version) after linking.
 
6944
            _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'
 
6945
 
 
6946
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6947
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6948
 
 
6949
            # Archives containing C++ object files must be created using
 
6950
            # the KAI C++ compiler.
 
6951
            case $host in
 
6952
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6953
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6954
            esac
 
6955
            ;;
 
6956
          RCC*)
 
6957
            # Rational C++ 2.4.1
 
6958
            # FIXME: insert proper C++ library support
 
6959
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6960
            ;;
 
6961
          cxx*)
 
6962
            case $host in
 
6963
              osf3*)
 
6964
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6965
                _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'
 
6966
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6967
                ;;
 
6968
              *)
 
6969
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6970
                _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'
 
6971
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6972
                  echo "-hidden">> $lib.exp~
 
6973
                  $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~
 
6974
                  $RM $lib.exp'
 
6975
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6976
                ;;
 
6977
            esac
 
6978
 
 
6979
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6980
 
 
6981
            # Commands to make compiler produce verbose output that lists
 
6982
            # what "hidden" libraries, object files and flags are used when
 
6983
            # linking a shared library.
 
6984
            #
 
6985
            # There doesn't appear to be a way to prevent this compiler from
 
6986
            # explicitly linking system object files so we need to strip them
 
6987
            # from the output so that they don't get included in the library
 
6988
            # dependencies.
 
6989
            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'
 
6990
            ;;
 
6991
          *)
 
6992
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6993
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6994
              case $host in
 
6995
                osf3*)
 
6996
                  _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'
 
6997
                  ;;
 
6998
                *)
 
6999
                  _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'
 
7000
                  ;;
 
7001
              esac
 
7002
 
 
7003
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7004
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7005
 
 
7006
              # Commands to make compiler produce verbose output that lists
 
7007
              # what "hidden" libraries, object files and flags are used when
 
7008
              # linking a shared library.
 
7009
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7010
 
 
7011
            else
 
7012
              # FIXME: insert proper C++ library support
 
7013
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7014
            fi
 
7015
            ;;
 
7016
        esac
 
7017
        ;;
 
7018
 
 
7019
      psos*)
 
7020
        # FIXME: insert proper C++ library support
 
7021
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7022
        ;;
 
7023
 
 
7024
      sunos4*)
 
7025
        case $cc_basename in
 
7026
          CC*)
 
7027
            # Sun C++ 4.x
 
7028
            # FIXME: insert proper C++ library support
 
7029
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7030
            ;;
 
7031
          lcc*)
 
7032
            # Lucid
 
7033
            # FIXME: insert proper C++ library support
 
7034
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7035
            ;;
 
7036
          *)
 
7037
            # FIXME: insert proper C++ library support
 
7038
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7039
            ;;
 
7040
        esac
 
7041
        ;;
 
7042
 
 
7043
      solaris*)
 
7044
        case $cc_basename in
 
7045
          CC*)
 
7046
            # Sun C++ 4.2, 5.x and Centerline C++
 
7047
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7048
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7049
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7050
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7051
              $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'
 
7052
 
 
7053
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7054
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7055
            case $host_os in
 
7056
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7057
              *)
 
7058
                # The compiler driver will combine and reorder linker options,
 
7059
                # but understands `-z linker_flag'.
 
7060
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7061
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7062
                ;;
 
7063
            esac
 
7064
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7065
 
 
7066
            output_verbose_link_cmd='echo'
 
7067
 
 
7068
            # Archives containing C++ object files must be created using
 
7069
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7070
            # necessary to make sure instantiated templates are included
 
7071
            # in the archive.
 
7072
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7073
            ;;
 
7074
          gcx*)
 
7075
            # Green Hills C++ Compiler
 
7076
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7077
 
 
7078
            # The C++ compiler must be used to create the archive.
 
7079
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7080
            ;;
 
7081
          *)
 
7082
            # GNU C++ compiler with Solaris linker
 
7083
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7084
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7085
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7086
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7087
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7088
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7089
 
 
7090
                # Commands to make compiler produce verbose output that lists
 
7091
                # what "hidden" libraries, object files and flags are used when
 
7092
                # linking a shared library.
 
7093
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7094
              else
 
7095
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7096
                # platform.
 
7097
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7098
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7099
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7100
 
 
7101
                # Commands to make compiler produce verbose output that lists
 
7102
                # what "hidden" libraries, object files and flags are used when
 
7103
                # linking a shared library.
 
7104
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7105
              fi
 
7106
 
 
7107
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7108
              case $host_os in
 
7109
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7110
                *)
 
7111
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7112
                  ;;
 
7113
              esac
 
7114
            fi
 
7115
            ;;
 
7116
        esac
 
7117
        ;;
 
7118
 
 
7119
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7120
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7121
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7122
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7123
      runpath_var='LD_RUN_PATH'
 
7124
 
 
7125
      case $cc_basename in
 
7126
        CC*)
 
7127
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7128
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7129
          ;;
 
7130
        *)
 
7131
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7132
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7133
          ;;
 
7134
      esac
 
7135
      ;;
 
7136
 
 
7137
      sysv5* | sco3.2v5* | sco5v6*)
 
7138
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7139
        # link with -lc, and that would cause any symbols used from libc to
 
7140
        # always be unresolved, which means just about no library would
 
7141
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7142
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7143
        # as -z defs.
 
7144
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7145
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7146
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7147
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7148
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7149
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7150
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7151
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7152
        runpath_var='LD_RUN_PATH'
 
7153
 
 
7154
        case $cc_basename in
 
7155
          CC*)
 
7156
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7157
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7158
            ;;
 
7159
          *)
 
7160
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7161
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7162
            ;;
 
7163
        esac
 
7164
      ;;
 
7165
 
 
7166
      tandem*)
 
7167
        case $cc_basename in
 
7168
          NCC*)
 
7169
            # NonStop-UX NCC 3.20
 
7170
            # FIXME: insert proper C++ library support
 
7171
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7172
            ;;
 
7173
          *)
 
7174
            # FIXME: insert proper C++ library support
 
7175
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7176
            ;;
 
7177
        esac
 
7178
        ;;
 
7179
 
 
7180
      vxworks*)
 
7181
        # FIXME: insert proper C++ library support
 
7182
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7183
        ;;
 
7184
 
 
7185
      *)
 
7186
        # FIXME: insert proper C++ library support
 
7187
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7188
        ;;
 
7189
    esac
 
7190
 
 
7191
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7192
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7193
 
 
7194
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7195
    _LT_TAGVAR(LD, $1)="$LD"
 
7196
 
 
7197
    ## CAVEAT EMPTOR:
 
7198
    ## There is no encapsulation within the following macros, do not change
 
7199
    ## the running order or otherwise move them around unless you know exactly
 
7200
    ## what you are doing...
 
7201
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7202
    _LT_COMPILER_PIC($1)
 
7203
    _LT_COMPILER_C_O($1)
 
7204
    _LT_COMPILER_FILE_LOCKS($1)
 
7205
    _LT_LINKER_SHLIBS($1)
 
7206
    _LT_SYS_DYNAMIC_LINKER($1)
 
7207
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7208
 
 
7209
    _LT_CONFIG($1)
 
7210
  fi # test -n "$compiler"
 
7211
 
 
7212
  CC=$lt_save_CC
 
7213
  LDCXX=$LD
 
7214
  LD=$lt_save_LD
 
7215
  GCC=$lt_save_GCC
 
7216
  with_gnu_ld=$lt_save_with_gnu_ld
 
7217
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7218
  lt_cv_path_LD=$lt_save_path_LD
 
7219
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7220
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7221
fi # test "$_lt_caught_CXX_error" != yes
 
7222
 
 
7223
AC_LANG_POP
 
7224
])# _LT_LANG_CXX_CONFIG
 
7225
 
 
7226
 
 
7227
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8269
7228
# ---------------------------------
8270
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8271
 
 
8272
 
 
8273
 
# old names
8274
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
8275
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
8276
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
8277
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8278
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8279
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
8280
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
8281
 
 
8282
 
# This is just to silence aclocal about the macro not being used
8283
 
ifelse([AC_DISABLE_FAST_INSTALL])
8284
 
 
8285
 
AC_DEFUN([LT_AC_PROG_GCJ],
8286
 
[AC_CHECK_TOOL(GCJ, gcj, no)
8287
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8288
 
  AC_SUBST(GCJFLAGS)
8289
 
])
8290
 
 
8291
 
AC_DEFUN([LT_AC_PROG_RC],
8292
 
[AC_CHECK_TOOL(RC, windres, no)
8293
 
])
8294
 
 
8295
 
 
8296
 
# Cheap backport of AS_EXECUTABLE_P and required macros
8297
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
8298
 
 
8299
 
# _AS_TEST_PREPARE
8300
 
# ----------------
8301
 
m4_ifndef([_AS_TEST_PREPARE],
8302
 
[m4_defun([_AS_TEST_PREPARE],
8303
 
[if test -x / >/dev/null 2>&1; then
8304
 
  as_executable_p='test -x'
 
7229
# Figure out "hidden" library dependencies from verbose
 
7230
# compiler output when linking a shared library.
 
7231
# Parse the compiler output and extract the necessary
 
7232
# objects, libraries and library flags.
 
7233
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7234
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7235
# Dependencies to place before and after the object being linked:
 
7236
_LT_TAGVAR(predep_objects, $1)=
 
7237
_LT_TAGVAR(postdep_objects, $1)=
 
7238
_LT_TAGVAR(predeps, $1)=
 
7239
_LT_TAGVAR(postdeps, $1)=
 
7240
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7241
 
 
7242
dnl we can't use the lt_simple_compile_test_code here,
 
7243
dnl because it contains code intended for an executable,
 
7244
dnl not a library.  It's possible we should let each
 
7245
dnl tag define a new lt_????_link_test_code variable,
 
7246
dnl but it's only used here...
 
7247
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7248
int a;
 
7249
void foo (void) { a = 0; }
 
7250
_LT_EOF
 
7251
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7252
class Foo
 
7253
{
 
7254
public:
 
7255
  Foo (void) { a = 0; }
 
7256
private:
 
7257
  int a;
 
7258
};
 
7259
_LT_EOF
 
7260
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7261
      subroutine foo
 
7262
      implicit none
 
7263
      integer*4 a
 
7264
      a=0
 
7265
      return
 
7266
      end
 
7267
_LT_EOF
 
7268
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7269
      subroutine foo
 
7270
      implicit none
 
7271
      integer a
 
7272
      a=0
 
7273
      return
 
7274
      end
 
7275
_LT_EOF
 
7276
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7277
public class foo {
 
7278
  private int a;
 
7279
  public void bar (void) {
 
7280
    a = 0;
 
7281
  }
 
7282
};
 
7283
_LT_EOF
 
7284
])
 
7285
dnl Parse the compiler output and extract the necessary
 
7286
dnl objects, libraries and library flags.
 
7287
if AC_TRY_EVAL(ac_compile); then
 
7288
  # Parse the compiler output and extract the necessary
 
7289
  # objects, libraries and library flags.
 
7290
 
 
7291
  # Sentinel used to keep track of whether or not we are before
 
7292
  # the conftest object file.
 
7293
  pre_test_object_deps_done=no
 
7294
 
 
7295
  for p in `eval "$output_verbose_link_cmd"`; do
 
7296
    case $p in
 
7297
 
 
7298
    -L* | -R* | -l*)
 
7299
       # Some compilers place space between "-{L,R}" and the path.
 
7300
       # Remove the space.
 
7301
       if test $p = "-L" ||
 
7302
          test $p = "-R"; then
 
7303
         prev=$p
 
7304
         continue
 
7305
       else
 
7306
         prev=
 
7307
       fi
 
7308
 
 
7309
       if test "$pre_test_object_deps_done" = no; then
 
7310
         case $p in
 
7311
         -L* | -R*)
 
7312
           # Internal compiler library paths should come after those
 
7313
           # provided the user.  The postdeps already come after the
 
7314
           # user supplied libs so there is no need to process them.
 
7315
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7316
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7317
           else
 
7318
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7319
           fi
 
7320
           ;;
 
7321
         # The "-l" case would never come before the object being
 
7322
         # linked, so don't bother handling this case.
 
7323
         esac
 
7324
       else
 
7325
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7326
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7327
         else
 
7328
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7329
         fi
 
7330
       fi
 
7331
       ;;
 
7332
 
 
7333
    *.$objext)
 
7334
       # This assumes that the test object file only shows up
 
7335
       # once in the compiler output.
 
7336
       if test "$p" = "conftest.$objext"; then
 
7337
         pre_test_object_deps_done=yes
 
7338
         continue
 
7339
       fi
 
7340
 
 
7341
       if test "$pre_test_object_deps_done" = no; then
 
7342
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7343
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7344
         else
 
7345
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7346
         fi
 
7347
       else
 
7348
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7349
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7350
         else
 
7351
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7352
         fi
 
7353
       fi
 
7354
       ;;
 
7355
 
 
7356
    *) ;; # Ignore the rest.
 
7357
 
 
7358
    esac
 
7359
  done
 
7360
 
 
7361
  # Clean up.
 
7362
  rm -f a.out a.exe
8305
7363
else
8306
 
  as_executable_p='test -f'
8307
 
fi
8308
 
])])# _AS_TEST_PREPARE
8309
 
 
8310
 
# AS_EXECUTABLE_P
8311
 
# ---------------
8312
 
# Check whether a file is executable.
8313
 
m4_ifndef([AS_EXECUTABLE_P],
8314
 
[m4_defun([AS_EXECUTABLE_P],
8315
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
8316
 
$as_executable_p $1[]dnl
8317
 
])])# AS_EXECUTABLE_P
8318
 
 
 
7364
  echo "libtool.m4: error: problem compiling $1 test program"
 
7365
fi
 
7366
 
 
7367
$RM -f confest.$objext
 
7368
 
 
7369
# PORTME: override above test on systems where it is broken
 
7370
m4_if([$1], [CXX],
 
7371
[case $host_os in
 
7372
interix[[3-9]]*)
 
7373
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7374
  # hack all around it, let's just trust "g++" to DTRT.
 
7375
  _LT_TAGVAR(predep_objects,$1)=
 
7376
  _LT_TAGVAR(postdep_objects,$1)=
 
7377
  _LT_TAGVAR(postdeps,$1)=
 
7378
  ;;
 
7379
 
 
7380
linux*)
 
7381
  case `$CC -V 2>&1 | sed 5q` in
 
7382
  *Sun\ C*)
 
7383
    # Sun C++ 5.9
 
7384
 
 
7385
    # The more standards-conforming stlport4 library is
 
7386
    # incompatible with the Cstd library. Avoid specifying
 
7387
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7388
    # -library=stlport4 depends on it.
 
7389
    case " $CXX $CXXFLAGS " in
 
7390
    *" -library=stlport4 "*)
 
7391
      solaris_use_stlport4=yes
 
7392
      ;;
 
7393
    esac
 
7394
 
 
7395
    if test "$solaris_use_stlport4" != yes; then
 
7396
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7397
    fi
 
7398
    ;;
 
7399
  esac
 
7400
  ;;
 
7401
 
 
7402
solaris*)
 
7403
  case $cc_basename in
 
7404
  CC*)
 
7405
    # The more standards-conforming stlport4 library is
 
7406
    # incompatible with the Cstd library. Avoid specifying
 
7407
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7408
    # -library=stlport4 depends on it.
 
7409
    case " $CXX $CXXFLAGS " in
 
7410
    *" -library=stlport4 "*)
 
7411
      solaris_use_stlport4=yes
 
7412
      ;;
 
7413
    esac
 
7414
 
 
7415
    # Adding this requires a known-good setup of shared libraries for
 
7416
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7417
    # archive will be linked into the output, leading to subtle bugs.
 
7418
    if test "$solaris_use_stlport4" != yes; then
 
7419
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7420
    fi
 
7421
    ;;
 
7422
  esac
 
7423
  ;;
 
7424
esac
 
7425
])
 
7426
 
 
7427
case " $_LT_TAGVAR(postdeps, $1) " in
 
7428
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7429
esac
 
7430
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7431
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7432
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7433
fi
 
7434
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7435
    [The directories searched by this compiler when creating a shared library])
 
7436
_LT_TAGDECL([], [predep_objects], [1],
 
7437
    [Dependencies to place before and after the objects being linked to
 
7438
    create a shared library])
 
7439
_LT_TAGDECL([], [postdep_objects], [1])
 
7440
_LT_TAGDECL([], [predeps], [1])
 
7441
_LT_TAGDECL([], [postdeps], [1])
 
7442
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7443
    [The library search path used internally by the compiler when linking
 
7444
    a shared library])
 
7445
])# _LT_SYS_HIDDEN_LIBDEPS
 
7446
 
 
7447
 
 
7448
# _LT_PROG_F77
 
7449
# ------------
 
7450
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7451
# if there is no fortran compiler, we have our own version here.
 
7452
m4_defun([_LT_PROG_F77],
 
7453
[
 
7454
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7455
AC_PROG_F77
 
7456
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7457
  _lt_disable_F77=yes
 
7458
fi
 
7459
popdef([AC_MSG_ERROR])
 
7460
])# _LT_PROG_F77
 
7461
 
 
7462
dnl aclocal-1.4 backwards compatibility:
 
7463
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7464
 
 
7465
 
 
7466
# _LT_LANG_F77_CONFIG([TAG])
 
7467
# --------------------------
 
7468
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7469
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7470
# to write the compiler configuration to `libtool'.
 
7471
m4_defun([_LT_LANG_F77_CONFIG],
 
7472
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7473
AC_LANG_PUSH(Fortran 77)
 
7474
 
 
7475
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7476
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7477
_LT_TAGVAR(always_export_symbols, $1)=no
 
7478
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7479
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7480
_LT_TAGVAR(hardcode_direct, $1)=no
 
7481
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7483
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7484
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7485
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7486
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7487
_LT_TAGVAR(inherit_rpath, $1)=no
 
7488
_LT_TAGVAR(module_cmds, $1)=
 
7489
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7490
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7491
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7492
_LT_TAGVAR(no_undefined_flag, $1)=
 
7493
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7494
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7495
 
 
7496
# Source file extension for f77 test sources.
 
7497
ac_ext=f
 
7498
 
 
7499
# Object file extension for compiled f77 test sources.
 
7500
objext=o
 
7501
_LT_TAGVAR(objext, $1)=$objext
 
7502
 
 
7503
# No sense in running all these tests if we already determined that
 
7504
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7505
# are currently assumed to apply to all compilers on this platform,
 
7506
# and will be corrupted by setting them based on a non-working compiler.
 
7507
if test "$_lt_disable_F77" != yes; then
 
7508
  # Code to be used in simple compile tests
 
7509
  lt_simple_compile_test_code="\
 
7510
      subroutine t
 
7511
      return
 
7512
      end
 
7513
"
 
7514
 
 
7515
  # Code to be used in simple link tests
 
7516
  lt_simple_link_test_code="\
 
7517
      program t
 
7518
      end
 
7519
"
 
7520
 
 
7521
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7522
  _LT_TAG_COMPILER
 
7523
 
 
7524
  # save warnings/boilerplate of simple test code
 
7525
  _LT_COMPILER_BOILERPLATE
 
7526
  _LT_LINKER_BOILERPLATE
 
7527
 
 
7528
  # Allow CC to be a program name with arguments.
 
7529
  lt_save_CC="$CC"
 
7530
  lt_save_GCC=$GCC
 
7531
  CC=${F77-"f77"}
 
7532
  compiler=$CC
 
7533
  _LT_TAGVAR(compiler, $1)=$CC
 
7534
  _LT_CC_BASENAME([$compiler])
 
7535
  GCC=$G77
 
7536
  if test -n "$compiler"; then
 
7537
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7538
    AC_MSG_RESULT([$can_build_shared])
 
7539
 
 
7540
    AC_MSG_CHECKING([whether to build shared libraries])
 
7541
    test "$can_build_shared" = "no" && enable_shared=no
 
7542
 
 
7543
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7544
    # are all built from PIC.
 
7545
    case $host_os in
 
7546
      aix3*)
 
7547
        test "$enable_shared" = yes && enable_static=no
 
7548
        if test -n "$RANLIB"; then
 
7549
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7550
          postinstall_cmds='$RANLIB $lib'
 
7551
        fi
 
7552
        ;;
 
7553
      aix[[4-9]]*)
 
7554
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7555
          test "$enable_shared" = yes && enable_static=no
 
7556
        fi
 
7557
        ;;
 
7558
    esac
 
7559
    AC_MSG_RESULT([$enable_shared])
 
7560
 
 
7561
    AC_MSG_CHECKING([whether to build static libraries])
 
7562
    # Make sure either enable_shared or enable_static is yes.
 
7563
    test "$enable_shared" = yes || enable_static=yes
 
7564
    AC_MSG_RESULT([$enable_static])
 
7565
 
 
7566
    _LT_TAGVAR(GCC, $1)="$G77"
 
7567
    _LT_TAGVAR(LD, $1)="$LD"
 
7568
 
 
7569
    ## CAVEAT EMPTOR:
 
7570
    ## There is no encapsulation within the following macros, do not change
 
7571
    ## the running order or otherwise move them around unless you know exactly
 
7572
    ## what you are doing...
 
7573
    _LT_COMPILER_PIC($1)
 
7574
    _LT_COMPILER_C_O($1)
 
7575
    _LT_COMPILER_FILE_LOCKS($1)
 
7576
    _LT_LINKER_SHLIBS($1)
 
7577
    _LT_SYS_DYNAMIC_LINKER($1)
 
7578
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7579
 
 
7580
    _LT_CONFIG($1)
 
7581
  fi # test -n "$compiler"
 
7582
 
 
7583
  GCC=$lt_save_GCC
 
7584
  CC="$lt_save_CC"
 
7585
fi # test "$_lt_disable_F77" != yes
 
7586
 
 
7587
AC_LANG_POP
 
7588
])# _LT_LANG_F77_CONFIG
 
7589
 
 
7590
 
 
7591
# _LT_PROG_FC
 
7592
# -----------
 
7593
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7594
# if there is no fortran compiler, we have our own version here.
 
7595
m4_defun([_LT_PROG_FC],
 
7596
[
 
7597
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7598
AC_PROG_FC
 
7599
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7600
  _lt_disable_FC=yes
 
7601
fi
 
7602
popdef([AC_MSG_ERROR])
 
7603
])# _LT_PROG_FC
 
7604
 
 
7605
dnl aclocal-1.4 backwards compatibility:
 
7606
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7607
 
 
7608
 
 
7609
# _LT_LANG_FC_CONFIG([TAG])
 
7610
# -------------------------
 
7611
# Ensure that the configuration variables for a Fortran compiler are
 
7612
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7613
# to write the compiler configuration to `libtool'.
 
7614
m4_defun([_LT_LANG_FC_CONFIG],
 
7615
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7616
AC_LANG_PUSH(Fortran)
 
7617
 
 
7618
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7619
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7620
_LT_TAGVAR(always_export_symbols, $1)=no
 
7621
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7622
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7623
_LT_TAGVAR(hardcode_direct, $1)=no
 
7624
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7625
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7626
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7627
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7628
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7629
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7630
_LT_TAGVAR(inherit_rpath, $1)=no
 
7631
_LT_TAGVAR(module_cmds, $1)=
 
7632
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7633
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7634
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7635
_LT_TAGVAR(no_undefined_flag, $1)=
 
7636
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7637
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7638
 
 
7639
# Source file extension for fc test sources.
 
7640
ac_ext=${ac_fc_srcext-f}
 
7641
 
 
7642
# Object file extension for compiled fc test sources.
 
7643
objext=o
 
7644
_LT_TAGVAR(objext, $1)=$objext
 
7645
 
 
7646
# No sense in running all these tests if we already determined that
 
7647
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7648
# are currently assumed to apply to all compilers on this platform,
 
7649
# and will be corrupted by setting them based on a non-working compiler.
 
7650
if test "$_lt_disable_FC" != yes; then
 
7651
  # Code to be used in simple compile tests
 
7652
  lt_simple_compile_test_code="\
 
7653
      subroutine t
 
7654
      return
 
7655
      end
 
7656
"
 
7657
 
 
7658
  # Code to be used in simple link tests
 
7659
  lt_simple_link_test_code="\
 
7660
      program t
 
7661
      end
 
7662
"
 
7663
 
 
7664
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7665
  _LT_TAG_COMPILER
 
7666
 
 
7667
  # save warnings/boilerplate of simple test code
 
7668
  _LT_COMPILER_BOILERPLATE
 
7669
  _LT_LINKER_BOILERPLATE
 
7670
 
 
7671
  # Allow CC to be a program name with arguments.
 
7672
  lt_save_CC="$CC"
 
7673
  lt_save_GCC=$GCC
 
7674
  CC=${FC-"f95"}
 
7675
  compiler=$CC
 
7676
  GCC=$ac_cv_fc_compiler_gnu
 
7677
 
 
7678
  _LT_TAGVAR(compiler, $1)=$CC
 
7679
  _LT_CC_BASENAME([$compiler])
 
7680
 
 
7681
  if test -n "$compiler"; then
 
7682
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7683
    AC_MSG_RESULT([$can_build_shared])
 
7684
 
 
7685
    AC_MSG_CHECKING([whether to build shared libraries])
 
7686
    test "$can_build_shared" = "no" && enable_shared=no
 
7687
 
 
7688
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7689
    # are all built from PIC.
 
7690
    case $host_os in
 
7691
      aix3*)
 
7692
        test "$enable_shared" = yes && enable_static=no
 
7693
        if test -n "$RANLIB"; then
 
7694
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7695
          postinstall_cmds='$RANLIB $lib'
 
7696
        fi
 
7697
        ;;
 
7698
      aix[[4-9]]*)
 
7699
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7700
          test "$enable_shared" = yes && enable_static=no
 
7701
        fi
 
7702
        ;;
 
7703
    esac
 
7704
    AC_MSG_RESULT([$enable_shared])
 
7705
 
 
7706
    AC_MSG_CHECKING([whether to build static libraries])
 
7707
    # Make sure either enable_shared or enable_static is yes.
 
7708
    test "$enable_shared" = yes || enable_static=yes
 
7709
    AC_MSG_RESULT([$enable_static])
 
7710
 
 
7711
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7712
    _LT_TAGVAR(LD, $1)="$LD"
 
7713
 
 
7714
    ## CAVEAT EMPTOR:
 
7715
    ## There is no encapsulation within the following macros, do not change
 
7716
    ## the running order or otherwise move them around unless you know exactly
 
7717
    ## what you are doing...
 
7718
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7719
    _LT_COMPILER_PIC($1)
 
7720
    _LT_COMPILER_C_O($1)
 
7721
    _LT_COMPILER_FILE_LOCKS($1)
 
7722
    _LT_LINKER_SHLIBS($1)
 
7723
    _LT_SYS_DYNAMIC_LINKER($1)
 
7724
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7725
 
 
7726
    _LT_CONFIG($1)
 
7727
  fi # test -n "$compiler"
 
7728
 
 
7729
  GCC=$lt_save_GCC
 
7730
  CC="$lt_save_CC"
 
7731
fi # test "$_lt_disable_FC" != yes
 
7732
 
 
7733
AC_LANG_POP
 
7734
])# _LT_LANG_FC_CONFIG
 
7735
 
 
7736
 
 
7737
# _LT_LANG_GCJ_CONFIG([TAG])
 
7738
# --------------------------
 
7739
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7740
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7741
# to write the compiler configuration to `libtool'.
 
7742
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7743
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7744
AC_LANG_SAVE
 
7745
 
 
7746
# Source file extension for Java test sources.
 
7747
ac_ext=java
 
7748
 
 
7749
# Object file extension for compiled Java test sources.
 
7750
objext=o
 
7751
_LT_TAGVAR(objext, $1)=$objext
 
7752
 
 
7753
# Code to be used in simple compile tests
 
7754
lt_simple_compile_test_code="class foo {}"
 
7755
 
 
7756
# Code to be used in simple link tests
 
7757
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7758
 
 
7759
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7760
_LT_TAG_COMPILER
 
7761
 
 
7762
# save warnings/boilerplate of simple test code
 
7763
_LT_COMPILER_BOILERPLATE
 
7764
_LT_LINKER_BOILERPLATE
 
7765
 
 
7766
# Allow CC to be a program name with arguments.
 
7767
lt_save_CC="$CC"
 
7768
lt_save_GCC=$GCC
 
7769
GCC=yes
 
7770
CC=${GCJ-"gcj"}
 
7771
compiler=$CC
 
7772
_LT_TAGVAR(compiler, $1)=$CC
 
7773
_LT_TAGVAR(LD, $1)="$LD"
 
7774
_LT_CC_BASENAME([$compiler])
 
7775
 
 
7776
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7777
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7778
 
 
7779
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7780
 
 
7781
if test -n "$compiler"; then
 
7782
  _LT_COMPILER_NO_RTTI($1)
 
7783
  _LT_COMPILER_PIC($1)
 
7784
  _LT_COMPILER_C_O($1)
 
7785
  _LT_COMPILER_FILE_LOCKS($1)
 
7786
  _LT_LINKER_SHLIBS($1)
 
7787
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7788
 
 
7789
  _LT_CONFIG($1)
 
7790
fi
 
7791
 
 
7792
AC_LANG_RESTORE
 
7793
 
 
7794
GCC=$lt_save_GCC
 
7795
CC="$lt_save_CC"
 
7796
])# _LT_LANG_GCJ_CONFIG
 
7797
 
 
7798
 
 
7799
# _LT_LANG_RC_CONFIG([TAG])
 
7800
# -------------------------
 
7801
# Ensure that the configuration variables for the Windows resource compiler
 
7802
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7803
# to write the compiler configuration to `libtool'.
 
7804
m4_defun([_LT_LANG_RC_CONFIG],
 
7805
[AC_REQUIRE([LT_PROG_RC])dnl
 
7806
AC_LANG_SAVE
 
7807
 
 
7808
# Source file extension for RC test sources.
 
7809
ac_ext=rc
 
7810
 
 
7811
# Object file extension for compiled RC test sources.
 
7812
objext=o
 
7813
_LT_TAGVAR(objext, $1)=$objext
 
7814
 
 
7815
# Code to be used in simple compile tests
 
7816
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7817
 
 
7818
# Code to be used in simple link tests
 
7819
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7820
 
 
7821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7822
_LT_TAG_COMPILER
 
7823
 
 
7824
# save warnings/boilerplate of simple test code
 
7825
_LT_COMPILER_BOILERPLATE
 
7826
_LT_LINKER_BOILERPLATE
 
7827
 
 
7828
# Allow CC to be a program name with arguments.
 
7829
lt_save_CC="$CC"
 
7830
lt_save_GCC=$GCC
 
7831
GCC=
 
7832
CC=${RC-"windres"}
 
7833
compiler=$CC
 
7834
_LT_TAGVAR(compiler, $1)=$CC
 
7835
_LT_CC_BASENAME([$compiler])
 
7836
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7837
 
 
7838
if test -n "$compiler"; then
 
7839
  :
 
7840
  _LT_CONFIG($1)
 
7841
fi
 
7842
 
 
7843
GCC=$lt_save_GCC
 
7844
AC_LANG_RESTORE
 
7845
CC="$lt_save_CC"
 
7846
])# _LT_LANG_RC_CONFIG
 
7847
 
 
7848
 
 
7849
# LT_PROG_GCJ
 
7850
# -----------
 
7851
AC_DEFUN([LT_PROG_GCJ],
 
7852
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7853
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7854
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7855
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7856
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7857
])
 
7858
 
 
7859
# Old name:
 
7860
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7861
dnl aclocal-1.4 backwards compatibility:
 
7862
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7863
 
 
7864
 
 
7865
# LT_PROG_RC
 
7866
# ----------
 
7867
AC_DEFUN([LT_PROG_RC],
 
7868
[AC_CHECK_TOOL(RC, windres,)
 
7869
])
 
7870
 
 
7871
# Old name:
 
7872
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7873
dnl aclocal-1.4 backwards compatibility:
 
7874
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7875
 
 
7876
 
 
7877
# _LT_DECL_EGREP
 
7878
# --------------
 
7879
# If we don't have a new enough Autoconf to choose the best grep
 
7880
# available, choose the one first in the user's PATH.
 
7881
m4_defun([_LT_DECL_EGREP],
 
7882
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7883
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7884
test -z "$GREP" && GREP=grep
 
7885
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7886
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7887
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7888
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7889
AC_SUBST([GREP])
 
7890
])
 
7891
 
 
7892
 
 
7893
# _LT_DECL_OBJDUMP
 
7894
# --------------
 
7895
# If we don't have a new enough Autoconf to choose the best objdump
 
7896
# available, choose the one first in the user's PATH.
 
7897
m4_defun([_LT_DECL_OBJDUMP],
 
7898
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7899
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7900
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7901
AC_SUBST([OBJDUMP])
 
7902
])
 
7903
 
 
7904
 
 
7905
# _LT_DECL_SED
 
7906
# ------------
 
7907
# Check for a fully-functional sed program, that truncates
 
7908
# as few characters as possible.  Prefer GNU sed if found.
 
7909
m4_defun([_LT_DECL_SED],
 
7910
[AC_PROG_SED
 
7911
test -z "$SED" && SED=sed
 
7912
Xsed="$SED -e 1s/^X//"
 
7913
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7914
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7915
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7916
])# _LT_DECL_SED
 
7917
 
 
7918
m4_ifndef([AC_PROG_SED], [
8319
7919
# NOTE: This macro has been submitted for inclusion into   #
8320
7920
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
8321
7921
#  a released version of Autoconf we should remove this    #
8322
7922
#  macro and use it instead.                               #
8323
 
# LT_AC_PROG_SED
8324
 
# --------------
8325
 
# Check for a fully-functional sed program, that truncates
8326
 
# as few characters as possible.  Prefer GNU sed if found.
8327
 
AC_DEFUN([LT_AC_PROG_SED],
 
7923
 
 
7924
m4_defun([AC_PROG_SED],
8328
7925
[AC_MSG_CHECKING([for a sed that does not truncate output])
8329
7926
AC_CACHE_VAL(lt_cv_path_SED,
8330
7927
[# Loop through the user's path and test for sed and gsed.
8336
7933
  test -z "$as_dir" && as_dir=.
8337
7934
  for lt_ac_prog in sed gsed; do
8338
7935
    for ac_exec_ext in '' $ac_executable_extensions; do
8339
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7936
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8340
7937
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8341
7938
      fi
8342
7939
    done
8377
7974
SED=$lt_cv_path_SED
8378
7975
AC_SUBST([SED])
8379
7976
AC_MSG_RESULT([$SED])
8380
 
])
 
7977
])#AC_PROG_SED
 
7978
])#m4_ifndef
 
7979
 
 
7980
# Old name:
 
7981
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7982
dnl aclocal-1.4 backwards compatibility:
 
7983
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7984
 
 
7985
 
 
7986
# _LT_CHECK_SHELL_FEATURES
 
7987
# ------------------------
 
7988
# Find out whether the shell is Bourne or XSI compatible,
 
7989
# or has some other useful features.
 
7990
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7991
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7992
# Try some XSI features
 
7993
xsi_shell=no
 
7994
( _lt_dummy="a/b/c"
 
7995
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7996
      = c,a/b,, \
 
7997
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7998
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7999
  && xsi_shell=yes
 
8000
AC_MSG_RESULT([$xsi_shell])
 
8001
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8002
 
 
8003
AC_MSG_CHECKING([whether the shell understands "+="])
 
8004
lt_shell_append=no
 
8005
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8006
    >/dev/null 2>&1 \
 
8007
  && lt_shell_append=yes
 
8008
AC_MSG_RESULT([$lt_shell_append])
 
8009
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8010
 
 
8011
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8012
  lt_unset=unset
 
8013
else
 
8014
  lt_unset=false
 
8015
fi
 
8016
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8017
 
 
8018
# test EBCDIC or ASCII
 
8019
case `echo X|tr X '\101'` in
 
8020
 A) # ASCII based system
 
8021
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8022
  lt_SP2NL='tr \040 \012'
 
8023
  lt_NL2SP='tr \015\012 \040\040'
 
8024
  ;;
 
8025
 *) # EBCDIC based system
 
8026
  lt_SP2NL='tr \100 \n'
 
8027
  lt_NL2SP='tr \r\n \100\100'
 
8028
  ;;
 
8029
esac
 
8030
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8031
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8032
])# _LT_CHECK_SHELL_FEATURES
 
8033
 
 
8034
 
 
8035
# _LT_PROG_XSI_SHELLFNS
 
8036
# ---------------------
 
8037
# Bourne and XSI compatible variants of some useful shell functions.
 
8038
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8039
[case $xsi_shell in
 
8040
  yes)
 
8041
    cat << \_LT_EOF >> "$cfgfile"
 
8042
 
 
8043
# func_dirname file append nondir_replacement
 
8044
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8045
# otherwise set result to NONDIR_REPLACEMENT.
 
8046
func_dirname ()
 
8047
{
 
8048
  case ${1} in
 
8049
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8050
    *  ) func_dirname_result="${3}" ;;
 
8051
  esac
 
8052
}
 
8053
 
 
8054
# func_basename file
 
8055
func_basename ()
 
8056
{
 
8057
  func_basename_result="${1##*/}"
 
8058
}
 
8059
 
 
8060
# func_dirname_and_basename file append nondir_replacement
 
8061
# perform func_basename and func_dirname in a single function
 
8062
# call:
 
8063
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8064
#             add APPEND to the result, otherwise set result
 
8065
#             to NONDIR_REPLACEMENT.
 
8066
#             value returned in "$func_dirname_result"
 
8067
#   basename: Compute filename of FILE.
 
8068
#             value retuned in "$func_basename_result"
 
8069
# Implementation must be kept synchronized with func_dirname
 
8070
# and func_basename. For efficiency, we do not delegate to
 
8071
# those functions but instead duplicate the functionality here.
 
8072
func_dirname_and_basename ()
 
8073
{
 
8074
  case ${1} in
 
8075
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8076
    *  ) func_dirname_result="${3}" ;;
 
8077
  esac
 
8078
  func_basename_result="${1##*/}"
 
8079
}
 
8080
 
 
8081
# func_stripname prefix suffix name
 
8082
# strip PREFIX and SUFFIX off of NAME.
 
8083
# PREFIX and SUFFIX must not contain globbing or regex special
 
8084
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8085
# dot (in which case that matches only a dot).
 
8086
func_stripname ()
 
8087
{
 
8088
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8089
  # positional parameters, so assign one to ordinary parameter first.
 
8090
  func_stripname_result=${3}
 
8091
  func_stripname_result=${func_stripname_result#"${1}"}
 
8092
  func_stripname_result=${func_stripname_result%"${2}"}
 
8093
}
 
8094
 
 
8095
# func_opt_split
 
8096
func_opt_split ()
 
8097
{
 
8098
  func_opt_split_opt=${1%%=*}
 
8099
  func_opt_split_arg=${1#*=}
 
8100
}
 
8101
 
 
8102
# func_lo2o object
 
8103
func_lo2o ()
 
8104
{
 
8105
  case ${1} in
 
8106
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8107
    *)    func_lo2o_result=${1} ;;
 
8108
  esac
 
8109
}
 
8110
 
 
8111
# func_xform libobj-or-source
 
8112
func_xform ()
 
8113
{
 
8114
  func_xform_result=${1%.*}.lo
 
8115
}
 
8116
 
 
8117
# func_arith arithmetic-term...
 
8118
func_arith ()
 
8119
{
 
8120
  func_arith_result=$(( $[*] ))
 
8121
}
 
8122
 
 
8123
# func_len string
 
8124
# STRING may not start with a hyphen.
 
8125
func_len ()
 
8126
{
 
8127
  func_len_result=${#1}
 
8128
}
 
8129
 
 
8130
_LT_EOF
 
8131
    ;;
 
8132
  *) # Bourne compatible functions.
 
8133
    cat << \_LT_EOF >> "$cfgfile"
 
8134
 
 
8135
# func_dirname file append nondir_replacement
 
8136
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8137
# otherwise set result to NONDIR_REPLACEMENT.
 
8138
func_dirname ()
 
8139
{
 
8140
  # Extract subdirectory from the argument.
 
8141
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8142
  if test "X$func_dirname_result" = "X${1}"; then
 
8143
    func_dirname_result="${3}"
 
8144
  else
 
8145
    func_dirname_result="$func_dirname_result${2}"
 
8146
  fi
 
8147
}
 
8148
 
 
8149
# func_basename file
 
8150
func_basename ()
 
8151
{
 
8152
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8153
}
 
8154
 
 
8155
dnl func_dirname_and_basename
 
8156
dnl A portable version of this function is already defined in general.m4sh
 
8157
dnl so there is no need for it here.
 
8158
 
 
8159
# func_stripname prefix suffix name
 
8160
# strip PREFIX and SUFFIX off of NAME.
 
8161
# PREFIX and SUFFIX must not contain globbing or regex special
 
8162
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8163
# dot (in which case that matches only a dot).
 
8164
# func_strip_suffix prefix name
 
8165
func_stripname ()
 
8166
{
 
8167
  case ${2} in
 
8168
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8169
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8170
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8171
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8172
  esac
 
8173
}
 
8174
 
 
8175
# sed scripts:
 
8176
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8177
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8178
 
 
8179
# func_opt_split
 
8180
func_opt_split ()
 
8181
{
 
8182
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8183
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8184
}
 
8185
 
 
8186
# func_lo2o object
 
8187
func_lo2o ()
 
8188
{
 
8189
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8190
}
 
8191
 
 
8192
# func_xform libobj-or-source
 
8193
func_xform ()
 
8194
{
 
8195
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8196
}
 
8197
 
 
8198
# func_arith arithmetic-term...
 
8199
func_arith ()
 
8200
{
 
8201
  func_arith_result=`expr "$[@]"`
 
8202
}
 
8203
 
 
8204
# func_len string
 
8205
# STRING may not start with a hyphen.
 
8206
func_len ()
 
8207
{
 
8208
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8209
}
 
8210
 
 
8211
_LT_EOF
 
8212
esac
 
8213
 
 
8214
case $lt_shell_append in
 
8215
  yes)
 
8216
    cat << \_LT_EOF >> "$cfgfile"
 
8217
 
 
8218
# func_append var value
 
8219
# Append VALUE to the end of shell variable VAR.
 
8220
func_append ()
 
8221
{
 
8222
  eval "$[1]+=\$[2]"
 
8223
}
 
8224
_LT_EOF
 
8225
    ;;
 
8226
  *)
 
8227
    cat << \_LT_EOF >> "$cfgfile"
 
8228
 
 
8229
# func_append var value
 
8230
# Append VALUE to the end of shell variable VAR.
 
8231
func_append ()
 
8232
{
 
8233
  eval "$[1]=\$$[1]\$[2]"
 
8234
}
 
8235
 
 
8236
_LT_EOF
 
8237
    ;;
 
8238
  esac
 
8239
])
 
8240
 
 
8241
# Helper functions for option handling.                    -*- Autoconf -*-
 
8242
#
 
8243
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8244
#   Written by Gary V. Vaughan, 2004
 
8245
#
 
8246
# This file is free software; the Free Software Foundation gives
 
8247
# unlimited permission to copy and/or distribute it, with or without
 
8248
# modifications, as long as this notice is preserved.
 
8249
 
 
8250
# serial 6 ltoptions.m4
 
8251
 
 
8252
# This is to help aclocal find these macros, as it can't see m4_define.
 
8253
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8254
 
 
8255
 
 
8256
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8257
# ------------------------------------------
 
8258
m4_define([_LT_MANGLE_OPTION],
 
8259
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8260
 
 
8261
 
 
8262
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8263
# ---------------------------------------
 
8264
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8265
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8266
# saved as a flag.
 
8267
m4_define([_LT_SET_OPTION],
 
8268
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8269
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8270
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8271
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8272
])
 
8273
 
 
8274
 
 
8275
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8276
# ------------------------------------------------------------
 
8277
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8278
m4_define([_LT_IF_OPTION],
 
8279
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8280
 
 
8281
 
 
8282
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8283
# -------------------------------------------------------
 
8284
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8285
# are set.
 
8286
m4_define([_LT_UNLESS_OPTIONS],
 
8287
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8288
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8289
                      [m4_define([$0_found])])])[]dnl
 
8290
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8291
])[]dnl
 
8292
])
 
8293
 
 
8294
 
 
8295
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8296
# ----------------------------------------
 
8297
# OPTION-LIST is a space-separated list of Libtool options associated
 
8298
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8299
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8300
# the unknown option and exit.
 
8301
m4_defun([_LT_SET_OPTIONS],
 
8302
[# Set options
 
8303
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8304
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8305
 
 
8306
m4_if([$1],[LT_INIT],[
 
8307
  dnl
 
8308
  dnl Simply set some default values (i.e off) if boolean options were not
 
8309
  dnl specified:
 
8310
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8311
  ])
 
8312
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8313
  ])
 
8314
  dnl
 
8315
  dnl If no reference was made to various pairs of opposing options, then
 
8316
  dnl we run the default mode handler for the pair.  For example, if neither
 
8317
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8318
  dnl archives by default:
 
8319
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8320
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8321
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8322
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8323
                   [_LT_ENABLE_FAST_INSTALL])
 
8324
  ])
 
8325
])# _LT_SET_OPTIONS
 
8326
 
 
8327
 
 
8328
 
 
8329
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8330
# -----------------------------------------
 
8331
m4_define([_LT_MANGLE_DEFUN],
 
8332
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8333
 
 
8334
 
 
8335
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8336
# -----------------------------------------------
 
8337
m4_define([LT_OPTION_DEFINE],
 
8338
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8339
])# LT_OPTION_DEFINE
 
8340
 
 
8341
 
 
8342
# dlopen
 
8343
# ------
 
8344
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8345
])
 
8346
 
 
8347
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8348
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8349
AC_DIAGNOSE([obsolete],
 
8350
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8351
put the `dlopen' option into LT_INIT's first parameter.])
 
8352
])
 
8353
 
 
8354
dnl aclocal-1.4 backwards compatibility:
 
8355
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8356
 
 
8357
 
 
8358
# win32-dll
 
8359
# ---------
 
8360
# Declare package support for building win32 dll's.
 
8361
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8362
[enable_win32_dll=yes
 
8363
 
 
8364
case $host in
 
8365
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8366
  AC_CHECK_TOOL(AS, as, false)
 
8367
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8368
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8369
  ;;
 
8370
esac
 
8371
 
 
8372
test -z "$AS" && AS=as
 
8373
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8374
 
 
8375
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8376
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8377
 
 
8378
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8379
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8380
])# win32-dll
 
8381
 
 
8382
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8383
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8384
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8385
AC_DIAGNOSE([obsolete],
 
8386
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8387
put the `win32-dll' option into LT_INIT's first parameter.])
 
8388
])
 
8389
 
 
8390
dnl aclocal-1.4 backwards compatibility:
 
8391
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8392
 
 
8393
 
 
8394
# _LT_ENABLE_SHARED([DEFAULT])
 
8395
# ----------------------------
 
8396
# implement the --enable-shared flag, and supports the `shared' and
 
8397
# `disable-shared' LT_INIT options.
 
8398
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8399
m4_define([_LT_ENABLE_SHARED],
 
8400
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8401
AC_ARG_ENABLE([shared],
 
8402
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8403
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8404
    [p=${PACKAGE-default}
 
8405
    case $enableval in
 
8406
    yes) enable_shared=yes ;;
 
8407
    no) enable_shared=no ;;
 
8408
    *)
 
8409
      enable_shared=no
 
8410
      # Look at the argument we got.  We use all the common list separators.
 
8411
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8412
      for pkg in $enableval; do
 
8413
        IFS="$lt_save_ifs"
 
8414
        if test "X$pkg" = "X$p"; then
 
8415
          enable_shared=yes
 
8416
        fi
 
8417
      done
 
8418
      IFS="$lt_save_ifs"
 
8419
      ;;
 
8420
    esac],
 
8421
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8422
 
 
8423
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8424
        [Whether or not to build shared libraries])
 
8425
])# _LT_ENABLE_SHARED
 
8426
 
 
8427
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8428
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8429
 
 
8430
# Old names:
 
8431
AC_DEFUN([AC_ENABLE_SHARED],
 
8432
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8433
])
 
8434
 
 
8435
AC_DEFUN([AC_DISABLE_SHARED],
 
8436
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8437
])
 
8438
 
 
8439
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8440
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8441
 
 
8442
dnl aclocal-1.4 backwards compatibility:
 
8443
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8444
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8445
 
 
8446
 
 
8447
 
 
8448
# _LT_ENABLE_STATIC([DEFAULT])
 
8449
# ----------------------------
 
8450
# implement the --enable-static flag, and support the `static' and
 
8451
# `disable-static' LT_INIT options.
 
8452
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8453
m4_define([_LT_ENABLE_STATIC],
 
8454
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8455
AC_ARG_ENABLE([static],
 
8456
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8457
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8458
    [p=${PACKAGE-default}
 
8459
    case $enableval in
 
8460
    yes) enable_static=yes ;;
 
8461
    no) enable_static=no ;;
 
8462
    *)
 
8463
     enable_static=no
 
8464
      # Look at the argument we got.  We use all the common list separators.
 
8465
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8466
      for pkg in $enableval; do
 
8467
        IFS="$lt_save_ifs"
 
8468
        if test "X$pkg" = "X$p"; then
 
8469
          enable_static=yes
 
8470
        fi
 
8471
      done
 
8472
      IFS="$lt_save_ifs"
 
8473
      ;;
 
8474
    esac],
 
8475
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8476
 
 
8477
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8478
        [Whether or not to build static libraries])
 
8479
])# _LT_ENABLE_STATIC
 
8480
 
 
8481
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8482
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8483
 
 
8484
# Old names:
 
8485
AC_DEFUN([AC_ENABLE_STATIC],
 
8486
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8487
])
 
8488
 
 
8489
AC_DEFUN([AC_DISABLE_STATIC],
 
8490
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8491
])
 
8492
 
 
8493
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8494
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8495
 
 
8496
dnl aclocal-1.4 backwards compatibility:
 
8497
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8498
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8499
 
 
8500
 
 
8501
 
 
8502
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8503
# ----------------------------------
 
8504
# implement the --enable-fast-install flag, and support the `fast-install'
 
8505
# and `disable-fast-install' LT_INIT options.
 
8506
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8507
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8508
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8509
AC_ARG_ENABLE([fast-install],
 
8510
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8511
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8512
    [p=${PACKAGE-default}
 
8513
    case $enableval in
 
8514
    yes) enable_fast_install=yes ;;
 
8515
    no) enable_fast_install=no ;;
 
8516
    *)
 
8517
      enable_fast_install=no
 
8518
      # Look at the argument we got.  We use all the common list separators.
 
8519
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8520
      for pkg in $enableval; do
 
8521
        IFS="$lt_save_ifs"
 
8522
        if test "X$pkg" = "X$p"; then
 
8523
          enable_fast_install=yes
 
8524
        fi
 
8525
      done
 
8526
      IFS="$lt_save_ifs"
 
8527
      ;;
 
8528
    esac],
 
8529
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8530
 
 
8531
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8532
         [Whether or not to optimize for fast installation])dnl
 
8533
])# _LT_ENABLE_FAST_INSTALL
 
8534
 
 
8535
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8536
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8537
 
 
8538
# Old names:
 
8539
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8540
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8541
AC_DIAGNOSE([obsolete],
 
8542
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8543
the `fast-install' option into LT_INIT's first parameter.])
 
8544
])
 
8545
 
 
8546
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8547
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8548
AC_DIAGNOSE([obsolete],
 
8549
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8550
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8551
])
 
8552
 
 
8553
dnl aclocal-1.4 backwards compatibility:
 
8554
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8555
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8556
 
 
8557
 
 
8558
# _LT_WITH_PIC([MODE])
 
8559
# --------------------
 
8560
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8561
# LT_INIT options.
 
8562
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8563
m4_define([_LT_WITH_PIC],
 
8564
[AC_ARG_WITH([pic],
 
8565
    [AS_HELP_STRING([--with-pic],
 
8566
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8567
    [pic_mode="$withval"],
 
8568
    [pic_mode=default])
 
8569
 
 
8570
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8571
 
 
8572
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8573
])# _LT_WITH_PIC
 
8574
 
 
8575
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8576
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8577
 
 
8578
# Old name:
 
8579
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8580
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8581
AC_DIAGNOSE([obsolete],
 
8582
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8583
put the `pic-only' option into LT_INIT's first parameter.])
 
8584
])
 
8585
 
 
8586
dnl aclocal-1.4 backwards compatibility:
 
8587
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8588
 
 
8589
 
 
8590
m4_define([_LTDL_MODE], [])
 
8591
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8592
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8593
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8594
                 [m4_define([_LTDL_MODE], [recursive])])
 
8595
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8596
                 [m4_define([_LTDL_MODE], [subproject])])
 
8597
 
 
8598
m4_define([_LTDL_TYPE], [])
 
8599
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8600
                 [m4_define([_LTDL_TYPE], [installable])])
 
8601
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8602
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8603
 
 
8604
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8605
#
 
8606
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8607
# Written by Gary V. Vaughan, 2004
 
8608
#
 
8609
# This file is free software; the Free Software Foundation gives
 
8610
# unlimited permission to copy and/or distribute it, with or without
 
8611
# modifications, as long as this notice is preserved.
 
8612
 
 
8613
# serial 6 ltsugar.m4
 
8614
 
 
8615
# This is to help aclocal find these macros, as it can't see m4_define.
 
8616
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8617
 
 
8618
 
 
8619
# lt_join(SEP, ARG1, [ARG2...])
 
8620
# -----------------------------
 
8621
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8622
# associated separator.
 
8623
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8624
# versions in m4sugar had bugs.
 
8625
m4_define([lt_join],
 
8626
[m4_if([$#], [1], [],
 
8627
       [$#], [2], [[$2]],
 
8628
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8629
m4_define([_lt_join],
 
8630
[m4_if([$#$2], [2], [],
 
8631
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8632
 
 
8633
 
 
8634
# lt_car(LIST)
 
8635
# lt_cdr(LIST)
 
8636
# ------------
 
8637
# Manipulate m4 lists.
 
8638
# These macros are necessary as long as will still need to support
 
8639
# Autoconf-2.59 which quotes differently.
 
8640
m4_define([lt_car], [[$1]])
 
8641
m4_define([lt_cdr],
 
8642
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8643
       [$#], 1, [],
 
8644
       [m4_dquote(m4_shift($@))])])
 
8645
m4_define([lt_unquote], $1)
 
8646
 
 
8647
 
 
8648
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8649
# ------------------------------------------
 
8650
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8651
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8652
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8653
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8654
# than defined and empty).
 
8655
#
 
8656
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8657
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8658
m4_define([lt_append],
 
8659
[m4_define([$1],
 
8660
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8661
 
 
8662
 
 
8663
 
 
8664
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8665
# ----------------------------------------------------------
 
8666
# Produce a SEP delimited list of all paired combinations of elements of
 
8667
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8668
# has the form PREFIXmINFIXSUFFIXn.
 
8669
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8670
m4_define([lt_combine],
 
8671
[m4_if(m4_eval([$# > 3]), [1],
 
8672
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8673
[[m4_foreach([_Lt_prefix], [$2],
 
8674
             [m4_foreach([_Lt_suffix],
 
8675
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8676
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8677
 
 
8678
 
 
8679
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8680
# -----------------------------------------------------------------------
 
8681
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8682
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8683
m4_define([lt_if_append_uniq],
 
8684
[m4_ifdef([$1],
 
8685
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8686
                 [lt_append([$1], [$2], [$3])$4],
 
8687
                 [$5])],
 
8688
          [lt_append([$1], [$2], [$3])$4])])
 
8689
 
 
8690
 
 
8691
# lt_dict_add(DICT, KEY, VALUE)
 
8692
# -----------------------------
 
8693
m4_define([lt_dict_add],
 
8694
[m4_define([$1($2)], [$3])])
 
8695
 
 
8696
 
 
8697
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8698
# --------------------------------------------
 
8699
m4_define([lt_dict_add_subkey],
 
8700
[m4_define([$1($2:$3)], [$4])])
 
8701
 
 
8702
 
 
8703
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8704
# ----------------------------------
 
8705
m4_define([lt_dict_fetch],
 
8706
[m4_ifval([$3],
 
8707
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8708
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8709
 
 
8710
 
 
8711
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8712
# -----------------------------------------------------------------
 
8713
m4_define([lt_if_dict_fetch],
 
8714
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8715
        [$5],
 
8716
    [$6])])
 
8717
 
 
8718
 
 
8719
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8720
# --------------------------------------------------------------
 
8721
m4_define([lt_dict_filter],
 
8722
[m4_if([$5], [], [],
 
8723
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8724
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8725
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8726
])
 
8727
 
 
8728
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8729
#
 
8730
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8731
#   Written by Scott James Remnant, 2004
 
8732
#
 
8733
# This file is free software; the Free Software Foundation gives
 
8734
# unlimited permission to copy and/or distribute it, with or without
 
8735
# modifications, as long as this notice is preserved.
 
8736
 
 
8737
# Generated from ltversion.in.
 
8738
 
 
8739
# serial 3012 ltversion.m4
 
8740
# This file is part of GNU Libtool
 
8741
 
 
8742
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8743
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8744
 
 
8745
AC_DEFUN([LTVERSION_VERSION],
 
8746
[macro_version='2.2.6'
 
8747
macro_revision='1.3012'
 
8748
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8749
_LT_DECL(, macro_revision, 0)
 
8750
])
 
8751
 
 
8752
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8753
#
 
8754
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8755
#   Written by Scott James Remnant, 2004.
 
8756
#
 
8757
# This file is free software; the Free Software Foundation gives
 
8758
# unlimited permission to copy and/or distribute it, with or without
 
8759
# modifications, as long as this notice is preserved.
 
8760
 
 
8761
# serial 4 lt~obsolete.m4
 
8762
 
 
8763
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8764
#
 
8765
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8766
# which have later been changed to m4_define as they aren't part of the
 
8767
# exported API, or moved to Autoconf or Automake where they belong.
 
8768
#
 
8769
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8770
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8771
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8772
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8773
# and doesn't know about Autoconf macros at all.)
 
8774
#
 
8775
# So we provide this file, which has a silly filename so it's always
 
8776
# included after everything else.  This provides aclocal with the
 
8777
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8778
# because those macros already exist, or will be overwritten later.
 
8779
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8780
#
 
8781
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8782
# Yes, that means every name once taken will need to remain here until
 
8783
# we give up compatibility with versions before 1.7, at which point
 
8784
# we need to keep only those names which we still refer to.
 
8785
 
 
8786
# This is to help aclocal find these macros, as it can't see m4_define.
 
8787
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8788
 
 
8789
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8790
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8791
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8792
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8793
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8794
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8795
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8796
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8797
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8798
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8799
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8800
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8801
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8802
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8803
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8804
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8805
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8806
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8807
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8808
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8809
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8810
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8811
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8812
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8813
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8814
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8815
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8816
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8817
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8818
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8819
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8820
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8821
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8822
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8823
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8824
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8825
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8826
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8827
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8828
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8829
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8830
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8831
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8832
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8833
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8834
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8835
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8836
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8837
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8838
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8839
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8840
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8841
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8842
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8843
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8381
8844
 
8382
8845
# nls.m4 serial 3 (gettext-0.15)
8383
8846
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8479
8942
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8480
8943
# ---------------------------------------------
8481
8944
m4_define([_PKG_CONFIG],
8482
 
[if test -n "$$1"; then
8483
 
    pkg_cv_[]$1="$$1"
8484
 
 elif test -n "$PKG_CONFIG"; then
8485
 
    PKG_CHECK_EXISTS([$3],
8486
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8487
 
                     [pkg_failed=yes])
8488
 
 else
8489
 
    pkg_failed=untried
 
8945
[if test -n "$PKG_CONFIG"; then
 
8946
    if test -n "$$1"; then
 
8947
        pkg_cv_[]$1="$$1"
 
8948
    else
 
8949
        PKG_CHECK_EXISTS([$3],
 
8950
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
8951
                         [pkg_failed=yes])
 
8952
    fi
 
8953
else
 
8954
        pkg_failed=untried
8490
8955
fi[]dnl
8491
8956
])# _PKG_CONFIG
8492
8957
 
8530
8995
if test $pkg_failed = yes; then
8531
8996
        _PKG_SHORT_ERRORS_SUPPORTED
8532
8997
        if test $_pkg_short_errors_supported = yes; then
8533
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
8998
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8534
8999
        else 
8535
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9000
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8536
9001
        fi
8537
9002
        # Put the nasty error message in config.log where it belongs
8538
9003
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8567
9032
fi[]dnl
8568
9033
])# PKG_CHECK_MODULES
8569
9034
 
 
9035
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9036
#
 
9037
# This file is free software; the Free Software Foundation
 
9038
# gives unlimited permission to copy and/or distribute it,
 
9039
# with or without modifications, as long as this notice is preserved.
 
9040
 
 
9041
# AM_AUTOMAKE_VERSION(VERSION)
 
9042
# ----------------------------
 
9043
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
9044
# generated from the m4 files accompanying Automake X.Y.
 
9045
# (This private macro should not be called outside this file.)
 
9046
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
9047
[am__api_version='1.10'
 
9048
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
9049
dnl require some minimum version.  Point them to the right macro.
 
9050
m4_if([$1], [1.10.2], [],
 
9051
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9052
])
 
9053
 
 
9054
# _AM_AUTOCONF_VERSION(VERSION)
 
9055
# -----------------------------
 
9056
# aclocal traces this macro to find the Autoconf version.
 
9057
# This is a private macro too.  Using m4_define simplifies
 
9058
# the logic in aclocal, which can simply ignore this definition.
 
9059
m4_define([_AM_AUTOCONF_VERSION], [])
 
9060
 
 
9061
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9062
# -------------------------------
 
9063
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
9064
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
9065
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
9066
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
9067
m4_ifndef([AC_AUTOCONF_VERSION],
 
9068
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9069
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
9070
 
 
9071
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
9072
 
 
9073
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9074
#
 
9075
# This file is free software; the Free Software Foundation
 
9076
# gives unlimited permission to copy and/or distribute it,
 
9077
# with or without modifications, as long as this notice is preserved.
 
9078
 
 
9079
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
9080
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
9081
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
9082
#
 
9083
# Of course, Automake must honor this variable whenever it calls a
 
9084
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
9085
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
9086
# depending on how configure is run.  This is pretty annoying, since
 
9087
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
9088
# source directory, any form will work fine, but in subdirectories a
 
9089
# relative path needs to be adjusted first.
 
9090
#
 
9091
# $ac_aux_dir/missing
 
9092
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
9093
# $top_srcdir/$ac_aux_dir/missing
 
9094
#    fails if $ac_aux_dir is absolute,
 
9095
#    fails when called from a subdirectory in a VPATH build with
 
9096
#          a relative $ac_aux_dir
 
9097
#
 
9098
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
9099
# are both prefixed by $srcdir.  In an in-source build this is usually
 
9100
# harmless because $srcdir is `.', but things will broke when you
 
9101
# start a VPATH build or use an absolute $srcdir.
 
9102
#
 
9103
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
9104
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
9105
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
9106
# and then we would define $MISSING as
 
9107
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
9108
# This will work as long as MISSING is not called from configure, because
 
9109
# unfortunately $(top_srcdir) has no meaning in configure.
 
9110
# However there are other variables, like CC, which are often used in
 
9111
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
9112
#
 
9113
# Another solution, used here, is to always expand $ac_aux_dir to an
 
9114
# absolute PATH.  The drawback is that using absolute paths prevent a
 
9115
# configured tree to be moved without reconfiguration.
 
9116
 
 
9117
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
9118
[dnl Rely on autoconf to set up CDPATH properly.
 
9119
AC_PREREQ([2.50])dnl
 
9120
# expand $ac_aux_dir to an absolute path
 
9121
am_aux_dir=`cd $ac_aux_dir && pwd`
 
9122
])
 
9123
 
 
9124
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
9125
 
 
9126
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
9127
# Free Software Foundation, Inc.
 
9128
#
 
9129
# This file is free software; the Free Software Foundation
 
9130
# gives unlimited permission to copy and/or distribute it,
 
9131
# with or without modifications, as long as this notice is preserved.
 
9132
 
 
9133
# serial 8
 
9134
 
 
9135
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
9136
# -------------------------------------
 
9137
# Define a conditional.
 
9138
AC_DEFUN([AM_CONDITIONAL],
 
9139
[AC_PREREQ(2.52)dnl
 
9140
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9141
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9142
AC_SUBST([$1_TRUE])dnl
 
9143
AC_SUBST([$1_FALSE])dnl
 
9144
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
9145
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9146
if $2; then
 
9147
  $1_TRUE=
 
9148
  $1_FALSE='#'
 
9149
else
 
9150
  $1_TRUE='#'
 
9151
  $1_FALSE=
 
9152
fi
 
9153
AC_CONFIG_COMMANDS_PRE(
 
9154
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
9155
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
9156
Usually this means the macro was only invoked conditionally.]])
 
9157
fi])])
 
9158
 
 
9159
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
9160
# Free Software Foundation, Inc.
 
9161
#
 
9162
# This file is free software; the Free Software Foundation
 
9163
# gives unlimited permission to copy and/or distribute it,
 
9164
# with or without modifications, as long as this notice is preserved.
 
9165
 
 
9166
# serial 9
 
9167
 
 
9168
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
9169
# written in clear, in which case automake, when reading aclocal.m4,
 
9170
# will think it sees a *use*, and therefore will trigger all it's
 
9171
# C support machinery.  Also note that it means that autoscan, seeing
 
9172
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
9173
 
 
9174
 
 
9175
# _AM_DEPENDENCIES(NAME)
 
9176
# ----------------------
 
9177
# See how the compiler implements dependency checking.
 
9178
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
9179
# We try a few techniques and use that to set a single cache variable.
 
9180
#
 
9181
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
9182
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
9183
# dependency, and given that the user is not expected to run this macro,
 
9184
# just rely on AC_PROG_CC.
 
9185
AC_DEFUN([_AM_DEPENDENCIES],
 
9186
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
9187
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
9188
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
9189
AC_REQUIRE([AM_DEP_TRACK])dnl
 
9190
 
 
9191
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
9192
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
9193
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9194
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
9195
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9196
                   [depcc="$$1"   am_compiler_list=])
 
9197
 
 
9198
AC_CACHE_CHECK([dependency style of $depcc],
 
9199
               [am_cv_$1_dependencies_compiler_type],
 
9200
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9201
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9202
  # making bogus files that we don't know about and never remove.  For
 
9203
  # instance it was reported that on HP-UX the gcc test will end up
 
9204
  # making a dummy file named `D' -- because `-MD' means `put the output
 
9205
  # in D'.
 
9206
  mkdir conftest.dir
 
9207
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9208
  # using a relative directory.
 
9209
  cp "$am_depcomp" conftest.dir
 
9210
  cd conftest.dir
 
9211
  # We will build objects and dependencies in a subdirectory because
 
9212
  # it helps to detect inapplicable dependency modes.  For instance
 
9213
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9214
  # side effect of compilation, but ICC will put the dependencies in
 
9215
  # the current directory while Tru64 will put them in the object
 
9216
  # directory.
 
9217
  mkdir sub
 
9218
 
 
9219
  am_cv_$1_dependencies_compiler_type=none
 
9220
  if test "$am_compiler_list" = ""; then
 
9221
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9222
  fi
 
9223
  for depmode in $am_compiler_list; do
 
9224
    # Setup a source with many dependencies, because some compilers
 
9225
    # like to wrap large dependency lists on column 80 (with \), and
 
9226
    # we should not choose a depcomp mode which is confused by this.
 
9227
    #
 
9228
    # We need to recreate these files for each test, as the compiler may
 
9229
    # overwrite some of them when testing with obscure command lines.
 
9230
    # This happens at least with the AIX C compiler.
 
9231
    : > sub/conftest.c
 
9232
    for i in 1 2 3 4 5 6; do
 
9233
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9234
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
9235
      # Solaris 8's {/usr,}/bin/sh.
 
9236
      touch sub/conftst$i.h
 
9237
    done
 
9238
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9239
 
 
9240
    case $depmode in
 
9241
    nosideeffect)
 
9242
      # after this tag, mechanisms are not by side-effect, so they'll
 
9243
      # only be used when explicitly requested
 
9244
      if test "x$enable_dependency_tracking" = xyes; then
 
9245
        continue
 
9246
      else
 
9247
        break
 
9248
      fi
 
9249
      ;;
 
9250
    none) break ;;
 
9251
    esac
 
9252
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9253
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9254
    # handle `-M -o', and we need to detect this.
 
9255
    if depmode=$depmode \
 
9256
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
9257
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9258
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
9259
         >/dev/null 2>conftest.err &&
 
9260
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9261
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9262
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
9263
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9264
      # icc doesn't choke on unknown options, it will just issue warnings
 
9265
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9266
      # that says an option was ignored or not supported.
 
9267
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9268
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9269
      # The diagnosis changed in icc 8.0:
 
9270
      #   icc: Command line remark: option '-MP' not supported
 
9271
      if (grep 'ignoring option' conftest.err ||
 
9272
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9273
        am_cv_$1_dependencies_compiler_type=$depmode
 
9274
        break
 
9275
      fi
 
9276
    fi
 
9277
  done
 
9278
 
 
9279
  cd ..
 
9280
  rm -rf conftest.dir
 
9281
else
 
9282
  am_cv_$1_dependencies_compiler_type=none
 
9283
fi
 
9284
])
 
9285
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
9286
AM_CONDITIONAL([am__fastdep$1], [
 
9287
  test "x$enable_dependency_tracking" != xno \
 
9288
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
9289
])
 
9290
 
 
9291
 
 
9292
# AM_SET_DEPDIR
 
9293
# -------------
 
9294
# Choose a directory name for dependency files.
 
9295
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
9296
AC_DEFUN([AM_SET_DEPDIR],
 
9297
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9298
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
9299
])
 
9300
 
 
9301
 
 
9302
# AM_DEP_TRACK
 
9303
# ------------
 
9304
AC_DEFUN([AM_DEP_TRACK],
 
9305
[AC_ARG_ENABLE(dependency-tracking,
 
9306
[  --disable-dependency-tracking  speeds up one-time build
 
9307
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
9308
if test "x$enable_dependency_tracking" != xno; then
 
9309
  am_depcomp="$ac_aux_dir/depcomp"
 
9310
  AMDEPBACKSLASH='\'
 
9311
fi
 
9312
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
9313
AC_SUBST([AMDEPBACKSLASH])dnl
 
9314
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9315
])
 
9316
 
 
9317
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
9318
 
 
9319
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
9320
# Free Software Foundation, Inc.
 
9321
#
 
9322
# This file is free software; the Free Software Foundation
 
9323
# gives unlimited permission to copy and/or distribute it,
 
9324
# with or without modifications, as long as this notice is preserved.
 
9325
 
 
9326
#serial 4
 
9327
 
 
9328
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9329
# ------------------------------
 
9330
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9331
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9332
# are listed without --file.  Let's play safe and only enable the eval
 
9333
# if we detect the quoting.
 
9334
case $CONFIG_FILES in
 
9335
*\'*) eval set x "$CONFIG_FILES" ;;
 
9336
*)   set x $CONFIG_FILES ;;
 
9337
esac
 
9338
shift
 
9339
for mf
 
9340
do
 
9341
  # Strip MF so we end up with the name of the file.
 
9342
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9343
  # Check whether this is an Automake generated Makefile or not.
 
9344
  # We used to match only the files named `Makefile.in', but
 
9345
  # some people rename them; so instead we look at the file content.
 
9346
  # Grep'ing the first line is not enough: some people post-process
 
9347
  # each Makefile.in and add a new line on top of each file to say so.
 
9348
  # Grep'ing the whole file is not good either: AIX grep has a line
 
9349
  # limit of 2048, but all sed's we know have understand at least 4000.
 
9350
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9351
    dirpart=`AS_DIRNAME("$mf")`
 
9352
  else
 
9353
    continue
 
9354
  fi
 
9355
  # Extract the definition of DEPDIR, am__include, and am__quote
 
9356
  # from the Makefile without running `make'.
 
9357
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9358
  test -z "$DEPDIR" && continue
 
9359
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9360
  test -z "am__include" && continue
 
9361
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9362
  # When using ansi2knr, U may be empty or an underscore; expand it
 
9363
  U=`sed -n 's/^U = //p' < "$mf"`
 
9364
  # Find all dependency output files, they are included files with
 
9365
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9366
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
9367
  # expansion.
 
9368
  for file in `sed -n "
 
9369
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9370
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9371
    # Make sure the directory exists.
 
9372
    test -f "$dirpart/$file" && continue
 
9373
    fdir=`AS_DIRNAME(["$file"])`
 
9374
    AS_MKDIR_P([$dirpart/$fdir])
 
9375
    # echo "creating $dirpart/$file"
 
9376
    echo '# dummy' > "$dirpart/$file"
 
9377
  done
 
9378
done
 
9379
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9380
 
 
9381
 
 
9382
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
9383
# -----------------------------
 
9384
# This macro should only be invoked once -- use via AC_REQUIRE.
 
9385
#
 
9386
# This code is only required when automatic dependency tracking
 
9387
# is enabled.  FIXME.  This creates each `.P' file that we will
 
9388
# need in order to bootstrap the dependency handling code.
 
9389
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9390
[AC_CONFIG_COMMANDS([depfiles],
 
9391
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9392
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
9393
])
 
9394
 
 
9395
# Do all the work for Automake.                             -*- Autoconf -*-
 
9396
 
 
9397
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
9398
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
9399
#
 
9400
# This file is free software; the Free Software Foundation
 
9401
# gives unlimited permission to copy and/or distribute it,
 
9402
# with or without modifications, as long as this notice is preserved.
 
9403
 
 
9404
# serial 13
 
9405
 
 
9406
# This macro actually does too much.  Some checks are only needed if
 
9407
# your package does certain things.  But this isn't really a big deal.
 
9408
 
 
9409
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
9410
# AM_INIT_AUTOMAKE([OPTIONS])
 
9411
# -----------------------------------------------
 
9412
# The call with PACKAGE and VERSION arguments is the old style
 
9413
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
9414
# and VERSION should now be passed to AC_INIT and removed from
 
9415
# the call to AM_INIT_AUTOMAKE.
 
9416
# We support both call styles for the transition.  After
 
9417
# the next Automake release, Autoconf can make the AC_INIT
 
9418
# arguments mandatory, and then we can depend on a new Autoconf
 
9419
# release and drop the old call support.
 
9420
AC_DEFUN([AM_INIT_AUTOMAKE],
 
9421
[AC_PREREQ([2.60])dnl
 
9422
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
9423
dnl the ones we care about.
 
9424
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
9425
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
9426
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
9427
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
9428
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
9429
  # is not polluted with repeated "-I."
 
9430
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
9431
  # test to see if srcdir already configured
 
9432
  if test -f $srcdir/config.status; then
 
9433
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
9434
  fi
 
9435
fi
 
9436
 
 
9437
# test whether we have cygpath
 
9438
if test -z "$CYGPATH_W"; then
 
9439
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
9440
    CYGPATH_W='cygpath -w'
 
9441
  else
 
9442
    CYGPATH_W=echo
 
9443
  fi
 
9444
fi
 
9445
AC_SUBST([CYGPATH_W])
 
9446
 
 
9447
# Define the identity of the package.
 
9448
dnl Distinguish between old-style and new-style calls.
 
9449
m4_ifval([$2],
 
9450
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
9451
 AC_SUBST([PACKAGE], [$1])dnl
 
9452
 AC_SUBST([VERSION], [$2])],
 
9453
[_AM_SET_OPTIONS([$1])dnl
 
9454
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
9455
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
9456
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
9457
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
9458
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
9459
 
 
9460
_AM_IF_OPTION([no-define],,
 
9461
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
9462
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
9463
 
 
9464
# Some tools Automake needs.
 
9465
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
9466
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
9467
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
9468
AM_MISSING_PROG(AUTOCONF, autoconf)
 
9469
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
9470
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
9471
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
9472
AM_PROG_INSTALL_SH
 
9473
AM_PROG_INSTALL_STRIP
 
9474
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
9475
# We need awk for the "check" target.  The system "awk" is bad on
 
9476
# some platforms.
 
9477
AC_REQUIRE([AC_PROG_AWK])dnl
 
9478
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
9479
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9480
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
9481
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9482
                             [_AM_PROG_TAR([v7])])])
 
9483
_AM_IF_OPTION([no-dependencies],,
 
9484
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
9485
                  [_AM_DEPENDENCIES(CC)],
 
9486
                  [define([AC_PROG_CC],
 
9487
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9488
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
9489
                  [_AM_DEPENDENCIES(CXX)],
 
9490
                  [define([AC_PROG_CXX],
 
9491
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9492
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
9493
                  [_AM_DEPENDENCIES(OBJC)],
 
9494
                  [define([AC_PROG_OBJC],
 
9495
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9496
])
 
9497
])
 
9498
 
 
9499
 
 
9500
# When config.status generates a header, we must update the stamp-h file.
 
9501
# This file resides in the same directory as the config header
 
9502
# that is generated.  The stamp files are numbered to have different names.
 
9503
 
 
9504
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
9505
# loop where config.status creates the headers, so we can generate
 
9506
# our stamp files there.
 
9507
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
9508
[# Compute $1's index in $config_headers.
 
9509
_am_arg=$1
 
9510
_am_stamp_count=1
 
9511
for _am_header in $config_headers :; do
 
9512
  case $_am_header in
 
9513
    $_am_arg | $_am_arg:* )
 
9514
      break ;;
 
9515
    * )
 
9516
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
9517
  esac
 
9518
done
 
9519
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
9520
 
 
9521
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9522
#
 
9523
# This file is free software; the Free Software Foundation
 
9524
# gives unlimited permission to copy and/or distribute it,
 
9525
# with or without modifications, as long as this notice is preserved.
 
9526
 
 
9527
# AM_PROG_INSTALL_SH
 
9528
# ------------------
 
9529
# Define $install_sh.
 
9530
AC_DEFUN([AM_PROG_INSTALL_SH],
 
9531
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9532
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
9533
AC_SUBST(install_sh)])
 
9534
 
 
9535
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
9536
#
 
9537
# This file is free software; the Free Software Foundation
 
9538
# gives unlimited permission to copy and/or distribute it,
 
9539
# with or without modifications, as long as this notice is preserved.
 
9540
 
 
9541
# serial 2
 
9542
 
 
9543
# Check whether the underlying file-system supports filenames
 
9544
# with a leading dot.  For instance MS-DOS doesn't.
 
9545
AC_DEFUN([AM_SET_LEADING_DOT],
 
9546
[rm -rf .tst 2>/dev/null
 
9547
mkdir .tst 2>/dev/null
 
9548
if test -d .tst; then
 
9549
  am__leading_dot=.
 
9550
else
 
9551
  am__leading_dot=_
 
9552
fi
 
9553
rmdir .tst 2>/dev/null
 
9554
AC_SUBST([am__leading_dot])])
 
9555
 
 
9556
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
9557
# From Jim Meyering
 
9558
 
 
9559
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
9560
# Free Software Foundation, Inc.
 
9561
#
 
9562
# This file is free software; the Free Software Foundation
 
9563
# gives unlimited permission to copy and/or distribute it,
 
9564
# with or without modifications, as long as this notice is preserved.
 
9565
 
 
9566
# serial 4
 
9567
 
 
9568
AC_DEFUN([AM_MAINTAINER_MODE],
 
9569
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
9570
  dnl maintainer-mode is disabled by default
 
9571
  AC_ARG_ENABLE(maintainer-mode,
 
9572
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
9573
                          (and sometimes confusing) to the casual installer],
 
9574
      USE_MAINTAINER_MODE=$enableval,
 
9575
      USE_MAINTAINER_MODE=no)
 
9576
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
9577
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
9578
  MAINT=$MAINTAINER_MODE_TRUE
 
9579
  AC_SUBST(MAINT)dnl
 
9580
]
 
9581
)
 
9582
 
 
9583
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
9584
 
 
9585
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
9586
 
 
9587
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9588
#
 
9589
# This file is free software; the Free Software Foundation
 
9590
# gives unlimited permission to copy and/or distribute it,
 
9591
# with or without modifications, as long as this notice is preserved.
 
9592
 
 
9593
# serial 3
 
9594
 
 
9595
# AM_MAKE_INCLUDE()
 
9596
# -----------------
 
9597
# Check to see how make treats includes.
 
9598
AC_DEFUN([AM_MAKE_INCLUDE],
 
9599
[am_make=${MAKE-make}
 
9600
cat > confinc << 'END'
 
9601
am__doit:
 
9602
        @echo done
 
9603
.PHONY: am__doit
 
9604
END
 
9605
# If we don't find an include directive, just comment out the code.
 
9606
AC_MSG_CHECKING([for style of include used by $am_make])
 
9607
am__include="#"
 
9608
am__quote=
 
9609
_am_result=none
 
9610
# First try GNU make style include.
 
9611
echo "include confinc" > confmf
 
9612
# We grep out `Entering directory' and `Leaving directory'
 
9613
# messages which can occur if `w' ends up in MAKEFLAGS.
 
9614
# In particular we don't look at `^make:' because GNU make might
 
9615
# be invoked under some other name (usually "gmake"), in which
 
9616
# case it prints its new name instead of `make'.
 
9617
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
9618
   am__include=include
 
9619
   am__quote=
 
9620
   _am_result=GNU
 
9621
fi
 
9622
# Now try BSD make style include.
 
9623
if test "$am__include" = "#"; then
 
9624
   echo '.include "confinc"' > confmf
 
9625
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
9626
      am__include=.include
 
9627
      am__quote="\""
 
9628
      _am_result=BSD
 
9629
   fi
 
9630
fi
 
9631
AC_SUBST([am__include])
 
9632
AC_SUBST([am__quote])
 
9633
AC_MSG_RESULT([$_am_result])
 
9634
rm -f confinc confmf
 
9635
])
 
9636
 
 
9637
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
9638
 
 
9639
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
9640
# Free Software Foundation, Inc.
 
9641
#
 
9642
# This file is free software; the Free Software Foundation
 
9643
# gives unlimited permission to copy and/or distribute it,
 
9644
# with or without modifications, as long as this notice is preserved.
 
9645
 
 
9646
# serial 5
 
9647
 
 
9648
# AM_MISSING_PROG(NAME, PROGRAM)
 
9649
# ------------------------------
 
9650
AC_DEFUN([AM_MISSING_PROG],
 
9651
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
9652
$1=${$1-"${am_missing_run}$2"}
 
9653
AC_SUBST($1)])
 
9654
 
 
9655
 
 
9656
# AM_MISSING_HAS_RUN
 
9657
# ------------------
 
9658
# Define MISSING if not defined so far and test if it supports --run.
 
9659
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
9660
AC_DEFUN([AM_MISSING_HAS_RUN],
 
9661
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
9662
AC_REQUIRE_AUX_FILE([missing])dnl
 
9663
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
9664
# Use eval to expand $SHELL
 
9665
if eval "$MISSING --run true"; then
 
9666
  am_missing_run="$MISSING --run "
 
9667
else
 
9668
  am_missing_run=
 
9669
  AC_MSG_WARN([`missing' script is too old or missing])
 
9670
fi
 
9671
])
 
9672
 
 
9673
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
9674
#
 
9675
# This file is free software; the Free Software Foundation
 
9676
# gives unlimited permission to copy and/or distribute it,
 
9677
# with or without modifications, as long as this notice is preserved.
 
9678
 
 
9679
# AM_PROG_MKDIR_P
 
9680
# ---------------
 
9681
# Check for `mkdir -p'.
 
9682
AC_DEFUN([AM_PROG_MKDIR_P],
 
9683
[AC_PREREQ([2.60])dnl
 
9684
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
9685
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
9686
dnl while keeping a definition of mkdir_p for backward compatibility.
 
9687
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
9688
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
9689
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
9690
dnl adjustment using top_builddir (which is defined more often than
 
9691
dnl MKDIR_P).
 
9692
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
9693
case $mkdir_p in
 
9694
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
9695
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
9696
esac
 
9697
])
 
9698
 
 
9699
# Helper functions for option handling.                     -*- Autoconf -*-
 
9700
 
 
9701
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
9702
#
 
9703
# This file is free software; the Free Software Foundation
 
9704
# gives unlimited permission to copy and/or distribute it,
 
9705
# with or without modifications, as long as this notice is preserved.
 
9706
 
 
9707
# serial 4
 
9708
 
 
9709
# _AM_MANGLE_OPTION(NAME)
 
9710
# -----------------------
 
9711
AC_DEFUN([_AM_MANGLE_OPTION],
 
9712
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
9713
 
 
9714
# _AM_SET_OPTION(NAME)
 
9715
# ------------------------------
 
9716
# Set option NAME.  Presently that only means defining a flag for this option.
 
9717
AC_DEFUN([_AM_SET_OPTION],
 
9718
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
9719
 
 
9720
# _AM_SET_OPTIONS(OPTIONS)
 
9721
# ----------------------------------
 
9722
# OPTIONS is a space-separated list of Automake options.
 
9723
AC_DEFUN([_AM_SET_OPTIONS],
 
9724
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9725
 
 
9726
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
9727
# -------------------------------------------
 
9728
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
9729
AC_DEFUN([_AM_IF_OPTION],
 
9730
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
9731
 
 
9732
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
9733
 
 
9734
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
9735
# Free Software Foundation, Inc.
 
9736
#
 
9737
# This file is free software; the Free Software Foundation
 
9738
# gives unlimited permission to copy and/or distribute it,
 
9739
# with or without modifications, as long as this notice is preserved.
 
9740
 
 
9741
# serial 4
 
9742
 
 
9743
# AM_SANITY_CHECK
 
9744
# ---------------
 
9745
AC_DEFUN([AM_SANITY_CHECK],
 
9746
[AC_MSG_CHECKING([whether build environment is sane])
 
9747
# Just in case
 
9748
sleep 1
 
9749
echo timestamp > conftest.file
 
9750
# Do `set' in a subshell so we don't clobber the current shell's
 
9751
# arguments.  Must try -L first in case configure is actually a
 
9752
# symlink; some systems play weird games with the mod time of symlinks
 
9753
# (eg FreeBSD returns the mod time of the symlink's containing
 
9754
# directory).
 
9755
if (
 
9756
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
9757
   if test "$[*]" = "X"; then
 
9758
      # -L didn't work.
 
9759
      set X `ls -t $srcdir/configure conftest.file`
 
9760
   fi
 
9761
   rm -f conftest.file
 
9762
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
9763
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
9764
 
 
9765
      # If neither matched, then we have a broken ls.  This can happen
 
9766
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
9767
      # broken ls alias from the environment.  This has actually
 
9768
      # happened.  Such a system could not be considered "sane".
 
9769
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
9770
alias in your environment])
 
9771
   fi
 
9772
 
 
9773
   test "$[2]" = conftest.file
 
9774
   )
 
9775
then
 
9776
   # Ok.
 
9777
   :
 
9778
else
 
9779
   AC_MSG_ERROR([newly created file is older than distributed files!
 
9780
Check your system clock])
 
9781
fi
 
9782
AC_MSG_RESULT(yes)])
 
9783
 
 
9784
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9785
#
 
9786
# This file is free software; the Free Software Foundation
 
9787
# gives unlimited permission to copy and/or distribute it,
 
9788
# with or without modifications, as long as this notice is preserved.
 
9789
 
 
9790
# AM_PROG_INSTALL_STRIP
 
9791
# ---------------------
 
9792
# One issue with vendor `install' (even GNU) is that you can't
 
9793
# specify the program used to strip binaries.  This is especially
 
9794
# annoying in cross-compiling environments, where the build's strip
 
9795
# is unlikely to handle the host's binaries.
 
9796
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
9797
# always use install-sh in `make install-strip', and initialize
 
9798
# STRIPPROG with the value of the STRIP variable (set by the user).
 
9799
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
9800
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9801
# Installed binaries are usually stripped using `strip' when the user
 
9802
# run `make install-strip'.  However `strip' might not be the right
 
9803
# tool to use in cross-compilation environments, therefore Automake
 
9804
# will honor the `STRIP' environment variable to overrule this program.
 
9805
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
9806
if test "$cross_compiling" != no; then
 
9807
  AC_CHECK_TOOL([STRIP], [strip], :)
 
9808
fi
 
9809
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
9810
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
9811
 
 
9812
# Copyright (C) 2006  Free Software Foundation, Inc.
 
9813
#
 
9814
# This file is free software; the Free Software Foundation
 
9815
# gives unlimited permission to copy and/or distribute it,
 
9816
# with or without modifications, as long as this notice is preserved.
 
9817
 
 
9818
# _AM_SUBST_NOTMAKE(VARIABLE)
 
9819
# ---------------------------
 
9820
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
9821
# This macro is traced by Automake.
 
9822
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
9823
 
 
9824
# Check how to create a tarball.                            -*- Autoconf -*-
 
9825
 
 
9826
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
9827
#
 
9828
# This file is free software; the Free Software Foundation
 
9829
# gives unlimited permission to copy and/or distribute it,
 
9830
# with or without modifications, as long as this notice is preserved.
 
9831
 
 
9832
# serial 2
 
9833
 
 
9834
# _AM_PROG_TAR(FORMAT)
 
9835
# --------------------
 
9836
# Check how to create a tarball in format FORMAT.
 
9837
# FORMAT should be one of `v7', `ustar', or `pax'.
 
9838
#
 
9839
# Substitute a variable $(am__tar) that is a command
 
9840
# writing to stdout a FORMAT-tarball containing the directory
 
9841
# $tardir.
 
9842
#     tardir=directory && $(am__tar) > result.tar
 
9843
#
 
9844
# Substitute a variable $(am__untar) that extract such
 
9845
# a tarball read from stdin.
 
9846
#     $(am__untar) < result.tar
 
9847
AC_DEFUN([_AM_PROG_TAR],
 
9848
[# Always define AMTAR for backward compatibility.
 
9849
AM_MISSING_PROG([AMTAR], [tar])
 
9850
m4_if([$1], [v7],
 
9851
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
9852
     [m4_case([$1], [ustar],, [pax],,
 
9853
              [m4_fatal([Unknown tar format])])
 
9854
AC_MSG_CHECKING([how to create a $1 tar archive])
 
9855
# Loop over all known methods to create a tar archive until one works.
 
9856
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
9857
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
9858
# Do not fold the above two line into one, because Tru64 sh and
 
9859
# Solaris sh will not grok spaces in the rhs of `-'.
 
9860
for _am_tool in $_am_tools
 
9861
do
 
9862
  case $_am_tool in
 
9863
  gnutar)
 
9864
    for _am_tar in tar gnutar gtar;
 
9865
    do
 
9866
      AM_RUN_LOG([$_am_tar --version]) && break
 
9867
    done
 
9868
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
9869
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
9870
    am__untar="$_am_tar -xf -"
 
9871
    ;;
 
9872
  plaintar)
 
9873
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
9874
    # ustar tarball either.
 
9875
    (tar --version) >/dev/null 2>&1 && continue
 
9876
    am__tar='tar chf - "$$tardir"'
 
9877
    am__tar_='tar chf - "$tardir"'
 
9878
    am__untar='tar xf -'
 
9879
    ;;
 
9880
  pax)
 
9881
    am__tar='pax -L -x $1 -w "$$tardir"'
 
9882
    am__tar_='pax -L -x $1 -w "$tardir"'
 
9883
    am__untar='pax -r'
 
9884
    ;;
 
9885
  cpio)
 
9886
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
9887
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
9888
    am__untar='cpio -i -H $1 -d'
 
9889
    ;;
 
9890
  none)
 
9891
    am__tar=false
 
9892
    am__tar_=false
 
9893
    am__untar=false
 
9894
    ;;
 
9895
  esac
 
9896
 
 
9897
  # If the value was cached, stop now.  We just wanted to have am__tar
 
9898
  # and am__untar set.
 
9899
  test -n "${am_cv_prog_tar_$1}" && break
 
9900
 
 
9901
  # tar/untar a dummy directory, and stop if the command works
 
9902
  rm -rf conftest.dir
 
9903
  mkdir conftest.dir
 
9904
  echo GrepMe > conftest.dir/file
 
9905
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
9906
  rm -rf conftest.dir
 
9907
  if test -s conftest.tar; then
 
9908
    AM_RUN_LOG([$am__untar <conftest.tar])
 
9909
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
9910
  fi
 
9911
done
 
9912
rm -rf conftest.dir
 
9913
 
 
9914
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
9915
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
9916
AC_SUBST([am__tar])
 
9917
AC_SUBST([am__untar])
 
9918
]) # _AM_PROG_TAR
 
9919