~ubuntu-branches/ubuntu/oneiric/gdm3/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2010-03-25 20:02:20 UTC
  • Revision ID: james.westby@ubuntu.com-20100325200220-12cap62s6p304nuh
Tags: upstream-2.29.92
Import upstream version 2.29.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  Free Software Foundation, Inc.
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
12
# PARTICULAR PURPOSE.
 
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.63],,
 
15
[m4_fatal([this file was generated for autoconf 2.63.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
 
19
# nls.m4 serial 3 (gettext-0.15)
 
20
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
21
dnl This file is free software; the Free Software Foundation
 
22
dnl gives unlimited permission to copy and/or distribute it,
 
23
dnl with or without modifications, as long as this notice is preserved.
 
24
dnl
 
25
dnl This file can can be used in projects which are not available under
 
26
dnl the GNU General Public License or the GNU Library General Public
 
27
dnl License but which still want to provide support for the GNU gettext
 
28
dnl functionality.
 
29
dnl Please note that the actual code of the GNU gettext library is covered
 
30
dnl by the GNU Library General Public License, and the rest of the GNU
 
31
dnl gettext package package is covered by the GNU General Public License.
 
32
dnl They are *not* in the public domain.
 
33
 
 
34
dnl Authors:
 
35
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
36
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
37
 
 
38
AC_PREREQ(2.50)
 
39
 
 
40
AC_DEFUN([AM_NLS],
 
41
[
 
42
  AC_MSG_CHECKING([whether NLS is requested])
 
43
  dnl Default is enabled NLS
 
44
  AC_ARG_ENABLE(nls,
 
45
    [  --disable-nls           do not use Native Language Support],
 
46
    USE_NLS=$enableval, USE_NLS=yes)
 
47
  AC_MSG_RESULT($USE_NLS)
 
48
  AC_SUBST(USE_NLS)
 
49
])
 
50
 
 
51
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
52
#
 
53
# This file is free software; the Free Software Foundation
 
54
# gives unlimited permission to copy and/or distribute it,
 
55
# with or without modifications, as long as this notice is preserved.
 
56
 
 
57
# AM_AUTOMAKE_VERSION(VERSION)
 
58
# ----------------------------
 
59
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
60
# generated from the m4 files accompanying Automake X.Y.
 
61
# (This private macro should not be called outside this file.)
 
62
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
63
[am__api_version='1.10'
 
64
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
65
dnl require some minimum version.  Point them to the right macro.
 
66
m4_if([$1], [1.10], [],
 
67
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
68
])
 
69
 
 
70
# _AM_AUTOCONF_VERSION(VERSION)
 
71
# -----------------------------
 
72
# aclocal traces this macro to find the Autoconf version.
 
73
# This is a private macro too.  Using m4_define simplifies
 
74
# the logic in aclocal, which can simply ignore this definition.
 
75
m4_define([_AM_AUTOCONF_VERSION], [])
 
76
 
 
77
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
78
# -------------------------------
 
79
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
80
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
81
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
82
[AM_AUTOMAKE_VERSION([1.10])dnl
 
83
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
84
 
 
85
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
86
 
 
87
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
88
#
 
89
# This file is free software; the Free Software Foundation
 
90
# gives unlimited permission to copy and/or distribute it,
 
91
# with or without modifications, as long as this notice is preserved.
 
92
 
 
93
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
94
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
95
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
96
#
 
97
# Of course, Automake must honor this variable whenever it calls a
 
98
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
99
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
100
# depending on how configure is run.  This is pretty annoying, since
 
101
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
102
# source directory, any form will work fine, but in subdirectories a
 
103
# relative path needs to be adjusted first.
 
104
#
 
105
# $ac_aux_dir/missing
 
106
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
107
# $top_srcdir/$ac_aux_dir/missing
 
108
#    fails if $ac_aux_dir is absolute,
 
109
#    fails when called from a subdirectory in a VPATH build with
 
110
#          a relative $ac_aux_dir
 
111
#
 
112
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
113
# are both prefixed by $srcdir.  In an in-source build this is usually
 
114
# harmless because $srcdir is `.', but things will broke when you
 
115
# start a VPATH build or use an absolute $srcdir.
 
116
#
 
117
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
118
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
119
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
120
# and then we would define $MISSING as
 
121
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
122
# This will work as long as MISSING is not called from configure, because
 
123
# unfortunately $(top_srcdir) has no meaning in configure.
 
124
# However there are other variables, like CC, which are often used in
 
125
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
126
#
 
127
# Another solution, used here, is to always expand $ac_aux_dir to an
 
128
# absolute PATH.  The drawback is that using absolute paths prevent a
 
129
# configured tree to be moved without reconfiguration.
 
130
 
 
131
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
132
[dnl Rely on autoconf to set up CDPATH properly.
 
133
AC_PREREQ([2.50])dnl
 
134
# expand $ac_aux_dir to an absolute path
 
135
am_aux_dir=`cd $ac_aux_dir && pwd`
 
136
])
 
137
 
 
138
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
139
 
 
140
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
141
# Free Software Foundation, Inc.
 
142
#
 
143
# This file is free software; the Free Software Foundation
 
144
# gives unlimited permission to copy and/or distribute it,
 
145
# with or without modifications, as long as this notice is preserved.
 
146
 
 
147
# serial 8
 
148
 
 
149
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
150
# -------------------------------------
 
151
# Define a conditional.
 
152
AC_DEFUN([AM_CONDITIONAL],
 
153
[AC_PREREQ(2.52)dnl
 
154
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
155
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
156
AC_SUBST([$1_TRUE])dnl
 
157
AC_SUBST([$1_FALSE])dnl
 
158
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
159
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
160
if $2; then
 
161
  $1_TRUE=
 
162
  $1_FALSE='#'
 
163
else
 
164
  $1_TRUE='#'
 
165
  $1_FALSE=
 
166
fi
 
167
AC_CONFIG_COMMANDS_PRE(
 
168
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
169
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
170
Usually this means the macro was only invoked conditionally.]])
 
171
fi])])
 
172
 
 
173
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
174
# Free Software Foundation, Inc.
 
175
#
 
176
# This file is free software; the Free Software Foundation
 
177
# gives unlimited permission to copy and/or distribute it,
 
178
# with or without modifications, as long as this notice is preserved.
 
179
 
 
180
# serial 9
 
181
 
 
182
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
183
# written in clear, in which case automake, when reading aclocal.m4,
 
184
# will think it sees a *use*, and therefore will trigger all it's
 
185
# C support machinery.  Also note that it means that autoscan, seeing
 
186
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
187
 
 
188
 
 
189
# _AM_DEPENDENCIES(NAME)
 
190
# ----------------------
 
191
# See how the compiler implements dependency checking.
 
192
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
193
# We try a few techniques and use that to set a single cache variable.
 
194
#
 
195
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
196
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
197
# dependency, and given that the user is not expected to run this macro,
 
198
# just rely on AC_PROG_CC.
 
199
AC_DEFUN([_AM_DEPENDENCIES],
 
200
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
201
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
202
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
203
AC_REQUIRE([AM_DEP_TRACK])dnl
 
204
 
 
205
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
206
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
207
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
208
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
209
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
210
                   [depcc="$$1"   am_compiler_list=])
 
211
 
 
212
AC_CACHE_CHECK([dependency style of $depcc],
 
213
               [am_cv_$1_dependencies_compiler_type],
 
214
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
215
  # We make a subdir and do the tests there.  Otherwise we can end up
 
216
  # making bogus files that we don't know about and never remove.  For
 
217
  # instance it was reported that on HP-UX the gcc test will end up
 
218
  # making a dummy file named `D' -- because `-MD' means `put the output
 
219
  # in D'.
 
220
  mkdir conftest.dir
 
221
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
222
  # using a relative directory.
 
223
  cp "$am_depcomp" conftest.dir
 
224
  cd conftest.dir
 
225
  # We will build objects and dependencies in a subdirectory because
 
226
  # it helps to detect inapplicable dependency modes.  For instance
 
227
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
228
  # side effect of compilation, but ICC will put the dependencies in
 
229
  # the current directory while Tru64 will put them in the object
 
230
  # directory.
 
231
  mkdir sub
 
232
 
 
233
  am_cv_$1_dependencies_compiler_type=none
 
234
  if test "$am_compiler_list" = ""; then
 
235
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
236
  fi
 
237
  for depmode in $am_compiler_list; do
 
238
    # Setup a source with many dependencies, because some compilers
 
239
    # like to wrap large dependency lists on column 80 (with \), and
 
240
    # we should not choose a depcomp mode which is confused by this.
 
241
    #
 
242
    # We need to recreate these files for each test, as the compiler may
 
243
    # overwrite some of them when testing with obscure command lines.
 
244
    # This happens at least with the AIX C compiler.
 
245
    : > sub/conftest.c
 
246
    for i in 1 2 3 4 5 6; do
 
247
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
248
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
249
      # Solaris 8's {/usr,}/bin/sh.
 
250
      touch sub/conftst$i.h
 
251
    done
 
252
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
253
 
 
254
    case $depmode in
 
255
    nosideeffect)
 
256
      # after this tag, mechanisms are not by side-effect, so they'll
 
257
      # only be used when explicitly requested
 
258
      if test "x$enable_dependency_tracking" = xyes; then
 
259
        continue
 
260
      else
 
261
        break
 
262
      fi
 
263
      ;;
 
264
    none) break ;;
 
265
    esac
 
266
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
267
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
268
    # handle `-M -o', and we need to detect this.
 
269
    if depmode=$depmode \
 
270
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
271
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
272
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
273
         >/dev/null 2>conftest.err &&
 
274
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
275
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
276
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
277
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
278
      # icc doesn't choke on unknown options, it will just issue warnings
 
279
      # or remarks (even with -Werror).  So we grep stderr for any message
 
280
      # that says an option was ignored or not supported.
 
281
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
282
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
283
      # The diagnosis changed in icc 8.0:
 
284
      #   icc: Command line remark: option '-MP' not supported
 
285
      if (grep 'ignoring option' conftest.err ||
 
286
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
287
        am_cv_$1_dependencies_compiler_type=$depmode
 
288
        break
 
289
      fi
 
290
    fi
 
291
  done
 
292
 
 
293
  cd ..
 
294
  rm -rf conftest.dir
 
295
else
 
296
  am_cv_$1_dependencies_compiler_type=none
 
297
fi
 
298
])
 
299
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
300
AM_CONDITIONAL([am__fastdep$1], [
 
301
  test "x$enable_dependency_tracking" != xno \
 
302
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
303
])
 
304
 
 
305
 
 
306
# AM_SET_DEPDIR
 
307
# -------------
 
308
# Choose a directory name for dependency files.
 
309
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
310
AC_DEFUN([AM_SET_DEPDIR],
 
311
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
312
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
313
])
 
314
 
 
315
 
 
316
# AM_DEP_TRACK
 
317
# ------------
 
