~ubuntu-branches/ubuntu/trusty/gnome-python/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-02 12:30:09 UTC
  • Revision ID: james.westby@ubuntu.com-20051202123009-z00n5h4uuwfo64ev
Tags: upstream-2.12.2
Import upstream version 2.12.2

Show diffs side-by-side

added added

removed removed

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