318
AC_DEFUN([AM_DEP_TRACK],
 
319
[AC_ARG_ENABLE(dependency-tracking,
 
320
[  --disable-dependency-tracking  speeds up one-time build
 
321
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
322
if test "x$enable_dependency_tracking" != xno; then
 
323
  am_depcomp="$ac_aux_dir/depcomp"
 
324
  AMDEPBACKSLASH='\'
 
325
fi
 
326
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
327
AC_SUBST([AMDEPBACKSLASH])dnl
 
328
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
329
])
 
330
 
 
331
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
332
 
 
333
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
334
# Free Software Foundation, Inc.
 
335
#
 
336
# This file is free software; the Free Software Foundation
 
337
# gives unlimited permission to copy and/or distribute it,
 
338
# with or without modifications, as long as this notice is preserved.
 
339
 
 
340
#serial 3
 
341
 
 
342
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
343
# ------------------------------
 
344
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
345
[for mf in $CONFIG_FILES; do
 
346
  # Strip MF so we end up with the name of the file.
 
347
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
348
  # Check whether this is an Automake generated Makefile or not.
 
349
  # We used to match only the files named `Makefile.in', but
 
350
  # some people rename them; so instead we look at the file content.
 
351
  # Grep'ing the first line is not enough: some people post-process
 
352
  # each Makefile.in and add a new line on top of each file to say so.
 
353
  # Grep'ing the whole file is not good either: AIX grep has a line
 
354
  # limit of 2048, but all sed's we know have understand at least 4000.
 
355
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
356
    dirpart=`AS_DIRNAME("$mf")`
 
357
  else
 
358
    continue
 
359
  fi
 
360
  # Extract the definition of DEPDIR, am__include, and am__quote
 
361
  # from the Makefile without running `make'.
 
362
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
363
  test -z "$DEPDIR" && continue
 
364
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
365
  test -z "am__include" && continue
 
366
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
367
  # When using ansi2knr, U may be empty or an underscore; expand it
 
368
  U=`sed -n 's/^U = //p' < "$mf"`
 
369
  # Find all dependency output files, they are included files with
 
370
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
371
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
372
  # expansion.
 
373
  for file in `sed -n "
 
374
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
375
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
376
    # Make sure the directory exists.
 
377
    test -f "$dirpart/$file" && continue
 
378
    fdir=`AS_DIRNAME(["$file"])`
 
379
    AS_MKDIR_P([$dirpart/$fdir])
 
380
    # echo "creating $dirpart/$file"
 
381
    echo '# dummy' > "$dirpart/$file"
 
382
  done
 
383
done
 
384
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
385
 
 
386
 
 
387
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
388
# -----------------------------
 
389
# This macro should only be invoked once -- use via AC_REQUIRE.
 
390
#
 
391
# This code is only required when automatic dependency tracking
 
392
# is enabled.  FIXME.  This creates each `.P' file that we will
 
393
# need in order to bootstrap the dependency handling code.
 
394
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
395
[AC_CONFIG_COMMANDS([depfiles],
 
396
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
397
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
398
])
 
399
 
 
400
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
401
# Free Software Foundation, Inc.
 
402
#
 
403
# This file is free software; the Free Software Foundation
 
404
# gives unlimited permission to copy and/or distribute it,
 
405
# with or without modifications, as long as this notice is preserved.
 
406
 
 
407
# serial 8
 
408
 
 
409
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
410
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
411
 
 
412
# Do all the work for Automake.                             -*- Autoconf -*-
 
413
 
 
414
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
415
# 2005, 2006 Free Software Foundation, Inc.
 
416
#
 
417
# This file is free software; the Free Software Foundation
 
418
# gives unlimited permission to copy and/or distribute it,
 
419
# with or without modifications, as long as this notice is preserved.
 
420
 
 
421
# serial 12
 
422
 
 
423
# This macro actually does too much.  Some checks are only needed if
 
424
# your package does certain things.  But this isn't really a big deal.
 
425
 
 
426
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
427
# AM_INIT_AUTOMAKE([OPTIONS])
 
428
# -----------------------------------------------
 
429
# The call with PACKAGE and VERSION arguments is the old style
 
430
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
431
# and VERSION should now be passed to AC_INIT and removed from
 
432
# the call to AM_INIT_AUTOMAKE.
 
433
# We support both call styles for the transition.  After
 
434
# the next Automake release, Autoconf can make the AC_INIT
 
435
# arguments mandatory, and then we can depend on a new Autoconf
 
436
# release and drop the old call support.
 
437
AC_DEFUN([AM_INIT_AUTOMAKE],
 
438
[AC_PREREQ([2.60])dnl
 
439
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
440
dnl the ones we care about.
 
441
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
442
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
443
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
444
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
445
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
446
  # is not polluted with repeated "-I."
 
447
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
448
  # test to see if srcdir already configured
 
449
  if test -f $srcdir/config.status; then
 
450
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
451
  fi
 
452
fi
 
453
 
 
454
# test whether we have cygpath
 
455
if test -z "$CYGPATH_W"; then
 
456
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
457
    CYGPATH_W='cygpath -w'
 
458
  else
 
459
    CYGPATH_W=echo
 
460
  fi
 
461
fi
 
462
AC_SUBST([CYGPATH_W])
 
463
 
 
464
# Define the identity of the package.
 
465
dnl Distinguish between old-style and new-style calls.
 
466
m4_ifval([$2],
 
467
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
468
 AC_SUBST([PACKAGE], [$1])dnl
 
469
 AC_SUBST([VERSION], [$2])],
 
470
[_AM_SET_OPTIONS([$1])dnl
 
471
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
472
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
473
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
474
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
475
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
476
 
 
477
_AM_IF_OPTION([no-define],,
 
478
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
479
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
480
 
 
481
# Some tools Automake needs.
 
482
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
483
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
484
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
485
AM_MISSING_PROG(AUTOCONF, autoconf)
 
486
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
487
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
488
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
489
AM_PROG_INSTALL_SH
 
490
AM_PROG_INSTALL_STRIP
 
491
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
492
# We need awk for the "check" target.  The system "awk" is bad on
 
493
# some platforms.
 
494
AC_REQUIRE([AC_PROG_AWK])dnl
 
495
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
496
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
497
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
498
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
499
                             [_AM_PROG_TAR([v7])])])
 
500
_AM_IF_OPTION([no-dependencies],,
 
501
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
502
                  [_AM_DEPENDENCIES(CC)],
 
503
                  [define([AC_PROG_CC],
 
504
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
505
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
506
                  [_AM_DEPENDENCIES(CXX)],
 
507
                  [define([AC_PROG_CXX],
 
508
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
509
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
510
                  [_AM_DEPENDENCIES(OBJC)],
 
511
                  [define([AC_PROG_OBJC],
 
512
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
513
])
 
514
])
 
515
 
 
516
 
 
517
# When config.status generates a header, we must update the stamp-h file.
 
518
# This file resides in the same directory as the config header
 
519
# that is generated.  The stamp files are numbered to have different names.
 
520
 
 
521
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
522
# loop where config.status creates the headers, so we can generate
 
523
# our stamp files there.
 
524
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
525
[# Compute $1's index in $config_headers.
 
526
_am_stamp_count=1
 
527
for _am_header in $config_headers :; do
 
528
  case $_am_header in
 
529
    $1 | $1:* )
 
530
      break ;;
 
531
    * )
 
532
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
533
  esac
 
534
done
 
535
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
536
 
 
537
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
538
#
 
539
# This file is free software; the Free Software Foundation
 
540
# gives unlimited permission to copy and/or distribute it,
 
541
# with or without modifications, as long as this notice is preserved.
 
542
 
 
543
# AM_PROG_INSTALL_SH
 
544
# ------------------
 
545
# Define $install_sh.
 
546
AC_DEFUN([AM_PROG_INSTALL_SH],
 
547
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
548
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
549
AC_SUBST(install_sh)])
 
550
 
 
551
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
552
#
 
553
# This file is free software; the Free Software Foundation
 
554
# gives unlimited permission to copy and/or distribute it,
 
555
# with or without modifications, as long as this notice is preserved.
 
556
 
 
557
# serial 2
 
558
 
 
559
# Check whether the underlying file-system supports filenames
 
560
# with a leading dot.  For instance MS-DOS doesn't.
 
561
AC_DEFUN([AM_SET_LEADING_DOT],
 
562
[rm -rf .tst 2>/dev/null
 
563
mkdir .tst 2>/dev/null
 
564
if test -d .tst; then
 
565
  am__leading_dot=.
 
566
else
 
567
  am__leading_dot=_
 
568
fi
 
569
rmdir .tst 2>/dev/null
 
570
AC_SUBST([am__leading_dot])])
 
571
 
 
572
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
573
# From Jim Meyering
 
574
 
 
575
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
576
# Free Software Foundation, Inc.
 
577
#
 
578
# This file is free software; the Free Software Foundation
 
579
# gives unlimited permission to copy and/or distribute it,
 
580
# with or without modifications, as long as this notice is preserved.
 
581
 
 
582
# serial 4
 
583
 
 
584
AC_DEFUN([AM_MAINTAINER_MODE],
 
585
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
586
  dnl maintainer-mode is disabled by default
 
587
  AC_ARG_ENABLE(maintainer-mode,
 
588
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
589
                          (and sometimes confusing) to the casual installer],
 
590
      USE_MAINTAINER_MODE=$enableval,
 
591
      USE_MAINTAINER_MODE=no)
 
592
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
593
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
594
  MAINT=$MAINTAINER_MODE_TRUE
 
595
  AC_SUBST(MAINT)dnl
 
596
]
 
597
)
 
598
 
 
599
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
600
 
 
601
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
602
 
 
603
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
604
#
 
605
# This file is free software; the Free Software Foundation
 
606
# gives unlimited permission to copy and/or distribute it,
 
607
# with or without modifications, as long as this notice is preserved.
 
608
 
 
609
# serial 3
 
610
 
 
611
# AM_MAKE_INCLUDE()
 
612
# -----------------
 
613
# Check to see how make treats includes.
 
614
AC_DEFUN([AM_MAKE_INCLUDE],
 
615
[am_make=${MAKE-make}
 
616
cat > confinc << 'END'
 
617
am__doit:
 
618
        @echo done
 
619
.PHONY: am__doit
 
620
END
 
621
# If we don't find an include directive, just comment out the code.
 
622
AC_MSG_CHECKING([for style of include used by $am_make])
 
623
am__include="#"
 
624
am__quote=
 
625
_am_result=none
 
626
# First try GNU make style include.
 
627
echo "include confinc" > confmf
 
628
# We grep out `Entering directory' and `Leaving directory'
 
629
# messages which can occur if `w' ends up in MAKEFLAGS.
 
630
# In particular we don't look at `^make:' because GNU make might
 
631
# be invoked under some other name (usually "gmake"), in which
 
632
# case it prints its new name instead of `make'.
 
633
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
634
   am__include=include
 
635
   am__quote=
 
636
   _am_result=GNU
 
637
fi
 
638
# Now try BSD make style include.
 
639
if test "$am__include" = "#"; then
 
640
   echo '.include "confinc"' > confmf
 
641
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
642
      am__include=.include
 
643
      am__quote="\""
 
644
      _am_result=BSD
 
645
   fi
 
646
fi
 
647
AC_SUBST([am__include])
 
648
AC_SUBST([am__quote])
 
649
AC_MSG_RESULT([$_am_result])
 
650
rm -f confinc confmf
 
651
])
 
652
 
 
653
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
654
# Free Software Foundation, Inc.
 
655
#
 
656
# This file is free software; the Free Software Foundation
 
657
# gives unlimited permission to copy and/or distribute it,
 
658
# with or without modifications, as long as this notice is preserved.
 
659
 
 
660
# serial 5
 
661
 
 
662
# AM_PROG_CC_C_O
 
663
# --------------
 
664
# Like AC_PROG_CC_C_O, but changed for automake.
 
665
AC_DEFUN([AM_PROG_CC_C_O],
 
666
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
667
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
668
AC_REQUIRE_AUX_FILE([compile])dnl
 
669
# FIXME: we rely on the cache variable name because
 
670
# there is no other way.
 
671
set dummy $CC
 
672
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
673
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
674
   # Losing compiler, so override with the script.
 
675
   # FIXME: It is wrong to rewrite CC.
 
676
   # But if we don't then we get into trouble of one sort or another.
 
677
   # A longer-term fix would be to have automake use am__CC in this case,
 
678
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
679
   CC="$am_aux_dir/compile $CC"
 
680
fi
 
681
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
682
dnl setting of CC.
 
683
m4_define([AC_PROG_CC],
 
684
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
685
])
 
686
 
 
687
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
688
 
 
689
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
690
# Free Software Foundation, Inc.
 
691
#
 
692
# This file is free software; the Free Software Foundation
 
693
# gives unlimited permission to copy and/or distribute it,
 
694
# with or without modifications, as long as this notice is preserved.
 
695
 
 
696
# serial 5
 
697
 
 
698
# AM_MISSING_PROG(NAME, PROGRAM)
 
699
# ------------------------------
 
700
AC_DEFUN([AM_MISSING_PROG],
 
701
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
702
$1=${$1-"${am_missing_run}$2"}
 
703
AC_SUBST($1)])
 
704
 
 
705
 
 
706
# AM_MISSING_HAS_RUN
 
707
# ------------------
 
708
# Define MISSING if not defined so far and test if it supports --run.
 
709
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
710
AC_DEFUN([AM_MISSING_HAS_RUN],
 
711
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
712
AC_REQUIRE_AUX_FILE([missing])dnl
 
713
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
714
# Use eval to expand $SHELL
 
715
if eval "$MISSING --run true"; then
 
716
  am_missing_run="$MISSING --run "
 
717
else
 
718
  am_missing_run=
 
719
  AC_MSG_WARN([`missing' script is too old or missing])
 
720
fi
 
721
])
 
722
 
 
723
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
724
#
 
725
# This file is free software; the Free Software Foundation
 
726
# gives unlimited permission to copy and/or distribute it,
 
727
# with or without modifications, as long as this notice is preserved.
 
728
 
 
729
# AM_PROG_MKDIR_P
 
730
# ---------------
 
731
# Check for `mkdir -p'.
 
732
AC_DEFUN([AM_PROG_MKDIR_P],
 
733
[AC_PREREQ([2.60])dnl
 
734
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
735
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
736
dnl while keeping a definition of mkdir_p for backward compatibility.
 
737
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
738
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
739
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
740
dnl adjustment using top_builddir (which is defined more often than
 
741
dnl MKDIR_P).
 
742
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
743
case $mkdir_p in
 
744
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
745
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
746
esac
 
747
])
 
748
 
 
749
# Helper functions for option handling.                     -*- Autoconf -*-
 
750
 
 
751
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
752
#
 
753
# This file is free software; the Free Software Foundation
 
754
# gives unlimited permission to copy and/or distribute it,
 
755
# with or without modifications, as long as this notice is preserved.
 
756
 
 
757
# serial 3
 
758
 
 
759
# _AM_MANGLE_OPTION(NAME)
 
760
# -----------------------
 
761
AC_DEFUN([_AM_MANGLE_OPTION],
 
762
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
763
 
 
764
# _AM_SET_OPTION(NAME)
 
765
# ------------------------------
 
766
# Set option NAME.  Presently that only means defining a flag for this option.
 
767
AC_DEFUN([_AM_SET_OPTION],
 
768
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
769
 
 
770
# _AM_SET_OPTIONS(OPTIONS)
 
771
# ----------------------------------
 
772
# OPTIONS is a space-separated list of Automake options.
 
773
AC_DEFUN([_AM_SET_OPTIONS],
 
774
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
775
 
 
776
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
777
# -------------------------------------------
 
778
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
779
AC_DEFUN([_AM_IF_OPTION],
 
780
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
781
 
 
782
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
783
 
 
784
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
785
# Free Software Foundation, Inc.
 
786
#
 
787
# This file is free software; the Free Software Foundation
 
788
# gives unlimited permission to copy and/or distribute it,
 
789
# with or without modifications, as long as this notice is preserved.
 
790
 
 
791
# serial 4
 
792
 
 
793
# AM_SANITY_CHECK
 
794
# ---------------
 
795
AC_DEFUN([AM_SANITY_CHECK],
 
796
[AC_MSG_CHECKING([whether build environment is sane])
 
797
# Just in case
 
798
sleep 1
 
799
echo timestamp > conftest.file
 
800
# Do `set' in a subshell so we don't clobber the current shell's
 
801
# arguments.  Must try -L first in case configure is actually a
 
802
# symlink; some systems play weird games with the mod time of symlinks
 
803
# (eg FreeBSD returns the mod time of the symlink's containing
 
804
# directory).
 
805
if (
 
806
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
807
   if test "$[*]" = "X"; then
 
808
      # -L didn't work.
 
809
      set X `ls -t $srcdir/configure conftest.file`
 
810
   fi
 
811
   rm -f conftest.file
 
812
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
813
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
814
 
 
815
      # If neither matched, then we have a broken ls.  This can happen
 
816
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
817
      # broken ls alias from the environment.  This has actually
 
818
      # happened.  Such a system could not be considered "sane".
 
819
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
820
alias in your environment])
 
821
   fi
 
822
 
 
823
   test "$[2]" = conftest.file
 
824
   )
 
825
then
 
826
   # Ok.
 
827
   :
 
828
else
 
829
   AC_MSG_ERROR([newly created file is older than distributed files!
 
830
Check your system clock])
 
831
fi
 
832
AC_MSG_RESULT(yes)])
 
833
 
 
834
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
835
#
 
836
# This file is free software; the Free Software Foundation
 
837
# gives unlimited permission to copy and/or distribute it,
 
838
# with or without modifications, as long as this notice is preserved.
 
839
 
 
840
# AM_PROG_INSTALL_STRIP
 
841
# ---------------------
 
842
# One issue with vendor `install' (even GNU) is that you can't
 
843
# specify the program used to strip binaries.  This is especially
 
844
# annoying in cross-compiling environments, where the build's strip
 
845
# is unlikely to handle the host's binaries.
 
846
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
847
# always use install-sh in `make install-strip', and initialize
 
848
# STRIPPROG with the value of the STRIP variable (set by the user).
 
849
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
850
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
851
# Installed binaries are usually stripped using `strip' when the user
 
852
# run `make install-strip'.  However `strip' might not be the right
 
853
# tool to use in cross-compilation environments, therefore Automake
 
854
# will honor the `STRIP' environment variable to overrule this program.
 
855
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
856
if test "$cross_compiling" != no; then
 
857
  AC_CHECK_TOOL([STRIP], [strip], :)
 
858
fi
 
859
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
860
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
861
 
 
862
# Copyright (C) 2006  Free Software Foundation, Inc.
 
863
#
 
864
# This file is free software; the Free Software Foundation
 
865
# gives unlimited permission to copy and/or distribute it,
 
866
# with or without modifications, as long as this notice is preserved.
 
867
 
 
868
# _AM_SUBST_NOTMAKE(VARIABLE)
 
869
# ---------------------------
 
870
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
871
# This macro is traced by Automake.
 
872
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
873
 
 
874
# Check how to create a tarball.                            -*- Autoconf -*-
 
875
 
 
876
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
877
#
 
878
# This file is free software; the Free Software Foundation
 
879
# gives unlimited permission to copy and/or distribute it,
 
880
# with or without modifications, as long as this notice is preserved.
 
881
 
 
882
# serial 2
 
883
 
 
884
# _AM_PROG_TAR(FORMAT)
 
885
# --------------------
 
886
# Check how to create a tarball in format FORMAT.
 
887
# FORMAT should be one of `v7', `ustar', or `pax'.
 
888
#
 
889
# Substitute a variable $(am__tar) that is a command
 
890
# writing to stdout a FORMAT-tarball containing the directory
 
891
# $tardir.
 
892
#     tardir=directory && $(am__tar) > result.tar
 
893
#
 
894
# Substitute a variable $(am__untar) that extract such
 
895
# a tarball read from stdin.
 
896
#     $(am__untar) < result.tar
 
897
AC_DEFUN([_AM_PROG_TAR],
 
898
[# Always define AMTAR for backward compatibility.
 
899
AM_MISSING_PROG([AMTAR], [tar])
 
900
m4_if([$1], [v7],
 
901
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
902
     [m4_case([$1], [ustar],, [pax],,
 
903
              [m4_fatal([Unknown tar format])])
 
904
AC_MSG_CHECKING([how to create a $1 tar archive])
 
905
# Loop over all known methods to create a tar archive until one works.
 
906
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
907
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
908
# Do not fold the above two line into one, because Tru64 sh and
 
909
# Solaris sh will not grok spaces in the rhs of `-'.
 
910
for _am_tool in $_am_tools
 
911
do
 
912
  case $_am_tool in
 
913
  gnutar)
 
914
    for _am_tar in tar gnutar gtar;
 
915
    do
 
916
      AM_RUN_LOG([$_am_tar --version]) && break
 
917
    done
 
918
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
919
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
920
    am__untar="$_am_tar -xf -"
 
921
    ;;
 
922
  plaintar)
 
923
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
924
    # ustar tarball either.
 
925
    (tar --version) >/dev/null 2>&1 && continue
 
926
    am__tar='tar chf - "$$tardir"'
 
927
    am__tar_='tar chf - "$tardir"'
 
928
    am__untar='tar xf -'
 
929
    ;;
 
930
  pax)
 
931
    am__tar='pax -L -x $1 -w "$$tardir"'
 
932
    am__tar_='pax -L -x $1 -w "$tardir"'
 
933
    am__untar='pax -r'
 
934
    ;;
 
935
  cpio)
 
936
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
937
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
938
    am__untar='cpio -i -H $1 -d'
 
939
    ;;
 
940
  none)
 
941
    am__tar=false
 
942
    am__tar_=false
 
943
    am__untar=false
 
944
    ;;
 
945
  esac
 
946
 
 
947
  # If the value was cached, stop now.  We just wanted to have am__tar
 
948
  # and am__untar set.
 
949
  test -n "${am_cv_prog_tar_$1}" && break
 
950
 
 
951
  # tar/untar a dummy directory, and stop if the command works
 
952
  rm -rf conftest.dir
 
953
  mkdir conftest.dir
 
954
  echo GrepMe > conftest.dir/file
 
955
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
956
  rm -rf conftest.dir
 
957
  if test -s conftest.tar; then
 
958
    AM_RUN_LOG([$am__untar <conftest.tar])
 
959
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
960
  fi
 
961
done
 
962
rm -rf conftest.dir
 
963
 
 
964
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
965
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
966
AC_SUBST([am__tar])
 
967
AC_SUBST([am__untar])
 
968
]) # _AM_PROG_TAR
 
969
 
 
970
dnl AM_GCONF_SOURCE_2
 
971
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
 
972
dnl  (i.e. pass to gconftool-2
 
973
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
 
974
dnl  you should install foo.schemas files
 
975
dnl
 
976
 
 
977
AC_DEFUN([AM_GCONF_SOURCE_2],
 
978
[
 
979
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
 
980
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 
981
  else
 
982
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
 
983
  fi
 
984
 
 
985
  AC_ARG_WITH([gconf-source],
 
986
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
987
                             [Config database for installing schema files.]),
 
988
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
 
989
 
 
990
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
 
991
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
 
992
 
 
993
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
 
994
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
 
995
  fi
 
996
 
 
997
  AC_ARG_WITH([gconf-schema-file-dir],
 
998
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
999
                             [Directory for installing schema files.]),
 
1000
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
 
1001
 
 
1002
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
 
1003
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
 
1004
 
 
1005
  AC_ARG_ENABLE(schemas-install,
 
1006
        AC_HELP_STRING([--disable-schemas-install],
 
1007
                       [Disable the schemas installation]),
 
1008
     [case ${enableval} in
 
1009
       yes|no) ;;
 
1010
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
 
1011
      esac])
 
1012
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
 
1013
])
 
1014
 
 
1015
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
1016
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
 
1017
#
 
1018
# This file is free software, distributed under the terms of the GNU
 
1019
# General Public License.  As a special exception to the GNU General
 
1020
# Public License, this file may be distributed as part of a program
 
1021
# that contains a configuration script generated by Autoconf, under
 
1022
# the same distribution terms as the rest of that program.
 
1023
#
 
1024
# This file can be copied and used freely without restrictions.  It can
 
1025
# be used in projects which are not available under the GNU Public License
 
1026
# but which still want to provide support for the GNU gettext functionality.
 
1027
#
 
1028
# Macro to add for using GNU gettext.
 
1029
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
 
1030
#
 
1031
# Modified to never use included libintl. 
 
1032
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
 
1033
#
 
1034
# Major rework to remove unused code
 
1035
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
 
1036
#
 
1037
# Added better handling of ALL_LINGUAS from GNU gettext version 
 
1038
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
 
1039
#
 
1040
# Modified to require ngettext
 
1041
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
 
1042
#
 
1043
# We need this here as well, since someone might use autoconf-2.5x
 
1044
# to configure GLib then an older version to configure a package
 
1045
# using AM_GLIB_GNU_GETTEXT
 
1046
AC_PREREQ(2.53)
 
1047
 
 
1048
dnl
 
1049
dnl We go to great lengths to make sure that aclocal won't 
 
1050
dnl try to pull in the installed version of these macros
 
1051
dnl when running aclocal in the glib directory.
 
1052
dnl
 
1053
m4_copy([AC_DEFUN],[glib_DEFUN])
 
1054
m4_copy([AC_REQUIRE],[glib_REQUIRE])
 
1055
dnl
 
1056
dnl At the end, if we're not within glib, we'll define the public
 
1057
dnl definitions in terms of our private definitions.
 
1058
dnl
 
1059
 
 
1060
# GLIB_LC_MESSAGES
 
1061
#--------------------
 
1062
glib_DEFUN([GLIB_LC_MESSAGES],
 
1063
  [AC_CHECK_HEADERS([locale.h])
 
1064
    if test $ac_cv_header_locale_h = yes; then
 
1065
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
 
1066
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
 
1067
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
 
1068
    if test $am_cv_val_LC_MESSAGES = yes; then
 
1069
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
 
1070
        [Define if your <locale.h> file defines LC_MESSAGES.])
 
1071
    fi
 
1072
  fi])
 
1073
 
 
1074
# GLIB_PATH_PROG_WITH_TEST
 
1075
#----------------------------
 
1076
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
 
1077
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
 
1078
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
 
1079
[# Extract the first word of "$2", so it can be a program name with args.
 
1080
set dummy $2; ac_word=[$]2
 
1081
AC_MSG_CHECKING([for $ac_word])
 
1082
AC_CACHE_VAL(ac_cv_path_$1,
 
1083
[case "[$]$1" in
 
1084
  /*)
 
1085
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
 
1086
  ;;
 
1087
  *)
 
1088
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
1089
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
 
1090
    test -z "$ac_dir" && ac_dir=.
 
1091
    if test -f $ac_dir/$ac_word; then
 
1092
      if [$3]; then
 
1093
        ac_cv_path_$1="$ac_dir/$ac_word"
 
1094
        break
 
1095
      fi
 
1096
    fi
 
1097
  done
 
1098
  IFS="$ac_save_ifs"
 
1099
dnl If no 4th arg is given, leave the cache variable unset,
 
1100
dnl so AC_PATH_PROGS will keep looking.
 
1101
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
 
1102
])dnl
 
1103
  ;;
 
1104
esac])dnl
 
1105
$1="$ac_cv_path_$1"
 
1106
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
 
1107
  AC_MSG_RESULT([$]$1)
 
1108
else
 
1109
  AC_MSG_RESULT(no)
 
1110
fi
 
1111
AC_SUBST($1)dnl
 
1112
])
 
1113
 
 
1114
# GLIB_WITH_NLS
 
1115
#-----------------
 
1116
glib_DEFUN([GLIB_WITH_NLS],
 
1117
  dnl NLS is obligatory
 
1118
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1119
    USE_NLS=yes
 
1120
    AC_SUBST(USE_NLS)
 
1121
 
 
1122
    gt_cv_have_gettext=no
 
1123
 
 
1124
    CATOBJEXT=NONE
 
1125
    XGETTEXT=:
 
1126
    INTLLIBS=
 
1127
 
 
1128
    AC_CHECK_HEADER(libintl.h,
 
1129
     [gt_cv_func_dgettext_libintl="no"
 
1130
      libintl_extra_libs=""
 
1131
 
 
1132
      #
 
1133
      # First check in libc
 
1134
      #
 
1135
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
 
1136
        [AC_TRY_LINK([
 
1137
#include <libintl.h>
 
1138
],
 
1139
         [return !ngettext ("","", 1)],
 
1140
          gt_cv_func_ngettext_libc=yes,
 
1141
          gt_cv_func_ngettext_libc=no)
 
1142
        ])
 
1143
  
 
1144
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
1145
              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
 
1146
                [AC_TRY_LINK([
 
1147
#include <libintl.h>
 
1148
],
 
1149
                  [return !dgettext ("","")],
 
1150
                  gt_cv_func_dgettext_libc=yes,
 
1151
                  gt_cv_func_dgettext_libc=no)
 
1152
                ])
 
1153
      fi
 
1154
  
 
1155
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
1156
        AC_CHECK_FUNCS(bind_textdomain_codeset)
 
1157
      fi
 
1158
 
 
1159
      #
 
1160
      # If we don't have everything we want, check in libintl
 
1161
      #
 
1162
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
1163
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
1164
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
1165
        
 
1166
        AC_CHECK_LIB(intl, bindtextdomain,
 
1167
            [AC_CHECK_LIB(intl, ngettext,
 
1168
                    [AC_CHECK_LIB(intl, dgettext,
 
1169
                                  gt_cv_func_dgettext_libintl=yes)])])
 
1170
 
 
1171
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
1172
          AC_MSG_CHECKING([if -liconv is needed to use gettext])
 
1173
          AC_MSG_RESULT([])
 
1174
          AC_CHECK_LIB(intl, ngettext,
 
1175
                [AC_CHECK_LIB(intl, dcgettext,
 
1176
                       [gt_cv_func_dgettext_libintl=yes
 
1177
                        libintl_extra_libs=-liconv],
 
1178
                        :,-liconv)],
 
1179
                :,-liconv)
 
1180
        fi
 
1181
 
 
1182
        #
 
1183
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
1184
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
1185
        # and both have dgettext and ngettext
 
1186
        #
 
1187
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
1188
          glib_save_LIBS="$LIBS"
 
1189
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
1190
          unset ac_cv_func_bind_textdomain_codeset
 
1191
          AC_CHECK_FUNCS(bind_textdomain_codeset)
 
1192
          LIBS="$glib_save_LIBS"
 
1193
 
 
1194
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
1195
            gt_cv_func_dgettext_libc=no
 
1196
          else
 
1197
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
1198
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
1199
              gt_cv_func_dgettext_libintl=no
 
1200
            fi
 
1201
          fi
 
1202
        fi
 
1203
      fi
 
1204
 
 
1205
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
1206
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
1207
        gt_cv_have_gettext=yes
 
1208
      fi
 
1209
  
 
1210
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
1211
        INTLLIBS="-lintl $libintl_extra_libs"
 
1212
      fi
 
1213
  
 
1214
      if test "$gt_cv_have_gettext" = "yes"; then
 
1215
        AC_DEFINE(HAVE_GETTEXT,1,
 
1216
          [Define if the GNU gettext() function is already present or preinstalled.])
 
1217
        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
 
1218
          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
 
1219
        if test "$MSGFMT" != "no"; then
 
1220
          glib_save_LIBS="$LIBS"
 
1221
          LIBS="$LIBS $INTLLIBS"
 
1222
          AC_CHECK_FUNCS(dcgettext)
 
1223
          MSGFMT_OPTS=
 
1224
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
1225
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
1226
msgid ""
 
1227
msgstr ""
 
1228
"Content-Type: text/plain; charset=UTF-8\n"
 
1229
"Project-Id-Version: test 1.0\n"
 
1230
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
1231
"Last-Translator: test <foo@bar.xx>\n"
 
1232
"Language-Team: C <LL@li.org>\n"
 
1233
"MIME-Version: 1.0\n"
 
1234
"Content-Transfer-Encoding: 8bit\n"
 
1235
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
1236
          AC_SUBST(MSGFMT_OPTS)
 
1237
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
1238
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
 
1239
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
 
1240
          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
1241
                         return _nl_msg_cat_cntr],
 
1242
            [CATOBJEXT=.gmo 
 
1243
             DATADIRNAME=share],
 
1244
            [case $host in
 
1245
            *-*-solaris*)
 
1246
            dnl On Solaris, if bind_textdomain_codeset is in libc,
 
1247
            dnl GNU format message catalog is always supported,
 
1248
            dnl since both are added to the libc all together.
 
1249
            dnl Hence, we'd like to go with DATADIRNAME=share and
 
1250
            dnl and CATOBJEXT=.gmo in this case.
 
1251
            AC_CHECK_FUNC(bind_textdomain_codeset,
 
1252
              [CATOBJEXT=.gmo 
 
1253
               DATADIRNAME=share],
 
1254
              [CATOBJEXT=.mo
 
1255
               DATADIRNAME=lib])
 
1256
            ;;
 
1257
            *)
 
1258
            CATOBJEXT=.mo
 
1259
            DATADIRNAME=lib
 
1260
            ;;
 
1261
            esac])
 
1262
          LIBS="$glib_save_LIBS"
 
1263
          INSTOBJEXT=.mo
 
1264
        else
 
1265
          gt_cv_have_gettext=no
 
1266
        fi
 
1267
      fi
 
1268
    ])
 
1269
 
 
1270
    if test "$gt_cv_have_gettext" = "yes" ; then
 
1271
      AC_DEFINE(ENABLE_NLS, 1,
 
1272
        [always defined to indicate that i18n is enabled])
 
1273
    fi
 
1274
 
 
1275
    dnl Test whether we really found GNU xgettext.
 
1276
    if test "$XGETTEXT" != ":"; then
 
1277
      dnl If it is not GNU xgettext we define it as : so that the
 
1278
      dnl Makefiles still can work.
 
1279
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
1280
        : ;
 
1281
      else
 
1282
        AC_MSG_RESULT(
 
1283
          [found xgettext program is not GNU xgettext; ignore it])
 
1284
        XGETTEXT=":"
 
1285
      fi
 
1286
    fi
 
1287
 
 
1288
    # We need to process the po/ directory.
 
1289
    POSUB=po
 
1290
 
 
1291
    AC_OUTPUT_COMMANDS(
 
1292
      [case "$CONFIG_FILES" in *po/Makefile.in*)
 
1293
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
1294
      esac])
 
1295
 
 
1296
    dnl These rules are solely for the distribution goal.  While doing this
 
1297
    dnl we only have to keep exactly one list of the available catalogs
 
1298
    dnl in configure.in.
 
1299
    for lang in $ALL_LINGUAS; do
 
1300
      GMOFILES="$GMOFILES $lang.gmo"
 
1301
      POFILES="$POFILES $lang.po"
 
1302
    done
 
1303
 
 
1304
    dnl Make all variables we use known to autoconf.
 
1305
    AC_SUBST(CATALOGS)
 
1306
    AC_SUBST(CATOBJEXT)
 
1307
    AC_SUBST(DATADIRNAME)
 
1308
    AC_SUBST(GMOFILES)
 
1309
    AC_SUBST(INSTOBJEXT)
 
1310
    AC_SUBST(INTLLIBS)
 
1311
    AC_SUBST(PO_IN_DATADIR_TRUE)
 
1312
    AC_SUBST(PO_IN_DATADIR_FALSE)
 
1313
    AC_SUBST(POFILES)
 
1314
    AC_SUBST(POSUB)
 
1315
  ])
 
1316
 
 
1317
# AM_GLIB_GNU_GETTEXT
 
1318
# -------------------
 
1319
# Do checks necessary for use of gettext. If a suitable implementation 
 
1320
# of gettext is found in either in libintl or in the C library,
 
1321
# it will set INTLLIBS to the libraries needed for use of gettext
 
1322
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
 
1323
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
 
1324
# on various variables needed by the Makefile.in.in installed by 
 
1325
# glib-gettextize.
 
1326
dnl
 
1327
glib_DEFUN([GLIB_GNU_GETTEXT],
 
1328
  [AC_REQUIRE([AC_PROG_CC])dnl
 
1329
   AC_REQUIRE([AC_HEADER_STDC])dnl
 
1330
   
 
1331
   GLIB_LC_MESSAGES
 
1332
   GLIB_WITH_NLS
 
1333
 
 
1334
   if test "$gt_cv_have_gettext" = "yes"; then
 
1335
     if test "x$ALL_LINGUAS" = "x"; then
 
1336
       LINGUAS=
 
1337
     else
 
1338
       AC_MSG_CHECKING(for catalogs to be installed)
 
1339
       NEW_LINGUAS=
 
1340
       for presentlang in $ALL_LINGUAS; do
 
1341
         useit=no
 
1342
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
1343
           desiredlanguages="$LINGUAS"
 
1344
         else
 
1345
           desiredlanguages="$ALL_LINGUAS"
 
1346
         fi
 
1347
         for desiredlang in $desiredlanguages; do
 
1348
           # Use the presentlang catalog if desiredlang is
 
1349
           #   a. equal to presentlang, or
 
1350
           #   b. a variant of presentlang (because in this case,
 
1351
           #      presentlang can be used as a fallback for messages
 
1352
           #      which are not translated in the desiredlang catalog).
 
1353
           case "$desiredlang" in
 
1354
             "$presentlang"*) useit=yes;;
 
1355
           esac
 
1356
         done
 
1357
         if test $useit = yes; then
 
1358
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
1359
         fi
 
1360
       done
 
1361
       LINGUAS=$NEW_LINGUAS
 
1362
       AC_MSG_RESULT($LINGUAS)
 
1363
     fi
 
1364
 
 
1365
     dnl Construct list of names of catalog files to be constructed.
 
1366
     if test -n "$LINGUAS"; then
 
1367
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
1368
     fi
 
1369
   fi
 
1370
 
 
1371
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
1372
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
1373
   dnl Try to locate is.
 
1374
   MKINSTALLDIRS=
 
1375
   if test -n "$ac_aux_dir"; then
 
1376
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
1377
   fi
 
1378
   if test -z "$MKINSTALLDIRS"; then
 
1379
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
1380
   fi
 
1381
   AC_SUBST(MKINSTALLDIRS)
 
1382
 
 
1383
   dnl Generate list of files to be processed by xgettext which will
 
1384
   dnl be included in po/Makefile.
 
1385
   test -d po || mkdir po
 
1386
   if test "x$srcdir" != "x."; then
 
1387
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
1388
       posrcprefix="$srcdir/"
 
1389
     else
 
1390
       posrcprefix="../$srcdir/"
 
1391
     fi
 
1392
   else
 
1393
     posrcprefix="../"
 
1394
   fi
 
1395
   rm -f po/POTFILES
 
1396
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
1397
        < $srcdir/po/POTFILES.in > po/POTFILES
 
1398
  ])
 
1399
 
 
1400
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
 
1401
# -------------------------------
 
1402
# Define VARIABLE to the location where catalog files will
 
1403
# be installed by po/Makefile.
 
1404
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
 
1405
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
 
1406
glib_save_prefix="$prefix"
 
1407
glib_save_exec_prefix="$exec_prefix"
 
1408
glib_save_datarootdir="$datarootdir"
 
1409
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1410
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
1411
datarootdir=`eval echo "${datarootdir}"`
 
1412
if test "x$CATOBJEXT" = "x.mo" ; then
 
1413
  localedir=`eval echo "${libdir}/locale"`
 
1414
else
 
1415
  localedir=`eval echo "${datadir}/locale"`
 
1416
fi
 
1417
prefix="$glib_save_prefix"
 
1418
exec_prefix="$glib_save_exec_prefix"
 
1419
datarootdir="$glib_save_datarootdir"
 
1420
AC_DEFINE_UNQUOTED($1, "$localedir",
 
1421
  [Define the location where the catalogs will be installed])
 
1422
])
 
1423
 
 
1424
dnl
 
1425
dnl Now the definitions that aclocal will find
 
1426
dnl
 
1427
ifdef(glib_configure_in,[],[
 
1428
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
 
1429
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
 
1430
])dnl
 
1431
 
 
1432
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
1433
 
1434
# Create a temporary file with TEST-FILE as its contents and pass the
 
1435
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
1436
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
1437
AC_DEFUN([GLIB_RUN_PROG],
 
1438
[cat >conftest.foo <<_ACEOF
 
1439
$2
 
1440
_ACEOF
 
1441
if AC_RUN_LOG([$1 conftest.foo]); then
 
1442
  m4_ifval([$3], [$3], [:])
 
1443
m4_ifvaln([$4], [else $4])dnl
 
1444
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
1445
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
1446
fi])
 
1447
 
 
1448
 
 
1449
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
1450
 
 
1451
# serial 48 AC_PROG_LIBTOOL
 
1452
 
 
1453
 
 
1454
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1455
# -----------------------------------------------------------
 
1456
# If this macro is not defined by Autoconf, define it here.
 
1457
m4_ifdef([AC_PROVIDE_IFELSE],
 
1458
         [],
 
1459
         [m4_define([AC_PROVIDE_IFELSE],
 
1460
                 [m4_ifdef([AC_PROVIDE_$1],
 
1461
                           [$2], [$3])])])
 
1462
 
 
1463
 
 
1464
# AC_PROG_LIBTOOL
 
1465
# ---------------
 
1466
AC_DEFUN([AC_PROG_LIBTOOL],
 
1467
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
1468
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
1469
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
1470
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1471
    [AC_LIBTOOL_CXX],
 
1472
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
1473
  ])])
 
1474
dnl And a similar setup for Fortran 77 support
 
1475
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1476
    [AC_LIBTOOL_F77],
 
1477
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
1478
])])
 
1479
 
 
1480
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
1481
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
1482
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
1483
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1484
    [AC_LIBTOOL_GCJ],
 
1485
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1486
      [AC_LIBTOOL_GCJ],
 
1487
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
1488
        [AC_LIBTOOL_GCJ],
 
1489
      [ifdef([AC_PROG_GCJ],
 
1490
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1491
       ifdef([A][M_PROG_GCJ],
 
1492
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1493
       ifdef([LT_AC_PROG_GCJ],
 
1494
             [define([LT_AC_PROG_GCJ],
 
1495
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
1496
])])# AC_PROG_LIBTOOL
 
1497
 
 
1498
 
 
1499
# _AC_PROG_LIBTOOL
 
1500
# ----------------
 
1501
AC_DEFUN([_AC_PROG_LIBTOOL],
 
1502
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
1503
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
1504
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
1505
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
1506
 
 
1507
# This can be used to rebuild libtool when needed
 
1508
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1509
 
 
1510
# Always use our own libtool.
 
1511
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
1512
AC_SUBST(LIBTOOL)dnl
 
1513
 
 
1514
# Prevent multiple expansion
 
1515
define([AC_PROG_LIBTOOL], [])
 
1516
])# _AC_PROG_LIBTOOL
 
1517
 
 
1518
 
 
1519
# AC_LIBTOOL_SETUP
 
1520
# ----------------
 
1521
AC_DEFUN([AC_LIBTOOL_SETUP],
 
1522
[AC_PREREQ(2.50)dnl
 
1523
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
1524
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
1525
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
1526
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1527
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1528
AC_REQUIRE([AC_PROG_CC])dnl
 
1529
AC_REQUIRE([AC_PROG_LD])dnl
 
1530
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
1531
AC_REQUIRE([AC_PROG_NM])dnl
 
1532
 
 
1533
AC_REQUIRE([AC_PROG_LN_S])dnl
 
1534
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
1535
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
1536
AC_REQUIRE([AC_OBJEXT])dnl
 
1537
AC_REQUIRE([AC_EXEEXT])dnl
 
1538
dnl
 
1539
 
 
1540
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1541
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1542
AC_LIBTOOL_OBJDIR
 
1543
 
 
1544
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1545
_LT_AC_PROG_ECHO_BACKSLASH
 
1546
 
 
1547
case $host_os in
 
1548
aix3*)
 
1549
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
1550
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
1551
  # vanish in a puff of smoke.
 
1552
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
1553
    COLLECT_NAMES=
 
1554
    export COLLECT_NAMES
 
1555
  fi
 
1556
  ;;
 
1557
esac
 
1558
 
 
1559
# Sed substitution that helps us do robust quoting.  It backslashifies
 
1560
# metacharacters that are still active within double-quoted strings.
 
1561
Xsed='sed -e 1s/^X//'
 
1562
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1563
 
 
1564
# Same as above, but do not quote variable references.
 
1565
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1566
 
 
1567
# Sed substitution to delay expansion of an escaped shell variable in a
 
1568
# double_quote_subst'ed string.
 
1569
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1570
 
 
1571
# Sed substitution to avoid accidental globbing in evaled expressions
 
1572
no_glob_subst='s/\*/\\\*/g'
 
1573
 
 
1574
# Constants:
 
1575
rm="rm -f"
 
1576
 
 
1577
# Global variables:
 
1578
default_ofile=libtool
 
1579
can_build_shared=yes
 
1580
 
 
1581
# All known linkers require a `.a' archive for static linking (except MSVC,
 
1582
# which needs '.lib').
 
1583
libext=a
 
1584
ltmain="$ac_aux_dir/ltmain.sh"
 
1585
ofile="$default_ofile"
 
1586
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
1587
 
 
1588
AC_CHECK_TOOL(AR, ar, false)
 
1589
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1590
AC_CHECK_TOOL(STRIP, strip, :)
 
1591
 
 
1592
old_CC="$CC"
 
1593
old_CFLAGS="$CFLAGS"
 
1594
 
 
1595
# Set sane defaults for various variables
 
1596
test -z "$AR" && AR=ar
 
1597
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1598
test -z "$AS" && AS=as
 
1599
test -z "$CC" && CC=cc
 
1600
test -z "$LTCC" && LTCC=$CC
 
1601
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
1602
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
1603
test -z "$LD" && LD=ld
 
1604
test -z "$LN_S" && LN_S="ln -s"
 
1605
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1606
test -z "$NM" && NM=nm
 
1607
test -z "$SED" && SED=sed
 
1608
test -z "$OBJDUMP" && OBJDUMP=objdump
 
1609
test -z "$RANLIB" && RANLIB=:
 
1610
test -z "$STRIP" && STRIP=:
 
1611
test -z "$ac_objext" && ac_objext=o
 
1612
 
 
1613
# Determine commands to create old-style static archives.
 
1614
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1615
old_postinstall_cmds='chmod 644 $oldlib'
 
1616
old_postuninstall_cmds=
 
1617
 
 
1618
if test -n "$RANLIB"; then
 
1619
  case $host_os in
 
1620
  openbsd*)
 
1621
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1622
    ;;
 
1623
  *)
 
1624
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1625
    ;;
 
1626
  esac
 
1627
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1628
fi
 
1629
 
 
1630
_LT_CC_BASENAME([$compiler])
 
1631
 
 
1632
# Only perform the check for file, if the check method requires it
 
1633
case $deplibs_check_method in
 
1634
file_magic*)
 
1635
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
1636
    AC_PATH_MAGIC
 
1637
  fi
 
1638
  ;;
 
1639
esac
 
1640
 
 
1641
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
1642
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1643
enable_win32_dll=yes, enable_win32_dll=no)
 
1644
 
 
1645
AC_ARG_ENABLE([libtool-lock],
 
1646
    [AC_HELP_STRING([--disable-libtool-lock],
 
1647
        [avoid locking (might break parallel builds)])])
 
1648
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1649
 
 
1650
AC_ARG_WITH([pic],
 
1651
    [AC_HELP_STRING([--with-pic],
 
1652
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
1653
    [pic_mode="$withval"],
 
1654
    [pic_mode=default])
 
1655
test -z "$pic_mode" && pic_mode=default
 
1656
 
 
1657
# Use C for the default configuration in the libtool script
 
1658
tagname=
 
1659
AC_LIBTOOL_LANG_C_CONFIG
 
1660
_LT_AC_TAGCONFIG
 
1661
])# AC_LIBTOOL_SETUP
 
1662
 
 
1663
 
 
1664
# _LT_AC_SYS_COMPILER
 
1665
# -------------------
 
1666
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1667
[AC_REQUIRE([AC_PROG_CC])dnl
 
1668
 
 
1669
# If no C compiler was specified, use CC.
 
1670
LTCC=${LTCC-"$CC"}
 
1671
 
 
1672
# If no C compiler flags were specified, use CFLAGS.
 
1673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
1674
 
 
1675
# Allow CC to be a program name with arguments.
 
1676
compiler=$CC
 
1677
])# _LT_AC_SYS_COMPILER
 
1678
 
 
1679
 
 
1680
# _LT_CC_BASENAME(CC)
 
1681
# -------------------
 
1682
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1683
AC_DEFUN([_LT_CC_BASENAME],
 
1684
[for cc_temp in $1""; do
 
1685
  case $cc_temp in
 
1686
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1687
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1688
    \-*) ;;
 
1689
    *) break;;
 
1690
  esac
 
1691
done
 
1692
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1693
])
 
1694
 
 
1695
 
 
1696
# _LT_COMPILER_BOILERPLATE
 
1697
# ------------------------
 
1698
# Check for compiler boilerplate output or warnings with
 
1699
# the simple compiler test code.
 
1700
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
1701
[ac_outfile=conftest.$ac_objext
 
1702
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1703
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1704
_lt_compiler_boilerplate=`cat conftest.err`
 
1705
$rm conftest*
 
1706
])# _LT_COMPILER_BOILERPLATE
 
1707
 
 
1708
 
 
1709
# _LT_LINKER_BOILERPLATE
 
1710
# ----------------------
 
1711
# Check for linker boilerplate output or warnings with
 
1712
# the simple link test code.
 
1713
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
1714
[ac_outfile=conftest.$ac_objext
 
1715
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1716
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
1717
_lt_linker_boilerplate=`cat conftest.err`
 
1718
$rm conftest*
 
1719
])# _LT_LINKER_BOILERPLATE
 
1720
 
 
1721
 
 
1722
# _LT_AC_SYS_LIBPATH_AIX
 
1723
# ----------------------
 
1724
# Links a minimal program and checks the executable
 
1725
# for the system default hardcoded library path. In most cases,
 
1726
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1727
# the location of the communication and MPI libs are included too.
 
1728
# If we don't find anything, use the default library path according
 
1729
# to the aix ld manual.
 
1730
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1731
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1732
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1733
}'`
 
1734
# Check for a 64-bit object if we didn't find anything.
 
1735
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1736
}'`; fi],[])
 
1737
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1738
])# _LT_AC_SYS_LIBPATH_AIX
 
1739
 
 
1740
 
 
1741
# _LT_AC_SHELL_INIT(ARG)
 
1742
# ----------------------
 
1743
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1744
[ifdef([AC_DIVERSION_NOTICE],
 
1745
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
1746
         [AC_DIVERT_PUSH(NOTICE)])
 
1747
$1
 
1748
AC_DIVERT_POP
 
1749
])# _LT_AC_SHELL_INIT
 
1750
 
 
1751
 
 
1752
# _LT_AC_PROG_ECHO_BACKSLASH
 
1753
# --------------------------
 
1754
# Add some code to the start of the generated configure script which
 
1755
# will find an echo command which doesn't interpret backslashes.
 
1756
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
1757
[_LT_AC_SHELL_INIT([
 
1758
# Check that we are running under the correct shell.
 
1759
SHELL=${CONFIG_SHELL-/bin/sh}
 
1760
 
 
1761
case X$ECHO in
 
1762
X*--fallback-echo)
 
1763
  # Remove one level of quotation (which was required for Make).
 
1764
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1765
  ;;
 
1766
esac
 
1767
 
 
1768
echo=${ECHO-echo}
 
1769
if test "X[$]1" = X--no-reexec; then
 
1770
  # Discard the --no-reexec flag, and continue.
 
1771
  shift
 
1772
elif test "X[$]1" = X--fallback-echo; then
 
1773
  # Avoid inline document here, it may be left over
 
1774
  :
 
1775
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
1776
  # Yippee, $echo works!
 
1777
  :
 
1778
else
 
1779
  # Restart under the correct shell.
 
1780
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1781
fi
 
1782
 
 
1783
if test "X[$]1" = X--fallback-echo; then
 
1784
  # used as fallback echo
 
1785
  shift
 
1786
  cat <<EOF
 
1787
[$]*
 
1788
EOF
 
1789
  exit 0
 
1790
fi
 
1791
 
 
1792
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1793
# if CDPATH is set.
 
1794
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1795
 
 
1796
if test -z "$ECHO"; then
 
1797
if test "X${echo_test_string+set}" != Xset; then
 
1798
# find a string as large as possible, as long as the shell can cope with it
 
1799
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1800
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1801
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1802
       echo_test_string=`eval $cmd` &&
 
1803
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
1804
    then
 
1805
      break
 
1806
    fi
 
1807
  done
 
1808
fi
 
1809
 
 
1810
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1811
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1812
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
1813
  :
 
1814
else
 
1815
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1816
  # backslashes.  This makes it impossible to quote backslashes using
 
1817
  #   echo "$something" | sed 's/\\/\\\\/g'
 
1818
  #
 
1819
  # So, first we look for a working echo in the user's PATH.
 
1820
 
 
1821
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1822
  for dir in $PATH /usr/ucb; do
 
1823
    IFS="$lt_save_ifs"
 
1824
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1825
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1826
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1827
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1828
      echo="$dir/echo"
 
1829
      break
 
1830
    fi
 
1831
  done
 
1832
  IFS="$lt_save_ifs"
 
1833
 
 
1834
  if test "X$echo" = Xecho; then
 
1835
    # We didn't find a better echo, so look for alternatives.
 
1836
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
1837
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
1838
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1839
      # This shell has a builtin print -r that does the trick.
 
1840
      echo='print -r'
 
1841
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
1842
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1843
      # If we have ksh, try running configure again with it.
 
1844
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1845
      export ORIGINAL_CONFIG_SHELL
 
1846
      CONFIG_SHELL=/bin/ksh
 
1847
      export CONFIG_SHELL
 
1848
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1849
    else
 
1850
      # Try using printf.
 
1851
      echo='printf %s\n'
 
1852
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1853
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1854
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1855
        # Cool, printf works
 
1856
        :
 
1857
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1858
           test "X$echo_testing_string" = 'X\t' &&
 
1859
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1860
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1861
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1862
        export CONFIG_SHELL
 
1863
        SHELL="$CONFIG_SHELL"
 
1864
        export SHELL
 
1865
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1866
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1867
           test "X$echo_testing_string" = 'X\t' &&
 
1868
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1869
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1870
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1871
      else
 
1872
        # maybe with a smaller string...
 
1873
        prev=:
 
1874
 
 
1875
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1876
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
1877
          then
 
1878
            break
 
1879
          fi
 
1880
          prev="$cmd"
 
1881
        done
 
1882
 
 
1883
        if test "$prev" != 'sed 50q "[$]0"'; then
 
1884
          echo_test_string=`eval $prev`
 
1885
          export echo_test_string
 
1886
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1887
        else
 
1888
          # Oops.  We lost completely, so just stick with echo.
 
1889
          echo=echo
 
1890
        fi
 
1891
      fi
 
1892
    fi
 
1893
  fi
 
1894
fi
 
1895
fi
 
1896
 
 
1897
# Copy echo and quote the copy suitably for passing to libtool from
 
1898
# the Makefile, instead of quoting the original, which is used later.
 
1899
ECHO=$echo
 
1900
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1901
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1902
fi
 
1903
 
 
1904
AC_SUBST(ECHO)
 
1905
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1906
 
 
1907
 
 
1908
# _LT_AC_LOCK
 
1909
# -----------
 
1910
AC_DEFUN([_LT_AC_LOCK],
 
1911
[AC_ARG_ENABLE([libtool-lock],
 
1912
    [AC_HELP_STRING([--disable-libtool-lock],
 
1913
        [avoid locking (might break parallel builds)])])
 
1914
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1915
 
 
1916
# Some flags need to be propagated to the compiler or linker for good
 
1917
# libtool support.
 
1918
case $host in
 
1919
ia64-*-hpux*)
 
1920
  # Find out which ABI we are using.
 
1921
  echo 'int i;' > conftest.$ac_ext
 
1922
  if AC_TRY_EVAL(ac_compile); then
 
1923
    case `/usr/bin/file conftest.$ac_objext` in
 
1924
    *ELF-32*)
 
1925
      HPUX_IA64_MODE="32"
 
1926
      ;;
 
1927
    *ELF-64*)
 
1928
      HPUX_IA64_MODE="64"
 
1929
      ;;
 
1930
    esac
 
1931
  fi
 
1932
  rm -rf conftest*
 
1933
  ;;
 
1934
*-*-irix6*)
 
1935
  # Find out which ABI we are using.
 
1936
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1937
  if AC_TRY_EVAL(ac_compile); then
 
1938
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1939
    case `/usr/bin/file conftest.$ac_objext` in
 
1940
    *32-bit*)
 
1941
      LD="${LD-ld} -melf32bsmip"
 
1942
      ;;
 
1943
    *N32*)
 
1944
      LD="${LD-ld} -melf32bmipn32"
 
1945
      ;;
 
1946
    *64-bit*)
 
1947
      LD="${LD-ld} -melf64bmip"
 
1948
      ;;
 
1949
    esac
 
1950
   else
 
1951
    case `/usr/bin/file conftest.$ac_objext` in
 
1952
    *32-bit*)
 
1953
      LD="${LD-ld} -32"
 
1954
      ;;
 
1955
    *N32*)
 
1956
      LD="${LD-ld} -n32"
 
1957
      ;;
 
1958
    *64-bit*)
 
1959
      LD="${LD-ld} -64"
 
1960
      ;;
 
1961
    esac
 
1962
   fi
 
1963
  fi
 
1964
  rm -rf conftest*
 
1965
  ;;
 
1966
 
 
1967
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1968
  # Find out which ABI we are using.
 
1969
  echo 'int i;' > conftest.$ac_ext
 
1970
  if AC_TRY_EVAL(ac_compile); then
 
1971
    case `/usr/bin/file conftest.o` in
 
1972
    *32-bit*)
 
1973
      case $host in
 
1974
        x86_64-*linux*)
 
1975
          LD="${LD-ld} -m elf_i386"
 
1976
          ;;
 
1977
        ppc64-*linux*|powerpc64-*linux*)
 
1978
          LD="${LD-ld} -m elf32ppclinux"
 
1979
          ;;
 
1980
        s390x-*linux*)
 
1981
          LD="${LD-ld} -m elf_s390"
 
1982
          ;;
 
1983
        sparc64-*linux*)
 
1984
          LD="${LD-ld} -m elf32_sparc"
 
1985
          ;;
 
1986
      esac
 
1987
      ;;
 
1988
    *64-bit*)
 
1989
      case $host in
 
1990
        x86_64-*linux*)
 
1991
          LD="${LD-ld} -m elf_x86_64"
 
1992
          ;;
 
1993
        ppc*-*linux*|powerpc*-*linux*)
 
1994
          LD="${LD-ld} -m elf64ppc"
 
1995
          ;;
 
1996
        s390*-*linux*)
 
1997
          LD="${LD-ld} -m elf64_s390"
 
1998
          ;;
 
1999
        sparc*-*linux*)
 
2000
          LD="${LD-ld} -m elf64_sparc"
 
2001
          ;;
 
2002
      esac
 
2003
      ;;
 
2004
    esac
 
2005
  fi
 
2006
  rm -rf conftest*
 
2007
  ;;
 
2008
 
 
2009
*-*-sco3.2v5*)
 
2010
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
2011
  SAVE_CFLAGS="$CFLAGS"
 
2012
  CFLAGS="$CFLAGS -belf"
 
2013
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
2014
    [AC_LANG_PUSH(C)
 
2015
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2016
     AC_LANG_POP])
 
2017
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
2018
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
2019
    CFLAGS="$SAVE_CFLAGS"
 
2020
  fi
 
2021
  ;;
 
2022
sparc*-*solaris*)
 
2023
  # Find out which ABI we are using.
 
2024
  echo 'int i;' > conftest.$ac_ext
 
2025
  if AC_TRY_EVAL(ac_compile); then
 
2026
    case `/usr/bin/file conftest.o` in
 
2027
    *64-bit*)
 
2028
      case $lt_cv_prog_gnu_ld in
 
2029
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2030
      *)    LD="${LD-ld} -64" ;;
 
2031
      esac
 
2032
      ;;
 
2033
    esac
 
2034
  fi
 
2035
  rm -rf conftest*
 
2036
  ;;
 
2037
 
 
2038
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
2039
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
2040
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
2041
  AC_CHECK_TOOL(AS, as, false)
 
2042
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
2043
  ;;
 
2044
  ])
 
2045
esac
 
2046
 
 
2047
need_locks="$enable_libtool_lock"
 
2048
 
 
2049
])# _LT_AC_LOCK
 
2050
 
 
2051
 
 
2052
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2053
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
2054
# ----------------------------------------------------------------
 
2055
# Check whether the given compiler option works
 
2056
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
2057
[AC_REQUIRE([LT_AC_PROG_SED])
 
2058
AC_CACHE_CHECK([$1], [$2],
 
2059
  [$2=no
 
2060
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2061
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2062
   lt_compiler_flag="$3"
 
2063
   # Insert the option either (1) after the last *FLAGS variable, or
 
2064
   # (2) before a word containing "conftest.", or (3) at the end.
 
2065
   # Note that $ac_compile itself does not contain backslashes and begins
 
2066
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
2067
   # The option is referenced via a variable to avoid confusing sed.
 
2068
   lt_compile=`echo "$ac_compile" | $SED \
 
2069
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2070
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
2071
   -e 's:$: $lt_compiler_flag:'`
 
2072
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2073
   (eval "$lt_compile" 2>conftest.err)
 
2074
   ac_status=$?
 
2075
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
2076
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2077
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
2078
     # The compiler can only warn and ignore the option if not recognized
 
2079
     # So say no if there are warnings other than the usual output.
 
2080
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2081
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2082
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
2083
       $2=yes
 
2084
     fi
 
2085
   fi
 
2086
   $rm conftest*
 
2087
])
 
2088
 
 
2089
if test x"[$]$2" = xyes; then
 
2090
    ifelse([$5], , :, [$5])
 
2091
else
 
2092
    ifelse([$6], , :, [$6])
 
2093
fi
 
2094
])# AC_LIBTOOL_COMPILER_OPTION
 
2095
 
 
2096
 
 
2097
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2098
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
2099
# ------------------------------------------------------------
 
2100
# Check whether the given compiler option works
 
2101
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
2102
[AC_CACHE_CHECK([$1], [$2],
 
2103
  [$2=no
 
2104
   save_LDFLAGS="$LDFLAGS"
 
2105
   LDFLAGS="$LDFLAGS $3"
 
2106
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
2107
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
2108
     # The linker can only warn and ignore the option if not recognized
 
2109
     # So say no if there are warnings
 
2110
     if test -s conftest.err; then
 
2111
       # Append any errors to the config.log.
 
2112
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
2113
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2114
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
2115
       if diff conftest.exp conftest.er2 >/dev/null; then
 
2116
         $2=yes
 
2117
       fi
 
2118
     else
 
2119
       $2=yes
 
2120
     fi
 
2121
   fi
 
2122
   $rm conftest*
 
2123
   LDFLAGS="$save_LDFLAGS"
 
2124
])
 
2125
 
 
2126
if test x"[$]$2" = xyes; then
 
2127
    ifelse([$4], , :, [$4])
 
2128
else
 
2129
    ifelse([$5], , :, [$5])
 
2130
fi
 
2131
])# AC_LIBTOOL_LINKER_OPTION
 
2132
 
 
2133
 
 
2134
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
2135
# --------------------------
 
2136
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
2137
[# find the maximum length of command line arguments
 
2138
AC_MSG_CHECKING([the maximum length of command line arguments])
 
2139
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
2140
  i=0
 
2141
  teststring="ABCD"
 
2142
 
 
2143
  case $build_os in
 
2144
  msdosdjgpp*)
 
2145
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
2146
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
2147
    # during glob expansion).  Even if it were fixed, the result of this
 
2148
    # check would be larger than it should be.
 
2149
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
2150
    ;;
 
2151
 
 
2152
  gnu*)
 
2153
    # Under GNU Hurd, this test is not required because there is
 
2154
    # no limit to the length of command line arguments.
 
2155
    # Libtool will interpret -1 as no limit whatsoever
 
2156
    lt_cv_sys_max_cmd_len=-1;
 
2157
    ;;
 
2158
 
 
2159
  cygwin* | mingw*)
 
2160
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
2161
    # about 5 minutes as the teststring grows exponentially.
 
2162
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
2163
    # you end up with a "frozen" computer, even though with patience
 
2164
    # the test eventually succeeds (with a max line length of 256k).
 
2165
    # Instead, let's just punt: use the minimum linelength reported by
 
2166
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
2167
    lt_cv_sys_max_cmd_len=8192;
 
2168
    ;;
 
2169
 
 
2170
  amigaos*)
 
2171
    # On AmigaOS with pdksh, this test takes hours, literally.
 
2172
    # So we just punt and use a minimum line length of 8192.
 
2173
    lt_cv_sys_max_cmd_len=8192;
 
2174
    ;;
 
2175
 
 
2176
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
2177
    # This has been around since 386BSD, at least.  Likely further.
 
2178
    if test -x /sbin/sysctl; then
 
2179
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
2180
    elif test -x /usr/sbin/sysctl; then
 
2181
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
2182
    else
 
2183
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
2184
    fi
 
2185
    # And add a safety zone
 
2186
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2187
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2188
    ;;
 
2189
 
 
2190
  interix*)
 
2191
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
2192
    lt_cv_sys_max_cmd_len=196608
 
2193
    ;;
 
2194
 
 
2195
  osf*)
 
2196
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
2197
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
2198
    # nice to cause kernel panics so lets avoid the loop below.
 
2199
    # First set a reasonable default.
 
2200
    lt_cv_sys_max_cmd_len=16384
 
2201
    #
 
2202
    if test -x /sbin/sysconfig; then
 
2203
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
2204
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
2205
      esac
 
2206
    fi
 
2207
    ;;
 
2208
  sco3.2v5*)
 
2209
    lt_cv_sys_max_cmd_len=102400
 
2210
    ;;
 
2211
  sysv5* | sco5v6* | sysv4.2uw2*)
 
2212
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
2213
    if test -n "$kargmax"; then
 
2214
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2215
    else
 
2216
      lt_cv_sys_max_cmd_len=32768
 
2217
    fi
 
2218
    ;;
 
2219
  *)
 
2220
    # If test is not a shell built-in, we'll probably end up computing a
 
2221
    # maximum length that is only half of the actual maximum length, but
 
2222
    # we can't tell.
 
2223
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2224
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
2225
               = "XX$teststring") >/dev/null 2>&1 &&
 
2226
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
2227
            lt_cv_sys_max_cmd_len=$new_result &&
 
2228
            test $i != 17 # 1/2 MB should be enough
 
2229
    do
 
2230
      i=`expr $i + 1`
 
2231
      teststring=$teststring$teststring
 
2232
    done
 
2233
    teststring=
 
2234
    # Add a significant safety factor because C++ compilers can tack on massive
 
2235
    # amounts of additional arguments before passing them to the linker.
 
2236
    # It appears as though 1/2 is a usable value.
 
2237
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2238
    ;;
 
2239
  esac
 
2240
])
 
2241
if test -n $lt_cv_sys_max_cmd_len ; then
 
2242
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
2243
else
 
2244
  AC_MSG_RESULT(none)
 
2245
fi
 
2246
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
2247
 
 
2248
 
 
2249
# _LT_AC_CHECK_DLFCN
 
2250
# ------------------
 
2251
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
2252
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
2253
])# _LT_AC_CHECK_DLFCN
 
2254
 
 
2255
 
 
2256
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2257
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2258
# ---------------------------------------------------------------------
 
2259
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
2260
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2261
if test "$cross_compiling" = yes; then :
 
2262
  [$4]
 
2263
else
 
2264
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
2265
  lt_status=$lt_dlunknown
 
2266
  cat > conftest.$ac_ext <<EOF
 
2267
[#line __oline__ "configure"
 
2268
#include "confdefs.h"
 
2269
 
 
2270
#if HAVE_DLFCN_H
 
2271
#include <dlfcn.h>
 
2272
#endif
 
2273
 
 
2274
#include <stdio.h>
 
2275
 
 
2276
#ifdef RTLD_GLOBAL
 
2277
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
2278
#else
 
2279
#  ifdef DL_GLOBAL
 
2280
#    define LT_DLGLOBAL         DL_GLOBAL
 
2281
#  else
 
2282
#    define LT_DLGLOBAL         0
 
2283
#  endif
 
2284
#endif
 
2285
 
 
2286
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
2287
   find out it does not work in some platform. */
 
2288
#ifndef LT_DLLAZY_OR_NOW
 
2289
#  ifdef RTLD_LAZY
 
2290
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
2291
#  else
 
2292
#    ifdef DL_LAZY
 
2293
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
2294
#    else
 
2295
#      ifdef RTLD_NOW
 
2296
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
2297
#      else
 
2298
#        ifdef DL_NOW
 
2299
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
2300
#        else
 
2301
#          define LT_DLLAZY_OR_NOW      0
 
2302
#        endif
 
2303
#      endif
 
2304
#    endif
 
2305
#  endif
 
2306
#endif
 
2307
 
 
2308
#ifdef __cplusplus
 
2309
extern "C" void exit (int);
 
2310
#endif
 
2311
 
 
2312
void fnord() { int i=42;}
 
2313
int main ()
 
2314
{
 
2315
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
2316
  int status = $lt_dlunknown;
 
2317
 
 
2318
  if (self)
 
2319
    {
 
2320
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
2321
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
2322
      /* dlclose (self); */
 
2323
    }
 
2324
  else
 
2325
    puts (dlerror ());
 
2326
 
 
2327
    exit (status);
 
2328
}]
 
2329
EOF
 
2330
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 
2331
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 
2332
    lt_status=$?
 
2333
    case x$lt_status in
 
2334
      x$lt_dlno_uscore) $1 ;;
 
2335
      x$lt_dlneed_uscore) $2 ;;
 
2336
      x$lt_dlunknown|x*) $3 ;;
 
2337
    esac
 
2338
  else :
 
2339
    # compilation failed
 
2340
    $3
 
2341
  fi
 
2342
fi
 
2343
rm -fr conftest*
 
2344
])# _LT_AC_TRY_DLOPEN_SELF
 
2345
 
 
2346
 
 
2347
# AC_LIBTOOL_DLOPEN_SELF
 
2348
# ----------------------
 
2349
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
2350
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2351
if test "x$enable_dlopen" != xyes; then
 
2352
  enable_dlopen=unknown
 
2353
  enable_dlopen_self=unknown
 
2354
  enable_dlopen_self_static=unknown
 
2355
else
 
2356
  lt_cv_dlopen=no
 
2357
  lt_cv_dlopen_libs=
 
2358
 
 
2359
  case $host_os in
 
2360
  beos*)
 
2361
    lt_cv_dlopen="load_add_on"
 
2362
    lt_cv_dlopen_libs=
 
2363
    lt_cv_dlopen_self=yes
 
2364
    ;;
 
2365
 
 
2366
  mingw* | pw32*)
 
2367
    lt_cv_dlopen="LoadLibrary"
 
2368
    lt_cv_dlopen_libs=
 
2369
   ;;
 
2370
 
 
2371
  cygwin*)
 
2372
    lt_cv_dlopen="dlopen"
 
2373
    lt_cv_dlopen_libs=
 
2374
   ;;
 
2375
 
 
2376
  darwin*)
 
2377
  # if libdl is installed we need to link against it
 
2378
    AC_CHECK_LIB([dl], [dlopen],
 
2379
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
2380
    lt_cv_dlopen="dyld"
 
2381
    lt_cv_dlopen_libs=
 
2382
    lt_cv_dlopen_self=yes
 
2383
    ])
 
2384
   ;;
 
2385
 
 
2386
  *)
 
2387
    AC_CHECK_FUNC([shl_load],
 
2388
          [lt_cv_dlopen="shl_load"],
 
2389
      [AC_CHECK_LIB([dld], [shl_load],
 
2390
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
2391
        [AC_CHECK_FUNC([dlopen],
 
2392
              [lt_cv_dlopen="dlopen"],
 
2393
          [AC_CHECK_LIB([dl], [dlopen],
 
2394
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
2395
            [AC_CHECK_LIB([svld], [dlopen],
 
2396
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
2397
              [AC_CHECK_LIB([dld], [dld_link],
 
2398
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
2399
              ])
 
2400
            ])
 
2401
          ])
 
2402
        ])
 
2403
      ])
 
2404
    ;;
 
2405
  esac
 
2406
 
 
2407
  if test "x$lt_cv_dlopen" != xno; then
 
2408
    enable_dlopen=yes
 
2409
  else
 
2410
    enable_dlopen=no
 
2411
  fi
 
2412
 
 
2413
  case $lt_cv_dlopen in
 
2414
  dlopen)
 
2415
    save_CPPFLAGS="$CPPFLAGS"
 
2416
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
2417
 
 
2418
    save_LDFLAGS="$LDFLAGS"
 
2419
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
2420
 
 
2421
    save_LIBS="$LIBS"
 
2422
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
2423
 
 
2424
    AC_CACHE_CHECK([whether a program can dlopen itself],
 
2425
          lt_cv_dlopen_self, [dnl
 
2426
          _LT_AC_TRY_DLOPEN_SELF(
 
2427
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 
2428
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 
2429
    ])
 
2430
 
 
2431
    if test "x$lt_cv_dlopen_self" = xyes; then
 
2432
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
2433
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 
2434
          lt_cv_dlopen_self_static, [dnl
 
2435
          _LT_AC_TRY_DLOPEN_SELF(
 
2436
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 
2437
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 
2438
      ])
 
2439
    fi
 
2440
 
 
2441
    CPPFLAGS="$save_CPPFLAGS"
 
2442
    LDFLAGS="$save_LDFLAGS"
 
2443
    LIBS="$save_LIBS"
 
2444
    ;;
 
2445
  esac
 
2446
 
 
2447
  case $lt_cv_dlopen_self in
 
2448
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
2449
  *) enable_dlopen_self=unknown ;;
 
2450
  esac
 
2451
 
 
2452
  case $lt_cv_dlopen_self_static in
 
2453
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
2454
  *) enable_dlopen_self_static=unknown ;;
 
2455
  esac
 
2456
fi
 
2457
])# AC_LIBTOOL_DLOPEN_SELF
 
2458
 
 
2459
 
 
2460
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
2461
# ---------------------------------
 
2462
# Check to see if options -c and -o are simultaneously supported by compiler
 
2463
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
2464
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2465
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
2466
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2467
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2468
   $rm -r conftest 2>/dev/null
 
2469
   mkdir conftest
 
2470
   cd conftest
 
2471
   mkdir out
 
2472
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2473
 
 
2474
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
2475
   # Insert the option either (1) after the last *FLAGS variable, or
 
2476
   # (2) before a word containing "conftest.", or (3) at the end.
 
2477
   # Note that $ac_compile itself does not contain backslashes and begins
 
2478
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
2479
   lt_compile=`echo "$ac_compile" | $SED \
 
2480
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
2481
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
2482
   -e 's:$: $lt_compiler_flag:'`
 
2483
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
2484
   (eval "$lt_compile" 2>out/conftest.err)
 
2485
   ac_status=$?
 
2486
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
2487
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
2488
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
2489
   then
 
2490
     # The compiler can only warn and ignore the option if not recognized
 
2491
     # So say no if there are warnings
 
2492
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2493
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
2494
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
2495
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2496
     fi
 
2497
   fi
 
2498
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
2499
   $rm conftest*
 
2500
   # SGI C++ compiler will create directory out/ii_files/ for
 
2501
   # template instantiation
 
2502
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
2503
   $rm out/* && rmdir out
 
2504
   cd ..
 
2505
   rmdir conftest
 
2506
   $rm conftest*
 
2507
])
 
2508
])# AC_LIBTOOL_PROG_CC_C_O
 
2509
 
 
2510
 
 
2511
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
2512
# -----------------------------------------
 
2513
# Check to see if we can do hard links to lock some files if needed
 
2514
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
2515
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2516
 
 
2517
hard_links="nottested"
 
2518
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2519
  # do not overwrite the value of need_locks provided by the user
 
2520
  AC_MSG_CHECKING([if we can lock with hard links])
 
2521
  hard_links=yes
 
2522
  $rm conftest*
 
2523
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2524
  touch conftest.a
 
2525
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
2526
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
2527
  AC_MSG_RESULT([$hard_links])
 
2528
  if test "$hard_links" = no; then
 
2529
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 
2530
    need_locks=warn
 
2531
  fi
 
2532
else
 
2533
  need_locks=no
 
2534
fi
 
2535
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
2536
 
 
2537
 
 
2538
# AC_LIBTOOL_OBJDIR
 
2539
# -----------------
 
2540
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2541
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
2542
[rm -f .libs 2>/dev/null
 
2543
mkdir .libs 2>/dev/null
 
2544
if test -d .libs; then
 
2545
  lt_cv_objdir=.libs
 
2546
else
 
2547
  # MS-DOS does not allow filenames that begin with a dot.
 
2548
  lt_cv_objdir=_libs
 
2549
fi
 
2550
rmdir .libs 2>/dev/null])
 
2551
objdir=$lt_cv_objdir
 
2552
])# AC_LIBTOOL_OBJDIR
 
2553
 
 
2554
 
 
2555
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
2556
# ----------------------------------------------
 
2557
# Check hardcoding attributes.
 
2558
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2559
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
2560
_LT_AC_TAGVAR(hardcode_action, $1)=
 
2561
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
2562
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
2563
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2564
 
 
2565
  # We can hardcode non-existant directories.
 
2566
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2567
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
2568
     # have to relink, otherwise we might link with an installed library
 
2569
     # when we should be linking with a yet-to-be-installed one
 
2570
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2571
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2572
    # Linking always hardcodes the temporary library directory.
 
2573
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2574
  else
 
2575
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
2576
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2577
  fi
 
2578
else
 
2579
  # We cannot hardcode anything, or else we can only hardcode existing
 
2580
  # directories.
 
2581
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2582
fi
 
2583
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2584
 
 
2585
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2586
  # Fast installation is not supported
 
2587
  enable_fast_install=no
 
2588
elif test "$shlibpath_overrides_runpath" = yes ||
 
2589
     test "$enable_shared" = no; then
 
2590
  # Fast installation is not necessary
 
2591
  enable_fast_install=needless
 
2592
fi
 
2593
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
2594
 
 
2595
 
 
2596
# AC_LIBTOOL_SYS_LIB_STRIP
 
2597
# ------------------------
 
2598
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
2599
[striplib=
 
2600
old_striplib=
 
2601
AC_MSG_CHECKING([whether stripping libraries is possible])
 
2602
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2603
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
2604
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
2605
  AC_MSG_RESULT([yes])
 
2606
else
 
2607
# FIXME - insert some real tests, host_os isn't really good enough
 
2608
  case $host_os in
 
2609
   darwin*)
 
2610
       if test -n "$STRIP" ; then
 
2611
         striplib="$STRIP -x"
 
2612
         AC_MSG_RESULT([yes])
 
2613
       else
 
2614
  AC_MSG_RESULT([no])
 
2615
fi
 
2616
       ;;
 
2617
   *)
 
2618
  AC_MSG_RESULT([no])
 
2619
    ;;
 
2620
  esac
 
2621
fi
 
2622
])# AC_LIBTOOL_SYS_LIB_STRIP
 
2623
 
 
2624
 
 
2625
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2626
# -----------------------------
 
2627
# PORTME Fill in your ld.so characteristics
 
2628
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
2629
[AC_MSG_CHECKING([dynamic linker characteristics])
 
2630
library_names_spec=
 
2631
libname_spec='lib$name'
 
2632
soname_spec=
 
2633
shrext_cmds=".so"
 
2634
postinstall_cmds=
 
2635
postuninstall_cmds=
 
2636
finish_cmds=
 
2637
finish_eval=
 
2638
shlibpath_var=
 
2639
shlibpath_overrides_runpath=unknown
 
2640
version_type=none
 
2641
dynamic_linker="$host_os ld.so"
 
2642
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2643
if test "$GCC" = yes; then
 
2644
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2645
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
2646
    # if the path contains ";" then we assume it to be the separator
 
2647
    # otherwise default to the standard path separator (i.e. ":") - it is
 
2648
    # assumed that no part of a normal pathname contains ";" but that should
 
2649
    # okay in the real world where ";" in dirpaths is itself problematic.
 
2650
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2651
  else
 
2652
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2653
  fi
 
2654
else
 
2655
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
2656
fi
 
2657
need_lib_prefix=unknown
 
2658
hardcode_into_libs=no
 
2659
 
 
2660
# when you set need_version to no, make sure it does not cause -set_version
 
2661
# flags to be left without arguments
 
2662
need_version=unknown
 
2663
 
 
2664
case $host_os in
 
2665
aix3*)
 
2666
  version_type=linux
 
2667
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
2668
  shlibpath_var=LIBPATH
 
2669
 
 
2670
  # AIX 3 has no versioning support, so we append a major version to the name.
 
2671
  soname_spec='${libname}${release}${shared_ext}$major'
 
2672
  ;;
 
2673
 
 
2674
aix4* | aix5*)
 
2675
  version_type=linux
 
2676
  need_lib_prefix=no
 
2677
  need_version=no
 
2678
  hardcode_into_libs=yes
 
2679
  if test "$host_cpu" = ia64; then
 
2680
    # AIX 5 supports IA64
 
2681
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
2682
    shlibpath_var=LD_LIBRARY_PATH
 
2683
  else
 
2684
    # With GCC up to 2.95.x, collect2 would create an import file
 
2685
    # for dependence libraries.  The import file would start with
 
2686
    # the line `#! .'.  This would cause the generated library to
 
2687
    # depend on `.', always an invalid library.  This was fixed in
 
2688
    # development snapshots of GCC prior to 3.0.
 
2689
    case $host_os in
 
2690
      aix4 | aix4.[[01]] | aix4.[[01]].*)
 
2691
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
2692
           echo ' yes '
 
2693
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2694
        :
 
2695
      else
 
2696
        can_build_shared=no
 
2697
      fi
 
2698
      ;;
 
2699
    esac
 
2700
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
2701
    # soname into executable. Probably we can add versioning support to
 
2702
    # collect2, so additional links can be useful in future.
 
2703
    if test "$aix_use_runtimelinking" = yes; then
 
2704
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
2705
      # instead of lib<name>.a to let people know that these are not
 
2706
      # typical AIX shared libraries.
 
2707
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2708
    else
 
2709
      # We preserve .a as extension for shared libraries through AIX4.2
 
2710
      # and later when we are not doing run time linking.
 
2711
      library_names_spec='${libname}${release}.a $libname.a'
 
2712
      soname_spec='${libname}${release}${shared_ext}$major'
 
2713
    fi
 
2714
    shlibpath_var=LIBPATH
 
2715
  fi
 
2716
  ;;
 
2717
 
 
2718
amigaos*)
 
2719
  library_names_spec='$libname.ixlibrary $libname.a'
 
2720
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2721
  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'
 
2722
  ;;
 
2723
 
 
2724
beos*)
 
2725
  library_names_spec='${libname}${shared_ext}'
 
2726
  dynamic_linker="$host_os ld.so"
 
2727
  shlibpath_var=LIBRARY_PATH
 
2728
  ;;
 
2729
 
 
2730
bsdi[[45]]*)
 
2731
  version_type=linux
 
2732
  need_version=no
 
2733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2734
  soname_spec='${libname}${release}${shared_ext}$major'
 
2735
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
2736
  shlibpath_var=LD_LIBRARY_PATH
 
2737
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
2738
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
2739
  # the default ld.so.conf also contains /usr/contrib/lib and
 
2740
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
2741
  # libtool to hard-code these into programs
 
2742
  ;;
 
2743
 
 
2744
cygwin* | mingw* | pw32*)
 
2745
  version_type=windows
 
2746
  shrext_cmds=".dll"
 
2747
  need_version=no
 
2748
  need_lib_prefix=no
 
2749
 
 
2750
  case $GCC,$host_os in
 
2751
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2752
    library_names_spec='$libname.dll.a'
 
2753
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2754
    postinstall_cmds='base_file=`basename \${file}`~
 
2755
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2756
      dldir=$destdir/`dirname \$dlpath`~
 
2757
      test -d \$dldir || mkdir -p \$dldir~
 
2758
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2759
      chmod a+x \$dldir/$dlname'
 
2760
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2761
      dlpath=$dir/\$dldll~
 
2762
       $rm \$dlpath'
 
2763
    shlibpath_overrides_runpath=yes
 
2764
 
 
2765
    case $host_os in
 
2766
    cygwin*)
 
2767
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
2768
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2769
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
2770
      ;;
 
2771
    mingw*)
 
2772
      # MinGW DLLs use traditional 'lib' prefix
 
2773
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2774
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2775
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2776
        # It is most probably a Windows format PATH printed by
 
2777
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
2778
        # path with ; separators, and with drive letters. We can handle the
 
2779
        # drive letters (cygwin fileutils understands them), so leave them,
 
2780
        # especially as we might pass files found there to a mingw objdump,
 
2781
        # which wouldn't understand a cygwinified path. Ahh.
 
2782
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2783
      else
 
2784
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2785
      fi
 
2786
      ;;
 
2787
    pw32*)
 
2788
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
2789
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2790
      ;;
 
2791
    esac
 
2792
    ;;
 
2793
 
 
2794
  *)
 
2795
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
2796
    ;;
 
2797
  esac
 
2798
  dynamic_linker='Win32 ld.exe'
 
2799
  # FIXME: first we should search . and the directory the executable is in
 
2800
  shlibpath_var=PATH
 
2801
  ;;
 
2802
 
 
2803
darwin* | rhapsody*)
 
2804
  dynamic_linker="$host_os dyld"
 
2805
  version_type=darwin
 
2806
  need_lib_prefix=no
 
2807
  need_version=no
 
2808
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2809
  soname_spec='${libname}${release}${major}$shared_ext'
 
2810
  shlibpath_overrides_runpath=yes
 
2811
  shlibpath_var=DYLD_LIBRARY_PATH
 
2812
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
2813
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
2814
  if test "$GCC" = yes; then
 
2815
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
2816
  else
 
2817
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
2818
  fi
 
2819
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
2820
  ;;
 
2821
 
 
2822
dgux*)
 
2823
  version_type=linux
 
2824
  need_lib_prefix=no
 
2825
  need_version=no
 
2826
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
2827
  soname_spec='${libname}${release}${shared_ext}$major'
 
2828
  shlibpath_var=LD_LIBRARY_PATH
 
2829
  ;;
 
2830
 
 
2831
freebsd1*)
 
2832
  dynamic_linker=no
 
2833
  ;;
 
2834
 
 
2835
kfreebsd*-gnu)
 
2836
  version_type=linux
 
2837
  need_lib_prefix=no
 
2838
  need_version=no
 
2839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2840
  soname_spec='${libname}${release}${shared_ext}$major'
 
2841
  shlibpath_var=LD_LIBRARY_PATH
 
2842
  shlibpath_overrides_runpath=no
 
2843
  hardcode_into_libs=yes
 
2844
  dynamic_linker='GNU ld.so'
 
2845
  ;;
 
2846
 
 
2847
freebsd* | dragonfly*)
 
2848
  # DragonFly does not have aout.  When/if they implement a new
 
2849
  # versioning mechanism, adjust this.
 
2850
  if test -x /usr/bin/objformat; then
 
2851
    objformat=`/usr/bin/objformat`
 
2852
  else
 
2853
    case $host_os in
 
2854
    freebsd[[123]]*) objformat=aout ;;
 
2855
    *) objformat=elf ;;
 
2856
    esac
 
2857
  fi
 
2858
  version_type=freebsd-$objformat
 
2859
  case $version_type in
 
2860
    freebsd-elf*)
 
2861
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2862
      need_version=no
 
2863
      need_lib_prefix=no
 
2864
      ;;
 
2865
    freebsd-*)
 
2866
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
2867
      need_version=yes
 
2868
      ;;
 
2869
  esac
 
2870
  shlibpath_var=LD_LIBRARY_PATH
 
2871
  case $host_os in
 
2872
  freebsd2*)
 
2873
    shlibpath_overrides_runpath=yes
 
2874
    ;;
 
2875
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 
2876
    shlibpath_overrides_runpath=yes
 
2877
    hardcode_into_libs=yes
 
2878
    ;;
 
2879
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
2880
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 
2881
    shlibpath_overrides_runpath=no
 
2882
    hardcode_into_libs=yes
 
2883
    ;;
 
2884
  freebsd*) # from 4.6 on
 
2885
    shlibpath_overrides_runpath=yes
 
2886
    hardcode_into_libs=yes
 
2887
    ;;
 
2888
  esac
 
2889
  ;;
 
2890
 
 
2891
gnu*)
 
2892
  version_type=linux
 
2893
  need_lib_prefix=no
 
2894
  need_version=no
 
2895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2896
  soname_spec='${libname}${release}${shared_ext}$major'
 
2897
  shlibpath_var=LD_LIBRARY_PATH
 
2898
  hardcode_into_libs=yes
 
2899
  ;;
 
2900
 
 
2901
hpux9* | hpux10* | hpux11*)
 
2902
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
2903
  # link against other versions.
 
2904
  version_type=sunos
 
2905
  need_lib_prefix=no
 
2906
  need_version=no
 
2907
  case $host_cpu in
 
2908
  ia64*)
 
2909
    shrext_cmds='.so'
 
2910
    hardcode_into_libs=yes
 
2911
    dynamic_linker="$host_os dld.so"
 
2912
    shlibpath_var=LD_LIBRARY_PATH
 
2913
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2914
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2915
    soname_spec='${libname}${release}${shared_ext}$major'
 
2916
    if test "X$HPUX_IA64_MODE" = X32; then
 
2917
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
2918
    else
 
2919
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
2920
    fi
 
2921
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2922
    ;;
 
2923
   hppa*64*)
 
2924
     shrext_cmds='.sl'
 
2925
     hardcode_into_libs=yes
 
2926
     dynamic_linker="$host_os dld.sl"
 
2927
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2928
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2929
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2930
     soname_spec='${libname}${release}${shared_ext}$major'
 
2931
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2932
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2933
     ;;
 
2934
   *)
 
2935
    shrext_cmds='.sl'
 
2936
    dynamic_linker="$host_os dld.sl"
 
2937
    shlibpath_var=SHLIB_PATH
 
2938
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
2939
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2940
    soname_spec='${libname}${release}${shared_ext}$major'
 
2941
    ;;
 
2942
  esac
 
2943
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
2944
  postinstall_cmds='chmod 555 $lib'
 
2945
  ;;
 
2946
 
 
2947
interix3*)
 
2948
  version_type=linux
 
2949
  need_lib_prefix=no
 
2950
  need_version=no
 
2951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2952
  soname_spec='${libname}${release}${shared_ext}$major'
 
2953
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
2954
  shlibpath_var=LD_LIBRARY_PATH
 
2955
  shlibpath_overrides_runpath=no
 
2956
  hardcode_into_libs=yes
 
2957
  ;;
 
2958
 
 
2959
irix5* | irix6* | nonstopux*)
 
2960
  case $host_os in
 
2961
    nonstopux*) version_type=nonstopux ;;
 
2962
    *)
 
2963
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
2964
                version_type=linux
 
2965
        else
 
2966
                version_type=irix
 
2967
        fi ;;
 
2968
  esac
 
2969
  need_lib_prefix=no
 
2970
  need_version=no
 
2971
  soname_spec='${libname}${release}${shared_ext}$major'
 
2972
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
2973
  case $host_os in
 
2974
  irix5* | nonstopux*)
 
2975
    libsuff= shlibsuff=
 
2976
    ;;
 
2977
  *)
 
2978
    case $LD in # libtool.m4 will add one of these switches to LD
 
2979
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
2980
      libsuff= shlibsuff= libmagic=32-bit;;
 
2981
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
2982
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
2983
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
2984
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
2985
    *) libsuff= shlibsuff= libmagic=never-match;;
 
2986
    esac
 
2987
    ;;
 
2988
  esac
 
2989
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
2990
  shlibpath_overrides_runpath=no
 
2991
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
2992
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
2993
  hardcode_into_libs=yes
 
2994
  ;;
 
2995
 
 
2996
# No shared lib support for Linux oldld, aout, or coff.
 
2997
linux*oldld* | linux*aout* | linux*coff*)
 
2998
  dynamic_linker=no
 
2999
  ;;
 
3000
 
 
3001
# This must be Linux ELF.
 
3002
linux*)
 
3003
  version_type=linux
 
3004
  need_lib_prefix=no
 
3005
  need_version=no
 
3006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3007
  soname_spec='${libname}${release}${shared_ext}$major'
 
3008
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
3009
  shlibpath_var=LD_LIBRARY_PATH
 
3010
  shlibpath_overrides_runpath=no
 
3011
  # This implies no fast_install, which is unacceptable.
 
3012
  # Some rework will be needed to allow for fast_install
 
3013
  # before this can be enabled.
 
3014
  hardcode_into_libs=yes
 
3015
 
 
3016
  # Append ld.so.conf contents to the search path
 
3017
  if test -f /etc/ld.so.conf; then
 
3018
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
3019
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
3020
  fi
 
3021
 
 
3022
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
3023
  # powerpc, because MkLinux only supported shared libraries with the
 
3024
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
3025
  # most powerpc-linux boxes support dynamic linking these days and
 
3026
  # people can always --disable-shared, the test was removed, and we
 
3027
  # assume the GNU/Linux dynamic linker is in use.
 
3028
  dynamic_linker='GNU/Linux ld.so'
 
3029
  ;;
 
3030
 
 
3031
knetbsd*-gnu)
 
3032
  version_type=linux
 
3033
  need_lib_prefix=no
 
3034
  need_version=no
 
3035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3036
  soname_spec='${libname}${release}${shared_ext}$major'
 
3037
  shlibpath_var=LD_LIBRARY_PATH
 
3038
  shlibpath_overrides_runpath=no
 
3039
  hardcode_into_libs=yes
 
3040
  dynamic_linker='GNU ld.so'
 
3041
  ;;
 
3042
 
 
3043
netbsd*)
 
3044
  version_type=sunos
 
3045
  need_lib_prefix=no
 
3046
  need_version=no
 
3047
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3048
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3049
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3050
    dynamic_linker='NetBSD (a.out) ld.so'
 
3051
  else
 
3052
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3053
    soname_spec='${libname}${release}${shared_ext}$major'
 
3054
    dynamic_linker='NetBSD ld.elf_so'
 
3055
  fi
 
3056
  shlibpath_var=LD_LIBRARY_PATH
 
3057
  shlibpath_overrides_runpath=yes
 
3058
  hardcode_into_libs=yes
 
3059
  ;;
 
3060
 
 
3061
newsos6)
 
3062
  version_type=linux
 
3063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3064
  shlibpath_var=LD_LIBRARY_PATH
 
3065
  shlibpath_overrides_runpath=yes
 
3066
  ;;
 
3067
 
 
3068
nto-qnx*)
 
3069
  version_type=linux
 
3070
  need_lib_prefix=no
 
3071
  need_version=no
 
3072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3073
  soname_spec='${libname}${release}${shared_ext}$major'
 
3074
  shlibpath_var=LD_LIBRARY_PATH
 
3075
  shlibpath_overrides_runpath=yes
 
3076
  ;;
 
3077
 
 
3078
openbsd*)
 
3079
  version_type=sunos
 
3080
  sys_lib_dlsearch_path_spec="/usr/lib"
 
3081
  need_lib_prefix=no
 
3082
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
3083
  case $host_os in
 
3084
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
3085
    *)                         need_version=no  ;;
 
3086
  esac
 
3087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3088
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
3089
  shlibpath_var=LD_LIBRARY_PATH
 
3090
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3091
    case $host_os in
 
3092
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
3093
        shlibpath_overrides_runpath=no
 
3094
        ;;
 
3095
      *)
 
3096
        shlibpath_overrides_runpath=yes
 
3097
        ;;
 
3098
      esac
 
3099
  else
 
3100
    shlibpath_overrides_runpath=yes
 
3101
  fi
 
3102
  ;;
 
3103
 
 
3104
os2*)
 
3105
  libname_spec='$name'
 
3106
  shrext_cmds=".dll"
 
3107
  need_lib_prefix=no
 
3108
  library_names_spec='$libname${shared_ext} $libname.a'
 
3109
  dynamic_linker='OS/2 ld.exe'
 
3110
  shlibpath_var=LIBPATH
 
3111
  ;;
 
3112
 
 
3113
osf3* | osf4* | osf5*)
 
3114
  version_type=osf
 
3115
  need_lib_prefix=no
 
3116
  need_version=no
 
3117
  soname_spec='${libname}${release}${shared_ext}$major'
 
3118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3119
  shlibpath_var=LD_LIBRARY_PATH
 
3120
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
3121
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
3122
  ;;
 
3123
 
 
3124
solaris*)
 
3125
  version_type=linux
 
3126
  need_lib_prefix=no
 
3127
  need_version=no
 
3128
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3129
  soname_spec='${libname}${release}${shared_ext}$major'
 
3130
  shlibpath_var=LD_LIBRARY_PATH
 
3131
  shlibpath_overrides_runpath=yes
 
3132
  hardcode_into_libs=yes
 
3133
  # ldd complains unless libraries are executable
 
3134
  postinstall_cmds='chmod +x $lib'
 
3135
  ;;
 
3136
 
 
3137
sunos4*)
 
3138
  version_type=sunos
 
3139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
3140
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
3141
  shlibpath_var=LD_LIBRARY_PATH
 
3142
  shlibpath_overrides_runpath=yes
 
3143
  if test "$with_gnu_ld" = yes; then
 
3144
    need_lib_prefix=no
 
3145
  fi
 
3146
  need_version=yes
 
3147
  ;;
 
3148
 
 
3149
sysv4 | sysv4.3*)
 
3150
  version_type=linux
 
3151
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3152
  soname_spec='${libname}${release}${shared_ext}$major'
 
3153
  shlibpath_var=LD_LIBRARY_PATH
 
3154
  case $host_vendor in
 
3155
    sni)
 
3156
      shlibpath_overrides_runpath=no
 
3157
      need_lib_prefix=no
 
3158
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
3159
      runpath_var=LD_RUN_PATH
 
3160
      ;;
 
3161
    siemens)
 
3162
      need_lib_prefix=no
 
3163
      ;;
 
3164
    motorola)
 
3165
      need_lib_prefix=no
 
3166
      need_version=no
 
3167
      shlibpath_overrides_runpath=no
 
3168
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
3169
      ;;
 
3170
  esac
 
3171
  ;;
 
3172
 
 
3173
sysv4*MP*)
 
3174
  if test -d /usr/nec ;then
 
3175
    version_type=linux
 
3176
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
3177
    soname_spec='$libname${shared_ext}.$major'
 
3178
    shlibpath_var=LD_LIBRARY_PATH
 
3179
  fi
 
3180
  ;;
 
3181
 
 
3182
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3183
  version_type=freebsd-elf
 
3184
  need_lib_prefix=no
 
3185
  need_version=no
 
3186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
3187
  soname_spec='${libname}${release}${shared_ext}$major'
 
3188
  shlibpath_var=LD_LIBRARY_PATH
 
3189
  hardcode_into_libs=yes
 
3190
  if test "$with_gnu_ld" = yes; then
 
3191
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3192
    shlibpath_overrides_runpath=no
 
3193
  else
 
3194
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3195
    shlibpath_overrides_runpath=yes
 
3196
    case $host_os in
 
3197
      sco3.2v5*)
 
3198
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
3199
        ;;
 
3200
    esac
 
3201
  fi
 
3202
  sys_lib_dlsearch_path_spec='/usr/lib'
 
3203
  ;;
 
3204
 
 
3205
uts4*)
 
3206
  version_type=linux
 
3207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3208
  soname_spec='${libname}${release}${shared_ext}$major'
 
3209
  shlibpath_var=LD_LIBRARY_PATH
 
3210
  ;;
 
3211
 
 
3212
*)
 
3213
  dynamic_linker=no
 
3214
  ;;
 
3215
esac
 
3216
AC_MSG_RESULT([$dynamic_linker])
 
3217
test "$dynamic_linker" = no && can_build_shared=no
 
3218
 
 
3219
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
3220
if test "$GCC" = yes; then
 
3221
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
3222
fi
 
3223
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
3224
 
 
3225
 
 
3226
# _LT_AC_TAGCONFIG
 
3227
# ----------------
 
3228
AC_DEFUN([_LT_AC_TAGCONFIG],
 
3229
[AC_ARG_WITH([tags],
 
3230
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
3231
        [include additional configurations @<:@automatic@:>@])],
 
3232
    [tagnames="$withval"])
 
3233
 
 
3234
if test -f "$ltmain" && test -n "$tagnames"; then
 
3235
  if test ! -f "${ofile}"; then
 
3236
    AC_MSG_WARN([output file `$ofile' does not exist])
 
3237
  fi
 
3238
 
 
3239
  if test -z "$LTCC"; then
 
3240
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
3241
    if test -z "$LTCC"; then
 
3242
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
3243
    else
 
3244
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
3245
    fi
 
3246
  fi
 
3247
  if test -z "$LTCFLAGS"; then
 
3248
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
3249
  fi
 
3250
 
 
3251
  # Extract list of available tagged configurations in $ofile.
 
3252
  # Note that this assumes the entire list is on one line.
 
3253
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
3254
 
 
3255
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3256
  for tagname in $tagnames; do
 
3257
    IFS="$lt_save_ifs"
 
3258
    # Check whether tagname contains only valid characters
 
3259
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
3260
    "") ;;
 
3261
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
3262
        ;;
 
3263
    esac
 
3264
 
 
3265
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
3266
    then
 
3267
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
3268
    fi
 
3269
 
 
3270
    # Update the list of available tags.
 
3271
    if test -n "$tagname"; then
 
3272
      echo appending configuration tag \"$tagname\" to $ofile
 
3273
 
 
3274
      case $tagname in
 
3275
      CXX)
 
3276
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3277
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3278
            (test "X$CXX" != "Xg++"))) ; then
 
3279
          AC_LIBTOOL_LANG_CXX_CONFIG
 
3280
        else
 
3281
          tagname=""
 
3282
        fi
 
3283
        ;;
 
3284
 
 
3285
      F77)
 
3286
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
3287
          AC_LIBTOOL_LANG_F77_CONFIG
 
3288
        else
 
3289
          tagname=""
 
3290
        fi
 
3291
        ;;
 
3292
 
 
3293
      GCJ)
 
3294
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
3295
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
3296
        else
 
3297
          tagname=""
 
3298
        fi
 
3299
        ;;
 
3300
 
 
3301
      RC)
 
3302
        AC_LIBTOOL_LANG_RC_CONFIG
 
3303
        ;;
 
3304
 
 
3305
      *)
 
3306
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
3307
        ;;
 
3308
      esac
 
3309
 
 
3310
      # Append the new tag name to the list of available tags.
 
3311
      if test -n "$tagname" ; then
 
3312
      available_tags="$available_tags $tagname"
 
3313
    fi
 
3314
    fi
 
3315
  done
 
3316
  IFS="$lt_save_ifs"
 
3317
 
 
3318
  # Now substitute the updated list of available tags.
 
3319
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
3320
    mv "${ofile}T" "$ofile"
 
3321
    chmod +x "$ofile"
 
3322
  else
 
3323
    rm -f "${ofile}T"
 
3324
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
3325
  fi
 
3326
fi
 
3327
])# _LT_AC_TAGCONFIG
 
3328
 
 
3329
 
 
3330
# AC_LIBTOOL_DLOPEN
 
3331
# -----------------
 
3332
# enable checks for dlopen support
 
3333
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
3334
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
3335
])# AC_LIBTOOL_DLOPEN
 
3336
 
 
3337
 
 
3338
# AC_LIBTOOL_WIN32_DLL
 
3339
# --------------------
 
3340
# declare package support for building win32 DLLs
 
3341
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
3342
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
3343
])# AC_LIBTOOL_WIN32_DLL
 
3344
 
 
3345
 
 
3346
# AC_ENABLE_SHARED([DEFAULT])
 
3347
# ---------------------------
 
3348
# implement the --enable-shared flag
 
3349
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3350
AC_DEFUN([AC_ENABLE_SHARED],
 
3351
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
3352
AC_ARG_ENABLE([shared],
 
3353
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
3354
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
3355
    [p=${PACKAGE-default}
 
3356
    case $enableval in
 
3357
    yes) enable_shared=yes ;;
 
3358
    no) enable_shared=no ;;
 
3359
    *)
 
3360
      enable_shared=no
 
3361
      # Look at the argument we got.  We use all the common list separators.
 
3362
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3363
      for pkg in $enableval; do
 
3364
        IFS="$lt_save_ifs"
 
3365
        if test "X$pkg" = "X$p"; then
 
3366
          enable_shared=yes
 
3367
        fi
 
3368
      done
 
3369
      IFS="$lt_save_ifs"
 
3370
      ;;
 
3371
    esac],
 
3372
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
3373
])# AC_ENABLE_SHARED
 
3374
 
 
3375
 
 
3376
# AC_DISABLE_SHARED
 
3377
# -----------------
 
3378
# set the default shared flag to --disable-shared
 
3379
AC_DEFUN([AC_DISABLE_SHARED],
 
3380
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3381
AC_ENABLE_SHARED(no)
 
3382
])# AC_DISABLE_SHARED
 
3383
 
 
3384
 
 
3385
# AC_ENABLE_STATIC([DEFAULT])
 
3386
# ---------------------------
 
3387
# implement the --enable-static flag
 
3388
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3389
AC_DEFUN([AC_ENABLE_STATIC],
 
3390
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
3391
AC_ARG_ENABLE([static],
 
3392
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
3393
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
3394
    [p=${PACKAGE-default}
 
3395
    case $enableval in
 
3396
    yes) enable_static=yes ;;
 
3397
    no) enable_static=no ;;
 
3398
    *)
 
3399
     enable_static=no
 
3400
      # Look at the argument we got.  We use all the common list separators.
 
3401
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3402
      for pkg in $enableval; do
 
3403
        IFS="$lt_save_ifs"
 
3404
        if test "X$pkg" = "X$p"; then
 
3405
          enable_static=yes
 
3406
        fi
 
3407
      done
 
3408
      IFS="$lt_save_ifs"
 
3409
      ;;
 
3410
    esac],
 
3411
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
3412
])# AC_ENABLE_STATIC
 
3413
 
 
3414
 
 
3415
# AC_DISABLE_STATIC
 
3416
# -----------------
 
3417
# set the default static flag to --disable-static
 
3418
AC_DEFUN([AC_DISABLE_STATIC],
 
3419
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3420
AC_ENABLE_STATIC(no)
 
3421
])# AC_DISABLE_STATIC
 
3422
 
 
3423
 
 
3424
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
3425
# ---------------------------------
 
3426
# implement the --enable-fast-install flag
 
3427
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3428
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
3429
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
3430
AC_ARG_ENABLE([fast-install],
 
3431
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
3432
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
3433
    [p=${PACKAGE-default}
 
3434
    case $enableval in
 
3435
    yes) enable_fast_install=yes ;;
 
3436
    no) enable_fast_install=no ;;
 
3437
    *)
 
3438
      enable_fast_install=no
 
3439
      # Look at the argument we got.  We use all the common list separators.
 
3440
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3441
      for pkg in $enableval; do
 
3442
        IFS="$lt_save_ifs"
 
3443
        if test "X$pkg" = "X$p"; then
 
3444
          enable_fast_install=yes
 
3445
        fi
 
3446
      done
 
3447
      IFS="$lt_save_ifs"
 
3448
      ;;
 
3449
    esac],
 
3450
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
3451
])# AC_ENABLE_FAST_INSTALL
 
3452
 
 
3453
 
 
3454
# AC_DISABLE_FAST_INSTALL
 
3455
# -----------------------
 
3456
# set the default to --disable-fast-install
 
3457
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
3458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3459
AC_ENABLE_FAST_INSTALL(no)
 
3460
])# AC_DISABLE_FAST_INSTALL
 
3461
 
 
3462
 
 
3463
# AC_LIBTOOL_PICMODE([MODE])
 
3464
# --------------------------
 
3465
# implement the --with-pic flag
 
3466
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
3467
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
3468
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3469
pic_mode=ifelse($#,1,$1,default)
 
3470
])# AC_LIBTOOL_PICMODE
 
3471
 
 
3472
 
 
3473
# AC_PROG_EGREP
 
3474
# -------------
 
3475
# This is predefined starting with Autoconf 2.54, so this conditional
 
3476
# definition can be removed once we require Autoconf 2.54 or later.
 
3477
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
3478
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
3479
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3480
    then ac_cv_prog_egrep='grep -E'
 
3481
    else ac_cv_prog_egrep='egrep'
 
3482
    fi])
 
3483
 EGREP=$ac_cv_prog_egrep
 
3484
 AC_SUBST([EGREP])
 
3485
])])
 
3486
 
 
3487
 
 
3488
# AC_PATH_TOOL_PREFIX
 
3489
# -------------------
 
3490
# find a file program which can recognise shared library
 
3491
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
3492
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3493
AC_MSG_CHECKING([for $1])
 
3494
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 
3495
[case $MAGIC_CMD in
 
3496
[[\\/*] |  ?:[\\/]*])
 
3497
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
3498
  ;;
 
3499
*)
 
3500
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
3501
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3502
dnl $ac_dummy forces splitting on constant user-supplied paths.
 
3503
dnl POSIX.2 word splitting is done only on the output of word expansions,
 
3504
dnl not every word.  This closes a longstanding sh security hole.
 
3505
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3506
  for ac_dir in $ac_dummy; do
 
3507
    IFS="$lt_save_ifs"
 
3508
    test -z "$ac_dir" && ac_dir=.
 
3509
    if test -f $ac_dir/$1; then
 
3510
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 
3511
      if test -n "$file_magic_test_file"; then
 
3512
        case $deplibs_check_method in
 
3513
        "file_magic "*)
 
3514
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
3515
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3516
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
3517
            $EGREP "$file_magic_regex" > /dev/null; then
 
3518
            :
 
3519
          else
 
3520
            cat <<EOF 1>&2
 
3521
 
 
3522
*** Warning: the command libtool uses to detect shared libraries,
 
3523
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
3524
*** The result is that libtool may fail to recognize shared libraries
 
3525
*** as such.  This will affect the creation of libtool libraries that
 
3526
*** depend on shared libraries, but programs linked with such libtool
 
3527
*** libraries will work regardless of this problem.  Nevertheless, you
 
3528
*** may want to report the problem to your system manager and/or to
 
3529
*** bug-libtool@gnu.org
 
3530
 
 
3531
EOF
 
3532
          fi ;;
 
3533
        esac
 
3534
      fi
 
3535
      break
 
3536
    fi
 
3537
  done
 
3538
  IFS="$lt_save_ifs"
 
3539
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
3540
  ;;
 
3541
esac])
 
3542
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
3543
if test -n "$MAGIC_CMD"; then
 
3544
  AC_MSG_RESULT($MAGIC_CMD)
 
3545
else
 
3546
  AC_MSG_RESULT(no)
 
3547
fi
 
3548
])# AC_PATH_TOOL_PREFIX
 
3549
 
 
3550
 
 
3551
# AC_PATH_MAGIC
 
3552
# -------------
 
3553
# find a file program which can recognise a shared library
 
3554
AC_DEFUN([AC_PATH_MAGIC],
 
3555
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3556
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
3557
  if test -n "$ac_tool_prefix"; then
 
3558
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3559
  else
 
3560
    MAGIC_CMD=:
 
3561
  fi
 
3562
fi
 
3563
])# AC_PATH_MAGIC
 
3564
 
 
3565
 
 
3566
# AC_PROG_LD
 
3567
# ----------
 
3568
# find the pathname to the GNU or non-GNU linker
 
3569
AC_DEFUN([AC_PROG_LD],
 
3570
[AC_ARG_WITH([gnu-ld],
 
3571
    [AC_HELP_STRING([--with-gnu-ld],
 
3572
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
3573
    [test "$withval" = no || with_gnu_ld=yes],
 
3574
    [with_gnu_ld=no])
 
3575
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3576
AC_REQUIRE([AC_PROG_CC])dnl
 
3577
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3578
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3579
ac_prog=ld
 
3580
if test "$GCC" = yes; then
 
3581
  # Check if gcc -print-prog-name=ld gives a path.
 
3582
  AC_MSG_CHECKING([for ld used by $CC])
 
3583
  case $host in
 
3584
  *-*-mingw*)
 
3585
    # gcc leaves a trailing carriage return which upsets mingw
 
3586
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3587
  *)
 
3588
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3589
  esac
 
3590
  case $ac_prog in
 
3591
    # Accept absolute paths.
 
3592
    [[\\/]]* | ?:[[\\/]]*)
 
3593
      re_direlt='/[[^/]][[^/]]*/\.\./'
 
3594
      # Canonicalize the pathname of ld
 
3595
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3596
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3597
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3598
      done
 
3599
      test -z "$LD" && LD="$ac_prog"
 
3600
      ;;
 
3601
  "")
 
3602
    # If it fails, then pretend we aren't using GCC.
 
3603
    ac_prog=ld
 
3604
    ;;
 
3605
  *)
 
3606
    # If it is relative, then search for the first ld in PATH.
 
3607
    with_gnu_ld=unknown
 
3608
    ;;
 
3609
  esac
 
3610
elif test "$with_gnu_ld" = yes; then
 
3611
  AC_MSG_CHECKING([for GNU ld])
 
3612
else
 
3613
  AC_MSG_CHECKING([for non-GNU ld])
 
3614
fi
 
3615
AC_CACHE_VAL(lt_cv_path_LD,
 
3616
[if test -z "$LD"; then
 
3617
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3618
  for ac_dir in $PATH; do
 
3619
    IFS="$lt_save_ifs"
 
3620
    test -z "$ac_dir" && ac_dir=.
 
3621
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3622
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3623
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3624
      # but apparently some variants of GNU ld only accept -v.
 
3625
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3626
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3627
      *GNU* | *'with BFD'*)
 
3628
        test "$with_gnu_ld" != no && break
 
3629
        ;;
 
3630
      *)
 
3631
        test "$with_gnu_ld" != yes && break
 
3632
        ;;
 
3633
      esac
 
3634
    fi
 
3635
  done
 
3636
  IFS="$lt_save_ifs"
 
3637
else
 
3638
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3639
fi])
 
3640
LD="$lt_cv_path_LD"
 
3641
if test -n "$LD"; then
 
3642
  AC_MSG_RESULT($LD)
 
3643
else
 
3644
  AC_MSG_RESULT(no)
 
3645
fi
 
3646
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
3647
AC_PROG_LD_GNU
 
3648
])# AC_PROG_LD
 
3649
 
 
3650
 
 
3651
# AC_PROG_LD_GNU
 
3652
# --------------
 
3653
AC_DEFUN([AC_PROG_LD_GNU],
 
3654
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3655
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3656
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3657
case `$LD -v 2>&1 </dev/null` in
 
3658
*GNU* | *'with BFD'*)
 
3659
  lt_cv_prog_gnu_ld=yes
 
3660
  ;;
 
3661
*)
 
3662
  lt_cv_prog_gnu_ld=no
 
3663
  ;;
 
3664
esac])
 
3665
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3666
])# AC_PROG_LD_GNU
 
3667
 
 
3668
 
 
3669
# AC_PROG_LD_RELOAD_FLAG
 
3670
# ----------------------
 
3671
# find reload flag for linker
 
3672
#   -- PORTME Some linkers may need a different reload flag.
 
3673
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3674
[AC_CACHE_CHECK([for $LD option to reload object files],
 
3675
  lt_cv_ld_reload_flag,
 
3676
  [lt_cv_ld_reload_flag='-r'])
 
3677
reload_flag=$lt_cv_ld_reload_flag
 
3678
case $reload_flag in
 
3679
"" | " "*) ;;
 
3680
*) reload_flag=" $reload_flag" ;;
 
3681
esac
 
3682
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3683
case $host_os in
 
3684
  darwin*)
 
3685
    if test "$GCC" = yes; then
 
3686
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3687
    else
 
3688
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3689
    fi
 
3690
    ;;
 
3691
esac
 
3692
])# AC_PROG_LD_RELOAD_FLAG
 
3693
 
 
3694
 
 
3695
# AC_DEPLIBS_CHECK_METHOD
 
3696
# -----------------------
 
3697
# how to check for library dependencies
 
3698
#  -- PORTME fill in with the dynamic library characteristics
 
3699
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
3700
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
3701
lt_cv_deplibs_check_method,
 
3702
[lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3703
lt_cv_file_magic_test_file=
 
3704
lt_cv_deplibs_check_method='unknown'
 
3705
# Need to set the preceding variable on all platforms that support
 
3706
# interlibrary dependencies.
 
3707
# 'none' -- dependencies not supported.
 
3708
# `unknown' -- same as none, but documents that we really don't know.
 
3709
# 'pass_all' -- all dependencies passed with no checks.
 
3710
# 'test_compile' -- check by making test program.
 
3711
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3712
# which responds to the $file_magic_cmd with a given extended regex.
 
3713
# If you have `file' or equivalent on your system and you're not sure
 
3714
# whether `pass_all' will *always* work, you probably want this one.
 
3715
 
 
3716
case $host_os in
 
3717
aix4* | aix5*)
 
3718
  lt_cv_deplibs_check_method=pass_all
 
3719
  ;;
 
3720
 
 
3721
beos*)
 
3722
  lt_cv_deplibs_check_method=pass_all
 
3723
  ;;
 
3724
 
 
3725
bsdi[[45]]*)
 
3726
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 
3727
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3728
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3729
  ;;
 
3730
 
 
3731
cygwin*)
 
3732
  # func_win32_libid is a shell function defined in ltmain.sh
 
3733
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3734
  lt_cv_file_magic_cmd='func_win32_libid'
 
3735
  ;;
 
3736
 
 
3737
mingw* | pw32*)
 
3738
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3739
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3740
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3741
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3742
  ;;
 
3743
 
 
3744
darwin* | rhapsody*)
 
3745
  lt_cv_deplibs_check_method=pass_all
 
3746
  ;;
 
3747
 
 
3748
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3749
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3750
    case $host_cpu in
 
3751
    i*86 )
 
3752
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3753
      # Let's accept both of them until this is cleared up.
 
3754
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 
3755
      lt_cv_file_magic_cmd=/usr/bin/file
 
3756
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3757
      ;;
 
3758
    esac
 
3759
  else
 
3760
    lt_cv_deplibs_check_method=pass_all
 
3761
  fi
 
3762
  ;;
 
3763
 
 
3764
gnu*)
 
3765
  lt_cv_deplibs_check_method=pass_all
 
3766
  ;;
 
3767
 
 
3768
hpux10.20* | hpux11*)
 
3769
  lt_cv_file_magic_cmd=/usr/bin/file
 
3770
  case $host_cpu in
 
3771
  ia64*)
 
3772
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
3773
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3774
    ;;
 
3775
  hppa*64*)
 
3776
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 
3777
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3778
    ;;
 
3779
  *)
 
3780
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3781
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3782
    ;;
 
3783
  esac
 
3784
  ;;
 
3785
 
 
3786
interix3*)
 
3787
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3788
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
3789
  ;;
 
3790
 
 
3791
irix5* | irix6* | nonstopux*)
 
3792
  case $LD in
 
3793
  *-32|*"-32 ") libmagic=32-bit;;
 
3794
  *-n32|*"-n32 ") libmagic=N32;;
 
3795
  *-64|*"-64 ") libmagic=64-bit;;
 
3796
  *) libmagic=never-match;;
 
3797
  esac
 
3798
  lt_cv_deplibs_check_method=pass_all
 
3799
  ;;
 
3800
 
 
3801
# This must be Linux ELF.
 
3802
linux*)
 
3803
  lt_cv_deplibs_check_method=pass_all
 
3804
  ;;
 
3805
 
 
3806
netbsd*)
 
3807
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3808
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3809
  else
 
3810
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 
3811
  fi
 
3812
  ;;
 
3813
 
 
3814
newos6*)
 
3815
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 
3816
  lt_cv_file_magic_cmd=/usr/bin/file
 
3817
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3818
  ;;
 
3819
 
 
3820
nto-qnx*)
 
3821
  lt_cv_deplibs_check_method=unknown
 
3822
  ;;
 
3823
 
 
3824
openbsd*)
 
3825
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3826
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 
3827
  else
 
3828
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 
3829
  fi
 
3830
  ;;
 
3831
 
 
3832
osf3* | osf4* | osf5*)
 
3833
  lt_cv_deplibs_check_method=pass_all
 
3834
  ;;
 
3835
 
 
3836
solaris*)
 
3837
  lt_cv_deplibs_check_method=pass_all
 
3838
  ;;
 
3839
 
 
3840
sysv4 | sysv4.3*)
 
3841
  case $host_vendor in
 
3842
  motorola)
 
3843
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 
3844
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3845
    ;;
 
3846
  ncr)
 
3847
    lt_cv_deplibs_check_method=pass_all
 
3848
    ;;
 
3849
  sequent)
 
3850
    lt_cv_file_magic_cmd='/bin/file'
 
3851
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 
3852
    ;;
 
3853
  sni)
 
3854
    lt_cv_file_magic_cmd='/bin/file'
 
3855
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 
3856
    lt_cv_file_magic_test_file=/lib/libc.so
 
3857
    ;;
 
3858
  siemens)
 
3859
    lt_cv_deplibs_check_method=pass_all
 
3860
    ;;
 
3861
  pc)
 
3862
    lt_cv_deplibs_check_method=pass_all
 
3863
    ;;
 
3864
  esac
 
3865
  ;;
 
3866
 
 
3867
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3868
  lt_cv_deplibs_check_method=pass_all
 
3869
  ;;
 
3870
esac
 
3871
])
 
3872
file_magic_cmd=$lt_cv_file_magic_cmd
 
3873
deplibs_check_method=$lt_cv_deplibs_check_method
 
3874
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3875
])# AC_DEPLIBS_CHECK_METHOD
 
3876
 
 
3877
 
 
3878
# AC_PROG_NM
 
3879
# ----------
 
3880
# find the pathname to a BSD-compatible name lister
 
3881
AC_DEFUN([AC_PROG_NM],
 
3882
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3883
[if test -n "$NM"; then
 
3884
  # Let the user override the test.
 
3885
  lt_cv_path_NM="$NM"
 
3886
else
 
3887
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3888
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
3889
    lt_nm_to_check="$lt_nm_to_check nm"
 
3890
  fi
 
3891
  for lt_tmp_nm in $lt_nm_to_check; do
 
3892
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3893
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3894
      IFS="$lt_save_ifs"
 
3895
      test -z "$ac_dir" && ac_dir=.
 
3896
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3897
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3898
        # Check to see if the nm accepts a BSD-compat flag.
 
3899
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3900
        #   nm: unknown option "B" ignored
 
3901
        # Tru64's nm complains that /dev/null is an invalid object file
 
3902
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3903
        */dev/null* | *'Invalid file or object type'*)
 
3904
          lt_cv_path_NM="$tmp_nm -B"
 
3905
          break
 
3906
          ;;
 
3907
        *)
 
3908
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3909
          */dev/null*)
 
3910
            lt_cv_path_NM="$tmp_nm -p"
 
3911
            break
 
3912
            ;;
 
3913
          *)
 
3914
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3915
            continue # so that we can try to find one that supports BSD flags
 
3916
            ;;
 
3917
          esac
 
3918
          ;;
 
3919
        esac
 
3920
      fi
 
3921
    done
 
3922
    IFS="$lt_save_ifs"
 
3923
  done
 
3924
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3925
fi])
 
3926
NM="$lt_cv_path_NM"
 
3927
])# AC_PROG_NM
 
3928
 
 
3929
 
 
3930
# AC_CHECK_LIBM
 
3931
# -------------
 
3932
# check for math library
 
3933
AC_DEFUN([AC_CHECK_LIBM],
 
3934
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3935
LIBM=
 
3936
case $host in
 
3937
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3938
  # These system don't have libm, or don't need it
 
3939
  ;;
 
3940
*-ncr-sysv4.3*)
 
3941
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 
3942
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 
3943
  ;;
 
3944
*)
 
3945
  AC_CHECK_LIB(m, cos, LIBM="-lm")
 
3946
  ;;
 
3947
esac
 
3948
])# AC_CHECK_LIBM
 
3949
 
 
3950
 
 
3951
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3952
# -----------------------------------
 
3953
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3954
# LTDLINCL to the include flags for the libltdl header and adds
 
3955
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3956
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3957
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3958
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3959
# (note the single quotes!).  If your package is not flat and you're not
 
3960
# using automake, define top_builddir and top_srcdir appropriately in
 
3961
# the Makefiles.
 
3962
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3963
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3964
  case $enable_ltdl_convenience in
 
3965
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3966
  "") enable_ltdl_convenience=yes
 
3967
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3968
  esac
 
3969
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3970
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3971
  # For backwards non-gettext consistent compatibility...
 
3972
  INCLTDL="$LTDLINCL"
 
3973
])# AC_LIBLTDL_CONVENIENCE
 
3974
 
 
3975
 
 
3976
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3977
# -----------------------------------
 
3978
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3979
# LTDLINCL to the include flags for the libltdl header and adds
 
3980
# --enable-ltdl-install to the configure arguments.  Note that
 
3981
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3982
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3983
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3984
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3985
# flat and you're not using automake, define top_builddir and top_srcdir
 
3986
# appropriately in the Makefiles.
 
3987
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3988
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3989
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3990
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3991
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3992
  [if test x"$enable_ltdl_install" = xno; then
 
3993
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3994
   else
 
3995
     enable_ltdl_install=yes
 
3996
   fi
 
3997
  ])
 
3998
  if test x"$enable_ltdl_install" = x"yes"; then
 
3999
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
4000
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
4001
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
4002
  else
 
4003
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
4004
    LIBLTDL="-lltdl"
 
4005
    LTDLINCL=
 
4006
  fi
 
4007
  # For backwards non-gettext consistent compatibility...
 
4008
  INCLTDL="$LTDLINCL"
 
4009
])# AC_LIBLTDL_INSTALLABLE
 
4010
 
 
4011
 
 
4012
# AC_LIBTOOL_CXX
 
4013
# --------------
 
4014
# enable support for C++ libraries
 
4015
AC_DEFUN([AC_LIBTOOL_CXX],
 
4016
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
4017
])# AC_LIBTOOL_CXX
 
4018
 
 
4019
 
 
4020
# _LT_AC_LANG_CXX
 
4021
# ---------------
 
4022
AC_DEFUN([_LT_AC_LANG_CXX],
 
4023
[AC_REQUIRE([AC_PROG_CXX])
 
4024
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
4025
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
4026
])# _LT_AC_LANG_CXX
 
4027
 
 
4028
# _LT_AC_PROG_CXXCPP
 
4029
# ------------------
 
4030
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
4031
[
 
4032
AC_REQUIRE([AC_PROG_CXX])
 
4033
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4034
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4035
    (test "X$CXX" != "Xg++"))) ; then
 
4036
  AC_PROG_CXXCPP
 
4037
fi
 
4038
])# _LT_AC_PROG_CXXCPP
 
4039
 
 
4040
# AC_LIBTOOL_F77
 
4041
# --------------
 
4042
# enable support for Fortran 77 libraries
 
4043
AC_DEFUN([AC_LIBTOOL_F77],
 
4044
[AC_REQUIRE([_LT_AC_LANG_F77])
 
4045
])# AC_LIBTOOL_F77
 
4046
 
 
4047
 
 
4048
# _LT_AC_LANG_F77
 
4049
# ---------------
 
4050
AC_DEFUN([_LT_AC_LANG_F77],
 
4051
[AC_REQUIRE([AC_PROG_F77])
 
4052
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
4053
])# _LT_AC_LANG_F77
 
4054
 
 
4055
 
 
4056
# AC_LIBTOOL_GCJ
 
4057
# --------------
 
4058
# enable support for GCJ libraries
 
4059
AC_DEFUN([AC_LIBTOOL_GCJ],
 
4060
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
4061
])# AC_LIBTOOL_GCJ
 
4062
 
 
4063
 
 
4064
# _LT_AC_LANG_GCJ
 
4065
# ---------------
 
4066
AC_DEFUN([_LT_AC_LANG_GCJ],
 
4067
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
4068
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
4069
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
4070
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
4071
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
4072
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
4073
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
4074
])# _LT_AC_LANG_GCJ
 
4075
 
 
4076
 
 
4077
# AC_LIBTOOL_RC
 
4078
# -------------
 
4079
# enable support for Windows resource files
 
4080
AC_DEFUN([AC_LIBTOOL_RC],
 
4081
[AC_REQUIRE([LT_AC_PROG_RC])
 
4082
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
4083
])# AC_LIBTOOL_RC
 
4084
 
 
4085
 
 
4086
# AC_LIBTOOL_LANG_C_CONFIG
 
4087
# ------------------------
 
4088
# Ensure that the configuration vars for the C compiler are
 
4089
# suitably defined.  Those variables are subsequently used by
 
4090
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4091
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
4092
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
4093
[lt_save_CC="$CC"
 
4094
AC_LANG_PUSH(C)
 
4095
 
 
4096
# Source file extension for C test sources.
 
4097
ac_ext=c
 
4098
 
 
4099
# Object file extension for compiled C test sources.
 
4100
objext=o
 
4101
_LT_AC_TAGVAR(objext, $1)=$objext
 
4102
 
 
4103
# Code to be used in simple compile tests
 
4104
lt_simple_compile_test_code="int some_variable = 0;\n"
 
4105
 
 
4106
# Code to be used in simple link tests
 
4107
lt_simple_link_test_code='int main(){return(0);}\n'
 
4108
 
 
4109
_LT_AC_SYS_COMPILER
 
4110
 
 
4111
# save warnings/boilerplate of simple test code
 
4112
_LT_COMPILER_BOILERPLATE
 
4113
_LT_LINKER_BOILERPLATE
 
4114
 
 
4115
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4116
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4117
AC_LIBTOOL_PROG_CC_C_O($1)
 
4118
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4119
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4120
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4121
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4122
AC_LIBTOOL_SYS_LIB_STRIP
 
4123
AC_LIBTOOL_DLOPEN_SELF
 
4124
 
 
4125
# Report which library types will actually be built
 
4126
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4127
AC_MSG_RESULT([$can_build_shared])
 
4128
 
 
4129
AC_MSG_CHECKING([whether to build shared libraries])
 
4130
test "$can_build_shared" = "no" && enable_shared=no
 
4131
 
 
4132
# On AIX, shared libraries and static libraries use the same namespace, and
 
4133
# are all built from PIC.
 
4134
case $host_os in
 
4135
aix3*)
 
4136
  test "$enable_shared" = yes && enable_static=no
 
4137
  if test -n "$RANLIB"; then
 
4138
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4139
    postinstall_cmds='$RANLIB $lib'
 
4140
  fi
 
4141
  ;;
 
4142
 
 
4143
aix4* | aix5*)
 
4144
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4145
    test "$enable_shared" = yes && enable_static=no
 
4146
  fi
 
4147
    ;;
 
4148
esac
 
4149
AC_MSG_RESULT([$enable_shared])
 
4150
 
 
4151
AC_MSG_CHECKING([whether to build static libraries])
 
4152
# Make sure either enable_shared or enable_static is yes.
 
4153
test "$enable_shared" = yes || enable_static=yes
 
4154
AC_MSG_RESULT([$enable_static])
 
4155
 
 
4156
AC_LIBTOOL_CONFIG($1)
 
4157
 
 
4158
AC_LANG_POP
 
4159
CC="$lt_save_CC"
 
4160
])# AC_LIBTOOL_LANG_C_CONFIG
 
4161
 
 
4162
 
 
4163
# AC_LIBTOOL_LANG_CXX_CONFIG
 
4164
# --------------------------
 
4165
# Ensure that the configuration vars for the C compiler are
 
4166
# suitably defined.  Those variables are subsequently used by
 
4167
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4168
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
4169
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
4170
[AC_LANG_PUSH(C++)
 
4171
AC_REQUIRE([AC_PROG_CXX])
 
4172
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
4173
 
 
4174
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4175
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4176
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4177
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4178
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4179
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4180
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4182
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4183
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4184
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4185
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4186
_LT_AC_TAGVAR(module_cmds, $1)=
 
4187
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4188
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4189
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4190
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4191
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4192
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4193
 
 
4194
# Dependencies to place before and after the object being linked:
 
4195
_LT_AC_TAGVAR(predep_objects, $1)=
 
4196
_LT_AC_TAGVAR(postdep_objects, $1)=
 
4197
_LT_AC_TAGVAR(predeps, $1)=
 
4198
_LT_AC_TAGVAR(postdeps, $1)=
 
4199
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
4200
 
 
4201
# Source file extension for C++ test sources.
 
4202
ac_ext=cpp
 
4203
 
 
4204
# Object file extension for compiled C++ test sources.
 
4205
objext=o
 
4206
_LT_AC_TAGVAR(objext, $1)=$objext
 
4207
 
 
4208
# Code to be used in simple compile tests
 
4209
lt_simple_compile_test_code="int some_variable = 0;\n"
 
4210
 
 
4211
# Code to be used in simple link tests
 
4212
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
4213
 
 
4214
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4215
_LT_AC_SYS_COMPILER
 
4216
 
 
4217
# save warnings/boilerplate of simple test code
 
4218
_LT_COMPILER_BOILERPLATE
 
4219
_LT_LINKER_BOILERPLATE
 
4220
 
 
4221
# Allow CC to be a program name with arguments.
 
4222
lt_save_CC=$CC
 
4223
lt_save_LD=$LD
 
4224
lt_save_GCC=$GCC
 
4225
GCC=$GXX
 
4226
lt_save_with_gnu_ld=$with_gnu_ld
 
4227
lt_save_path_LD=$lt_cv_path_LD
 
4228
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
4229
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
4230
else
 
4231
  $as_unset lt_cv_prog_gnu_ld
 
4232
fi
 
4233
if test -n "${lt_cv_path_LDCXX+set}"; then
 
4234
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
4235
else
 
4236
  $as_unset lt_cv_path_LD
 
4237
fi
 
4238
test -z "${LDCXX+set}" || LD=$LDCXX
 
4239
CC=${CXX-"c++"}
 
4240
compiler=$CC
 
4241
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4242
_LT_CC_BASENAME([$compiler])
 
4243
 
 
4244
# We don't want -fno-exception wen compiling C++ code, so set the
 
4245
# no_builtin_flag separately
 
4246
if test "$GXX" = yes; then
 
4247
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4248
else
 
4249
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4250
fi
 
4251
 
 
4252
if test "$GXX" = yes; then
 
4253
  # Set up default GNU C++ configuration
 
4254
 
 
4255
  AC_PROG_LD
 
4256
 
 
4257
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
4258
  # archiving commands below assume that GNU ld is being used.
 
4259
  if test "$with_gnu_ld" = yes; then
 
4260
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4261
    _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'
 
4262
 
 
4263
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4264
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4265
 
 
4266
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
4267
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
4268
    #     investigate it a little bit more. (MM)
 
4269
    wlarc='${wl}'
 
4270
 
 
4271
    # ancient GNU ld didn't support --whole-archive et. al.
 
4272
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
4273
        grep 'no-whole-archive' > /dev/null; then
 
4274
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4275
    else
 
4276
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4277
    fi
 
4278
  else
 
4279
    with_gnu_ld=no
 
4280
    wlarc=
 
4281
 
 
4282
    # A generic and very simple default shared library creation
 
4283
    # command for GNU C++ for the case where it uses the native
 
4284
    # linker, instead of GNU ld.  If possible, this setting should
 
4285
    # overridden to take advantage of the native linker features on
 
4286
    # the platform it is being used on.
 
4287
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4288
  fi
 
4289
 
 
4290
  # Commands to make compiler produce verbose output that lists
 
4291
  # what "hidden" libraries, object files and flags are used when
 
4292
  # linking a shared library.
 
4293
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4294
 
 
4295
else
 
4296
  GXX=no
 
4297
  with_gnu_ld=no
 
4298
  wlarc=
 
4299
fi
 
4300
 
 
4301
# PORTME: fill in a description of your system's C++ link characteristics
 
4302
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
4303
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4304
case $host_os in
 
4305
  aix3*)
 
4306
    # FIXME: insert proper C++ library support
 
4307
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4308
    ;;
 
4309
  aix4* | aix5*)
 
4310
    if test "$host_cpu" = ia64; then
 
4311
      # On IA64, the linker does run time linking by default, so we don't
 
4312
      # have to do anything special.
 
4313
      aix_use_runtimelinking=no
 
4314
      exp_sym_flag='-Bexport'
 
4315
      no_entry_flag=""
 
4316
    else
 
4317
      aix_use_runtimelinking=no
 
4318
 
 
4319
      # Test if we are trying to use run time linking or normal
 
4320
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
4321
      # need to do runtime linking.
 
4322
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
4323
        for ld_flag in $LDFLAGS; do
 
4324
          case $ld_flag in
 
4325
          *-brtl*)
 
4326
            aix_use_runtimelinking=yes
 
4327
            break
 
4328
            ;;
 
4329
          esac
 
4330
        done
 
4331
        ;;
 
4332
      esac
 
4333
 
 
4334
      exp_sym_flag='-bexport'
 
4335
      no_entry_flag='-bnoentry'
 
4336
    fi
 
4337
 
 
4338
    # When large executables or shared objects are built, AIX ld can
 
4339
    # have problems creating the table of contents.  If linking a library
 
4340
    # or program results in "error TOC overflow" add -mminimal-toc to
 
4341
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
4342
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
4343
 
 
4344
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
4345
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4346
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4347
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4348
 
 
4349
    if test "$GXX" = yes; then
 
4350
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
4351
      # We only want to do this on AIX 4.2 and lower, the check
 
4352
      # below for broken collect2 doesn't work under 4.3+
 
4353
        collect2name=`${CC} -print-prog-name=collect2`
 
4354
        if test -f "$collect2name" && \
 
4355
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4356
        then
 
4357
          # We have reworked collect2
 
4358
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4359
        else
 
4360
          # We have old collect2
 
4361
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4362
          # It fails to find uninstalled libraries when the uninstalled
 
4363
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4364
          # to unsupported forces relinking
 
4365
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4366
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4367
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4368
        fi
 
4369
        ;;
 
4370
      esac
 
4371
      shared_flag='-shared'
 
4372
      if test "$aix_use_runtimelinking" = yes; then
 
4373
        shared_flag="$shared_flag "'${wl}-G'
 
4374
      fi
 
4375
    else
 
4376
      # not using gcc
 
4377
      if test "$host_cpu" = ia64; then
 
4378
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4379
        # chokes on -Wl,-G. The following line is correct:
 
4380
        shared_flag='-G'
 
4381
      else
 
4382
        if test "$aix_use_runtimelinking" = yes; then
 
4383
          shared_flag='${wl}-G'
 
4384
        else
 
4385
          shared_flag='${wl}-bM:SRE'
 
4386
        fi
 
4387
      fi
 
4388
    fi
 
4389
 
 
4390
    # It seems that -bexpall does not export symbols beginning with
 
4391
    # underscore (_), so it is better to generate a list of symbols to export.
 
4392
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4393
    if test "$aix_use_runtimelinking" = yes; then
 
4394
      # Warning - without using the other runtime loading flags (-brtl),
 
4395
      # -berok will link without error, but may produce a broken library.
 
4396
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4397
      # Determine the default libpath from the value encoded in an empty executable.
 
4398
      _LT_AC_SYS_LIBPATH_AIX
 
4399
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4400
 
 
4401
      _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"
 
4402
     else
 
4403
      if test "$host_cpu" = ia64; then
 
4404
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4405
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4406
        _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"
 
4407
      else
 
4408
        # Determine the default libpath from the value encoded in an empty executable.
 
4409
        _LT_AC_SYS_LIBPATH_AIX
 
4410
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4411
        # Warning - without using the other run time loading flags,
 
4412
        # -berok will link without error, but may produce a broken library.
 
4413
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4414
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4415
        # Exported symbols can be pulled into shared objects from archives
 
4416
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4417
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4418
        # This is similar to how AIX traditionally builds its shared libraries.
 
4419
        _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'
 
4420
      fi
 
4421
    fi
 
4422
    ;;
 
4423
 
 
4424
  beos*)
 
4425
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4426
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4427
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
4428
      # support --undefined.  This deserves some investigation.  FIXME
 
4429
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4430
    else
 
4431
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4432
    fi
 
4433
    ;;
 
4434
 
 
4435
  chorus*)
 
4436
    case $cc_basename in
 
4437
      *)
 
4438
        # FIXME: insert proper C++ library support
 
4439
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4440
        ;;
 
4441
    esac
 
4442
    ;;
 
4443
 
 
4444
  cygwin* | mingw* | pw32*)
 
4445
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4446
    # as there is no search path for DLLs.
 
4447
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4448
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4449
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4450
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4451
 
 
4452
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
4453
      _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'
 
4454
      # If the export-symbols file already is a .def file (1st line
 
4455
      # is EXPORTS), use it as is; otherwise, prepend...
 
4456
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4457
        cp $export_symbols $output_objdir/$soname.def;
 
4458
      else
 
4459
        echo EXPORTS > $output_objdir/$soname.def;
 
4460
        cat $export_symbols >> $output_objdir/$soname.def;
 
4461
      fi~
 
4462
      $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'
 
4463
    else
 
4464
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4465
    fi
 
4466
  ;;
 
4467
      darwin* | rhapsody*)
 
4468
        case $host_os in
 
4469
        rhapsody* | darwin1.[[012]])
 
4470
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
4471
         ;;
 
4472
       *) # Darwin 1.3 on
 
4473
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
4474
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4475
         else
 
4476
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
4477
             10.[[012]])
 
4478
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4479
               ;;
 
4480
             10.*)
 
4481
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
4482
               ;;
 
4483
           esac
 
4484
         fi
 
4485
         ;;
 
4486
        esac
 
4487
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4488
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4489
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
4490
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4491
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
4492
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4493
 
 
4494
    if test "$GXX" = yes ; then
 
4495
      lt_int_apple_cc_single_mod=no
 
4496
      output_verbose_link_cmd='echo'
 
4497
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
4498
       lt_int_apple_cc_single_mod=yes
 
4499
      fi
 
4500
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4501
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4502
      else
 
4503
          _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'
 
4504
        fi
 
4505
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4506
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4507
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4508
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4509
          else
 
4510
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4511
          fi
 
4512
            _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}'
 
4513
      else
 
4514
      case $cc_basename in
 
4515
        xlc*)
 
4516
         output_verbose_link_cmd='echo'
 
4517
          _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` $verstring'
 
4518
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4519
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4520
          _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4521
          _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}'
 
4522
          ;;
 
4523
       *)
 
4524
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4525
          ;;
 
4526
      esac
 
4527
      fi
 
4528
        ;;
 
4529
 
 
4530
  dgux*)
 
4531
    case $cc_basename in
 
4532
      ec++*)
 
4533
        # FIXME: insert proper C++ library support
 
4534
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4535
        ;;
 
4536
      ghcx*)
 
4537
        # Green Hills C++ Compiler
 
4538
        # FIXME: insert proper C++ library support
 
4539
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4540
        ;;
 
4541
      *)
 
4542
        # FIXME: insert proper C++ library support
 
4543
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4544
        ;;
 
4545
    esac
 
4546
    ;;
 
4547
  freebsd[[12]]*)
 
4548
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
4549
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4550
    ;;
 
4551
  freebsd-elf*)
 
4552
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4553
    ;;
 
4554
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
4555
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
4556
    # conventions
 
4557
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4558
    ;;
 
4559
  gnu*)
 
4560
    ;;
 
4561
  hpux9*)
 
4562
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4563
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4564
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4565
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4566
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4567
                                # but as the default
 
4568
                                # location of the library.
 
4569
 
 
4570
    case $cc_basename in
 
4571
    CC*)
 
4572
      # FIXME: insert proper C++ library support
 
4573
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4574
      ;;
 
4575
    aCC*)
 
4576
      _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'
 
4577
      # Commands to make compiler produce verbose output that lists
 
4578
      # what "hidden" libraries, object files and flags are used when
 
4579
      # linking a shared library.
 
4580
      #
 
4581
      # There doesn't appear to be a way to prevent this compiler from
 
4582
      # explicitly linking system object files so we need to strip them
 
4583
      # from the output so that they don't get included in the library
 
4584
      # dependencies.
 
4585
      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'
 
4586
      ;;
 
4587
    *)
 
4588
      if test "$GXX" = yes; then
 
4589
        _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'
 
4590
      else
 
4591
        # FIXME: insert proper C++ library support
 
4592
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4593
      fi
 
4594
      ;;
 
4595
    esac
 
4596
    ;;
 
4597
  hpux10*|hpux11*)
 
4598
    if test $with_gnu_ld = no; then
 
4599
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4600
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4601
 
 
4602
      case $host_cpu in
 
4603
      hppa*64*|ia64*)
 
4604
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4605
        ;;
 
4606
      *)
 
4607
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4608
        ;;
 
4609
      esac
 
4610
    fi
 
4611
    case $host_cpu in
 
4612
    hppa*64*|ia64*)
 
4613
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4614
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4615
      ;;
 
4616
    *)
 
4617
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4618
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4619
                                              # but as the default
 
4620
                                              # location of the library.
 
4621
      ;;
 
4622
    esac
 
4623
 
 
4624
    case $cc_basename in
 
4625
      CC*)
 
4626
        # FIXME: insert proper C++ library support
 
4627
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4628
        ;;
 
4629
      aCC*)
 
4630
        case $host_cpu in
 
4631
        hppa*64*)
 
4632
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4633
          ;;
 
4634
        ia64*)
 
4635
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4636
          ;;
 
4637
        *)
 
4638
          _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'
 
4639
          ;;
 
4640
        esac
 
4641
        # Commands to make compiler produce verbose output that lists
 
4642
        # what "hidden" libraries, object files and flags are used when
 
4643
        # linking a shared library.
 
4644
        #
 
4645
        # There doesn't appear to be a way to prevent this compiler from
 
4646
        # explicitly linking system object files so we need to strip them
 
4647
        # from the output so that they don't get included in the library
 
4648
        # dependencies.
 
4649
        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'
 
4650
        ;;
 
4651
      *)
 
4652
        if test "$GXX" = yes; then
 
4653
          if test $with_gnu_ld = no; then
 
4654
            case $host_cpu in
 
4655
            hppa*64*)
 
4656
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4657
              ;;
 
4658
            ia64*)
 
4659
              _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'
 
4660
              ;;
 
4661
            *)
 
4662
              _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'
 
4663
              ;;
 
4664
            esac
 
4665
          fi
 
4666
        else
 
4667
          # FIXME: insert proper C++ library support
 
4668
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4669
        fi
 
4670
        ;;
 
4671
    esac
 
4672
    ;;
 
4673
  interix3*)
 
4674
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4675
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4676
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4677
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4678
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
4679
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
4680
    # default) and relocated if they conflict, which is a slow very memory
 
4681
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
4682
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
4683
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
4684
    _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'
 
4685
    _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'
 
4686
    ;;
 
4687
  irix5* | irix6*)
 
4688
    case $cc_basename in
 
4689
      CC*)
 
4690
        # SGI C++
 
4691
        _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'
 
4692
 
 
4693
        # Archives containing C++ object files must be created using
 
4694
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
4695
        # necessary to make sure instantiated templates are included
 
4696
        # in the archive.
 
4697
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
4698
        ;;
 
4699
      *)
 
4700
        if test "$GXX" = yes; then
 
4701
          if test "$with_gnu_ld" = no; then
 
4702
            _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'
 
4703
          else
 
4704
            _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'
 
4705
          fi
 
4706
        fi
 
4707
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4708
        ;;
 
4709
    esac
 
4710
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4711
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4712
    ;;
 
4713
  linux*)
 
4714
    case $cc_basename in
 
4715
      KCC*)
 
4716
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4717
 
 
4718
        # KCC will only create a shared library if the output file
 
4719
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4720
        # to its proper name (with version) after linking.
 
4721
        _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'
 
4722
        _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'
 
4723
        # Commands to make compiler produce verbose output that lists
 
4724
        # what "hidden" libraries, object files and flags are used when
 
4725
        # linking a shared library.
 
4726
        #
 
4727
        # There doesn't appear to be a way to prevent this compiler from
 
4728
        # explicitly linking system object files so we need to strip them
 
4729
        # from the output so that they don't get included in the library
 
4730
        # dependencies.
 
4731
        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'
 
4732
 
 
4733
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4734
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4735
 
 
4736
        # Archives containing C++ object files must be created using
 
4737
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4738
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4739
        ;;
 
4740
      icpc*)
 
4741
        # Intel C++
 
4742
        with_gnu_ld=yes
 
4743
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4744
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4745
        # earlier do not add the objects themselves.
 
4746
        case `$CC -V 2>&1` in
 
4747
        *"Version 7."*)
 
4748
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4749
          _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'
 
4750
          ;;
 
4751
        *)  # Version 8.0 or newer
 
4752
          tmp_idyn=
 
4753
          case $host_cpu in
 
4754
            ia64*) tmp_idyn=' -i_dynamic';;
 
4755
          esac
 
4756
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4757
          _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'
 
4758
          ;;
 
4759
        esac
 
4760
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4761
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4762
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4763
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4764
        ;;
 
4765
      pgCC*)
 
4766
        # Portland Group C++ compiler
 
4767
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4768
        _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'
 
4769
 
 
4770
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4771
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4772
        _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'
 
4773
        ;;
 
4774
      cxx*)
 
4775
        # Compaq C++
 
4776
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4777
        _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'
 
4778
 
 
4779
        runpath_var=LD_RUN_PATH
 
4780
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4781
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4782
 
 
4783
        # Commands to make compiler produce verbose output that lists
 
4784
        # what "hidden" libraries, object files and flags are used when
 
4785
        # linking a shared library.
 
4786
        #
 
4787
        # There doesn't appear to be a way to prevent this compiler from
 
4788
        # explicitly linking system object files so we need to strip them
 
4789
        # from the output so that they don't get included in the library
 
4790
        # dependencies.
 
4791
        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'
 
4792
        ;;
 
4793
    esac
 
4794
    ;;
 
4795
  lynxos*)
 
4796
    # FIXME: insert proper C++ library support
 
4797
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4798
    ;;
 
4799
  m88k*)
 
4800
    # FIXME: insert proper C++ library support
 
4801
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4802
    ;;
 
4803
  mvs*)
 
4804
    case $cc_basename in
 
4805
      cxx*)
 
4806
        # FIXME: insert proper C++ library support
 
4807
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4808
        ;;
 
4809
      *)
 
4810
        # FIXME: insert proper C++ library support
 
4811
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4812
        ;;
 
4813
    esac
 
4814
    ;;
 
4815
  netbsd*)
 
4816
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4817
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4818
      wlarc=
 
4819
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4820
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4821
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4822
    fi
 
4823
    # Workaround some broken pre-1.5 toolchains
 
4824
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4825
    ;;
 
4826
  openbsd2*)
 
4827
    # C++ shared libraries are fairly broken
 
4828
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4829
    ;;
 
4830
  openbsd*)
 
4831
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4832
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4833
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4834
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4835
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4836
      _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'
 
4837
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4838
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4839
    fi
 
4840
    output_verbose_link_cmd='echo'
 
4841
    ;;
 
4842
  osf3*)
 
4843
    case $cc_basename in
 
4844
      KCC*)
 
4845
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4846
 
 
4847
        # KCC will only create a shared library if the output file
 
4848
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4849
        # to its proper name (with version) after linking.
 
4850
        _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'
 
4851
 
 
4852
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4853
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4854
 
 
4855
        # Archives containing C++ object files must be created using
 
4856
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4857
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4858
 
 
4859
        ;;
 
4860
      RCC*)
 
4861
        # Rational C++ 2.4.1
 
4862
        # FIXME: insert proper C++ library support
 
4863
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4864
        ;;
 
4865
      cxx*)
 
4866
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4867
        _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'
 
4868
 
 
4869
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4870
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4871
 
 
4872
        # Commands to make compiler produce verbose output that lists
 
4873
        # what "hidden" libraries, object files and flags are used when
 
4874
        # linking a shared library.
 
4875
        #
 
4876
        # There doesn't appear to be a way to prevent this compiler from
 
4877
        # explicitly linking system object files so we need to strip them
 
4878
        # from the output so that they don't get included in the library
 
4879
        # dependencies.
 
4880
        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'
 
4881
        ;;
 
4882
      *)
 
4883
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4884
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4885
          _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'
 
4886
 
 
4887
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4888
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4889
 
 
4890
          # Commands to make compiler produce verbose output that lists
 
4891
          # what "hidden" libraries, object files and flags are used when
 
4892
          # linking a shared library.
 
4893
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4894
 
 
4895
        else
 
4896
          # FIXME: insert proper C++ library support
 
4897
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4898
        fi
 
4899
        ;;
 
4900
    esac
 
4901
    ;;
 
4902
  osf4* | osf5*)
 
4903
    case $cc_basename in
 
4904
      KCC*)
 
4905
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4906
 
 
4907
        # KCC will only create a shared library if the output file
 
4908
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4909
        # to its proper name (with version) after linking.
 
4910
        _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'
 
4911
 
 
4912
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4913
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4914
 
 
4915
        # Archives containing C++ object files must be created using
 
4916
        # the KAI C++ compiler.
 
4917
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4918
        ;;
 
4919
      RCC*)
 
4920
        # Rational C++ 2.4.1
 
4921
        # FIXME: insert proper C++ library support
 
4922
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4923
        ;;
 
4924
      cxx*)
 
4925
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4926
        _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'
 
4927
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4928
          echo "-hidden">> $lib.exp~
 
4929
          $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~
 
4930
          $rm $lib.exp'
 
4931
 
 
4932
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4933
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4934
 
 
4935
        # Commands to make compiler produce verbose output that lists
 
4936
        # what "hidden" libraries, object files and flags are used when
 
4937
        # linking a shared library.
 
4938
        #
 
4939
        # There doesn't appear to be a way to prevent this compiler from
 
4940
        # explicitly linking system object files so we need to strip them
 
4941
        # from the output so that they don't get included in the library
 
4942
        # dependencies.
 
4943
        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'
 
4944
        ;;
 
4945
      *)
 
4946
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4947
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4948
         _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'
 
4949
 
 
4950
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4951
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4952
 
 
4953
          # Commands to make compiler produce verbose output that lists
 
4954
          # what "hidden" libraries, object files and flags are used when
 
4955
          # linking a shared library.
 
4956
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4957
 
 
4958
        else
 
4959
          # FIXME: insert proper C++ library support
 
4960
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4961
        fi
 
4962
        ;;
 
4963
    esac
 
4964
    ;;
 
4965
  psos*)
 
4966
    # FIXME: insert proper C++ library support
 
4967
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4968
    ;;
 
4969
  sunos4*)
 
4970
    case $cc_basename in
 
4971
      CC*)
 
4972
        # Sun C++ 4.x
 
4973
        # FIXME: insert proper C++ library support
 
4974
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4975
        ;;
 
4976
      lcc*)
 
4977
        # Lucid
 
4978
        # FIXME: insert proper C++ library support
 
4979
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4980
        ;;
 
4981
      *)
 
4982
        # FIXME: insert proper C++ library support
 
4983
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4984
        ;;
 
4985
    esac
 
4986
    ;;
 
4987
  solaris*)
 
4988
    case $cc_basename in
 
4989
      CC*)
 
4990
        # Sun C++ 4.2, 5.x and Centerline C++
 
4991
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
4992
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4993
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4994
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4995
        $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'
 
4996
 
 
4997
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4998
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4999
        case $host_os in
 
5000
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
5001
          *)
 
5002
            # The C++ compiler is used as linker so we must use $wl
 
5003
            # flag to pass the commands to the underlying system
 
5004
            # linker. We must also pass each convience library through
 
5005
            # to the system linker between allextract/defaultextract.
 
5006
            # The C++ compiler will combine linker options so we
 
5007
            # cannot just pass the convience library names through
 
5008
            # without $wl.
 
5009
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5010
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
5011
            ;;
 
5012
        esac
 
5013
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5014
 
 
5015
        output_verbose_link_cmd='echo'
 
5016
 
 
5017
        # Archives containing C++ object files must be created using
 
5018
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
5019
        # necessary to make sure instantiated templates are included
 
5020
        # in the archive.
 
5021
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
5022
        ;;
 
5023
      gcx*)
 
5024
        # Green Hills C++ Compiler
 
5025
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5026
 
 
5027
        # The C++ compiler must be used to create the archive.
 
5028
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
5029
        ;;
 
5030
      *)
 
5031
        # GNU C++ compiler with Solaris linker
 
5032
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
5033
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
5034
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
5035
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5036
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5037
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
5038
 
 
5039
            # Commands to make compiler produce verbose output that lists
 
5040
            # what "hidden" libraries, object files and flags are used when
 
5041
            # linking a shared library.
 
5042
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
5043
          else
 
5044
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
5045
            # platform.
 
5046
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5047
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5048
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
5049
 
 
5050
            # Commands to make compiler produce verbose output that lists
 
5051
            # what "hidden" libraries, object files and flags are used when
 
5052
            # linking a shared library.
 
5053
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
5054
          fi
 
5055
 
 
5056
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
5057
        fi
 
5058
        ;;
 
5059
    esac
 
5060
    ;;
 
5061
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
5062
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5063
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5064
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5065
    runpath_var='LD_RUN_PATH'
 
5066
 
 
5067
    case $cc_basename in
 
5068
      CC*)
 
5069
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5070
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5071
        ;;
 
5072
      *)
 
5073
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5074
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5075
        ;;
 
5076
    esac
 
5077
    ;;
 
5078
  sysv5* | sco3.2v5* | sco5v6*)
 
5079
    # Note: We can NOT use -z defs as we might desire, because we do not
 
5080
    # link with -lc, and that would cause any symbols used from libc to
 
5081
    # always be unresolved, which means just about no library would
 
5082
    # ever link correctly.  If we're not using GNU ld we use -z text
 
5083
    # though, which does catch some bad symbols but isn't as heavy-handed
 
5084
    # as -z defs.
 
5085
    # For security reasons, it is highly recommended that you always
 
5086
    # use absolute paths for naming shared libraries, and exclude the
 
5087
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
5088
    # requires that you compile everything twice, which is a pain.
 
5089
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
5090
    # non-empty value in the environment.  Most likely only useful for
 
5091
    # creating official distributions of packages.
 
5092
    # This is a hack until libtool officially supports absolute path
 
5093
    # names for shared libraries.
 
5094
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5095
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5096
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5097
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5098
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
5099
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5100
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5101
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5102
    runpath_var='LD_RUN_PATH'
 
5103
 
 
5104
    case $cc_basename in
 
5105
      CC*)
 
5106
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5107
        _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'
 
5108
        ;;
 
5109
      *)
 
5110
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5111
        _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'
 
5112
        ;;
 
5113
    esac
 
5114
    ;;
 
5115
  tandem*)
 
5116
    case $cc_basename in
 
5117
      NCC*)
 
5118
        # NonStop-UX NCC 3.20
 
5119
        # FIXME: insert proper C++ library support
 
5120
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5121
        ;;
 
5122
      *)
 
5123
        # FIXME: insert proper C++ library support
 
5124
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5125
        ;;
 
5126
    esac
 
5127
    ;;
 
5128
  vxworks*)
 
5129
    # FIXME: insert proper C++ library support
 
5130
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5131
    ;;
 
5132
  *)
 
5133
    # FIXME: insert proper C++ library support
 
5134
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5135
    ;;
 
5136
esac
 
5137
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
5138
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5139
 
 
5140
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
5141
_LT_AC_TAGVAR(LD, $1)="$LD"
 
5142
 
 
5143
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
5144
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5145
AC_LIBTOOL_PROG_CC_C_O($1)
 
5146
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5147
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5148
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5149
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5150
 
 
5151
AC_LIBTOOL_CONFIG($1)
 
5152
 
 
5153
AC_LANG_POP
 
5154
CC=$lt_save_CC
 
5155
LDCXX=$LD
 
5156
LD=$lt_save_LD
 
5157
GCC=$lt_save_GCC
 
5158
with_gnu_ldcxx=$with_gnu_ld
 
5159
with_gnu_ld=$lt_save_with_gnu_ld
 
5160
lt_cv_path_LDCXX=$lt_cv_path_LD
 
5161
lt_cv_path_LD=$lt_save_path_LD
 
5162
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
5163
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
5164
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
5165
 
 
5166
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
5167
# ------------------------------------
 
5168
# Figure out "hidden" library dependencies from verbose
 
5169
# compiler output when linking a shared library.
 
5170
# Parse the compiler output and extract the necessary
 
5171
# objects, libraries and library flags.
 
5172
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
5173
dnl we can't use the lt_simple_compile_test_code here,
 
5174
dnl because it contains code intended for an executable,
 
5175
dnl not a library.  It's possible we should let each
 
5176
dnl tag define a new lt_????_link_test_code variable,
 
5177
dnl but it's only used here...
 
5178
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
5179
int a;
 
5180
void foo (void) { a = 0; }
 
5181
EOF
 
5182
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
5183
class Foo
 
5184
{
 
5185
public:
 
5186
  Foo (void) { a = 0; }
 
5187
private:
 
5188
  int a;
 
5189
};
 
5190
EOF
 
5191
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
5192
      subroutine foo
 
5193
      implicit none
 
5194
      integer*4 a
 
5195
      a=0
 
5196
      return
 
5197
      end
 
5198
EOF
 
5199
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
5200
public class foo {
 
5201
  private int a;
 
5202
  public void bar (void) {
 
5203
    a = 0;
 
5204
  }
 
5205
};
 
5206
EOF
 
5207
])
 
5208
dnl Parse the compiler output and extract the necessary
 
5209
dnl objects, libraries and library flags.
 
5210
if AC_TRY_EVAL(ac_compile); then
 
5211
  # Parse the compiler output and extract the necessary
 
5212
  # objects, libraries and library flags.
 
5213
 
 
5214
  # Sentinel used to keep track of whether or not we are before
 
5215
  # the conftest object file.
 
5216
  pre_test_object_deps_done=no
 
5217
 
 
5218
  # The `*' in the case matches for architectures that use `case' in
 
5219
  # $output_verbose_cmd can trigger glob expansion during the loop
 
5220
  # eval without this substitution.
 
5221
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
5222
 
 
5223
  for p in `eval $output_verbose_link_cmd`; do
 
5224
    case $p in
 
5225
 
 
5226
    -L* | -R* | -l*)
 
5227
       # Some compilers place space between "-{L,R}" and the path.
 
5228
       # Remove the space.
 
5229
       if test $p = "-L" \
 
5230
          || test $p = "-R"; then
 
5231
         prev=$p
 
5232
         continue
 
5233
       else
 
5234
         prev=
 
5235
       fi
 
5236
 
 
5237
       if test "$pre_test_object_deps_done" = no; then
 
5238
         case $p in
 
5239
         -L* | -R*)
 
5240
           # Internal compiler library paths should come after those
 
5241
           # provided the user.  The postdeps already come after the
 
5242
           # user supplied libs so there is no need to process them.
 
5243
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
5244
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
5245
           else
 
5246
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
5247
           fi
 
5248
           ;;
 
5249
         # The "-l" case would never come before the object being
 
5250
         # linked, so don't bother handling this case.
 
5251
         esac
 
5252
       else
 
5253
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
5254
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
5255
         else
 
5256
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
5257
         fi
 
5258
       fi
 
5259
       ;;
 
5260
 
 
5261
    *.$objext)
 
5262
       # This assumes that the test object file only shows up
 
5263
       # once in the compiler output.
 
5264
       if test "$p" = "conftest.$objext"; then
 
5265
         pre_test_object_deps_done=yes
 
5266
         continue
 
5267
       fi
 
5268
 
 
5269
       if test "$pre_test_object_deps_done" = no; then
 
5270
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
5271
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
5272
         else
 
5273
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
5274
         fi
 
5275
       else
 
5276
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
5277
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
5278
         else
 
5279
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
5280
         fi
 
5281
       fi
 
5282
       ;;
 
5283
 
 
5284
    *) ;; # Ignore the rest.
 
5285
 
 
5286
    esac
 
5287
  done
 
5288
 
 
5289
  # Clean up.
 
5290
  rm -f a.out a.exe
 
5291
else
 
5292
  echo "libtool.m4: error: problem compiling $1 test program"
 
5293
fi
 
5294
 
 
5295
$rm -f confest.$objext
 
5296
 
 
5297
# PORTME: override above test on systems where it is broken
 
5298
ifelse([$1],[CXX],
 
5299
[case $host_os in
 
5300
interix3*)
 
5301
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
5302
  # hack all around it, let's just trust "g++" to DTRT.
 
5303
  _LT_AC_TAGVAR(predep_objects,$1)=
 
5304
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
5305
  _LT_AC_TAGVAR(postdeps,$1)=
 
5306
  ;;
 
5307
 
 
5308
solaris*)
 
5309
  case $cc_basename in
 
5310
  CC*)
 
5311
    # Adding this requires a known-good setup of shared libraries for
 
5312
    # Sun compiler versions before 5.6, else PIC objects from an old
 
5313
    # archive will be linked into the output, leading to subtle bugs.
 
5314
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
5315
    ;;
 
5316
  esac
 
5317
  ;;
 
5318
esac
 
5319
])
 
5320
 
 
5321
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
5322
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
5323
esac
 
5324
])# AC_LIBTOOL_POSTDEP_PREDEP
 
5325
 
 
5326
# AC_LIBTOOL_LANG_F77_CONFIG
 
5327
# --------------------------
 
5328
# Ensure that the configuration vars for the C compiler are
 
5329
# suitably defined.  Those variables are subsequently used by
 
5330
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5331
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
5332
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
5333
[AC_REQUIRE([AC_PROG_F77])
 
5334
AC_LANG_PUSH(Fortran 77)
 
5335
 
 
5336
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5337
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
5338
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5339
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
5340
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5341
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5342
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5343
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5344
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5345
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5346
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5347
_LT_AC_TAGVAR(module_cmds, $1)=
 
5348
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
5349
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5350
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5351
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
5352
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5353
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5354
 
 
5355
# Source file extension for f77 test sources.
 
5356
ac_ext=f
 
5357
 
 
5358
# Object file extension for compiled f77 test sources.
 
5359
objext=o
 
5360
_LT_AC_TAGVAR(objext, $1)=$objext
 
5361
 
 
5362
# Code to be used in simple compile tests
 
5363
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
5364
 
 
5365
# Code to be used in simple link tests
 
5366
lt_simple_link_test_code="      program t\n      end\n"
 
5367
 
 
5368
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5369
_LT_AC_SYS_COMPILER
 
5370
 
 
5371
# save warnings/boilerplate of simple test code
 
5372
_LT_COMPILER_BOILERPLATE
 
5373
_LT_LINKER_BOILERPLATE
 
5374
 
 
5375
# Allow CC to be a program name with arguments.
 
5376
lt_save_CC="$CC"
 
5377
CC=${F77-"f77"}
 
5378
compiler=$CC
 
5379
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5380
_LT_CC_BASENAME([$compiler])
 
5381
 
 
5382
AC_MSG_CHECKING([if libtool supports shared libraries])
 
5383
AC_MSG_RESULT([$can_build_shared])
 
5384
 
 
5385
AC_MSG_CHECKING([whether to build shared libraries])
 
5386
test "$can_build_shared" = "no" && enable_shared=no
 
5387
 
 
5388
# On AIX, shared libraries and static libraries use the same namespace, and
 
5389
# are all built from PIC.
 
5390
case $host_os in
 
5391
aix3*)
 
5392
  test "$enable_shared" = yes && enable_static=no
 
5393
  if test -n "$RANLIB"; then
 
5394
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5395
    postinstall_cmds='$RANLIB $lib'
 
5396
  fi
 
5397
  ;;
 
5398
aix4* | aix5*)
 
5399
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5400
    test "$enable_shared" = yes && enable_static=no
 
5401
  fi
 
5402
  ;;
 
5403
esac
 
5404
AC_MSG_RESULT([$enable_shared])
 
5405
 
 
5406
AC_MSG_CHECKING([whether to build static libraries])
 
5407
# Make sure either enable_shared or enable_static is yes.
 
5408
test "$enable_shared" = yes || enable_static=yes
 
5409
AC_MSG_RESULT([$enable_static])
 
5410
 
 
5411
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
5412
_LT_AC_TAGVAR(LD, $1)="$LD"
 
5413
 
 
5414
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5415
AC_LIBTOOL_PROG_CC_C_O($1)
 
5416
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5417
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5418
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5419
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5420
 
 
5421
AC_LIBTOOL_CONFIG($1)
 
5422
 
 
5423
AC_LANG_POP
 
5424
CC="$lt_save_CC"
 
5425
])# AC_LIBTOOL_LANG_F77_CONFIG
 
5426
 
 
5427
 
 
5428
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5429
# --------------------------
 
5430
# Ensure that the configuration vars for the C compiler are
 
5431
# suitably defined.  Those variables are subsequently used by
 
5432
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5433
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
5434
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
5435
[AC_LANG_SAVE
 
5436
 
 
5437
# Source file extension for Java test sources.
 
5438
ac_ext=java
 
5439
 
 
5440
# Object file extension for compiled Java test sources.
 
5441
objext=o
 
5442
_LT_AC_TAGVAR(objext, $1)=$objext
 
5443
 
 
5444
# Code to be used in simple compile tests
 
5445
lt_simple_compile_test_code="class foo {}\n"
 
5446
 
 
5447
# Code to be used in simple link tests
 
5448
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
5449
 
 
5450
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5451
_LT_AC_SYS_COMPILER
 
5452
 
 
5453
# save warnings/boilerplate of simple test code
 
5454
_LT_COMPILER_BOILERPLATE
 
5455
_LT_LINKER_BOILERPLATE
 
5456
 
 
5457
# Allow CC to be a program name with arguments.
 
5458
lt_save_CC="$CC"
 
5459
CC=${GCJ-"gcj"}
 
5460
compiler=$CC
 
5461
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5462
_LT_CC_BASENAME([$compiler])
 
5463
 
 
5464
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
5465
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5466
 
 
5467
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5468
 
 
5469
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
5470
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5471
AC_LIBTOOL_PROG_CC_C_O($1)
 
5472
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5473
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5474
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5475
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5476
 
 
5477
AC_LIBTOOL_CONFIG($1)
 
5478
 
 
5479
AC_LANG_RESTORE
 
5480
CC="$lt_save_CC"
 
5481
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5482
 
 
5483
 
 
5484
# AC_LIBTOOL_LANG_RC_CONFIG
 
5485
# -------------------------
 
5486
# Ensure that the configuration vars for the Windows resource compiler are
 
5487
# suitably defined.  Those variables are subsequently used by
 
5488
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5489
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
5490
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
5491
[AC_LANG_SAVE
 
5492
 
 
5493
# Source file extension for RC test sources.
 
5494
ac_ext=rc
 
5495
 
 
5496
# Object file extension for compiled RC test sources.
 
5497
objext=o
 
5498
_LT_AC_TAGVAR(objext, $1)=$objext
 
5499
 
 
5500
# Code to be used in simple compile tests
 
5501
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
5502
 
 
5503
# Code to be used in simple link tests
 
5504
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
5505
 
 
5506
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5507
_LT_AC_SYS_COMPILER
 
5508
 
 
5509
# save warnings/boilerplate of simple test code
 
5510
_LT_COMPILER_BOILERPLATE
 
5511
_LT_LINKER_BOILERPLATE
 
5512
 
 
5513
# Allow CC to be a program name with arguments.
 
5514
lt_save_CC="$CC"
 
5515
CC=${RC-"windres"}
 
5516
compiler=$CC
 
5517
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5518
_LT_CC_BASENAME([$compiler])
 
5519
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
5520
 
 
5521
AC_LIBTOOL_CONFIG($1)
 
5522
 
 
5523
AC_LANG_RESTORE
 
5524
CC="$lt_save_CC"
 
5525
])# AC_LIBTOOL_LANG_RC_CONFIG
 
5526
 
 
5527
 
 
5528
# AC_LIBTOOL_CONFIG([TAGNAME])
 
5529
# ----------------------------
 
5530
# If TAGNAME is not passed, then create an initial libtool script
 
5531
# with a default configuration from the untagged config vars.  Otherwise
 
5532
# add code to config.status for appending the configuration named by
 
5533
# TAGNAME from the matching tagged config vars.
 
5534
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
5535
[# The else clause should only fire when bootstrapping the
 
5536
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
5537
# with your package, and you will get complaints that there are
 
5538
# no rules to generate ltmain.sh.
 
5539
if test -f "$ltmain"; then
 
5540
  # See if we are running on zsh, and set the options which allow our commands through
 
5541
  # without removal of \ escapes.
 
5542
  if test -n "${ZSH_VERSION+set}" ; then
 
5543
    setopt NO_GLOB_SUBST
 
5544
  fi
 
5545
  # Now quote all the things that may contain metacharacters while being
 
5546
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
5547
  # variables and quote the copies for generation of the libtool script.
 
5548
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
5549
    SED SHELL STRIP \
 
5550
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
5551
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
5552
    deplibs_check_method reload_flag reload_cmds need_locks \
 
5553
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
5554
    lt_cv_sys_global_symbol_to_c_name_address \
 
5555
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
5556
    old_postinstall_cmds old_postuninstall_cmds \
 
5557
    _LT_AC_TAGVAR(compiler, $1) \
 
5558
    _LT_AC_TAGVAR(CC, $1) \
 
5559
    _LT_AC_TAGVAR(LD, $1) \
 
5560
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
5561
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
5562
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
5563
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
5564
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
5565
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
5566
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
5567
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
5568
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
5569
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
5570
    _LT_AC_TAGVAR(predep_objects, $1) \
 
5571
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
5572
    _LT_AC_TAGVAR(predeps, $1) \
 
5573
    _LT_AC_TAGVAR(postdeps, $1) \
 
5574
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
5575
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
5576
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
5577
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
5578
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
5579
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
5580
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
5581
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
5582
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
5583
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
5584
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
5585
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
5586
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
5587
    _LT_AC_TAGVAR(module_cmds, $1) \
 
5588
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
5589
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
5590
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
5591
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
5592
 
 
5593
    case $var in
 
5594
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
5595
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
5596
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
5597
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
5598
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
5599
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
5600
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
5601
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
5602
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
5603
    postinstall_cmds | postuninstall_cmds | \
 
5604
    old_postinstall_cmds | old_postuninstall_cmds | \
 
5605
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
5606
      # Double-quote double-evaled strings.
 
5607
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
5608
      ;;
 
5609
    *)
 
5610
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
5611
      ;;
 
5612
    esac
 
5613
  done
 
5614
 
 
5615
  case $lt_echo in
 
5616
  *'\[$]0 --fallback-echo"')
 
5617
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
5618
    ;;
 
5619
  esac
 
5620
 
 
5621
ifelse([$1], [],
 
5622
  [cfgfile="${ofile}T"
 
5623
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
5624
  $rm -f "$cfgfile"
 
5625
  AC_MSG_NOTICE([creating $ofile])],
 
5626
  [cfgfile="$ofile"])
 
5627
 
 
5628
  cat <<__EOF__ >> "$cfgfile"
 
5629
ifelse([$1], [],
 
5630
[#! $SHELL
 
5631
 
 
5632
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
5633
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
5634
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
5635
#
 
5636
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5637
# Free Software Foundation, Inc.
 
5638
#
 
5639
# This file is part of GNU Libtool:
 
5640
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
5641
#
 
5642
# This program is free software; you can redistribute it and/or modify
 
5643
# it under the terms of the GNU General Public License as published by
 
5644
# the Free Software Foundation; either version 2 of the License, or
 
5645
# (at your option) any later version.
 
5646
#
 
5647
# This program is distributed in the hope that it will be useful, but
 
5648
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
5649
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
5650
# General Public License for more details.
 
5651
#
 
5652
# You should have received a copy of the GNU General Public License
 
5653
# along with this program; if not, write to the Free Software
 
5654
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
5655
#
 
5656
# As a special exception to the GNU General Public License, if you
 
5657
# distribute this file as part of a program that contains a
 
5658
# configuration script generated by Autoconf, you may include it under
 
5659
# the same distribution terms that you use for the rest of that program.
 
5660
 
 
5661
# A sed program that does not truncate output.
 
5662
SED=$lt_SED
 
5663
 
 
5664
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
5665
Xsed="$SED -e 1s/^X//"
 
5666
 
 
5667
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
5668
# if CDPATH is set.
 
5669
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5670
 
 
5671
# The names of the tagged configurations supported by this script.
 
5672
available_tags=
 
5673
 
 
5674
# ### BEGIN LIBTOOL CONFIG],
 
5675
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
5676
 
 
5677
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5678
 
 
5679
# Shell to use when invoking shell scripts.
 
5680
SHELL=$lt_SHELL
 
5681
 
 
5682
# Whether or not to build shared libraries.
 
5683
build_libtool_libs=$enable_shared
 
5684
 
 
5685
# Whether or not to build static libraries.
 
5686
build_old_libs=$enable_static
 
5687
 
 
5688
# Whether or not to add -lc for building shared libraries.
 
5689
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
5690
 
 
5691
# Whether or not to disallow shared libs when runtime libs are static
 
5692
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
5693
 
 
5694
# Whether or not to optimize for fast installation.
 
5695
fast_install=$enable_fast_install
 
5696
 
 
5697
# The host system.
 
5698
host_alias=$host_alias
 
5699
host=$host
 
5700
host_os=$host_os
 
5701
 
 
5702
# The build system.
 
5703
build_alias=$build_alias
 
5704
build=$build
 
5705
build_os=$build_os
 
5706
 
 
5707
# An echo program that does not interpret backslashes.
 
5708
echo=$lt_echo
 
5709
 
 
5710
# The archiver.
 
5711
AR=$lt_AR
 
5712
AR_FLAGS=$lt_AR_FLAGS
 
5713
 
 
5714
# A C compiler.
 
5715
LTCC=$lt_LTCC
 
5716
 
 
5717
# LTCC compiler flags.
 
5718
LTCFLAGS=$lt_LTCFLAGS
 
5719
 
 
5720
# A language-specific compiler.
 
5721
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
5722
 
 
5723
# Is the compiler the GNU C compiler?
 
5724
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
5725
 
 
5726
# An ERE matcher.
 
5727
EGREP=$lt_EGREP
 
5728
 
 
5729
# The linker used to build libraries.
 
5730
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
5731
 
 
5732
# Whether we need hard or soft links.
 
5733
LN_S=$lt_LN_S
 
5734
 
 
5735
# A BSD-compatible nm program.
 
5736
NM=$lt_NM
 
5737
 
 
5738
# A symbol stripping program
 
5739
STRIP=$lt_STRIP
 
5740
 
 
5741
# Used to examine libraries when file_magic_cmd begins "file"
 
5742
MAGIC_CMD=$MAGIC_CMD
 
5743
 
 
5744
# Used on cygwin: DLL creation program.
 
5745
DLLTOOL="$DLLTOOL"
 
5746
 
 
5747
# Used on cygwin: object dumper.
 
5748
OBJDUMP="$OBJDUMP"
 
5749
 
 
5750
# Used on cygwin: assembler.
 
5751
AS="$AS"
 
5752
 
 
5753
# The name of the directory that contains temporary libtool files.
 
5754
objdir=$objdir
 
5755
 
 
5756
# How to create reloadable object files.
 
5757
reload_flag=$lt_reload_flag
 
5758
reload_cmds=$lt_reload_cmds
 
5759
 
 
5760
# How to pass a linker flag through the compiler.
 
5761
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5762
 
 
5763
# Object file suffix (normally "o").
 
5764
objext="$ac_objext"
 
5765
 
 
5766
# Old archive suffix (normally "a").
 
5767
libext="$libext"
 
5768
 
 
5769
# Shared library suffix (normally ".so").
 
5770
shrext_cmds='$shrext_cmds'
 
5771
 
 
5772
# Executable file suffix (normally "").
 
5773
exeext="$exeext"
 
5774
 
 
5775
# Additional compiler flags for building library objects.
 
5776
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5777
pic_mode=$pic_mode
 
5778
 
 
5779
# What is the maximum length of a command?
 
5780
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5781
 
 
5782
# Does compiler simultaneously support -c and -o options?
 
5783
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5784
 
 
5785
# Must we lock files when doing compilation?
 
5786
need_locks=$lt_need_locks
 
5787
 
 
5788
# Do we need the lib prefix for modules?
 
5789
need_lib_prefix=$need_lib_prefix
 
5790
 
 
5791
# Do we need a version for libraries?
 
5792
need_version=$need_version
 
5793
 
 
5794
# Whether dlopen is supported.
 
5795
dlopen_support=$enable_dlopen
 
5796
 
 
5797
# Whether dlopen of programs is supported.
 
5798
dlopen_self=$enable_dlopen_self
 
5799
 
 
5800
# Whether dlopen of statically linked programs is supported.
 
5801
dlopen_self_static=$enable_dlopen_self_static
 
5802
 
 
5803
# Compiler flag to prevent dynamic linking.
 
5804
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5805
 
 
5806
# Compiler flag to turn off builtin functions.
 
5807
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5808
 
 
5809
# Compiler flag to allow reflexive dlopens.
 
5810
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5811
 
 
5812
# Compiler flag to generate shared objects directly from archives.
 
5813
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5814
 
 
5815
# Compiler flag to generate thread-safe objects.
 
5816
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5817
 
 
5818
# Library versioning type.
 
5819
version_type=$version_type
 
5820
 
 
5821
# Format of library name prefix.
 
5822
libname_spec=$lt_libname_spec
 
5823
 
 
5824
# List of archive names.  First name is the real one, the rest are links.
 
5825
# The last name is the one that the linker finds with -lNAME.
 
5826
library_names_spec=$lt_library_names_spec
 
5827
 
 
5828
# The coded name of the library, if different from the real name.
 
5829
soname_spec=$lt_soname_spec
 
5830
 
 
5831
# Commands used to build and install an old-style archive.
 
5832
RANLIB=$lt_RANLIB
 
5833
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5834
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5836
 
 
5837
# Create an old-style archive from a shared archive.
 
5838
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5839
 
 
5840
# Create a temporary old-style archive to link instead of a shared archive.
 
5841
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5842
 
 
5843
# Commands used to build and install a shared archive.
 
5844
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5845
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5846
postinstall_cmds=$lt_postinstall_cmds
 
5847
postuninstall_cmds=$lt_postuninstall_cmds
 
5848
 
 
5849
# Commands used to build a loadable module (assumed same as above if empty)
 
5850
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5851
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5852
 
 
5853
# Commands to strip libraries.
 
5854
old_striplib=$lt_old_striplib
 
5855
striplib=$lt_striplib
 
5856
 
 
5857
# Dependencies to place before the objects being linked to create a
 
5858
# shared library.
 
5859
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5860
 
 
5861
# Dependencies to place after the objects being linked to create a
 
5862
# shared library.
 
5863
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5864
 
 
5865
# Dependencies to place before the objects being linked to create a
 
5866
# shared library.
 
5867
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5868
 
 
5869
# Dependencies to place after the objects being linked to create a
 
5870
# shared library.
 
5871
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5872
 
 
5873
# The library search path used internally by the compiler when linking
 
5874
# a shared library.
 
5875
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5876
 
 
5877
# Method to check whether dependent libraries are shared objects.
 
5878
deplibs_check_method=$lt_deplibs_check_method
 
5879
 
 
5880
# Command to use when deplibs_check_method == file_magic.
 
5881
file_magic_cmd=$lt_file_magic_cmd
 
5882
 
 
5883
# Flag that allows shared libraries with undefined symbols to be built.
 
5884
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5885
 
 
5886
# Flag that forces no undefined symbols.
 
5887
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5888
 
 
5889
# Commands used to finish a libtool library installation in a directory.
 
5890
finish_cmds=$lt_finish_cmds
 
5891
 
 
5892
# Same as above, but a single script fragment to be evaled but not shown.
 
5893
finish_eval=$lt_finish_eval
 
5894
 
 
5895
# Take the output of nm and produce a listing of raw symbols and C names.
 
5896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5897
 
 
5898
# Transform the output of nm in a proper C declaration
 
5899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5900
 
 
5901
# Transform the output of nm in a C name address pair
 
5902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5903
 
 
5904
# This is the shared library runtime path variable.
 
5905
runpath_var=$runpath_var
 
5906
 
 
5907
# This is the shared library path variable.
 
5908
shlibpath_var=$shlibpath_var
 
5909
 
 
5910
# Is shlibpath searched before the hard-coded library search path?
 
5911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5912
 
 
5913
# How to hardcode a shared library path into an executable.
 
5914
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5915
 
 
5916
# Whether we should hardcode library paths into libraries.
 
5917
hardcode_into_libs=$hardcode_into_libs
 
5918
 
 
5919
# Flag to hardcode \$libdir into a binary during linking.
 
5920
# This must work even if \$libdir does not exist.
 
5921
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5922
 
 
5923
# If ld is used when linking, flag to hardcode \$libdir into
 
5924
# a binary during linking. This must work even if \$libdir does
 
5925
# not exist.
 
5926
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5927
 
 
5928
# Whether we need a single -rpath flag with a separated argument.
 
5929
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5930
 
 
5931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5932
# resulting binary.
 
5933
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5934
 
 
5935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5936
# resulting binary.
 
5937
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5938
 
 
5939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5940
# the resulting binary.
 
5941
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5942
 
 
5943
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5944
# and all subsequent libraries and executables linked against it.
 
5945
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5946
 
 
5947
# Variables whose values should be saved in libtool wrapper scripts and
 
5948
# restored at relink time.
 
5949
variables_saved_for_relink="$variables_saved_for_relink"
 
5950
 
 
5951
# Whether libtool must link a program against all its dependency libraries.
 
5952
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5953
 
 
5954
# Compile-time system search path for libraries
 
5955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5956
 
 
5957
# Run-time system search path for libraries
 
5958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5959
 
 
5960
# Fix the shell variable \$srcfile for the compiler.
 
5961
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5962
 
 
5963
# Set to yes if exported symbols are required.
 
5964
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5965
 
 
5966
# The commands to list exported symbols.
 
5967
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5968
 
 
5969
# The commands to extract the exported symbol list from a shared archive.
 
5970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5971
 
 
5972
# Symbols that should not be listed in the preloaded symbols.
 
5973
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5974
 
 
5975
# Symbols that must always be exported.
 
5976
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5977
 
 
5978
ifelse([$1],[],
 
5979
[# ### END LIBTOOL CONFIG],
 
5980
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5981
 
 
5982
__EOF__
 
5983
 
 
5984
ifelse([$1],[], [
 
5985
  case $host_os in
 
5986
  aix3*)
 
5987
    cat <<\EOF >> "$cfgfile"
 
5988
 
 
5989
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5990
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5991
# vanish in a puff of smoke.
 
5992
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5993
  COLLECT_NAMES=
 
5994
  export COLLECT_NAMES
 
5995
fi
 
5996
EOF
 
5997
    ;;
 
5998
  esac
 
5999
 
 
6000
  # We use sed instead of cat because bash on DJGPP gets confused if
 
6001
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
6002
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
6003
  # is reportedly fixed, but why not run on old versions too?
 
6004
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
6005
 
 
6006
  mv -f "$cfgfile" "$ofile" || \
 
6007
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
6008
  chmod +x "$ofile"
 
6009
])
 
6010
else
 
6011
  # If there is no Makefile yet, we rely on a make rule to execute
 
6012
  # `config.status --recheck' to rerun these tests and create the
 
6013
  # libtool script then.
 
6014
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
6015
  if test -f "$ltmain_in"; then
 
6016
    test -f Makefile && make "$ltmain"
 
6017
  fi
 
6018
fi
 
6019
])# AC_LIBTOOL_CONFIG
 
6020
 
 
6021
 
 
6022
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
6023
# -------------------------------------------
 
6024
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
6025
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
6026
 
 
6027
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6028
 
 
6029
if test "$GCC" = yes; then
 
6030
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6031
 
 
6032
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
6033
    lt_cv_prog_compiler_rtti_exceptions,
 
6034
    [-fno-rtti -fno-exceptions], [],
 
6035
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
6036
fi
 
6037
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
6038
 
 
6039
 
 
6040
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
6041
# ---------------------------------
 
6042
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
6043
[AC_REQUIRE([AC_CANONICAL_HOST])
 
6044
AC_REQUIRE([AC_PROG_NM])
 
6045
AC_REQUIRE([AC_OBJEXT])
 
6046
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6047
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
6048
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
6049
[
 
6050
# These are sane defaults that work on at least a few old systems.
 
6051
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6052
 
 
6053
# Character class describing NM global symbol codes.
 
6054
symcode='[[BCDEGRST]]'
 
6055
 
 
6056
# Regexp to match symbols that can be accessed directly from C.
 
6057
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
6058
 
 
6059
# Transform an extracted symbol line into a proper C declaration
 
6060
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6061
 
 
6062
# Transform an extracted symbol line into symbol name and symbol address
 
6063
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'"
 
6064
 
 
6065
# Define system-specific variables.
 
6066
case $host_os in
 
6067
aix*)
 
6068
  symcode='[[BCDT]]'
 
6069
  ;;
 
6070
cygwin* | mingw* | pw32*)
 
6071
  symcode='[[ABCDGISTW]]'
 
6072
  ;;
 
6073
hpux*) # Its linker distinguishes data from code symbols
 
6074
  if test "$host_cpu" = ia64; then
 
6075
    symcode='[[ABCDEGRST]]'
 
6076
  fi
 
6077
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6078
  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'"
 
6079
  ;;
 
6080
linux*)
 
6081
  if test "$host_cpu" = ia64; then
 
6082
    symcode='[[ABCDGIRSTW]]'
 
6083
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6084
    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'"
 
6085
  fi
 
6086
  ;;
 
6087
irix* | nonstopux*)
 
6088
  symcode='[[BCDEGRST]]'
 
6089
  ;;
 
6090
osf*)
 
6091
  symcode='[[BCDEGQRST]]'
 
6092
  ;;
 
6093
solaris*)
 
6094
  symcode='[[BDRT]]'
 
6095
  ;;
 
6096
sco3.2v5*)
 
6097
  symcode='[[DT]]'
 
6098
  ;;
 
6099
sysv4.2uw2*)
 
6100
  symcode='[[DT]]'
 
6101
  ;;
 
6102
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6103
  symcode='[[ABDT]]'
 
6104
  ;;
 
6105
sysv4)
 
6106
  symcode='[[DFNSTU]]'
 
6107
  ;;
 
6108
esac
 
6109
 
 
6110
# Handle CRLF in mingw tool chain
 
6111
opt_cr=
 
6112
case $build_os in
 
6113
mingw*)
 
6114
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6115
  ;;
 
6116
esac
 
6117
 
 
6118
# If we're using GNU nm, then use its standard symbol codes.
 
6119
case `$NM -V 2>&1` in
 
6120
*GNU* | *'with BFD'*)
 
6121
  symcode='[[ABCDGIRSTW]]' ;;
 
6122
esac
 
6123
 
 
6124
# Try without a prefix undercore, then with it.
 
6125
for ac_symprfx in "" "_"; do
 
6126
 
 
6127
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6128
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6129
 
 
6130
  # Write the raw and C identifiers.
 
6131
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6132
 
 
6133
  # Check to see that the pipe works correctly.
 
6134
  pipe_works=no
 
6135
 
 
6136
  rm -f conftest*
 
6137
  cat > conftest.$ac_ext <<EOF
 
6138
#ifdef __cplusplus
 
6139
extern "C" {
 
6140
#endif
 
6141
char nm_test_var;
 
6142
void nm_test_func(){}
 
6143
#ifdef __cplusplus
 
6144
}
 
6145
#endif
 
6146
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6147
EOF
 
6148
 
 
6149
  if AC_TRY_EVAL(ac_compile); then
 
6150
    # Now try to grab the symbols.
 
6151
    nlist=conftest.nm
 
6152
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
6153
      # Try sorting and uniquifying the output.
 
6154
      if sort "$nlist" | uniq > "$nlist"T; then
 
6155
        mv -f "$nlist"T "$nlist"
 
6156
      else
 
6157
        rm -f "$nlist"T
 
6158
      fi
 
6159
 
 
6160
      # Make sure that we snagged all the symbols we need.
 
6161
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6162
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6163
          cat <<EOF > conftest.$ac_ext
 
6164
#ifdef __cplusplus
 
6165
extern "C" {
 
6166
#endif
 
6167
 
 
6168
EOF
 
6169
          # Now generate the symbol file.
 
6170
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6171
 
 
6172
          cat <<EOF >> conftest.$ac_ext
 
6173
#if defined (__STDC__) && __STDC__
 
6174
# define lt_ptr_t void *
 
6175
#else
 
6176
# define lt_ptr_t char *
 
6177
# define const
 
6178
#endif
 
6179
 
 
6180
/* The mapping between symbol names and symbols. */
 
6181
const struct {
 
6182
  const char *name;
 
6183
  lt_ptr_t address;
 
6184
}
 
6185
lt_preloaded_symbols[[]] =
 
6186
{
 
6187
EOF
 
6188
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6189
          cat <<\EOF >> conftest.$ac_ext
 
6190
  {0, (lt_ptr_t) 0}
 
6191
};
 
6192
 
 
6193
#ifdef __cplusplus
 
6194
}
 
6195
#endif
 
6196
EOF
 
6197
          # Now try linking the two files.
 
6198
          mv conftest.$ac_objext conftstm.$ac_objext
 
6199
          lt_save_LIBS="$LIBS"
 
6200
          lt_save_CFLAGS="$CFLAGS"
 
6201
          LIBS="conftstm.$ac_objext"
 
6202
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
6203
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
6204
            pipe_works=yes
 
6205
          fi
 
6206
          LIBS="$lt_save_LIBS"
 
6207
          CFLAGS="$lt_save_CFLAGS"
 
6208
        else
 
6209
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
6210
        fi
 
6211
      else
 
6212
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
6213
      fi
 
6214
    else
 
6215
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
6216
    fi
 
6217
  else
 
6218
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
6219
    cat conftest.$ac_ext >&5
 
6220
  fi
 
6221
  rm -f conftest* conftst*
 
6222
 
 
6223
  # Do not use the global_symbol_pipe unless it works.
 
6224
  if test "$pipe_works" = yes; then
 
6225
    break
 
6226
  else
 
6227
    lt_cv_sys_global_symbol_pipe=
 
6228
  fi
 
6229
done
 
6230
])
 
6231
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6232
  lt_cv_sys_global_symbol_to_cdecl=
 
6233
fi
 
6234
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6235
  AC_MSG_RESULT(failed)
 
6236
else
 
6237
  AC_MSG_RESULT(ok)
 
6238
fi
 
6239
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
6240
 
 
6241
 
 
6242
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
6243
# ---------------------------------------
 
6244
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
6245
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
6246
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6247
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
6248
 
 
6249
AC_MSG_CHECKING([for $compiler option to produce PIC])
 
6250
 ifelse([$1],[CXX],[
 
6251
  # C++ specific cases for pic, static, wl, etc.
 
6252
  if test "$GXX" = yes; then
 
6253
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6254
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6255
 
 
6256
    case $host_os in
 
6257
    aix*)
 
6258
      # All AIX code is PIC.
 
6259
      if test "$host_cpu" = ia64; then
 
6260
        # AIX 5 now supports IA64 processor
 
6261
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6262
      fi
 
6263
      ;;
 
6264
    amigaos*)
 
6265
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6266
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6267
      # like `-m68040'.
 
6268
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6269
      ;;
 
6270
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6271
      # PIC is the default for these OSes.
 
6272
      ;;
 
6273
    mingw* | os2* | pw32*)
 
6274
      # This hack is so that the source file can tell whether it is being
 
6275
      # built for inclusion in a dll (and should export symbols for example).
 
6276
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6277
      ;;
 
6278
    darwin* | rhapsody*)
 
6279
      # PIC is the default on this platform
 
6280
      # Common symbols not allowed in MH_DYLIB files
 
6281
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6282
      ;;
 
6283
    *djgpp*)
 
6284
      # DJGPP does not support shared libraries at all
 
6285
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6286
      ;;
 
6287
    interix3*)
 
6288
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6289
      # Instead, we relocate shared libraries at runtime.
 
6290
      ;;
 
6291
    sysv4*MP*)
 
6292
      if test -d /usr/nec; then
 
6293
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6294
      fi
 
6295
      ;;
 
6296
    hpux*)
 
6297
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6298
      # not for PA HP-UX.
 
6299
      case $host_cpu in
 
6300
      hppa*64*|ia64*)
 
6301
        ;;
 
6302
      *)
 
6303
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6304
        ;;
 
6305
      esac
 
6306
      ;;
 
6307
    *)
 
6308
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6309
      ;;
 
6310
    esac
 
6311
  else
 
6312
    case $host_os in
 
6313
      aix4* | aix5*)
 
6314
        # All AIX code is PIC.
 
6315
        if test "$host_cpu" = ia64; then
 
6316
          # AIX 5 now supports IA64 processor
 
6317
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6318
        else
 
6319
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6320
        fi
 
6321
        ;;
 
6322
      chorus*)
 
6323
        case $cc_basename in
 
6324
        cxch68*)
 
6325
          # Green Hills C++ Compiler
 
6326
          # _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"
 
6327
          ;;
 
6328
        esac
 
6329
        ;;
 
6330
       darwin*)
 
6331
         # PIC is the default on this platform
 
6332
         # Common symbols not allowed in MH_DYLIB files
 
6333
         case $cc_basename in
 
6334
           xlc*)
 
6335
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6336
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6337
           ;;
 
6338
         esac
 
6339
       ;;
 
6340
      dgux*)
 
6341
        case $cc_basename in
 
6342
          ec++*)
 
6343
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6344
            ;;
 
6345
          ghcx*)
 
6346
            # Green Hills C++ Compiler
 
6347
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6348
            ;;
 
6349
          *)
 
6350
            ;;
 
6351
        esac
 
6352
        ;;
 
6353
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
6354
        # FreeBSD uses GNU C++
 
6355
        ;;
 
6356
      hpux9* | hpux10* | hpux11*)
 
6357
        case $cc_basename in
 
6358
          CC*)
 
6359
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6360
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6361
            if test "$host_cpu" != ia64; then
 
6362
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6363
            fi
 
6364
            ;;
 
6365
          aCC*)
 
6366
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6367
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6368
            case $host_cpu in
 
6369
            hppa*64*|ia64*)
 
6370
              # +Z the default
 
6371
              ;;
 
6372
            *)
 
6373
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6374
              ;;
 
6375
            esac
 
6376
            ;;
 
6377
          *)
 
6378
            ;;
 
6379
        esac
 
6380
        ;;
 
6381
      interix*)
 
6382
        # This is c89, which is MS Visual C++ (no shared libs)
 
6383
        # Anyone wants to do a port?
 
6384
        ;;
 
6385
      irix5* | irix6* | nonstopux*)
 
6386
        case $cc_basename in
 
6387
          CC*)
 
6388
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6389
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6390
            # CC pic flag -KPIC is the default.
 
6391
            ;;
 
6392
          *)
 
6393
            ;;
 
6394
        esac
 
6395
        ;;
 
6396
      linux*)
 
6397
        case $cc_basename in
 
6398
          KCC*)
 
6399
            # KAI C++ Compiler
 
6400
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6401
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6402
            ;;
 
6403
          icpc* | ecpc*)
 
6404
            # Intel C++
 
6405
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6406
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6407
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6408
            ;;
 
6409
          pgCC*)
 
6410
            # Portland Group C++ compiler.
 
6411
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6412
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6413
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6414
            ;;
 
6415
          cxx*)
 
6416
            # Compaq C++
 
6417
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
6418
            # Linux and Compaq Tru64 Unix objects are PIC.
 
6419
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6420
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6421
            ;;
 
6422
          *)
 
6423
            ;;
 
6424
        esac
 
6425
        ;;
 
6426
      lynxos*)
 
6427
        ;;
 
6428
      m88k*)
 
6429
        ;;
 
6430
      mvs*)
 
6431
        case $cc_basename in
 
6432
          cxx*)
 
6433
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
6434
            ;;
 
6435
          *)
 
6436
            ;;
 
6437
        esac
 
6438
        ;;
 
6439
      netbsd*)
 
6440
        ;;
 
6441
      osf3* | osf4* | osf5*)
 
6442
        case $cc_basename in
 
6443
          KCC*)
 
6444
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6445
            ;;
 
6446
          RCC*)
 
6447
            # Rational C++ 2.4.1
 
6448
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6449
            ;;
 
6450
          cxx*)
 
6451
            # Digital/Compaq C++
 
6452
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6453
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
6454
            # Linux and Compaq Tru64 Unix objects are PIC.
 
6455
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6456
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6457
            ;;
 
6458
          *)
 
6459
            ;;
 
6460
        esac
 
6461
        ;;
 
6462
      psos*)
 
6463
        ;;
 
6464
      solaris*)
 
6465
        case $cc_basename in
 
6466
          CC*)
 
6467
            # Sun C++ 4.2, 5.x and Centerline C++
 
6468
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6469
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6470
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6471
            ;;
 
6472
          gcx*)
 
6473
            # Green Hills C++ Compiler
 
6474
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6475
            ;;
 
6476
          *)
 
6477
            ;;
 
6478
        esac
 
6479
        ;;
 
6480
      sunos4*)
 
6481
        case $cc_basename in
 
6482
          CC*)
 
6483
            # Sun C++ 4.x
 
6484
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6485
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6486
            ;;
 
6487
          lcc*)
 
6488
            # Lucid
 
6489
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6490
            ;;
 
6491
          *)
 
6492
            ;;
 
6493
        esac
 
6494
        ;;
 
6495
      tandem*)
 
6496
        case $cc_basename in
 
6497
          NCC*)
 
6498
            # NonStop-UX NCC 3.20
 
6499
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6500
            ;;
 
6501
          *)
 
6502
            ;;
 
6503
        esac
 
6504
        ;;
 
6505
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6506
        case $cc_basename in
 
6507
          CC*)
 
6508
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6509
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6510
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6511
            ;;
 
6512
        esac
 
6513
        ;;
 
6514
      vxworks*)
 
6515
        ;;
 
6516
      *)
 
6517
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6518
        ;;
 
6519
    esac
 
6520
  fi
 
6521
],
 
6522
[
 
6523
  if test "$GCC" = yes; then
 
6524
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6525
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6526
 
 
6527
    case $host_os in
 
6528
      aix*)
 
6529
      # All AIX code is PIC.
 
6530
      if test "$host_cpu" = ia64; then
 
6531
        # AIX 5 now supports IA64 processor
 
6532
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6533
      fi
 
6534
      ;;
 
6535
 
 
6536
    amigaos*)
 
6537
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6538
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6539
      # like `-m68040'.
 
6540
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
6541
      ;;
 
6542
 
 
6543
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6544
      # PIC is the default for these OSes.
 
6545
      ;;
 
6546
 
 
6547
    mingw* | pw32* | os2*)
 
6548
      # This hack is so that the source file can tell whether it is being
 
6549
      # built for inclusion in a dll (and should export symbols for example).
 
6550
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6551
      ;;
 
6552
 
 
6553
    darwin* | rhapsody*)
 
6554
      # PIC is the default on this platform
 
6555
      # Common symbols not allowed in MH_DYLIB files
 
6556
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6557
      ;;
 
6558
 
 
6559
    interix3*)
 
6560
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6561
      # Instead, we relocate shared libraries at runtime.
 
6562
      ;;
 
6563
 
 
6564
    msdosdjgpp*)
 
6565
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6566
      # on systems that don't support them.
 
6567
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6568
      enable_shared=no
 
6569
      ;;
 
6570
 
 
6571
    sysv4*MP*)
 
6572
      if test -d /usr/nec; then
 
6573
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6574
      fi
 
6575
      ;;
 
6576
 
 
6577
    hpux*)
 
6578
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6579
      # not for PA HP-UX.
 
6580
      case $host_cpu in
 
6581
      hppa*64*|ia64*)
 
6582
        # +Z the default
 
6583
        ;;
 
6584
      *)
 
6585
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6586
        ;;
 
6587
      esac
 
6588
      ;;
 
6589
 
 
6590
    *)
 
6591
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6592
      ;;
 
6593
    esac
 
6594
  else
 
6595
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6596
    case $host_os in
 
6597
    aix*)
 
6598
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6599
      if test "$host_cpu" = ia64; then
 
6600
        # AIX 5 now supports IA64 processor
 
6601
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6602
      else
 
6603
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6604
      fi
 
6605
      ;;
 
6606
      darwin*)
 
6607
        # PIC is the default on this platform
 
6608
        # Common symbols not allowed in MH_DYLIB files
 
6609
       case $cc_basename in
 
6610
         xlc*)
 
6611
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6612
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6613
         ;;
 
6614
       esac
 
6615
       ;;
 
6616
 
 
6617
    mingw* | pw32* | os2*)
 
6618
      # This hack is so that the source file can tell whether it is being
 
6619
      # built for inclusion in a dll (and should export symbols for example).
 
6620
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
6621
      ;;
 
6622
 
 
6623
    hpux9* | hpux10* | hpux11*)
 
6624
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6625
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6626
      # not for PA HP-UX.
 
6627
      case $host_cpu in
 
6628
      hppa*64*|ia64*)
 
6629
        # +Z the default
 
6630
        ;;
 
6631
      *)
 
6632
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6633
        ;;
 
6634
      esac
 
6635
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6636
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6637
      ;;
 
6638
 
 
6639
    irix5* | irix6* | nonstopux*)
 
6640
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6641
      # PIC (with -KPIC) is the default.
 
6642
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6643
      ;;
 
6644
 
 
6645
    newsos6)
 
6646
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6647
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6648
      ;;
 
6649
 
 
6650
    linux*)
 
6651
      case $cc_basename in
 
6652
      icc* | ecc*)
 
6653
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6654
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6655
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6656
        ;;
 
6657
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6658
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6659
        # which looks to be a dead project)
 
6660
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6661
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6662
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6663
        ;;
 
6664
      ccc*)
 
6665
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6666
        # All Alpha code is PIC.
 
6667
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6668
        ;;
 
6669
      esac
 
6670
      ;;
 
6671
 
 
6672
    osf3* | osf4* | osf5*)
 
6673
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6674
      # All OSF/1 code is PIC.
 
6675
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6676
      ;;
 
6677
 
 
6678
    solaris*)
 
6679
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6680
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6681
      case $cc_basename in
 
6682
      f77* | f90* | f95*)
 
6683
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6684
      *)
 
6685
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6686
      esac
 
6687
      ;;
 
6688
 
 
6689
    sunos4*)
 
6690
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6691
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6692
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6693
      ;;
 
6694
 
 
6695
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6696
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6697
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6698
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6699
      ;;
 
6700
 
 
6701
    sysv4*MP*)
 
6702
      if test -d /usr/nec ;then
 
6703
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6704
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6705
      fi
 
6706
      ;;
 
6707
 
 
6708
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6709
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6710
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6711
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6712
      ;;
 
6713
 
 
6714
    unicos*)
 
6715
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6716
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6717
      ;;
 
6718
 
 
6719
    uts4*)
 
6720
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6721
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6722
      ;;
 
6723
 
 
6724
    *)
 
6725
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6726
      ;;
 
6727
    esac
 
6728
  fi
 
6729
])
 
6730
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
6731
 
 
6732
#
 
6733
# Check to make sure the PIC flag actually works.
 
6734
#
 
6735
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6736
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6737
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6738
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
6739
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
6740
     "" | " "*) ;;
 
6741
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6742
     esac],
 
6743
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6744
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6745
fi
 
6746
case $host_os in
 
6747
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6748
  *djgpp*)
 
6749
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6750
    ;;
 
6751
  *)
 
6752
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
6753
    ;;
 
6754
esac
 
6755
 
 
6756
#
 
6757
# Check to make sure the static flag actually works.
 
6758
#
 
6759
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6760
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6761
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
6762
  $lt_tmp_static_flag,
 
6763
  [],
 
6764
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
6765
])
 
6766
 
 
6767
 
 
6768
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
6769
# ------------------------------------
 
6770
# See if the linker supports building shared libraries.
 
6771
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
6772
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6773
ifelse([$1],[CXX],[
 
6774
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6775
  case $host_os in
 
6776
  aix4* | aix5*)
 
6777
    # If we're using GNU nm, then we don't want the "-C" option.
 
6778
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6779
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6780
      _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'
 
6781
    else
 
6782
      _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'
 
6783
    fi
 
6784
    ;;
 
6785
  pw32*)
 
6786
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6787
  ;;
 
6788
  cygwin* | mingw*)
 
6789
    _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'
 
6790
  ;;
 
6791
  *)
 
6792
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6793
  ;;
 
6794
  esac
 
6795
],[
 
6796
  runpath_var=
 
6797
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6798
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6799
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
6800
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
6801
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
6802
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6803
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6804
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6805
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
6806
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6807
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6808
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6809
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6810
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6811
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6812
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
6813
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
6814
  _LT_AC_TAGVAR(module_cmds, $1)=
 
6815
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
6816
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6817
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6818
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6819
  # included in the symbol list
 
6820
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
6821
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6822
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6823
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6824
  # as well as any symbol that contains `d'.
 
6825
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6826
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6827
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6828
  # the symbol is explicitly referenced.  Since portable code cannot
 
6829
  # rely on this symbol name, it's probably fine to never include it in
 
6830
  # preloaded symbol tables.
 
6831
  extract_expsyms_cmds=
 
6832
  # Just being paranoid about ensuring that cc_basename is set.
 
6833
  _LT_CC_BASENAME([$compiler])
 
6834
  case $host_os in
 
6835
  cygwin* | mingw* | pw32*)
 
6836
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6837
    # When not using gcc, we currently assume that we are using
 
6838
    # Microsoft Visual C++.
 
6839
    if test "$GCC" != yes; then
 
6840
      with_gnu_ld=no
 
6841
    fi
 
6842
    ;;
 
6843
  interix*)
 
6844
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6845
    with_gnu_ld=yes
 
6846
    ;;
 
6847
  openbsd*)
 
6848
    with_gnu_ld=no
 
6849
    ;;
 
6850
  esac
 
6851
 
 
6852
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6853
  if test "$with_gnu_ld" = yes; then
 
6854
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6855
    wlarc='${wl}'
 
6856
 
 
6857
    # Set some defaults for GNU ld with shared library support. These
 
6858
    # are reset later if shared libraries are not supported. Putting them
 
6859
    # here allows them to be overridden if necessary.
 
6860
    runpath_var=LD_RUN_PATH
 
6861
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6862
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6863
    # ancient GNU ld didn't support --whole-archive et. al.
 
6864
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6865
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6866
      else
 
6867
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6868
    fi
 
6869
    supports_anon_versioning=no
 
6870
    case `$LD -v 2>/dev/null` in
 
6871
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6872
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6873
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6874
      *\ 2.11.*) ;; # other 2.11 versions
 
6875
      *) supports_anon_versioning=yes ;;
 
6876
    esac
 
6877
 
 
6878
    # See if GNU ld supports shared libraries.
 
6879
    case $host_os in
 
6880
    aix3* | aix4* | aix5*)
 
6881
      # On AIX/PPC, the GNU linker is very broken
 
6882
      if test "$host_cpu" != ia64; then
 
6883
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6884
        cat <<EOF 1>&2
 
6885
 
 
6886
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6887
*** to be unable to reliably create shared libraries on AIX.
 
6888
*** Therefore, libtool is disabling shared libraries support.  If you
 
6889
*** really care for shared libraries, you may want to modify your PATH
 
6890
*** so that a non-GNU linker is found, and then restart.
 
6891
 
 
6892
EOF
 
6893
      fi
 
6894
      ;;
 
6895
 
 
6896
    amigaos*)
 
6897
      _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)'
 
6898
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6899
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6900
 
 
6901
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6902
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6903
      # to version 4, is to share data among multiple programs linked
 
6904
      # with the same dynamic library.  Since this doesn't match the
 
6905
      # behavior of shared libraries on other platforms, we can't use
 
6906
      # them.
 
6907
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6908
      ;;
 
6909
 
 
6910
    beos*)
 
6911
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6912
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6913
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6914
        # support --undefined.  This deserves some investigation.  FIXME
 
6915
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6916
      else
 
6917
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6918
      fi
 
6919
      ;;
 
6920
 
 
6921
    cygwin* | mingw* | pw32*)
 
6922
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6923
      # as there is no search path for DLLs.
 
6924
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6925
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6926
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6927
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6928
      _LT_AC_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'
 
6929
 
 
6930
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6931
        _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'
 
6932
        # If the export-symbols file already is a .def file (1st line
 
6933
        # is EXPORTS), use it as is; otherwise, prepend...
 
6934
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6935
          cp $export_symbols $output_objdir/$soname.def;
 
6936
        else
 
6937
          echo EXPORTS > $output_objdir/$soname.def;
 
6938
          cat $export_symbols >> $output_objdir/$soname.def;
 
6939
        fi~
 
6940
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6941
      else
 
6942
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6943
      fi
 
6944
      ;;
 
6945
 
 
6946
    interix3*)
 
6947
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6948
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6949
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6950
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6951
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6952
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6953
      # default) and relocated if they conflict, which is a slow very memory
 
6954
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6955
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6956
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6957
      _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'
 
6958
      _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'
 
6959
      ;;
 
6960
 
 
6961
    linux*)
 
6962
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6963
        tmp_addflag=
 
6964
        case $cc_basename,$host_cpu in
 
6965
        pgcc*)                          # Portland Group C compiler
 
6966
          _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'
 
6967
          tmp_addflag=' $pic_flag'
 
6968
          ;;
 
6969
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6970
          _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'
 
6971
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6972
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6973
          tmp_addflag=' -i_dynamic' ;;
 
6974
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6975
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6976
        ifc* | ifort*)                  # Intel Fortran compiler
 
6977
          tmp_addflag=' -nofor_main' ;;
 
6978
        esac
 
6979
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6980
 
 
6981
        if test $supports_anon_versioning = yes; then
 
6982
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6983
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6984
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6985
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6986
        fi
 
6987
      else
 
6988
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6989
      fi
 
6990
      ;;
 
6991
 
 
6992
    netbsd*)
 
6993
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6994
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6995
        wlarc=
 
6996
      else
 
6997
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6998
        _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'
 
6999
      fi
 
7000
      ;;
 
7001
 
 
7002
    solaris*)
 
7003
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7004
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7005
        cat <<EOF 1>&2
 
7006
 
 
7007
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7008
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7009
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7010
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7011
*** your PATH or compiler configuration so that the native linker is
 
7012
*** used, and then restart.
 
7013
 
 
7014
EOF
 
7015
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7016
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7017
        _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'
 
7018
      else
 
7019
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7020
      fi
 
7021
      ;;
 
7022
 
 
7023
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7024
      case `$LD -v 2>&1` in
 
7025
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
7026
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7027
        cat <<_LT_EOF 1>&2
 
7028
 
 
7029
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7030
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7031
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7032
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7033
*** your PATH or compiler configuration so that the native linker is
 
7034
*** used, and then restart.
 
7035
 
 
7036
_LT_EOF
 
7037
        ;;
 
7038
        *)
 
7039
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7040
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7041
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7042
            _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'
 
7043
          else
 
7044
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7045
          fi
 
7046
        ;;
 
7047
      esac
 
7048
      ;;
 
7049
 
 
7050
    sunos4*)
 
7051
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7052
      wlarc=
 
7053
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7054
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7055
      ;;
 
7056
 
 
7057
    *)
 
7058
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7059
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7060
        _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'
 
7061
      else
 
7062
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7063
      fi
 
7064
      ;;
 
7065
    esac
 
7066
 
 
7067
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
7068
      runpath_var=
 
7069
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7070
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
7071
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
7072
    fi
 
7073
  else
 
7074
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7075
    case $host_os in
 
7076
    aix3*)
 
7077
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7078
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
7079
      _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'
 
7080
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7081
      # are no directories specified by -L.
 
7082
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7083
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7084
        # Neither direct hardcoding nor static linking is supported with a
 
7085
        # broken collect2.
 
7086
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
7087
      fi
 
7088
      ;;
 
7089
 
 
7090
    aix4* | aix5*)
 
7091
      if test "$host_cpu" = ia64; then
 
7092
        # On IA64, the linker does run time linking by default, so we don't
 
7093
        # have to do anything special.
 
7094
        aix_use_runtimelinking=no
 
7095
        exp_sym_flag='-Bexport'
 
7096
        no_entry_flag=""
 
7097
      else
 
7098
        # If we're using GNU nm, then we don't want the "-C" option.
 
7099
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7100
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7101
          _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'
 
7102
        else
 
7103
          _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'
 
7104
        fi
 
7105
        aix_use_runtimelinking=no
 
7106
 
 
7107
        # Test if we are trying to use run time linking or normal
 
7108
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7109
        # need to do runtime linking.
 
7110
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
7111
          for ld_flag in $LDFLAGS; do
 
7112
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7113
            aix_use_runtimelinking=yes
 
7114
            break
 
7115
          fi
 
7116
          done
 
7117
          ;;
 
7118
        esac
 
7119
 
 
7120
        exp_sym_flag='-bexport'
 
7121
        no_entry_flag='-bnoentry'
 
7122
      fi
 
7123
 
 
7124
      # When large executables or shared objects are built, AIX ld can
 
7125
      # have problems creating the table of contents.  If linking a library
 
7126
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7127
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7128
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7129
 
 
7130
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
7131
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7132
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7133
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7134
 
 
7135
      if test "$GCC" = yes; then
 
7136
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
7137
        # We only want to do this on AIX 4.2 and lower, the check
 
7138
        # below for broken collect2 doesn't work under 4.3+
 
7139
          collect2name=`${CC} -print-prog-name=collect2`
 
7140
          if test -f "$collect2name" && \
 
7141
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7142
          then
 
7143
          # We have reworked collect2
 
7144
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7145
          else
 
7146
          # We have old collect2
 
7147
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
7148
          # It fails to find uninstalled libraries when the uninstalled
 
7149
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7150
          # to unsupported forces relinking
 
7151
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7152
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7153
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
7154
          fi
 
7155
          ;;
 
7156
        esac
 
7157
        shared_flag='-shared'
 
7158
        if test "$aix_use_runtimelinking" = yes; then
 
7159
          shared_flag="$shared_flag "'${wl}-G'
 
7160
        fi
 
7161
      else
 
7162
        # not using gcc
 
7163
        if test "$host_cpu" = ia64; then
 
7164
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7165
        # chokes on -Wl,-G. The following line is correct:
 
7166
          shared_flag='-G'
 
7167
        else
 
7168
          if test "$aix_use_runtimelinking" = yes; then
 
7169
            shared_flag='${wl}-G'
 
7170
          else
 
7171
            shared_flag='${wl}-bM:SRE'
 
7172
          fi
 
7173
        fi
 
7174
      fi
 
7175
 
 
7176
      # It seems that -bexpall does not export symbols beginning with
 
7177
      # underscore (_), so it is better to generate a list of symbols to export.
 
7178
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
7179
      if test "$aix_use_runtimelinking" = yes; then
 
7180
        # Warning - without using the other runtime loading flags (-brtl),
 
7181
        # -berok will link without error, but may produce a broken library.
 
7182
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7183
       # Determine the default libpath from the value encoded in an empty executable.
 
7184
       _LT_AC_SYS_LIBPATH_AIX
 
7185
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7186
        _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"
 
7187
       else
 
7188
        if test "$host_cpu" = ia64; then
 
7189
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7190
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
7191
          _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"
 
7192
        else
 
7193
         # Determine the default libpath from the value encoded in an empty executable.
 
7194
         _LT_AC_SYS_LIBPATH_AIX
 
7195
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7196
          # Warning - without using the other run time loading flags,
 
7197
          # -berok will link without error, but may produce a broken library.
 
7198
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
7199
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
7200
          # Exported symbols can be pulled into shared objects from archives
 
7201
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7202
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7203
          # This is similar to how AIX traditionally builds its shared libraries.
 
7204
          _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'
 
7205
        fi
 
7206
      fi
 
7207
      ;;
 
7208
 
 
7209
    amigaos*)
 
7210
      _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)'
 
7211
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7212
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7213
      # see comment about different semantics on the GNU ld section
 
7214
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7215
      ;;
 
7216
 
 
7217
    bsdi[[45]]*)
 
7218
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
7219
      ;;
 
7220
 
 
7221
    cygwin* | mingw* | pw32*)
 
7222
      # When not using gcc, we currently assume that we are using
 
7223
      # Microsoft Visual C++.
 
7224
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7225
      # no search path for DLLs.
 
7226
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7227
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7228
      # Tell ltmain to make .lib files, not .a files.
 
7229
      libext=lib
 
7230
      # Tell ltmain to make .dll files, not .so files.
 
7231
      shrext_cmds=".dll"
 
7232
      # FIXME: Setting linknames here is a bad hack.
 
7233
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7234
      # The linker will automatically build a .lib file if we build a DLL.
 
7235
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
7236
      # FIXME: Should let the user specify the lib program.
 
7237
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7238
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
7239
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7240
      ;;
 
7241
 
 
7242
    darwin* | rhapsody*)
 
7243
      case $host_os in
 
7244
        rhapsody* | darwin1.[[012]])
 
7245
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
7246
         ;;
 
7247
       *) # Darwin 1.3 on
 
7248
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7249
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7250
         else
 
7251
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7252
             10.[[012]])
 
7253
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7254
               ;;
 
7255
             10.*)
 
7256
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
7257
               ;;
 
7258
           esac
 
7259
         fi
 
7260
         ;;
 
7261
      esac
 
7262
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7263
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7264
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
7265
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
7266
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
7267
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7268
    if test "$GCC" = yes ; then
 
7269
        output_verbose_link_cmd='echo'
 
7270
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7271
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7272
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7273
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7274
      _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}'
 
7275
    else
 
7276
      case $cc_basename in
 
7277
        xlc*)
 
7278
         output_verbose_link_cmd='echo'
 
7279
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7280
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7281
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7282
         _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7283
          _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}'
 
7284
          ;;
 
7285
       *)
 
7286
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7287
          ;;
 
7288
      esac
 
7289
    fi
 
7290
      ;;
 
7291
 
 
7292
    dgux*)
 
7293
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7294
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7295
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7296
      ;;
 
7297
 
 
7298
    freebsd1*)
 
7299
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7300
      ;;
 
7301
 
 
7302
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7303
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7304
    # does not break anything, and helps significantly (at the cost of a little
 
7305
    # extra space).
 
7306
    freebsd2.2*)
 
7307
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7308
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7309
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7310
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7311
      ;;
 
7312
 
 
7313
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7314
    freebsd2*)
 
7315
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7316
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7317
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7318
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7319
      ;;
 
7320
 
 
7321
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7322
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7323
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7324
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7325
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7326
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7327
      ;;
 
7328
 
 
7329
    hpux9*)
 
7330
      if test "$GCC" = yes; then
 
7331
        _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'
 
7332
      else
 
7333
        _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'
 
7334
      fi
 
7335
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7336
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7337
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7338
 
 
7339
      # hardcode_minus_L: Not really in the search PATH,
 
7340
      # but as the default location of the library.
 
7341
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7342
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7343
      ;;
 
7344
 
 
7345
    hpux10*)
 
7346
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7347
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7348
      else
 
7349
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7350
      fi
 
7351
      if test "$with_gnu_ld" = no; then
 
7352
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7353
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7354
 
 
7355
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7356
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7357
 
 
7358
        # hardcode_minus_L: Not really in the search PATH,
 
7359
        # but as the default location of the library.
 
7360
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7361
      fi
 
7362
      ;;
 
7363
 
 
7364
    hpux11*)
 
7365
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7366
        case $host_cpu in
 
7367
        hppa*64*)
 
7368
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7369
          ;;
 
7370
        ia64*)
 
7371
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7372
          ;;
 
7373
        *)
 
7374
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7375
          ;;
 
7376
        esac
 
7377
      else
 
7378
        case $host_cpu in
 
7379
        hppa*64*)
 
7380
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7381
          ;;
 
7382
        ia64*)
 
7383
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7384
          ;;
 
7385
        *)
 
7386
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7387
          ;;
 
7388
        esac
 
7389
      fi
 
7390
      if test "$with_gnu_ld" = no; then
 
7391
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7392
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7393
 
 
7394
        case $host_cpu in
 
7395
        hppa*64*|ia64*)
 
7396
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
7397
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7398
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7399
          ;;
 
7400
        *)
 
7401
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7402
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7403
 
 
7404
          # hardcode_minus_L: Not really in the search PATH,
 
7405
          # but as the default location of the library.
 
7406
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7407
          ;;
 
7408
        esac
 
7409
      fi
 
7410
      ;;
 
7411
 
 
7412
    irix5* | irix6* | nonstopux*)
 
7413
      if test "$GCC" = yes; then
 
7414
        _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'
 
7415
      else
 
7416
        _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'
 
7417
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
7418
      fi
 
7419
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7420
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7421
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7422
      ;;
 
7423
 
 
7424
    netbsd*)
 
7425
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7426
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7427
      else
 
7428
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7429
      fi
 
7430
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7431
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7432
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7433
      ;;
 
7434
 
 
7435
    newsos6)
 
7436
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7437
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7438
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7439
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7440
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7441
      ;;
 
7442
 
 
7443
    openbsd*)
 
7444
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7445
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7446
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7447
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7448
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7449
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7451
      else
 
7452
       case $host_os in
 
7453
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7454
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7455
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7456
           ;;
 
7457
         *)
 
7458
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7459
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7460
           ;;
 
7461
       esac
 
7462
      fi
 
7463
      ;;
 
7464
 
 
7465
    os2*)
 
7466
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7467
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7468
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7469
      _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'
 
7470
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7471
      ;;
 
7472
 
 
7473
    osf3*)
 
7474
      if test "$GCC" = yes; then
 
7475
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7476
        _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'
 
7477
      else
 
7478
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7479
        _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'
 
7480
      fi
 
7481
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7482
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7483
      ;;
 
7484
 
 
7485
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7486
      if test "$GCC" = yes; then
 
7487
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7488
        _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'
 
7489
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7490
      else
 
7491
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7492
        _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'
 
7493
        _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~
 
7494
        $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'
 
7495
 
 
7496
        # Both c and cxx compiler support -rpath directly
 
7497
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7498
      fi
 
7499
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7500
      ;;
 
7501
 
 
7502
    solaris*)
 
7503
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
7504
      if test "$GCC" = yes; then
 
7505
        wlarc='${wl}'
 
7506
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7507
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7508
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7509
      else
 
7510
        wlarc=''
 
7511
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7512
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7513
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7514
      fi
 
7515
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7516
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7517
      case $host_os in
 
7518
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7519
      *)
 
7520
        # The compiler driver will combine linker options so we
 
7521
        # cannot just pass the convience library names through
 
7522
        # without $wl, iff we do not link with $LD.
 
7523
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7524
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7525
        case $wlarc in
 
7526
        '')
 
7527
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7528
        *)
 
7529
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7530
        esac ;;
 
7531
      esac
 
7532
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7533
      ;;
 
7534
 
 
7535
    sunos4*)
 
7536
      if test "x$host_vendor" = xsequent; then
 
7537
        # Use $CC to link under sequent, because it throws in some extra .o
 
7538
        # files that make .init and .fini sections work.
 
7539
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7540
      else
 
7541
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7542
      fi
 
7543
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7544
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7545
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7546
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7547
      ;;
 
7548
 
 
7549
    sysv4)
 
7550
      case $host_vendor in
 
7551
        sni)
 
7552
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7553
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
7554
        ;;
 
7555
        siemens)
 
7556
          ## LD is ld it makes a PLAMLIB
 
7557
          ## CC just makes a GrossModule.
 
7558
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7559
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
7560
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7561
        ;;
 
7562
        motorola)
 
7563
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7564
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
7565
        ;;
 
7566
      esac
 
7567
      runpath_var='LD_RUN_PATH'
 
7568
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7569
      ;;
 
7570
 
 
7571
    sysv4.3*)
 
7572
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7573
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7574
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
7575
      ;;
 
7576
 
 
7577
    sysv4*MP*)
 
7578
      if test -d /usr/nec; then
 
7579
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7580
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7581
        runpath_var=LD_RUN_PATH
 
7582
        hardcode_runpath_var=yes
 
7583
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
7584
      fi
 
7585
      ;;
 
7586
 
 
7587
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7588
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7589
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7590
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7591
      runpath_var='LD_RUN_PATH'
 
7592
 
 
7593
      if test "$GCC" = yes; then
 
7594
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7595
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7596
      else
 
7597
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7598
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7599
      fi
 
7600
      ;;
 
7601
 
 
7602
    sysv5* | sco3.2v5* | sco5v6*)
 
7603
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7604
      # link with -lc, and that would cause any symbols used from libc to
 
7605
      # always be unresolved, which means just about no library would
 
7606
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7607
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7608
      # as -z defs.
 
7609
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7610
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7611
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7612
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7613
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7614
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7615
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7616
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7617
      runpath_var='LD_RUN_PATH'
 
7618
 
 
7619
      if test "$GCC" = yes; then
 
7620
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7621
        _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'
 
7622
      else
 
7623
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7624
        _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'
 
7625
      fi
 
7626
      ;;
 
7627
 
 
7628
    uts4*)
 
7629
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7630
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7631
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7632
      ;;
 
7633
 
 
7634
    *)
 
7635
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7636
      ;;
 
7637
    esac
 
7638
  fi
 
7639
])
 
7640
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
7641
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7642
 
 
7643
#
 
7644
# Do we need to explicitly link libc?
 
7645
#
 
7646
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
7647
x|xyes)
 
7648
  # Assume -lc should be added
 
7649
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7650
 
 
7651
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7652
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
7653
    *'~'*)
 
7654
      # FIXME: we may have to deal with multi-command sequences.
 
7655
      ;;
 
7656
    '$CC '*)
 
7657
      # Test whether the compiler implicitly links with -lc since on some
 
7658
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7659
      # to ld, don't add -lc before -lgcc.
 
7660
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
7661
      $rm conftest*
 
7662
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7663
 
 
7664
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
7665
        soname=conftest
 
7666
        lib=conftest
 
7667
        libobjs=conftest.$ac_objext
 
7668
        deplibs=
 
7669
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7670
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
7671
        compiler_flags=-v
 
7672
        linker_flags=-v
 
7673
        verstring=
 
7674
        output_objdir=.
 
7675
        libname=conftest
 
7676
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
7677
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7678
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
7679
        then
 
7680
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7681
        else
 
7682
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7683
        fi
 
7684
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7685
      else
 
7686
        cat conftest.err 1>&5
 
7687
      fi
 
7688
      $rm conftest*
 
7689
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
7690
      ;;
 
7691
    esac
 
7692
  fi
 
7693
  ;;
 
7694
esac
 
7695
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
7696
 
 
7697
 
 
7698
# _LT_AC_FILE_LTDLL_C
 
7699
# -------------------
 
7700
# Be careful that the start marker always follows a newline.
 
7701
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
7702
# /* ltdll.c starts here */
 
7703
# #define WIN32_LEAN_AND_MEAN
 
7704
# #include <windows.h>
 
7705
# #undef WIN32_LEAN_AND_MEAN
 
7706
# #include <stdio.h>
 
7707
#
 
7708
# #ifndef __CYGWIN__
 
7709
# #  ifdef __CYGWIN32__
 
7710
# #    define __CYGWIN__ __CYGWIN32__
 
7711
# #  endif
 
7712
# #endif
 
7713
#
 
7714
# #ifdef __cplusplus
 
7715
# extern "C" {
 
7716
# #endif
 
7717
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7718
# #ifdef __cplusplus
 
7719
# }
 
7720
# #endif
 
7721
#
 
7722
# #ifdef __CYGWIN__
 
7723
# #include <cygwin/cygwin_dll.h>
 
7724
# DECLARE_CYGWIN_DLL( DllMain );
 
7725
# #endif
 
7726
# HINSTANCE __hDllInstance_base;
 
7727
#
 
7728
# BOOL APIENTRY
 
7729
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7730
# {
 
7731
#   __hDllInstance_base = hInst;
 
7732
#   return TRUE;
 
7733
# }
 
7734
# /* ltdll.c ends here */
 
7735
])# _LT_AC_FILE_LTDLL_C
 
7736
 
 
7737
 
 
7738
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
7739
# ---------------------------------
 
7740
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
7741
 
 
7742
 
 
7743
# old names
 
7744
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
7745
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
7746
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
7747
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7748
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7749
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
7750
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
7751
 
 
7752
# This is just to silence aclocal about the macro not being used
 
7753
ifelse([AC_DISABLE_FAST_INSTALL])
 
7754
 
 
7755
AC_DEFUN([LT_AC_PROG_GCJ],
 
7756
[AC_CHECK_TOOL(GCJ, gcj, no)
 
7757
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7758
  AC_SUBST(GCJFLAGS)
 
7759
])
 
7760
 
 
7761
AC_DEFUN([LT_AC_PROG_RC],
 
7762
[AC_CHECK_TOOL(RC, windres, no)
 
7763
])
 
7764
 
 
7765
# NOTE: This macro has been submitted for inclusion into   #
 
7766
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
7767
#  a released version of Autoconf we should remove this    #
 
7768
#  macro and use it instead.                               #
 
7769
# LT_AC_PROG_SED
 
7770
# --------------
 
7771
# Check for a fully-functional sed program, that truncates
 
7772
# as few characters as possible.  Prefer GNU sed if found.
 
7773
AC_DEFUN([LT_AC_PROG_SED],
 
7774
[AC_MSG_CHECKING([for a sed that does not truncate output])
 
7775
AC_CACHE_VAL(lt_cv_path_SED,
 
7776
[# Loop through the user's path and test for sed and gsed.
 
7777
# Then use that list of sed's as ones to test for truncation.
 
7778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7779
for as_dir in $PATH
 
7780
do
 
7781
  IFS=$as_save_IFS
 
7782
  test -z "$as_dir" && as_dir=.
 
7783
  for lt_ac_prog in sed gsed; do
 
7784
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7785
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7786
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
7787
      fi
 
7788
    done
 
7789
  done
 
7790
done
 
7791
lt_ac_max=0
 
7792
lt_ac_count=0
 
7793
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
7794
# along with /bin/sed that truncates output.
 
7795
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
7796
  test ! -f $lt_ac_sed && continue
 
7797
  cat /dev/null > conftest.in
 
7798
  lt_ac_count=0
 
7799
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
7800
  # Check for GNU sed and select it if it is found.
 
7801
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
7802
    lt_cv_path_SED=$lt_ac_sed
 
7803
    break
 
7804
  fi
 
7805
  while true; do
 
7806
    cat conftest.in conftest.in >conftest.tmp
 
7807
    mv conftest.tmp conftest.in
 
7808
    cp conftest.in conftest.nl
 
7809
    echo >>conftest.nl
 
7810
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
7811
    cmp -s conftest.out conftest.nl || break
 
7812
    # 10000 chars as input seems more than enough
 
7813
    test $lt_ac_count -gt 10 && break
 
7814
    lt_ac_count=`expr $lt_ac_count + 1`
 
7815
    if test $lt_ac_count -gt $lt_ac_max; then
 
7816
      lt_ac_max=$lt_ac_count
 
7817
      lt_cv_path_SED=$lt_ac_sed
 
7818
    fi
 
7819
  done
 
7820
done
 
7821
])
 
7822
SED=$lt_cv_path_SED
 
7823
AC_MSG_RESULT([$SED])
 
7824
])
 
7825
 
 
7826
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
7827
 
7828
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
7829
#
 
7830
# This program is free software; you can redistribute it and/or modify
 
7831
# it under the terms of the GNU General Public License as published by
 
7832
# the Free Software Foundation; either version 2 of the License, or
 
7833
# (at your option) any later version.
 
7834
#
 
7835
# This program is distributed in the hope that it will be useful, but
 
7836
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
7837
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
7838
# General Public License for more details.
 
7839
#
 
7840
# You should have received a copy of the GNU General Public License
 
7841
# along with this program; if not, write to the Free Software
 
7842
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7843
#
 
7844
# As a special exception to the GNU General Public License, if you
 
7845
# distribute this file as part of a program that contains a
 
7846
# configuration script generated by Autoconf, you may include it under
 
7847
# the same distribution terms that you use for the rest of that program.
 
7848
 
 
7849
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
7850
# ----------------------------------
 
7851
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
7852
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
7853
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
7854
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
7855
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
7856
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
7857
fi
 
7858
if test -n "$PKG_CONFIG"; then
 
7859
        _pkg_min_version=m4_default([$1], [0.9.0])
 
7860
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
7861
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
7862
                AC_MSG_RESULT([yes])
 
7863
        else
 
7864
                AC_MSG_RESULT([no])
 
7865
                PKG_CONFIG=""
 
7866
        fi
 
7867
                
 
7868
fi[]dnl
 
7869
])# PKG_PROG_PKG_CONFIG
 
7870
 
 
7871
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
7872
#
 
7873
# Check to see whether a particular set of modules exists.  Similar
 
7874
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
7875
#
 
7876
#
 
7877
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
7878
# this or PKG_CHECK_MODULES is called, or make sure to call
 
7879
# PKG_CHECK_EXISTS manually
 
7880
# --------------------------------------------------------------
 
7881
AC_DEFUN([PKG_CHECK_EXISTS],
 
7882
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7883
if test -n "$PKG_CONFIG" && \
 
7884
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
7885
  m4_ifval([$2], [$2], [:])
 
7886
m4_ifvaln([$3], [else
 
7887
  $3])dnl
 
7888
fi])
 
7889
 
 
7890
 
 
7891
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
7892
# ---------------------------------------------
 
7893
m4_define([_PKG_CONFIG],
 
7894
[if test -n "$$1"; then
 
7895
    pkg_cv_[]$1="$$1"
 
7896
 elif test -n "$PKG_CONFIG"; then
 
7897
    PKG_CHECK_EXISTS([$3],
 
7898
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
7899
                     [pkg_failed=yes])
 
7900
 else
 
7901
    pkg_failed=untried
 
7902
fi[]dnl
 
7903
])# _PKG_CONFIG
 
7904
 
 
7905
# _PKG_SHORT_ERRORS_SUPPORTED
 
7906
# -----------------------------
 
7907
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
7908
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
7909
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
7910
        _pkg_short_errors_supported=yes
 
7911
else
 
7912
        _pkg_short_errors_supported=no
 
7913
fi[]dnl
 
7914
])# _PKG_SHORT_ERRORS_SUPPORTED
 
7915
 
 
7916
 
 
7917
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
7918
# [ACTION-IF-NOT-FOUND])
 
7919
#
 
7920
#
 
7921
# Note that if there is a possibility the first call to
 
7922
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
7923
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
7924
#
 
7925
#
 
7926
# --------------------------------------------------------------
 
7927
AC_DEFUN([PKG_CHECK_MODULES],
 
7928
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
7929
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
7930
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
7931
 
 
7932
pkg_failed=no
 
7933
AC_MSG_CHECKING([for $1])
 
7934
 
 
7935
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
7936
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
7937
 
 
7938
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
7939
and $1[]_LIBS to avoid the need to call pkg-config.
 
7940
See the pkg-config man page for more details.])
 
7941
 
 
7942
if test $pkg_failed = yes; then
 
7943
        _PKG_SHORT_ERRORS_SUPPORTED
 
7944
        if test $_pkg_short_errors_supported = yes; then
 
7945
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
7946
        else 
 
7947
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
7948
        fi
 
7949
        # Put the nasty error message in config.log where it belongs
 
7950
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
7951
 
 
7952
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
7953
[Package requirements ($2) were not met:
 
7954
 
 
7955
$$1_PKG_ERRORS
 
7956
 
 
7957
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
7958
installed software in a non-standard prefix.
 
7959
 
 
7960
_PKG_TEXT
 
7961
])],
 
7962
                [AC_MSG_RESULT([no])
 
7963
                $4])
 
7964
elif test $pkg_failed = untried; then
 
7965
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
7966
[The pkg-config script could not be found or is too old.  Make sure it
 
7967
is in your PATH or set the PKG_CONFIG environment variable to the full
 
7968
path to pkg-config.
 
7969
 
 
7970
_PKG_TEXT
 
7971
 
 
7972
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
7973
                [$4])
 
7974
else
 
7975
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
7976
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
7977
        AC_MSG_RESULT([yes])
 
7978
        ifelse([$3], , :, [$3])
 
7979
fi[]dnl
 
7980
])# PKG_CHECK_MODULES
 
7981
 
 
7982
m4_include([m4/gnome-doc-utils.m4])
 
7983
m4_include([m4/intltool.m4])
 
7984
m4_include([acinclude.m4])