~ubuntu-branches/ubuntu/raring/libxfont/raring-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-12-02 11:12:13 UTC
  • mfrom: (1.1.11 upstream) (10.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091202111213-ccoiqxtx3h4rrgxs
Tags: 1:1.4.1-1
* New upstream release.
* Bump xutils-dev build-dep for new util-macros.
* Build documentation, install it in libxfont-dev.
* Enable support for bzip2 compressed bitmap fonts.
* Don't use LDFLAGS from the environment.  Ubuntu sets that to
  -Bsymbolic-functions, which breaks libXfont's weak symbols usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
21
 
 
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
#
 
24
# This file is free software; the Free Software Foundation
 
25
# gives unlimited permission to copy and/or distribute it,
 
26
# with or without modifications, as long as this notice is preserved.
 
27
 
 
28
# AM_AUTOMAKE_VERSION(VERSION)
 
29
# ----------------------------
 
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
31
# generated from the m4 files accompanying Automake X.Y.
 
32
# (This private macro should not be called outside this file.)
 
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
34
[am__api_version='1.11'
 
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
36
dnl require some minimum version.  Point them to the right macro.
 
37
m4_if([$1], [1.11], [],
 
38
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
39
])
 
40
 
 
41
# _AM_AUTOCONF_VERSION(VERSION)
 
42
# -----------------------------
 
43
# aclocal traces this macro to find the Autoconf version.
 
44
# This is a private macro too.  Using m4_define simplifies
 
45
# the logic in aclocal, which can simply ignore this definition.
 
46
m4_define([_AM_AUTOCONF_VERSION], [])
 
47
 
 
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
49
# -------------------------------
 
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
53
[AM_AUTOMAKE_VERSION([1.11])dnl
 
54
m4_ifndef([AC_AUTOCONF_VERSION],
 
55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
57
 
 
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
59
 
 
60
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
61
#
 
62
# This file is free software; the Free Software Foundation
 
63
# gives unlimited permission to copy and/or distribute it,
 
64
# with or without modifications, as long as this notice is preserved.
 
65
 
 
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
67
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
69
#
 
70
# Of course, Automake must honor this variable whenever it calls a
 
71
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
73
# depending on how configure is run.  This is pretty annoying, since
 
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
75
# source directory, any form will work fine, but in subdirectories a
 
76
# relative path needs to be adjusted first.
 
77
#
 
78
# $ac_aux_dir/missing
 
79
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
80
# $top_srcdir/$ac_aux_dir/missing
 
81
#    fails if $ac_aux_dir is absolute,
 
82
#    fails when called from a subdirectory in a VPATH build with
 
83
#          a relative $ac_aux_dir
 
84
#
 
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
86
# are both prefixed by $srcdir.  In an in-source build this is usually
 
87
# harmless because $srcdir is `.', but things will broke when you
 
88
# start a VPATH build or use an absolute $srcdir.
 
89
#
 
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
91
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
92
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
93
# and then we would define $MISSING as
 
94
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
95
# This will work as long as MISSING is not called from configure, because
 
96
# unfortunately $(top_srcdir) has no meaning in configure.
 
97
# However there are other variables, like CC, which are often used in
 
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
99
#
 
100
# Another solution, used here, is to always expand $ac_aux_dir to an
 
101
# absolute PATH.  The drawback is that using absolute paths prevent a
 
102
# configured tree to be moved without reconfiguration.
 
103
 
 
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
105
[dnl Rely on autoconf to set up CDPATH properly.
 
106
AC_PREREQ([2.50])dnl
 
107
# expand $ac_aux_dir to an absolute path
 
108
am_aux_dir=`cd $ac_aux_dir && pwd`
 
109
])
 
110
 
 
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
112
 
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
114
# Free Software Foundation, Inc.
 
115
#
 
116
# This file is free software; the Free Software Foundation
 
117
# gives unlimited permission to copy and/or distribute it,
 
118
# with or without modifications, as long as this notice is preserved.
 
119
 
 
120
# serial 9
 
121
 
 
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
123
# -------------------------------------
 
124
# Define a conditional.
 
125
AC_DEFUN([AM_CONDITIONAL],
 
126
[AC_PREREQ(2.52)dnl
 
127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
128
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
129
AC_SUBST([$1_TRUE])dnl
 
130
AC_SUBST([$1_FALSE])dnl
 
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
134
if $2; then
 
135
  $1_TRUE=
 
136
  $1_FALSE='#'
 
137
else
 
138
  $1_TRUE='#'
 
139
  $1_FALSE=
 
140
fi
 
141
AC_CONFIG_COMMANDS_PRE(
 
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
143
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
144
Usually this means the macro was only invoked conditionally.]])
 
145
fi])])
 
146
 
 
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
148
# Free Software Foundation, Inc.
 
149
#
 
150
# This file is free software; the Free Software Foundation
 
151
# gives unlimited permission to copy and/or distribute it,
 
152
# with or without modifications, as long as this notice is preserved.
 
153
 
 
154
# serial 10
 
155
 
 
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
157
# written in clear, in which case automake, when reading aclocal.m4,
 
158
# will think it sees a *use*, and therefore will trigger all it's
 
159
# C support machinery.  Also note that it means that autoscan, seeing
 
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
161
 
 
162
 
 
163
# _AM_DEPENDENCIES(NAME)
 
164
# ----------------------
 
165
# See how the compiler implements dependency checking.
 
166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
167
# We try a few techniques and use that to set a single cache variable.
 
168
#
 
169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
171
# dependency, and given that the user is not expected to run this macro,
 
172
# just rely on AC_PROG_CC.
 
173
AC_DEFUN([_AM_DEPENDENCIES],
 
174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
177
AC_REQUIRE([AM_DEP_TRACK])dnl
 
178
 
 
179
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
180
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
181
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
182
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
183
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
184
                   [depcc="$$1"   am_compiler_list=])
 
185
 
 
186
AC_CACHE_CHECK([dependency style of $depcc],
 
187
               [am_cv_$1_dependencies_compiler_type],
 
188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
189
  # We make a subdir and do the tests there.  Otherwise we can end up
 
190
  # making bogus files that we don't know about and never remove.  For
 
191
  # instance it was reported that on HP-UX the gcc test will end up
 
192
  # making a dummy file named `D' -- because `-MD' means `put the output
 
193
  # in D'.
 
194
  mkdir conftest.dir
 
195
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
196
  # using a relative directory.
 
197
  cp "$am_depcomp" conftest.dir
 
198
  cd conftest.dir
 
199
  # We will build objects and dependencies in a subdirectory because
 
200
  # it helps to detect inapplicable dependency modes.  For instance
 
201
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
202
  # side effect of compilation, but ICC will put the dependencies in
 
203
  # the current directory while Tru64 will put them in the object
 
204
  # directory.
 
205
  mkdir sub
 
206
 
 
207
  am_cv_$1_dependencies_compiler_type=none
 
208
  if test "$am_compiler_list" = ""; then
 
209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
210
  fi
 
211
  am__universal=false
 
212
  m4_case([$1], [CC],
 
213
    [case " $depcc " in #(
 
214
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
215
     esac],
 
216
    [CXX],
 
217
    [case " $depcc " in #(
 
218
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
219
     esac])
 
220
 
 
221
  for depmode in $am_compiler_list; do
 
222
    # Setup a source with many dependencies, because some compilers
 
223
    # like to wrap large dependency lists on column 80 (with \), and
 
224
    # we should not choose a depcomp mode which is confused by this.
 
225
    #
 
226
    # We need to recreate these files for each test, as the compiler may
 
227
    # overwrite some of them when testing with obscure command lines.
 
228
    # This happens at least with the AIX C compiler.
 
229
    : > sub/conftest.c
 
230
    for i in 1 2 3 4 5 6; do
 
231
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
232
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
233
      # Solaris 8's {/usr,}/bin/sh.
 
234
      touch sub/conftst$i.h
 
235
    done
 
236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
237
 
 
238
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
239
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
240
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
241
    # versions had trouble with output in subdirs
 
242
    am__obj=sub/conftest.${OBJEXT-o}
 
243
    am__minus_obj="-o $am__obj"
 
244
    case $depmode in
 
245
    gcc)
 
246
      # This depmode causes a compiler race in universal mode.
 
247
      test "$am__universal" = false || continue
 
248
      ;;
 
249
    nosideeffect)
 
250
      # after this tag, mechanisms are not by side-effect, so they'll
 
251
      # only be used when explicitly requested
 
252
      if test "x$enable_dependency_tracking" = xyes; then
 
253
        continue
 
254
      else
 
255
        break
 
256
      fi
 
257
      ;;
 
258
    msvisualcpp | msvcmsys)
 
259
      # This compiler won't grok `-c -o', but also, the minuso test has
 
260
      # not run yet.  These depmodes are late enough in the game, and
 
261
      # so weak that their functioning should not be impacted.
 
262
      am__obj=conftest.${OBJEXT-o}
 
263
      am__minus_obj=
 
264
      ;;
 
265
    none) break ;;
 
266
    esac
 
267
    if depmode=$depmode \
 
268
       source=sub/conftest.c object=$am__obj \
 
269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
271
         >/dev/null 2>conftest.err &&
 
272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
276
      # icc doesn't choke on unknown options, it will just issue warnings
 
277
      # or remarks (even with -Werror).  So we grep stderr for any message
 
278
      # that says an option was ignored or not supported.
 
279
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
280
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
281
      # The diagnosis changed in icc 8.0:
 
282
      #   icc: Command line remark: option '-MP' not supported
 
283
      if (grep 'ignoring option' conftest.err ||
 
284
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
285
        am_cv_$1_dependencies_compiler_type=$depmode
 
286
        break
 
287
      fi
 
288
    fi
 
289
  done
 
290
 
 
291
  cd ..
 
292
  rm -rf conftest.dir
 
293
else
 
294
  am_cv_$1_dependencies_compiler_type=none
 
295
fi
 
296
])
 
297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
298
AM_CONDITIONAL([am__fastdep$1], [
 
299
  test "x$enable_dependency_tracking" != xno \
 
300
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
301
])
 
302
 
 
303
 
 
304
# AM_SET_DEPDIR
 
305
# -------------
 
306
# Choose a directory name for dependency files.
 
307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
308
AC_DEFUN([AM_SET_DEPDIR],
 
309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
311
])
 
312
 
 
313
 
 
314
# AM_DEP_TRACK
 
315
# ------------
 
316
AC_DEFUN([AM_DEP_TRACK],
 
317
[AC_ARG_ENABLE(dependency-tracking,
 
318
[  --disable-dependency-tracking  speeds up one-time build
 
319
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
320
if test "x$enable_dependency_tracking" != xno; then
 
321
  am_depcomp="$ac_aux_dir/depcomp"
 
322
  AMDEPBACKSLASH='\'
 
323
fi
 
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
325
AC_SUBST([AMDEPBACKSLASH])dnl
 
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
327
])
 
328
 
 
329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
330
 
 
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
332
# Free Software Foundation, Inc.
 
333
#
 
334
# This file is free software; the Free Software Foundation
 
335
# gives unlimited permission to copy and/or distribute it,
 
336
# with or without modifications, as long as this notice is preserved.
 
337
 
 
338
#serial 5
 
339
 
 
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
341
# ------------------------------
 
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
343
[{
 
344
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
345
  # are listed without --file.  Let's play safe and only enable the eval
 
346
  # if we detect the quoting.
 
347
  case $CONFIG_FILES in
 
348
  *\'*) eval set x "$CONFIG_FILES" ;;
 
349
  *)   set x $CONFIG_FILES ;;
 
350
  esac
 
351
  shift
 
352
  for mf
 
353
  do
 
354
    # Strip MF so we end up with the name of the file.
 
355
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
356
    # Check whether this is an Automake generated Makefile or not.
 
357
    # We used to match only the files named `Makefile.in', but
 
358
    # some people rename them; so instead we look at the file content.
 
359
    # Grep'ing the first line is not enough: some people post-process
 
360
    # each Makefile.in and add a new line on top of each file to say so.
 
361
    # Grep'ing the whole file is not good either: AIX grep has a line
 
362
    # limit of 2048, but all sed's we know have understand at least 4000.
 
363
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
364
      dirpart=`AS_DIRNAME("$mf")`
 
365
    else
 
366
      continue
 
367
    fi
 
368
    # Extract the definition of DEPDIR, am__include, and am__quote
 
369
    # from the Makefile without running `make'.
 
370
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
371
    test -z "$DEPDIR" && continue
 
372
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
373
    test -z "am__include" && continue
 
374
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
375
    # When using ansi2knr, U may be empty or an underscore; expand it
 
376
    U=`sed -n 's/^U = //p' < "$mf"`
 
377
    # Find all dependency output files, they are included files with
 
378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
379
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
380
    # expansion.
 
381
    for file in `sed -n "
 
382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
383
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
384
      # Make sure the directory exists.
 
385
      test -f "$dirpart/$file" && continue
 
386
      fdir=`AS_DIRNAME(["$file"])`
 
387
      AS_MKDIR_P([$dirpart/$fdir])
 
388
      # echo "creating $dirpart/$file"
 
389
      echo '# dummy' > "$dirpart/$file"
 
390
    done
 
391
  done
 
392
}
 
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
394
 
 
395
 
 
396
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
397
# -----------------------------
 
398
# This macro should only be invoked once -- use via AC_REQUIRE.
 
399
#
 
400
# This code is only required when automatic dependency tracking
 
401
# is enabled.  FIXME.  This creates each `.P' file that we will
 
402
# need in order to bootstrap the dependency handling code.
 
403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
404
[AC_CONFIG_COMMANDS([depfiles],
 
405
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
406
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
407
])
 
408
 
 
409
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
410
# Free Software Foundation, Inc.
 
411
#
 
412
# This file is free software; the Free Software Foundation
 
413
# gives unlimited permission to copy and/or distribute it,
 
414
# with or without modifications, as long as this notice is preserved.
 
415
 
 
416
# serial 8
 
417
 
 
418
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
419
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
420
 
 
421
# Do all the work for Automake.                             -*- Autoconf -*-
 
422
 
 
423
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
424
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
425
#
 
426
# This file is free software; the Free Software Foundation
 
427
# gives unlimited permission to copy and/or distribute it,
 
428
# with or without modifications, as long as this notice is preserved.
 
429
 
 
430
# serial 16
 
431
 
 
432
# This macro actually does too much.  Some checks are only needed if
 
433
# your package does certain things.  But this isn't really a big deal.
 
434
 
 
435
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
436
# AM_INIT_AUTOMAKE([OPTIONS])
 
437
# -----------------------------------------------
 
438
# The call with PACKAGE and VERSION arguments is the old style
 
439
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
440
# and VERSION should now be passed to AC_INIT and removed from
 
441
# the call to AM_INIT_AUTOMAKE.
 
442
# We support both call styles for the transition.  After
 
443
# the next Automake release, Autoconf can make the AC_INIT
 
444
# arguments mandatory, and then we can depend on a new Autoconf
 
445
# release and drop the old call support.
 
446
AC_DEFUN([AM_INIT_AUTOMAKE],
 
447
[AC_PREREQ([2.62])dnl
 
448
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
449
dnl the ones we care about.
 
450
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
451
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
452
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
453
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
454
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
455
  # is not polluted with repeated "-I."
 
456
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
457
  # test to see if srcdir already configured
 
458
  if test -f $srcdir/config.status; then
 
459
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
460
  fi
 
461
fi
 
462
 
 
463
# test whether we have cygpath
 
464
if test -z "$CYGPATH_W"; then
 
465
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
466
    CYGPATH_W='cygpath -w'
 
467
  else
 
468
    CYGPATH_W=echo
 
469
  fi
 
470
fi
 
471
AC_SUBST([CYGPATH_W])
 
472
 
 
473
# Define the identity of the package.
 
474
dnl Distinguish between old-style and new-style calls.
 
475
m4_ifval([$2],
 
476
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
477
 AC_SUBST([PACKAGE], [$1])dnl
 
478
 AC_SUBST([VERSION], [$2])],
 
479
[_AM_SET_OPTIONS([$1])dnl
 
480
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
481
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
482
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
483
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
484
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
485
 
 
486
_AM_IF_OPTION([no-define],,
 
487
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
488
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
489
 
 
490
# Some tools Automake needs.
 
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
493
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
494
AM_MISSING_PROG(AUTOCONF, autoconf)
 
495
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
496
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
497
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
500
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
501
# We need awk for the "check" target.  The system "awk" is bad on
 
502
# some platforms.
 
503
AC_REQUIRE([AC_PROG_AWK])dnl
 
504
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
505
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
506
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
507
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
508
                             [_AM_PROG_TAR([v7])])])
 
509
_AM_IF_OPTION([no-dependencies],,
 
510
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
511
                  [_AM_DEPENDENCIES(CC)],
 
512
                  [define([AC_PROG_CC],
 
513
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
514
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
515
                  [_AM_DEPENDENCIES(CXX)],
 
516
                  [define([AC_PROG_CXX],
 
517
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
518
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
519
                  [_AM_DEPENDENCIES(OBJC)],
 
520
                  [define([AC_PROG_OBJC],
 
521
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
522
])
 
523
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
524
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
525
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
526
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
527
AC_CONFIG_COMMANDS_PRE(dnl
 
528
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
529
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
530
])
 
531
 
 
532
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
533
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
534
dnl mangled by Autoconf and run in a shell conditional statement.
 
535
m4_define([_AC_COMPILER_EXEEXT],
 
536
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
537
 
 
538
 
 
539
# When config.status generates a header, we must update the stamp-h file.
 
540
# This file resides in the same directory as the config header
 
541
# that is generated.  The stamp files are numbered to have different names.
 
542
 
 
543
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
544
# loop where config.status creates the headers, so we can generate
 
545
# our stamp files there.
 
546
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
547
[# Compute $1's index in $config_headers.
 
548
_am_arg=$1
 
549
_am_stamp_count=1
 
550
for _am_header in $config_headers :; do
 
551
  case $_am_header in
 
552
    $_am_arg | $_am_arg:* )
 
553
      break ;;
 
554
    * )
 
555
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
556
  esac
 
557
done
 
558
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
559
 
 
560
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
561
#
 
562
# This file is free software; the Free Software Foundation
 
563
# gives unlimited permission to copy and/or distribute it,
 
564
# with or without modifications, as long as this notice is preserved.
 
565
 
 
566
# AM_PROG_INSTALL_SH
 
567
# ------------------
 
568
# Define $install_sh.
 
569
AC_DEFUN([AM_PROG_INSTALL_SH],
 
570
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
571
if test x"${install_sh}" != xset; then
 
572
  case $am_aux_dir in
 
573
  *\ * | *\     *)
 
574
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
575
  *)
 
576
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
577
  esac
 
578
fi
 
579
AC_SUBST(install_sh)])
 
580
 
 
581
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
582
#
 
583
# This file is free software; the Free Software Foundation
 
584
# gives unlimited permission to copy and/or distribute it,
 
585
# with or without modifications, as long as this notice is preserved.
 
586
 
 
587
# serial 2
 
588
 
 
589
# Check whether the underlying file-system supports filenames
 
590
# with a leading dot.  For instance MS-DOS doesn't.
 
591
AC_DEFUN([AM_SET_LEADING_DOT],
 
592
[rm -rf .tst 2>/dev/null
 
593
mkdir .tst 2>/dev/null
 
594
if test -d .tst; then
 
595
  am__leading_dot=.
 
596
else
 
597
  am__leading_dot=_
 
598
fi
 
599
rmdir .tst 2>/dev/null
 
600
AC_SUBST([am__leading_dot])])
 
601
 
 
602
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
603
 
 
604
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
605
#
 
606
# This file is free software; the Free Software Foundation
 
607
# gives unlimited permission to copy and/or distribute it,
 
608
# with or without modifications, as long as this notice is preserved.
 
609
 
 
610
# serial 4
 
611
 
 
612
# AM_MAKE_INCLUDE()
 
613
# -----------------
 
614
# Check to see how make treats includes.
 
615
AC_DEFUN([AM_MAKE_INCLUDE],
 
616
[am_make=${MAKE-make}
 
617
cat > confinc << 'END'
 
618
am__doit:
 
619
        @echo this is the am__doit target
 
620
.PHONY: am__doit
 
621
END
 
622
# If we don't find an include directive, just comment out the code.
 
623
AC_MSG_CHECKING([for style of include used by $am_make])
 
624
am__include="#"
 
625
am__quote=
 
626
_am_result=none
 
627
# First try GNU make style include.
 
628
echo "include confinc" > confmf
 
629
# Ignore all kinds of additional output from `make'.
 
630
case `$am_make -s -f confmf 2> /dev/null` in #(
 
631
*the\ am__doit\ target*)
 
632
  am__include=include
 
633
  am__quote=
 
634
  _am_result=GNU
 
635
  ;;
 
636
esac
 
637
# Now try BSD make style include.
 
638
if test "$am__include" = "#"; then
 
639
   echo '.include "confinc"' > confmf
 
640
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
641
   *the\ am__doit\ target*)
 
642
     am__include=.include
 
643
     am__quote="\""
 
644
     _am_result=BSD
 
645
     ;;
 
646
   esac
 
647
fi
 
648
AC_SUBST([am__include])
 
649
AC_SUBST([am__quote])
 
650
AC_MSG_RESULT([$_am_result])
 
651
rm -f confinc confmf
 
652
])
 
653
 
 
654
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
655
 
 
656
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
657
# Free Software Foundation, Inc.
 
658
#
 
659
# This file is free software; the Free Software Foundation
 
660
# gives unlimited permission to copy and/or distribute it,
 
661
# with or without modifications, as long as this notice is preserved.
 
662
 
 
663
# serial 6
 
664
 
 
665
# AM_MISSING_PROG(NAME, PROGRAM)
 
666
# ------------------------------
 
667
AC_DEFUN([AM_MISSING_PROG],
 
668
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
669
$1=${$1-"${am_missing_run}$2"}
 
670
AC_SUBST($1)])
 
671
 
 
672
 
 
673
# AM_MISSING_HAS_RUN
 
674
# ------------------
 
675
# Define MISSING if not defined so far and test if it supports --run.
 
676
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
677
AC_DEFUN([AM_MISSING_HAS_RUN],
 
678
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
679
AC_REQUIRE_AUX_FILE([missing])dnl
 
680
if test x"${MISSING+set}" != xset; then
 
681
  case $am_aux_dir in
 
682
  *\ * | *\     *)
 
683
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
684
  *)
 
685
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
686
  esac
 
687
fi
 
688
# Use eval to expand $SHELL
 
689
if eval "$MISSING --run true"; then
 
690
  am_missing_run="$MISSING --run "
 
691
else
 
692
  am_missing_run=
 
693
  AC_MSG_WARN([`missing' script is too old or missing])
 
694
fi
 
695
])
 
696
 
 
697
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
698
#
 
699
# This file is free software; the Free Software Foundation
 
700
# gives unlimited permission to copy and/or distribute it,
 
701
# with or without modifications, as long as this notice is preserved.
 
702
 
 
703
# AM_PROG_MKDIR_P
 
704
# ---------------
 
705
# Check for `mkdir -p'.
 
706
AC_DEFUN([AM_PROG_MKDIR_P],
 
707
[AC_PREREQ([2.60])dnl
 
708
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
709
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
710
dnl while keeping a definition of mkdir_p for backward compatibility.
 
711
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
712
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
713
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
714
dnl adjustment using top_builddir (which is defined more often than
 
715
dnl MKDIR_P).
 
716
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
717
case $mkdir_p in
 
718
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
719
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
720
esac
 
721
])
 
722
 
 
723
# Helper functions for option handling.                     -*- Autoconf -*-
 
724
 
 
725
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
726
#
 
727
# This file is free software; the Free Software Foundation
 
728
# gives unlimited permission to copy and/or distribute it,
 
729
# with or without modifications, as long as this notice is preserved.
 
730
 
 
731
# serial 4
 
732
 
 
733
# _AM_MANGLE_OPTION(NAME)
 
734
# -----------------------
 
735
AC_DEFUN([_AM_MANGLE_OPTION],
 
736
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
737
 
 
738
# _AM_SET_OPTION(NAME)
 
739
# ------------------------------
 
740
# Set option NAME.  Presently that only means defining a flag for this option.
 
741
AC_DEFUN([_AM_SET_OPTION],
 
742
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
743
 
 
744
# _AM_SET_OPTIONS(OPTIONS)
 
745
# ----------------------------------
 
746
# OPTIONS is a space-separated list of Automake options.
 
747
AC_DEFUN([_AM_SET_OPTIONS],
 
748
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
749
 
 
750
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
751
# -------------------------------------------
 
752
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
753
AC_DEFUN([_AM_IF_OPTION],
 
754
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
755
 
 
756
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
757
 
 
758
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
759
# Free Software Foundation, Inc.
 
760
#
 
761
# This file is free software; the Free Software Foundation
 
762
# gives unlimited permission to copy and/or distribute it,
 
763
# with or without modifications, as long as this notice is preserved.
 
764
 
 
765
# serial 5
 
766
 
 
767
# AM_SANITY_CHECK
 
768
# ---------------
 
769
AC_DEFUN([AM_SANITY_CHECK],
 
770
[AC_MSG_CHECKING([whether build environment is sane])
 
771
# Just in case
 
772
sleep 1
 
773
echo timestamp > conftest.file
 
774
# Reject unsafe characters in $srcdir or the absolute working directory
 
775
# name.  Accept space and tab only in the latter.
 
776
am_lf='
 
777
'
 
778
case `pwd` in
 
779
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
780
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
781
esac
 
782
case $srcdir in
 
783
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
784
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
785
esac
 
786
 
 
787
# Do `set' in a subshell so we don't clobber the current shell's
 
788
# arguments.  Must try -L first in case configure is actually a
 
789
# symlink; some systems play weird games with the mod time of symlinks
 
790
# (eg FreeBSD returns the mod time of the symlink's containing
 
791
# directory).
 
792
if (
 
793
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
794
   if test "$[*]" = "X"; then
 
795
      # -L didn't work.
 
796
      set X `ls -t "$srcdir/configure" conftest.file`
 
797
   fi
 
798
   rm -f conftest.file
 
799
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
800
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
801
 
 
802
      # If neither matched, then we have a broken ls.  This can happen
 
803
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
804
      # broken ls alias from the environment.  This has actually
 
805
      # happened.  Such a system could not be considered "sane".
 
806
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
807
alias in your environment])
 
808
   fi
 
809
 
 
810
   test "$[2]" = conftest.file
 
811
   )
 
812
then
 
813
   # Ok.
 
814
   :
 
815
else
 
816
   AC_MSG_ERROR([newly created file is older than distributed files!
 
817
Check your system clock])
 
818
fi
 
819
AC_MSG_RESULT(yes)])
 
820
 
 
821
# Copyright (C) 2009  Free Software Foundation, Inc.
 
822
#
 
823
# This file is free software; the Free Software Foundation
 
824
# gives unlimited permission to copy and/or distribute it,
 
825
# with or without modifications, as long as this notice is preserved.
 
826
 
 
827
# serial 1
 
828
 
 
829
# AM_SILENT_RULES([DEFAULT])
 
830
# --------------------------
 
831
# Enable less verbose build rules; with the default set to DEFAULT
 
832
# (`yes' being less verbose, `no' or empty being verbose).
 
833
AC_DEFUN([AM_SILENT_RULES],
 
834
[AC_ARG_ENABLE([silent-rules],
 
835
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
836
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
837
case $enable_silent_rules in
 
838
yes) AM_DEFAULT_VERBOSITY=0;;
 
839
no)  AM_DEFAULT_VERBOSITY=1;;
 
840
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
841
esac
 
842
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
843
AM_BACKSLASH='\'
 
844
AC_SUBST([AM_BACKSLASH])dnl
 
845
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
846
])
 
847
 
 
848
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
849
#
 
850
# This file is free software; the Free Software Foundation
 
851
# gives unlimited permission to copy and/or distribute it,
 
852
# with or without modifications, as long as this notice is preserved.
 
853
 
 
854
# AM_PROG_INSTALL_STRIP
 
855
# ---------------------
 
856
# One issue with vendor `install' (even GNU) is that you can't
 
857
# specify the program used to strip binaries.  This is especially
 
858
# annoying in cross-compiling environments, where the build's strip
 
859
# is unlikely to handle the host's binaries.
 
860
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
861
# always use install-sh in `make install-strip', and initialize
 
862
# STRIPPROG with the value of the STRIP variable (set by the user).
 
863
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
864
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
865
# Installed binaries are usually stripped using `strip' when the user
 
866
# run `make install-strip'.  However `strip' might not be the right
 
867
# tool to use in cross-compilation environments, therefore Automake
 
868
# will honor the `STRIP' environment variable to overrule this program.
 
869
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
870
if test "$cross_compiling" != no; then
 
871
  AC_CHECK_TOOL([STRIP], [strip], :)
 
872
fi
 
873
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
874
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
875
 
 
876
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
877
#
 
878
# This file is free software; the Free Software Foundation
 
879
# gives unlimited permission to copy and/or distribute it,
 
880
# with or without modifications, as long as this notice is preserved.
 
881
 
 
882
# serial 2
 
883
 
 
884
# _AM_SUBST_NOTMAKE(VARIABLE)
 
885
# ---------------------------
 
886
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
887
# This macro is traced by Automake.
 
888
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
889
 
 
890
# AM_SUBST_NOTMAKE(VARIABLE)
 
891
# ---------------------------
 
892
# Public sister of _AM_SUBST_NOTMAKE.
 
893
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
894
 
 
895
# Check how to create a tarball.                            -*- Autoconf -*-
 
896
 
 
897
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
898
#
 
899
# This file is free software; the Free Software Foundation
 
900
# gives unlimited permission to copy and/or distribute it,
 
901
# with or without modifications, as long as this notice is preserved.
 
902
 
 
903
# serial 2
 
904
 
 
905
# _AM_PROG_TAR(FORMAT)
 
906
# --------------------
 
907
# Check how to create a tarball in format FORMAT.
 
908
# FORMAT should be one of `v7', `ustar', or `pax'.
 
909
#
 
910
# Substitute a variable $(am__tar) that is a command
 
911
# writing to stdout a FORMAT-tarball containing the directory
 
912
# $tardir.
 
913
#     tardir=directory && $(am__tar) > result.tar
 
914
#
 
915
# Substitute a variable $(am__untar) that extract such
 
916
# a tarball read from stdin.
 
917
#     $(am__untar) < result.tar
 
918
AC_DEFUN([_AM_PROG_TAR],
 
919
[# Always define AMTAR for backward compatibility.
 
920
AM_MISSING_PROG([AMTAR], [tar])
 
921
m4_if([$1], [v7],
 
922
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
923
     [m4_case([$1], [ustar],, [pax],,
 
924
              [m4_fatal([Unknown tar format])])
 
925
AC_MSG_CHECKING([how to create a $1 tar archive])
 
926
# Loop over all known methods to create a tar archive until one works.
 
927
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
928
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
929
# Do not fold the above two line into one, because Tru64 sh and
 
930
# Solaris sh will not grok spaces in the rhs of `-'.
 
931
for _am_tool in $_am_tools
 
932
do
 
933
  case $_am_tool in
 
934
  gnutar)
 
935
    for _am_tar in tar gnutar gtar;
 
936
    do
 
937
      AM_RUN_LOG([$_am_tar --version]) && break
 
938
    done
 
939
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
940
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
941
    am__untar="$_am_tar -xf -"
 
942
    ;;
 
943
  plaintar)
 
944
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
945
    # ustar tarball either.
 
946
    (tar --version) >/dev/null 2>&1 && continue
 
947
    am__tar='tar chf - "$$tardir"'
 
948
    am__tar_='tar chf - "$tardir"'
 
949
    am__untar='tar xf -'
 
950
    ;;
 
951
  pax)
 
952
    am__tar='pax -L -x $1 -w "$$tardir"'
 
953
    am__tar_='pax -L -x $1 -w "$tardir"'
 
954
    am__untar='pax -r'
 
955
    ;;
 
956
  cpio)
 
957
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
958
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
959
    am__untar='cpio -i -H $1 -d'
 
960
    ;;
 
961
  none)
 
962
    am__tar=false
 
963
    am__tar_=false
 
964
    am__untar=false
 
965
    ;;
 
966
  esac
 
967
 
 
968
  # If the value was cached, stop now.  We just wanted to have am__tar
 
969
  # and am__untar set.
 
970
  test -n "${am_cv_prog_tar_$1}" && break
 
971
 
 
972
  # tar/untar a dummy directory, and stop if the command works
 
973
  rm -rf conftest.dir
 
974
  mkdir conftest.dir
 
975
  echo GrepMe > conftest.dir/file
 
976
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
977
  rm -rf conftest.dir
 
978
  if test -s conftest.tar; then
 
979
    AM_RUN_LOG([$am__untar <conftest.tar])
 
980
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
981
  fi
 
982
done
 
983
rm -rf conftest.dir
 
984
 
 
985
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
986
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
987
AC_SUBST([am__tar])
 
988
AC_SUBST([am__untar])
 
989
]) # _AM_PROG_TAR
 
990
 
 
991
dnl xorg-macros.m4.  Generated from xorg-macros.m4.in xorgversion.m4 by configure.
 
992
dnl
 
993
dnl Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.
 
994
dnl 
 
995
dnl Permission is hereby granted, free of charge, to any person obtaining a
 
996
dnl copy of this software and associated documentation files (the
 
997
dnl "Software"), to deal in the Software without restriction, including
 
998
dnl without limitation the rights to use, copy, modify, merge, publish,
 
999
dnl distribute, and/or sell copies of the Software, and to permit persons
 
1000
dnl to whom the Software is furnished to do so, provided that the above
 
1001
dnl copyright notice(s) and this permission notice appear in all copies of
 
1002
dnl the Software and that both the above copyright notice(s) and this
 
1003
dnl permission notice appear in supporting documentation.
 
1004
dnl
 
1005
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
1006
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
1007
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
 
1008
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 
1009
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
 
1010
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
 
1011
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 
1012
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 
1013
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
1014
dnl
 
1015
dnl Except as contained in this notice, the name of a copyright holder
 
1016
dnl shall not be used in advertising or otherwise to promote the sale, use
 
1017
dnl or other dealings in this Software without prior written authorization
 
1018
dnl of the copyright holder.
 
1019
 
 
1020
# XORG_MACROS_VERSION(required-version)
 
1021
# -------------------------------------
 
1022
# Minimum version: 1.1.0
 
1023
#
 
1024
# If you're using a macro added in Version 1.1 or newer, include this in
 
1025
# your configure.ac with the minimum required version, such as:
 
1026
# XORG_MACROS_VERSION(1.1)
 
1027
#
 
1028
# To ensure that this macro is defined, also add:
 
1029
# m4_ifndef([XORG_MACROS_VERSION],
 
1030
#     [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
 
1031
#
 
1032
#
 
1033
# See the "minimum version" comment for each macro you use to see what 
 
1034
# version you require.
 
1035
m4_defun([XORG_MACROS_VERSION],[
 
1036
m4_define([vers_have], [1.3.0])
 
1037
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
 
1038
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
 
1039
m4_if(m4_cmp(maj_have, maj_needed), 0,,
 
1040
    [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
 
1041
m4_if(m4_version_compare(vers_have, [$1]), -1,
 
1042
    [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
 
1043
m4_undefine([vers_have])
 
1044
m4_undefine([maj_have])
 
1045
m4_undefine([maj_needed])
 
1046
]) # XORG_MACROS_VERSION
 
1047
 
 
1048
# XORG_PROG_RAWCPP()
 
1049
# ------------------
 
1050
# Minimum version: 1.0.0
 
1051
#
 
1052
# Find cpp program and necessary flags for use in pre-processing text files
 
1053
# such as man pages and config files
 
1054
AC_DEFUN([XORG_PROG_RAWCPP],[
 
1055
AC_REQUIRE([AC_PROG_CPP])
 
1056
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 
 
1057
   [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
 
1058
 
 
1059
# Check for flag to avoid builtin definitions - assumes unix is predefined,
 
1060
# which is not the best choice for supporting other OS'es, but covers most
 
1061
# of the ones we need for now.
 
1062
AC_MSG_CHECKING([if $RAWCPP requires -undef])
 
1063
AC_LANG_CONFTEST([Does cpp redefine unix ?])
 
1064
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
 
1065
        AC_MSG_RESULT([no])
 
1066
else
 
1067
        if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
 
1068
                RAWCPPFLAGS=-undef
 
1069
                AC_MSG_RESULT([yes])
 
1070
        # under Cygwin unix is still defined even with -undef
 
1071
        elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
 
1072
                RAWCPPFLAGS="-undef -ansi"
 
1073
                AC_MSG_RESULT([yes, with -ansi])
 
1074
        else
 
1075
                AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef.  I don't know what to do.])
 
1076
        fi
 
1077
fi
 
1078
rm -f conftest.$ac_ext
 
1079
 
 
1080
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
 
1081
AC_LANG_CONFTEST([Does cpp preserve   "whitespace"?])
 
1082
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
 
1083
        AC_MSG_RESULT([no])
 
1084
else
 
1085
        if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
 
1086
                RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
 
1087
                AC_MSG_RESULT([yes])
 
1088
        else
 
1089
                AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do.])
 
1090
        fi
 
1091
fi
 
1092
rm -f conftest.$ac_ext
 
1093
AC_SUBST(RAWCPPFLAGS)
 
1094
]) # XORG_PROG_RAWCPP
 
1095
 
 
1096
# XORG_MANPAGE_SECTIONS()
 
1097
# -----------------------
 
1098
# Minimum version: 1.0.0
 
1099
#
 
1100
# Determine which sections man pages go in for the different man page types
 
1101
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
 
1102
# Not sure if there's any better way than just hardcoding by OS name.
 
1103
# Override default settings by setting environment variables
 
1104
 
 
1105
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
 
1106
AC_REQUIRE([AC_CANONICAL_HOST])
 
1107
 
 
1108
if test x$APP_MAN_SUFFIX = x    ; then
 
1109
    APP_MAN_SUFFIX=1
 
1110
fi
 
1111
if test x$APP_MAN_DIR = x    ; then
 
1112
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
1113
fi
 
1114
 
 
1115
if test x$LIB_MAN_SUFFIX = x    ; then
 
1116
    LIB_MAN_SUFFIX=3
 
1117
fi
 
1118
if test x$LIB_MAN_DIR = x    ; then
 
1119
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
1120
fi
 
1121
 
 
1122
if test x$FILE_MAN_SUFFIX = x    ; then
 
1123
    case $host_os in
 
1124
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
1125
        *)              FILE_MAN_SUFFIX=5  ;;
 
1126
    esac
 
1127
fi
 
1128
if test x$FILE_MAN_DIR = x    ; then
 
1129
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
1130
fi
 
1131
 
 
1132
if test x$MISC_MAN_SUFFIX = x    ; then
 
1133
    case $host_os in
 
1134
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
1135
        *)              MISC_MAN_SUFFIX=7  ;;
 
1136
    esac
 
1137
fi
 
1138
if test x$MISC_MAN_DIR = x    ; then
 
1139
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
1140
fi
 
1141
 
 
1142
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
1143
    case $host_os in
 
1144
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
1145
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
1146
    esac
 
1147
fi
 
1148
if test x$DRIVER_MAN_DIR = x    ; then
 
1149
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
1150
fi
 
1151
 
 
1152
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
1153
    case $host_os in
 
1154
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
1155
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
1156
    esac
 
1157
fi
 
1158
if test x$ADMIN_MAN_DIR = x    ; then
 
1159
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
1160
fi
 
1161
 
 
1162
 
 
1163
AC_SUBST([APP_MAN_SUFFIX])
 
1164
AC_SUBST([LIB_MAN_SUFFIX])
 
1165
AC_SUBST([FILE_MAN_SUFFIX])
 
1166
AC_SUBST([MISC_MAN_SUFFIX])
 
1167
AC_SUBST([DRIVER_MAN_SUFFIX])
 
1168
AC_SUBST([ADMIN_MAN_SUFFIX])
 
1169
AC_SUBST([APP_MAN_DIR])
 
1170
AC_SUBST([LIB_MAN_DIR])
 
1171
AC_SUBST([FILE_MAN_DIR])
 
1172
AC_SUBST([MISC_MAN_DIR])
 
1173
AC_SUBST([DRIVER_MAN_DIR])
 
1174
AC_SUBST([ADMIN_MAN_DIR])
 
1175
]) # XORG_MANPAGE_SECTIONS
 
1176
 
 
1177
# XORG_CHECK_LINUXDOC
 
1178
# -------------------
 
1179
# Minimum version: 1.0.0
 
1180
#
 
1181
# Defines the variable MAKE_TEXT if the necessary tools and
 
1182
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
 
1183
# Whether or not the necessary tools and files are found can be checked
 
1184
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
 
1185
AC_DEFUN([XORG_CHECK_LINUXDOC],[
 
1186
if test x$XORG_SGML_PATH = x ; then
 
1187
    XORG_SGML_PATH=$prefix/share/sgml
 
1188
fi
 
1189
HAVE_DEFS_ENT=
 
1190
 
 
1191
if test x"$cross_compiling" = x"yes" ; then
 
1192
  HAVE_DEFS_ENT=no
 
1193
else
 
1194
  AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
 
1195
fi
 
1196
 
 
1197
AC_PATH_PROG(LINUXDOC, linuxdoc)
 
1198
AC_PATH_PROG(PS2PDF, ps2pdf)
 
1199
 
 
1200
AC_MSG_CHECKING([Whether to build documentation])
 
1201
 
 
1202
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
 
1203
   BUILDDOC=yes
 
1204
else
 
1205
   BUILDDOC=no
 
1206
fi
 
1207
 
 
1208
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
 
1209
 
 
1210
AC_MSG_RESULT([$BUILDDOC])
 
1211
 
 
1212
AC_MSG_CHECKING([Whether to build pdf documentation])
 
1213
 
 
1214
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
 
1215
   BUILDPDFDOC=yes
 
1216
else
 
1217
   BUILDPDFDOC=no
 
1218
fi
 
1219
 
 
1220
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
 
1221
 
 
1222
AC_MSG_RESULT([$BUILDPDFDOC])
 
1223
 
 
1224
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
 
1225
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
 
1226
MAKE_PDF="$PS2PDF"
 
1227
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
 
1228
 
 
1229
AC_SUBST(MAKE_TEXT)
 
1230
AC_SUBST(MAKE_PS)
 
1231
AC_SUBST(MAKE_PDF)
 
1232
AC_SUBST(MAKE_HTML)
 
1233
]) # XORG_CHECK_LINUXDOC
 
1234
 
 
1235
# XORG_CHECK_DOCBOOK
 
1236
# -------------------
 
1237
# Minimum version: 1.0.0
 
1238
#
 
1239
# Checks for the ability to build output formats from SGML DocBook source.
 
1240
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
 
1241
# indicates whether the necessary tools and files are found and, if set,
 
1242
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
 
1243
AC_DEFUN([XORG_CHECK_DOCBOOK],[
 
1244
if test x$XORG_SGML_PATH = x ; then
 
1245
    XORG_SGML_PATH=$prefix/share/sgml
 
1246
fi
 
1247
HAVE_DEFS_ENT=
 
1248
BUILDTXTDOC=no
 
1249
BUILDPDFDOC=no
 
1250
BUILDPSDOC=no
 
1251
BUILDHTMLDOC=no
 
1252
 
 
1253
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
 
1254
 
 
1255
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
 
1256
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
 
1257
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
 
1258
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
 
1259
 
 
1260
AC_MSG_CHECKING([Whether to build text documentation])
 
1261
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
 
1262
   test x$BUILD_TXTDOC != xno; then
 
1263
        BUILDTXTDOC=yes
 
1264
fi
 
1265
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
 
1266
AC_MSG_RESULT([$BUILDTXTDOC])
 
1267
 
 
1268
AC_MSG_CHECKING([Whether to build PDF documentation])
 
1269
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
 
1270
   test x$BUILD_PDFDOC != xno; then
 
1271
        BUILDPDFDOC=yes
 
1272
fi
 
1273
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
 
1274
AC_MSG_RESULT([$BUILDPDFDOC])
 
1275
 
 
1276
AC_MSG_CHECKING([Whether to build PostScript documentation])
 
1277
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
 
1278
   test x$BUILD_PSDOC != xno; then
 
1279
        BUILDPSDOC=yes
 
1280
fi
 
1281
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
 
1282
AC_MSG_RESULT([$BUILDPSDOC])
 
1283
 
 
1284
AC_MSG_CHECKING([Whether to build HTML documentation])
 
1285
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
 
1286
   test x$BUILD_HTMLDOC != xno; then
 
1287
        BUILDHTMLDOC=yes
 
1288
fi
 
1289
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
 
1290
AC_MSG_RESULT([$BUILDHTMLDOC])
 
1291
 
 
1292
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
 
1293
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
 
1294
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
 
1295
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
 
1296
 
 
1297
AC_SUBST(MAKE_TEXT)
 
1298
AC_SUBST(MAKE_PS)
 
1299
AC_SUBST(MAKE_PDF)
 
1300
AC_SUBST(MAKE_HTML)
 
1301
]) # XORG_CHECK_DOCBOOK
 
1302
 
 
1303
# XORG_CHECK_MALLOC_ZERO
 
1304
# ----------------------
 
1305
# Minimum version: 1.0.0
 
1306
#
 
1307
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
 
1308
# malloc(0) returns NULL.  Packages should add one of these cflags to
 
1309
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
 
1310
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
 
1311
AC_ARG_ENABLE(malloc0returnsnull,
 
1312
        AS_HELP_STRING([--enable-malloc0returnsnull],
 
1313
                       [malloc(0) returns NULL (default: auto)]),
 
1314
        [MALLOC_ZERO_RETURNS_NULL=$enableval],
 
1315
        [MALLOC_ZERO_RETURNS_NULL=auto])
 
1316
 
 
1317
AC_MSG_CHECKING([whether malloc(0) returns NULL])
 
1318
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
 
1319
        AC_RUN_IFELSE([
 
1320
char *malloc();
 
1321
char *realloc();
 
1322
char *calloc();
 
1323
main() {
 
1324
    char *m0, *r0, *c0, *p;
 
1325
    m0 = malloc(0);
 
1326
    p = malloc(10);
 
1327
    r0 = realloc(p,0);
 
1328
    c0 = calloc(0);
 
1329
    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
 
1330
}],
 
1331
                [MALLOC_ZERO_RETURNS_NULL=yes],
 
1332
                [MALLOC_ZERO_RETURNS_NULL=no])
 
1333
fi
 
1334
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
 
1335
 
 
1336
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
 
1337
        MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
 
1338
        XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
 
1339
        XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
 
1340
else
 
1341
        MALLOC_ZERO_CFLAGS=""
 
1342
        XMALLOC_ZERO_CFLAGS=""
 
1343
        XTMALLOC_ZERO_CFLAGS=""
 
1344
fi
 
1345
 
 
1346
AC_SUBST([MALLOC_ZERO_CFLAGS])
 
1347
AC_SUBST([XMALLOC_ZERO_CFLAGS])
 
1348
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
 
1349
]) # XORG_CHECK_MALLOC_ZERO
 
1350
 
 
1351
# XORG_WITH_LINT()
 
1352
# ----------------
 
1353
# Minimum version: 1.1.0
 
1354
#
 
1355
# Sets up flags for source checkers such as lint and sparse if --with-lint
 
1356
# is specified.   (Use --with-lint=sparse for sparse.)
 
1357
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
 
1358
# Sets $LINT_FLAGS to flags to pass to source checker
 
1359
# Sets LINT automake conditional if enabled (default: disabled)
 
1360
#
 
1361
AC_DEFUN([XORG_WITH_LINT],[
 
1362
 
 
1363
# Allow checking code with lint, sparse, etc.
 
1364
AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
 
1365
                [Use a lint-style source code checker (default: disabled)])],
 
1366
                [use_lint=$withval], [use_lint=no])
 
1367
if test "x$use_lint" = "xyes" ; then
 
1368
        LINT="lint"
 
1369
else
 
1370
        LINT="$use_lint"
 
1371
fi
 
1372
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
 
1373
    case $LINT in
 
1374
        lint|*/lint)
 
1375
            case $host_os in
 
1376
                solaris*)
 
1377
                        LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
 
1378
                        ;;
 
1379
            esac
 
1380
            ;;
 
1381
    esac
 
1382
fi
 
1383
 
 
1384
AC_SUBST(LINT)
 
1385
AC_SUBST(LINT_FLAGS)
 
1386
AM_CONDITIONAL(LINT, [test x$LINT != xno])
 
1387
 
 
1388
]) # XORG_WITH_LINT
 
1389
 
 
1390
# XORG_LINT_LIBRARY(LIBNAME)
 
1391
# --------------------------
 
1392
# Minimum version: 1.1.0
 
1393
#
 
1394
# Sets up flags for building lint libraries for checking programs that call
 
1395
# functions in the library.
 
1396
# Disabled by default, enable with --enable-lint-library
 
1397
# Sets: 
 
1398
#       @LINTLIB@               - name of lint library file to make
 
1399
#       MAKE_LINT_LIB           - automake conditional
 
1400
#
 
1401
 
 
1402
AC_DEFUN([XORG_LINT_LIBRARY],[
 
1403
AC_REQUIRE([XORG_WITH_LINT])
 
1404
# Build lint "library" for more indepth checks of programs calling this library
 
1405
AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
 
1406
        [Create lint library (default: disabled)])],
 
1407
        [make_lint_lib=$enableval], [make_lint_lib=no])
 
1408
if test "x$make_lint_lib" != "xno" ; then
 
1409
        if test "x$LINT" = "xno" ; then
 
1410
                AC_MSG_ERROR([Cannot make lint library without --with-lint])
 
1411
        fi
 
1412
        if test "x$make_lint_lib" = "xyes" ; then
 
1413
                LINTLIB=llib-l$1.ln
 
1414
        else
 
1415
                LINTLIB=$make_lint_lib
 
1416
        fi
 
1417
fi
 
1418
AC_SUBST(LINTLIB)
 
1419
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
 
1420
 
 
1421
]) # XORG_LINT_LIBRARY
 
1422
 
 
1423
# XORG_CWARNFLAGS
 
1424
# ---------------
 
1425
# Minimum version: 1.2.0
 
1426
#
 
1427
# Defines CWARNFLAGS to enable C compiler warnings.
 
1428
#
 
1429
AC_DEFUN([XORG_CWARNFLAGS], [
 
1430
AC_REQUIRE([AC_PROG_CC])
 
1431
if  test "x$GCC" = xyes ; then
 
1432
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
1433
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
1434
-Wbad-function-cast"
 
1435
    case `$CC -dumpversion` in
 
1436
    3.4.* | 4.*)
 
1437
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
1438
        ;;
 
1439
    esac
 
1440
else
 
1441
    AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
1442
    if test "x$SUNCC" = "xyes"; then
 
1443
        CWARNFLAGS="-v"
 
1444
    fi
 
1445
fi
 
1446
AC_SUBST(CWARNFLAGS)
 
1447
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
1448
]) # XORG_CWARNFLAGS
 
1449
 
 
1450
# XORG_STRICT_OPTION
 
1451
# -----------------------
 
1452
# Minimum version: 1.3.0
 
1453
#
 
1454
# Add configure option to enable strict compilation
 
1455
AC_DEFUN([XORG_STRICT_OPTION], [
 
1456
AC_REQUIRE([AC_PROG_CC])
 
1457
AC_REQUIRE([AC_PROG_CC_C99])
 
1458
AC_REQUIRE([XORG_CWARNFLAGS])
 
1459
 
 
1460
AC_ARG_ENABLE(strict-compilation,
 
1461
                          AS_HELP_STRING([--enable-strict-compilation],
 
1462
                          [Enable all warnings from compiler and make them errors (default: disabled)]),
 
1463
                          [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
 
1464
if test "x$STRICT_COMPILE" = "xyes"; then
 
1465
        AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
 
1466
        AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
 
1467
        if test "x$GCC" = xyes ; then
 
1468
                STRICT_CFLAGS="-pedantic -Werror"
 
1469
        elif test "x$SUNCC" = "xyes"; then
 
1470
                STRICT_CFLAGS="-errwarn"
 
1471
    elif test "x$INTELCC" = "xyes"; then
 
1472
                STRICT_CFLAGS="-Werror"
 
1473
        fi
 
1474
fi
 
1475
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
1476
AC_SUBST([CWARNFLAGS])
 
1477
]) # XORG_STRICT_OPTION
 
1478
 
 
1479
# XORG_DEFAULT_OPTIONS
 
1480
# --------------------
 
1481
# Minimum version: 1.3.0
 
1482
#
 
1483
# Defines default options for X.Org modules.
 
1484
#
 
1485
AC_DEFUN([XORG_DEFAULT_OPTIONS], [
 
1486
XORG_CWARNFLAGS
 
1487
XORG_STRICT_OPTION
 
1488
XORG_RELEASE_VERSION
 
1489
XORG_CHANGELOG
 
1490
XORG_MANPAGE_SECTIONS
 
1491
]) # XORG_DEFAULT_OPTIONS
 
1492
dnl Copyright 2005 Red Hat, Inc
 
1493
dnl
 
1494
dnl Permission to use, copy, modify, distribute, and sell this software and its
 
1495
dnl documentation for any purpose is hereby granted without fee, provided that
 
1496
dnl the above copyright notice appear in all copies and that both that
 
1497
dnl copyright notice and this permission notice appear in supporting
 
1498
dnl documentation.
 
1499
dnl
 
1500
dnl The above copyright notice and this permission notice shall be included
 
1501
dnl in all copies or substantial portions of the Software.
 
1502
dnl
 
1503
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
1504
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
1505
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
1506
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
1507
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
1508
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
1509
dnl OTHER DEALINGS IN THE SOFTWARE.
 
1510
dnl
 
1511
dnl Except as contained in this notice, the name of the copyright holders shall
 
1512
dnl not be used in advertising or otherwise to promote the sale, use or
 
1513
dnl other dealings in this Software without prior written authorization
 
1514
dnl from the copyright holders.
 
1515
dnl
 
1516
 
 
1517
# XORG_RELEASE_VERSION
 
1518
# --------------------
 
1519
# Adds --with/without-release-string and changes the PACKAGE and
 
1520
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
 
1521
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.  Also
 
1522
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
 
1523
 
 
1524
AC_DEFUN([XORG_RELEASE_VERSION],[
 
1525
        AC_ARG_WITH(release-version,
 
1526
                        AS_HELP_STRING([--with-release-version=STRING],
 
1527
                                [Use release version string in package name]),
 
1528
                        [RELEASE_VERSION="$withval"],
 
1529
                        [RELEASE_VERSION=""])
 
1530
        if test "x$RELEASE_VERSION" != "x"; then
 
1531
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
1532
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
1533
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
 
1534
        fi
 
1535
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
 
1536
                [`echo $PACKAGE_VERSION | cut -d . -f 1`],
 
1537
                [Major version of this package])
 
1538
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
1539
        if test "x$PVM" = "x"; then
 
1540
                PVM="0"
 
1541
        fi
 
1542
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
 
1543
                [$PVM],
 
1544
                [Minor version of this package])
 
1545
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
1546
        if test "x$PVP" = "x"; then
 
1547
                PVP="0"
 
1548
        fi
 
1549
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
 
1550
                [$PVP],
 
1551
                [Patch version of this package])
 
1552
])
 
1553
 
 
1554
# XORG_CHANGELOG()
 
1555
# ----------------
 
1556
# Minimum version: 1.2.0
 
1557
#
 
1558
# Defines the variable CHANGELOG_CMD as the command to generate
 
1559
# ChangeLog from git.
 
1560
#
 
1561
# Arrange that distcleancheck ignores ChangeLog left over by distclean.
 
1562
#
 
1563
AC_DEFUN([XORG_CHANGELOG], [
 
1564
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
1565
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
1566
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
1567
AC_SUBST([CHANGELOG_CMD])
 
1568
AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
 
1569
]) # XORG_CHANGELOG
 
1570
 
 
1571
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
 
1572
dnl
 
1573
dnl Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 
1574
dnl 
 
1575
dnl Permission to use, copy, modify, distribute, and sell this software and its
 
1576
dnl documentation for any purpose is hereby granted without fee, provided that
 
1577
dnl the above copyright notice appear in all copies and that both that
 
1578
dnl copyright notice and this permission notice appear in supporting
 
1579
dnl documentation.
 
1580
dnl 
 
1581
dnl The above copyright notice and this permission notice shall be included
 
1582
dnl in all copies or substantial portions of the Software.
 
1583
dnl 
 
1584
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
1585
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
1586
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
1587
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
1588
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
1589
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
1590
dnl OTHER DEALINGS IN THE SOFTWARE.
 
1591
dnl 
 
1592
dnl Except as contained in this notice, the name of the copyright holders shall
 
1593
dnl not be used in advertising or otherwise to promote the sale, use or
 
1594
dnl other dealings in this Software without prior written authorization
 
1595
dnl from the copyright holders.
 
1596
dnl 
 
1597
 
 
1598
# XTRANS_TCP_FLAGS()
 
1599
# ------------------
 
1600
# Find needed libraries for TCP sockets, and check for IPv6 support
 
1601
AC_DEFUN([XTRANS_TCP_FLAGS],[
 
1602
 # SVR4 hides these in libraries other than libc
 
1603
 AC_SEARCH_LIBS(socket, [socket])
 
1604
 AC_SEARCH_LIBS(gethostbyname, [nsl])
 
1605
 AC_HAVE_LIBRARY([ws2_32])
 
1606
 
 
1607
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
 
1608
 AC_ARG_ENABLE(ipv6, 
 
1609
        AC_HELP_STRING([--enable-ipv6],[Enable IPv6 support]),
 
1610
        [IPV6CONN=$enableval], 
 
1611
        [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
 
1612
 AC_MSG_CHECKING([if IPv6 support should be built])
 
1613
 if test "$IPV6CONN" = "yes"; then
 
1614
        AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
 
1615
 fi
 
1616
 AC_MSG_RESULT($IPV6CONN)
 
1617
 
 
1618
 # 4.3BSD-Reno added a new member to struct sockaddr_in
 
1619
 AC_CHECK_MEMBER([struct sockaddr_in.sin_len], 
 
1620
        AC_DEFINE([BSD44SOCKETS],1,
 
1621
            [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
 
1622
#include <sys/types.h>
 
1623
#include <sys/socket.h>
 
1624
#include <netinet/in.h>
 
1625
 ])
 
1626
 
 
1627
 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
 
1628
 AC_CHECK_TYPES([socklen_t], [], [], [
 
1629
AC_INCLUDES_DEFAULT
 
1630
#include <sys/socket.h>])
 
1631
 
 
1632
]) # XTRANS_TCP_FLAGS
 
1633
 
 
1634
# XTRANS_CONNECTION_FLAGS()
 
1635
# -------------------------
 
1636
# Standard checks for which Xtrans transports to use by the Xorg packages
 
1637
# that use Xtrans functions
 
1638
AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
 
1639
 AC_REQUIRE([AC_CANONICAL_HOST])
 
1640
 AC_REQUIRE([AC_TYPE_SIGNAL])
 
1641
 [case $host_os in
 
1642
        mingw*) unixdef="no"   ;;
 
1643
        *)      unixdef="yes"  ;;
 
1644
 esac]
 
1645
 AC_ARG_ENABLE(unix-transport,
 
1646
        AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
 
1647
        [UNIXCONN=$enableval], [UNIXCONN=$unixdef])
 
1648
 AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
 
1649
 if test "$UNIXCONN" = "yes"; then
 
1650
        AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
 
1651
 fi
 
1652
 AC_MSG_RESULT($UNIXCONN)
 
1653
 AC_ARG_ENABLE(tcp-transport, 
 
1654
        AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
 
1655
        [TCPCONN=$enableval], [TCPCONN=yes])
 
1656
 AC_MSG_CHECKING([if Xtrans should support TCP socket connections])
 
1657
 AC_MSG_RESULT($TCPCONN)
 
1658
 if test "$TCPCONN" = "yes"; then
 
1659
        AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
 
1660
        XTRANS_TCP_FLAGS
 
1661
 fi
 
1662
 [case $host_os in
 
1663
        solaris*|sco*|sysv4*)   localdef="yes" ;;
 
1664
        *)                      localdef="no"  ;;
 
1665
 esac]
 
1666
 AC_ARG_ENABLE(local-transport,
 
1667
        AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
 
1668
        [LOCALCONN=$enableval], [LOCALCONN=$localdef])
 
1669
 AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
 
1670
 AC_MSG_RESULT($LOCALCONN)
 
1671
 if test "$LOCALCONN" = "yes"; then
 
1672
        AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
 
1673
 fi
 
1674
 
 
1675
]) # XTRANS_CONNECTION_FLAGS
 
1676
 
 
1677
 
 
1678
# XTRANS_SECURE_RPC_FLAGS()
 
1679
# -------------------------
 
1680
# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS
 
1681
# so that any necessary networking libraries are already found
 
1682
AC_DEFUN([XTRANS_SECURE_RPC_FLAGS],
 
1683
[AC_REQUIRE([XTRANS_TCP_FLAGS])
 
1684
 AC_ARG_ENABLE(secure-rpc, 
 
1685
        AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]),
 
1686
        [SECURE_RPC=$enableval], [SECURE_RPC="try"])
 
1687
 
 
1688
 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
 
1689
        FOUND_SECURE_RPC="no"
 
1690
        AC_CHECK_FUNCS([authdes_seccreate authdes_create],
 
1691
                        [FOUND_SECURE_RPC="yes"])
 
1692
        if test "x$FOUND_SECURE_RPC" = "xno" ; then
 
1693
                if test "x$SECURE_RPC" = "xyes" ; then
 
1694
        AC_MSG_ERROR([Secure RPC requested, but required functions not found])
 
1695
                fi      
 
1696
                SECURE_RPC="no"
 
1697
        else
 
1698
                dnl FreeBSD keeps getsecretkey in librpcsvc
 
1699
                AC_SEARCH_LIBS(getsecretkey, [rpcsvc])
 
1700
                SECURE_RPC="yes"
 
1701
        fi
 
1702
 fi
 
1703
 AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported])
 
1704
 if test "x$SECURE_RPC" = "xyes" ; then
 
1705
        AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients])
 
1706
 fi
 
1707
 AC_MSG_RESULT($SECURE_RPC)
 
1708
]) # XTRANS_SECURE_RPC_FLAGS
 
1709
 
 
1710
 
22
1711
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23
 
#
24
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
26
 
#   Written by Gordon Matzigkeit, 1996
27
 
#
28
 
# This file is free software; the Free Software Foundation gives
29
 
# unlimited permission to copy and/or distribute it, with or without
30
 
# modifications, as long as this notice is preserved.
31
 
 
32
 
m4_define([_LT_COPYING], [dnl
33
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
35
 
#   Written by Gordon Matzigkeit, 1996
36
 
#
37
 
#   This file is part of GNU Libtool.
38
 
#
39
 
# GNU Libtool is free software; you can redistribute it and/or
40
 
# modify it under the terms of the GNU General Public License as
41
 
# published by the Free Software Foundation; either version 2 of
42
 
# the License, or (at your option) any later version.
43
 
#
44
 
# As a special exception to the GNU General Public License,
45
 
# if you distribute this file as part of a program or library that
46
 
# is built using GNU Libtool, you may include this file under the
47
 
# same distribution terms that you use for the rest of that program.
48
 
#
49
 
# GNU Libtool is distributed in the hope that it will be useful,
50
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
51
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
52
 
# GNU General Public License for more details.
53
 
#
54
 
# You should have received a copy of the GNU General Public License
55
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
56
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57
 
# obtained by writing to the Free Software Foundation, Inc.,
58
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59
 
])
60
 
 
61
 
# serial 56 LT_INIT
62
 
 
63
 
 
64
 
# LT_PREREQ(VERSION)
65
 
# ------------------
66
 
# Complain and exit if this libtool version is less that VERSION.
67
 
m4_defun([LT_PREREQ],
68
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
69
 
       [m4_default([$3],
70
 
                   [m4_fatal([Libtool version $1 or higher is required],
71
 
                             63)])],
72
 
       [$2])])
73
 
 
74
 
 
75
 
# _LT_CHECK_BUILDDIR
76
 
# ------------------
77
 
# Complain if the absolute build directory name contains unusual characters
78
 
m4_defun([_LT_CHECK_BUILDDIR],
79
 
[case `pwd` in
80
 
  *\ * | *\     *)
81
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
82
 
esac
83
 
])
84
 
 
85
 
 
86
 
# LT_INIT([OPTIONS])
87
 
# ------------------
88
 
AC_DEFUN([LT_INIT],
89
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
90
 
AC_BEFORE([$0], [LT_LANG])dnl
91
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
 
AC_BEFORE([$0], [LTDL_INIT])dnl
93
 
m4_require([_LT_CHECK_BUILDDIR])dnl
94
 
 
95
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
96
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
97
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
98
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
99
 
dnl unless we require an AC_DEFUNed macro:
100
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
101
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
102
 
AC_REQUIRE([LTVERSION_VERSION])dnl
103
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
 
m4_require([_LT_PROG_LTMAIN])dnl
105
 
 
106
 
dnl Parse OPTIONS
107
 
_LT_SET_OPTIONS([$0], [$1])
 
1712
 
 
1713
# serial 52 AC_PROG_LIBTOOL
 
1714
 
 
1715
 
 
1716
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1717
# -----------------------------------------------------------
 
1718
# If this macro is not defined by Autoconf, define it here.
 
1719
m4_ifdef([AC_PROVIDE_IFELSE],
 
1720
         [],
 
1721
         [m4_define([AC_PROVIDE_IFELSE],
 
1722
                 [m4_ifdef([AC_PROVIDE_$1],
 
1723
                           [$2], [$3])])])
 
1724
 
 
1725
 
 
1726
# AC_PROG_LIBTOOL
 
1727
# ---------------
 
1728
AC_DEFUN([AC_PROG_LIBTOOL],
 
1729
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
1730
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
1731
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
1732
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1733
    [AC_LIBTOOL_CXX],
 
1734
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
1735
  ])])
 
1736
dnl And a similar setup for Fortran 77 support
 
1737
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1738
    [AC_LIBTOOL_F77],
 
1739
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
1740
])])
 
1741
 
 
1742
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
1743
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
1744
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
1745
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1746
    [AC_LIBTOOL_GCJ],
 
1747
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1748
      [AC_LIBTOOL_GCJ],
 
1749
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
1750
        [AC_LIBTOOL_GCJ],
 
1751
      [ifdef([AC_PROG_GCJ],
 
1752
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1753
       ifdef([A][M_PROG_GCJ],
 
1754
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1755
       ifdef([LT_AC_PROG_GCJ],
 
1756
             [define([LT_AC_PROG_GCJ],
 
1757
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
1758
])])# AC_PROG_LIBTOOL
 
1759
 
 
1760
 
 
1761
# _AC_PROG_LIBTOOL
 
1762
# ----------------
 
1763
AC_DEFUN([_AC_PROG_LIBTOOL],
 
1764
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
1765
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
1766
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
1767
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
108
1768
 
109
1769
# This can be used to rebuild libtool when needed
110
 
LIBTOOL_DEPS="$ltmain"
 
1770
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
111
1771
 
112
1772
# Always use our own libtool.
113
1773
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
114
1774
AC_SUBST(LIBTOOL)dnl
115
1775
 
116
 
_LT_SETUP
117
 
 
118
 
# Only expand once:
119
 
m4_define([LT_INIT])
120
 
])# LT_INIT
121
 
 
122
 
# Old names:
123
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
124
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
125
 
dnl aclocal-1.4 backwards compatibility:
126
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
127
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
128
 
 
129
 
 
130
 
# _LT_CC_BASENAME(CC)
131
 
# -------------------
132
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
133
 
m4_defun([_LT_CC_BASENAME],
134
 
[for cc_temp in $1""; do
135
 
  case $cc_temp in
136
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
137
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
138
 
    \-*) ;;
139
 
    *) break;;
140
 
  esac
141
 
done
142
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
143
 
])
144
 
 
145
 
 
146
 
# _LT_FILEUTILS_DEFAULTS
147
 
# ----------------------
148
 
# It is okay to use these file commands and assume they have been set
149
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
150
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
151
 
[: ${CP="cp -f"}
152
 
: ${MV="mv -f"}
153
 
: ${RM="rm -f"}
154
 
])# _LT_FILEUTILS_DEFAULTS
155
 
 
156
 
 
157
 
# _LT_SETUP
158
 
# ---------
159
 
m4_defun([_LT_SETUP],
160
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1776
# Prevent multiple expansion
 
1777
define([AC_PROG_LIBTOOL], [])
 
1778
])# _AC_PROG_LIBTOOL
 
1779
 
 
1780
 
 
1781
# AC_LIBTOOL_SETUP
 
1782
# ----------------
 
1783
AC_DEFUN([AC_LIBTOOL_SETUP],
 
1784
[AC_PREREQ(2.50)dnl
 
1785
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
1786
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
1787
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
1788
AC_REQUIRE([AC_CANONICAL_HOST])dnl
161
1789
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
162
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
 
_LT_DECL([], [host], [0])dnl
164
 
_LT_DECL([], [host_os], [0])dnl
165
 
dnl
166
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
167
 
_LT_DECL([], [build], [0])dnl
168
 
_LT_DECL([], [build_os], [0])dnl
169
 
dnl
170
1790
AC_REQUIRE([AC_PROG_CC])dnl
171
 
AC_REQUIRE([LT_PATH_LD])dnl
172
 
AC_REQUIRE([LT_PATH_NM])dnl
173
 
dnl
 
1791
AC_REQUIRE([AC_PROG_LD])dnl
 
1792
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
1793
AC_REQUIRE([AC_PROG_NM])dnl
 
1794
 
174
1795
AC_REQUIRE([AC_PROG_LN_S])dnl
175
 
test -z "$LN_S" && LN_S="ln -s"
176
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
177
 
dnl
178
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
179
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
180
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
181
 
dnl
182
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
184
 
m4_require([_LT_CMD_RELOAD])dnl
185
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
186
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
188
 
 
189
 
_LT_CONFIG_LIBTOOL_INIT([
190
 
# See if we are running on zsh, and set the options which allow our
191
 
# commands through without removal of \ escapes INIT.
192
 
if test -n "\${ZSH_VERSION+set}" ; then
193
 
   setopt NO_GLOB_SUBST
194
 
fi
195
 
])
196
 
if test -n "${ZSH_VERSION+set}" ; then
197
 
   setopt NO_GLOB_SUBST
198
 
fi
199
 
 
200
 
_LT_CHECK_OBJDIR
201
 
 
202
 
m4_require([_LT_TAG_COMPILER])dnl
203
 
_LT_PROG_ECHO_BACKSLASH
 
1796
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
1797
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
1798
AC_REQUIRE([AC_OBJEXT])dnl
 
1799
AC_REQUIRE([AC_EXEEXT])dnl
 
1800
dnl
 
1801
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1802
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1803
AC_LIBTOOL_OBJDIR
 
1804
 
 
1805
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1806
_LT_AC_PROG_ECHO_BACKSLASH
204
1807
 
205
1808
case $host_os in
206
1809
aix3*)
216
1819
 
217
1820
# Sed substitution that helps us do robust quoting.  It backslashifies
218
1821
# metacharacters that are still active within double-quoted strings.
219
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1822
Xsed='sed -e 1s/^X//'
 
1823
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
220
1824
 
221
1825
# Same as above, but do not quote variable references.
222
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1826
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
223
1827
 
224
1828
# Sed substitution to delay expansion of an escaped shell variable in a
225
1829
# double_quote_subst'ed string.
226
1830
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
227
1831
 
228
 
# Sed substitution to delay expansion of an escaped single quote.
229
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
230
 
 
231
1832
# Sed substitution to avoid accidental globbing in evaled expressions
232
1833
no_glob_subst='s/\*/\\\*/g'
233
1834
 
 
1835
# Constants:
 
1836
rm="rm -f"
 
1837
 
234
1838
# Global variables:
235
 
ofile=libtool
 
1839
default_ofile=libtool
236
1840
can_build_shared=yes
237
1841
 
238
1842
# All known linkers require a `.a' archive for static linking (except MSVC,
239
1843
# which needs '.lib').
240
1844
libext=a
241
 
 
 
1845
ltmain="$ac_aux_dir/ltmain.sh"
 
1846
ofile="$default_ofile"
242
1847
with_gnu_ld="$lt_cv_prog_gnu_ld"
243
1848
 
 
1849
AC_CHECK_TOOL(AR, ar, false)
 
1850
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1851
AC_CHECK_TOOL(STRIP, strip, :)
 
1852
 
244
1853
old_CC="$CC"
245
1854
old_CFLAGS="$CFLAGS"
246
1855
 
247
1856
# Set sane defaults for various variables
 
1857
test -z "$AR" && AR=ar
 
1858
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1859
test -z "$AS" && AS=as
248
1860
test -z "$CC" && CC=cc
249
1861
test -z "$LTCC" && LTCC=$CC
250
1862
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
1863
test -z "$DLLTOOL" && DLLTOOL=dlltool
251
1864
test -z "$LD" && LD=ld
 
1865
test -z "$LN_S" && LN_S="ln -s"
 
1866
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1867
test -z "$NM" && NM=nm
 
1868
test -z "$SED" && SED=sed
 
1869
test -z "$OBJDUMP" && OBJDUMP=objdump
 
1870
test -z "$RANLIB" && RANLIB=:
 
1871
test -z "$STRIP" && STRIP=:
252
1872
test -z "$ac_objext" && ac_objext=o
253
1873
 
 
1874
# Determine commands to create old-style static archives.
 
1875
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
1876
old_postinstall_cmds='chmod 644 $oldlib'
 
1877
old_postuninstall_cmds=
 
1878
 
 
1879
if test -n "$RANLIB"; then
 
1880
  case $host_os in
 
1881
  openbsd*)
 
1882
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1883
    ;;
 
1884
  *)
 
1885
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1886
    ;;
 
1887
  esac
 
1888
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1889
fi
 
1890
 
254
1891
_LT_CC_BASENAME([$compiler])
255
1892
 
256
1893
# Only perform the check for file, if the check method requires it
257
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
258
1894
case $deplibs_check_method in
259
1895
file_magic*)
260
1896
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
261
 
    _LT_PATH_MAGIC
 
1897
    AC_PATH_MAGIC
262
1898
  fi
263
1899
  ;;
264
1900
esac
265
1901
 
 
1902
_LT_REQUIRED_DARWIN_CHECKS
 
1903
 
 
1904
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
1905
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1906
enable_win32_dll=yes, enable_win32_dll=no)
 
1907
 
 
1908
AC_ARG_ENABLE([libtool-lock],
 
1909
    [AC_HELP_STRING([--disable-libtool-lock],
 
1910
        [avoid locking (might break parallel builds)])])
 
1911
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1912
 
 
1913
AC_ARG_WITH([pic],
 
1914
    [AC_HELP_STRING([--with-pic],
 
1915
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
1916
    [pic_mode="$withval"],
 
1917
    [pic_mode=default])
 
1918
test -z "$pic_mode" && pic_mode=default
 
1919
 
266
1920
# Use C for the default configuration in the libtool script
267
 
LT_SUPPORTED_TAG([CC])
268
 
_LT_LANG_C_CONFIG
269
 
_LT_LANG_DEFAULT_CONFIG
270
 
_LT_CONFIG_COMMANDS
271
 
])# _LT_SETUP
272
 
 
273
 
 
274
 
# _LT_PROG_LTMAIN
275
 
# ---------------
276
 
# Note that this code is called both from `configure', and `config.status'
277
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
278
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
279
 
# so we pass a copy along to make sure it has a sensible value anyway.
280
 
m4_defun([_LT_PROG_LTMAIN],
281
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
282
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
283
 
ltmain="$ac_aux_dir/ltmain.sh"
284
 
])# _LT_PROG_LTMAIN
285
 
 
286
 
 
287
 
 
288
 
# So that we can recreate a full libtool script including additional
289
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
290
 
# in macros and then make a single call at the end using the `libtool'
291
 
# label.
292
 
 
293
 
 
294
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
295
 
# ----------------------------------------
296
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
297
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
298
 
[m4_ifval([$1],
299
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
300
 
                     [$1
301
 
])])])
302
 
 
303
 
# Initialize.
304
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
305
 
 
306
 
 
307
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
308
 
# ------------------------------
309
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
310
 
m4_define([_LT_CONFIG_LIBTOOL],
311
 
[m4_ifval([$1],
312
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
313
 
                     [$1
314
 
])])])
315
 
 
316
 
# Initialize.
317
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
318
 
 
319
 
 
320
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
321
 
# -----------------------------------------------------
322
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
323
 
[_LT_CONFIG_LIBTOOL([$1])
324
 
_LT_CONFIG_LIBTOOL_INIT([$2])
325
 
])
326
 
 
327
 
 
328
 
# _LT_FORMAT_COMMENT([COMMENT])
329
 
# -----------------------------
330
 
# Add leading comment marks to the start of each line, and a trailing
331
 
# full-stop to the whole comment if one is not present already.
332
 
m4_define([_LT_FORMAT_COMMENT],
333
 
[m4_ifval([$1], [
334
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
335
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
336
 
)])
337
 
 
338
 
 
339
 
 
340
 
 
341
 
 
342
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
343
 
# -------------------------------------------------------------------
344
 
# CONFIGNAME is the name given to the value in the libtool script.
345
 
# VARNAME is the (base) name used in the configure script.
346
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
347
 
# VARNAME.  Any other value will be used directly.
348
 
m4_define([_LT_DECL],
349
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
350
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
351
 
        [m4_ifval([$1], [$1], [$2])])
352
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
353
 
    m4_ifval([$4],
354
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
355
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
356
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
357
 
])
358
 
 
359
 
 
360
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
361
 
# --------------------------------------------------------
362
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
363
 
 
364
 
 
365
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
366
 
# ------------------------------------------------
367
 
m4_define([lt_decl_tag_varnames],
368
 
[_lt_decl_filter([tagged?], [yes], $@)])
369
 
 
370
 
 
371
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
372
 
# ---------------------------------------------------------
373
 
m4_define([_lt_decl_filter],
374
 
[m4_case([$#],
375
 
  [0], [m4_fatal([$0: too few arguments: $#])],
376
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
377
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
378
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
379
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
380
 
])
381
 
 
382
 
 
383
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
384
 
# --------------------------------------------------
385
 
m4_define([lt_decl_quote_varnames],
386
 
[_lt_decl_filter([value], [1], $@)])
387
 
 
388
 
 
389
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
390
 
# ---------------------------------------------------
391
 
m4_define([lt_decl_dquote_varnames],
392
 
[_lt_decl_filter([value], [2], $@)])
393
 
 
394
 
 
395
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
396
 
# ---------------------------------------------------
397
 
m4_define([lt_decl_varnames_tagged],
398
 
[m4_assert([$# <= 2])dnl
399
 
_$0(m4_quote(m4_default([$1], [[, ]])),
400
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
401
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
402
 
m4_define([_lt_decl_varnames_tagged],
403
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
404
 
 
405
 
 
406
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
407
 
# ------------------------------------------------
408
 
m4_define([lt_decl_all_varnames],
409
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
410
 
     m4_if([$2], [],
411
 
           m4_quote(lt_decl_varnames),
412
 
        m4_quote(m4_shift($@))))[]dnl
413
 
])
414
 
m4_define([_lt_decl_all_varnames],
415
 
[lt_join($@, lt_decl_varnames_tagged([$1],
416
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
417
 
])
418
 
 
419
 
 
420
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
421
 
# ------------------------------------
422
 
# Quote a variable value, and forward it to `config.status' so that its
423
 
# declaration there will have the same value as in `configure'.  VARNAME
424
 
# must have a single quote delimited value for this to work.
425
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
427
 
 
428
 
 
429
 
# _LT_CONFIG_STATUS_DECLARATIONS
430
 
# ------------------------------
431
 
# We delimit libtool config variables with single quotes, so when
432
 
# we write them to config.status, we have to be sure to quote all
433
 
# embedded single quotes properly.  In configure, this macro expands
434
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435
 
#
436
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
437
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
440
 
 
441
 
 
442
 
# _LT_LIBTOOL_TAGS
443
 
# ----------------
444
 
# Output comment and list of tags supported by the script
445
 
m4_defun([_LT_LIBTOOL_TAGS],
446
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
447
 
available_tags="_LT_TAGS"dnl
448
 
])
449
 
 
450
 
 
451
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
452
 
# -----------------------------------
453
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
454
 
# expand to a commented shell variable setting:
455
 
#
456
 
#    # Some comment about what VAR is for.
457
 
#    visible_name=$lt_internal_name
458
 
m4_define([_LT_LIBTOOL_DECLARE],
459
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
460
 
                                           [description])))[]dnl
461
 
m4_pushdef([_libtool_name],
462
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
463
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
464
 
    [0], [_libtool_name=[$]$1],
465
 
    [1], [_libtool_name=$lt_[]$1],
466
 
    [2], [_libtool_name=$lt_[]$1],
467
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
468
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
469
 
])
470
 
 
471
 
 
472
 
# _LT_LIBTOOL_CONFIG_VARS
473
 
# -----------------------
474
 
# Produce commented declarations of non-tagged libtool config variables
475
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
476
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
477
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
478
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
479
 
[m4_foreach([_lt_var],
480
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
481
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
482
 
 
483
 
 
484
 
# _LT_LIBTOOL_TAG_VARS(TAG)
485
 
# -------------------------
486
 
m4_define([_LT_LIBTOOL_TAG_VARS],
487
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
488
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
489
 
 
490
 
 
491
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
492
 
# ------------------------------
493
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
494
 
 
495
 
 
496
 
# _LT_CONFIG_COMMANDS
 
1921
tagname=
 
1922
AC_LIBTOOL_LANG_C_CONFIG
 
1923
_LT_AC_TAGCONFIG
 
1924
])# AC_LIBTOOL_SETUP
 
1925
 
 
1926
 
 
1927
# _LT_AC_SYS_COMPILER
497
1928
# -------------------
498
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
499
 
# variables for single and double quote escaping we saved from calls
500
 
# to _LT_DECL, we can put quote escaped variables declarations
501
 
# into `config.status', and then the shell code to quote escape them in
502
 
# for loops in `config.status'.  Finally, any additional code accumulated
503
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
504
 
m4_defun([_LT_CONFIG_COMMANDS],
505
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
506
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
507
 
        dnl instead of duplicating it all over again into config.status,
508
 
        dnl then we will have config.status run $CONFIG_LT later, so it
509
 
        dnl needs to know what name is stored there:
510
 
        [AC_CONFIG_COMMANDS([libtool],
511
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
512
 
    dnl If the libtool generation code is destined for config.status,
513
 
    dnl expand the accumulated commands and init code now:
514
 
    [AC_CONFIG_COMMANDS([libtool],
515
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
516
 
])#_LT_CONFIG_COMMANDS
517
 
 
518
 
 
519
 
# Initialize.
520
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
521
 
[
522
 
 
523
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
524
 
# if CDPATH is set.
525
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
526
 
 
527
 
sed_quote_subst='$sed_quote_subst'
528
 
double_quote_subst='$double_quote_subst'
529
 
delay_variable_subst='$delay_variable_subst'
530
 
_LT_CONFIG_STATUS_DECLARATIONS
531
 
LTCC='$LTCC'
532
 
LTCFLAGS='$LTCFLAGS'
533
 
compiler='$compiler_DEFAULT'
534
 
 
535
 
# Quote evaled strings.
536
 
for var in lt_decl_all_varnames([[ \
537
 
]], lt_decl_quote_varnames); do
538
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
539
 
    *[[\\\\\\\`\\"\\\$]]*)
540
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541
 
      ;;
542
 
    *)
543
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
544
 
      ;;
545
 
    esac
546
 
done
547
 
 
548
 
# Double-quote double-evaled strings.
549
 
for var in lt_decl_all_varnames([[ \
550
 
]], lt_decl_dquote_varnames); do
551
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
552
 
    *[[\\\\\\\`\\"\\\$]]*)
553
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554
 
      ;;
555
 
    *)
556
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
557
 
      ;;
558
 
    esac
559
 
done
560
 
 
561
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
562
 
case \$lt_ECHO in
563
 
*'\\\[$]0 --fallback-echo"')dnl "
564
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
565
 
  ;;
566
 
esac
567
 
 
568
 
_LT_OUTPUT_LIBTOOL_INIT
569
 
])
570
 
 
571
 
 
572
 
# LT_OUTPUT
573
 
# ---------
574
 
# This macro allows early generation of the libtool script (before
575
 
# AC_OUTPUT is called), incase it is used in configure for compilation
576
 
# tests.
577
 
AC_DEFUN([LT_OUTPUT],
578
 
[: ${CONFIG_LT=./config.lt}
579
 
AC_MSG_NOTICE([creating $CONFIG_LT])
580
 
cat >"$CONFIG_LT" <<_LTEOF
581
 
#! $SHELL
582
 
# Generated by $as_me.
583
 
# Run this file to recreate a libtool stub with the current configuration.
584
 
 
585
 
lt_cl_silent=false
586
 
SHELL=\${CONFIG_SHELL-$SHELL}
587
 
_LTEOF
588
 
 
589
 
cat >>"$CONFIG_LT" <<\_LTEOF
590
 
AS_SHELL_SANITIZE
591
 
_AS_PREPARE
592
 
 
593
 
exec AS_MESSAGE_FD>&1
594
 
exec AS_MESSAGE_LOG_FD>>config.log
595
 
{
596
 
  echo
597
 
  AS_BOX([Running $as_me.])
598
 
} >&AS_MESSAGE_LOG_FD
599
 
 
600
 
lt_cl_help="\
601
 
\`$as_me' creates a local libtool stub from the current configuration,
602
 
for use in further configure time tests before the real libtool is
603
 
generated.
604
 
 
605
 
Usage: $[0] [[OPTIONS]]
606
 
 
607
 
  -h, --help      print this help, then exit
608
 
  -V, --version   print version number, then exit
609
 
  -q, --quiet     do not print progress messages
610
 
  -d, --debug     don't remove temporary files
611
 
 
612
 
Report bugs to <bug-libtool@gnu.org>."
613
 
 
614
 
lt_cl_version="\
615
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
616
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
 
configured by $[0], generated by m4_PACKAGE_STRING.
618
 
 
619
 
Copyright (C) 2008 Free Software Foundation, Inc.
620
 
This config.lt script is free software; the Free Software Foundation
621
 
gives unlimited permision to copy, distribute and modify it."
622
 
 
623
 
while test $[#] != 0
624
 
do
625
 
  case $[1] in
626
 
    --version | --v* | -V )
627
 
      echo "$lt_cl_version"; exit 0 ;;
628
 
    --help | --h* | -h )
629
 
      echo "$lt_cl_help"; exit 0 ;;
630
 
    --debug | --d* | -d )
631
 
      debug=: ;;
632
 
    --quiet | --q* | --silent | --s* | -q )
633
 
      lt_cl_silent=: ;;
634
 
 
635
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
636
 
Try \`$[0] --help' for more information.]) ;;
637
 
 
638
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
639
 
Try \`$[0] --help' for more information.]) ;;
640
 
  esac
641
 
  shift
642
 
done
643
 
 
644
 
if $lt_cl_silent; then
645
 
  exec AS_MESSAGE_FD>/dev/null
646
 
fi
647
 
_LTEOF
648
 
 
649
 
cat >>"$CONFIG_LT" <<_LTEOF
650
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
651
 
_LTEOF
652
 
 
653
 
cat >>"$CONFIG_LT" <<\_LTEOF
654
 
AC_MSG_NOTICE([creating $ofile])
655
 
_LT_OUTPUT_LIBTOOL_COMMANDS
656
 
AS_EXIT(0)
657
 
_LTEOF
658
 
chmod +x "$CONFIG_LT"
659
 
 
660
 
# configure is writing to config.log, but config.lt does its own redirection,
661
 
# appending to config.log, which fails on DOS, as config.log is still kept
662
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
663
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
664
 
if test "$no_create" != yes; then
665
 
  lt_cl_success=:
666
 
  test "$silent" = yes &&
667
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
668
 
  exec AS_MESSAGE_LOG_FD>/dev/null
669
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
670
 
  exec AS_MESSAGE_LOG_FD>>config.log
671
 
  $lt_cl_success || AS_EXIT(1)
672
 
fi
673
 
])# LT_OUTPUT
674
 
 
675
 
 
676
 
# _LT_CONFIG(TAG)
677
 
# ---------------
678
 
# If TAG is the built-in tag, create an initial libtool script with a
679
 
# default configuration from the untagged config vars.  Otherwise add code
680
 
# to config.status for appending the configuration named by TAG from the
681
 
# matching tagged config vars.
682
 
m4_defun([_LT_CONFIG],
683
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
684
 
_LT_CONFIG_SAVE_COMMANDS([
685
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
686
 
  m4_if(_LT_TAG, [C], [
687
 
    # See if we are running on zsh, and set the options which allow our
688
 
    # commands through without removal of \ escapes.
689
 
    if test -n "${ZSH_VERSION+set}" ; then
690
 
      setopt NO_GLOB_SUBST
691
 
    fi
692
 
 
693
 
    cfgfile="${ofile}T"
694
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
695
 
    $RM "$cfgfile"
696
 
 
697
 
    cat <<_LT_EOF >> "$cfgfile"
698
 
#! $SHELL
699
 
 
700
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
701
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
702
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
703
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
704
 
#
705
 
_LT_COPYING
706
 
_LT_LIBTOOL_TAGS
707
 
 
708
 
# ### BEGIN LIBTOOL CONFIG
709
 
_LT_LIBTOOL_CONFIG_VARS
710
 
_LT_LIBTOOL_TAG_VARS
711
 
# ### END LIBTOOL CONFIG
712
 
 
713
 
_LT_EOF
714
 
 
715
 
  case $host_os in
716
 
  aix3*)
717
 
    cat <<\_LT_EOF >> "$cfgfile"
718
 
# AIX sometimes has problems with the GCC collect2 program.  For some
719
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
720
 
# vanish in a puff of smoke.
721
 
if test "X${COLLECT_NAMES+set}" != Xset; then
722
 
  COLLECT_NAMES=
723
 
  export COLLECT_NAMES
724
 
fi
725
 
_LT_EOF
726
 
    ;;
727
 
  esac
728
 
 
729
 
  _LT_PROG_LTMAIN
730
 
 
731
 
  # We use sed instead of cat because bash on DJGPP gets confused if
732
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
733
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
734
 
  # is reportedly fixed, but why not run on old versions too?
735
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
736
 
    || (rm -f "$cfgfile"; exit 1)
737
 
 
738
 
  _LT_PROG_XSI_SHELLFNS
739
 
 
740
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
741
 
    || (rm -f "$cfgfile"; exit 1)
742
 
 
743
 
  mv -f "$cfgfile" "$ofile" ||
744
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
745
 
  chmod +x "$ofile"
746
 
],
747
 
[cat <<_LT_EOF >> "$ofile"
748
 
 
749
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
750
 
dnl in a comment (ie after a #).
751
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
752
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
753
 
# ### END LIBTOOL TAG CONFIG: $1
754
 
_LT_EOF
755
 
])dnl /m4_if
756
 
],
757
 
[m4_if([$1], [], [
758
 
    PACKAGE='$PACKAGE'
759
 
    VERSION='$VERSION'
760
 
    TIMESTAMP='$TIMESTAMP'
761
 
    RM='$RM'
762
 
    ofile='$ofile'], [])
763
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
764
 
])# _LT_CONFIG
765
 
 
766
 
 
767
 
# LT_SUPPORTED_TAG(TAG)
768
 
# ---------------------
769
 
# Trace this macro to discover what tags are supported by the libtool
770
 
# --tag option, using:
771
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
772
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
773
 
 
774
 
 
775
 
# C support is built-in for now
776
 
m4_define([_LT_LANG_C_enabled], [])
777
 
m4_define([_LT_TAGS], [])
778
 
 
779
 
 
780
 
# LT_LANG(LANG)
781
 
# -------------
782
 
# Enable libtool support for the given language if not already enabled.
783
 
AC_DEFUN([LT_LANG],
784
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
785
 
m4_case([$1],
786
 
  [C],                  [_LT_LANG(C)],
787
 
  [C++],                [_LT_LANG(CXX)],
788
 
  [Java],               [_LT_LANG(GCJ)],
789
 
  [Fortran 77],         [_LT_LANG(F77)],
790
 
  [Fortran],            [_LT_LANG(FC)],
791
 
  [Windows Resource],   [_LT_LANG(RC)],
792
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
793
 
    [_LT_LANG($1)],
794
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
795
 
])# LT_LANG
796
 
 
797
 
 
798
 
# _LT_LANG(LANGNAME)
799
 
# ------------------
800
 
m4_defun([_LT_LANG],
801
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
802
 
  [LT_SUPPORTED_TAG([$1])dnl
803
 
  m4_append([_LT_TAGS], [$1 ])dnl
804
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
805
 
  _LT_LANG_$1_CONFIG($1)])dnl
806
 
])# _LT_LANG
807
 
 
808
 
 
809
 
# _LT_LANG_DEFAULT_CONFIG
810
 
# -----------------------
811
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
812
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
813
 
  [LT_LANG(CXX)],
814
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
815
 
 
816
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
817
 
  [LT_LANG(F77)],
818
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
819
 
 
820
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
821
 
  [LT_LANG(FC)],
822
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
823
 
 
824
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
825
 
dnl pulling things in needlessly.
826
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
827
 
  [LT_LANG(GCJ)],
828
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
829
 
    [LT_LANG(GCJ)],
830
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
831
 
      [LT_LANG(GCJ)],
832
 
      [m4_ifdef([AC_PROG_GCJ],
833
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
834
 
       m4_ifdef([A][M_PROG_GCJ],
835
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
836
 
       m4_ifdef([LT_PROG_GCJ],
837
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
838
 
 
839
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
840
 
  [LT_LANG(RC)],
841
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
842
 
])# _LT_LANG_DEFAULT_CONFIG
843
 
 
844
 
# Obsolete macros:
845
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
846
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
849
 
dnl aclocal-1.4 backwards compatibility:
850
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
854
 
 
855
 
 
856
 
# _LT_TAG_COMPILER
857
 
# ----------------
858
 
m4_defun([_LT_TAG_COMPILER],
 
1929
AC_DEFUN([_LT_AC_SYS_COMPILER],
859
1930
[AC_REQUIRE([AC_PROG_CC])dnl
860
1931
 
861
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
862
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
863
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
864
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
865
 
 
866
1932
# If no C compiler was specified, use CC.
867
1933
LTCC=${LTCC-"$CC"}
868
1934
 
871
1937
 
872
1938
# Allow CC to be a program name with arguments.
873
1939
compiler=$CC
874
 
])# _LT_TAG_COMPILER
 
1940
])# _LT_AC_SYS_COMPILER
 
1941
 
 
1942
 
 
1943
# _LT_CC_BASENAME(CC)
 
1944
# -------------------
 
1945
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1946
AC_DEFUN([_LT_CC_BASENAME],
 
1947
[for cc_temp in $1""; do
 
1948
  case $cc_temp in
 
1949
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1950
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1951
    \-*) ;;
 
1952
    *) break;;
 
1953
  esac
 
1954
done
 
1955
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1956
])
875
1957
 
876
1958
 
877
1959
# _LT_COMPILER_BOILERPLATE
878
1960
# ------------------------
879
1961
# Check for compiler boilerplate output or warnings with
880
1962
# the simple compiler test code.
881
 
m4_defun([_LT_COMPILER_BOILERPLATE],
882
 
[m4_require([_LT_DECL_SED])dnl
 
1963
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
1964
[AC_REQUIRE([LT_AC_PROG_SED])dnl
883
1965
ac_outfile=conftest.$ac_objext
884
1966
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
885
1967
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
886
1968
_lt_compiler_boilerplate=`cat conftest.err`
887
 
$RM conftest*
 
1969
$rm conftest*
888
1970
])# _LT_COMPILER_BOILERPLATE
889
1971
 
890
1972
 
892
1974
# ----------------------
893
1975
# Check for linker boilerplate output or warnings with
894
1976
# the simple link test code.
895
 
m4_defun([_LT_LINKER_BOILERPLATE],
896
 
[m4_require([_LT_DECL_SED])dnl
 
1977
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
1978
[AC_REQUIRE([LT_AC_PROG_SED])dnl
897
1979
ac_outfile=conftest.$ac_objext
898
1980
echo "$lt_simple_link_test_code" >conftest.$ac_ext
899
1981
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
900
1982
_lt_linker_boilerplate=`cat conftest.err`
901
 
$RM -r conftest*
 
1983
$rm -r conftest*
902
1984
])# _LT_LINKER_BOILERPLATE
903
1985
 
904
1986
# _LT_REQUIRED_DARWIN_CHECKS
905
 
# -------------------------
906
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
1987
# --------------------------
 
1988
# Check for some things on darwin
 
1989
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
907
1990
  case $host_os in
908
1991
    rhapsody* | darwin*)
909
1992
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
910
1993
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
911
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
912
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
913
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
914
 
    _LT_DECL([], [DSYMUTIL], [1],
915
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
916
 
    _LT_DECL([], [NMEDIT], [1],
917
 
      [Tool to change global to local symbols on Mac OS X])
918
 
    _LT_DECL([], [LIPO], [1],
919
 
      [Tool to manipulate fat objects and archives on Mac OS X])
920
 
    _LT_DECL([], [OTOOL], [1],
921
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
922
 
    _LT_DECL([], [OTOOL64], [1],
923
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
924
1994
 
925
1995
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
926
1996
      [lt_cv_apple_cc_single_mod=no
927
1997
      if test -z "${LT_MULTI_MODULE}"; then
928
 
        # By default we will add the -single_module flag. You can override
929
 
        # by either setting the environment variable LT_MULTI_MODULE
930
 
        # non-empty at configure time, or by adding -multi_module to the
931
 
        # link flags.
932
 
        rm -rf libconftest.dylib*
933
 
        echo "int foo(void){return 1;}" > conftest.c
934
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
935
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
936
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
937
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
938
 
        _lt_result=$?
939
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
940
 
          lt_cv_apple_cc_single_mod=yes
941
 
        else
942
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
943
 
        fi
944
 
        rm -rf libconftest.dylib*
945
 
        rm -f conftest.*
 
1998
   # By default we will add the -single_module flag. You can override
 
1999
   # by either setting the environment variable LT_MULTI_MODULE
 
2000
   # non-empty at configure time, or by adding -multi_module to the
 
2001
   # link flags.
 
2002
   echo "int foo(void){return 1;}" > conftest.c
 
2003
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
2004
     -dynamiclib ${wl}-single_module conftest.c
 
2005
   if test -f libconftest.dylib; then
 
2006
     lt_cv_apple_cc_single_mod=yes
 
2007
     rm -rf libconftest.dylib*
 
2008
   fi
 
2009
   rm conftest.c
946
2010
      fi])
947
2011
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
948
2012
      [lt_cv_ld_exported_symbols_list],
951
2015
      echo "_main" > conftest.sym
952
2016
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
953
2017
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
954
 
        [lt_cv_ld_exported_symbols_list=yes],
955
 
        [lt_cv_ld_exported_symbols_list=no])
956
 
        LDFLAGS="$save_LDFLAGS"
 
2018
   [lt_cv_ld_exported_symbols_list=yes],
 
2019
   [lt_cv_ld_exported_symbols_list=no])
 
2020
   LDFLAGS="$save_LDFLAGS"
957
2021
    ])
958
2022
    case $host_os in
959
 
    rhapsody* | darwin1.[[012]])
 
2023
    rhapsody* | darwin1.[[0123]])
960
2024
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
961
2025
    darwin1.*)
962
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
963
 
    darwin*) # darwin 5.x on
 
2026
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2027
    darwin*)
964
2028
      # if running on 10.5 or later, the deployment target defaults
965
2029
      # to the OS version, if on x86, and 10.4, the deployment
966
2030
      # target defaults to 10.4. Don't you love it?
967
2031
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
968
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
969
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
970
 
        10.[[012]]*)
971
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
972
 
        10.*)
973
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2032
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
2033
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2034
   10.[[012]]*)
 
2035
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2036
   10.*)
 
2037
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
974
2038
      esac
975
2039
    ;;
976
2040
  esac
980
2044
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
981
2045
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
982
2046
    else
983
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2047
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
984
2048
    fi
985
2049
    if test "$DSYMUTIL" != ":"; then
986
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
2050
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
987
2051
    else
988
2052
      _lt_dsymutil=
989
2053
    fi
991
2055
  esac
992
2056
])
993
2057
 
994
 
 
995
 
# _LT_DARWIN_LINKER_FEATURES
996
 
# --------------------------
997
 
# Checks for linker and compiler features on darwin
998
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
999
 
[
1000
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1001
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1002
 
  _LT_TAGVAR(hardcode_direct, $1)=no
1003
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1004
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1005
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1006
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1007
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1008
 
  case $cc_basename in
1009
 
     ifort*) _lt_dar_can_shared=yes ;;
1010
 
     *) _lt_dar_can_shared=$GCC ;;
1011
 
  esac
1012
 
  if test "$_lt_dar_can_shared" = "yes"; then
1013
 
    output_verbose_link_cmd=echo
1014
 
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1015
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016
 
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1017
 
    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1018
 
    m4_if([$1], [CXX],
1019
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1020
 
      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1021
 
      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1022
 
    fi
1023
 
],[])
1024
 
  else
1025
 
  _LT_TAGVAR(ld_shlibs, $1)=no
1026
 
  fi
1027
 
])
1028
 
 
1029
 
# _LT_SYS_MODULE_PATH_AIX
1030
 
# -----------------------
 
2058
# _LT_AC_SYS_LIBPATH_AIX
 
2059
# ----------------------
1031
2060
# Links a minimal program and checks the executable
1032
2061
# for the system default hardcoded library path. In most cases,
1033
2062
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
2063
# the location of the communication and MPI libs are included too.
1035
2064
# If we don't find anything, use the default library path according
1036
2065
# to the aix ld manual.
1037
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
 
[m4_require([_LT_DECL_SED])dnl
 
2066
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
2067
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1039
2068
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1040
2069
lt_aix_libpath_sed='
1041
2070
    /Import File Strings/,/^$/ {
1050
2079
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1051
2080
fi],[])
1052
2081
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1053
 
])# _LT_SYS_MODULE_PATH_AIX
1054
 
 
1055
 
 
1056
 
# _LT_SHELL_INIT(ARG)
1057
 
# -------------------
1058
 
m4_define([_LT_SHELL_INIT],
 
2082
])# _LT_AC_SYS_LIBPATH_AIX
 
2083
 
 
2084
 
 
2085
# _LT_AC_SHELL_INIT(ARG)
 
2086
# ----------------------
 
2087
AC_DEFUN([_LT_AC_SHELL_INIT],
1059
2088
[ifdef([AC_DIVERSION_NOTICE],
1060
2089
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
2090
         [AC_DIVERT_PUSH(NOTICE)])
1062
2091
$1
1063
2092
AC_DIVERT_POP
1064
 
])# _LT_SHELL_INIT
1065
 
 
1066
 
 
1067
 
# _LT_PROG_ECHO_BACKSLASH
1068
 
# -----------------------
 
2093
])# _LT_AC_SHELL_INIT
 
2094
 
 
2095
 
 
2096
# _LT_AC_PROG_ECHO_BACKSLASH
 
2097
# --------------------------
1069
2098
# Add some code to the start of the generated configure script which
1070
2099
# will find an echo command which doesn't interpret backslashes.
1071
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1072
 
[_LT_SHELL_INIT([
 
2100
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
2101
[_LT_AC_SHELL_INIT([
1073
2102
# Check that we are running under the correct shell.
1074
2103
SHELL=${CONFIG_SHELL-/bin/sh}
1075
2104
 
1076
 
case X$lt_ECHO in
 
2105
case X$ECHO in
1077
2106
X*--fallback-echo)
1078
2107
  # Remove one level of quotation (which was required for Make).
1079
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2108
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1080
2109
  ;;
1081
2110
esac
1082
2111
 
1083
 
ECHO=${lt_ECHO-echo}
 
2112
echo=${ECHO-echo}
1084
2113
if test "X[$]1" = X--no-reexec; then
1085
2114
  # Discard the --no-reexec flag, and continue.
1086
2115
  shift
1087
2116
elif test "X[$]1" = X--fallback-echo; then
1088
2117
  # Avoid inline document here, it may be left over
1089
2118
  :
1090
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
 
  # Yippee, $ECHO works!
 
2119
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
2120
  # Yippee, $echo works!
1092
2121
  :
1093
2122
else
1094
2123
  # Restart under the correct shell.
1098
2127
if test "X[$]1" = X--fallback-echo; then
1099
2128
  # used as fallback echo
1100
2129
  shift
1101
 
  cat <<_LT_EOF
 
2130
  cat <<EOF
1102
2131
[$]*
1103
 
_LT_EOF
 
2132
EOF
1104
2133
  exit 0
1105
2134
fi
1106
2135
 
1108
2137
# if CDPATH is set.
1109
2138
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1110
2139
 
1111
 
if test -z "$lt_ECHO"; then
1112
 
  if test "X${echo_test_string+set}" != Xset; then
1113
 
    # find a string as large as possible, as long as the shell can cope with it
1114
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1118
 
      then
1119
 
        break
1120
 
      fi
1121
 
    done
1122
 
  fi
1123
 
 
1124
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1127
 
    :
1128
 
  else
1129
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1130
 
    # backslashes.  This makes it impossible to quote backslashes using
1131
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1132
 
    #
1133
 
    # So, first we look for a working echo in the user's PATH.
1134
 
 
1135
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
 
    for dir in $PATH /usr/ucb; do
1137
 
      IFS="$lt_save_ifs"
1138
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1142
 
        ECHO="$dir/echo"
1143
 
        break
1144
 
      fi
1145
 
    done
 
2140
if test -z "$ECHO"; then
 
2141
if test "X${echo_test_string+set}" != Xset; then
 
2142
# find a string as large as possible, as long as the shell can cope with it
 
2143
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2144
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2145
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
2146
       echo_test_string=`eval $cmd` &&
 
2147
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
2148
    then
 
2149
      break
 
2150
    fi
 
2151
  done
 
2152
fi
 
2153
 
 
2154
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
2155
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
2156
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
2157
  :
 
2158
else
 
2159
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2160
  # backslashes.  This makes it impossible to quote backslashes using
 
2161
  #   echo "$something" | sed 's/\\/\\\\/g'
 
2162
  #
 
2163
  # So, first we look for a working echo in the user's PATH.
 
2164
 
 
2165
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2166
  for dir in $PATH /usr/ucb; do
1146
2167
    IFS="$lt_save_ifs"
 
2168
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2169
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2170
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2171
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
2172
      echo="$dir/echo"
 
2173
      break
 
2174
    fi
 
2175
  done
 
2176
  IFS="$lt_save_ifs"
1147
2177
 
1148
 
    if test "X$ECHO" = Xecho; then
1149
 
      # We didn't find a better echo, so look for alternatives.
1150
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1153
 
        # This shell has a builtin print -r that does the trick.
1154
 
        ECHO='print -r'
1155
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
 
        # If we have ksh, try running configure again with it.
1158
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
 
        export ORIGINAL_CONFIG_SHELL
1160
 
        CONFIG_SHELL=/bin/ksh
1161
 
        export CONFIG_SHELL
1162
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2178
  if test "X$echo" = Xecho; then
 
2179
    # We didn't find a better echo, so look for alternatives.
 
2180
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
2181
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
2182
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
2183
      # This shell has a builtin print -r that does the trick.
 
2184
      echo='print -r'
 
2185
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
2186
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2187
      # If we have ksh, try running configure again with it.
 
2188
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2189
      export ORIGINAL_CONFIG_SHELL
 
2190
      CONFIG_SHELL=/bin/ksh
 
2191
      export CONFIG_SHELL
 
2192
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
2193
    else
 
2194
      # Try using printf.
 
2195
      echo='printf %s\n'
 
2196
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
2197
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
2198
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2199
        # Cool, printf works
 
2200
        :
 
2201
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2202
           test "X$echo_testing_string" = 'X\t' &&
 
2203
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2204
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2205
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2206
        export CONFIG_SHELL
 
2207
        SHELL="$CONFIG_SHELL"
 
2208
        export SHELL
 
2209
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2210
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2211
           test "X$echo_testing_string" = 'X\t' &&
 
2212
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2213
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2214
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1163
2215
      else
1164
 
        # Try using printf.
1165
 
        ECHO='printf %s\n'
1166
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1169
 
          # Cool, printf works
1170
 
          :
1171
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
 
             test "X$echo_testing_string" = 'X\t' &&
1173
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1175
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1176
 
          export CONFIG_SHELL
1177
 
          SHELL="$CONFIG_SHELL"
1178
 
          export SHELL
1179
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
 
             test "X$echo_testing_string" = 'X\t' &&
1182
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1184
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1185
 
        else
1186
 
          # maybe with a smaller string...
1187
 
          prev=:
1188
 
 
1189
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1191
 
            then
1192
 
              break
1193
 
            fi
1194
 
            prev="$cmd"
1195
 
          done
1196
 
 
1197
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1198
 
            echo_test_string=`eval $prev`
1199
 
            export echo_test_string
1200
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1201
 
          else
1202
 
            # Oops.  We lost completely, so just stick with echo.
1203
 
            ECHO=echo
 
2216
        # maybe with a smaller string...
 
2217
        prev=:
 
2218
 
 
2219
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2220
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
2221
          then
 
2222
            break
1204
2223
          fi
1205
 
        fi
 
2224
          prev="$cmd"
 
2225
        done
 
2226
 
 
2227
        if test "$prev" != 'sed 50q "[$]0"'; then
 
2228
          echo_test_string=`eval $prev`
 
2229
          export echo_test_string
 
2230
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2231
        else
 
2232
          # Oops.  We lost completely, so just stick with echo.
 
2233
          echo=echo
 
2234
        fi
1206
2235
      fi
1207
2236
    fi
1208
2237
  fi
1209
2238
fi
 
2239
fi
1210
2240
 
1211
2241
# Copy echo and quote the copy suitably for passing to libtool from
1212
2242
# the Makefile, instead of quoting the original, which is used later.
1213
 
lt_ECHO=$ECHO
1214
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2243
ECHO=$echo
 
2244
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2245
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1216
2246
fi
1217
2247
 
1218
 
AC_SUBST(lt_ECHO)
1219
 
])
1220
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
 
_LT_DECL([], [ECHO], [1],
1222
 
    [An echo program that does not interpret backslashes])
1223
 
])# _LT_PROG_ECHO_BACKSLASH
1224
 
 
1225
 
 
1226
 
# _LT_ENABLE_LOCK
1227
 
# ---------------
1228
 
m4_defun([_LT_ENABLE_LOCK],
 
2248
AC_SUBST(ECHO)
 
2249
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
2250
 
 
2251
 
 
2252
# _LT_AC_LOCK
 
2253
# -----------
 
2254
AC_DEFUN([_LT_AC_LOCK],
1229
2255
[AC_ARG_ENABLE([libtool-lock],
1230
 
  [AS_HELP_STRING([--disable-libtool-lock],
1231
 
    [avoid locking (might break parallel builds)])])
 
2256
    [AC_HELP_STRING([--disable-libtool-lock],
 
2257
        [avoid locking (might break parallel builds)])])
1232
2258
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1233
2259
 
1234
2260
# Some flags need to be propagated to the compiler or linker for good
1239
2265
  echo 'int i;' > conftest.$ac_ext
1240
2266
  if AC_TRY_EVAL(ac_compile); then
1241
2267
    case `/usr/bin/file conftest.$ac_objext` in
1242
 
      *ELF-32*)
1243
 
        HPUX_IA64_MODE="32"
1244
 
        ;;
1245
 
      *ELF-64*)
1246
 
        HPUX_IA64_MODE="64"
1247
 
        ;;
 
2268
    *ELF-32*)
 
2269
      HPUX_IA64_MODE="32"
 
2270
      ;;
 
2271
    *ELF-64*)
 
2272
      HPUX_IA64_MODE="64"
 
2273
      ;;
1248
2274
    esac
1249
2275
  fi
1250
2276
  rm -rf conftest*
1253
2279
  # Find out which ABI we are using.
1254
2280
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1255
2281
  if AC_TRY_EVAL(ac_compile); then
1256
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
1257
 
      case `/usr/bin/file conftest.$ac_objext` in
1258
 
        *32-bit*)
1259
 
          LD="${LD-ld} -melf32bsmip"
1260
 
          ;;
1261
 
        *N32*)
1262
 
          LD="${LD-ld} -melf32bmipn32"
1263
 
          ;;
1264
 
        *64-bit*)
1265
 
          LD="${LD-ld} -melf64bmip"
1266
 
        ;;
1267
 
      esac
1268
 
    else
1269
 
      case `/usr/bin/file conftest.$ac_objext` in
1270
 
        *32-bit*)
1271
 
          LD="${LD-ld} -32"
1272
 
          ;;
1273
 
        *N32*)
1274
 
          LD="${LD-ld} -n32"
1275
 
          ;;
1276
 
        *64-bit*)
1277
 
          LD="${LD-ld} -64"
1278
 
          ;;
1279
 
      esac
1280
 
    fi
 
2282
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
2283
    case `/usr/bin/file conftest.$ac_objext` in
 
2284
    *32-bit*)
 
2285
      LD="${LD-ld} -melf32bsmip"
 
2286
      ;;
 
2287
    *N32*)
 
2288
      LD="${LD-ld} -melf32bmipn32"
 
2289
      ;;
 
2290
    *64-bit*)
 
2291
      LD="${LD-ld} -melf64bmip"
 
2292
      ;;
 
2293
    esac
 
2294
   else
 
2295
    case `/usr/bin/file conftest.$ac_objext` in
 
2296
    *32-bit*)
 
2297
      LD="${LD-ld} -32"
 
2298
      ;;
 
2299
    *N32*)
 
2300
      LD="${LD-ld} -n32"
 
2301
      ;;
 
2302
    *64-bit*)
 
2303
      LD="${LD-ld} -64"
 
2304
      ;;
 
2305
    esac
 
2306
   fi
1281
2307
  fi
1282
2308
  rm -rf conftest*
1283
2309
  ;;
1284
2310
 
1285
2311
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1286
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
2312
s390*-*linux*|sparc*-*linux*)
1287
2313
  # Find out which ABI we are using.
1288
2314
  echo 'int i;' > conftest.$ac_ext
1289
2315
  if AC_TRY_EVAL(ac_compile); then
1290
2316
    case `/usr/bin/file conftest.o` in
1291
 
      *32-bit*)
1292
 
        case $host in
1293
 
          x86_64-*kfreebsd*-gnu)
1294
 
            LD="${LD-ld} -m elf_i386_fbsd"
1295
 
            ;;
1296
 
          x86_64-*linux*)
1297
 
            LD="${LD-ld} -m elf_i386"
1298
 
            ;;
1299
 
          ppc64-*linux*|powerpc64-*linux*)
1300
 
            LD="${LD-ld} -m elf32ppclinux"
1301
 
            ;;
1302
 
          s390x-*linux*)
1303
 
            LD="${LD-ld} -m elf_s390"
1304
 
            ;;
1305
 
          sparc64-*linux*)
1306
 
            LD="${LD-ld} -m elf32_sparc"
1307
 
            ;;
1308
 
        esac
1309
 
        ;;
1310
 
      *64-bit*)
1311
 
        case $host in
1312
 
          x86_64-*kfreebsd*-gnu)
1313
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
1314
 
            ;;
1315
 
          x86_64-*linux*)
1316
 
            LD="${LD-ld} -m elf_x86_64"
1317
 
            ;;
1318
 
          ppc*-*linux*|powerpc*-*linux*)
1319
 
            LD="${LD-ld} -m elf64ppc"
1320
 
            ;;
1321
 
          s390*-*linux*|s390*-*tpf*)
1322
 
            LD="${LD-ld} -m elf64_s390"
1323
 
            ;;
1324
 
          sparc*-*linux*)
1325
 
            LD="${LD-ld} -m elf64_sparc"
1326
 
            ;;
1327
 
        esac
1328
 
        ;;
 
2317
    *32-bit*)
 
2318
      case $host in
 
2319
        x86_64-*kfreebsd*-gnu)
 
2320
          LD="${LD-ld} -m elf_i386_fbsd"
 
2321
          ;;
 
2322
        x86_64-*linux*)
 
2323
          LD="${LD-ld} -m elf_i386"
 
2324
          ;;
 
2325
        ppc64-*linux*|powerpc64-*linux*)
 
2326
          LD="${LD-ld} -m elf32ppclinux"
 
2327
          ;;
 
2328
        s390x-*linux*)
 
2329
          LD="${LD-ld} -m elf_s390"
 
2330
          ;;
 
2331
        sparc64-*linux*)
 
2332
          LD="${LD-ld} -m elf32_sparc"
 
2333
          ;;
 
2334
      esac
 
2335
      ;;
 
2336
    *64-bit*)
 
2337
      case $host in
 
2338
        x86_64-*kfreebsd*-gnu)
 
2339
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
2340
          ;;
 
2341
        x86_64-*linux*)
 
2342
          LD="${LD-ld} -m elf_x86_64"
 
2343
          ;;
 
2344
        ppc*-*linux*|powerpc*-*linux*)
 
2345
          LD="${LD-ld} -m elf64ppc"
 
2346
          ;;
 
2347
        s390*-*linux*)
 
2348
          LD="${LD-ld} -m elf64_s390"
 
2349
          ;;
 
2350
        sparc*-*linux*)
 
2351
          LD="${LD-ld} -m elf64_sparc"
 
2352
          ;;
 
2353
      esac
 
2354
      ;;
1329
2355
    esac
1330
2356
  fi
1331
2357
  rm -rf conftest*
1337
2363
  CFLAGS="$CFLAGS -belf"
1338
2364
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1339
2365
    [AC_LANG_PUSH(C)
1340
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2366
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1341
2367
     AC_LANG_POP])
1342
2368
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1343
2369
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1353
2379
      case $lt_cv_prog_gnu_ld in
1354
2380
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1355
2381
      *)
1356
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2382
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1357
2383
          LD="${LD-ld} -64"
1358
2384
        fi
1359
2385
        ;;
1363
2389
  fi
1364
2390
  rm -rf conftest*
1365
2391
  ;;
 
2392
 
 
2393
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
2394
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
2395
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
2396
  AC_CHECK_TOOL(AS, as, false)
 
2397
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
2398
  ;;
 
2399
  ])
1366
2400
esac
1367
2401
 
1368
2402
need_locks="$enable_libtool_lock"
1369
 
])# _LT_ENABLE_LOCK
1370
 
 
1371
 
 
1372
 
# _LT_CMD_OLD_ARCHIVE
1373
 
# -------------------
1374
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
1375
 
[AC_CHECK_TOOL(AR, ar, false)
1376
 
test -z "$AR" && AR=ar
1377
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1378
 
_LT_DECL([], [AR], [1], [The archiver])
1379
 
_LT_DECL([], [AR_FLAGS], [1])
1380
 
 
1381
 
AC_CHECK_TOOL(STRIP, strip, :)
1382
 
test -z "$STRIP" && STRIP=:
1383
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1384
 
 
1385
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1386
 
test -z "$RANLIB" && RANLIB=:
1387
 
_LT_DECL([], [RANLIB], [1],
1388
 
    [Commands used to install an old-style archive])
1389
 
 
1390
 
# Determine commands to create old-style static archives.
1391
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1392
 
old_postinstall_cmds='chmod 644 $oldlib'
1393
 
old_postuninstall_cmds=
1394
 
 
1395
 
if test -n "$RANLIB"; then
1396
 
  case $host_os in
1397
 
  openbsd*)
1398
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1399
 
    ;;
1400
 
  *)
1401
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1402
 
    ;;
1403
 
  esac
1404
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1405
 
fi
1406
 
_LT_DECL([], [old_postinstall_cmds], [2])
1407
 
_LT_DECL([], [old_postuninstall_cmds], [2])
1408
 
_LT_TAGDECL([], [old_archive_cmds], [2],
1409
 
    [Commands used to build an old-style archive])
1410
 
])# _LT_CMD_OLD_ARCHIVE
1411
 
 
1412
 
 
1413
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2403
 
 
2404
])# _LT_AC_LOCK
 
2405
 
 
2406
 
 
2407
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1414
2408
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1415
2409
# ----------------------------------------------------------------
1416
2410
# Check whether the given compiler option works
1417
 
AC_DEFUN([_LT_COMPILER_OPTION],
1418
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1419
 
m4_require([_LT_DECL_SED])dnl
 
2411
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
2412
[AC_REQUIRE([LT_AC_PROG_SED])
1420
2413
AC_CACHE_CHECK([$1], [$2],
1421
2414
  [$2=no
1422
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2415
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1423
2416
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1424
2417
   lt_compiler_flag="$3"
1425
2418
   # Insert the option either (1) after the last *FLAGS variable, or
1439
2432
   if (exit $ac_status) && test -s "$ac_outfile"; then
1440
2433
     # The compiler can only warn and ignore the option if not recognized
1441
2434
     # So say no if there are warnings other than the usual output.
1442
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2435
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1443
2436
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444
2437
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445
2438
       $2=yes
1446
2439
     fi
1447
2440
   fi
1448
 
   $RM conftest*
 
2441
   $rm conftest*
1449
2442
])
1450
2443
 
1451
2444
if test x"[$]$2" = xyes; then
1452
 
    m4_if([$5], , :, [$5])
 
2445
    ifelse([$5], , :, [$5])
1453
2446
else
1454
 
    m4_if([$6], , :, [$6])
 
2447
    ifelse([$6], , :, [$6])
1455
2448
fi
1456
 
])# _LT_COMPILER_OPTION
1457
 
 
1458
 
# Old name:
1459
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1460
 
dnl aclocal-1.4 backwards compatibility:
1461
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1462
 
 
1463
 
 
1464
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1465
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1466
 
# ----------------------------------------------------
1467
 
# Check whether the given linker option works
1468
 
AC_DEFUN([_LT_LINKER_OPTION],
1469
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1470
 
m4_require([_LT_DECL_SED])dnl
 
2449
])# AC_LIBTOOL_COMPILER_OPTION
 
2450
 
 
2451
 
 
2452
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2453
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
2454
# ------------------------------------------------------------
 
2455
# Check whether the given compiler option works
 
2456
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
2457
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1471
2458
AC_CACHE_CHECK([$1], [$2],
1472
2459
  [$2=no
1473
2460
   save_LDFLAGS="$LDFLAGS"
1479
2466
     if test -s conftest.err; then
1480
2467
       # Append any errors to the config.log.
1481
2468
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2469
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1483
2470
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484
2471
       if diff conftest.exp conftest.er2 >/dev/null; then
1485
2472
         $2=yes
1488
2475
       $2=yes
1489
2476
     fi
1490
2477
   fi
1491
 
   $RM -r conftest*
 
2478
   $rm -r conftest*
1492
2479
   LDFLAGS="$save_LDFLAGS"
1493
2480
])
1494
2481
 
1495
2482
if test x"[$]$2" = xyes; then
1496
 
    m4_if([$4], , :, [$4])
 
2483
    ifelse([$4], , :, [$4])
1497
2484
else
1498
 
    m4_if([$5], , :, [$5])
 
2485
    ifelse([$5], , :, [$5])
1499
2486
fi
1500
 
])# _LT_LINKER_OPTION
1501
 
 
1502
 
# Old name:
1503
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1504
 
dnl aclocal-1.4 backwards compatibility:
1505
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1506
 
 
1507
 
 
1508
 
# LT_CMD_MAX_LEN
1509
 
#---------------
1510
 
AC_DEFUN([LT_CMD_MAX_LEN],
1511
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1512
 
# find the maximum length of command line arguments
 
2487
])# AC_LIBTOOL_LINKER_OPTION
 
2488
 
 
2489
 
 
2490
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
2491
# --------------------------
 
2492
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
2493
[# find the maximum length of command line arguments
1513
2494
AC_MSG_CHECKING([the maximum length of command line arguments])
1514
2495
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1515
2496
  i=0
1531
2512
    lt_cv_sys_max_cmd_len=-1;
1532
2513
    ;;
1533
2514
 
1534
 
  cygwin* | mingw* | cegcc*)
 
2515
  cygwin* | mingw*)
1535
2516
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1536
2517
    # about 5 minutes as the teststring grows exponentially.
1537
2518
    # Worse, since 9x/ME are not pre-emptively multitasking,
1586
2567
  sysv5* | sco5v6* | sysv4.2uw2*)
1587
2568
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1588
2569
    if test -n "$kargmax"; then
1589
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
2570
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1590
2571
    else
1591
2572
      lt_cv_sys_max_cmd_len=32768
1592
2573
    fi
1597
2578
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1598
2579
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1599
2580
    else
1600
 
      # Make teststring a little bigger before we do anything with it.
1601
 
      # a 1K string should be a reasonable start.
1602
 
      for i in 1 2 3 4 5 6 7 8 ; do
1603
 
        teststring=$teststring$teststring
1604
 
      done
1605
2581
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1606
 
      # If test is not a shell built-in, we'll probably end up computing a
1607
 
      # maximum length that is only half of the actual maximum length, but
1608
 
      # we can't tell.
1609
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1610
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2582
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
2583
               = "XX$teststring") >/dev/null 2>&1 &&
 
2584
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
2585
              lt_cv_sys_max_cmd_len=$new_result &&
1611
2586
              test $i != 17 # 1/2 MB should be enough
1612
2587
      do
1613
2588
        i=`expr $i + 1`
1614
2589
        teststring=$teststring$teststring
1615
2590
      done
1616
 
      # Only check the string length outside the loop.
1617
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1618
2591
      teststring=
1619
 
      # Add a significant safety factor because C++ compilers can tack on
1620
 
      # massive amounts of additional arguments before passing them to the
1621
 
      # linker.  It appears as though 1/2 is a usable value.
 
2592
      # Add a significant safety factor because C++ compilers can tack on massive
 
2593
      # amounts of additional arguments before passing them to the linker.
 
2594
      # It appears as though 1/2 is a usable value.
1622
2595
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1623
2596
    fi
1624
2597
    ;;
1629
2602
else
1630
2603
  AC_MSG_RESULT(none)
1631
2604
fi
1632
 
max_cmd_len=$lt_cv_sys_max_cmd_len
1633
 
_LT_DECL([], [max_cmd_len], [0],
1634
 
    [What is the maximum length of a command?])
1635
 
])# LT_CMD_MAX_LEN
1636
 
 
1637
 
# Old name:
1638
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1639
 
dnl aclocal-1.4 backwards compatibility:
1640
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1641
 
 
1642
 
 
1643
 
# _LT_HEADER_DLFCN
1644
 
# ----------------
1645
 
m4_defun([_LT_HEADER_DLFCN],
1646
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1647
 
])# _LT_HEADER_DLFCN
1648
 
 
1649
 
 
1650
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1651
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1652
 
# ----------------------------------------------------------------
1653
 
m4_defun([_LT_TRY_DLOPEN_SELF],
1654
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
2605
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
2606
 
 
2607
 
 
2608
# _LT_AC_CHECK_DLFCN
 
2609
# ------------------
 
2610
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
2611
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
2612
])# _LT_AC_CHECK_DLFCN
 
2613
 
 
2614
 
 
2615
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2616
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2617
# ---------------------------------------------------------------------
 
2618
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
2619
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1655
2620
if test "$cross_compiling" = yes; then :
1656
2621
  [$4]
1657
2622
else
1658
2623
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659
2624
  lt_status=$lt_dlunknown
1660
 
  cat > conftest.$ac_ext <<_LT_EOF
 
2625
  cat > conftest.$ac_ext <<EOF
1661
2626
[#line __oline__ "configure"
1662
2627
#include "confdefs.h"
1663
2628
 
1699
2664
#  endif
1700
2665
#endif
1701
2666
 
 
2667
#ifdef __cplusplus
 
2668
extern "C" void exit (int);
 
2669
#endif
 
2670
 
1702
2671
void fnord() { int i=42;}
1703
2672
int main ()
1704
2673
{
1714
2683
  else
1715
2684
    puts (dlerror ());
1716
2685
 
1717
 
  return status;
 
2686
    exit (status);
1718
2687
}]
1719
 
_LT_EOF
 
2688
EOF
1720
2689
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1721
2690
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1722
2691
    lt_status=$?
1731
2700
  fi
1732
2701
fi
1733
2702
rm -fr conftest*
1734
 
])# _LT_TRY_DLOPEN_SELF
1735
 
 
1736
 
 
1737
 
# LT_SYS_DLOPEN_SELF
1738
 
# ------------------
1739
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
1740
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
2703
])# _LT_AC_TRY_DLOPEN_SELF
 
2704
 
 
2705
 
 
2706
# AC_LIBTOOL_DLOPEN_SELF
 
2707
# ----------------------
 
2708
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
2709
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1741
2710
if test "x$enable_dlopen" != xyes; then
1742
2711
  enable_dlopen=unknown
1743
2712
  enable_dlopen_self=unknown
1753
2722
    lt_cv_dlopen_self=yes
1754
2723
    ;;
1755
2724
 
1756
 
  mingw* | pw32* | cegcc*)
 
2725
  mingw* | pw32*)
1757
2726
    lt_cv_dlopen="LoadLibrary"
1758
2727
    lt_cv_dlopen_libs=
1759
 
    ;;
 
2728
   ;;
1760
2729
 
1761
2730
  cygwin*)
1762
2731
    lt_cv_dlopen="dlopen"
1763
2732
    lt_cv_dlopen_libs=
1764
 
    ;;
 
2733
   ;;
1765
2734
 
1766
2735
  darwin*)
1767
2736
  # if libdl is installed we need to link against it
1771
2740
    lt_cv_dlopen_libs=
1772
2741
    lt_cv_dlopen_self=yes
1773
2742
    ])
1774
 
    ;;
 
2743
   ;;
1775
2744
 
1776
2745
  *)
1777
2746
    AC_CHECK_FUNC([shl_load],
1813
2782
 
1814
2783
    AC_CACHE_CHECK([whether a program can dlopen itself],
1815
2784
          lt_cv_dlopen_self, [dnl
1816
 
          _LT_TRY_DLOPEN_SELF(
 
2785
          _LT_AC_TRY_DLOPEN_SELF(
1817
2786
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1818
2787
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1819
2788
    ])
1821
2790
    if test "x$lt_cv_dlopen_self" = xyes; then
1822
2791
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1823
2792
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1824
 
          lt_cv_dlopen_self_static, [dnl
1825
 
          _LT_TRY_DLOPEN_SELF(
 
2793
          lt_cv_dlopen_self_static, [dnl
 
2794
          _LT_AC_TRY_DLOPEN_SELF(
1826
2795
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1827
2796
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1828
2797
      ])
1844
2813
  *) enable_dlopen_self_static=unknown ;;
1845
2814
  esac
1846
2815
fi
1847
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
1848
 
         [Whether dlopen is supported])
1849
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1850
 
         [Whether dlopen of programs is supported])
1851
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1852
 
         [Whether dlopen of statically linked programs is supported])
1853
 
])# LT_SYS_DLOPEN_SELF
1854
 
 
1855
 
# Old name:
1856
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1857
 
dnl aclocal-1.4 backwards compatibility:
1858
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1859
 
 
1860
 
 
1861
 
# _LT_COMPILER_C_O([TAGNAME])
1862
 
# ---------------------------
1863
 
# Check to see if options -c and -o are simultaneously supported by compiler.
1864
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
1865
 
m4_defun([_LT_COMPILER_C_O],
1866
 
[m4_require([_LT_DECL_SED])dnl
1867
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1868
 
m4_require([_LT_TAG_COMPILER])dnl
 
2816
])# AC_LIBTOOL_DLOPEN_SELF
 
2817
 
 
2818
 
 
2819
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
2820
# ---------------------------------
 
2821
# Check to see if options -c and -o are simultaneously supported by compiler
 
2822
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
2823
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2824
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1869
2825
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1870
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1871
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1872
 
   $RM -r conftest 2>/dev/null
 
2826
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2827
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2828
   $rm -r conftest 2>/dev/null
1873
2829
   mkdir conftest
1874
2830
   cd conftest
1875
2831
   mkdir out
1893
2849
   then
1894
2850
     # The compiler can only warn and ignore the option if not recognized
1895
2851
     # So say no if there are warnings
1896
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2852
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1897
2853
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898
2854
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2855
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1900
2856
     fi
1901
2857
   fi
1902
2858
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1903
 
   $RM conftest*
 
2859
   $rm conftest*
1904
2860
   # SGI C++ compiler will create directory out/ii_files/ for
1905
2861
   # template instantiation
1906
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1907
 
   $RM out/* && rmdir out
 
2862
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
2863
   $rm out/* && rmdir out
1908
2864
   cd ..
1909
 
   $RM -r conftest
1910
 
   $RM conftest*
 
2865
   rmdir conftest
 
2866
   $rm conftest*
1911
2867
])
1912
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1913
 
        [Does compiler simultaneously support -c and -o options?])
1914
 
])# _LT_COMPILER_C_O
1915
 
 
1916
 
 
1917
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
1918
 
# ----------------------------------
 
2868
])# AC_LIBTOOL_PROG_CC_C_O
 
2869
 
 
2870
 
 
2871
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
2872
# -----------------------------------------
1919
2873
# Check to see if we can do hard links to lock some files if needed
1920
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
1921
 
[m4_require([_LT_ENABLE_LOCK])dnl
1922
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1923
 
_LT_COMPILER_C_O([$1])
 
2874
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
2875
[AC_REQUIRE([_LT_AC_LOCK])dnl
1924
2876
 
1925
2877
hard_links="nottested"
1926
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2878
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1927
2879
  # do not overwrite the value of need_locks provided by the user
1928
2880
  AC_MSG_CHECKING([if we can lock with hard links])
1929
2881
  hard_links=yes
1930
 
  $RM conftest*
 
2882
  $rm conftest*
1931
2883
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1932
2884
  touch conftest.a
1933
2885
  ln conftest.a conftest.b 2>&5 || hard_links=no
1940
2892
else
1941
2893
  need_locks=no
1942
2894
fi
1943
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1944
 
])# _LT_COMPILER_FILE_LOCKS
1945
 
 
1946
 
 
1947
 
# _LT_CHECK_OBJDIR
1948
 
# ----------------
1949
 
m4_defun([_LT_CHECK_OBJDIR],
 
2895
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
2896
 
 
2897
 
 
2898
# AC_LIBTOOL_OBJDIR
 
2899
# -----------------
 
2900
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1950
2901
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1951
2902
[rm -f .libs 2>/dev/null
1952
2903
mkdir .libs 2>/dev/null
1958
2909
fi
1959
2910
rmdir .libs 2>/dev/null])
1960
2911
objdir=$lt_cv_objdir
1961
 
_LT_DECL([], [objdir], [0],
1962
 
         [The name of the directory that contains temporary libtool files])dnl
1963
 
m4_pattern_allow([LT_OBJDIR])dnl
1964
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1965
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
1966
 
])# _LT_CHECK_OBJDIR
1967
 
 
1968
 
 
1969
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1970
 
# --------------------------------------
 
2912
])# AC_LIBTOOL_OBJDIR
 
2913
 
 
2914
 
 
2915
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
2916
# ----------------------------------------------
1971
2917
# Check hardcoding attributes.
1972
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
2918
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1973
2919
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1974
 
_LT_TAGVAR(hardcode_action, $1)=
1975
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1976
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1977
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2920
_LT_AC_TAGVAR(hardcode_action, $1)=
 
2921
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
2922
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
2923
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1978
2924
 
1979
 
  # We can hardcode non-existent directories.
1980
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
2925
  # We can hardcode non-existant directories.
 
2926
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1981
2927
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1982
2928
     # have to relink, otherwise we might link with an installed library
1983
2929
     # when we should be linking with a yet-to-be-installed one
1984
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1985
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2930
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2931
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1986
2932
    # Linking always hardcodes the temporary library directory.
1987
 
    _LT_TAGVAR(hardcode_action, $1)=relink
 
2933
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
1988
2934
  else
1989
2935
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1990
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
2936
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1991
2937
  fi
1992
2938
else
1993
2939
  # We cannot hardcode anything, or else we can only hardcode existing
1994
2940
  # directories.
1995
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
2941
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1996
2942
fi
1997
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
2943
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1998
2944
 
1999
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2000
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
2945
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2001
2946
  # Fast installation is not supported
2002
2947
  enable_fast_install=no
2003
2948
elif test "$shlibpath_overrides_runpath" = yes ||
2005
2950
  # Fast installation is not necessary
2006
2951
  enable_fast_install=needless
2007
2952
fi
2008
 
_LT_TAGDECL([], [hardcode_action], [0],
2009
 
    [How to hardcode a shared library path into an executable])
2010
 
])# _LT_LINKER_HARDCODE_LIBPATH
2011
 
 
2012
 
 
2013
 
# _LT_CMD_STRIPLIB
2014
 
# ----------------
2015
 
m4_defun([_LT_CMD_STRIPLIB],
2016
 
[m4_require([_LT_DECL_EGREP])
2017
 
striplib=
 
2953
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
2954
 
 
2955
 
 
2956
# AC_LIBTOOL_SYS_LIB_STRIP
 
2957
# ------------------------
 
2958
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
2959
[striplib=
2018
2960
old_striplib=
2019
2961
AC_MSG_CHECKING([whether stripping libraries is possible])
2020
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
2962
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2021
2963
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2022
2964
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2023
2965
  AC_MSG_RESULT([yes])
2024
2966
else
2025
2967
# FIXME - insert some real tests, host_os isn't really good enough
2026
2968
  case $host_os in
2027
 
  darwin*)
2028
 
    if test -n "$STRIP" ; then
2029
 
      striplib="$STRIP -x"
2030
 
      old_striplib="$STRIP -S"
2031
 
      AC_MSG_RESULT([yes])
2032
 
    else
2033
 
      AC_MSG_RESULT([no])
2034
 
    fi
2035
 
    ;;
2036
 
  *)
2037
 
    AC_MSG_RESULT([no])
 
2969
   darwin*)
 
2970
       if test -n "$STRIP" ; then
 
2971
         striplib="$STRIP -x"
 
2972
         old_striplib="$STRIP -S"
 
2973
         AC_MSG_RESULT([yes])
 
2974
       else
 
2975
  AC_MSG_RESULT([no])
 
2976
fi
 
2977
       ;;
 
2978
   *)
 
2979
  AC_MSG_RESULT([no])
2038
2980
    ;;
2039
2981
  esac
2040
2982
fi
2041
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2042
 
_LT_DECL([], [striplib], [1])
2043
 
])# _LT_CMD_STRIPLIB
2044
 
 
2045
 
 
2046
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
2983
])# AC_LIBTOOL_SYS_LIB_STRIP
 
2984
 
 
2985
 
 
2986
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2047
2987
# -----------------------------
2048
2988
# PORTME Fill in your ld.so characteristics
2049
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2050
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2051
 
m4_require([_LT_DECL_EGREP])dnl
2052
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053
 
m4_require([_LT_DECL_OBJDUMP])dnl
2054
 
m4_require([_LT_DECL_SED])dnl
 
2989
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
2990
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2055
2991
AC_MSG_CHECKING([dynamic linker characteristics])
2056
 
m4_if([$1],
2057
 
        [], [
 
2992
library_names_spec=
 
2993
libname_spec='lib$name'
 
2994
soname_spec=
 
2995
shrext_cmds=".so"
 
2996
postinstall_cmds=
 
2997
postuninstall_cmds=
 
2998
finish_cmds=
 
2999
finish_eval=
 
3000
shlibpath_var=
 
3001
shlibpath_overrides_runpath=unknown
 
3002
version_type=none
 
3003
dynamic_linker="$host_os ld.so"
 
3004
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
3005
m4_if($1,[],[
2058
3006
if test "$GCC" = yes; then
2059
3007
  case $host_os in
2060
3008
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061
3009
    *) lt_awk_arg="/^libraries:/" ;;
2062
3010
  esac
2063
3011
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2064
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3012
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2065
3013
    # if the path contains ";" then we assume it to be the separator
2066
3014
    # otherwise default to the standard path separator (i.e. ":") - it is
2067
3015
    # assumed that no part of a normal pathname contains ";" but that should
2068
3016
    # okay in the real world where ";" in dirpaths is itself problematic.
2069
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3017
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2070
3018
  else
2071
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3019
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2072
3020
  fi
2073
3021
  # Ok, now we have the path, separated by spaces, we can step through it
2074
3022
  # and add multilib dir if necessary.
2082
3030
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083
3031
    fi
2084
3032
  done
2085
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3033
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2086
3034
BEGIN {RS=" "; FS="/|\n";} {
2087
3035
  lt_foo="";
2088
3036
  lt_count=0;
2102
3050
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103
3051
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104
3052
}'`
2105
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3053
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2106
3054
else
2107
3055
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
3056
fi])
2109
 
library_names_spec=
2110
 
libname_spec='lib$name'
2111
 
soname_spec=
2112
 
shrext_cmds=".so"
2113
 
postinstall_cmds=
2114
 
postuninstall_cmds=
2115
 
finish_cmds=
2116
 
finish_eval=
2117
 
shlibpath_var=
2118
 
shlibpath_overrides_runpath=unknown
2119
 
version_type=none
2120
 
dynamic_linker="$host_os ld.so"
2121
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2122
3057
need_lib_prefix=unknown
2123
3058
hardcode_into_libs=no
2124
3059
 
2155
3090
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2156
3091
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2157
3092
           echo ' yes '
2158
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
3093
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2159
3094
        :
2160
3095
      else
2161
3096
        can_build_shared=no
2181
3116
  ;;
2182
3117
 
2183
3118
amigaos*)
2184
 
  case $host_cpu in
2185
 
  powerpc)
2186
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2187
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2188
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2189
 
    ;;
2190
 
  m68k)
2191
 
    library_names_spec='$libname.ixlibrary $libname.a'
2192
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2193
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2194
 
    ;;
2195
 
  esac
 
3119
  library_names_spec='$libname.ixlibrary $libname.a'
 
3120
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3121
  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'
2196
3122
  ;;
2197
3123
 
2198
3124
beos*)
2215
3141
  # libtool to hard-code these into programs
2216
3142
  ;;
2217
3143
 
2218
 
cygwin* | mingw* | pw32* | cegcc*)
 
3144
cygwin* | mingw* | pw32*)
2219
3145
  version_type=windows
2220
3146
  shrext_cmds=".dll"
2221
3147
  need_version=no
2222
3148
  need_lib_prefix=no
2223
3149
 
2224
3150
  case $GCC,$host_os in
2225
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
3151
  yes,cygwin* | yes,mingw* | yes,pw32*)
2226
3152
    library_names_spec='$libname.dll.a'
2227
3153
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2228
3154
    postinstall_cmds='base_file=`basename \${file}`~
2229
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
3155
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2230
3156
      dldir=$destdir/`dirname \$dlpath`~
2231
3157
      test -d \$dldir || mkdir -p \$dldir~
2232
3158
      $install_prog $dir/$dlname \$dldir/$dlname~
2233
 
      chmod a+x \$dldir/$dlname~
2234
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2235
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2236
 
      fi'
 
3159
      chmod a+x \$dldir/$dlname'
2237
3160
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2238
3161
      dlpath=$dir/\$dldll~
2239
 
       $RM \$dlpath'
 
3162
       $rm \$dlpath'
2240
3163
    shlibpath_overrides_runpath=yes
2241
3164
 
2242
3165
    case $host_os in
2245
3168
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246
3169
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2247
3170
      ;;
2248
 
    mingw* | cegcc*)
 
3171
    mingw*)
2249
3172
      # MinGW DLLs use traditional 'lib' prefix
2250
3173
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
3174
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3175
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2253
3176
        # It is most probably a Windows format PATH printed by
2254
3177
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2255
3178
        # path with ; separators, and with drive letters. We can handle the
2256
3179
        # drive letters (cygwin fileutils understands them), so leave them,
2257
3180
        # especially as we might pass files found there to a mingw objdump,
2258
3181
        # which wouldn't understand a cygwinified path. Ahh.
2259
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3182
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2260
3183
      else
2261
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3184
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2262
3185
      fi
2263
3186
      ;;
2264
3187
    pw32*)
2282
3205
  version_type=darwin
2283
3206
  need_lib_prefix=no
2284
3207
  need_version=no
2285
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3208
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2286
3209
  soname_spec='${libname}${release}${major}$shared_ext'
2287
3210
  shlibpath_overrides_runpath=yes
2288
3211
  shlibpath_var=DYLD_LIBRARY_PATH
2289
3212
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2290
 
m4_if([$1], [],[
2291
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
3213
  m4_if([$1], [],[
 
3214
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2292
3215
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2293
3216
  ;;
2294
3217
 
2381
3304
    fi
2382
3305
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2383
3306
    ;;
2384
 
  hppa*64*)
2385
 
    shrext_cmds='.sl'
2386
 
    hardcode_into_libs=yes
2387
 
    dynamic_linker="$host_os dld.sl"
2388
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2389
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2390
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2391
 
    soname_spec='${libname}${release}${shared_ext}$major'
2392
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2393
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2394
 
    ;;
2395
 
  *)
 
3307
   hppa*64*)
 
3308
     shrext_cmds='.sl'
 
3309
     hardcode_into_libs=yes
 
3310
     dynamic_linker="$host_os dld.sl"
 
3311
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3312
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3313
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3314
     soname_spec='${libname}${release}${shared_ext}$major'
 
3315
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3316
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3317
     ;;
 
3318
   *)
2396
3319
    shrext_cmds='.sl'
2397
3320
    dynamic_linker="$host_os dld.sl"
2398
3321
    shlibpath_var=SHLIB_PATH
2469
3392
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470
3393
  shlibpath_var=LD_LIBRARY_PATH
2471
3394
  shlibpath_overrides_runpath=no
2472
 
  # Some binutils ld are patched to set DT_RUNPATH
2473
 
  save_LDFLAGS=$LDFLAGS
2474
 
  save_libdir=$libdir
2475
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2476
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2477
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2478
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2479
 
       [shlibpath_overrides_runpath=yes])])
2480
 
  LDFLAGS=$save_LDFLAGS
2481
 
  libdir=$save_libdir
2482
 
 
2483
3395
  # This implies no fast_install, which is unacceptable.
2484
3396
  # Some rework will be needed to allow for fast_install
2485
3397
  # before this can be enabled.
2487
3399
 
2488
3400
  # Append ld.so.conf contents to the search path
2489
3401
  if test -f /etc/ld.so.conf; then
2490
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
3402
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2491
3403
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492
3404
  fi
2493
3405
 
2504
3416
  version_type=sunos
2505
3417
  need_lib_prefix=no
2506
3418
  need_version=no
2507
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
3419
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2508
3420
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2509
3421
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2510
3422
    dynamic_linker='NetBSD (a.out) ld.so'
2525
3437
  shlibpath_overrides_runpath=yes
2526
3438
  ;;
2527
3439
 
2528
 
*nto* | *qnx*)
2529
 
  version_type=qnx
 
3440
nto-qnx*)
 
3441
  version_type=linux
2530
3442
  need_lib_prefix=no
2531
3443
  need_version=no
2532
3444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2533
3445
  soname_spec='${libname}${release}${shared_ext}$major'
2534
3446
  shlibpath_var=LD_LIBRARY_PATH
2535
 
  shlibpath_overrides_runpath=no
2536
 
  hardcode_into_libs=yes
2537
 
  dynamic_linker='ldqnx.so'
 
3447
  shlibpath_overrides_runpath=yes
2538
3448
  ;;
2539
3449
 
2540
3450
openbsd*)
2543
3453
  need_lib_prefix=no
2544
3454
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2545
3455
  case $host_os in
2546
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
2547
 
    *)                          need_version=no  ;;
 
3456
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
3457
    *)                         need_version=no  ;;
2548
3458
  esac
2549
3459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2550
3460
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2551
3461
  shlibpath_var=LD_LIBRARY_PATH
2552
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3462
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2553
3463
    case $host_os in
2554
3464
      openbsd2.[[89]] | openbsd2.[[89]].*)
2555
3465
        shlibpath_overrides_runpath=no
2621
3531
    sni)
2622
3532
      shlibpath_overrides_runpath=no
2623
3533
      need_lib_prefix=no
 
3534
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2624
3535
      runpath_var=LD_RUN_PATH
2625
3536
      ;;
2626
3537
    siemens)
2651
3562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2652
3563
  soname_spec='${libname}${release}${shared_ext}$major'
2653
3564
  shlibpath_var=LD_LIBRARY_PATH
2654
 
  shlibpath_overrides_runpath=yes
2655
3565
  hardcode_into_libs=yes
2656
3566
  if test "$with_gnu_ld" = yes; then
2657
3567
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
3568
    shlibpath_overrides_runpath=no
2658
3569
  else
2659
3570
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
3571
    shlibpath_overrides_runpath=yes
2660
3572
    case $host_os in
2661
3573
      sco3.2v5*)
2662
3574
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2666
3578
  sys_lib_dlsearch_path_spec='/usr/lib'
2667
3579
  ;;
2668
3580
 
2669
 
tpf*)
2670
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2671
 
  version_type=linux
2672
 
  need_lib_prefix=no
2673
 
  need_version=no
2674
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2675
 
  shlibpath_var=LD_LIBRARY_PATH
2676
 
  shlibpath_overrides_runpath=no
2677
 
  hardcode_into_libs=yes
2678
 
  ;;
2679
 
 
2680
3581
uts4*)
2681
3582
  version_type=linux
2682
3583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2691
3592
AC_MSG_RESULT([$dynamic_linker])
2692
3593
test "$dynamic_linker" = no && can_build_shared=no
2693
3594
 
 
3595
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
3596
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
3597
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3598
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
3599
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
3600
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3601
 
2694
3602
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2695
3603
if test "$GCC" = yes; then
2696
3604
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2697
3605
fi
2698
 
 
2699
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2700
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2701
 
fi
2702
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2703
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2704
 
fi
2705
 
 
2706
 
_LT_DECL([], [variables_saved_for_relink], [1],
2707
 
    [Variables whose values should be saved in libtool wrapper scripts and
2708
 
    restored at link time])
2709
 
_LT_DECL([], [need_lib_prefix], [0],
2710
 
    [Do we need the "lib" prefix for modules?])
2711
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2712
 
_LT_DECL([], [version_type], [0], [Library versioning type])
2713
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
2714
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2715
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
2716
 
    [Is shlibpath searched before the hard-coded library search path?])
2717
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2718
 
_LT_DECL([], [library_names_spec], [1],
2719
 
    [[List of archive names.  First name is the real one, the rest are links.
2720
 
    The last name is the one that the linker finds with -lNAME]])
2721
 
_LT_DECL([], [soname_spec], [1],
2722
 
    [[The coded name of the library, if different from the real name]])
2723
 
_LT_DECL([], [postinstall_cmds], [2],
2724
 
    [Command to use after installation of a shared archive])
2725
 
_LT_DECL([], [postuninstall_cmds], [2],
2726
 
    [Command to use after uninstallation of a shared archive])
2727
 
_LT_DECL([], [finish_cmds], [2],
2728
 
    [Commands used to finish a libtool library installation in a directory])
2729
 
_LT_DECL([], [finish_eval], [1],
2730
 
    [[As "finish_cmds", except a single script fragment to be evaled but
2731
 
    not shown]])
2732
 
_LT_DECL([], [hardcode_into_libs], [0],
2733
 
    [Whether we should hardcode library paths into libraries])
2734
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
2735
 
    [Compile-time system search path for libraries])
2736
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2737
 
    [Run-time system search path for libraries])
2738
 
])# _LT_SYS_DYNAMIC_LINKER
2739
 
 
2740
 
 
2741
 
# _LT_PATH_TOOL_PREFIX(TOOL)
 
3606
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
3607
 
 
3608
 
 
3609
# _LT_AC_TAGCONFIG
 
3610
# ----------------
 
3611
AC_DEFUN([_LT_AC_TAGCONFIG],
 
3612
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3613
AC_ARG_WITH([tags],
 
3614
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
3615
        [include additional configurations @<:@automatic@:>@])],
 
3616
    [tagnames="$withval"])
 
3617
 
 
3618
if test -f "$ltmain" && test -n "$tagnames"; then
 
3619
  if test ! -f "${ofile}"; then
 
3620
    AC_MSG_WARN([output file `$ofile' does not exist])
 
3621
  fi
 
3622
 
 
3623
  if test -z "$LTCC"; then
 
3624
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
3625
    if test -z "$LTCC"; then
 
3626
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
3627
    else
 
3628
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
3629
    fi
 
3630
  fi
 
3631
  if test -z "$LTCFLAGS"; then
 
3632
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
3633
  fi
 
3634
 
 
3635
  # Extract list of available tagged configurations in $ofile.
 
3636
  # Note that this assumes the entire list is on one line.
 
3637
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
3638
 
 
3639
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3640
  for tagname in $tagnames; do
 
3641
    IFS="$lt_save_ifs"
 
3642
    # Check whether tagname contains only valid characters
 
3643
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
3644
    "") ;;
 
3645
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
3646
        ;;
 
3647
    esac
 
3648
 
 
3649
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
3650
    then
 
3651
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
3652
    fi
 
3653
 
 
3654
    # Update the list of available tags.
 
3655
    if test -n "$tagname"; then
 
3656
      echo appending configuration tag \"$tagname\" to $ofile
 
3657
 
 
3658
      case $tagname in
 
3659
      CXX)
 
3660
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3661
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3662
            (test "X$CXX" != "Xg++"))) ; then
 
3663
          AC_LIBTOOL_LANG_CXX_CONFIG
 
3664
        else
 
3665
          tagname=""
 
3666
        fi
 
3667
        ;;
 
3668
 
 
3669
      F77)
 
3670
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
3671
          AC_LIBTOOL_LANG_F77_CONFIG
 
3672
        else
 
3673
          tagname=""
 
3674
        fi
 
3675
        ;;
 
3676
 
 
3677
      GCJ)
 
3678
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
3679
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
3680
        else
 
3681
          tagname=""
 
3682
        fi
 
3683
        ;;
 
3684
 
 
3685
      RC)
 
3686
        AC_LIBTOOL_LANG_RC_CONFIG
 
3687
        ;;
 
3688
 
 
3689
      *)
 
3690
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
3691
        ;;
 
3692
      esac
 
3693
 
 
3694
      # Append the new tag name to the list of available tags.
 
3695
      if test -n "$tagname" ; then
 
3696
      available_tags="$available_tags $tagname"
 
3697
    fi
 
3698
    fi
 
3699
  done
 
3700
  IFS="$lt_save_ifs"
 
3701
 
 
3702
  # Now substitute the updated list of available tags.
 
3703
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
3704
    mv "${ofile}T" "$ofile"
 
3705
    chmod +x "$ofile"
 
3706
  else
 
3707
    rm -f "${ofile}T"
 
3708
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
3709
  fi
 
3710
fi
 
3711
])# _LT_AC_TAGCONFIG
 
3712
 
 
3713
 
 
3714
# AC_LIBTOOL_DLOPEN
 
3715
# -----------------
 
3716
# enable checks for dlopen support
 
3717
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
3718
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
3719
])# AC_LIBTOOL_DLOPEN
 
3720
 
 
3721
 
 
3722
# AC_LIBTOOL_WIN32_DLL
 
3723
# --------------------
 
3724
# declare package support for building win32 DLLs
 
3725
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
3726
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
3727
])# AC_LIBTOOL_WIN32_DLL
 
3728
 
 
3729
 
 
3730
# AC_ENABLE_SHARED([DEFAULT])
 
3731
# ---------------------------
 
3732
# implement the --enable-shared flag
 
3733
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3734
AC_DEFUN([AC_ENABLE_SHARED],
 
3735
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
3736
AC_ARG_ENABLE([shared],
 
3737
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
3738
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
3739
    [p=${PACKAGE-default}
 
3740
    case $enableval in
 
3741
    yes) enable_shared=yes ;;
 
3742
    no) enable_shared=no ;;
 
3743
    *)
 
3744
      enable_shared=no
 
3745
      # Look at the argument we got.  We use all the common list separators.
 
3746
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3747
      for pkg in $enableval; do
 
3748
        IFS="$lt_save_ifs"
 
3749
        if test "X$pkg" = "X$p"; then
 
3750
          enable_shared=yes
 
3751
        fi
 
3752
      done
 
3753
      IFS="$lt_save_ifs"
 
3754
      ;;
 
3755
    esac],
 
3756
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
3757
])# AC_ENABLE_SHARED
 
3758
 
 
3759
 
 
3760
# AC_DISABLE_SHARED
 
3761
# -----------------
 
3762
# set the default shared flag to --disable-shared
 
3763
AC_DEFUN([AC_DISABLE_SHARED],
 
3764
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3765
AC_ENABLE_SHARED(no)
 
3766
])# AC_DISABLE_SHARED
 
3767
 
 
3768
 
 
3769
# AC_ENABLE_STATIC([DEFAULT])
 
3770
# ---------------------------
 
3771
# implement the --enable-static flag
 
3772
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3773
AC_DEFUN([AC_ENABLE_STATIC],
 
3774
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
3775
AC_ARG_ENABLE([static],
 
3776
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
3777
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
3778
    [p=${PACKAGE-default}
 
3779
    case $enableval in
 
3780
    yes) enable_static=yes ;;
 
3781
    no) enable_static=no ;;
 
3782
    *)
 
3783
     enable_static=no
 
3784
      # Look at the argument we got.  We use all the common list separators.
 
3785
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3786
      for pkg in $enableval; do
 
3787
        IFS="$lt_save_ifs"
 
3788
        if test "X$pkg" = "X$p"; then
 
3789
          enable_static=yes
 
3790
        fi
 
3791
      done
 
3792
      IFS="$lt_save_ifs"
 
3793
      ;;
 
3794
    esac],
 
3795
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
3796
])# AC_ENABLE_STATIC
 
3797
 
 
3798
 
 
3799
# AC_DISABLE_STATIC
 
3800
# -----------------
 
3801
# set the default static flag to --disable-static
 
3802
AC_DEFUN([AC_DISABLE_STATIC],
 
3803
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3804
AC_ENABLE_STATIC(no)
 
3805
])# AC_DISABLE_STATIC
 
3806
 
 
3807
 
 
3808
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
3809
# ---------------------------------
 
3810
# implement the --enable-fast-install flag
 
3811
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3812
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
3813
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
3814
AC_ARG_ENABLE([fast-install],
 
3815
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
3816
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
3817
    [p=${PACKAGE-default}
 
3818
    case $enableval in
 
3819
    yes) enable_fast_install=yes ;;
 
3820
    no) enable_fast_install=no ;;
 
3821
    *)
 
3822
      enable_fast_install=no
 
3823
      # Look at the argument we got.  We use all the common list separators.
 
3824
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3825
      for pkg in $enableval; do
 
3826
        IFS="$lt_save_ifs"
 
3827
        if test "X$pkg" = "X$p"; then
 
3828
          enable_fast_install=yes
 
3829
        fi
 
3830
      done
 
3831
      IFS="$lt_save_ifs"
 
3832
      ;;
 
3833
    esac],
 
3834
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
3835
])# AC_ENABLE_FAST_INSTALL
 
3836
 
 
3837
 
 
3838
# AC_DISABLE_FAST_INSTALL
 
3839
# -----------------------
 
3840
# set the default to --disable-fast-install
 
3841
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
3842
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3843
AC_ENABLE_FAST_INSTALL(no)
 
3844
])# AC_DISABLE_FAST_INSTALL
 
3845
 
 
3846
 
 
3847
# AC_LIBTOOL_PICMODE([MODE])
2742
3848
# --------------------------
 
3849
# implement the --with-pic flag
 
3850
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
3851
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
3852
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3853
pic_mode=ifelse($#,1,$1,default)
 
3854
])# AC_LIBTOOL_PICMODE
 
3855
 
 
3856
 
 
3857
# AC_PROG_EGREP
 
3858
# -------------
 
3859
# This is predefined starting with Autoconf 2.54, so this conditional
 
3860
# definition can be removed once we require Autoconf 2.54 or later.
 
3861
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
3862
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
3863
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3864
    then ac_cv_prog_egrep='grep -E'
 
3865
    else ac_cv_prog_egrep='egrep'
 
3866
    fi])
 
3867
 EGREP=$ac_cv_prog_egrep
 
3868
 AC_SUBST([EGREP])
 
3869
])])
 
3870
 
 
3871
 
 
3872
# AC_PATH_TOOL_PREFIX
 
3873
# -------------------
2743
3874
# find a file program which can recognize shared library
2744
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2745
 
[m4_require([_LT_DECL_EGREP])dnl
 
3875
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
3876
[AC_REQUIRE([AC_PROG_EGREP])dnl
2746
3877
AC_MSG_CHECKING([for $1])
2747
3878
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2748
3879
[case $MAGIC_CMD in
2755
3886
dnl $ac_dummy forces splitting on constant user-supplied paths.
2756
3887
dnl POSIX.2 word splitting is done only on the output of word expansions,
2757
3888
dnl not every word.  This closes a longstanding sh security hole.
2758
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
3889
  ac_dummy="ifelse([$2], , $PATH, [$2])"
2759
3890
  for ac_dir in $ac_dummy; do
2760
3891
    IFS="$lt_save_ifs"
2761
3892
    test -z "$ac_dir" && ac_dir=.
2770
3901
            $EGREP "$file_magic_regex" > /dev/null; then
2771
3902
            :
2772
3903
          else
2773
 
            cat <<_LT_EOF 1>&2
 
3904
            cat <<EOF 1>&2
2774
3905
 
2775
3906
*** Warning: the command libtool uses to detect shared libraries,
2776
3907
*** $file_magic_cmd, produces output that libtool cannot recognize.
2781
3912
*** may want to report the problem to your system manager and/or to
2782
3913
*** bug-libtool@gnu.org
2783
3914
 
2784
 
_LT_EOF
 
3915
EOF
2785
3916
          fi ;;
2786
3917
        esac
2787
3918
      fi
2798
3929
else
2799
3930
  AC_MSG_RESULT(no)
2800
3931
fi
2801
 
_LT_DECL([], [MAGIC_CMD], [0],
2802
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2803
 
])# _LT_PATH_TOOL_PREFIX
2804
 
 
2805
 
# Old name:
2806
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2807
 
dnl aclocal-1.4 backwards compatibility:
2808
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2809
 
 
2810
 
 
2811
 
# _LT_PATH_MAGIC
2812
 
# --------------
 
3932
])# AC_PATH_TOOL_PREFIX
 
3933
 
 
3934
 
 
3935
# AC_PATH_MAGIC
 
3936
# -------------
2813
3937
# find a file program which can recognize a shared library
2814
 
m4_defun([_LT_PATH_MAGIC],
2815
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3938
AC_DEFUN([AC_PATH_MAGIC],
 
3939
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2816
3940
if test -z "$lt_cv_path_MAGIC_CMD"; then
2817
3941
  if test -n "$ac_tool_prefix"; then
2818
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3942
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2819
3943
  else
2820
3944
    MAGIC_CMD=:
2821
3945
  fi
2822
3946
fi
2823
 
])# _LT_PATH_MAGIC
2824
 
 
2825
 
 
2826
 
# LT_PATH_LD
 
3947
])# AC_PATH_MAGIC
 
3948
 
 
3949
 
 
3950
# AC_PROG_LD
2827
3951
# ----------
2828
3952
# find the pathname to the GNU or non-GNU linker
2829
 
AC_DEFUN([LT_PATH_LD],
2830
 
[AC_REQUIRE([AC_PROG_CC])dnl
2831
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2832
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2833
 
m4_require([_LT_DECL_SED])dnl
2834
 
m4_require([_LT_DECL_EGREP])dnl
2835
 
 
2836
 
AC_ARG_WITH([gnu-ld],
2837
 
    [AS_HELP_STRING([--with-gnu-ld],
 
3953
AC_DEFUN([AC_PROG_LD],
 
3954
[AC_ARG_WITH([gnu-ld],
 
3955
    [AC_HELP_STRING([--with-gnu-ld],
2838
3956
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2839
3957
    [test "$withval" = no || with_gnu_ld=yes],
2840
 
    [with_gnu_ld=no])dnl
2841
 
 
 
3958
    [with_gnu_ld=no])
 
3959
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3960
AC_REQUIRE([AC_PROG_CC])dnl
 
3961
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3962
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2842
3963
ac_prog=ld
2843
3964
if test "$GCC" = yes; then
2844
3965
  # Check if gcc -print-prog-name=ld gives a path.
2855
3976
    [[\\/]]* | ?:[[\\/]]*)
2856
3977
      re_direlt='/[[^/]][[^/]]*/\.\./'
2857
3978
      # Canonicalize the pathname of ld
2858
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2859
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2860
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
3979
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3980
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3981
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2861
3982
      done
2862
3983
      test -z "$LD" && LD="$ac_prog"
2863
3984
      ;;
2907
4028
  AC_MSG_RESULT(no)
2908
4029
fi
2909
4030
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2910
 
_LT_PATH_LD_GNU
2911
 
AC_SUBST([LD])
2912
 
 
2913
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2914
 
])# LT_PATH_LD
2915
 
 
2916
 
# Old names:
2917
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2918
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2919
 
dnl aclocal-1.4 backwards compatibility:
2920
 
dnl AC_DEFUN([AM_PROG_LD], [])
2921
 
dnl AC_DEFUN([AC_PROG_LD], [])
2922
 
 
2923
 
 
2924
 
# _LT_PATH_LD_GNU
2925
 
#- --------------
2926
 
m4_defun([_LT_PATH_LD_GNU],
2927
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
4031
AC_PROG_LD_GNU
 
4032
])# AC_PROG_LD
 
4033
 
 
4034
 
 
4035
# AC_PROG_LD_GNU
 
4036
# --------------
 
4037
AC_DEFUN([AC_PROG_LD_GNU],
 
4038
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
4039
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2928
4040
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2929
4041
case `$LD -v 2>&1 </dev/null` in
2930
4042
*GNU* | *'with BFD'*)
2935
4047
  ;;
2936
4048
esac])
2937
4049
with_gnu_ld=$lt_cv_prog_gnu_ld
2938
 
])# _LT_PATH_LD_GNU
2939
 
 
2940
 
 
2941
 
# _LT_CMD_RELOAD
2942
 
# --------------
 
4050
])# AC_PROG_LD_GNU
 
4051
 
 
4052
 
 
4053
# AC_PROG_LD_RELOAD_FLAG
 
4054
# ----------------------
2943
4055
# find reload flag for linker
2944
4056
#   -- PORTME Some linkers may need a different reload flag.
2945
 
m4_defun([_LT_CMD_RELOAD],
 
4057
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2946
4058
[AC_CACHE_CHECK([for $LD option to reload object files],
2947
4059
  lt_cv_ld_reload_flag,
2948
4060
  [lt_cv_ld_reload_flag='-r'])
2961
4073
    fi
2962
4074
    ;;
2963
4075
esac
2964
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2965
 
_LT_DECL([], [reload_cmds], [2])dnl
2966
 
])# _LT_CMD_RELOAD
2967
 
 
2968
 
 
2969
 
# _LT_CHECK_MAGIC_METHOD
2970
 
# ----------------------
 
4076
])# AC_PROG_LD_RELOAD_FLAG
 
4077
 
 
4078
 
 
4079
# AC_DEPLIBS_CHECK_METHOD
 
4080
# -----------------------
2971
4081
# how to check for library dependencies
2972
4082
#  -- PORTME fill in with the dynamic library characteristics
2973
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
2974
 
[m4_require([_LT_DECL_EGREP])
2975
 
m4_require([_LT_DECL_OBJDUMP])
2976
 
AC_CACHE_CHECK([how to recognize dependent libraries],
 
4083
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
4084
[AC_CACHE_CHECK([how to recognize dependent libraries],
2977
4085
lt_cv_deplibs_check_method,
2978
4086
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2979
4087
lt_cv_file_magic_test_file=
3023
4131
  fi
3024
4132
  ;;
3025
4133
 
3026
 
cegcc)
3027
 
  # use the weaker test based on 'objdump'. See mingw*.
3028
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3029
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3030
 
  ;;
3031
 
 
3032
4134
darwin* | rhapsody*)
3033
4135
  lt_cv_deplibs_check_method=pass_all
3034
4136
  ;;
3035
4137
 
3036
4138
freebsd* | dragonfly*)
3037
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4139
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3038
4140
    case $host_cpu in
3039
4141
    i*86 )
3040
4142
      # Not sure whether the presence of OpenBSD here was a mistake.
3092
4194
  ;;
3093
4195
 
3094
4196
netbsd*)
3095
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4197
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3096
4198
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3097
4199
  else
3098
4200
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3105
4207
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3106
4208
  ;;
3107
4209
 
3108
 
*nto* | *qnx*)
3109
 
  lt_cv_deplibs_check_method=pass_all
 
4210
nto-qnx*)
 
4211
  lt_cv_deplibs_check_method=unknown
3110
4212
  ;;
3111
4213
 
3112
4214
openbsd*)
3113
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4215
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3114
4216
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3115
4217
  else
3116
4218
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3129
4231
  lt_cv_deplibs_check_method=pass_all
3130
4232
  ;;
3131
4233
 
3132
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3133
 
  lt_cv_deplibs_check_method=pass_all
3134
 
  ;;
3135
 
 
3136
4234
sysv4 | sysv4.3*)
3137
4235
  case $host_vendor in
3138
4236
  motorola)
3160
4258
  esac
3161
4259
  ;;
3162
4260
 
3163
 
tpf*)
 
4261
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3164
4262
  lt_cv_deplibs_check_method=pass_all
3165
4263
  ;;
3166
4264
esac
3168
4266
file_magic_cmd=$lt_cv_file_magic_cmd
3169
4267
deplibs_check_method=$lt_cv_deplibs_check_method
3170
4268
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3171
 
 
3172
 
_LT_DECL([], [deplibs_check_method], [1],
3173
 
    [Method to check whether dependent libraries are shared objects])
3174
 
_LT_DECL([], [file_magic_cmd], [1],
3175
 
    [Command to use when deplibs_check_method == "file_magic"])
3176
 
])# _LT_CHECK_MAGIC_METHOD
3177
 
 
3178
 
 
3179
 
# LT_PATH_NM
 
4269
])# AC_DEPLIBS_CHECK_METHOD
 
4270
 
 
4271
 
 
4272
# AC_PROG_NM
3180
4273
# ----------
3181
 
# find the pathname to a BSD- or MS-compatible name lister
3182
 
AC_DEFUN([LT_PATH_NM],
3183
 
[AC_REQUIRE([AC_PROG_CC])dnl
3184
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
4274
# find the pathname to a BSD-compatible name lister
 
4275
AC_DEFUN([AC_PROG_NM],
 
4276
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3185
4277
[if test -n "$NM"; then
3186
4278
  # Let the user override the test.
3187
4279
  lt_cv_path_NM="$NM"
3223
4315
    done
3224
4316
    IFS="$lt_save_ifs"
3225
4317
  done
3226
 
  : ${lt_cv_path_NM=no}
 
4318
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3227
4319
fi])
3228
 
if test "$lt_cv_path_NM" != "no"; then
3229
 
  NM="$lt_cv_path_NM"
3230
 
else
3231
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
3232
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3233
 
  AC_SUBST([DUMPBIN])
3234
 
  if test "$DUMPBIN" != ":"; then
3235
 
    NM="$DUMPBIN"
3236
 
  fi
3237
 
fi
3238
 
test -z "$NM" && NM=nm
3239
 
AC_SUBST([NM])
3240
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3241
 
 
3242
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3243
 
  [lt_cv_nm_interface="BSD nm"
3244
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3245
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3246
 
  (eval "$ac_compile" 2>conftest.err)
3247
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3248
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3249
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3250
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3251
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3252
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
3253
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3254
 
    lt_cv_nm_interface="MS dumpbin"
3255
 
  fi
3256
 
  rm -f conftest*])
3257
 
])# LT_PATH_NM
3258
 
 
3259
 
# Old names:
3260
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3261
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3262
 
dnl aclocal-1.4 backwards compatibility:
3263
 
dnl AC_DEFUN([AM_PROG_NM], [])
3264
 
dnl AC_DEFUN([AC_PROG_NM], [])
3265
 
 
3266
 
 
3267
 
# LT_LIB_M
3268
 
# --------
 
4320
NM="$lt_cv_path_NM"
 
4321
])# AC_PROG_NM
 
4322
 
 
4323
 
 
4324
# AC_CHECK_LIBM
 
4325
# -------------
3269
4326
# check for math library
3270
 
AC_DEFUN([LT_LIB_M],
 
4327
AC_DEFUN([AC_CHECK_LIBM],
3271
4328
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3272
4329
LIBM=
3273
4330
case $host in
3282
4339
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3283
4340
  ;;
3284
4341
esac
3285
 
AC_SUBST([LIBM])
3286
 
])# LT_LIB_M
3287
 
 
3288
 
# Old name:
3289
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3290
 
dnl aclocal-1.4 backwards compatibility:
3291
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3292
 
 
3293
 
 
3294
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
3295
 
# -------------------------------
3296
 
m4_defun([_LT_COMPILER_NO_RTTI],
3297
 
[m4_require([_LT_TAG_COMPILER])dnl
3298
 
 
3299
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4342
])# AC_CHECK_LIBM
 
4343
 
 
4344
 
 
4345
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
4346
# -----------------------------------
 
4347
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
4348
# LTDLINCL to the include flags for the libltdl header and adds
 
4349
# --enable-ltdl-convenience to the configure arguments.  Note that
 
4350
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
4351
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
4352
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
4353
# (note the single quotes!).  If your package is not flat and you're not
 
4354
# using automake, define top_builddir and top_srcdir appropriately in
 
4355
# the Makefiles.
 
4356
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
4357
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
4358
  case $enable_ltdl_convenience in
 
4359
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
4360
  "") enable_ltdl_convenience=yes
 
4361
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
4362
  esac
 
4363
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
4364
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
4365
  # For backwards non-gettext consistent compatibility...
 
4366
  INCLTDL="$LTDLINCL"
 
4367
])# AC_LIBLTDL_CONVENIENCE
 
4368
 
 
4369
 
 
4370
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
4371
# -----------------------------------
 
4372
# sets LIBLTDL to the link flags for the libltdl installable library and
 
4373
# LTDLINCL to the include flags for the libltdl header and adds
 
4374
# --enable-ltdl-install to the configure arguments.  Note that
 
4375
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
4376
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
4377
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
4378
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
4379
# flat and you're not using automake, define top_builddir and top_srcdir
 
4380
# appropriately in the Makefiles.
 
4381
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
4382
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
4383
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
4384
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
4385
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
4386
  [if test x"$enable_ltdl_install" = xno; then
 
4387
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
4388
   else
 
4389
     enable_ltdl_install=yes
 
4390
   fi
 
4391
  ])
 
4392
  if test x"$enable_ltdl_install" = x"yes"; then
 
4393
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
4394
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
4395
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
4396
  else
 
4397
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
4398
    LIBLTDL="-lltdl"
 
4399
    LTDLINCL=
 
4400
  fi
 
4401
  # For backwards non-gettext consistent compatibility...
 
4402
  INCLTDL="$LTDLINCL"
 
4403
])# AC_LIBLTDL_INSTALLABLE
 
4404
 
 
4405
 
 
4406
# AC_LIBTOOL_CXX
 
4407
# --------------
 
4408
# enable support for C++ libraries
 
4409
AC_DEFUN([AC_LIBTOOL_CXX],
 
4410
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
4411
])# AC_LIBTOOL_CXX
 
4412
 
 
4413
 
 
4414
# _LT_AC_LANG_CXX
 
4415
# ---------------
 
4416
AC_DEFUN([_LT_AC_LANG_CXX],
 
4417
[AC_REQUIRE([AC_PROG_CXX])
 
4418
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
4419
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
4420
])# _LT_AC_LANG_CXX
 
4421
 
 
4422
# _LT_AC_PROG_CXXCPP
 
4423
# ------------------
 
4424
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
4425
[
 
4426
AC_REQUIRE([AC_PROG_CXX])
 
4427
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4428
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4429
    (test "X$CXX" != "Xg++"))) ; then
 
4430
  AC_PROG_CXXCPP
 
4431
fi
 
4432
])# _LT_AC_PROG_CXXCPP
 
4433
 
 
4434
# AC_LIBTOOL_F77
 
4435
# --------------
 
4436
# enable support for Fortran 77 libraries
 
4437
AC_DEFUN([AC_LIBTOOL_F77],
 
4438
[AC_REQUIRE([_LT_AC_LANG_F77])
 
4439
])# AC_LIBTOOL_F77
 
4440
 
 
4441
 
 
4442
# _LT_AC_LANG_F77
 
4443
# ---------------
 
4444
AC_DEFUN([_LT_AC_LANG_F77],
 
4445
[AC_REQUIRE([AC_PROG_F77])
 
4446
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
4447
])# _LT_AC_LANG_F77
 
4448
 
 
4449
 
 
4450
# AC_LIBTOOL_GCJ
 
4451
# --------------
 
4452
# enable support for GCJ libraries
 
4453
AC_DEFUN([AC_LIBTOOL_GCJ],
 
4454
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
4455
])# AC_LIBTOOL_GCJ
 
4456
 
 
4457
 
 
4458
# _LT_AC_LANG_GCJ
 
4459
# ---------------
 
4460
AC_DEFUN([_LT_AC_LANG_GCJ],
 
4461
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
4462
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
4463
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
4464
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
4465
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
4466
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
4467
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
4468
])# _LT_AC_LANG_GCJ
 
4469
 
 
4470
 
 
4471
# AC_LIBTOOL_RC
 
4472
# -------------
 
4473
# enable support for Windows resource files
 
4474
AC_DEFUN([AC_LIBTOOL_RC],
 
4475
[AC_REQUIRE([LT_AC_PROG_RC])
 
4476
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
4477
])# AC_LIBTOOL_RC
 
4478
 
 
4479
 
 
4480
# AC_LIBTOOL_LANG_C_CONFIG
 
4481
# ------------------------
 
4482
# Ensure that the configuration vars for the C compiler are
 
4483
# suitably defined.  Those variables are subsequently used by
 
4484
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4485
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
4486
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
4487
[lt_save_CC="$CC"
 
4488
AC_LANG_PUSH(C)
 
4489
 
 
4490
# Source file extension for C test sources.
 
4491
ac_ext=c
 
4492
 
 
4493
# Object file extension for compiled C test sources.
 
4494
objext=o
 
4495
_LT_AC_TAGVAR(objext, $1)=$objext
 
4496
 
 
4497
# Code to be used in simple compile tests
 
4498
lt_simple_compile_test_code="int some_variable = 0;"
 
4499
 
 
4500
# Code to be used in simple link tests
 
4501
lt_simple_link_test_code='int main(){return(0);}'
 
4502
 
 
4503
_LT_AC_SYS_COMPILER
 
4504
 
 
4505
# save warnings/boilerplate of simple test code
 
4506
_LT_COMPILER_BOILERPLATE
 
4507
_LT_LINKER_BOILERPLATE
 
4508
 
 
4509
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4510
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4511
AC_LIBTOOL_PROG_CC_C_O($1)
 
4512
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4513
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4514
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4515
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4516
AC_LIBTOOL_SYS_LIB_STRIP
 
4517
AC_LIBTOOL_DLOPEN_SELF
 
4518
 
 
4519
# Report which library types will actually be built
 
4520
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4521
AC_MSG_RESULT([$can_build_shared])
 
4522
 
 
4523
AC_MSG_CHECKING([whether to build shared libraries])
 
4524
test "$can_build_shared" = "no" && enable_shared=no
 
4525
 
 
4526
# On AIX, shared libraries and static libraries use the same namespace, and
 
4527
# are all built from PIC.
 
4528
case $host_os in
 
4529
aix3*)
 
4530
  test "$enable_shared" = yes && enable_static=no
 
4531
  if test -n "$RANLIB"; then
 
4532
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4533
    postinstall_cmds='$RANLIB $lib'
 
4534
  fi
 
4535
  ;;
 
4536
 
 
4537
aix[[4-9]]*)
 
4538
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4539
    test "$enable_shared" = yes && enable_static=no
 
4540
  fi
 
4541
    ;;
 
4542
esac
 
4543
AC_MSG_RESULT([$enable_shared])
 
4544
 
 
4545
AC_MSG_CHECKING([whether to build static libraries])
 
4546
# Make sure either enable_shared or enable_static is yes.
 
4547
test "$enable_shared" = yes || enable_static=yes
 
4548
AC_MSG_RESULT([$enable_static])
 
4549
 
 
4550
AC_LIBTOOL_CONFIG($1)
 
4551
 
 
4552
AC_LANG_POP
 
4553
CC="$lt_save_CC"
 
4554
])# AC_LIBTOOL_LANG_C_CONFIG
 
4555
 
 
4556
 
 
4557
# AC_LIBTOOL_LANG_CXX_CONFIG
 
4558
# --------------------------
 
4559
# Ensure that the configuration vars for the C compiler are
 
4560
# suitably defined.  Those variables are subsequently used by
 
4561
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4562
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
4563
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
4564
[AC_LANG_PUSH(C++)
 
4565
AC_REQUIRE([AC_PROG_CXX])
 
4566
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
4567
 
 
4568
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4569
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4570
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4571
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4572
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4573
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4574
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4575
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4576
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4577
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4578
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4579
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4580
_LT_AC_TAGVAR(module_cmds, $1)=
 
4581
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4582
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4583
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4584
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4585
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4586
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4587
 
 
4588
# Dependencies to place before and after the object being linked:
 
4589
_LT_AC_TAGVAR(predep_objects, $1)=
 
4590
_LT_AC_TAGVAR(postdep_objects, $1)=
 
4591
_LT_AC_TAGVAR(predeps, $1)=
 
4592
_LT_AC_TAGVAR(postdeps, $1)=
 
4593
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
4594
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4595
 
 
4596
# Source file extension for C++ test sources.
 
4597
ac_ext=cpp
 
4598
 
 
4599
# Object file extension for compiled C++ test sources.
 
4600
objext=o
 
4601
_LT_AC_TAGVAR(objext, $1)=$objext
 
4602
 
 
4603
# Code to be used in simple compile tests
 
4604
lt_simple_compile_test_code="int some_variable = 0;"
 
4605
 
 
4606
# Code to be used in simple link tests
 
4607
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
4608
 
 
4609
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4610
_LT_AC_SYS_COMPILER
 
4611
 
 
4612
# save warnings/boilerplate of simple test code
 
4613
_LT_COMPILER_BOILERPLATE
 
4614
_LT_LINKER_BOILERPLATE
 
4615
 
 
4616
# Allow CC to be a program name with arguments.
 
4617
lt_save_CC=$CC
 
4618
lt_save_LD=$LD
 
4619
lt_save_GCC=$GCC
 
4620
GCC=$GXX
 
4621
lt_save_with_gnu_ld=$with_gnu_ld
 
4622
lt_save_path_LD=$lt_cv_path_LD
 
4623
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
4624
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
4625
else
 
4626
  $as_unset lt_cv_prog_gnu_ld
 
4627
fi
 
4628
if test -n "${lt_cv_path_LDCXX+set}"; then
 
4629
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
4630
else
 
4631
  $as_unset lt_cv_path_LD
 
4632
fi
 
4633
test -z "${LDCXX+set}" || LD=$LDCXX
 
4634
CC=${CXX-"c++"}
 
4635
compiler=$CC
 
4636
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4637
_LT_CC_BASENAME([$compiler])
 
4638
 
 
4639
# We don't want -fno-exception wen compiling C++ code, so set the
 
4640
# no_builtin_flag separately
 
4641
if test "$GXX" = yes; then
 
4642
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4643
else
 
4644
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4645
fi
 
4646
 
 
4647
if test "$GXX" = yes; then
 
4648
  # Set up default GNU C++ configuration
 
4649
 
 
4650
  AC_PROG_LD
 
4651
 
 
4652
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
4653
  # archiving commands below assume that GNU ld is being used.
 
4654
  if test "$with_gnu_ld" = yes; then
 
4655
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4656
    _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'
 
4657
 
 
4658
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4659
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4660
 
 
4661
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
4662
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
4663
    #     investigate it a little bit more. (MM)
 
4664
    wlarc='${wl}'
 
4665
 
 
4666
    # ancient GNU ld didn't support --whole-archive et. al.
 
4667
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
4668
        grep 'no-whole-archive' > /dev/null; then
 
4669
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4670
    else
 
4671
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4672
    fi
 
4673
  else
 
4674
    with_gnu_ld=no
 
4675
    wlarc=
 
4676
 
 
4677
    # A generic and very simple default shared library creation
 
4678
    # command for GNU C++ for the case where it uses the native
 
4679
    # linker, instead of GNU ld.  If possible, this setting should
 
4680
    # overridden to take advantage of the native linker features on
 
4681
    # the platform it is being used on.
 
4682
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4683
  fi
 
4684
 
 
4685
  # Commands to make compiler produce verbose output that lists
 
4686
  # what "hidden" libraries, object files and flags are used when
 
4687
  # linking a shared library.
 
4688
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4689
 
 
4690
else
 
4691
  GXX=no
 
4692
  with_gnu_ld=no
 
4693
  wlarc=
 
4694
fi
 
4695
 
 
4696
# PORTME: fill in a description of your system's C++ link characteristics
 
4697
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
4698
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4699
case $host_os in
 
4700
  aix3*)
 
4701
    # FIXME: insert proper C++ library support
 
4702
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4703
    ;;
 
4704
  aix[[4-9]]*)
 
4705
    if test "$host_cpu" = ia64; then
 
4706
      # On IA64, the linker does run time linking by default, so we don't
 
4707
      # have to do anything special.
 
4708
      aix_use_runtimelinking=no
 
4709
      exp_sym_flag='-Bexport'
 
4710
      no_entry_flag=""
 
4711
    else
 
4712
      aix_use_runtimelinking=no
 
4713
 
 
4714
      # Test if we are trying to use run time linking or normal
 
4715
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
4716
      # need to do runtime linking.
 
4717
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
4718
        for ld_flag in $LDFLAGS; do
 
4719
          case $ld_flag in
 
4720
          *-brtl*)
 
4721
            aix_use_runtimelinking=yes
 
4722
            break
 
4723
            ;;
 
4724
          esac
 
4725
        done
 
4726
        ;;
 
4727
      esac
 
4728
 
 
4729
      exp_sym_flag='-bexport'
 
4730
      no_entry_flag='-bnoentry'
 
4731
    fi
 
4732
 
 
4733
    # When large executables or shared objects are built, AIX ld can
 
4734
    # have problems creating the table of contents.  If linking a library
 
4735
    # or program results in "error TOC overflow" add -mminimal-toc to
 
4736
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
4737
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
4738
 
 
4739
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
4740
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4741
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4742
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4743
 
 
4744
    if test "$GXX" = yes; then
 
4745
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
4746
      # We only want to do this on AIX 4.2 and lower, the check
 
4747
      # below for broken collect2 doesn't work under 4.3+
 
4748
        collect2name=`${CC} -print-prog-name=collect2`
 
4749
        if test -f "$collect2name" && \
 
4750
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4751
        then
 
4752
          # We have reworked collect2
 
4753
          :
 
4754
        else
 
4755
          # We have old collect2
 
4756
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4757
          # It fails to find uninstalled libraries when the uninstalled
 
4758
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4759
          # to unsupported forces relinking
 
4760
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4761
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4762
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4763
        fi
 
4764
        ;;
 
4765
      esac
 
4766
      shared_flag='-shared'
 
4767
      if test "$aix_use_runtimelinking" = yes; then
 
4768
        shared_flag="$shared_flag "'${wl}-G'
 
4769
      fi
 
4770
    else
 
4771
      # not using gcc
 
4772
      if test "$host_cpu" = ia64; then
 
4773
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4774
        # chokes on -Wl,-G. The following line is correct:
 
4775
        shared_flag='-G'
 
4776
      else
 
4777
        if test "$aix_use_runtimelinking" = yes; then
 
4778
          shared_flag='${wl}-G'
 
4779
        else
 
4780
          shared_flag='${wl}-bM:SRE'
 
4781
        fi
 
4782
      fi
 
4783
    fi
 
4784
 
 
4785
    # It seems that -bexpall does not export symbols beginning with
 
4786
    # underscore (_), so it is better to generate a list of symbols to export.
 
4787
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4788
    if test "$aix_use_runtimelinking" = yes; then
 
4789
      # Warning - without using the other runtime loading flags (-brtl),
 
4790
      # -berok will link without error, but may produce a broken library.
 
4791
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4792
      # Determine the default libpath from the value encoded in an empty executable.
 
4793
      _LT_AC_SYS_LIBPATH_AIX
 
4794
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4795
 
 
4796
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
4797
     else
 
4798
      if test "$host_cpu" = ia64; then
 
4799
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4800
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4801
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
4802
      else
 
4803
        # Determine the default libpath from the value encoded in an empty executable.
 
4804
        _LT_AC_SYS_LIBPATH_AIX
 
4805
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4806
        # Warning - without using the other run time loading flags,
 
4807
        # -berok will link without error, but may produce a broken library.
 
4808
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4809
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4810
        # Exported symbols can be pulled into shared objects from archives
 
4811
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4812
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4813
        # This is similar to how AIX traditionally builds its shared libraries.
 
4814
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
4815
      fi
 
4816
    fi
 
4817
    ;;
 
4818
 
 
4819
  beos*)
 
4820
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4821
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4822
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
4823
      # support --undefined.  This deserves some investigation.  FIXME
 
4824
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4825
    else
 
4826
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4827
    fi
 
4828
    ;;
 
4829
 
 
4830
  chorus*)
 
4831
    case $cc_basename in
 
4832
      *)
 
4833
        # FIXME: insert proper C++ library support
 
4834
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4835
        ;;
 
4836
    esac
 
4837
    ;;
 
4838
 
 
4839
  cygwin* | mingw* | pw32*)
 
4840
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4841
    # as there is no search path for DLLs.
 
4842
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4843
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4844
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4845
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4846
 
 
4847
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
4848
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4849
      # If the export-symbols file already is a .def file (1st line
 
4850
      # is EXPORTS), use it as is; otherwise, prepend...
 
4851
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4852
        cp $export_symbols $output_objdir/$soname.def;
 
4853
      else
 
4854
        echo EXPORTS > $output_objdir/$soname.def;
 
4855
        cat $export_symbols >> $output_objdir/$soname.def;
 
4856
      fi~
 
4857
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4858
    else
 
4859
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4860
    fi
 
4861
  ;;
 
4862
      darwin* | rhapsody*)
 
4863
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4864
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4865
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
4866
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4867
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
4868
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4869
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
4870
      if test "$GXX" = yes ; then
 
4871
      output_verbose_link_cmd='echo'
 
4872
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
4873
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
4874
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
4875
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
4876
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
4877
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
4878
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
4879
      fi
 
4880
      else
 
4881
      case $cc_basename in
 
4882
        xlc*)
 
4883
         output_verbose_link_cmd='echo'
 
4884
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
4885
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4886
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4887
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4888
          _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}'
 
4889
          ;;
 
4890
       *)
 
4891
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4892
          ;;
 
4893
      esac
 
4894
      fi
 
4895
        ;;
 
4896
 
 
4897
  dgux*)
 
4898
    case $cc_basename in
 
4899
      ec++*)
 
4900
        # FIXME: insert proper C++ library support
 
4901
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4902
        ;;
 
4903
      ghcx*)
 
4904
        # Green Hills C++ Compiler
 
4905
        # FIXME: insert proper C++ library support
 
4906
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4907
        ;;
 
4908
      *)
 
4909
        # FIXME: insert proper C++ library support
 
4910
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4911
        ;;
 
4912
    esac
 
4913
    ;;
 
4914
  freebsd[[12]]*)
 
4915
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
4916
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4917
    ;;
 
4918
  freebsd-elf*)
 
4919
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4920
    ;;
 
4921
  freebsd* | dragonfly*)
 
4922
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
4923
    # conventions
 
4924
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4925
    ;;
 
4926
  gnu*)
 
4927
    ;;
 
4928
  hpux9*)
 
4929
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4930
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4931
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4932
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4933
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4934
                                # but as the default
 
4935
                                # location of the library.
 
4936
 
 
4937
    case $cc_basename in
 
4938
    CC*)
 
4939
      # FIXME: insert proper C++ library support
 
4940
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4941
      ;;
 
4942
    aCC*)
 
4943
      _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'
 
4944
      # Commands to make compiler produce verbose output that lists
 
4945
      # what "hidden" libraries, object files and flags are used when
 
4946
      # linking a shared library.
 
4947
      #
 
4948
      # There doesn't appear to be a way to prevent this compiler from
 
4949
      # explicitly linking system object files so we need to strip them
 
4950
      # from the output so that they don't get included in the library
 
4951
      # dependencies.
 
4952
      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'
 
4953
      ;;
 
4954
    *)
 
4955
      if test "$GXX" = yes; then
 
4956
        _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'
 
4957
      else
 
4958
        # FIXME: insert proper C++ library support
 
4959
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4960
      fi
 
4961
      ;;
 
4962
    esac
 
4963
    ;;
 
4964
  hpux10*|hpux11*)
 
4965
    if test $with_gnu_ld = no; then
 
4966
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4967
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4968
 
 
4969
      case $host_cpu in
 
4970
      hppa*64*|ia64*) ;;
 
4971
      *)
 
4972
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4973
        ;;
 
4974
      esac
 
4975
    fi
 
4976
    case $host_cpu in
 
4977
    hppa*64*|ia64*)
 
4978
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4979
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4980
      ;;
 
4981
    *)
 
4982
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4983
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4984
                                              # but as the default
 
4985
                                              # location of the library.
 
4986
      ;;
 
4987
    esac
 
4988
 
 
4989
    case $cc_basename in
 
4990
      CC*)
 
4991
        # FIXME: insert proper C++ library support
 
4992
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4993
        ;;
 
4994
      aCC*)
 
4995
        case $host_cpu in
 
4996
        hppa*64*)
 
4997
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4998
          ;;
 
4999
        ia64*)
 
5000
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5001
          ;;
 
5002
        *)
 
5003
          _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'
 
5004
          ;;
 
5005
        esac
 
5006
        # Commands to make compiler produce verbose output that lists
 
5007
        # what "hidden" libraries, object files and flags are used when
 
5008
        # linking a shared library.
 
5009
        #
 
5010
        # There doesn't appear to be a way to prevent this compiler from
 
5011
        # explicitly linking system object files so we need to strip them
 
5012
        # from the output so that they don't get included in the library
 
5013
        # dependencies.
 
5014
        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'
 
5015
        ;;
 
5016
      *)
 
5017
        if test "$GXX" = yes; then
 
5018
          if test $with_gnu_ld = no; then
 
5019
            case $host_cpu in
 
5020
            hppa*64*)
 
5021
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5022
              ;;
 
5023
            ia64*)
 
5024
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5025
              ;;
 
5026
            *)
 
5027
              _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'
 
5028
              ;;
 
5029
            esac
 
5030
          fi
 
5031
        else
 
5032
          # FIXME: insert proper C++ library support
 
5033
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5034
        fi
 
5035
        ;;
 
5036
    esac
 
5037
    ;;
 
5038
  interix[[3-9]]*)
 
5039
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5040
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5041
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5042
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5043
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5044
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5045
    # default) and relocated if they conflict, which is a slow very memory
 
5046
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
5047
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5048
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5049
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5050
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5051
    ;;
 
5052
  irix5* | irix6*)
 
5053
    case $cc_basename in
 
5054
      CC*)
 
5055
        # SGI C++
 
5056
        _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'
 
5057
 
 
5058
        # Archives containing C++ object files must be created using
 
5059
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
5060
        # necessary to make sure instantiated templates are included
 
5061
        # in the archive.
 
5062
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
5063
        ;;
 
5064
      *)
 
5065
        if test "$GXX" = yes; then
 
5066
          if test "$with_gnu_ld" = no; then
 
5067
            _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'
 
5068
          else
 
5069
            _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'
 
5070
          fi
 
5071
        fi
 
5072
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5073
        ;;
 
5074
    esac
 
5075
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5076
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5077
    ;;
 
5078
  linux* | k*bsd*-gnu)
 
5079
    case $cc_basename in
 
5080
      KCC*)
 
5081
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5082
 
 
5083
        # KCC will only create a shared library if the output file
 
5084
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5085
        # to its proper name (with version) after linking.
 
5086
        _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'
 
5087
        _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'
 
5088
        # Commands to make compiler produce verbose output that lists
 
5089
        # what "hidden" libraries, object files and flags are used when
 
5090
        # linking a shared library.
 
5091
        #
 
5092
        # There doesn't appear to be a way to prevent this compiler from
 
5093
        # explicitly linking system object files so we need to strip them
 
5094
        # from the output so that they don't get included in the library
 
5095
        # dependencies.
 
5096
        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'
 
5097
 
 
5098
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
5099
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5100
 
 
5101
        # Archives containing C++ object files must be created using
 
5102
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
5103
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
5104
        ;;
 
5105
      icpc*)
 
5106
        # Intel C++
 
5107
        with_gnu_ld=yes
 
5108
        # version 8.0 and above of icpc choke on multiply defined symbols
 
5109
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
5110
        # earlier do not add the objects themselves.
 
5111
        case `$CC -V 2>&1` in
 
5112
        *"Version 7."*)
 
5113
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5114
          _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'
 
5115
          ;;
 
5116
        *)  # Version 8.0 or newer
 
5117
          tmp_idyn=
 
5118
          case $host_cpu in
 
5119
            ia64*) tmp_idyn=' -i_dynamic';;
 
5120
          esac
 
5121
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5122
          _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'
 
5123
          ;;
 
5124
        esac
 
5125
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5126
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5127
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5128
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5129
        ;;
 
5130
      pgCC* | pgcpp*)
 
5131
        # Portland Group C++ compiler
 
5132
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5133
        _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'
 
5134
 
 
5135
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5136
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5137
        _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'
 
5138
        ;;
 
5139
      cxx*)
 
5140
        # Compaq C++
 
5141
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5142
        _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'
 
5143
 
 
5144
        runpath_var=LD_RUN_PATH
 
5145
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5146
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5147
 
 
5148
        # Commands to make compiler produce verbose output that lists
 
5149
        # what "hidden" libraries, object files and flags are used when
 
5150
        # linking a shared library.
 
5151
        #
 
5152
        # There doesn't appear to be a way to prevent this compiler from
 
5153
        # explicitly linking system object files so we need to strip them
 
5154
        # from the output so that they don't get included in the library
 
5155
        # dependencies.
 
5156
        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'
 
5157
        ;;
 
5158
      *)
 
5159
        case `$CC -V 2>&1 | sed 5q` in
 
5160
        *Sun\ C*)
 
5161
          # Sun C++ 5.9
 
5162
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
5163
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5164
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
5165
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5166
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5167
 
 
5168
          # Not sure whether something based on
 
5169
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
5170
          # would be better.
 
5171
          output_verbose_link_cmd='echo'
 
5172
 
 
5173
          # Archives containing C++ object files must be created using
 
5174
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
5175
          # necessary to make sure instantiated templates are included
 
5176
          # in the archive.
 
5177
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
5178
          ;;
 
5179
        esac
 
5180
        ;;
 
5181
    esac
 
5182
    ;;
 
5183
  lynxos*)
 
5184
    # FIXME: insert proper C++ library support
 
5185
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5186
    ;;
 
5187
  m88k*)
 
5188
    # FIXME: insert proper C++ library support
 
5189
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5190
    ;;
 
5191
  mvs*)
 
5192
    case $cc_basename in
 
5193
      cxx*)
 
5194
        # FIXME: insert proper C++ library support
 
5195
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5196
        ;;
 
5197
      *)
 
5198
        # FIXME: insert proper C++ library support
 
5199
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5200
        ;;
 
5201
    esac
 
5202
    ;;
 
5203
  netbsd*)
 
5204
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
5205
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
5206
      wlarc=
 
5207
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5208
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5209
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5210
    fi
 
5211
    # Workaround some broken pre-1.5 toolchains
 
5212
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
5213
    ;;
 
5214
  openbsd2*)
 
5215
    # C++ shared libraries are fairly broken
 
5216
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5217
    ;;
 
5218
  openbsd*)
 
5219
    if test -f /usr/libexec/ld.so; then
 
5220
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5221
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5222
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5223
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5224
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5225
        _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'
 
5226
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5227
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5228
      fi
 
5229
      output_verbose_link_cmd='echo'
 
5230
    else
 
5231
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5232
    fi
 
5233
    ;;
 
5234
  osf3*)
 
5235
    case $cc_basename in
 
5236
      KCC*)
 
5237
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5238
 
 
5239
        # KCC will only create a shared library if the output file
 
5240
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5241
        # to its proper name (with version) after linking.
 
5242
        _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'
 
5243
 
 
5244
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5245
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5246
 
 
5247
        # Archives containing C++ object files must be created using
 
5248
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
5249
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
5250
 
 
5251
        ;;
 
5252
      RCC*)
 
5253
        # Rational C++ 2.4.1
 
5254
        # FIXME: insert proper C++ library support
 
5255
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5256
        ;;
 
5257
      cxx*)
 
5258
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5259
        _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'
 
5260
 
 
5261
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5262
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5263
 
 
5264
        # Commands to make compiler produce verbose output that lists
 
5265
        # what "hidden" libraries, object files and flags are used when
 
5266
        # linking a shared library.
 
5267
        #
 
5268
        # There doesn't appear to be a way to prevent this compiler from
 
5269
        # explicitly linking system object files so we need to strip them
 
5270
        # from the output so that they don't get included in the library
 
5271
        # dependencies.
 
5272
        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'
 
5273
        ;;
 
5274
      *)
 
5275
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
5276
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5277
          _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'
 
5278
 
 
5279
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5280
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5281
 
 
5282
          # Commands to make compiler produce verbose output that lists
 
5283
          # what "hidden" libraries, object files and flags are used when
 
5284
          # linking a shared library.
 
5285
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
5286
 
 
5287
        else
 
5288
          # FIXME: insert proper C++ library support
 
5289
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5290
        fi
 
5291
        ;;
 
5292
    esac
 
5293
    ;;
 
5294
  osf4* | osf5*)
 
5295
    case $cc_basename in
 
5296
      KCC*)
 
5297
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5298
 
 
5299
        # KCC will only create a shared library if the output file
 
5300
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5301
        # to its proper name (with version) after linking.
 
5302
        _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'
 
5303
 
 
5304
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5305
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5306
 
 
5307
        # Archives containing C++ object files must be created using
 
5308
        # the KAI C++ compiler.
 
5309
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
5310
        ;;
 
5311
      RCC*)
 
5312
        # Rational C++ 2.4.1
 
5313
        # FIXME: insert proper C++ library support
 
5314
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5315
        ;;
 
5316
      cxx*)
 
5317
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5318
        _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'
 
5319
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
5320
          echo "-hidden">> $lib.exp~
 
5321
          $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~
 
5322
          $rm $lib.exp'
 
5323
 
 
5324
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5325
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5326
 
 
5327
        # Commands to make compiler produce verbose output that lists
 
5328
        # what "hidden" libraries, object files and flags are used when
 
5329
        # linking a shared library.
 
5330
        #
 
5331
        # There doesn't appear to be a way to prevent this compiler from
 
5332
        # explicitly linking system object files so we need to strip them
 
5333
        # from the output so that they don't get included in the library
 
5334
        # dependencies.
 
5335
        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'
 
5336
        ;;
 
5337
      *)
 
5338
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
5339
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5340
         _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'
 
5341
 
 
5342
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5343
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5344
 
 
5345
          # Commands to make compiler produce verbose output that lists
 
5346
          # what "hidden" libraries, object files and flags are used when
 
5347
          # linking a shared library.
 
5348
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
5349
 
 
5350
        else
 
5351
          # FIXME: insert proper C++ library support
 
5352
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5353
        fi
 
5354
        ;;
 
5355
    esac
 
5356
    ;;
 
5357
  psos*)
 
5358
    # FIXME: insert proper C++ library support
 
5359
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5360
    ;;
 
5361
  sunos4*)
 
5362
    case $cc_basename in
 
5363
      CC*)
 
5364
        # Sun C++ 4.x
 
5365
        # FIXME: insert proper C++ library support
 
5366
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5367
        ;;
 
5368
      lcc*)
 
5369
        # Lucid
 
5370
        # FIXME: insert proper C++ library support
 
5371
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5372
        ;;
 
5373
      *)
 
5374
        # FIXME: insert proper C++ library support
 
5375
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5376
        ;;
 
5377
    esac
 
5378
    ;;
 
5379
  solaris*)
 
5380
    case $cc_basename in
 
5381
      CC*)
 
5382
        # Sun C++ 4.2, 5.x and Centerline C++
 
5383
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
5384
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
5385
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5386
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5387
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
5388
 
 
5389
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5390
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5391
        case $host_os in
 
5392
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
5393
          *)
 
5394
            # The compiler driver will combine and reorder linker options,
 
5395
            # but understands `-z linker_flag'.
 
5396
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5397
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5398
            ;;
 
5399
        esac
 
5400
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5401
 
 
5402
        output_verbose_link_cmd='echo'
 
5403
 
 
5404
        # Archives containing C++ object files must be created using
 
5405
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
5406
        # necessary to make sure instantiated templates are included
 
5407
        # in the archive.
 
5408
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
5409
        ;;
 
5410
      gcx*)
 
5411
        # Green Hills C++ Compiler
 
5412
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5413
 
 
5414
        # The C++ compiler must be used to create the archive.
 
5415
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
5416
        ;;
 
5417
      *)
 
5418
        # GNU C++ compiler with Solaris linker
 
5419
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
5420
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
5421
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
5422
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5423
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5424
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
5425
 
 
5426
            # Commands to make compiler produce verbose output that lists
 
5427
            # what "hidden" libraries, object files and flags are used when
 
5428
            # linking a shared library.
 
5429
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
5430
          else
 
5431
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
5432
            # platform.
 
5433
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
5434
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
5435
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
5436
 
 
5437
            # Commands to make compiler produce verbose output that lists
 
5438
            # what "hidden" libraries, object files and flags are used when
 
5439
            # linking a shared library.
 
5440
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
5441
          fi
 
5442
 
 
5443
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
5444
          case $host_os in
 
5445
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
5446
          *)
 
5447
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5448
            ;;
 
5449
          esac
 
5450
        fi
 
5451
        ;;
 
5452
    esac
 
5453
    ;;
 
5454
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
5455
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5456
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5457
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5458
    runpath_var='LD_RUN_PATH'
 
5459
 
 
5460
    case $cc_basename in
 
5461
      CC*)
 
5462
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5463
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5464
        ;;
 
5465
      *)
 
5466
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5467
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5468
        ;;
 
5469
    esac
 
5470
    ;;
 
5471
  sysv5* | sco3.2v5* | sco5v6*)
 
5472
    # Note: We can NOT use -z defs as we might desire, because we do not
 
5473
    # link with -lc, and that would cause any symbols used from libc to
 
5474
    # always be unresolved, which means just about no library would
 
5475
    # ever link correctly.  If we're not using GNU ld we use -z text
 
5476
    # though, which does catch some bad symbols but isn't as heavy-handed
 
5477
    # as -z defs.
 
5478
    # For security reasons, it is highly recommended that you always
 
5479
    # use absolute paths for naming shared libraries, and exclude the
 
5480
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
5481
    # requires that you compile everything twice, which is a pain.
 
5482
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
5483
    # non-empty value in the environment.  Most likely only useful for
 
5484
    # creating official distributions of packages.
 
5485
    # This is a hack until libtool officially supports absolute path
 
5486
    # names for shared libraries.
 
5487
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5488
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5489
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5490
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5491
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
5492
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5493
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5494
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5495
    runpath_var='LD_RUN_PATH'
 
5496
 
 
5497
    case $cc_basename in
 
5498
      CC*)
 
5499
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5500
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5501
        ;;
 
5502
      *)
 
5503
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5504
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5505
        ;;
 
5506
    esac
 
5507
    ;;
 
5508
  tandem*)
 
5509
    case $cc_basename in
 
5510
      NCC*)
 
5511
        # NonStop-UX NCC 3.20
 
5512
        # FIXME: insert proper C++ library support
 
5513
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5514
        ;;
 
5515
      *)
 
5516
        # FIXME: insert proper C++ library support
 
5517
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5518
        ;;
 
5519
    esac
 
5520
    ;;
 
5521
  vxworks*)
 
5522
    # FIXME: insert proper C++ library support
 
5523
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5524
    ;;
 
5525
  *)
 
5526
    # FIXME: insert proper C++ library support
 
5527
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5528
    ;;
 
5529
esac
 
5530
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
5531
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5532
 
 
5533
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
5534
_LT_AC_TAGVAR(LD, $1)="$LD"
 
5535
 
 
5536
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
5537
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5538
AC_LIBTOOL_PROG_CC_C_O($1)
 
5539
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5540
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5541
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5542
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5543
 
 
5544
AC_LIBTOOL_CONFIG($1)
 
5545
 
 
5546
AC_LANG_POP
 
5547
CC=$lt_save_CC
 
5548
LDCXX=$LD
 
5549
LD=$lt_save_LD
 
5550
GCC=$lt_save_GCC
 
5551
with_gnu_ldcxx=$with_gnu_ld
 
5552
with_gnu_ld=$lt_save_with_gnu_ld
 
5553
lt_cv_path_LDCXX=$lt_cv_path_LD
 
5554
lt_cv_path_LD=$lt_save_path_LD
 
5555
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
5556
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
5557
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
5558
 
 
5559
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
5560
# ------------------------------------
 
5561
# Figure out "hidden" library dependencies from verbose
 
5562
# compiler output when linking a shared library.
 
5563
# Parse the compiler output and extract the necessary
 
5564
# objects, libraries and library flags.
 
5565
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
5566
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5567
dnl we can't use the lt_simple_compile_test_code here,
 
5568
dnl because it contains code intended for an executable,
 
5569
dnl not a library.  It's possible we should let each
 
5570
dnl tag define a new lt_????_link_test_code variable,
 
5571
dnl but it's only used here...
 
5572
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
5573
int a;
 
5574
void foo (void) { a = 0; }
 
5575
EOF
 
5576
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
5577
class Foo
 
5578
{
 
5579
public:
 
5580
  Foo (void) { a = 0; }
 
5581
private:
 
5582
  int a;
 
5583
};
 
5584
EOF
 
5585
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
5586
      subroutine foo
 
5587
      implicit none
 
5588
      integer*4 a
 
5589
      a=0
 
5590
      return
 
5591
      end
 
5592
EOF
 
5593
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
5594
public class foo {
 
5595
  private int a;
 
5596
  public void bar (void) {
 
5597
    a = 0;
 
5598
  }
 
5599
};
 
5600
EOF
 
5601
])
 
5602
dnl Parse the compiler output and extract the necessary
 
5603
dnl objects, libraries and library flags.
 
5604
if AC_TRY_EVAL(ac_compile); then
 
5605
  # Parse the compiler output and extract the necessary
 
5606
  # objects, libraries and library flags.
 
5607
 
 
5608
  # Sentinel used to keep track of whether or not we are before
 
5609
  # the conftest object file.
 
5610
  pre_test_object_deps_done=no
 
5611
 
 
5612
  # The `*' in the case matches for architectures that use `case' in
 
5613
  # $output_verbose_cmd can trigger glob expansion during the loop
 
5614
  # eval without this substitution.
 
5615
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
5616
 
 
5617
  for p in `eval $output_verbose_link_cmd`; do
 
5618
    case $p in
 
5619
 
 
5620
    -L* | -R* | -l*)
 
5621
       # Some compilers place space between "-{L,R}" and the path.
 
5622
       # Remove the space.
 
5623
       if test $p = "-L" \
 
5624
          || test $p = "-R"; then
 
5625
         prev=$p
 
5626
         continue
 
5627
       else
 
5628
         prev=
 
5629
       fi
 
5630
 
 
5631
       if test "$pre_test_object_deps_done" = no; then
 
5632
         case $p in
 
5633
         -L* | -R*)
 
5634
           # Internal compiler library paths should come after those
 
5635
           # provided the user.  The postdeps already come after the
 
5636
           # user supplied libs so there is no need to process them.
 
5637
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
5638
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
5639
           else
 
5640
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
5641
           fi
 
5642
           ;;
 
5643
         # The "-l" case would never come before the object being
 
5644
         # linked, so don't bother handling this case.
 
5645
         esac
 
5646
       else
 
5647
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
5648
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
5649
         else
 
5650
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
5651
         fi
 
5652
       fi
 
5653
       ;;
 
5654
 
 
5655
    *.$objext)
 
5656
       # This assumes that the test object file only shows up
 
5657
       # once in the compiler output.
 
5658
       if test "$p" = "conftest.$objext"; then
 
5659
         pre_test_object_deps_done=yes
 
5660
         continue
 
5661
       fi
 
5662
 
 
5663
       if test "$pre_test_object_deps_done" = no; then
 
5664
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
5665
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
5666
         else
 
5667
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
5668
         fi
 
5669
       else
 
5670
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
5671
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
5672
         else
 
5673
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
5674
         fi
 
5675
       fi
 
5676
       ;;
 
5677
 
 
5678
    *) ;; # Ignore the rest.
 
5679
 
 
5680
    esac
 
5681
  done
 
5682
 
 
5683
  # Clean up.
 
5684
  rm -f a.out a.exe
 
5685
else
 
5686
  echo "libtool.m4: error: problem compiling $1 test program"
 
5687
fi
 
5688
 
 
5689
$rm -f confest.$objext
 
5690
 
 
5691
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
5692
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
5693
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
5694
fi
 
5695
 
 
5696
# PORTME: override above test on systems where it is broken
 
5697
ifelse([$1],[CXX],
 
5698
[case $host_os in
 
5699
interix[[3-9]]*)
 
5700
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
5701
  # hack all around it, let's just trust "g++" to DTRT.
 
5702
  _LT_AC_TAGVAR(predep_objects,$1)=
 
5703
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
5704
  _LT_AC_TAGVAR(postdeps,$1)=
 
5705
  ;;
 
5706
 
 
5707
linux*)
 
5708
  case `$CC -V 2>&1 | sed 5q` in
 
5709
  *Sun\ C*)
 
5710
    # Sun C++ 5.9
 
5711
    #
 
5712
    # The more standards-conforming stlport4 library is
 
5713
    # incompatible with the Cstd library. Avoid specifying
 
5714
    # it if it's in CXXFLAGS. Ignore libCrun as
 
5715
    # -library=stlport4 depends on it.
 
5716
    case " $CXX $CXXFLAGS " in
 
5717
    *" -library=stlport4 "*)
 
5718
      solaris_use_stlport4=yes
 
5719
      ;;
 
5720
    esac
 
5721
    if test "$solaris_use_stlport4" != yes; then
 
5722
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
5723
    fi
 
5724
    ;;
 
5725
  esac
 
5726
  ;;
 
5727
 
 
5728
solaris*)
 
5729
  case $cc_basename in
 
5730
  CC*)
 
5731
    # The more standards-conforming stlport4 library is
 
5732
    # incompatible with the Cstd library. Avoid specifying
 
5733
    # it if it's in CXXFLAGS. Ignore libCrun as
 
5734
    # -library=stlport4 depends on it.
 
5735
    case " $CXX $CXXFLAGS " in
 
5736
    *" -library=stlport4 "*)
 
5737
      solaris_use_stlport4=yes
 
5738
      ;;
 
5739
    esac
 
5740
 
 
5741
    # Adding this requires a known-good setup of shared libraries for
 
5742
    # Sun compiler versions before 5.6, else PIC objects from an old
 
5743
    # archive will be linked into the output, leading to subtle bugs.
 
5744
    if test "$solaris_use_stlport4" != yes; then
 
5745
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
5746
    fi
 
5747
    ;;
 
5748
  esac
 
5749
  ;;
 
5750
esac
 
5751
])
 
5752
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
5753
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
5754
esac
 
5755
])# AC_LIBTOOL_POSTDEP_PREDEP
 
5756
 
 
5757
# AC_LIBTOOL_LANG_F77_CONFIG
 
5758
# --------------------------
 
5759
# Ensure that the configuration vars for the C compiler are
 
5760
# suitably defined.  Those variables are subsequently used by
 
5761
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5762
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
5763
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
5764
[AC_REQUIRE([AC_PROG_F77])
 
5765
AC_LANG_PUSH(Fortran 77)
 
5766
 
 
5767
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5768
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
5769
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5770
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
5771
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5772
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5774
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5775
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5776
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5777
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5778
_LT_AC_TAGVAR(module_cmds, $1)=
 
5779
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
5780
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5781
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5782
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
5783
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5784
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5785
 
 
5786
# Source file extension for f77 test sources.
 
5787
ac_ext=f
 
5788
 
 
5789
# Object file extension for compiled f77 test sources.
 
5790
objext=o
 
5791
_LT_AC_TAGVAR(objext, $1)=$objext
 
5792
 
 
5793
# Code to be used in simple compile tests
 
5794
lt_simple_compile_test_code="\
 
5795
      subroutine t
 
5796
      return
 
5797
      end
 
5798
"
 
5799
 
 
5800
# Code to be used in simple link tests
 
5801
lt_simple_link_test_code="\
 
5802
      program t
 
5803
      end
 
5804
"
 
5805
 
 
5806
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5807
_LT_AC_SYS_COMPILER
 
5808
 
 
5809
# save warnings/boilerplate of simple test code
 
5810
_LT_COMPILER_BOILERPLATE
 
5811
_LT_LINKER_BOILERPLATE
 
5812
 
 
5813
# Allow CC to be a program name with arguments.
 
5814
lt_save_CC="$CC"
 
5815
CC=${F77-"f77"}
 
5816
compiler=$CC
 
5817
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5818
_LT_CC_BASENAME([$compiler])
 
5819
 
 
5820
AC_MSG_CHECKING([if libtool supports shared libraries])
 
5821
AC_MSG_RESULT([$can_build_shared])
 
5822
 
 
5823
AC_MSG_CHECKING([whether to build shared libraries])
 
5824
test "$can_build_shared" = "no" && enable_shared=no
 
5825
 
 
5826
# On AIX, shared libraries and static libraries use the same namespace, and
 
5827
# are all built from PIC.
 
5828
case $host_os in
 
5829
aix3*)
 
5830
  test "$enable_shared" = yes && enable_static=no
 
5831
  if test -n "$RANLIB"; then
 
5832
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5833
    postinstall_cmds='$RANLIB $lib'
 
5834
  fi
 
5835
  ;;
 
5836
aix[[4-9]]*)
 
5837
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5838
    test "$enable_shared" = yes && enable_static=no
 
5839
  fi
 
5840
  ;;
 
5841
esac
 
5842
AC_MSG_RESULT([$enable_shared])
 
5843
 
 
5844
AC_MSG_CHECKING([whether to build static libraries])
 
5845
# Make sure either enable_shared or enable_static is yes.
 
5846
test "$enable_shared" = yes || enable_static=yes
 
5847
AC_MSG_RESULT([$enable_static])
 
5848
 
 
5849
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
5850
_LT_AC_TAGVAR(LD, $1)="$LD"
 
5851
 
 
5852
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5853
AC_LIBTOOL_PROG_CC_C_O($1)
 
5854
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5855
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5856
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5857
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5858
 
 
5859
AC_LIBTOOL_CONFIG($1)
 
5860
 
 
5861
AC_LANG_POP
 
5862
CC="$lt_save_CC"
 
5863
])# AC_LIBTOOL_LANG_F77_CONFIG
 
5864
 
 
5865
 
 
5866
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5867
# --------------------------
 
5868
# Ensure that the configuration vars for the C compiler are
 
5869
# suitably defined.  Those variables are subsequently used by
 
5870
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5871
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
5872
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
5873
[AC_LANG_SAVE
 
5874
 
 
5875
# Source file extension for Java test sources.
 
5876
ac_ext=java
 
5877
 
 
5878
# Object file extension for compiled Java test sources.
 
5879
objext=o
 
5880
_LT_AC_TAGVAR(objext, $1)=$objext
 
5881
 
 
5882
# Code to be used in simple compile tests
 
5883
lt_simple_compile_test_code="class foo {}"
 
5884
 
 
5885
# Code to be used in simple link tests
 
5886
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
5887
 
 
5888
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5889
_LT_AC_SYS_COMPILER
 
5890
 
 
5891
# save warnings/boilerplate of simple test code
 
5892
_LT_COMPILER_BOILERPLATE
 
5893
_LT_LINKER_BOILERPLATE
 
5894
 
 
5895
# Allow CC to be a program name with arguments.
 
5896
lt_save_CC="$CC"
 
5897
CC=${GCJ-"gcj"}
 
5898
compiler=$CC
 
5899
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5900
_LT_CC_BASENAME([$compiler])
 
5901
 
 
5902
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
5903
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5904
 
 
5905
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5906
 
 
5907
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
5908
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5909
AC_LIBTOOL_PROG_CC_C_O($1)
 
5910
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5911
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5912
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5913
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5914
 
 
5915
AC_LIBTOOL_CONFIG($1)
 
5916
 
 
5917
AC_LANG_RESTORE
 
5918
CC="$lt_save_CC"
 
5919
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5920
 
 
5921
 
 
5922
# AC_LIBTOOL_LANG_RC_CONFIG
 
5923
# -------------------------
 
5924
# Ensure that the configuration vars for the Windows resource compiler are
 
5925
# suitably defined.  Those variables are subsequently used by
 
5926
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5927
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
5928
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
5929
[AC_LANG_SAVE
 
5930
 
 
5931
# Source file extension for RC test sources.
 
5932
ac_ext=rc
 
5933
 
 
5934
# Object file extension for compiled RC test sources.
 
5935
objext=o
 
5936
_LT_AC_TAGVAR(objext, $1)=$objext
 
5937
 
 
5938
# Code to be used in simple compile tests
 
5939
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
5940
 
 
5941
# Code to be used in simple link tests
 
5942
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
5943
 
 
5944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5945
_LT_AC_SYS_COMPILER
 
5946
 
 
5947
# save warnings/boilerplate of simple test code
 
5948
_LT_COMPILER_BOILERPLATE
 
5949
_LT_LINKER_BOILERPLATE
 
5950
 
 
5951
# Allow CC to be a program name with arguments.
 
5952
lt_save_CC="$CC"
 
5953
CC=${RC-"windres"}
 
5954
compiler=$CC
 
5955
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5956
_LT_CC_BASENAME([$compiler])
 
5957
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
5958
 
 
5959
AC_LIBTOOL_CONFIG($1)
 
5960
 
 
5961
AC_LANG_RESTORE
 
5962
CC="$lt_save_CC"
 
5963
])# AC_LIBTOOL_LANG_RC_CONFIG
 
5964
 
 
5965
 
 
5966
# AC_LIBTOOL_CONFIG([TAGNAME])
 
5967
# ----------------------------
 
5968
# If TAGNAME is not passed, then create an initial libtool script
 
5969
# with a default configuration from the untagged config vars.  Otherwise
 
5970
# add code to config.status for appending the configuration named by
 
5971
# TAGNAME from the matching tagged config vars.
 
5972
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
5973
[# The else clause should only fire when bootstrapping the
 
5974
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
5975
# with your package, and you will get complaints that there are
 
5976
# no rules to generate ltmain.sh.
 
5977
if test -f "$ltmain"; then
 
5978
  # See if we are running on zsh, and set the options which allow our commands through
 
5979
  # without removal of \ escapes.
 
5980
  if test -n "${ZSH_VERSION+set}" ; then
 
5981
    setopt NO_GLOB_SUBST
 
5982
  fi
 
5983
  # Now quote all the things that may contain metacharacters while being
 
5984
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
5985
  # variables and quote the copies for generation of the libtool script.
 
5986
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
5987
    SED SHELL STRIP \
 
5988
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
5989
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
5990
    deplibs_check_method reload_flag reload_cmds need_locks \
 
5991
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
5992
    lt_cv_sys_global_symbol_to_c_name_address \
 
5993
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
5994
    old_postinstall_cmds old_postuninstall_cmds \
 
5995
    _LT_AC_TAGVAR(compiler, $1) \
 
5996
    _LT_AC_TAGVAR(CC, $1) \
 
5997
    _LT_AC_TAGVAR(LD, $1) \
 
5998
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
5999
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
6000
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
6001
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
6002
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
6003
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
6004
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
6005
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
6006
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
6007
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
6008
    _LT_AC_TAGVAR(predep_objects, $1) \
 
6009
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
6010
    _LT_AC_TAGVAR(predeps, $1) \
 
6011
    _LT_AC_TAGVAR(postdeps, $1) \
 
6012
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
6013
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
 
6014
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
6015
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
6016
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
6017
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
6018
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
6019
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
6020
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
6021
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
6022
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
6023
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
6024
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
6025
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
6026
    _LT_AC_TAGVAR(module_cmds, $1) \
 
6027
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
6028
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
6029
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
 
6030
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
6031
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
6032
 
 
6033
    case $var in
 
6034
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
6035
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
6036
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
6037
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
6038
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
6039
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
6040
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
6041
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
6042
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
6043
    postinstall_cmds | postuninstall_cmds | \
 
6044
    old_postinstall_cmds | old_postuninstall_cmds | \
 
6045
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
6046
      # Double-quote double-evaled strings.
 
6047
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
6048
      ;;
 
6049
    *)
 
6050
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
6051
      ;;
 
6052
    esac
 
6053
  done
 
6054
 
 
6055
  case $lt_echo in
 
6056
  *'\[$]0 --fallback-echo"')
 
6057
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
6058
    ;;
 
6059
  esac
 
6060
 
 
6061
ifelse([$1], [],
 
6062
  [cfgfile="${ofile}T"
 
6063
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
6064
  $rm -f "$cfgfile"
 
6065
  AC_MSG_NOTICE([creating $ofile])],
 
6066
  [cfgfile="$ofile"])
 
6067
 
 
6068
  cat <<__EOF__ >> "$cfgfile"
 
6069
ifelse([$1], [],
 
6070
[#! $SHELL
 
6071
 
 
6072
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
6073
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
6074
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
6075
#
 
6076
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
6077
# Free Software Foundation, Inc.
 
6078
#
 
6079
# This file is part of GNU Libtool:
 
6080
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
6081
#
 
6082
# This program is free software; you can redistribute it and/or modify
 
6083
# it under the terms of the GNU General Public License as published by
 
6084
# the Free Software Foundation; either version 2 of the License, or
 
6085
# (at your option) any later version.
 
6086
#
 
6087
# This program is distributed in the hope that it will be useful, but
 
6088
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6089
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6090
# General Public License for more details.
 
6091
#
 
6092
# You should have received a copy of the GNU General Public License
 
6093
# along with this program; if not, write to the Free Software
 
6094
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
6095
#
 
6096
# As a special exception to the GNU General Public License, if you
 
6097
# distribute this file as part of a program that contains a
 
6098
# configuration script generated by Autoconf, you may include it under
 
6099
# the same distribution terms that you use for the rest of that program.
 
6100
 
 
6101
# A sed program that does not truncate output.
 
6102
SED=$lt_SED
 
6103
 
 
6104
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
6105
Xsed="$SED -e 1s/^X//"
 
6106
 
 
6107
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
6108
# if CDPATH is set.
 
6109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
6110
 
 
6111
# The names of the tagged configurations supported by this script.
 
6112
available_tags=
 
6113
 
 
6114
# ### BEGIN LIBTOOL CONFIG],
 
6115
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
6116
 
 
6117
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
6118
 
 
6119
# Shell to use when invoking shell scripts.
 
6120
SHELL=$lt_SHELL
 
6121
 
 
6122
# Whether or not to build shared libraries.
 
6123
build_libtool_libs=$enable_shared
 
6124
 
 
6125
# Whether or not to build static libraries.
 
6126
build_old_libs=$enable_static
 
6127
 
 
6128
# Whether or not to add -lc for building shared libraries.
 
6129
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
6130
 
 
6131
# Whether or not to disallow shared libs when runtime libs are static
 
6132
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
6133
 
 
6134
# Whether or not to optimize for fast installation.
 
6135
fast_install=$enable_fast_install
 
6136
 
 
6137
# The host system.
 
6138
host_alias=$host_alias
 
6139
host=$host
 
6140
host_os=$host_os
 
6141
 
 
6142
# The build system.
 
6143
build_alias=$build_alias
 
6144
build=$build
 
6145
build_os=$build_os
 
6146
 
 
6147
# An echo program that does not interpret backslashes.
 
6148
echo=$lt_echo
 
6149
 
 
6150
# The archiver.
 
6151
AR=$lt_AR
 
6152
AR_FLAGS=$lt_AR_FLAGS
 
6153
 
 
6154
# A C compiler.
 
6155
LTCC=$lt_LTCC
 
6156
 
 
6157
# LTCC compiler flags.
 
6158
LTCFLAGS=$lt_LTCFLAGS
 
6159
 
 
6160
# A language-specific compiler.
 
6161
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
6162
 
 
6163
# Is the compiler the GNU C compiler?
 
6164
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
6165
 
 
6166
# An ERE matcher.
 
6167
EGREP=$lt_EGREP
 
6168
 
 
6169
# The linker used to build libraries.
 
6170
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
6171
 
 
6172
# Whether we need hard or soft links.
 
6173
LN_S=$lt_LN_S
 
6174
 
 
6175
# A BSD-compatible nm program.
 
6176
NM=$lt_NM
 
6177
 
 
6178
# A symbol stripping program
 
6179
STRIP=$lt_STRIP
 
6180
 
 
6181
# Used to examine libraries when file_magic_cmd begins "file"
 
6182
MAGIC_CMD=$MAGIC_CMD
 
6183
 
 
6184
# Used on cygwin: DLL creation program.
 
6185
DLLTOOL="$DLLTOOL"
 
6186
 
 
6187
# Used on cygwin: object dumper.
 
6188
OBJDUMP="$OBJDUMP"
 
6189
 
 
6190
# Used on cygwin: assembler.
 
6191
AS="$AS"
 
6192
 
 
6193
# The name of the directory that contains temporary libtool files.
 
6194
objdir=$objdir
 
6195
 
 
6196
# How to create reloadable object files.
 
6197
reload_flag=$lt_reload_flag
 
6198
reload_cmds=$lt_reload_cmds
 
6199
 
 
6200
# How to pass a linker flag through the compiler.
 
6201
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6202
 
 
6203
# Object file suffix (normally "o").
 
6204
objext="$ac_objext"
 
6205
 
 
6206
# Old archive suffix (normally "a").
 
6207
libext="$libext"
 
6208
 
 
6209
# Shared library suffix (normally ".so").
 
6210
shrext_cmds='$shrext_cmds'
 
6211
 
 
6212
# Executable file suffix (normally "").
 
6213
exeext="$exeext"
 
6214
 
 
6215
# Additional compiler flags for building library objects.
 
6216
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6217
pic_mode=$pic_mode
 
6218
 
 
6219
# What is the maximum length of a command?
 
6220
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6221
 
 
6222
# Does compiler simultaneously support -c and -o options?
 
6223
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
6224
 
 
6225
# Must we lock files when doing compilation?
 
6226
need_locks=$lt_need_locks
 
6227
 
 
6228
# Do we need the lib prefix for modules?
 
6229
need_lib_prefix=$need_lib_prefix
 
6230
 
 
6231
# Do we need a version for libraries?
 
6232
need_version=$need_version
 
6233
 
 
6234
# Whether dlopen is supported.
 
6235
dlopen_support=$enable_dlopen
 
6236
 
 
6237
# Whether dlopen of programs is supported.
 
6238
dlopen_self=$enable_dlopen_self
 
6239
 
 
6240
# Whether dlopen of statically linked programs is supported.
 
6241
dlopen_self_static=$enable_dlopen_self_static
 
6242
 
 
6243
# Compiler flag to prevent dynamic linking.
 
6244
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
6245
 
 
6246
# Compiler flag to turn off builtin functions.
 
6247
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
6248
 
 
6249
# Compiler flag to allow reflexive dlopens.
 
6250
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
6251
 
 
6252
# Compiler flag to generate shared objects directly from archives.
 
6253
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
6254
 
 
6255
# Compiler flag to generate thread-safe objects.
 
6256
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
6257
 
 
6258
# Library versioning type.
 
6259
version_type=$version_type
 
6260
 
 
6261
# Format of library name prefix.
 
6262
libname_spec=$lt_libname_spec
 
6263
 
 
6264
# List of archive names.  First name is the real one, the rest are links.
 
6265
# The last name is the one that the linker finds with -lNAME.
 
6266
library_names_spec=$lt_library_names_spec
 
6267
 
 
6268
# The coded name of the library, if different from the real name.
 
6269
soname_spec=$lt_soname_spec
 
6270
 
 
6271
# Commands used to build and install an old-style archive.
 
6272
RANLIB=$lt_RANLIB
 
6273
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
6274
old_postinstall_cmds=$lt_old_postinstall_cmds
 
6275
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
6276
 
 
6277
# Create an old-style archive from a shared archive.
 
6278
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
6279
 
 
6280
# Create a temporary old-style archive to link instead of a shared archive.
 
6281
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
6282
 
 
6283
# Commands used to build and install a shared archive.
 
6284
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
6285
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
6286
postinstall_cmds=$lt_postinstall_cmds
 
6287
postuninstall_cmds=$lt_postuninstall_cmds
 
6288
 
 
6289
# Commands used to build a loadable module (assumed same as above if empty)
 
6290
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
6291
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
6292
 
 
6293
# Commands to strip libraries.
 
6294
old_striplib=$lt_old_striplib
 
6295
striplib=$lt_striplib
 
6296
 
 
6297
# Dependencies to place before the objects being linked to create a
 
6298
# shared library.
 
6299
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
6300
 
 
6301
# Dependencies to place after the objects being linked to create a
 
6302
# shared library.
 
6303
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
6304
 
 
6305
# Dependencies to place before the objects being linked to create a
 
6306
# shared library.
 
6307
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
6308
 
 
6309
# Dependencies to place after the objects being linked to create a
 
6310
# shared library.
 
6311
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
6312
 
 
6313
# The directories searched by this compiler when creating a shared
 
6314
# library
 
6315
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
6316
 
 
6317
# The library search path used internally by the compiler when linking
 
6318
# a shared library.
 
6319
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
6320
 
 
6321
# Method to check whether dependent libraries are shared objects.
 
6322
deplibs_check_method=$lt_deplibs_check_method
 
6323
 
 
6324
# Command to use when deplibs_check_method == file_magic.
 
6325
file_magic_cmd=$lt_file_magic_cmd
 
6326
 
 
6327
# Flag that allows shared libraries with undefined symbols to be built.
 
6328
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
6329
 
 
6330
# Flag that forces no undefined symbols.
 
6331
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
6332
 
 
6333
# Commands used to finish a libtool library installation in a directory.
 
6334
finish_cmds=$lt_finish_cmds
 
6335
 
 
6336
# Same as above, but a single script fragment to be evaled but not shown.
 
6337
finish_eval=$lt_finish_eval
 
6338
 
 
6339
# Take the output of nm and produce a listing of raw symbols and C names.
 
6340
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
6341
 
 
6342
# Transform the output of nm in a proper C declaration
 
6343
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
6344
 
 
6345
# Transform the output of nm in a C name address pair
 
6346
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
6347
 
 
6348
# This is the shared library runtime path variable.
 
6349
runpath_var=$runpath_var
 
6350
 
 
6351
# This is the shared library path variable.
 
6352
shlibpath_var=$shlibpath_var
 
6353
 
 
6354
# Is shlibpath searched before the hard-coded library search path?
 
6355
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
6356
 
 
6357
# How to hardcode a shared library path into an executable.
 
6358
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
6359
 
 
6360
# Whether we should hardcode library paths into libraries.
 
6361
hardcode_into_libs=$hardcode_into_libs
 
6362
 
 
6363
# Flag to hardcode \$libdir into a binary during linking.
 
6364
# This must work even if \$libdir does not exist.
 
6365
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
6366
 
 
6367
# If ld is used when linking, flag to hardcode \$libdir into
 
6368
# a binary during linking. This must work even if \$libdir does
 
6369
# not exist.
 
6370
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
6371
 
 
6372
# Whether we need a single -rpath flag with a separated argument.
 
6373
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
6374
 
 
6375
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
6376
# resulting binary.
 
6377
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
6378
 
 
6379
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
6380
# resulting binary.
 
6381
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
6382
 
 
6383
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
6384
# the resulting binary.
 
6385
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
6386
 
 
6387
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
6388
# and all subsequent libraries and executables linked against it.
 
6389
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
6390
 
 
6391
# Variables whose values should be saved in libtool wrapper scripts and
 
6392
# restored at relink time.
 
6393
variables_saved_for_relink="$variables_saved_for_relink"
 
6394
 
 
6395
# Whether libtool must link a program against all its dependency libraries.
 
6396
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
6397
 
 
6398
# Compile-time system search path for libraries
 
6399
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
6400
 
 
6401
# Run-time system search path for libraries
 
6402
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
6403
 
 
6404
# Fix the shell variable \$srcfile for the compiler.
 
6405
fix_srcfile_path=$lt_fix_srcfile_path
 
6406
 
 
6407
# Set to yes if exported symbols are required.
 
6408
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
6409
 
 
6410
# The commands to list exported symbols.
 
6411
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
6412
 
 
6413
# The commands to extract the exported symbol list from a shared archive.
 
6414
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
6415
 
 
6416
# Symbols that should not be listed in the preloaded symbols.
 
6417
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
6418
 
 
6419
# Symbols that must always be exported.
 
6420
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
6421
 
 
6422
ifelse([$1],[],
 
6423
[# ### END LIBTOOL CONFIG],
 
6424
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
6425
 
 
6426
__EOF__
 
6427
 
 
6428
ifelse([$1],[], [
 
6429
  case $host_os in
 
6430
  aix3*)
 
6431
    cat <<\EOF >> "$cfgfile"
 
6432
 
 
6433
# AIX sometimes has problems with the GCC collect2 program.  For some
 
6434
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
6435
# vanish in a puff of smoke.
 
6436
if test "X${COLLECT_NAMES+set}" != Xset; then
 
6437
  COLLECT_NAMES=
 
6438
  export COLLECT_NAMES
 
6439
fi
 
6440
EOF
 
6441
    ;;
 
6442
  esac
 
6443
 
 
6444
  # We use sed instead of cat because bash on DJGPP gets confused if
 
6445
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
6446
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
6447
  # is reportedly fixed, but why not run on old versions too?
 
6448
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
6449
 
 
6450
  mv -f "$cfgfile" "$ofile" || \
 
6451
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
6452
  chmod +x "$ofile"
 
6453
])
 
6454
else
 
6455
  # If there is no Makefile yet, we rely on a make rule to execute
 
6456
  # `config.status --recheck' to rerun these tests and create the
 
6457
  # libtool script then.
 
6458
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
6459
  if test -f "$ltmain_in"; then
 
6460
    test -f Makefile && make "$ltmain"
 
6461
  fi
 
6462
fi
 
6463
])# AC_LIBTOOL_CONFIG
 
6464
 
 
6465
 
 
6466
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
6467
# -------------------------------------------
 
6468
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
6469
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
6470
 
 
6471
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3300
6472
 
3301
6473
if test "$GCC" = yes; then
3302
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6474
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3303
6475
 
3304
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
6476
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3305
6477
    lt_cv_prog_compiler_rtti_exceptions,
3306
6478
    [-fno-rtti -fno-exceptions], [],
3307
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
6479
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3308
6480
fi
3309
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3310
 
        [Compiler flag to turn off builtin functions])
3311
 
])# _LT_COMPILER_NO_RTTI
3312
 
 
3313
 
 
3314
 
# _LT_CMD_GLOBAL_SYMBOLS
3315
 
# ----------------------
3316
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3317
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3318
 
AC_REQUIRE([AC_PROG_CC])dnl
3319
 
AC_REQUIRE([LT_PATH_NM])dnl
3320
 
AC_REQUIRE([LT_PATH_LD])dnl
3321
 
m4_require([_LT_DECL_SED])dnl
3322
 
m4_require([_LT_DECL_EGREP])dnl
3323
 
m4_require([_LT_TAG_COMPILER])dnl
3324
 
 
 
6481
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
6482
 
 
6483
 
 
6484
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
6485
# ---------------------------------
 
6486
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
6487
[AC_REQUIRE([AC_CANONICAL_HOST])
 
6488
AC_REQUIRE([LT_AC_PROG_SED])
 
6489
AC_REQUIRE([AC_PROG_NM])
 
6490
AC_REQUIRE([AC_OBJEXT])
3325
6491
# Check for command to grab the raw symbol name followed by C symbol from nm.
3326
6492
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3327
6493
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3335
6501
# Regexp to match symbols that can be accessed directly from C.
3336
6502
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3337
6503
 
 
6504
# Transform an extracted symbol line into a proper C declaration
 
6505
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6506
 
 
6507
# Transform an extracted symbol line into symbol name and symbol address
 
6508
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'"
 
6509
 
3338
6510
# Define system-specific variables.
3339
6511
case $host_os in
3340
6512
aix*)
3341
6513
  symcode='[[BCDT]]'
3342
6514
  ;;
3343
 
cygwin* | mingw* | pw32* | cegcc*)
 
6515
cygwin* | mingw* | pw32*)
3344
6516
  symcode='[[ABCDGISTW]]'
3345
6517
  ;;
3346
 
hpux*)
 
6518
hpux*) # Its linker distinguishes data from code symbols
3347
6519
  if test "$host_cpu" = ia64; then
3348
6520
    symcode='[[ABCDEGRST]]'
3349
6521
  fi
 
6522
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6523
  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'"
 
6524
  ;;
 
6525
linux* | k*bsd*-gnu)
 
6526
  if test "$host_cpu" = ia64; then
 
6527
    symcode='[[ABCDGIRSTW]]'
 
6528
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6529
    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'"
 
6530
  fi
3350
6531
  ;;
3351
6532
irix* | nonstopux*)
3352
6533
  symcode='[[BCDEGRST]]'
3371
6552
  ;;
3372
6553
esac
3373
6554
 
3374
 
# If we're using GNU nm, then use its standard symbol codes.
3375
 
case `$NM -V 2>&1` in
3376
 
*GNU* | *'with BFD'*)
3377
 
  symcode='[[ABCDGIRSTW]]' ;;
3378
 
esac
3379
 
 
3380
 
# Transform an extracted symbol line into a proper C declaration.
3381
 
# Some systems (esp. on ia64) link data and code symbols differently,
3382
 
# so use this general approach.
3383
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3384
 
 
3385
 
# Transform an extracted symbol line into symbol name and symbol address
3386
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3387
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3388
 
 
3389
6555
# Handle CRLF in mingw tool chain
3390
6556
opt_cr=
3391
6557
case $build_os in
3392
6558
mingw*)
3393
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6559
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3394
6560
  ;;
3395
6561
esac
3396
6562
 
3397
 
# Try without a prefix underscore, then with it.
 
6563
# If we're using GNU nm, then use its standard symbol codes.
 
6564
case `$NM -V 2>&1` in
 
6565
*GNU* | *'with BFD'*)
 
6566
  symcode='[[ABCDGIRSTW]]' ;;
 
6567
esac
 
6568
 
 
6569
# Try without a prefix undercore, then with it.
3398
6570
for ac_symprfx in "" "_"; do
3399
6571
 
3400
6572
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3401
6573
  symxfrm="\\1 $ac_symprfx\\2 \\2"
3402
6574
 
3403
6575
  # Write the raw and C identifiers.
3404
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3405
 
    # Fake it for dumpbin and say T for any non-static function
3406
 
    # and D for any global variable.
3407
 
    # Also find C++ and __fastcall symbols from MSVC++,
3408
 
    # which start with @ or ?.
3409
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3410
 
"     {last_section=section; section=\$ 3};"\
3411
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3412
 
"     \$ 0!~/External *\|/{next};"\
3413
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3414
 
"     {if(hide[section]) next};"\
3415
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3416
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3417
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3418
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3419
 
"     ' prfx=^$ac_symprfx]"
3420
 
  else
3421
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3422
 
  fi
 
6576
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3423
6577
 
3424
6578
  # Check to see that the pipe works correctly.
3425
6579
  pipe_works=no
3426
6580
 
3427
6581
  rm -f conftest*
3428
 
  cat > conftest.$ac_ext <<_LT_EOF
 
6582
  cat > conftest.$ac_ext <<EOF
3429
6583
#ifdef __cplusplus
3430
6584
extern "C" {
3431
6585
#endif
3432
6586
char nm_test_var;
3433
 
void nm_test_func(void);
3434
 
void nm_test_func(void){}
 
6587
void nm_test_func(){}
3435
6588
#ifdef __cplusplus
3436
6589
}
3437
6590
#endif
3438
6591
int main(){nm_test_var='a';nm_test_func();return(0);}
3439
 
_LT_EOF
 
6592
EOF
3440
6593
 
3441
6594
  if AC_TRY_EVAL(ac_compile); then
3442
6595
    # Now try to grab the symbols.
3450
6603
      fi
3451
6604
 
3452
6605
      # Make sure that we snagged all the symbols we need.
3453
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3454
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3455
 
          cat <<_LT_EOF > conftest.$ac_ext
 
6606
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6607
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6608
          cat <<EOF > conftest.$ac_ext
3456
6609
#ifdef __cplusplus
3457
6610
extern "C" {
3458
6611
#endif
3459
6612
 
3460
 
_LT_EOF
 
6613
EOF
3461
6614
          # Now generate the symbol file.
3462
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3463
 
 
3464
 
          cat <<_LT_EOF >> conftest.$ac_ext
3465
 
 
3466
 
/* The mapping between symbol names and symbols.  */
 
6615
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6616
 
 
6617
          cat <<EOF >> conftest.$ac_ext
 
6618
#if defined (__STDC__) && __STDC__
 
6619
# define lt_ptr_t void *
 
6620
#else
 
6621
# define lt_ptr_t char *
 
6622
# define const
 
6623
#endif
 
6624
 
 
6625
/* The mapping between symbol names and symbols. */
3467
6626
const struct {
3468
6627
  const char *name;
3469
 
  void       *address;
 
6628
  lt_ptr_t address;
3470
6629
}
3471
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
6630
lt_preloaded_symbols[[]] =
3472
6631
{
3473
 
  { "@PROGRAM@", (void *) 0 },
3474
 
_LT_EOF
3475
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3476
 
          cat <<\_LT_EOF >> conftest.$ac_ext
3477
 
  {0, (void *) 0}
 
6632
EOF
 
6633
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6634
          cat <<\EOF >> conftest.$ac_ext
 
6635
  {0, (lt_ptr_t) 0}
3478
6636
};
3479
6637
 
3480
 
/* This works around a problem in FreeBSD linker */
3481
 
#ifdef FREEBSD_WORKAROUND
3482
 
static const void *lt_preloaded_setup() {
3483
 
  return lt__PROGRAM__LTX_preloaded_symbols;
3484
 
}
3485
 
#endif
3486
 
 
3487
6638
#ifdef __cplusplus
3488
6639
}
3489
6640
#endif
3490
 
_LT_EOF
 
6641
EOF
3491
6642
          # Now try linking the two files.
3492
6643
          mv conftest.$ac_objext conftstm.$ac_objext
3493
6644
          lt_save_LIBS="$LIBS"
3494
6645
          lt_save_CFLAGS="$CFLAGS"
3495
6646
          LIBS="conftstm.$ac_objext"
3496
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
6647
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3497
6648
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3498
6649
            pipe_works=yes
3499
6650
          fi
3530
6681
else
3531
6682
  AC_MSG_RESULT(ok)
3532
6683
fi
3533
 
 
3534
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3535
 
    [Take the output of nm and produce a listing of raw symbols and C names])
3536
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3537
 
    [Transform the output of nm in a proper C declaration])
3538
 
_LT_DECL([global_symbol_to_c_name_address],
3539
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
3540
 
    [Transform the output of nm in a C name address pair])
3541
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3542
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3543
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
3544
 
]) # _LT_CMD_GLOBAL_SYMBOLS
3545
 
 
3546
 
 
3547
 
# _LT_COMPILER_PIC([TAGNAME])
3548
 
# ---------------------------
3549
 
m4_defun([_LT_COMPILER_PIC],
3550
 
[m4_require([_LT_TAG_COMPILER])dnl
3551
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3552
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3553
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
6684
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
6685
 
 
6686
 
 
6687
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
6688
# ---------------------------------------
 
6689
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
6690
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
6691
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6692
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3554
6693
 
3555
6694
AC_MSG_CHECKING([for $compiler option to produce PIC])
3556
 
m4_if([$1], [CXX], [
 
6695
 ifelse([$1],[CXX],[
3557
6696
  # C++ specific cases for pic, static, wl, etc.
3558
6697
  if test "$GXX" = yes; then
3559
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3560
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6698
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6699
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3561
6700
 
3562
6701
    case $host_os in
3563
6702
    aix*)
3564
6703
      # All AIX code is PIC.
3565
6704
      if test "$host_cpu" = ia64; then
3566
6705
        # AIX 5 now supports IA64 processor
3567
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6706
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3568
6707
      fi
3569
6708
      ;;
3570
 
 
3571
6709
    amigaos*)
3572
 
      case $host_cpu in
3573
 
      powerpc)
3574
 
            # see comment about AmigaOS4 .so support
3575
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3576
 
        ;;
3577
 
      m68k)
3578
 
            # FIXME: we need at least 68020 code to build shared libraries, but
3579
 
            # adding the `-m68020' flag to GCC prevents building anything better,
3580
 
            # like `-m68040'.
3581
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3582
 
        ;;
3583
 
      esac
 
6710
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6711
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6712
      # like `-m68040'.
 
6713
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3584
6714
      ;;
3585
 
 
3586
6715
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3587
6716
      # PIC is the default for these OSes.
3588
6717
      ;;
3589
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
6718
    mingw* | cygwin* | os2* | pw32*)
3590
6719
      # This hack is so that the source file can tell whether it is being
3591
6720
      # built for inclusion in a dll (and should export symbols for example).
3592
6721
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3593
6722
      # (--disable-auto-import) libraries
3594
6723
      m4_if([$1], [GCJ], [],
3595
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6724
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3596
6725
      ;;
3597
6726
    darwin* | rhapsody*)
3598
6727
      # PIC is the default on this platform
3599
6728
      # Common symbols not allowed in MH_DYLIB files
3600
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6729
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3601
6730
      ;;
3602
6731
    *djgpp*)
3603
6732
      # DJGPP does not support shared libraries at all
3604
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6733
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3605
6734
      ;;
3606
6735
    interix[[3-9]]*)
3607
6736
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3609
6738
      ;;
3610
6739
    sysv4*MP*)
3611
6740
      if test -d /usr/nec; then
3612
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6741
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3613
6742
      fi
3614
6743
      ;;
3615
6744
    hpux*)
3616
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3617
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3618
 
      # sets the default TLS model and affects inlining.
 
6745
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6746
      # not for PA HP-UX.
3619
6747
      case $host_cpu in
3620
 
      hppa*64*)
 
6748
      hppa*64*|ia64*)
3621
6749
        ;;
3622
6750
      *)
3623
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6751
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3624
6752
        ;;
3625
6753
      esac
3626
6754
      ;;
3627
 
    *qnx* | *nto*)
3628
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
3629
 
      # it will coredump.
3630
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3631
 
      ;;
3632
6755
    *)
3633
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6756
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3634
6757
      ;;
3635
6758
    esac
3636
6759
  else
3639
6762
        # All AIX code is PIC.
3640
6763
        if test "$host_cpu" = ia64; then
3641
6764
          # AIX 5 now supports IA64 processor
3642
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6765
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3643
6766
        else
3644
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6767
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3645
6768
        fi
3646
6769
        ;;
3647
6770
      chorus*)
3648
6771
        case $cc_basename in
3649
6772
        cxch68*)
3650
6773
          # Green Hills C++ Compiler
3651
 
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
6774
          # _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"
3652
6775
          ;;
3653
6776
        esac
3654
6777
        ;;
 
6778
       darwin*)
 
6779
         # PIC is the default on this platform
 
6780
         # Common symbols not allowed in MH_DYLIB files
 
6781
         case $cc_basename in
 
6782
           xlc*)
 
6783
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6784
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6785
           ;;
 
6786
         esac
 
6787
       ;;
3655
6788
      dgux*)
3656
6789
        case $cc_basename in
3657
6790
          ec++*)
3658
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6791
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3659
6792
            ;;
3660
6793
          ghcx*)
3661
6794
            # Green Hills C++ Compiler
3662
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6795
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3663
6796
            ;;
3664
6797
          *)
3665
6798
            ;;
3671
6804
      hpux9* | hpux10* | hpux11*)
3672
6805
        case $cc_basename in
3673
6806
          CC*)
3674
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3675
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6807
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6808
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3676
6809
            if test "$host_cpu" != ia64; then
3677
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6810
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3678
6811
            fi
3679
6812
            ;;
3680
6813
          aCC*)
3681
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3682
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6814
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6815
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3683
6816
            case $host_cpu in
3684
6817
            hppa*64*|ia64*)
3685
6818
              # +Z the default
3686
6819
              ;;
3687
6820
            *)
3688
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6821
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3689
6822
              ;;
3690
6823
            esac
3691
6824
            ;;
3700
6833
      irix5* | irix6* | nonstopux*)
3701
6834
        case $cc_basename in
3702
6835
          CC*)
3703
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3704
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6836
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6837
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3705
6838
            # CC pic flag -KPIC is the default.
3706
6839
            ;;
3707
6840
          *)
3712
6845
        case $cc_basename in
3713
6846
          KCC*)
3714
6847
            # KAI C++ Compiler
3715
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3716
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3717
 
            ;;
3718
 
          ecpc* )
3719
 
            # old Intel C++ for x86_64 which still supported -KPIC.
3720
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3721
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3722
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3723
 
            ;;
3724
 
          icpc* )
3725
 
            # Intel C++, used to be incompatible with GCC.
3726
 
            # ICC 10 doesn't accept -KPIC any more.
3727
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3728
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3729
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6848
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6849
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6850
            ;;
 
6851
          icpc* | ecpc*)
 
6852
            # Intel C++
 
6853
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6854
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6855
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3730
6856
            ;;
3731
6857
          pgCC* | pgcpp*)
3732
 
            # Portland Group C++ compiler
3733
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3734
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3735
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6858
            # Portland Group C++ compiler.
 
6859
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6860
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6861
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3736
6862
            ;;
3737
6863
          cxx*)
3738
6864
            # Compaq C++
3739
6865
            # Make sure the PIC flag is empty.  It appears that all Alpha
3740
6866
            # Linux and Compaq Tru64 Unix objects are PIC.
3741
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3742
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3743
 
            ;;
3744
 
          xlc* | xlC*)
3745
 
            # IBM XL 8.0 on PPC
3746
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3747
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3748
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
6867
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6868
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3749
6869
            ;;
3750
6870
          *)
3751
6871
            case `$CC -V 2>&1 | sed 5q` in
3752
6872
            *Sun\ C*)
3753
6873
              # Sun C++ 5.9
3754
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3755
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3756
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6874
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6875
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6876
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3757
6877
              ;;
3758
6878
            esac
3759
6879
            ;;
3766
6886
      mvs*)
3767
6887
        case $cc_basename in
3768
6888
          cxx*)
3769
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
6889
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3770
6890
            ;;
3771
6891
          *)
3772
6892
            ;;
3774
6894
        ;;
3775
6895
      netbsd*)
3776
6896
        ;;
3777
 
      *qnx* | *nto*)
3778
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
3779
 
        # it will coredump.
3780
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3781
 
        ;;
3782
6897
      osf3* | osf4* | osf5*)
3783
6898
        case $cc_basename in
3784
6899
          KCC*)
3785
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6900
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3786
6901
            ;;
3787
6902
          RCC*)
3788
6903
            # Rational C++ 2.4.1
3789
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6904
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3790
6905
            ;;
3791
6906
          cxx*)
3792
6907
            # Digital/Compaq C++
3793
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6908
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3794
6909
            # Make sure the PIC flag is empty.  It appears that all Alpha
3795
6910
            # Linux and Compaq Tru64 Unix objects are PIC.
3796
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3797
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6911
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6912
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3798
6913
            ;;
3799
6914
          *)
3800
6915
            ;;
3806
6921
        case $cc_basename in
3807
6922
          CC*)
3808
6923
            # Sun C++ 4.2, 5.x and Centerline C++
3809
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3810
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3811
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6924
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6925
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6926
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3812
6927
            ;;
3813
6928
          gcx*)
3814
6929
            # Green Hills C++ Compiler
3815
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6930
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3816
6931
            ;;
3817
6932
          *)
3818
6933
            ;;
3822
6937
        case $cc_basename in
3823
6938
          CC*)
3824
6939
            # Sun C++ 4.x
3825
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3826
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6940
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6941
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3827
6942
            ;;
3828
6943
          lcc*)
3829
6944
            # Lucid
3830
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6945
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6946
            ;;
 
6947
          *)
 
6948
            ;;
 
6949
        esac
 
6950
        ;;
 
6951
      tandem*)
 
6952
        case $cc_basename in
 
6953
          NCC*)
 
6954
            # NonStop-UX NCC 3.20
 
6955
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3831
6956
            ;;
3832
6957
          *)
3833
6958
            ;;
3836
6961
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3837
6962
        case $cc_basename in
3838
6963
          CC*)
3839
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3840
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3841
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3842
 
            ;;
3843
 
        esac
3844
 
        ;;
3845
 
      tandem*)
3846
 
        case $cc_basename in
3847
 
          NCC*)
3848
 
            # NonStop-UX NCC 3.20
3849
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3850
 
            ;;
3851
 
          *)
 
6964
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6965
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6966
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3852
6967
            ;;
3853
6968
        esac
3854
6969
        ;;
3855
6970
      vxworks*)
3856
6971
        ;;
3857
6972
      *)
3858
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6973
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3859
6974
        ;;
3860
6975
    esac
3861
6976
  fi
3862
6977
],
3863
6978
[
3864
6979
  if test "$GCC" = yes; then
3865
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3866
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6980
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6981
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3867
6982
 
3868
6983
    case $host_os in
3869
6984
      aix*)
3870
6985
      # All AIX code is PIC.
3871
6986
      if test "$host_cpu" = ia64; then
3872
6987
        # AIX 5 now supports IA64 processor
3873
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6988
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3874
6989
      fi
3875
6990
      ;;
3876
6991
 
3877
6992
    amigaos*)
3878
 
      case $host_cpu in
3879
 
      powerpc)
3880
 
            # see comment about AmigaOS4 .so support
3881
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3882
 
        ;;
3883
 
      m68k)
3884
 
            # FIXME: we need at least 68020 code to build shared libraries, but
3885
 
            # adding the `-m68020' flag to GCC prevents building anything better,
3886
 
            # like `-m68040'.
3887
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3888
 
        ;;
3889
 
      esac
 
6993
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6994
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6995
      # like `-m68040'.
 
6996
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3890
6997
      ;;
3891
6998
 
3892
6999
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3893
7000
      # PIC is the default for these OSes.
3894
7001
      ;;
3895
7002
 
3896
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7003
    mingw* | cygwin* | pw32* | os2*)
3897
7004
      # This hack is so that the source file can tell whether it is being
3898
7005
      # built for inclusion in a dll (and should export symbols for example).
3899
7006
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3900
7007
      # (--disable-auto-import) libraries
3901
7008
      m4_if([$1], [GCJ], [],
3902
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
7009
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3903
7010
      ;;
3904
7011
 
3905
7012
    darwin* | rhapsody*)
3906
7013
      # PIC is the default on this platform
3907
7014
      # Common symbols not allowed in MH_DYLIB files
3908
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3909
 
      ;;
3910
 
 
3911
 
    hpux*)
3912
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3913
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3914
 
      # sets the default TLS model and affects inlining.
3915
 
      case $host_cpu in
3916
 
      hppa*64*)
3917
 
        # +Z the default
3918
 
        ;;
3919
 
      *)
3920
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3921
 
        ;;
3922
 
      esac
 
7015
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3923
7016
      ;;
3924
7017
 
3925
7018
    interix[[3-9]]*)
3930
7023
    msdosdjgpp*)
3931
7024
      # Just because we use GCC doesn't mean we suddenly get shared libraries
3932
7025
      # on systems that don't support them.
3933
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
7026
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3934
7027
      enable_shared=no
3935
7028
      ;;
3936
7029
 
3937
 
    *nto* | *qnx*)
3938
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
3939
 
      # it will coredump.
3940
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3941
 
      ;;
3942
 
 
3943
7030
    sysv4*MP*)
3944
7031
      if test -d /usr/nec; then
3945
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
7032
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3946
7033
      fi
3947
7034
      ;;
3948
7035
 
 
7036
    hpux*)
 
7037
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7038
      # not for PA HP-UX.
 
7039
      case $host_cpu in
 
7040
      hppa*64*|ia64*)
 
7041
        # +Z the default
 
7042
        ;;
 
7043
      *)
 
7044
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
7045
        ;;
 
7046
      esac
 
7047
      ;;
 
7048
 
3949
7049
    *)
3950
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
7050
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3951
7051
      ;;
3952
7052
    esac
3953
7053
  else
3954
7054
    # PORTME Check for flag to pass linker flags through the system compiler.
3955
7055
    case $host_os in
3956
7056
    aix*)
3957
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7057
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3958
7058
      if test "$host_cpu" = ia64; then
3959
7059
        # AIX 5 now supports IA64 processor
3960
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7060
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3961
7061
      else
3962
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
7062
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3963
7063
      fi
3964
7064
      ;;
 
7065
      darwin*)
 
7066
        # PIC is the default on this platform
 
7067
        # Common symbols not allowed in MH_DYLIB files
 
7068
       case $cc_basename in
 
7069
         xlc*)
 
7070
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
7071
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7072
         ;;
 
7073
       esac
 
7074
       ;;
3965
7075
 
3966
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7076
    mingw* | cygwin* | pw32* | os2*)
3967
7077
      # This hack is so that the source file can tell whether it is being
3968
7078
      # built for inclusion in a dll (and should export symbols for example).
3969
7079
      m4_if([$1], [GCJ], [],
3970
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
7080
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3971
7081
      ;;
3972
7082
 
3973
7083
    hpux9* | hpux10* | hpux11*)
3974
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7084
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3975
7085
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3976
7086
      # not for PA HP-UX.
3977
7087
      case $host_cpu in
3979
7089
        # +Z the default
3980
7090
        ;;
3981
7091
      *)
3982
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
7092
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3983
7093
        ;;
3984
7094
      esac
3985
7095
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
3986
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
7096
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3987
7097
      ;;
3988
7098
 
3989
7099
    irix5* | irix6* | nonstopux*)
3990
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7100
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3991
7101
      # PIC (with -KPIC) is the default.
3992
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
7102
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
7103
      ;;
 
7104
 
 
7105
    newsos6)
 
7106
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7107
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3993
7108
      ;;
3994
7109
 
3995
7110
    linux* | k*bsd*-gnu)
3996
7111
      case $cc_basename in
3997
 
      # old Intel for x86_64 which still supported -KPIC.
3998
 
      ecc*)
3999
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4000
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4001
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4002
 
        ;;
4003
 
      # icc used to be incompatible with GCC.
4004
 
      # ICC 10 doesn't accept -KPIC any more.
4005
 
      icc* | ifort*)
4006
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4007
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4008
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4009
 
        ;;
4010
 
      # Lahey Fortran 8.1.
4011
 
      lf95*)
4012
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4014
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4015
 
        ;;
 
7112
      icc* | ecc*)
 
7113
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7114
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7115
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
7116
        ;;
4016
7117
      pgcc* | pgf77* | pgf90* | pgf95*)
4017
7118
        # Portland Group compilers (*not* the Pentium gcc compiler,
4018
7119
        # which looks to be a dead project)
4019
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4021
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7120
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7121
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
7122
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4022
7123
        ;;
4023
7124
      ccc*)
4024
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7125
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025
7126
        # All Alpha code is PIC.
4026
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
7127
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4027
7128
        ;;
4028
 
      xl*)
4029
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
4030
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4032
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4033
 
        ;;
4034
7129
      *)
4035
 
        case `$CC -V 2>&1 | sed 5q` in
 
7130
        case `$CC -V 2>&1 | sed 5q` in
4036
7131
        *Sun\ C*)
4037
7132
          # Sun C 5.9
4038
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4039
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4040
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7133
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7134
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7135
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4041
7136
          ;;
4042
7137
        *Sun\ F*)
4043
7138
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4044
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4045
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4046
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
7139
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7140
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7141
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4047
7142
          ;;
4048
7143
        esac
4049
7144
        ;;
4050
7145
      esac
4051
7146
      ;;
4052
7147
 
4053
 
    newsos6)
4054
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4055
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4056
 
      ;;
4057
 
 
4058
 
    *nto* | *qnx*)
4059
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4060
 
      # it will coredump.
4061
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4062
 
      ;;
4063
 
 
4064
7148
    osf3* | osf4* | osf5*)
4065
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7149
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4066
7150
      # All OSF/1 code is PIC.
4067
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
7151
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4068
7152
      ;;
4069
7153
 
4070
7154
    rdos*)
4071
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
7155
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4072
7156
      ;;
4073
7157
 
4074
7158
    solaris*)
4075
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4076
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7159
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7160
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4077
7161
      case $cc_basename in
4078
7162
      f77* | f90* | f95*)
4079
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
7163
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4080
7164
      *)
4081
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
7165
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4082
7166
      esac
4083
7167
      ;;
4084
7168
 
4085
7169
    sunos4*)
4086
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4087
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4088
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7170
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
7171
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
7172
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
7173
      ;;
4090
7174
 
4091
7175
    sysv4 | sysv4.2uw2* | sysv4.3*)
4092
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4093
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4094
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7176
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7177
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7178
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4095
7179
      ;;
4096
7180
 
4097
7181
    sysv4*MP*)
4098
7182
      if test -d /usr/nec ;then
4099
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4100
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7183
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
7184
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4101
7185
      fi
4102
7186
      ;;
4103
7187
 
4104
7188
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4105
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4106
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4107
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7189
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7190
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7191
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4108
7192
      ;;
4109
7193
 
4110
7194
    unicos*)
4111
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4112
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
7195
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7196
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4113
7197
      ;;
4114
7198
 
4115
7199
    uts4*)
4116
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4117
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7200
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
7201
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4118
7202
      ;;
4119
7203
 
4120
7204
    *)
4121
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
7205
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4122
7206
      ;;
4123
7207
    esac
4124
7208
  fi
4125
7209
])
 
7210
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
7211
 
 
7212
#
 
7213
# Check to make sure the PIC flag actually works.
 
7214
#
 
7215
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
7216
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
7217
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
 
7218
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
7219
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
7220
     "" | " "*) ;;
 
7221
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
7222
     esac],
 
7223
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
7224
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
7225
fi
4126
7226
case $host_os in
4127
7227
  # For platforms which do not support PIC, -DPIC is meaningless:
4128
7228
  *djgpp*)
4129
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
7229
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4130
7230
    ;;
4131
7231
  *)
4132
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
7232
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4133
7233
    ;;
4134
7234
esac
4135
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4136
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4137
 
        [How to pass a linker flag through the compiler])
4138
 
 
4139
 
#
4140
 
# Check to make sure the PIC flag actually works.
4141
 
#
4142
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4143
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4144
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4145
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4146
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4147
 
     "" | " "*) ;;
4148
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4149
 
     esac],
4150
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4151
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4152
 
fi
4153
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4154
 
        [Additional compiler flags for building library objects])
4155
7235
 
4156
7236
#
4157
7237
# Check to make sure the static flag actually works.
4158
7238
#
4159
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4160
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4161
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
7239
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
7240
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
7241
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4162
7242
  $lt_tmp_static_flag,
4163
7243
  [],
4164
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4165
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4166
 
        [Compiler flag to prevent dynamic linking])
4167
 
])# _LT_COMPILER_PIC
4168
 
 
4169
 
 
4170
 
# _LT_LINKER_SHLIBS([TAGNAME])
4171
 
# ----------------------------
 
7244
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
7245
])
 
7246
 
 
7247
 
 
7248
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
7249
# ------------------------------------
4172
7250
# See if the linker supports building shared libraries.
4173
 
m4_defun([_LT_LINKER_SHLIBS],
4174
 
[AC_REQUIRE([LT_PATH_LD])dnl
4175
 
AC_REQUIRE([LT_PATH_NM])dnl
4176
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4177
 
m4_require([_LT_DECL_EGREP])dnl
4178
 
m4_require([_LT_DECL_SED])dnl
4179
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4180
 
m4_require([_LT_TAG_COMPILER])dnl
 
7251
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
7252
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4181
7253
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4182
 
m4_if([$1], [CXX], [
4183
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7254
ifelse([$1],[CXX],[
 
7255
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4184
7256
  case $host_os in
4185
7257
  aix[[4-9]]*)
4186
7258
    # If we're using GNU nm, then we don't want the "-C" option.
4187
7259
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4188
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4189
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7260
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7261
      _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'
4190
7262
    else
4191
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7263
      _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'
4192
7264
    fi
4193
7265
    ;;
4194
7266
  pw32*)
4195
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
7267
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4196
7268
  ;;
4197
 
  cygwin* | mingw* | cegcc*)
4198
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 
7269
  cygwin* | mingw*)
 
7270
    _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'
4199
7271
  ;;
4200
7272
  *)
4201
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7273
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4202
7274
  ;;
4203
7275
  esac
4204
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4205
 
], [
 
7276
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
7277
],[
4206
7278
  runpath_var=
4207
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
4208
 
  _LT_TAGVAR(always_export_symbols, $1)=no
4209
 
  _LT_TAGVAR(archive_cmds, $1)=
4210
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4211
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
4212
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4213
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4214
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4215
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
4216
 
  _LT_TAGVAR(hardcode_direct, $1)=no
4217
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4218
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4219
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4220
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4221
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4222
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4223
 
  _LT_TAGVAR(inherit_rpath, $1)=no
4224
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4225
 
  _LT_TAGVAR(module_cmds, $1)=
4226
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
4227
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4228
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4229
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4230
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7279
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7280
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7281
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
7282
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
7283
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
7284
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
7285
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
7286
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
7287
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
7288
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7289
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7290
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
7291
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7292
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
7293
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
7294
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
7295
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
7296
  _LT_AC_TAGVAR(module_cmds, $1)=
 
7297
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
7298
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
7299
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4231
7300
  # include_expsyms should be a list of space-separated symbols to be *always*
4232
7301
  # included in the symbol list
4233
 
  _LT_TAGVAR(include_expsyms, $1)=
 
7302
  _LT_AC_TAGVAR(include_expsyms, $1)=
4234
7303
  # exclude_expsyms can be an extended regexp of symbols to exclude
4235
7304
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4236
7305
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4237
7306
  # as well as any symbol that contains `d'.
4238
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
7307
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4239
7308
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4240
7309
  # platforms (ab)use it in PIC code, but their linkers get confused if
4241
7310
  # the symbol is explicitly referenced.  Since portable code cannot
4244
7313
  # Exclude shared library initialization/finalization symbols.
4245
7314
dnl Note also adjust exclude_expsyms for C++ above.
4246
7315
  extract_expsyms_cmds=
4247
 
 
 
7316
  # Just being paranoid about ensuring that cc_basename is set.
 
7317
  _LT_CC_BASENAME([$compiler])
4248
7318
  case $host_os in
4249
 
  cygwin* | mingw* | pw32* | cegcc*)
 
7319
  cygwin* | mingw* | pw32*)
4250
7320
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4251
7321
    # When not using gcc, we currently assume that we are using
4252
7322
    # Microsoft Visual C++.
4263
7333
    ;;
4264
7334
  esac
4265
7335
 
4266
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
7336
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4267
7337
  if test "$with_gnu_ld" = yes; then
4268
7338
    # If archive_cmds runs LD, not CC, wlarc should be empty
4269
7339
    wlarc='${wl}'
4272
7342
    # are reset later if shared libraries are not supported. Putting them
4273
7343
    # here allows them to be overridden if necessary.
4274
7344
    runpath_var=LD_RUN_PATH
4275
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4276
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7345
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
7346
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4277
7347
    # ancient GNU ld didn't support --whole-archive et. al.
4278
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4279
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4280
 
    else
4281
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7348
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7349
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7350
      else
 
7351
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4282
7352
    fi
4283
7353
    supports_anon_versioning=no
4284
 
    case `$LD -v 2>&1` in
 
7354
    case `$LD -v 2>/dev/null` in
4285
7355
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4286
7356
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4287
7357
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4294
7364
    aix[[3-9]]*)
4295
7365
      # On AIX/PPC, the GNU linker is very broken
4296
7366
      if test "$host_cpu" != ia64; then
4297
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4298
 
        cat <<_LT_EOF 1>&2
 
7367
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7368
        cat <<EOF 1>&2
4299
7369
 
4300
7370
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4301
7371
*** to be unable to reliably create shared libraries on AIX.
4303
7373
*** really care for shared libraries, you may want to modify your PATH
4304
7374
*** so that a non-GNU linker is found, and then restart.
4305
7375
 
4306
 
_LT_EOF
 
7376
EOF
4307
7377
      fi
4308
7378
      ;;
4309
7379
 
4310
7380
    amigaos*)
4311
 
      case $host_cpu in
4312
 
      powerpc)
4313
 
            # see comment about AmigaOS4 .so support
4314
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4315
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4316
 
        ;;
4317
 
      m68k)
4318
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4319
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4320
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4321
 
        ;;
4322
 
      esac
 
7381
      _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)'
 
7382
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7383
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7384
 
 
7385
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7386
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7387
      # to version 4, is to share data among multiple programs linked
 
7388
      # with the same dynamic library.  Since this doesn't match the
 
7389
      # behavior of shared libraries on other platforms, we can't use
 
7390
      # them.
 
7391
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4323
7392
      ;;
4324
7393
 
4325
7394
    beos*)
4326
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4327
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7395
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7396
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4328
7397
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4329
7398
        # support --undefined.  This deserves some investigation.  FIXME
4330
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7399
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4331
7400
      else
4332
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7401
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4333
7402
      fi
4334
7403
      ;;
4335
7404
 
4336
 
    cygwin* | mingw* | pw32* | cegcc*)
4337
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7405
    cygwin* | mingw* | pw32*)
 
7406
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4338
7407
      # as there is no search path for DLLs.
4339
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4340
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4341
 
      _LT_TAGVAR(always_export_symbols, $1)=no
4342
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4343
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
7408
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7409
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7410
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
7411
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7412
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4344
7413
 
4345
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4346
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7414
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7415
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4347
7416
        # If the export-symbols file already is a .def file (1st line
4348
7417
        # is EXPORTS), use it as is; otherwise, prepend...
4349
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7418
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4350
7419
          cp $export_symbols $output_objdir/$soname.def;
4351
7420
        else
4352
7421
          echo EXPORTS > $output_objdir/$soname.def;
4354
7423
        fi~
4355
7424
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4356
7425
      else
4357
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7426
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4358
7427
      fi
4359
7428
      ;;
4360
7429
 
4361
7430
    interix[[3-9]]*)
4362
 
      _LT_TAGVAR(hardcode_direct, $1)=no
4363
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4364
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4365
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7431
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7432
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7433
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7434
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4366
7435
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4367
7436
      # Instead, shared libraries are loaded at an image base (0x10000000 by
4368
7437
      # default) and relocated if they conflict, which is a slow very memory
4369
7438
      # consuming and fragmenting process.  To avoid this, we pick a random,
4370
7439
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4371
7440
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4372
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4373
 
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7441
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7442
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4374
7443
      ;;
4375
7444
 
4376
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
4377
 
      tmp_diet=no
4378
 
      if test "$host_os" = linux-dietlibc; then
4379
 
        case $cc_basename in
4380
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
4381
 
        esac
4382
 
      fi
4383
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4384
 
         && test "$tmp_diet" = no
4385
 
      then
 
7445
    gnu* | linux* | k*bsd*-gnu)
 
7446
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4386
7447
        tmp_addflag=
4387
 
        tmp_sharedflag='-shared'
4388
7448
        case $cc_basename,$host_cpu in
4389
 
        pgcc*)                          # Portland Group C compiler
4390
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7449
        pgcc*)                          # Portland Group C compiler
 
7450
          _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'
4391
7451
          tmp_addflag=' $pic_flag'
4392
7452
          ;;
4393
7453
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4394
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7454
          _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'
4395
7455
          tmp_addflag=' $pic_flag -Mnomain' ;;
4396
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
7456
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
4397
7457
          tmp_addflag=' -i_dynamic' ;;
4398
7458
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
4399
7459
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4400
7460
        ifc* | ifort*)                  # Intel Fortran compiler
4401
7461
          tmp_addflag=' -nofor_main' ;;
4402
 
        lf95*)                          # Lahey Fortran 8.1
4403
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4404
 
          tmp_sharedflag='--shared' ;;
4405
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4406
 
          tmp_sharedflag='-qmkshrobj'
4407
 
          tmp_addflag= ;;
4408
7462
        esac
4409
7463
        case `$CC -V 2>&1 | sed 5q` in
4410
7464
        *Sun\ C*)                       # Sun C 5.9
4411
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4412
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7465
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4413
7466
          tmp_sharedflag='-G' ;;
4414
7467
        *Sun\ F*)                       # Sun Fortran 8.3
4415
7468
          tmp_sharedflag='-G' ;;
4416
 
        esac
4417
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4418
 
 
4419
 
        if test "x$supports_anon_versioning" = xyes; then
4420
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4421
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4422
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
4423
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4424
 
        fi
4425
 
 
4426
 
        case $cc_basename in
4427
 
        xlf*)
4428
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4429
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4430
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4431
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4432
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4433
 
          if test "x$supports_anon_versioning" = xyes; then
4434
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4435
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4436
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
4437
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4438
 
          fi
4439
 
          ;;
4440
 
        esac
 
7469
        *)
 
7470
          tmp_sharedflag='-shared' ;;
 
7471
        esac
 
7472
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7473
 
 
7474
        if test $supports_anon_versioning = yes; then
 
7475
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
7476
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7477
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7478
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7479
        fi
4441
7480
      else
4442
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7481
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4443
7482
      fi
4444
7483
      ;;
4445
7484
 
4446
7485
    netbsd*)
4447
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4448
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7486
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7487
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4449
7488
        wlarc=
4450
7489
      else
4451
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4452
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7490
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7491
        _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'
4453
7492
      fi
4454
7493
      ;;
4455
7494
 
4456
7495
    solaris*)
4457
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4458
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4459
 
        cat <<_LT_EOF 1>&2
 
7496
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7497
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7498
        cat <<EOF 1>&2
4460
7499
 
4461
7500
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4462
7501
*** create shared libraries on Solaris systems.  Therefore, libtool
4465
7504
*** your PATH or compiler configuration so that the native linker is
4466
7505
*** used, and then restart.
4467
7506
 
4468
 
_LT_EOF
4469
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4470
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7507
EOF
 
7508
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7509
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7510
        _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'
4472
7511
      else
4473
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7512
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4474
7513
      fi
4475
7514
      ;;
4476
7515
 
4477
7516
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4478
7517
      case `$LD -v 2>&1` in
4479
7518
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4480
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7519
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4481
7520
        cat <<_LT_EOF 1>&2
4482
7521
 
4483
7522
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4490
7529
_LT_EOF
4491
7530
        ;;
4492
7531
        *)
4493
 
          # For security reasons, it is highly recommended that you always
4494
 
          # use absolute paths for naming shared libraries, and exclude the
4495
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
4496
 
          # requires that you compile everything twice, which is a pain.
4497
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4498
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4499
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4500
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7532
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7533
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7534
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7535
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
4501
7536
          else
4502
 
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7537
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
4503
7538
          fi
4504
7539
        ;;
4505
7540
      esac
4506
7541
      ;;
4507
7542
 
4508
7543
    sunos4*)
4509
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7544
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4510
7545
      wlarc=
4511
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4512
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7546
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7547
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4513
7548
      ;;
4514
7549
 
4515
7550
    *)
4516
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4517
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4518
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7551
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7552
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7553
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4519
7554
      else
4520
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7555
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4521
7556
      fi
4522
7557
      ;;
4523
7558
    esac
4524
7559
 
4525
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
7560
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
4526
7561
      runpath_var=
4527
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4528
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4529
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7562
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7563
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
7564
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4530
7565
    fi
4531
7566
  else
4532
7567
    # PORTME fill in a description of your system's linker (not GNU ld)
4533
7568
    case $host_os in
4534
7569
    aix3*)
4535
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4536
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
4537
 
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
7570
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7571
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
7572
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4538
7573
      # Note: this linker hardcodes the directories in LIBPATH if there
4539
7574
      # are no directories specified by -L.
4540
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7575
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4541
7576
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4542
7577
        # Neither direct hardcoding nor static linking is supported with a
4543
7578
        # broken collect2.
4544
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
7579
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4545
7580
      fi
4546
7581
      ;;
4547
7582
 
4555
7590
      else
4556
7591
        # If we're using GNU nm, then we don't want the "-C" option.
4557
7592
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
4558
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4559
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7593
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7594
          _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'
4560
7595
        else
4561
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7596
          _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'
4562
7597
        fi
4563
7598
        aix_use_runtimelinking=no
4564
7599
 
4567
7602
        # need to do runtime linking.
4568
7603
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4569
7604
          for ld_flag in $LDFLAGS; do
4570
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4571
 
            aix_use_runtimelinking=yes
4572
 
            break
4573
 
          fi
 
7605
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7606
            aix_use_runtimelinking=yes
 
7607
            break
 
7608
          fi
4574
7609
          done
4575
7610
          ;;
4576
7611
        esac
4585
7620
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4586
7621
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4587
7622
 
4588
 
      _LT_TAGVAR(archive_cmds, $1)=''
4589
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4590
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4591
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4592
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
4593
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
7623
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
7624
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7625
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7626
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4594
7627
 
4595
7628
      if test "$GCC" = yes; then
4596
7629
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
4597
7630
        # We only want to do this on AIX 4.2 and lower, the check
4598
7631
        # below for broken collect2 doesn't work under 4.3+
4599
7632
          collect2name=`${CC} -print-prog-name=collect2`
4600
 
          if test -f "$collect2name" &&
4601
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
7633
          if test -f "$collect2name" && \
 
7634
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4602
7635
          then
4603
 
          # We have reworked collect2
4604
 
          :
 
7636
          # We have reworked collect2
 
7637
          :
4605
7638
          else
4606
 
          # We have old collect2
4607
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
4608
 
          # It fails to find uninstalled libraries when the uninstalled
4609
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
4610
 
          # to unsupported forces relinking
4611
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
4612
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4613
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7639
          # We have old collect2
 
7640
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
7641
          # It fails to find uninstalled libraries when the uninstalled
 
7642
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7643
          # to unsupported forces relinking
 
7644
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7645
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7646
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4614
7647
          fi
4615
7648
          ;;
4616
7649
        esac
4621
7654
      else
4622
7655
        # not using gcc
4623
7656
        if test "$host_cpu" = ia64; then
4624
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4625
 
        # chokes on -Wl,-G. The following line is correct:
 
7657
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7658
        # chokes on -Wl,-G. The following line is correct:
4626
7659
          shared_flag='-G'
4627
7660
        else
4628
7661
          if test "$aix_use_runtimelinking" = yes; then
4633
7666
        fi
4634
7667
      fi
4635
7668
 
4636
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4637
7669
      # It seems that -bexpall does not export symbols beginning with
4638
7670
      # underscore (_), so it is better to generate a list of symbols to export.
4639
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
7671
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4640
7672
      if test "$aix_use_runtimelinking" = yes; then
4641
7673
        # Warning - without using the other runtime loading flags (-brtl),
4642
7674
        # -berok will link without error, but may produce a broken library.
4643
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4644
 
        # Determine the default libpath from the value encoded in an
4645
 
        # empty executable.
4646
 
        _LT_SYS_MODULE_PATH_AIX
4647
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4648
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4649
 
      else
 
7675
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7676
       # Determine the default libpath from the value encoded in an empty executable.
 
7677
       _LT_AC_SYS_LIBPATH_AIX
 
7678
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7679
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7680
       else
4650
7681
        if test "$host_cpu" = ia64; then
4651
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4652
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4653
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7682
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7683
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
7684
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4654
7685
        else
4655
 
         # Determine the default libpath from the value encoded in an
4656
 
         # empty executable.
4657
 
         _LT_SYS_MODULE_PATH_AIX
4658
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7686
         # Determine the default libpath from the value encoded in an empty executable.
 
7687
         _LT_AC_SYS_LIBPATH_AIX
 
7688
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4659
7689
          # Warning - without using the other run time loading flags,
4660
7690
          # -berok will link without error, but may produce a broken library.
4661
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4662
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
7691
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
7692
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4663
7693
          # Exported symbols can be pulled into shared objects from archives
4664
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4665
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7694
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7695
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4666
7696
          # This is similar to how AIX traditionally builds its shared libraries.
4667
 
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7697
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4668
7698
        fi
4669
7699
      fi
4670
7700
      ;;
4671
7701
 
4672
7702
    amigaos*)
4673
 
      case $host_cpu in
4674
 
      powerpc)
4675
 
            # see comment about AmigaOS4 .so support
4676
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4677
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4678
 
        ;;
4679
 
      m68k)
4680
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4681
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4682
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4683
 
        ;;
4684
 
      esac
 
7703
      _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)'
 
7704
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7705
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7706
      # see comment about different semantics on the GNU ld section
 
7707
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4685
7708
      ;;
4686
7709
 
4687
7710
    bsdi[[45]]*)
4688
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
7711
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4689
7712
      ;;
4690
7713
 
4691
 
    cygwin* | mingw* | pw32* | cegcc*)
 
7714
    cygwin* | mingw* | pw32*)
4692
7715
      # When not using gcc, we currently assume that we are using
4693
7716
      # Microsoft Visual C++.
4694
7717
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4695
7718
      # no search path for DLLs.
4696
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4697
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7719
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
7720
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4698
7721
      # Tell ltmain to make .lib files, not .a files.
4699
7722
      libext=lib
4700
7723
      # Tell ltmain to make .dll files, not .so files.
4701
7724
      shrext_cmds=".dll"
4702
7725
      # FIXME: Setting linknames here is a bad hack.
4703
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7726
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4704
7727
      # The linker will automatically build a .lib file if we build a DLL.
4705
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
7728
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
4706
7729
      # FIXME: Should let the user specify the lib program.
4707
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4708
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4709
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7730
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
7731
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
7732
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4710
7733
      ;;
4711
7734
 
4712
7735
    darwin* | rhapsody*)
4713
 
      _LT_DARWIN_LINKER_FEATURES($1)
 
7736
      case $host_os in
 
7737
        rhapsody* | darwin1.[[012]])
 
7738
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
7739
         ;;
 
7740
       *) # Darwin 1.3 on
 
7741
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7742
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7743
         else
 
7744
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7745
             10.[[012]])
 
7746
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7747
               ;;
 
7748
             10.*)
 
7749
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
7750
               ;;
 
7751
           esac
 
7752
         fi
 
7753
         ;;
 
7754
      esac
 
7755
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7756
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7757
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
7758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
7759
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
7760
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7761
    if test "$GCC" = yes ; then
 
7762
        output_verbose_link_cmd='echo'
 
7763
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
7764
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
7765
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
7766
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
7767
    else
 
7768
      case $cc_basename in
 
7769
        xlc*)
 
7770
         output_verbose_link_cmd='echo'
 
7771
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
7772
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7773
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7774
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7775
          _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}'
 
7776
          ;;
 
7777
       *)
 
7778
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
7779
          ;;
 
7780
      esac
 
7781
    fi
4714
7782
      ;;
4715
7783
 
4716
7784
    dgux*)
4717
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4718
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4719
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7785
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7786
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7787
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4720
7788
      ;;
4721
7789
 
4722
7790
    freebsd1*)
4723
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
7791
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4724
7792
      ;;
4725
7793
 
4726
7794
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4728
7796
    # does not break anything, and helps significantly (at the cost of a little
4729
7797
    # extra space).
4730
7798
    freebsd2.2*)
4731
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4732
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4733
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4734
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7799
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7800
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7801
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7802
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4735
7803
      ;;
4736
7804
 
4737
7805
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4738
7806
    freebsd2*)
4739
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4740
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4741
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4742
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7807
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7808
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7809
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7810
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4743
7811
      ;;
4744
7812
 
4745
7813
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4746
7814
    freebsd* | dragonfly*)
4747
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4748
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4749
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4750
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7815
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7816
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7817
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7818
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4751
7819
      ;;
4752
7820
 
4753
7821
    hpux9*)
4754
7822
      if test "$GCC" = yes; then
4755
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7823
        _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'
4756
7824
      else
4757
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7825
        _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'
4758
7826
      fi
4759
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4760
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4761
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
7827
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7828
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7829
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4762
7830
 
4763
7831
      # hardcode_minus_L: Not really in the search PATH,
4764
7832
      # but as the default location of the library.
4765
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4766
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7833
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7834
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4767
7835
      ;;
4768
7836
 
4769
7837
    hpux10*)
4770
7838
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4771
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7839
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4772
7840
      else
4773
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7841
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4774
7842
      fi
4775
7843
      if test "$with_gnu_ld" = no; then
4776
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4777
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4778
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4779
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
4780
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4781
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7844
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7845
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7846
 
 
7847
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7848
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7849
 
4782
7850
        # hardcode_minus_L: Not really in the search PATH,
4783
7851
        # but as the default location of the library.
4784
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7852
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4785
7853
      fi
4786
7854
      ;;
4787
7855
 
4789
7857
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4790
7858
        case $host_cpu in
4791
7859
        hppa*64*)
4792
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7860
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4793
7861
          ;;
4794
7862
        ia64*)
4795
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7863
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4796
7864
          ;;
4797
7865
        *)
4798
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7866
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4799
7867
          ;;
4800
7868
        esac
4801
7869
      else
4802
7870
        case $host_cpu in
4803
7871
        hppa*64*)
4804
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7872
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4805
7873
          ;;
4806
7874
        ia64*)
4807
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7875
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4808
7876
          ;;
4809
7877
        *)
4810
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7878
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4811
7879
          ;;
4812
7880
        esac
4813
7881
      fi
4814
7882
      if test "$with_gnu_ld" = no; then
4815
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4816
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7883
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7884
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4817
7885
 
4818
7886
        case $host_cpu in
4819
7887
        hppa*64*|ia64*)
4820
 
          _LT_TAGVAR(hardcode_direct, $1)=no
4821
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7888
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
7889
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7890
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4822
7891
          ;;
4823
7892
        *)
4824
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
4825
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4826
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7893
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7894
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4827
7895
 
4828
7896
          # hardcode_minus_L: Not really in the search PATH,
4829
7897
          # but as the default location of the library.
4830
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7898
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4831
7899
          ;;
4832
7900
        esac
4833
7901
      fi
4835
7903
 
4836
7904
    irix5* | irix6* | nonstopux*)
4837
7905
      if test "$GCC" = yes; then
4838
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4839
 
        # Try to use the -exported_symbol ld option, if it does not
4840
 
        # work, assume that -exports_file does not work either and
4841
 
        # implicitly export all symbols.
4842
 
        save_LDFLAGS="$LDFLAGS"
4843
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4844
 
        AC_LINK_IFELSE(int foo(void) {},
4845
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4846
 
        )
4847
 
        LDFLAGS="$save_LDFLAGS"
 
7906
        _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'
4848
7907
      else
4849
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4850
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
7908
        _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'
 
7909
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4851
7910
      fi
4852
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4853
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4854
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4855
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
4856
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7911
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7912
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7913
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4857
7914
      ;;
4858
7915
 
4859
7916
    netbsd*)
4860
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4861
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7917
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7918
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4862
7919
      else
4863
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7920
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4864
7921
      fi
4865
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4866
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4867
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7922
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7923
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7924
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4868
7925
      ;;
4869
7926
 
4870
7927
    newsos6)
4871
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4872
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4873
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4874
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4875
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4876
 
      ;;
4877
 
 
4878
 
    *nto* | *qnx*)
 
7928
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7929
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7930
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7931
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7932
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4879
7933
      ;;
4880
7934
 
4881
7935
    openbsd*)
4882
7936
      if test -f /usr/libexec/ld.so; then
4883
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
4884
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4885
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4886
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4887
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4888
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4889
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4890
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7937
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7938
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7939
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7940
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7941
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7942
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7943
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4891
7944
        else
4892
7945
          case $host_os in
4893
7946
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4894
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4895
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7947
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7948
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4896
7949
             ;;
4897
7950
           *)
4898
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4899
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7951
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7952
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4900
7953
             ;;
4901
7954
          esac
4902
 
        fi
 
7955
        fi
4903
7956
      else
4904
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7957
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4905
7958
      fi
4906
7959
      ;;
4907
7960
 
4908
7961
    os2*)
4909
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4910
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4911
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4912
 
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4913
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7962
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7963
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7964
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7965
      _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'
 
7966
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4914
7967
      ;;
4915
7968
 
4916
7969
    osf3*)
4917
7970
      if test "$GCC" = yes; then
4918
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4919
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7971
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7972
        _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'
4920
7973
      else
4921
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4922
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7974
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7975
        _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'
4923
7976
      fi
4924
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4925
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7977
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7978
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4927
7979
      ;;
4928
7980
 
4929
7981
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4930
7982
      if test "$GCC" = yes; then
4931
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4932
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4933
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7983
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7984
        _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'
 
7985
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934
7986
      else
4935
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4936
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4937
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4938
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
7987
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7988
        _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'
 
7989
        _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~
 
7990
        $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'
4939
7991
 
4940
7992
        # Both c and cxx compiler support -rpath directly
4941
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7993
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4942
7994
      fi
4943
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4944
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7995
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4945
7996
      ;;
4946
7997
 
4947
7998
    solaris*)
4948
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
7999
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4949
8000
      if test "$GCC" = yes; then
4950
8001
        wlarc='${wl}'
4951
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4952
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4953
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8002
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8003
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8004
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4954
8005
      else
4955
 
        case `$CC -V 2>&1` in
4956
 
        *"Compilers 5.0"*)
4957
 
          wlarc=''
4958
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4959
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4960
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4961
 
          ;;
4962
 
        *)
4963
 
          wlarc='${wl}'
4964
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4965
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4966
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4967
 
          ;;
4968
 
        esac
 
8006
        wlarc=''
 
8007
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8008
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8009
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4969
8010
      fi
4970
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4971
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8011
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
8012
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4972
8013
      case $host_os in
4973
8014
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4974
8015
      *)
4975
8016
        # The compiler driver will combine and reorder linker options,
4976
8017
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
4977
8018
        # but is careful enough not to reorder.
4978
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8019
        # Supported since Solaris 2.6 (maybe 2.5.1?)
4979
8020
        if test "$GCC" = yes; then
4980
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8021
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4981
8022
        else
4982
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
8023
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4983
8024
        fi
4984
8025
        ;;
4985
8026
      esac
4986
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
8027
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4987
8028
      ;;
4988
8029
 
4989
8030
    sunos4*)
4990
8031
      if test "x$host_vendor" = xsequent; then
4991
8032
        # Use $CC to link under sequent, because it throws in some extra .o
4992
8033
        # files that make .init and .fini sections work.
4993
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8034
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4994
8035
      else
4995
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8036
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4996
8037
      fi
4997
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4998
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
4999
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5000
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8038
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
8039
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
8040
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
8041
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5001
8042
      ;;
5002
8043
 
5003
8044
    sysv4)
5004
8045
      case $host_vendor in
5005
8046
        sni)
5006
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5007
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
8047
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8048
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5008
8049
        ;;
5009
8050
        siemens)
5010
8051
          ## LD is ld it makes a PLAMLIB
5011
8052
          ## CC just makes a GrossModule.
5012
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5013
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5014
 
          _LT_TAGVAR(hardcode_direct, $1)=no
 
8053
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8054
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
8055
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5015
8056
        ;;
5016
8057
        motorola)
5017
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5018
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
8058
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8059
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5019
8060
        ;;
5020
8061
      esac
5021
8062
      runpath_var='LD_RUN_PATH'
5022
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8063
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5023
8064
      ;;
5024
8065
 
5025
8066
    sysv4.3*)
5026
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5027
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5028
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
8067
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8068
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8069
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5029
8070
      ;;
5030
8071
 
5031
8072
    sysv4*MP*)
5032
8073
      if test -d /usr/nec; then
5033
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5034
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8074
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8075
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5035
8076
        runpath_var=LD_RUN_PATH
5036
8077
        hardcode_runpath_var=yes
5037
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
8078
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5038
8079
      fi
5039
8080
      ;;
5040
8081
 
5041
8082
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5042
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5043
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5044
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8083
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
8084
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
8085
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5045
8086
      runpath_var='LD_RUN_PATH'
5046
8087
 
5047
8088
      if test "$GCC" = yes; then
5048
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5049
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8089
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8090
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5050
8091
      else
5051
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5052
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8092
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8093
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5053
8094
      fi
5054
8095
      ;;
5055
8096
 
5060
8101
      # ever link correctly.  If we're not using GNU ld we use -z text
5061
8102
      # though, which does catch some bad symbols but isn't as heavy-handed
5062
8103
      # as -z defs.
5063
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5064
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5065
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5066
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5067
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5068
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5069
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5070
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
8104
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
8105
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
8106
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
8107
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8108
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8109
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
8110
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
8111
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5071
8112
      runpath_var='LD_RUN_PATH'
5072
8113
 
5073
8114
      if test "$GCC" = yes; then
5074
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5075
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8115
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8116
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5076
8117
      else
5077
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5078
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8118
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8119
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5079
8120
      fi
5080
8121
      ;;
5081
8122
 
5082
8123
    uts4*)
5083
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5084
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5085
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8124
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8125
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
8126
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5086
8127
      ;;
5087
8128
 
5088
8129
    *)
5089
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
8130
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5090
8131
      ;;
5091
8132
    esac
5092
 
 
5093
 
    if test x$host_vendor = xsni; then
5094
 
      case $host in
5095
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5096
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5097
 
        ;;
5098
 
      esac
5099
 
    fi
5100
8133
  fi
5101
8134
])
5102
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5103
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5104
 
 
5105
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5106
 
 
5107
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5108
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5109
 
_LT_DECL([], [extract_expsyms_cmds], [2],
5110
 
    [The commands to extract the exported symbol list from a shared archive])
 
8135
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
8136
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5111
8137
 
5112
8138
#
5113
8139
# Do we need to explicitly link libc?
5114
8140
#
5115
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
8141
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5116
8142
x|xyes)
5117
8143
  # Assume -lc should be added
5118
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
8144
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5119
8145
 
5120
8146
  if test "$enable_shared" = yes && test "$GCC" = yes; then
5121
 
    case $_LT_TAGVAR(archive_cmds, $1) in
 
8147
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
5122
8148
    *'~'*)
5123
8149
      # FIXME: we may have to deal with multi-command sequences.
5124
8150
      ;;
5127
8153
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5128
8154
      # to ld, don't add -lc before -lgcc.
5129
8155
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5130
 
      $RM conftest*
 
8156
      $rm conftest*
5131
8157
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5132
8158
 
5133
8159
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5135
8161
        lib=conftest
5136
8162
        libobjs=conftest.$ac_objext
5137
8163
        deplibs=
5138
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5139
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
8164
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
8165
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5140
8166
        compiler_flags=-v
5141
8167
        linker_flags=-v
5142
8168
        verstring=
5143
8169
        output_objdir=.
5144
8170
        libname=conftest
5145
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5146
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5147
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
8171
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
8172
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
8173
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5148
8174
        then
5149
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8175
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5150
8176
        else
5151
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
8177
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5152
8178
        fi
5153
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
8179
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5154
8180
      else
5155
8181
        cat conftest.err 1>&5
5156
8182
      fi
5157
 
      $RM conftest*
5158
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
8183
      $rm conftest*
 
8184
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5159
8185
      ;;
5160
8186
    esac
5161
8187
  fi
5162
8188
  ;;
5163
8189
esac
5164
 
 
5165
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5166
 
    [Whether or not to add -lc for building shared libraries])
5167
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5168
 
    [enable_shared_with_static_runtimes], [0],
5169
 
    [Whether or not to disallow shared libs when runtime libs are static])
5170
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5171
 
    [Compiler flag to allow reflexive dlopens])
5172
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5173
 
    [Compiler flag to generate shared objects directly from archives])
5174
 
_LT_TAGDECL([], [compiler_needs_object], [1],
5175
 
    [Whether the compiler copes with passing no objects directly])
5176
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5177
 
    [Create an old-style archive from a shared archive])
5178
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5179
 
    [Create a temporary old-style archive to link instead of a shared archive])
5180
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5181
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5182
 
_LT_TAGDECL([], [module_cmds], [2],
5183
 
    [Commands used to build a loadable module if different from building
5184
 
    a shared archive.])
5185
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
5186
 
_LT_TAGDECL([], [with_gnu_ld], [1],
5187
 
    [Whether we are building with GNU ld or not])
5188
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
5189
 
    [Flag that allows shared libraries with undefined symbols to be built])
5190
 
_LT_TAGDECL([], [no_undefined_flag], [1],
5191
 
    [Flag that enforces no undefined symbols])
5192
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5193
 
    [Flag to hardcode $libdir into a binary during linking.
5194
 
    This must work even if $libdir does not exist])
5195
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5196
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5197
 
    during linking.  This must work even if $libdir does not exist]])
5198
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5199
 
    [Whether we need a single "-rpath" flag with a separated argument])
5200
 
_LT_TAGDECL([], [hardcode_direct], [0],
5201
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5202
 
    DIR into the resulting binary])
5203
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5204
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5205
 
    DIR into the resulting binary and the resulting library dependency is
5206
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5207
 
    library is relocated])
5208
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
5209
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5210
 
    into the resulting binary])
5211
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5212
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5213
 
    into the resulting binary])
5214
 
_LT_TAGDECL([], [hardcode_automatic], [0],
5215
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
5216
 
    into the library and all subsequent libraries and executables linked
5217
 
    against it])
5218
 
_LT_TAGDECL([], [inherit_rpath], [0],
5219
 
    [Set to yes if linker adds runtime paths of dependent libraries
5220
 
    to runtime path list])
5221
 
_LT_TAGDECL([], [link_all_deplibs], [0],
5222
 
    [Whether libtool must link a program against all its dependency libraries])
5223
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5224
 
    [Fix the shell variable $srcfile for the compiler])
5225
 
_LT_TAGDECL([], [always_export_symbols], [0],
5226
 
    [Set to "yes" if exported symbols are required])
5227
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
5228
 
    [The commands to list exported symbols])
5229
 
_LT_TAGDECL([], [exclude_expsyms], [1],
5230
 
    [Symbols that should not be listed in the preloaded symbols])
5231
 
_LT_TAGDECL([], [include_expsyms], [1],
5232
 
    [Symbols that must always be exported])
5233
 
_LT_TAGDECL([], [prelink_cmds], [2],
5234
 
    [Commands necessary for linking programs (against libraries) with templates])
5235
 
_LT_TAGDECL([], [file_list_spec], [1],
5236
 
    [Specify filename containing input files])
5237
 
dnl FIXME: Not yet implemented
5238
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5239
 
dnl    [Compiler flag to generate thread safe objects])
5240
 
])# _LT_LINKER_SHLIBS
5241
 
 
5242
 
 
5243
 
# _LT_LANG_C_CONFIG([TAG])
5244
 
# ------------------------
5245
 
# Ensure that the configuration variables for a C compiler are suitably
5246
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5247
 
# the compiler configuration to `libtool'.
5248
 
m4_defun([_LT_LANG_C_CONFIG],
5249
 
[m4_require([_LT_DECL_EGREP])dnl
5250
 
lt_save_CC="$CC"
5251
 
AC_LANG_PUSH(C)
5252
 
 
5253
 
# Source file extension for C test sources.
5254
 
ac_ext=c
5255
 
 
5256
 
# Object file extension for compiled C test sources.
5257
 
objext=o
5258
 
_LT_TAGVAR(objext, $1)=$objext
5259
 
 
5260
 
# Code to be used in simple compile tests
5261
 
lt_simple_compile_test_code="int some_variable = 0;"
5262
 
 
5263
 
# Code to be used in simple link tests
5264
 
lt_simple_link_test_code='int main(){return(0);}'
5265
 
 
5266
 
_LT_TAG_COMPILER
5267
 
# Save the default compiler, since it gets overwritten when the other
5268
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5269
 
compiler_DEFAULT=$CC
5270
 
 
5271
 
# save warnings/boilerplate of simple test code
5272
 
_LT_COMPILER_BOILERPLATE
5273
 
_LT_LINKER_BOILERPLATE
5274
 
 
5275
 
if test -n "$compiler"; then
5276
 
  _LT_COMPILER_NO_RTTI($1)
5277
 
  _LT_COMPILER_PIC($1)
5278
 
  _LT_COMPILER_C_O($1)
5279
 
  _LT_COMPILER_FILE_LOCKS($1)
5280
 
  _LT_LINKER_SHLIBS($1)
5281
 
  _LT_SYS_DYNAMIC_LINKER($1)
5282
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
5283
 
  LT_SYS_DLOPEN_SELF
5284
 
  _LT_CMD_STRIPLIB
5285
 
 
5286
 
  # Report which library types will actually be built
5287
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
5288
 
  AC_MSG_RESULT([$can_build_shared])
5289
 
 
5290
 
  AC_MSG_CHECKING([whether to build shared libraries])
5291
 
  test "$can_build_shared" = "no" && enable_shared=no
5292
 
 
5293
 
  # On AIX, shared libraries and static libraries use the same namespace, and
5294
 
  # are all built from PIC.
5295
 
  case $host_os in
5296
 
  aix3*)
5297
 
    test "$enable_shared" = yes && enable_static=no
5298
 
    if test -n "$RANLIB"; then
5299
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5300
 
      postinstall_cmds='$RANLIB $lib'
5301
 
    fi
5302
 
    ;;
5303
 
 
5304
 
  aix[[4-9]]*)
5305
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5306
 
      test "$enable_shared" = yes && enable_static=no
5307
 
    fi
5308
 
    ;;
5309
 
  esac
5310
 
  AC_MSG_RESULT([$enable_shared])
5311
 
 
5312
 
  AC_MSG_CHECKING([whether to build static libraries])
5313
 
  # Make sure either enable_shared or enable_static is yes.
5314
 
  test "$enable_shared" = yes || enable_static=yes
5315
 
  AC_MSG_RESULT([$enable_static])
5316
 
 
5317
 
  _LT_CONFIG($1)
5318
 
fi
5319
 
AC_LANG_POP
5320
 
CC="$lt_save_CC"
5321
 
])# _LT_LANG_C_CONFIG
5322
 
 
5323
 
 
5324
 
# _LT_PROG_CXX
5325
 
# ------------
5326
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5327
 
# compiler, we have our own version here.
5328
 
m4_defun([_LT_PROG_CXX],
5329
 
[
5330
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5331
 
AC_PROG_CXX
5332
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5333
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5334
 
    (test "X$CXX" != "Xg++"))) ; then
5335
 
  AC_PROG_CXXCPP
5336
 
else
5337
 
  _lt_caught_CXX_error=yes
5338
 
fi
5339
 
popdef([AC_MSG_ERROR])
5340
 
])# _LT_PROG_CXX
5341
 
 
5342
 
dnl aclocal-1.4 backwards compatibility:
5343
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5344
 
 
5345
 
 
5346
 
# _LT_LANG_CXX_CONFIG([TAG])
5347
 
# --------------------------
5348
 
# Ensure that the configuration variables for a C++ compiler are suitably
5349
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5350
 
# the compiler configuration to `libtool'.
5351
 
m4_defun([_LT_LANG_CXX_CONFIG],
5352
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5353
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5354
 
m4_require([_LT_DECL_EGREP])dnl
5355
 
 
5356
 
AC_LANG_PUSH(C++)
5357
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5358
 
_LT_TAGVAR(allow_undefined_flag, $1)=
5359
 
_LT_TAGVAR(always_export_symbols, $1)=no
5360
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
5361
 
_LT_TAGVAR(compiler_needs_object, $1)=no
5362
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5363
 
_LT_TAGVAR(hardcode_direct, $1)=no
5364
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5365
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5366
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5367
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5368
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
5369
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5370
 
_LT_TAGVAR(hardcode_automatic, $1)=no
5371
 
_LT_TAGVAR(inherit_rpath, $1)=no
5372
 
_LT_TAGVAR(module_cmds, $1)=
5373
 
_LT_TAGVAR(module_expsym_cmds, $1)=
5374
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5375
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5376
 
_LT_TAGVAR(no_undefined_flag, $1)=
5377
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5378
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5379
 
 
5380
 
# Source file extension for C++ test sources.
5381
 
ac_ext=cpp
5382
 
 
5383
 
# Object file extension for compiled C++ test sources.
5384
 
objext=o
5385
 
_LT_TAGVAR(objext, $1)=$objext
5386
 
 
5387
 
# No sense in running all these tests if we already determined that
5388
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
5389
 
# are currently assumed to apply to all compilers on this platform,
5390
 
# and will be corrupted by setting them based on a non-working compiler.
5391
 
if test "$_lt_caught_CXX_error" != yes; then
5392
 
  # Code to be used in simple compile tests
5393
 
  lt_simple_compile_test_code="int some_variable = 0;"
5394
 
 
5395
 
  # Code to be used in simple link tests
5396
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5397
 
 
5398
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5399
 
  _LT_TAG_COMPILER
5400
 
 
5401
 
  # save warnings/boilerplate of simple test code
5402
 
  _LT_COMPILER_BOILERPLATE
5403
 
  _LT_LINKER_BOILERPLATE
5404
 
 
5405
 
  # Allow CC to be a program name with arguments.
5406
 
  lt_save_CC=$CC
5407
 
  lt_save_LD=$LD
5408
 
  lt_save_GCC=$GCC
5409
 
  GCC=$GXX
5410
 
  lt_save_with_gnu_ld=$with_gnu_ld
5411
 
  lt_save_path_LD=$lt_cv_path_LD
5412
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5413
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5414
 
  else
5415
 
    $as_unset lt_cv_prog_gnu_ld
5416
 
  fi
5417
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
5418
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
5419
 
  else
5420
 
    $as_unset lt_cv_path_LD
5421
 
  fi
5422
 
  test -z "${LDCXX+set}" || LD=$LDCXX
5423
 
  CC=${CXX-"c++"}
5424
 
  compiler=$CC
5425
 
  _LT_TAGVAR(compiler, $1)=$CC
5426
 
  _LT_CC_BASENAME([$compiler])
5427
 
 
5428
 
  if test -n "$compiler"; then
5429
 
    # We don't want -fno-exception when compiling C++ code, so set the
5430
 
    # no_builtin_flag separately
5431
 
    if test "$GXX" = yes; then
5432
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5433
 
    else
5434
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5435
 
    fi
5436
 
 
5437
 
    if test "$GXX" = yes; then
5438
 
      # Set up default GNU C++ configuration
5439
 
 
5440
 
      LT_PATH_LD
5441
 
 
5442
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5443
 
      # archiving commands below assume that GNU ld is being used.
5444
 
      if test "$with_gnu_ld" = yes; then
5445
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5446
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5447
 
 
5448
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5449
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5450
 
 
5451
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
5452
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5453
 
        #     investigate it a little bit more. (MM)
5454
 
        wlarc='${wl}'
5455
 
 
5456
 
        # ancient GNU ld didn't support --whole-archive et. al.
5457
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5458
 
          $GREP 'no-whole-archive' > /dev/null; then
5459
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5460
 
        else
5461
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5462
 
        fi
5463
 
      else
5464
 
        with_gnu_ld=no
5465
 
        wlarc=
5466
 
 
5467
 
        # A generic and very simple default shared library creation
5468
 
        # command for GNU C++ for the case where it uses the native
5469
 
        # linker, instead of GNU ld.  If possible, this setting should
5470
 
        # overridden to take advantage of the native linker features on
5471
 
        # the platform it is being used on.
5472
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5473
 
      fi
5474
 
 
5475
 
      # Commands to make compiler produce verbose output that lists
5476
 
      # what "hidden" libraries, object files and flags are used when
5477
 
      # linking a shared library.
5478
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5479
 
 
5480
 
    else
5481
 
      GXX=no
5482
 
      with_gnu_ld=no
5483
 
      wlarc=
5484
 
    fi
5485
 
 
5486
 
    # PORTME: fill in a description of your system's C++ link characteristics
5487
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5488
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
5489
 
    case $host_os in
5490
 
      aix3*)
5491
 
        # FIXME: insert proper C++ library support
5492
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5493
 
        ;;
5494
 
      aix[[4-9]]*)
5495
 
        if test "$host_cpu" = ia64; then
5496
 
          # On IA64, the linker does run time linking by default, so we don't
5497
 
          # have to do anything special.
5498
 
          aix_use_runtimelinking=no
5499
 
          exp_sym_flag='-Bexport'
5500
 
          no_entry_flag=""
5501
 
        else
5502
 
          aix_use_runtimelinking=no
5503
 
 
5504
 
          # Test if we are trying to use run time linking or normal
5505
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5506
 
          # need to do runtime linking.
5507
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5508
 
            for ld_flag in $LDFLAGS; do
5509
 
              case $ld_flag in
5510
 
              *-brtl*)
5511
 
                aix_use_runtimelinking=yes
5512
 
                break
5513
 
                ;;
5514
 
              esac
5515
 
            done
5516
 
            ;;
5517
 
          esac
5518
 
 
5519
 
          exp_sym_flag='-bexport'
5520
 
          no_entry_flag='-bnoentry'
5521
 
        fi
5522
 
 
5523
 
        # When large executables or shared objects are built, AIX ld can
5524
 
        # have problems creating the table of contents.  If linking a library
5525
 
        # or program results in "error TOC overflow" add -mminimal-toc to
5526
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5527
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5528
 
 
5529
 
        _LT_TAGVAR(archive_cmds, $1)=''
5530
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5531
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5532
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5533
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
5534
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5535
 
 
5536
 
        if test "$GXX" = yes; then
5537
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
5538
 
          # We only want to do this on AIX 4.2 and lower, the check
5539
 
          # below for broken collect2 doesn't work under 4.3+
5540
 
          collect2name=`${CC} -print-prog-name=collect2`
5541
 
          if test -f "$collect2name" &&
5542
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5543
 
          then
5544
 
            # We have reworked collect2
5545
 
            :
5546
 
          else
5547
 
            # We have old collect2
5548
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
5549
 
            # It fails to find uninstalled libraries when the uninstalled
5550
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
5551
 
            # to unsupported forces relinking
5552
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5553
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5554
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
5555
 
          fi
5556
 
          esac
5557
 
          shared_flag='-shared'
5558
 
          if test "$aix_use_runtimelinking" = yes; then
5559
 
            shared_flag="$shared_flag "'${wl}-G'
5560
 
          fi
5561
 
        else
5562
 
          # not using gcc
5563
 
          if test "$host_cpu" = ia64; then
5564
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5565
 
          # chokes on -Wl,-G. The following line is correct:
5566
 
          shared_flag='-G'
5567
 
          else
5568
 
            if test "$aix_use_runtimelinking" = yes; then
5569
 
              shared_flag='${wl}-G'
5570
 
            else
5571
 
              shared_flag='${wl}-bM:SRE'
5572
 
            fi
5573
 
          fi
5574
 
        fi
5575
 
 
5576
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5577
 
        # It seems that -bexpall does not export symbols beginning with
5578
 
        # underscore (_), so it is better to generate a list of symbols to
5579
 
        # export.
5580
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
5581
 
        if test "$aix_use_runtimelinking" = yes; then
5582
 
          # Warning - without using the other runtime loading flags (-brtl),
5583
 
          # -berok will link without error, but may produce a broken library.
5584
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5585
 
          # Determine the default libpath from the value encoded in an empty
5586
 
          # executable.
5587
 
          _LT_SYS_MODULE_PATH_AIX
5588
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5589
 
 
5590
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5591
 
        else
5592
 
          if test "$host_cpu" = ia64; then
5593
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5594
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5595
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5596
 
          else
5597
 
            # Determine the default libpath from the value encoded in an
5598
 
            # empty executable.
5599
 
            _LT_SYS_MODULE_PATH_AIX
5600
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5601
 
            # Warning - without using the other run time loading flags,
5602
 
            # -berok will link without error, but may produce a broken library.
5603
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5604
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5605
 
            # Exported symbols can be pulled into shared objects from archives
5606
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5607
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5608
 
            # This is similar to how AIX traditionally builds its shared
5609
 
            # libraries.
5610
 
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5611
 
          fi
5612
 
        fi
5613
 
        ;;
5614
 
 
5615
 
      beos*)
5616
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5617
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5618
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5619
 
          # support --undefined.  This deserves some investigation.  FIXME
5620
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5621
 
        else
5622
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5623
 
        fi
5624
 
        ;;
5625
 
 
5626
 
      chorus*)
5627
 
        case $cc_basename in
5628
 
          *)
5629
 
          # FIXME: insert proper C++ library support
5630
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5631
 
          ;;
5632
 
        esac
5633
 
        ;;
5634
 
 
5635
 
      cygwin* | mingw* | pw32* | cegcc*)
5636
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5637
 
        # as there is no search path for DLLs.
5638
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5639
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5640
 
        _LT_TAGVAR(always_export_symbols, $1)=no
5641
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5642
 
 
5643
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5644
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5645
 
          # If the export-symbols file already is a .def file (1st line
5646
 
          # is EXPORTS), use it as is; otherwise, prepend...
5647
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5648
 
            cp $export_symbols $output_objdir/$soname.def;
5649
 
          else
5650
 
            echo EXPORTS > $output_objdir/$soname.def;
5651
 
            cat $export_symbols >> $output_objdir/$soname.def;
5652
 
          fi~
5653
 
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5654
 
        else
5655
 
          _LT_TAGVAR(ld_shlibs, $1)=no
5656
 
        fi
5657
 
        ;;
5658
 
      darwin* | rhapsody*)
5659
 
        _LT_DARWIN_LINKER_FEATURES($1)
5660
 
        ;;
5661
 
 
5662
 
      dgux*)
5663
 
        case $cc_basename in
5664
 
          ec++*)
5665
 
            # FIXME: insert proper C++ library support
5666
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5667
 
            ;;
5668
 
          ghcx*)
5669
 
            # Green Hills C++ Compiler
5670
 
            # FIXME: insert proper C++ library support
5671
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5672
 
            ;;
5673
 
          *)
5674
 
            # FIXME: insert proper C++ library support
5675
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5676
 
            ;;
5677
 
        esac
5678
 
        ;;
5679
 
 
5680
 
      freebsd[[12]]*)
5681
 
        # C++ shared libraries reported to be fairly broken before
5682
 
        # switch to ELF
5683
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5684
 
        ;;
5685
 
 
5686
 
      freebsd-elf*)
5687
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5688
 
        ;;
5689
 
 
5690
 
      freebsd* | dragonfly*)
5691
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5692
 
        # conventions
5693
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
5694
 
        ;;
5695
 
 
5696
 
      gnu*)
5697
 
        ;;
5698
 
 
5699
 
      hpux9*)
5700
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5701
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5702
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5703
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5704
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5705
 
                                             # but as the default
5706
 
                                             # location of the library.
5707
 
 
5708
 
        case $cc_basename in
5709
 
          CC*)
5710
 
            # FIXME: insert proper C++ library support
5711
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5712
 
            ;;
5713
 
          aCC*)
5714
 
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5715
 
            # Commands to make compiler produce verbose output that lists
5716
 
            # what "hidden" libraries, object files and flags are used when
5717
 
            # linking a shared library.
5718
 
            #
5719
 
            # There doesn't appear to be a way to prevent this compiler from
5720
 
            # explicitly linking system object files so we need to strip them
5721
 
            # from the output so that they don't get included in the library
5722
 
            # dependencies.
5723
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5724
 
            ;;
5725
 
          *)
5726
 
            if test "$GXX" = yes; then
5727
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5728
 
            else
5729
 
              # FIXME: insert proper C++ library support
5730
 
              _LT_TAGVAR(ld_shlibs, $1)=no
5731
 
            fi
5732
 
            ;;
5733
 
        esac
5734
 
        ;;
5735
 
 
5736
 
      hpux10*|hpux11*)
5737
 
        if test $with_gnu_ld = no; then
5738
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5739
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5740
 
 
5741
 
          case $host_cpu in
5742
 
            hppa*64*|ia64*)
5743
 
              ;;
5744
 
            *)
5745
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5746
 
              ;;
5747
 
          esac
5748
 
        fi
5749
 
        case $host_cpu in
5750
 
          hppa*64*|ia64*)
5751
 
            _LT_TAGVAR(hardcode_direct, $1)=no
5752
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5753
 
            ;;
5754
 
          *)
5755
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
5756
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5757
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5758
 
                                                 # but as the default
5759
 
                                                 # location of the library.
5760
 
            ;;
5761
 
        esac
5762
 
 
5763
 
        case $cc_basename in
5764
 
          CC*)
5765
 
            # FIXME: insert proper C++ library support
5766
 
            _LT_TAGVAR(ld_shlibs, $1)=no
5767
 
            ;;
5768
 
          aCC*)
5769
 
            case $host_cpu in
5770
 
              hppa*64*)
5771
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5772
 
                ;;
5773
 
              ia64*)
5774
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5775
 
                ;;
5776
 
              *)
5777
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5778
 
                ;;
5779
 
            esac
5780
 
            # Commands to make compiler produce verbose output that lists
5781
 
            # what "hidden" libraries, object files and flags are used when
5782
 
            # linking a shared library.
5783
 
            #
5784
 
            # There doesn't appear to be a way to prevent this compiler from
5785
 
            # explicitly linking system object files so we need to strip them
5786
 
            # from the output so that they don't get included in the library
5787
 
            # dependencies.
5788
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5789
 
            ;;
5790
 
          *)
5791
 
            if test "$GXX" = yes; then
5792
 
              if test $with_gnu_ld = no; then
5793
 
                case $host_cpu in
5794
 
                  hppa*64*)
5795
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5796
 
                    ;;
5797
 
                  ia64*)
5798
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5799
 
                    ;;
5800
 
                  *)
5801
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5802
 
                    ;;
5803
 
                esac
5804
 
              fi
5805
 
            else
5806
 
              # FIXME: insert proper C++ library support
5807
 
              _LT_TAGVAR(ld_shlibs, $1)=no
5808
 
            fi
5809
 
            ;;
5810
 
        esac
5811
 
        ;;
5812
 
 
5813
 
      interix[[3-9]]*)
5814
 
        _LT_TAGVAR(hardcode_direct, $1)=no
5815
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5816
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5817
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5818
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5819
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
5820
 
        # default) and relocated if they conflict, which is a slow very memory
5821
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
5822
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5823
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5824
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5825
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5826
 
        ;;
5827
 
      irix5* | irix6*)
5828
 
        case $cc_basename in
5829
 
          CC*)
5830
 
            # SGI C++
5831
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5832
 
 
5833
 
            # Archives containing C++ object files must be created using
5834
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5835
 
            # necessary to make sure instantiated templates are included
5836
 
            # in the archive.
5837
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5838
 
            ;;
5839
 
          *)
5840
 
            if test "$GXX" = yes; then
5841
 
              if test "$with_gnu_ld" = no; then
5842
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5843
 
              else
5844
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5845
 
              fi
5846
 
            fi
5847
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
5848
 
            ;;
5849
 
        esac
5850
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5851
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5852
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
5853
 
        ;;
5854
 
 
5855
 
      linux* | k*bsd*-gnu)
5856
 
        case $cc_basename in
5857
 
          KCC*)
5858
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
5859
 
 
5860
 
            # KCC will only create a shared library if the output file
5861
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
5862
 
            # to its proper name (with version) after linking.
5863
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5864
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5865
 
            # Commands to make compiler produce verbose output that lists
5866
 
            # what "hidden" libraries, object files and flags are used when
5867
 
            # linking a shared library.
5868
 
            #
5869
 
            # There doesn't appear to be a way to prevent this compiler from
5870
 
            # explicitly linking system object files so we need to strip them
5871
 
            # from the output so that they don't get included in the library
5872
 
            # dependencies.
5873
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5874
 
 
5875
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5876
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5877
 
 
5878
 
            # Archives containing C++ object files must be created using
5879
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5880
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5881
 
            ;;
5882
 
          icpc* | ecpc* )
5883
 
            # Intel C++
5884
 
            with_gnu_ld=yes
5885
 
            # version 8.0 and above of icpc choke on multiply defined symbols
5886
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
5887
 
            # earlier do not add the objects themselves.
5888
 
            case `$CC -V 2>&1` in
5889
 
              *"Version 7."*)
5890
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5891
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5892
 
                ;;
5893
 
              *)  # Version 8.0 or newer
5894
 
                tmp_idyn=
5895
 
                case $host_cpu in
5896
 
                  ia64*) tmp_idyn=' -i_dynamic';;
5897
 
                esac
5898
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5899
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5900
 
                ;;
5901
 
            esac
5902
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5903
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5904
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5905
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5906
 
            ;;
5907
 
          pgCC* | pgcpp*)
5908
 
            # Portland Group C++ compiler
5909
 
            case `$CC -V` in
5910
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5911
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5912
 
                rm -rf $tpldir~
5913
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5914
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5915
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5916
 
                rm -rf $tpldir~
5917
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5918
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5919
 
                $RANLIB $oldlib'
5920
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5921
 
                rm -rf $tpldir~
5922
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5923
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5924
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5925
 
                rm -rf $tpldir~
5926
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5927
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5928
 
              ;;
5929
 
            *) # Version 6 will use weak symbols
5930
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5931
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5932
 
              ;;
5933
 
            esac
5934
 
 
5935
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5936
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5937
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5938
 
            ;;
5939
 
          cxx*)
5940
 
            # Compaq C++
5941
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5943
 
 
5944
 
            runpath_var=LD_RUN_PATH
5945
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5946
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5947
 
 
5948
 
            # Commands to make compiler produce verbose output that lists
5949
 
            # what "hidden" libraries, object files and flags are used when
5950
 
            # linking a shared library.
5951
 
            #
5952
 
            # There doesn't appear to be a way to prevent this compiler from
5953
 
            # explicitly linking system object files so we need to strip them
5954
 
            # from the output so that they don't get included in the library
5955
 
            # dependencies.
5956
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5957
 
            ;;
5958
 
          xl*)
5959
 
            # IBM XL 8.0 on PPC, with GNU ld
5960
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5961
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5962
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5963
 
            if test "x$supports_anon_versioning" = xyes; then
5964
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5965
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5966
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
5967
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5968
 
            fi
5969
 
            ;;
5970
 
          *)
5971
 
            case `$CC -V 2>&1 | sed 5q` in
5972
 
            *Sun\ C*)
5973
 
              # Sun C++ 5.9
5974
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5975
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5976
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5977
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5978
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5979
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
5980
 
 
5981
 
              # Not sure whether something based on
5982
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5983
 
              # would be better.
5984
 
              output_verbose_link_cmd='echo'
5985
 
 
5986
 
              # Archives containing C++ object files must be created using
5987
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5988
 
              # necessary to make sure instantiated templates are included
5989
 
              # in the archive.
5990
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5991
 
              ;;
5992
 
            esac
5993
 
            ;;
5994
 
        esac
5995
 
        ;;
5996
 
 
5997
 
      lynxos*)
5998
 
        # FIXME: insert proper C++ library support
5999
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6000
 
        ;;
6001
 
 
6002
 
      m88k*)
6003
 
        # FIXME: insert proper C++ library support
6004
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6005
 
        ;;
6006
 
 
6007
 
      mvs*)
6008
 
        case $cc_basename in
6009
 
          cxx*)
6010
 
            # FIXME: insert proper C++ library support
6011
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6012
 
            ;;
6013
 
          *)
6014
 
            # FIXME: insert proper C++ library support
6015
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6016
 
            ;;
6017
 
        esac
6018
 
        ;;
6019
 
 
6020
 
      netbsd*)
6021
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6022
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6023
 
          wlarc=
6024
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6025
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6026
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6027
 
        fi
6028
 
        # Workaround some broken pre-1.5 toolchains
6029
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6030
 
        ;;
6031
 
 
6032
 
      *nto* | *qnx*)
6033
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6034
 
        ;;
6035
 
 
6036
 
      openbsd2*)
6037
 
        # C++ shared libraries are fairly broken
6038
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6039
 
        ;;
6040
 
 
6041
 
      openbsd*)
6042
 
        if test -f /usr/libexec/ld.so; then
6043
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6044
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6045
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6046
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6047
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6048
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6050
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6051
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6052
 
          fi
6053
 
          output_verbose_link_cmd=echo
6054
 
        else
6055
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6056
 
        fi
6057
 
        ;;
6058
 
 
6059
 
      osf3* | osf4* | osf5*)
6060
 
        case $cc_basename in
6061
 
          KCC*)
6062
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6063
 
 
6064
 
            # KCC will only create a shared library if the output file
6065
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6066
 
            # to its proper name (with version) after linking.
6067
 
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6068
 
 
6069
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6070
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6071
 
 
6072
 
            # Archives containing C++ object files must be created using
6073
 
            # the KAI C++ compiler.
6074
 
            case $host in
6075
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6076
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6077
 
            esac
6078
 
            ;;
6079
 
          RCC*)
6080
 
            # Rational C++ 2.4.1
6081
 
            # FIXME: insert proper C++ library support
6082
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6083
 
            ;;
6084
 
          cxx*)
6085
 
            case $host in
6086
 
              osf3*)
6087
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6088
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6089
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6090
 
                ;;
6091
 
              *)
6092
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6093
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6094
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6095
 
                  echo "-hidden">> $lib.exp~
6096
 
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6097
 
                  $RM $lib.exp'
6098
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6099
 
                ;;
6100
 
            esac
6101
 
 
6102
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6103
 
 
6104
 
            # Commands to make compiler produce verbose output that lists
6105
 
            # what "hidden" libraries, object files and flags are used when
6106
 
            # linking a shared library.
6107
 
            #
6108
 
            # There doesn't appear to be a way to prevent this compiler from
6109
 
            # explicitly linking system object files so we need to strip them
6110
 
            # from the output so that they don't get included in the library
6111
 
            # dependencies.
6112
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6113
 
            ;;
6114
 
          *)
6115
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6116
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6117
 
              case $host in
6118
 
                osf3*)
6119
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6120
 
                  ;;
6121
 
                *)
6122
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6123
 
                  ;;
6124
 
              esac
6125
 
 
6126
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6127
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6128
 
 
6129
 
              # Commands to make compiler produce verbose output that lists
6130
 
              # what "hidden" libraries, object files and flags are used when
6131
 
              # linking a shared library.
6132
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6133
 
 
6134
 
            else
6135
 
              # FIXME: insert proper C++ library support
6136
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6137
 
            fi
6138
 
            ;;
6139
 
        esac
6140
 
        ;;
6141
 
 
6142
 
      psos*)
6143
 
        # FIXME: insert proper C++ library support
6144
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6145
 
        ;;
6146
 
 
6147
 
      sunos4*)
6148
 
        case $cc_basename in
6149
 
          CC*)
6150
 
            # Sun C++ 4.x
6151
 
            # FIXME: insert proper C++ library support
6152
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6153
 
            ;;
6154
 
          lcc*)
6155
 
            # Lucid
6156
 
            # FIXME: insert proper C++ library support
6157
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6158
 
            ;;
6159
 
          *)
6160
 
            # FIXME: insert proper C++ library support
6161
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6162
 
            ;;
6163
 
        esac
6164
 
        ;;
6165
 
 
6166
 
      solaris*)
6167
 
        case $cc_basename in
6168
 
          CC*)
6169
 
            # Sun C++ 4.2, 5.x and Centerline C++
6170
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6171
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6172
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6173
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6174
 
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6175
 
 
6176
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6177
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6178
 
            case $host_os in
6179
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6180
 
              *)
6181
 
                # The compiler driver will combine and reorder linker options,
6182
 
                # but understands `-z linker_flag'.
6183
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
6184
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6185
 
                ;;
6186
 
            esac
6187
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6188
 
 
6189
 
            output_verbose_link_cmd='echo'
6190
 
 
6191
 
            # Archives containing C++ object files must be created using
6192
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6193
 
            # necessary to make sure instantiated templates are included
6194
 
            # in the archive.
6195
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6196
 
            ;;
6197
 
          gcx*)
6198
 
            # Green Hills C++ Compiler
6199
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6200
 
 
6201
 
            # The C++ compiler must be used to create the archive.
6202
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6203
 
            ;;
6204
 
          *)
6205
 
            # GNU C++ compiler with Solaris linker
6206
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6207
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6208
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6209
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6210
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6211
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6212
 
 
6213
 
                # Commands to make compiler produce verbose output that lists
6214
 
                # what "hidden" libraries, object files and flags are used when
6215
 
                # linking a shared library.
6216
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6217
 
              else
6218
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6219
 
                # platform.
6220
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6221
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6222
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6223
 
 
6224
 
                # Commands to make compiler produce verbose output that lists
6225
 
                # what "hidden" libraries, object files and flags are used when
6226
 
                # linking a shared library.
6227
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6228
 
              fi
6229
 
 
6230
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6231
 
              case $host_os in
6232
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6233
 
                *)
6234
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6235
 
                  ;;
6236
 
              esac
6237
 
            fi
6238
 
            ;;
6239
 
        esac
6240
 
        ;;
6241
 
 
6242
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6243
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6244
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6245
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6246
 
      runpath_var='LD_RUN_PATH'
6247
 
 
6248
 
      case $cc_basename in
6249
 
        CC*)
6250
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6252
 
          ;;
6253
 
        *)
6254
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6255
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6256
 
          ;;
6257
 
      esac
6258
 
      ;;
6259
 
 
6260
 
      sysv5* | sco3.2v5* | sco5v6*)
6261
 
        # Note: We can NOT use -z defs as we might desire, because we do not
6262
 
        # link with -lc, and that would cause any symbols used from libc to
6263
 
        # always be unresolved, which means just about no library would
6264
 
        # ever link correctly.  If we're not using GNU ld we use -z text
6265
 
        # though, which does catch some bad symbols but isn't as heavy-handed
6266
 
        # as -z defs.
6267
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6268
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6269
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6270
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6271
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6272
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6273
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6274
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6275
 
        runpath_var='LD_RUN_PATH'
6276
 
 
6277
 
        case $cc_basename in
6278
 
          CC*)
6279
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6280
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6281
 
            ;;
6282
 
          *)
6283
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6284
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6285
 
            ;;
6286
 
        esac
6287
 
      ;;
6288
 
 
6289
 
      tandem*)
6290
 
        case $cc_basename in
6291
 
          NCC*)
6292
 
            # NonStop-UX NCC 3.20
6293
 
            # FIXME: insert proper C++ library support
6294
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6295
 
            ;;
6296
 
          *)
6297
 
            # FIXME: insert proper C++ library support
6298
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6299
 
            ;;
6300
 
        esac
6301
 
        ;;
6302
 
 
6303
 
      vxworks*)
6304
 
        # FIXME: insert proper C++ library support
6305
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6306
 
        ;;
6307
 
 
6308
 
      *)
6309
 
        # FIXME: insert proper C++ library support
6310
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6311
 
        ;;
6312
 
    esac
6313
 
 
6314
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6315
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6316
 
 
6317
 
    _LT_TAGVAR(GCC, $1)="$GXX"
6318
 
    _LT_TAGVAR(LD, $1)="$LD"
6319
 
 
6320
 
    ## CAVEAT EMPTOR:
6321
 
    ## There is no encapsulation within the following macros, do not change
6322
 
    ## the running order or otherwise move them around unless you know exactly
6323
 
    ## what you are doing...
6324
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
6325
 
    _LT_COMPILER_PIC($1)
6326
 
    _LT_COMPILER_C_O($1)
6327
 
    _LT_COMPILER_FILE_LOCKS($1)
6328
 
    _LT_LINKER_SHLIBS($1)
6329
 
    _LT_SYS_DYNAMIC_LINKER($1)
6330
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6331
 
 
6332
 
    _LT_CONFIG($1)
6333
 
  fi # test -n "$compiler"
6334
 
 
6335
 
  CC=$lt_save_CC
6336
 
  LDCXX=$LD
6337
 
  LD=$lt_save_LD
6338
 
  GCC=$lt_save_GCC
6339
 
  with_gnu_ld=$lt_save_with_gnu_ld
6340
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
6341
 
  lt_cv_path_LD=$lt_save_path_LD
6342
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6343
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6344
 
fi # test "$_lt_caught_CXX_error" != yes
6345
 
 
6346
 
AC_LANG_POP
6347
 
])# _LT_LANG_CXX_CONFIG
6348
 
 
6349
 
 
6350
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
8190
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
8191
 
 
8192
 
 
8193
# _LT_AC_FILE_LTDLL_C
 
8194
# -------------------
 
8195
# Be careful that the start marker always follows a newline.
 
8196
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
8197
# /* ltdll.c starts here */
 
8198
# #define WIN32_LEAN_AND_MEAN
 
8199
# #include <windows.h>
 
8200
# #undef WIN32_LEAN_AND_MEAN
 
8201
# #include <stdio.h>
 
8202
#
 
8203
# #ifndef __CYGWIN__
 
8204
# #  ifdef __CYGWIN32__
 
8205
# #    define __CYGWIN__ __CYGWIN32__
 
8206
# #  endif
 
8207
# #endif
 
8208
#
 
8209
# #ifdef __cplusplus
 
8210
# extern "C" {
 
8211
# #endif
 
8212
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
8213
# #ifdef __cplusplus
 
8214
# }
 
8215
# #endif
 
8216
#
 
8217
# #ifdef __CYGWIN__
 
8218
# #include <cygwin/cygwin_dll.h>
 
8219
# DECLARE_CYGWIN_DLL( DllMain );
 
8220
# #endif
 
8221
# HINSTANCE __hDllInstance_base;
 
8222
#
 
8223
# BOOL APIENTRY
 
8224
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
8225
# {
 
8226
#   __hDllInstance_base = hInst;
 
8227
#   return TRUE;
 
8228
# }
 
8229
# /* ltdll.c ends here */
 
8230
])# _LT_AC_FILE_LTDLL_C
 
8231
 
 
8232
 
 
8233
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6351
8234
# ---------------------------------
6352
 
# Figure out "hidden" library dependencies from verbose
6353
 
# compiler output when linking a shared library.
6354
 
# Parse the compiler output and extract the necessary
6355
 
# objects, libraries and library flags.
6356
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6357
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6358
 
# Dependencies to place before and after the object being linked:
6359
 
_LT_TAGVAR(predep_objects, $1)=
6360
 
_LT_TAGVAR(postdep_objects, $1)=
6361
 
_LT_TAGVAR(predeps, $1)=
6362
 
_LT_TAGVAR(postdeps, $1)=
6363
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
6364
 
 
6365
 
dnl we can't use the lt_simple_compile_test_code here,
6366
 
dnl because it contains code intended for an executable,
6367
 
dnl not a library.  It's possible we should let each
6368
 
dnl tag define a new lt_????_link_test_code variable,
6369
 
dnl but it's only used here...
6370
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6371
 
int a;
6372
 
void foo (void) { a = 0; }
6373
 
_LT_EOF
6374
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6375
 
class Foo
6376
 
{
6377
 
public:
6378
 
  Foo (void) { a = 0; }
6379
 
private:
6380
 
  int a;
6381
 
};
6382
 
_LT_EOF
6383
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6384
 
      subroutine foo
6385
 
      implicit none
6386
 
      integer*4 a
6387
 
      a=0
6388
 
      return
6389
 
      end
6390
 
_LT_EOF
6391
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6392
 
      subroutine foo
6393
 
      implicit none
6394
 
      integer a
6395
 
      a=0
6396
 
      return
6397
 
      end
6398
 
_LT_EOF
6399
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6400
 
public class foo {
6401
 
  private int a;
6402
 
  public void bar (void) {
6403
 
    a = 0;
6404
 
  }
6405
 
};
6406
 
_LT_EOF
6407
 
])
6408
 
dnl Parse the compiler output and extract the necessary
6409
 
dnl objects, libraries and library flags.
6410
 
if AC_TRY_EVAL(ac_compile); then
6411
 
  # Parse the compiler output and extract the necessary
6412
 
  # objects, libraries and library flags.
6413
 
 
6414
 
  # Sentinel used to keep track of whether or not we are before
6415
 
  # the conftest object file.
6416
 
  pre_test_object_deps_done=no
6417
 
 
6418
 
  for p in `eval "$output_verbose_link_cmd"`; do
6419
 
    case $p in
6420
 
 
6421
 
    -L* | -R* | -l*)
6422
 
       # Some compilers place space between "-{L,R}" and the path.
6423
 
       # Remove the space.
6424
 
       if test $p = "-L" ||
6425
 
          test $p = "-R"; then
6426
 
         prev=$p
6427
 
         continue
6428
 
       else
6429
 
         prev=
6430
 
       fi
6431
 
 
6432
 
       if test "$pre_test_object_deps_done" = no; then
6433
 
         case $p in
6434
 
         -L* | -R*)
6435
 
           # Internal compiler library paths should come after those
6436
 
           # provided the user.  The postdeps already come after the
6437
 
           # user supplied libs so there is no need to process them.
6438
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6439
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6440
 
           else
6441
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6442
 
           fi
6443
 
           ;;
6444
 
         # The "-l" case would never come before the object being
6445
 
         # linked, so don't bother handling this case.
6446
 
         esac
6447
 
       else
6448
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6449
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6450
 
         else
6451
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6452
 
         fi
6453
 
       fi
6454
 
       ;;
6455
 
 
6456
 
    *.$objext)
6457
 
       # This assumes that the test object file only shows up
6458
 
       # once in the compiler output.
6459
 
       if test "$p" = "conftest.$objext"; then
6460
 
         pre_test_object_deps_done=yes
6461
 
         continue
6462
 
       fi
6463
 
 
6464
 
       if test "$pre_test_object_deps_done" = no; then
6465
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6466
 
           _LT_TAGVAR(predep_objects, $1)="$p"
6467
 
         else
6468
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6469
 
         fi
6470
 
       else
6471
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6472
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
6473
 
         else
6474
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6475
 
         fi
6476
 
       fi
6477
 
       ;;
6478
 
 
6479
 
    *) ;; # Ignore the rest.
6480
 
 
6481
 
    esac
6482
 
  done
6483
 
 
6484
 
  # Clean up.
6485
 
  rm -f a.out a.exe
 
8235
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
8236
 
 
8237
 
 
8238
# old names
 
8239
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
8240
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
8241
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
8242
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8243
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8244
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
8245
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
8246
 
 
8247
# This is just to silence aclocal about the macro not being used
 
8248
ifelse([AC_DISABLE_FAST_INSTALL])
 
8249
 
 
8250
AC_DEFUN([LT_AC_PROG_GCJ],
 
8251
[AC_CHECK_TOOL(GCJ, gcj, no)
 
8252
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8253
  AC_SUBST(GCJFLAGS)
 
8254
])
 
8255
 
 
8256
AC_DEFUN([LT_AC_PROG_RC],
 
8257
[AC_CHECK_TOOL(RC, windres, no)
 
8258
])
 
8259
 
 
8260
 
 
8261
# Cheap backport of AS_EXECUTABLE_P and required macros
 
8262
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
8263
 
 
8264
# _AS_TEST_PREPARE
 
8265
# ----------------
 
8266
m4_ifndef([_AS_TEST_PREPARE],
 
8267
[m4_defun([_AS_TEST_PREPARE],
 
8268
[if test -x / >/dev/null 2>&1; then
 
8269
  as_executable_p='test -x'
6486
8270
else
6487
 
  echo "libtool.m4: error: problem compiling $1 test program"
6488
 
fi
6489
 
 
6490
 
$RM -f confest.$objext
6491
 
 
6492
 
# PORTME: override above test on systems where it is broken
6493
 
m4_if([$1], [CXX],
6494
 
[case $host_os in
6495
 
interix[[3-9]]*)
6496
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
6497
 
  # hack all around it, let's just trust "g++" to DTRT.
6498
 
  _LT_TAGVAR(predep_objects,$1)=
6499
 
  _LT_TAGVAR(postdep_objects,$1)=
6500
 
  _LT_TAGVAR(postdeps,$1)=
6501
 
  ;;
6502
 
 
6503
 
linux*)
6504
 
  case `$CC -V 2>&1 | sed 5q` in
6505
 
  *Sun\ C*)
6506
 
    # Sun C++ 5.9
6507
 
 
6508
 
    # The more standards-conforming stlport4 library is
6509
 
    # incompatible with the Cstd library. Avoid specifying
6510
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6511
 
    # -library=stlport4 depends on it.
6512
 
    case " $CXX $CXXFLAGS " in
6513
 
    *" -library=stlport4 "*)
6514
 
      solaris_use_stlport4=yes
6515
 
      ;;
6516
 
    esac
6517
 
 
6518
 
    if test "$solaris_use_stlport4" != yes; then
6519
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6520
 
    fi
6521
 
    ;;
6522
 
  esac
6523
 
  ;;
6524
 
 
6525
 
solaris*)
6526
 
  case $cc_basename in
6527
 
  CC*)
6528
 
    # The more standards-conforming stlport4 library is
6529
 
    # incompatible with the Cstd library. Avoid specifying
6530
 
    # it if it's in CXXFLAGS. Ignore libCrun as
6531
 
    # -library=stlport4 depends on it.
6532
 
    case " $CXX $CXXFLAGS " in
6533
 
    *" -library=stlport4 "*)
6534
 
      solaris_use_stlport4=yes
6535
 
      ;;
6536
 
    esac
6537
 
 
6538
 
    # Adding this requires a known-good setup of shared libraries for
6539
 
    # Sun compiler versions before 5.6, else PIC objects from an old
6540
 
    # archive will be linked into the output, leading to subtle bugs.
6541
 
    if test "$solaris_use_stlport4" != yes; then
6542
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6543
 
    fi
6544
 
    ;;
6545
 
  esac
6546
 
  ;;
6547
 
esac
6548
 
])
6549
 
 
6550
 
case " $_LT_TAGVAR(postdeps, $1) " in
6551
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6552
 
esac
6553
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6554
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6555
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6556
 
fi
6557
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6558
 
    [The directories searched by this compiler when creating a shared library])
6559
 
_LT_TAGDECL([], [predep_objects], [1],
6560
 
    [Dependencies to place before and after the objects being linked to
6561
 
    create a shared library])
6562
 
_LT_TAGDECL([], [postdep_objects], [1])
6563
 
_LT_TAGDECL([], [predeps], [1])
6564
 
_LT_TAGDECL([], [postdeps], [1])
6565
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6566
 
    [The library search path used internally by the compiler when linking
6567
 
    a shared library])
6568
 
])# _LT_SYS_HIDDEN_LIBDEPS
6569
 
 
6570
 
 
6571
 
# _LT_PROG_F77
6572
 
# ------------
6573
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
6574
 
# if there is no fortran compiler, we have our own version here.
6575
 
m4_defun([_LT_PROG_F77],
6576
 
[
6577
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6578
 
AC_PROG_F77
6579
 
if test -z "$F77" || test "X$F77" = "Xno"; then
6580
 
  _lt_disable_F77=yes
6581
 
fi
6582
 
popdef([AC_MSG_ERROR])
6583
 
])# _LT_PROG_F77
6584
 
 
6585
 
dnl aclocal-1.4 backwards compatibility:
6586
 
dnl AC_DEFUN([_LT_PROG_F77], [])
6587
 
 
6588
 
 
6589
 
# _LT_LANG_F77_CONFIG([TAG])
6590
 
# --------------------------
6591
 
# Ensure that the configuration variables for a Fortran 77 compiler are
6592
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6593
 
# to write the compiler configuration to `libtool'.
6594
 
m4_defun([_LT_LANG_F77_CONFIG],
6595
 
[AC_REQUIRE([_LT_PROG_F77])dnl
6596
 
AC_LANG_PUSH(Fortran 77)
6597
 
 
6598
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6599
 
_LT_TAGVAR(allow_undefined_flag, $1)=
6600
 
_LT_TAGVAR(always_export_symbols, $1)=no
6601
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
6602
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6603
 
_LT_TAGVAR(hardcode_direct, $1)=no
6604
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6605
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6606
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6607
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6608
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6609
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6610
 
_LT_TAGVAR(inherit_rpath, $1)=no
6611
 
_LT_TAGVAR(module_cmds, $1)=
6612
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6613
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6614
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6615
 
_LT_TAGVAR(no_undefined_flag, $1)=
6616
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6617
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6618
 
 
6619
 
# Source file extension for f77 test sources.
6620
 
ac_ext=f
6621
 
 
6622
 
# Object file extension for compiled f77 test sources.
6623
 
objext=o
6624
 
_LT_TAGVAR(objext, $1)=$objext
6625
 
 
6626
 
# No sense in running all these tests if we already determined that
6627
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
6628
 
# are currently assumed to apply to all compilers on this platform,
6629
 
# and will be corrupted by setting them based on a non-working compiler.
6630
 
if test "$_lt_disable_F77" != yes; then
6631
 
  # Code to be used in simple compile tests
6632
 
  lt_simple_compile_test_code="\
6633
 
      subroutine t
6634
 
      return
6635
 
      end
6636
 
"
6637
 
 
6638
 
  # Code to be used in simple link tests
6639
 
  lt_simple_link_test_code="\
6640
 
      program t
6641
 
      end
6642
 
"
6643
 
 
6644
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6645
 
  _LT_TAG_COMPILER
6646
 
 
6647
 
  # save warnings/boilerplate of simple test code
6648
 
  _LT_COMPILER_BOILERPLATE
6649
 
  _LT_LINKER_BOILERPLATE
6650
 
 
6651
 
  # Allow CC to be a program name with arguments.
6652
 
  lt_save_CC="$CC"
6653
 
  lt_save_GCC=$GCC
6654
 
  CC=${F77-"f77"}
6655
 
  compiler=$CC
6656
 
  _LT_TAGVAR(compiler, $1)=$CC
6657
 
  _LT_CC_BASENAME([$compiler])
6658
 
  GCC=$G77
6659
 
  if test -n "$compiler"; then
6660
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
6661
 
    AC_MSG_RESULT([$can_build_shared])
6662
 
 
6663
 
    AC_MSG_CHECKING([whether to build shared libraries])
6664
 
    test "$can_build_shared" = "no" && enable_shared=no
6665
 
 
6666
 
    # On AIX, shared libraries and static libraries use the same namespace, and
6667
 
    # are all built from PIC.
6668
 
    case $host_os in
6669
 
      aix3*)
6670
 
        test "$enable_shared" = yes && enable_static=no
6671
 
        if test -n "$RANLIB"; then
6672
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6673
 
          postinstall_cmds='$RANLIB $lib'
6674
 
        fi
6675
 
        ;;
6676
 
      aix[[4-9]]*)
6677
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6678
 
          test "$enable_shared" = yes && enable_static=no
6679
 
        fi
6680
 
        ;;
6681
 
    esac
6682
 
    AC_MSG_RESULT([$enable_shared])
6683
 
 
6684
 
    AC_MSG_CHECKING([whether to build static libraries])
6685
 
    # Make sure either enable_shared or enable_static is yes.
6686
 
    test "$enable_shared" = yes || enable_static=yes
6687
 
    AC_MSG_RESULT([$enable_static])
6688
 
 
6689
 
    _LT_TAGVAR(GCC, $1)="$G77"
6690
 
    _LT_TAGVAR(LD, $1)="$LD"
6691
 
 
6692
 
    ## CAVEAT EMPTOR:
6693
 
    ## There is no encapsulation within the following macros, do not change
6694
 
    ## the running order or otherwise move them around unless you know exactly
6695
 
    ## what you are doing...
6696
 
    _LT_COMPILER_PIC($1)
6697
 
    _LT_COMPILER_C_O($1)
6698
 
    _LT_COMPILER_FILE_LOCKS($1)
6699
 
    _LT_LINKER_SHLIBS($1)
6700
 
    _LT_SYS_DYNAMIC_LINKER($1)
6701
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6702
 
 
6703
 
    _LT_CONFIG($1)
6704
 
  fi # test -n "$compiler"
6705
 
 
6706
 
  GCC=$lt_save_GCC
6707
 
  CC="$lt_save_CC"
6708
 
fi # test "$_lt_disable_F77" != yes
6709
 
 
6710
 
AC_LANG_POP
6711
 
])# _LT_LANG_F77_CONFIG
6712
 
 
6713
 
 
6714
 
# _LT_PROG_FC
6715
 
# -----------
6716
 
# Since AC_PROG_FC is broken, in that it returns the empty string
6717
 
# if there is no fortran compiler, we have our own version here.
6718
 
m4_defun([_LT_PROG_FC],
6719
 
[
6720
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6721
 
AC_PROG_FC
6722
 
if test -z "$FC" || test "X$FC" = "Xno"; then
6723
 
  _lt_disable_FC=yes
6724
 
fi
6725
 
popdef([AC_MSG_ERROR])
6726
 
])# _LT_PROG_FC
6727
 
 
6728
 
dnl aclocal-1.4 backwards compatibility:
6729
 
dnl AC_DEFUN([_LT_PROG_FC], [])
6730
 
 
6731
 
 
6732
 
# _LT_LANG_FC_CONFIG([TAG])
6733
 
# -------------------------
6734
 
# Ensure that the configuration variables for a Fortran compiler are
6735
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
6736
 
# to write the compiler configuration to `libtool'.
6737
 
m4_defun([_LT_LANG_FC_CONFIG],
6738
 
[AC_REQUIRE([_LT_PROG_FC])dnl
6739
 
AC_LANG_PUSH(Fortran)
6740
 
 
6741
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6742
 
_LT_TAGVAR(allow_undefined_flag, $1)=
6743
 
_LT_TAGVAR(always_export_symbols, $1)=no
6744
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
6745
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6746
 
_LT_TAGVAR(hardcode_direct, $1)=no
6747
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6748
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6749
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6750
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6751
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6752
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6753
 
_LT_TAGVAR(inherit_rpath, $1)=no
6754
 
_LT_TAGVAR(module_cmds, $1)=
6755
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6756
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6757
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6758
 
_LT_TAGVAR(no_undefined_flag, $1)=
6759
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6760
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6761
 
 
6762
 
# Source file extension for fc test sources.
6763
 
ac_ext=${ac_fc_srcext-f}
6764
 
 
6765
 
# Object file extension for compiled fc test sources.
6766
 
objext=o
6767
 
_LT_TAGVAR(objext, $1)=$objext
6768
 
 
6769
 
# No sense in running all these tests if we already determined that
6770
 
# the FC compiler isn't working.  Some variables (like enable_shared)
6771
 
# are currently assumed to apply to all compilers on this platform,
6772
 
# and will be corrupted by setting them based on a non-working compiler.
6773
 
if test "$_lt_disable_FC" != yes; then
6774
 
  # Code to be used in simple compile tests
6775
 
  lt_simple_compile_test_code="\
6776
 
      subroutine t
6777
 
      return
6778
 
      end
6779
 
"
6780
 
 
6781
 
  # Code to be used in simple link tests
6782
 
  lt_simple_link_test_code="\
6783
 
      program t
6784
 
      end
6785
 
"
6786
 
 
6787
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6788
 
  _LT_TAG_COMPILER
6789
 
 
6790
 
  # save warnings/boilerplate of simple test code
6791
 
  _LT_COMPILER_BOILERPLATE
6792
 
  _LT_LINKER_BOILERPLATE
6793
 
 
6794
 
  # Allow CC to be a program name with arguments.
6795
 
  lt_save_CC="$CC"
6796
 
  lt_save_GCC=$GCC
6797
 
  CC=${FC-"f95"}
6798
 
  compiler=$CC
6799
 
  GCC=$ac_cv_fc_compiler_gnu
6800
 
 
6801
 
  _LT_TAGVAR(compiler, $1)=$CC
6802
 
  _LT_CC_BASENAME([$compiler])
6803
 
 
6804
 
  if test -n "$compiler"; then
6805
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
6806
 
    AC_MSG_RESULT([$can_build_shared])
6807
 
 
6808
 
    AC_MSG_CHECKING([whether to build shared libraries])
6809
 
    test "$can_build_shared" = "no" && enable_shared=no
6810
 
 
6811
 
    # On AIX, shared libraries and static libraries use the same namespace, and
6812
 
    # are all built from PIC.
6813
 
    case $host_os in
6814
 
      aix3*)
6815
 
        test "$enable_shared" = yes && enable_static=no
6816
 
        if test -n "$RANLIB"; then
6817
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6818
 
          postinstall_cmds='$RANLIB $lib'
6819
 
        fi
6820
 
        ;;
6821
 
      aix[[4-9]]*)
6822
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6823
 
          test "$enable_shared" = yes && enable_static=no
6824
 
        fi
6825
 
        ;;
6826
 
    esac
6827
 
    AC_MSG_RESULT([$enable_shared])
6828
 
 
6829
 
    AC_MSG_CHECKING([whether to build static libraries])
6830
 
    # Make sure either enable_shared or enable_static is yes.
6831
 
    test "$enable_shared" = yes || enable_static=yes
6832
 
    AC_MSG_RESULT([$enable_static])
6833
 
 
6834
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6835
 
    _LT_TAGVAR(LD, $1)="$LD"
6836
 
 
6837
 
    ## CAVEAT EMPTOR:
6838
 
    ## There is no encapsulation within the following macros, do not change
6839
 
    ## the running order or otherwise move them around unless you know exactly
6840
 
    ## what you are doing...
6841
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
6842
 
    _LT_COMPILER_PIC($1)
6843
 
    _LT_COMPILER_C_O($1)
6844
 
    _LT_COMPILER_FILE_LOCKS($1)
6845
 
    _LT_LINKER_SHLIBS($1)
6846
 
    _LT_SYS_DYNAMIC_LINKER($1)
6847
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6848
 
 
6849
 
    _LT_CONFIG($1)
6850
 
  fi # test -n "$compiler"
6851
 
 
6852
 
  GCC=$lt_save_GCC
6853
 
  CC="$lt_save_CC"
6854
 
fi # test "$_lt_disable_FC" != yes
6855
 
 
6856
 
AC_LANG_POP
6857
 
])# _LT_LANG_FC_CONFIG
6858
 
 
6859
 
 
6860
 
# _LT_LANG_GCJ_CONFIG([TAG])
6861
 
# --------------------------
6862
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
6863
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
6864
 
# to write the compiler configuration to `libtool'.
6865
 
m4_defun([_LT_LANG_GCJ_CONFIG],
6866
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
6867
 
AC_LANG_SAVE
6868
 
 
6869
 
# Source file extension for Java test sources.
6870
 
ac_ext=java
6871
 
 
6872
 
# Object file extension for compiled Java test sources.
6873
 
objext=o
6874
 
_LT_TAGVAR(objext, $1)=$objext
6875
 
 
6876
 
# Code to be used in simple compile tests
6877
 
lt_simple_compile_test_code="class foo {}"
6878
 
 
6879
 
# Code to be used in simple link tests
6880
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6881
 
 
6882
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6883
 
_LT_TAG_COMPILER
6884
 
 
6885
 
# save warnings/boilerplate of simple test code
6886
 
_LT_COMPILER_BOILERPLATE
6887
 
_LT_LINKER_BOILERPLATE
6888
 
 
6889
 
# Allow CC to be a program name with arguments.
6890
 
lt_save_CC="$CC"
6891
 
lt_save_GCC=$GCC
6892
 
GCC=yes
6893
 
CC=${GCJ-"gcj"}
6894
 
compiler=$CC
6895
 
_LT_TAGVAR(compiler, $1)=$CC
6896
 
_LT_TAGVAR(LD, $1)="$LD"
6897
 
_LT_CC_BASENAME([$compiler])
6898
 
 
6899
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6900
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6901
 
 
6902
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6903
 
 
6904
 
if test -n "$compiler"; then
6905
 
  _LT_COMPILER_NO_RTTI($1)
6906
 
  _LT_COMPILER_PIC($1)
6907
 
  _LT_COMPILER_C_O($1)
6908
 
  _LT_COMPILER_FILE_LOCKS($1)
6909
 
  _LT_LINKER_SHLIBS($1)
6910
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
6911
 
 
6912
 
  _LT_CONFIG($1)
6913
 
fi
6914
 
 
6915
 
AC_LANG_RESTORE
6916
 
 
6917
 
GCC=$lt_save_GCC
6918
 
CC="$lt_save_CC"
6919
 
])# _LT_LANG_GCJ_CONFIG
6920
 
 
6921
 
 
6922
 
# _LT_LANG_RC_CONFIG([TAG])
6923
 
# -------------------------
6924
 
# Ensure that the configuration variables for the Windows resource compiler
6925
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
6926
 
# to write the compiler configuration to `libtool'.
6927
 
m4_defun([_LT_LANG_RC_CONFIG],
6928
 
[AC_REQUIRE([LT_PROG_RC])dnl
6929
 
AC_LANG_SAVE
6930
 
 
6931
 
# Source file extension for RC test sources.
6932
 
ac_ext=rc
6933
 
 
6934
 
# Object file extension for compiled RC test sources.
6935
 
objext=o
6936
 
_LT_TAGVAR(objext, $1)=$objext
6937
 
 
6938
 
# Code to be used in simple compile tests
6939
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6940
 
 
6941
 
# Code to be used in simple link tests
6942
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
6943
 
 
6944
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6945
 
_LT_TAG_COMPILER
6946
 
 
6947
 
# save warnings/boilerplate of simple test code
6948
 
_LT_COMPILER_BOILERPLATE
6949
 
_LT_LINKER_BOILERPLATE
6950
 
 
6951
 
# Allow CC to be a program name with arguments.
6952
 
lt_save_CC="$CC"
6953
 
lt_save_GCC=$GCC
6954
 
GCC=
6955
 
CC=${RC-"windres"}
6956
 
compiler=$CC
6957
 
_LT_TAGVAR(compiler, $1)=$CC
6958
 
_LT_CC_BASENAME([$compiler])
6959
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6960
 
 
6961
 
if test -n "$compiler"; then
6962
 
  :
6963
 
  _LT_CONFIG($1)
6964
 
fi
6965
 
 
6966
 
GCC=$lt_save_GCC
6967
 
AC_LANG_RESTORE
6968
 
CC="$lt_save_CC"
6969
 
])# _LT_LANG_RC_CONFIG
6970
 
 
6971
 
 
6972
 
# LT_PROG_GCJ
6973
 
# -----------
6974
 
AC_DEFUN([LT_PROG_GCJ],
6975
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6976
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6977
 
    [AC_CHECK_TOOL(GCJ, gcj,)
6978
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6979
 
      AC_SUBST(GCJFLAGS)])])[]dnl
6980
 
])
6981
 
 
6982
 
# Old name:
6983
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6984
 
dnl aclocal-1.4 backwards compatibility:
6985
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6986
 
 
6987
 
 
6988
 
# LT_PROG_RC
6989
 
# ----------
6990
 
AC_DEFUN([LT_PROG_RC],
6991
 
[AC_CHECK_TOOL(RC, windres,)
6992
 
])
6993
 
 
6994
 
# Old name:
6995
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6996
 
dnl aclocal-1.4 backwards compatibility:
6997
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
6998
 
 
6999
 
 
7000
 
# _LT_DECL_EGREP
7001
 
# --------------
7002
 
# If we don't have a new enough Autoconf to choose the best grep
7003
 
# available, choose the one first in the user's PATH.
7004
 
m4_defun([_LT_DECL_EGREP],
7005
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
7006
 
AC_REQUIRE([AC_PROG_FGREP])dnl
7007
 
test -z "$GREP" && GREP=grep
7008
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7009
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7010
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7011
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7012
 
AC_SUBST([GREP])
7013
 
])
7014
 
 
7015
 
 
7016
 
# _LT_DECL_OBJDUMP
7017
 
# --------------
7018
 
# If we don't have a new enough Autoconf to choose the best objdump
7019
 
# available, choose the one first in the user's PATH.
7020
 
m4_defun([_LT_DECL_OBJDUMP],
7021
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7022
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7023
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7024
 
AC_SUBST([OBJDUMP])
7025
 
])
7026
 
 
7027
 
 
7028
 
# _LT_DECL_SED
7029
 
# ------------
7030
 
# Check for a fully-functional sed program, that truncates
7031
 
# as few characters as possible.  Prefer GNU sed if found.
7032
 
m4_defun([_LT_DECL_SED],
7033
 
[AC_PROG_SED
7034
 
test -z "$SED" && SED=sed
7035
 
Xsed="$SED -e 1s/^X//"
7036
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7037
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7038
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7039
 
])# _LT_DECL_SED
7040
 
 
7041
 
m4_ifndef([AC_PROG_SED], [
 
8271
  as_executable_p='test -f'
 
8272
fi
 
8273
])])# _AS_TEST_PREPARE
 
8274
 
 
8275
# AS_EXECUTABLE_P
 
8276
# ---------------
 
8277
# Check whether a file is executable.
 
8278
m4_ifndef([AS_EXECUTABLE_P],
 
8279
[m4_defun([AS_EXECUTABLE_P],
 
8280
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
8281
$as_executable_p $1[]dnl
 
8282
])])# AS_EXECUTABLE_P
 
8283
 
7042
8284
# NOTE: This macro has been submitted for inclusion into   #
7043
8285
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7044
8286
#  a released version of Autoconf we should remove this    #
7045
8287
#  macro and use it instead.                               #
7046
 
 
7047
 
m4_defun([AC_PROG_SED],
 
8288
# LT_AC_PROG_SED
 
8289
# --------------
 
8290
# Check for a fully-functional sed program, that truncates
 
8291
# as few characters as possible.  Prefer GNU sed if found.
 
8292
AC_DEFUN([LT_AC_PROG_SED],
7048
8293
[AC_MSG_CHECKING([for a sed that does not truncate output])
7049
8294
AC_CACHE_VAL(lt_cv_path_SED,
7050
8295
[# Loop through the user's path and test for sed and gsed.
7056
8301
  test -z "$as_dir" && as_dir=.
7057
8302
  for lt_ac_prog in sed gsed; do
7058
8303
    for ac_exec_ext in '' $ac_executable_extensions; do
7059
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
8304
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7060
8305
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7061
8306
      fi
7062
8307
    done
7097
8342
SED=$lt_cv_path_SED
7098
8343
AC_SUBST([SED])
7099
8344
AC_MSG_RESULT([$SED])
7100
 
])#AC_PROG_SED
7101
 
])#m4_ifndef
7102
 
 
7103
 
# Old name:
7104
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7105
 
dnl aclocal-1.4 backwards compatibility:
7106
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7107
 
 
7108
 
 
7109
 
# _LT_CHECK_SHELL_FEATURES
7110
 
# ------------------------
7111
 
# Find out whether the shell is Bourne or XSI compatible,
7112
 
# or has some other useful features.
7113
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
7114
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7115
 
# Try some XSI features
7116
 
xsi_shell=no
7117
 
( _lt_dummy="a/b/c"
7118
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7119
 
      = c,a/b,, \
7120
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
7121
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7122
 
  && xsi_shell=yes
7123
 
AC_MSG_RESULT([$xsi_shell])
7124
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7125
 
 
7126
 
AC_MSG_CHECKING([whether the shell understands "+="])
7127
 
lt_shell_append=no
7128
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7129
 
    >/dev/null 2>&1 \
7130
 
  && lt_shell_append=yes
7131
 
AC_MSG_RESULT([$lt_shell_append])
7132
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7133
 
 
7134
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7135
 
  lt_unset=unset
7136
 
else
7137
 
  lt_unset=false
7138
 
fi
7139
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7140
 
 
7141
 
# test EBCDIC or ASCII
7142
 
case `echo X|tr X '\101'` in
7143
 
 A) # ASCII based system
7144
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7145
 
  lt_SP2NL='tr \040 \012'
7146
 
  lt_NL2SP='tr \015\012 \040\040'
7147
 
  ;;
7148
 
 *) # EBCDIC based system
7149
 
  lt_SP2NL='tr \100 \n'
7150
 
  lt_NL2SP='tr \r\n \100\100'
7151
 
  ;;
7152
 
esac
7153
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7154
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7155
 
])# _LT_CHECK_SHELL_FEATURES
7156
 
 
7157
 
 
7158
 
# _LT_PROG_XSI_SHELLFNS
7159
 
# ---------------------
7160
 
# Bourne and XSI compatible variants of some useful shell functions.
7161
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7162
 
[case $xsi_shell in
7163
 
  yes)
7164
 
    cat << \_LT_EOF >> "$cfgfile"
7165
 
 
7166
 
# func_dirname file append nondir_replacement
7167
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7168
 
# otherwise set result to NONDIR_REPLACEMENT.
7169
 
func_dirname ()
7170
 
{
7171
 
  case ${1} in
7172
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7173
 
    *  ) func_dirname_result="${3}" ;;
7174
 
  esac
7175
 
}
7176
 
 
7177
 
# func_basename file
7178
 
func_basename ()
7179
 
{
7180
 
  func_basename_result="${1##*/}"
7181
 
}
7182
 
 
7183
 
# func_dirname_and_basename file append nondir_replacement
7184
 
# perform func_basename and func_dirname in a single function
7185
 
# call:
7186
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7187
 
#             add APPEND to the result, otherwise set result
7188
 
#             to NONDIR_REPLACEMENT.
7189
 
#             value returned in "$func_dirname_result"
7190
 
#   basename: Compute filename of FILE.
7191
 
#             value retuned in "$func_basename_result"
7192
 
# Implementation must be kept synchronized with func_dirname
7193
 
# and func_basename. For efficiency, we do not delegate to
7194
 
# those functions but instead duplicate the functionality here.
7195
 
func_dirname_and_basename ()
7196
 
{
7197
 
  case ${1} in
7198
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7199
 
    *  ) func_dirname_result="${3}" ;;
7200
 
  esac
7201
 
  func_basename_result="${1##*/}"
7202
 
}
7203
 
 
7204
 
# func_stripname prefix suffix name
7205
 
# strip PREFIX and SUFFIX off of NAME.
7206
 
# PREFIX and SUFFIX must not contain globbing or regex special
7207
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7208
 
# dot (in which case that matches only a dot).
7209
 
func_stripname ()
7210
 
{
7211
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7212
 
  # positional parameters, so assign one to ordinary parameter first.
7213
 
  func_stripname_result=${3}
7214
 
  func_stripname_result=${func_stripname_result#"${1}"}
7215
 
  func_stripname_result=${func_stripname_result%"${2}"}
7216
 
}
7217
 
 
7218
 
# func_opt_split
7219
 
func_opt_split ()
7220
 
{
7221
 
  func_opt_split_opt=${1%%=*}
7222
 
  func_opt_split_arg=${1#*=}
7223
 
}
7224
 
 
7225
 
# func_lo2o object
7226
 
func_lo2o ()
7227
 
{
7228
 
  case ${1} in
7229
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7230
 
    *)    func_lo2o_result=${1} ;;
7231
 
  esac
7232
 
}
7233
 
 
7234
 
# func_xform libobj-or-source
7235
 
func_xform ()
7236
 
{
7237
 
  func_xform_result=${1%.*}.lo
7238
 
}
7239
 
 
7240
 
# func_arith arithmetic-term...
7241
 
func_arith ()
7242
 
{
7243
 
  func_arith_result=$(( $[*] ))
7244
 
}
7245
 
 
7246
 
# func_len string
7247
 
# STRING may not start with a hyphen.
7248
 
func_len ()
7249
 
{
7250
 
  func_len_result=${#1}
7251
 
}
7252
 
 
7253
 
_LT_EOF
7254
 
    ;;
7255
 
  *) # Bourne compatible functions.
7256
 
    cat << \_LT_EOF >> "$cfgfile"
7257
 
 
7258
 
# func_dirname file append nondir_replacement
7259
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7260
 
# otherwise set result to NONDIR_REPLACEMENT.
7261
 
func_dirname ()
7262
 
{
7263
 
  # Extract subdirectory from the argument.
7264
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7265
 
  if test "X$func_dirname_result" = "X${1}"; then
7266
 
    func_dirname_result="${3}"
7267
 
  else
7268
 
    func_dirname_result="$func_dirname_result${2}"
7269
 
  fi
7270
 
}
7271
 
 
7272
 
# func_basename file
7273
 
func_basename ()
7274
 
{
7275
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7276
 
}
7277
 
 
7278
 
dnl func_dirname_and_basename
7279
 
dnl A portable version of this function is already defined in general.m4sh
7280
 
dnl so there is no need for it here.
7281
 
 
7282
 
# func_stripname prefix suffix name
7283
 
# strip PREFIX and SUFFIX off of NAME.
7284
 
# PREFIX and SUFFIX must not contain globbing or regex special
7285
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7286
 
# dot (in which case that matches only a dot).
7287
 
# func_strip_suffix prefix name
7288
 
func_stripname ()
7289
 
{
7290
 
  case ${2} in
7291
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7292
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7293
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7294
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7295
 
  esac
7296
 
}
7297
 
 
7298
 
# sed scripts:
7299
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7300
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7301
 
 
7302
 
# func_opt_split
7303
 
func_opt_split ()
7304
 
{
7305
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7306
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7307
 
}
7308
 
 
7309
 
# func_lo2o object
7310
 
func_lo2o ()
7311
 
{
7312
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7313
 
}
7314
 
 
7315
 
# func_xform libobj-or-source
7316
 
func_xform ()
7317
 
{
7318
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7319
 
}
7320
 
 
7321
 
# func_arith arithmetic-term...
7322
 
func_arith ()
7323
 
{
7324
 
  func_arith_result=`expr "$[@]"`
7325
 
}
7326
 
 
7327
 
# func_len string
7328
 
# STRING may not start with a hyphen.
7329
 
func_len ()
7330
 
{
7331
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7332
 
}
7333
 
 
7334
 
_LT_EOF
7335
 
esac
7336
 
 
7337
 
case $lt_shell_append in
7338
 
  yes)
7339
 
    cat << \_LT_EOF >> "$cfgfile"
7340
 
 
7341
 
# func_append var value
7342
 
# Append VALUE to the end of shell variable VAR.
7343
 
func_append ()
7344
 
{
7345
 
  eval "$[1]+=\$[2]"
7346
 
}
7347
 
_LT_EOF
7348
 
    ;;
7349
 
  *)
7350
 
    cat << \_LT_EOF >> "$cfgfile"
7351
 
 
7352
 
# func_append var value
7353
 
# Append VALUE to the end of shell variable VAR.
7354
 
func_append ()
7355
 
{
7356
 
  eval "$[1]=\$$[1]\$[2]"
7357
 
}
7358
 
 
7359
 
_LT_EOF
7360
 
    ;;
7361
 
  esac
7362
 
])
7363
 
 
7364
 
# Helper functions for option handling.                    -*- Autoconf -*-
7365
 
#
7366
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7367
 
#   Written by Gary V. Vaughan, 2004
7368
 
#
7369
 
# This file is free software; the Free Software Foundation gives
7370
 
# unlimited permission to copy and/or distribute it, with or without
7371
 
# modifications, as long as this notice is preserved.
7372
 
 
7373
 
# serial 6 ltoptions.m4
7374
 
 
7375
 
# This is to help aclocal find these macros, as it can't see m4_define.
7376
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7377
 
 
7378
 
 
7379
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7380
 
# ------------------------------------------
7381
 
m4_define([_LT_MANGLE_OPTION],
7382
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7383
 
 
7384
 
 
7385
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7386
 
# ---------------------------------------
7387
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7388
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
7389
 
# saved as a flag.
7390
 
m4_define([_LT_SET_OPTION],
7391
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7392
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7393
 
        _LT_MANGLE_DEFUN([$1], [$2]),
7394
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
7395
 
])
7396
 
 
7397
 
 
7398
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7399
 
# ------------------------------------------------------------
7400
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7401
 
m4_define([_LT_IF_OPTION],
7402
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7403
 
 
7404
 
 
7405
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7406
 
# -------------------------------------------------------
7407
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7408
 
# are set.
7409
 
m4_define([_LT_UNLESS_OPTIONS],
7410
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7411
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7412
 
                      [m4_define([$0_found])])])[]dnl
7413
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7414
 
])[]dnl
7415
 
])
7416
 
 
7417
 
 
7418
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7419
 
# ----------------------------------------
7420
 
# OPTION-LIST is a space-separated list of Libtool options associated
7421
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
7422
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7423
 
# the unknown option and exit.
7424
 
m4_defun([_LT_SET_OPTIONS],
7425
 
[# Set options
7426
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7427
 
    [_LT_SET_OPTION([$1], _LT_Option)])
7428
 
 
7429
 
m4_if([$1],[LT_INIT],[
7430
 
  dnl
7431
 
  dnl Simply set some default values (i.e off) if boolean options were not
7432
 
  dnl specified:
7433
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7434
 
  ])
7435
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7436
 
  ])
7437
 
  dnl
7438
 
  dnl If no reference was made to various pairs of opposing options, then
7439
 
  dnl we run the default mode handler for the pair.  For example, if neither
7440
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
7441
 
  dnl archives by default:
7442
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7443
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7444
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7445
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7446
 
                   [_LT_ENABLE_FAST_INSTALL])
7447
 
  ])
7448
 
])# _LT_SET_OPTIONS
7449
 
 
7450
 
 
7451
 
 
7452
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7453
 
# -----------------------------------------
7454
 
m4_define([_LT_MANGLE_DEFUN],
7455
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7456
 
 
7457
 
 
7458
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7459
 
# -----------------------------------------------
7460
 
m4_define([LT_OPTION_DEFINE],
7461
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7462
 
])# LT_OPTION_DEFINE
7463
 
 
7464
 
 
7465
 
# dlopen
7466
 
# ------
7467
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7468
 
])
7469
 
 
7470
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7471
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
7472
 
AC_DIAGNOSE([obsolete],
7473
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7474
 
put the `dlopen' option into LT_INIT's first parameter.])
7475
 
])
7476
 
 
7477
 
dnl aclocal-1.4 backwards compatibility:
7478
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7479
 
 
7480
 
 
7481
 
# win32-dll
7482
 
# ---------
7483
 
# Declare package support for building win32 dll's.
7484
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7485
 
[enable_win32_dll=yes
7486
 
 
7487
 
case $host in
7488
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7489
 
  AC_CHECK_TOOL(AS, as, false)
7490
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7491
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7492
 
  ;;
7493
 
esac
7494
 
 
7495
 
test -z "$AS" && AS=as
7496
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
7497
 
 
7498
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7499
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7500
 
 
7501
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7502
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7503
 
])# win32-dll
7504
 
 
7505
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7506
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7507
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
7508
 
AC_DIAGNOSE([obsolete],
7509
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7510
 
put the `win32-dll' option into LT_INIT's first parameter.])
7511
 
])
7512
 
 
7513
 
dnl aclocal-1.4 backwards compatibility:
7514
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7515
 
 
7516
 
 
7517
 
# _LT_ENABLE_SHARED([DEFAULT])
7518
 
# ----------------------------
7519
 
# implement the --enable-shared flag, and supports the `shared' and
7520
 
# `disable-shared' LT_INIT options.
7521
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7522
 
m4_define([_LT_ENABLE_SHARED],
7523
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7524
 
AC_ARG_ENABLE([shared],
7525
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7526
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7527
 
    [p=${PACKAGE-default}
7528
 
    case $enableval in
7529
 
    yes) enable_shared=yes ;;
7530
 
    no) enable_shared=no ;;
7531
 
    *)
7532
 
      enable_shared=no
7533
 
      # Look at the argument we got.  We use all the common list separators.
7534
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535
 
      for pkg in $enableval; do
7536
 
        IFS="$lt_save_ifs"
7537
 
        if test "X$pkg" = "X$p"; then
7538
 
          enable_shared=yes
7539
 
        fi
7540
 
      done
7541
 
      IFS="$lt_save_ifs"
7542
 
      ;;
7543
 
    esac],
7544
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7545
 
 
7546
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
7547
 
        [Whether or not to build shared libraries])
7548
 
])# _LT_ENABLE_SHARED
7549
 
 
7550
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7551
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7552
 
 
7553
 
# Old names:
7554
 
AC_DEFUN([AC_ENABLE_SHARED],
7555
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7556
 
])
7557
 
 
7558
 
AC_DEFUN([AC_DISABLE_SHARED],
7559
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
7560
 
])
7561
 
 
7562
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7563
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7564
 
 
7565
 
dnl aclocal-1.4 backwards compatibility:
7566
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7567
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7568
 
 
7569
 
 
7570
 
 
7571
 
# _LT_ENABLE_STATIC([DEFAULT])
7572
 
# ----------------------------
7573
 
# implement the --enable-static flag, and support the `static' and
7574
 
# `disable-static' LT_INIT options.
7575
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7576
 
m4_define([_LT_ENABLE_STATIC],
7577
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7578
 
AC_ARG_ENABLE([static],
7579
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7580
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7581
 
    [p=${PACKAGE-default}
7582
 
    case $enableval in
7583
 
    yes) enable_static=yes ;;
7584
 
    no) enable_static=no ;;
7585
 
    *)
7586
 
     enable_static=no
7587
 
      # Look at the argument we got.  We use all the common list separators.
7588
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7589
 
      for pkg in $enableval; do
7590
 
        IFS="$lt_save_ifs"
7591
 
        if test "X$pkg" = "X$p"; then
7592
 
          enable_static=yes
7593
 
        fi
7594
 
      done
7595
 
      IFS="$lt_save_ifs"
7596
 
      ;;
7597
 
    esac],
7598
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7599
 
 
7600
 
    _LT_DECL([build_old_libs], [enable_static], [0],
7601
 
        [Whether or not to build static libraries])
7602
 
])# _LT_ENABLE_STATIC
7603
 
 
7604
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7605
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7606
 
 
7607
 
# Old names:
7608
 
AC_DEFUN([AC_ENABLE_STATIC],
7609
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7610
 
])
7611
 
 
7612
 
AC_DEFUN([AC_DISABLE_STATIC],
7613
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
7614
 
])
7615
 
 
7616
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7617
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7618
 
 
7619
 
dnl aclocal-1.4 backwards compatibility:
7620
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7621
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7622
 
 
7623
 
 
7624
 
 
7625
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7626
 
# ----------------------------------
7627
 
# implement the --enable-fast-install flag, and support the `fast-install'
7628
 
# and `disable-fast-install' LT_INIT options.
7629
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7630
 
m4_define([_LT_ENABLE_FAST_INSTALL],
7631
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7632
 
AC_ARG_ENABLE([fast-install],
7633
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7634
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7635
 
    [p=${PACKAGE-default}
7636
 
    case $enableval in
7637
 
    yes) enable_fast_install=yes ;;
7638
 
    no) enable_fast_install=no ;;
7639
 
    *)
7640
 
      enable_fast_install=no
7641
 
      # Look at the argument we got.  We use all the common list separators.
7642
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7643
 
      for pkg in $enableval; do
7644
 
        IFS="$lt_save_ifs"
7645
 
        if test "X$pkg" = "X$p"; then
7646
 
          enable_fast_install=yes
7647
 
        fi
7648
 
      done
7649
 
      IFS="$lt_save_ifs"
7650
 
      ;;
7651
 
    esac],
7652
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7653
 
 
7654
 
_LT_DECL([fast_install], [enable_fast_install], [0],
7655
 
         [Whether or not to optimize for fast installation])dnl
7656
 
])# _LT_ENABLE_FAST_INSTALL
7657
 
 
7658
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7659
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7660
 
 
7661
 
# Old names:
7662
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7663
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7664
 
AC_DIAGNOSE([obsolete],
7665
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7666
 
the `fast-install' option into LT_INIT's first parameter.])
7667
 
])
7668
 
 
7669
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7670
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7671
 
AC_DIAGNOSE([obsolete],
7672
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7673
 
the `disable-fast-install' option into LT_INIT's first parameter.])
7674
 
])
7675
 
 
7676
 
dnl aclocal-1.4 backwards compatibility:
7677
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7678
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7679
 
 
7680
 
 
7681
 
# _LT_WITH_PIC([MODE])
7682
 
# --------------------
7683
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7684
 
# LT_INIT options.
7685
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7686
 
m4_define([_LT_WITH_PIC],
7687
 
[AC_ARG_WITH([pic],
7688
 
    [AS_HELP_STRING([--with-pic],
7689
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7690
 
    [pic_mode="$withval"],
7691
 
    [pic_mode=default])
7692
 
 
7693
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7694
 
 
7695
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7696
 
])# _LT_WITH_PIC
7697
 
 
7698
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7699
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7700
 
 
7701
 
# Old name:
7702
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
7703
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
7704
 
AC_DIAGNOSE([obsolete],
7705
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7706
 
put the `pic-only' option into LT_INIT's first parameter.])
7707
 
])
7708
 
 
7709
 
dnl aclocal-1.4 backwards compatibility:
7710
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7711
 
 
7712
 
 
7713
 
m4_define([_LTDL_MODE], [])
7714
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7715
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
7716
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7717
 
                 [m4_define([_LTDL_MODE], [recursive])])
7718
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7719
 
                 [m4_define([_LTDL_MODE], [subproject])])
7720
 
 
7721
 
m4_define([_LTDL_TYPE], [])
7722
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
7723
 
                 [m4_define([_LTDL_TYPE], [installable])])
7724
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7725
 
                 [m4_define([_LTDL_TYPE], [convenience])])
7726
 
 
7727
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
7728
 
#
7729
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7730
 
# Written by Gary V. Vaughan, 2004
7731
 
#
7732
 
# This file is free software; the Free Software Foundation gives
7733
 
# unlimited permission to copy and/or distribute it, with or without
7734
 
# modifications, as long as this notice is preserved.
7735
 
 
7736
 
# serial 6 ltsugar.m4
7737
 
 
7738
 
# This is to help aclocal find these macros, as it can't see m4_define.
7739
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7740
 
 
7741
 
 
7742
 
# lt_join(SEP, ARG1, [ARG2...])
7743
 
# -----------------------------
7744
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7745
 
# associated separator.
7746
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7747
 
# versions in m4sugar had bugs.
7748
 
m4_define([lt_join],
7749
 
[m4_if([$#], [1], [],
7750
 
       [$#], [2], [[$2]],
7751
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7752
 
m4_define([_lt_join],
7753
 
[m4_if([$#$2], [2], [],
7754
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7755
 
 
7756
 
 
7757
 
# lt_car(LIST)
7758
 
# lt_cdr(LIST)
7759
 
# ------------
7760
 
# Manipulate m4 lists.
7761
 
# These macros are necessary as long as will still need to support
7762
 
# Autoconf-2.59 which quotes differently.
7763
 
m4_define([lt_car], [[$1]])
7764
 
m4_define([lt_cdr],
7765
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7766
 
       [$#], 1, [],
7767
 
       [m4_dquote(m4_shift($@))])])
7768
 
m4_define([lt_unquote], $1)
7769
 
 
7770
 
 
7771
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7772
 
# ------------------------------------------
7773
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7774
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
7775
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7776
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7777
 
# than defined and empty).
7778
 
#
7779
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
7780
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7781
 
m4_define([lt_append],
7782
 
[m4_define([$1],
7783
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7784
 
 
7785
 
 
7786
 
 
7787
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7788
 
# ----------------------------------------------------------
7789
 
# Produce a SEP delimited list of all paired combinations of elements of
7790
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
7791
 
# has the form PREFIXmINFIXSUFFIXn.
7792
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
7793
 
m4_define([lt_combine],
7794
 
[m4_if(m4_eval([$# > 3]), [1],
7795
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7796
 
[[m4_foreach([_Lt_prefix], [$2],
7797
 
             [m4_foreach([_Lt_suffix],
7798
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7799
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7800
 
 
7801
 
 
7802
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7803
 
# -----------------------------------------------------------------------
7804
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7805
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7806
 
m4_define([lt_if_append_uniq],
7807
 
[m4_ifdef([$1],
7808
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7809
 
                 [lt_append([$1], [$2], [$3])$4],
7810
 
                 [$5])],
7811
 
          [lt_append([$1], [$2], [$3])$4])])
7812
 
 
7813
 
 
7814
 
# lt_dict_add(DICT, KEY, VALUE)
7815
 
# -----------------------------
7816
 
m4_define([lt_dict_add],
7817
 
[m4_define([$1($2)], [$3])])
7818
 
 
7819
 
 
7820
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7821
 
# --------------------------------------------
7822
 
m4_define([lt_dict_add_subkey],
7823
 
[m4_define([$1($2:$3)], [$4])])
7824
 
 
7825
 
 
7826
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
7827
 
# ----------------------------------
7828
 
m4_define([lt_dict_fetch],
7829
 
[m4_ifval([$3],
7830
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7831
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7832
 
 
7833
 
 
7834
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7835
 
# -----------------------------------------------------------------
7836
 
m4_define([lt_if_dict_fetch],
7837
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7838
 
        [$5],
7839
 
    [$6])])
7840
 
 
7841
 
 
7842
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7843
 
# --------------------------------------------------------------
7844
 
m4_define([lt_dict_filter],
7845
 
[m4_if([$5], [], [],
7846
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
7847
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7848
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7849
 
])
7850
 
 
7851
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
7852
 
#
7853
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
7854
 
#   Written by Scott James Remnant, 2004
7855
 
#
7856
 
# This file is free software; the Free Software Foundation gives
7857
 
# unlimited permission to copy and/or distribute it, with or without
7858
 
# modifications, as long as this notice is preserved.
7859
 
 
7860
 
# Generated from ltversion.in.
7861
 
 
7862
 
# serial 3012 ltversion.m4
7863
 
# This file is part of GNU Libtool
7864
 
 
7865
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
7866
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
7867
 
 
7868
 
AC_DEFUN([LTVERSION_VERSION],
7869
 
[macro_version='2.2.6'
7870
 
macro_revision='1.3012'
7871
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7872
 
_LT_DECL(, macro_revision, 0)
7873
 
])
7874
 
 
7875
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7876
 
#
7877
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7878
 
#   Written by Scott James Remnant, 2004.
7879
 
#
7880
 
# This file is free software; the Free Software Foundation gives
7881
 
# unlimited permission to copy and/or distribute it, with or without
7882
 
# modifications, as long as this notice is preserved.
7883
 
 
7884
 
# serial 4 lt~obsolete.m4
7885
 
 
7886
 
# These exist entirely to fool aclocal when bootstrapping libtool.
7887
 
#
7888
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7889
 
# which have later been changed to m4_define as they aren't part of the
7890
 
# exported API, or moved to Autoconf or Automake where they belong.
7891
 
#
7892
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
7893
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7894
 
# using a macro with the same name in our local m4/libtool.m4 it'll
7895
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7896
 
# and doesn't know about Autoconf macros at all.)
7897
 
#
7898
 
# So we provide this file, which has a silly filename so it's always
7899
 
# included after everything else.  This provides aclocal with the
7900
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7901
 
# because those macros already exist, or will be overwritten later.
7902
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
7903
 
#
7904
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7905
 
# Yes, that means every name once taken will need to remain here until
7906
 
# we give up compatibility with versions before 1.7, at which point
7907
 
# we need to keep only those names which we still refer to.
7908
 
 
7909
 
# This is to help aclocal find these macros, as it can't see m4_define.
7910
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7911
 
 
7912
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7913
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
7914
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7915
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
7916
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7917
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
7918
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
7919
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7920
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
7921
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7922
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
7923
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7924
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7925
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7926
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7927
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7928
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
7929
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7930
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7931
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
7932
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
7933
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7934
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7935
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7936
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7937
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7938
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7939
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7940
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
7941
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
7942
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
7943
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7944
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7945
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
7946
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
7947
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7948
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7949
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
7950
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7951
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
7952
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
7953
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
7954
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
7955
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7956
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7957
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7958
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7959
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7960
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7961
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7962
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7963
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7964
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7965
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7966
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
 
8345
])
7967
8346
 
7968
8347
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7969
8348
8121
8500
fi[]dnl
8122
8501
])# PKG_CHECK_MODULES
8123
8502
 
8124
 
dnl xorg-macros.m4.  Generated from xorg-macros.m4.in xorgversion.m4 by configure.
8125
 
dnl
8126
 
dnl Copyright 2005-2006 Sun Microsystems, Inc.  All rights reserved.
8127
 
dnl 
8128
 
dnl Permission is hereby granted, free of charge, to any person obtaining a
8129
 
dnl copy of this software and associated documentation files (the
8130
 
dnl "Software"), to deal in the Software without restriction, including
8131
 
dnl without limitation the rights to use, copy, modify, merge, publish,
8132
 
dnl distribute, and/or sell copies of the Software, and to permit persons
8133
 
dnl to whom the Software is furnished to do so, provided that the above
8134
 
dnl copyright notice(s) and this permission notice appear in all copies of
8135
 
dnl the Software and that both the above copyright notice(s) and this
8136
 
dnl permission notice appear in supporting documentation.
8137
 
dnl
8138
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8139
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8140
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8141
 
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8142
 
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8143
 
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8144
 
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8145
 
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8146
 
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8147
 
dnl
8148
 
dnl Except as contained in this notice, the name of a copyright holder
8149
 
dnl shall not be used in advertising or otherwise to promote the sale, use
8150
 
dnl or other dealings in this Software without prior written authorization
8151
 
dnl of the copyright holder.
8152
 
 
8153
 
# XORG_MACROS_VERSION(required-version)
8154
 
# -------------------------------------
8155
 
# Minimum version: 1.1.0
8156
 
#
8157
 
# If you're using a macro added in Version 1.1 or newer, include this in
8158
 
# your configure.ac with the minimum required version, such as:
8159
 
# XORG_MACROS_VERSION(1.1)
8160
 
#
8161
 
# To force at least a version with this macro defined, also add:
8162
 
# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
8163
 
#
8164
 
#
8165
 
# See the "minimum version" comment for each macro you use to see what 
8166
 
# version you require.
8167
 
AC_DEFUN([XORG_MACROS_VERSION],[
8168
 
        [XORG_MACROS_needed_version=$1
8169
 
        XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
8170
 
        XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
8171
 
        AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
8172
 
        [XORG_MACROS_version=1.2.1
8173
 
        XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
8174
 
        XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
8175
 
        if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
8176
 
                AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x])
8177
 
        fi
8178
 
        if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
8179
 
                AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer])
8180
 
        fi
8181
 
        AC_MSG_RESULT([yes, $XORG_MACROS_version])
8182
 
]) # XORG_MACROS_VERSION
8183
 
 
8184
 
# XORG_PROG_RAWCPP()
8185
 
# ------------------
8186
 
# Minimum version: 1.0.0
8187
 
#
8188
 
# Find cpp program and necessary flags for use in pre-processing text files
8189
 
# such as man pages and config files
8190
 
AC_DEFUN([XORG_PROG_RAWCPP],[
8191
 
AC_REQUIRE([AC_PROG_CPP])
8192
 
AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 
8193
 
   [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
8194
 
 
8195
 
# Check for flag to avoid builtin definitions - assumes unix is predefined,
8196
 
# which is not the best choice for supporting other OS'es, but covers most
8197
 
# of the ones we need for now.
8198
 
AC_MSG_CHECKING([if $RAWCPP requires -undef])
8199
 
AC_LANG_CONFTEST([Does cpp redefine unix ?])
8200
 
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8201
 
        AC_MSG_RESULT([no])
8202
 
else
8203
 
        if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8204
 
                RAWCPPFLAGS=-undef
8205
 
                AC_MSG_RESULT([yes])
8206
 
        # under Cygwin unix is still defined even with -undef
8207
 
        elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
8208
 
                RAWCPPFLAGS="-undef -ansi"
8209
 
                AC_MSG_RESULT([yes, with -ansi])
8210
 
        else
8211
 
                AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef.  I don't know what to do.])
8212
 
        fi
8213
 
fi
8214
 
rm -f conftest.$ac_ext
8215
 
 
8216
 
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
8217
 
AC_LANG_CONFTEST([Does cpp preserve   "whitespace"?])
8218
 
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
8219
 
        AC_MSG_RESULT([no])
8220
 
else
8221
 
        if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
8222
 
                RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
8223
 
                AC_MSG_RESULT([yes])
8224
 
        else
8225
 
                AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do.])
8226
 
        fi
8227
 
fi
8228
 
rm -f conftest.$ac_ext
8229
 
AC_SUBST(RAWCPPFLAGS)
8230
 
]) # XORG_PROG_RAWCPP
8231
 
 
8232
 
# XORG_MANPAGE_SECTIONS()
8233
 
# -----------------------
8234
 
# Minimum version: 1.0.0
8235
 
#
8236
 
# Determine which sections man pages go in for the different man page types
8237
 
# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
8238
 
# Not sure if there's any better way than just hardcoding by OS name.
8239
 
# Override default settings by setting environment variables
8240
 
 
8241
 
AC_DEFUN([XORG_MANPAGE_SECTIONS],[
8242
 
AC_REQUIRE([AC_CANONICAL_HOST])
8243
 
 
8244
 
if test x$APP_MAN_SUFFIX = x    ; then
8245
 
    APP_MAN_SUFFIX=1
8246
 
fi
8247
 
if test x$APP_MAN_DIR = x    ; then
8248
 
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
8249
 
fi
8250
 
 
8251
 
if test x$LIB_MAN_SUFFIX = x    ; then
8252
 
    LIB_MAN_SUFFIX=3
8253
 
fi
8254
 
if test x$LIB_MAN_DIR = x    ; then
8255
 
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
8256
 
fi
8257
 
 
8258
 
if test x$FILE_MAN_SUFFIX = x    ; then
8259
 
    case $host_os in
8260
 
        solaris*)       FILE_MAN_SUFFIX=4  ;;
8261
 
        *)              FILE_MAN_SUFFIX=5  ;;
8262
 
    esac
8263
 
fi
8264
 
if test x$FILE_MAN_DIR = x    ; then
8265
 
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
8266
 
fi
8267
 
 
8268
 
if test x$MISC_MAN_SUFFIX = x    ; then
8269
 
    case $host_os in
8270
 
        solaris*)       MISC_MAN_SUFFIX=5  ;;
8271
 
        *)              MISC_MAN_SUFFIX=7  ;;
8272
 
    esac
8273
 
fi
8274
 
if test x$MISC_MAN_DIR = x    ; then
8275
 
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
8276
 
fi
8277
 
 
8278
 
if test x$DRIVER_MAN_SUFFIX = x    ; then
8279
 
    case $host_os in
8280
 
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
8281
 
        *)              DRIVER_MAN_SUFFIX=4  ;;
8282
 
    esac
8283
 
fi
8284
 
if test x$DRIVER_MAN_DIR = x    ; then
8285
 
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
8286
 
fi
8287
 
 
8288
 
if test x$ADMIN_MAN_SUFFIX = x    ; then
8289
 
    case $host_os in
8290
 
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
8291
 
        *)              ADMIN_MAN_SUFFIX=8  ;;
8292
 
    esac
8293
 
fi
8294
 
if test x$ADMIN_MAN_DIR = x    ; then
8295
 
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
8296
 
fi
8297
 
 
8298
 
 
8299
 
AC_SUBST([APP_MAN_SUFFIX])
8300
 
AC_SUBST([LIB_MAN_SUFFIX])
8301
 
AC_SUBST([FILE_MAN_SUFFIX])
8302
 
AC_SUBST([MISC_MAN_SUFFIX])
8303
 
AC_SUBST([DRIVER_MAN_SUFFIX])
8304
 
AC_SUBST([ADMIN_MAN_SUFFIX])
8305
 
AC_SUBST([APP_MAN_DIR])
8306
 
AC_SUBST([LIB_MAN_DIR])
8307
 
AC_SUBST([FILE_MAN_DIR])
8308
 
AC_SUBST([MISC_MAN_DIR])
8309
 
AC_SUBST([DRIVER_MAN_DIR])
8310
 
AC_SUBST([ADMIN_MAN_DIR])
8311
 
]) # XORG_MANPAGE_SECTIONS
8312
 
 
8313
 
# XORG_CHECK_LINUXDOC
8314
 
# -------------------
8315
 
# Minimum version: 1.0.0
8316
 
#
8317
 
# Defines the variable MAKE_TEXT if the necessary tools and
8318
 
# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
8319
 
# Whether or not the necessary tools and files are found can be checked
8320
 
# with the AM_CONDITIONAL "BUILD_LINUXDOC"
8321
 
AC_DEFUN([XORG_CHECK_LINUXDOC],[
8322
 
if test x$XORG_SGML_PATH = x ; then
8323
 
    XORG_SGML_PATH=$prefix/share/sgml
8324
 
fi
8325
 
HAVE_DEFS_ENT=
8326
 
 
8327
 
if test x"$cross_compiling" = x"yes" ; then
8328
 
  HAVE_DEFS_ENT=no
8329
 
else
8330
 
  AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
8331
 
fi
8332
 
 
8333
 
AC_PATH_PROG(LINUXDOC, linuxdoc)
8334
 
AC_PATH_PROG(PS2PDF, ps2pdf)
8335
 
 
8336
 
AC_MSG_CHECKING([Whether to build documentation])
8337
 
 
8338
 
if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
8339
 
   BUILDDOC=yes
8340
 
else
8341
 
   BUILDDOC=no
8342
 
fi
8343
 
 
8344
 
AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
8345
 
 
8346
 
AC_MSG_RESULT([$BUILDDOC])
8347
 
 
8348
 
AC_MSG_CHECKING([Whether to build pdf documentation])
8349
 
 
8350
 
if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
8351
 
   BUILDPDFDOC=yes
8352
 
else
8353
 
   BUILDPDFDOC=no
8354
 
fi
8355
 
 
8356
 
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
8357
 
 
8358
 
AC_MSG_RESULT([$BUILDPDFDOC])
8359
 
 
8360
 
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
8361
 
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
8362
 
MAKE_PDF="$PS2PDF"
8363
 
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC  -B html --split=0"
8364
 
 
8365
 
AC_SUBST(MAKE_TEXT)
8366
 
AC_SUBST(MAKE_PS)
8367
 
AC_SUBST(MAKE_PDF)
8368
 
AC_SUBST(MAKE_HTML)
8369
 
]) # XORG_CHECK_LINUXDOC
8370
 
 
8371
 
# XORG_CHECK_DOCBOOK
8372
 
# -------------------
8373
 
# Minimum version: 1.0.0
8374
 
#
8375
 
# Checks for the ability to build output formats from SGML DocBook source.
8376
 
# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
8377
 
# indicates whether the necessary tools and files are found and, if set,
8378
 
# $(MAKE_XXX) blah.sgml will produce blah.xxx.
8379
 
AC_DEFUN([XORG_CHECK_DOCBOOK],[
8380
 
if test x$XORG_SGML_PATH = x ; then
8381
 
    XORG_SGML_PATH=$prefix/share/sgml
8382
 
fi
8383
 
HAVE_DEFS_ENT=
8384
 
BUILDTXTDOC=no
8385
 
BUILDPDFDOC=no
8386
 
BUILDPSDOC=no
8387
 
BUILDHTMLDOC=no
8388
 
 
8389
 
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
8390
 
 
8391
 
AC_PATH_PROG(DOCBOOKPS, docbook2ps)
8392
 
AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
8393
 
AC_PATH_PROG(DOCBOOKHTML, docbook2html)
8394
 
AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
8395
 
 
8396
 
AC_MSG_CHECKING([Whether to build text documentation])
8397
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
8398
 
   test x$BUILD_TXTDOC != xno; then
8399
 
        BUILDTXTDOC=yes
8400
 
fi
8401
 
AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
8402
 
AC_MSG_RESULT([$BUILDTXTDOC])
8403
 
 
8404
 
AC_MSG_CHECKING([Whether to build PDF documentation])
8405
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
8406
 
   test x$BUILD_PDFDOC != xno; then
8407
 
        BUILDPDFDOC=yes
8408
 
fi
8409
 
AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
8410
 
AC_MSG_RESULT([$BUILDPDFDOC])
8411
 
 
8412
 
AC_MSG_CHECKING([Whether to build PostScript documentation])
8413
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
8414
 
   test x$BUILD_PSDOC != xno; then
8415
 
        BUILDPSDOC=yes
8416
 
fi
8417
 
AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
8418
 
AC_MSG_RESULT([$BUILDPSDOC])
8419
 
 
8420
 
AC_MSG_CHECKING([Whether to build HTML documentation])
8421
 
if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
8422
 
   test x$BUILD_HTMLDOC != xno; then
8423
 
        BUILDHTMLDOC=yes
8424
 
fi
8425
 
AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
8426
 
AC_MSG_RESULT([$BUILDHTMLDOC])
8427
 
 
8428
 
MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
8429
 
MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
8430
 
MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
8431
 
MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
8432
 
 
8433
 
AC_SUBST(MAKE_TEXT)
8434
 
AC_SUBST(MAKE_PS)
8435
 
AC_SUBST(MAKE_PDF)
8436
 
AC_SUBST(MAKE_HTML)
8437
 
]) # XORG_CHECK_DOCBOOK
8438
 
 
8439
 
# XORG_CHECK_MALLOC_ZERO
8440
 
# ----------------------
8441
 
# Minimum version: 1.0.0
8442
 
#
8443
 
# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
8444
 
# malloc(0) returns NULL.  Packages should add one of these cflags to
8445
 
# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
8446
 
AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
8447
 
AC_ARG_ENABLE(malloc0returnsnull,
8448
 
        AC_HELP_STRING([--enable-malloc0returnsnull],
8449
 
                       [malloc(0) returns NULL (default: auto)]),
8450
 
        [MALLOC_ZERO_RETURNS_NULL=$enableval],
8451
 
        [MALLOC_ZERO_RETURNS_NULL=auto])
8452
 
 
8453
 
AC_MSG_CHECKING([whether malloc(0) returns NULL])
8454
 
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
8455
 
        AC_RUN_IFELSE([
8456
 
char *malloc();
8457
 
char *realloc();
8458
 
char *calloc();
8459
 
main() {
8460
 
    char *m0, *r0, *c0, *p;
8461
 
    m0 = malloc(0);
8462
 
    p = malloc(10);
8463
 
    r0 = realloc(p,0);
8464
 
    c0 = calloc(0);
8465
 
    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
8466
 
}],
8467
 
                [MALLOC_ZERO_RETURNS_NULL=yes],
8468
 
                [MALLOC_ZERO_RETURNS_NULL=no])
8469
 
fi
8470
 
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
8471
 
 
8472
 
if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
8473
 
        MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
8474
 
        XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
8475
 
        XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
8476
 
else
8477
 
        MALLOC_ZERO_CFLAGS=""
8478
 
        XMALLOC_ZERO_CFLAGS=""
8479
 
        XTMALLOC_ZERO_CFLAGS=""
8480
 
fi
8481
 
 
8482
 
AC_SUBST([MALLOC_ZERO_CFLAGS])
8483
 
AC_SUBST([XMALLOC_ZERO_CFLAGS])
8484
 
AC_SUBST([XTMALLOC_ZERO_CFLAGS])
8485
 
]) # XORG_CHECK_MALLOC_ZERO
8486
 
 
8487
 
# XORG_WITH_LINT()
8488
 
# ----------------
8489
 
# Minimum version: 1.1.0
8490
 
#
8491
 
# Sets up flags for source checkers such as lint and sparse if --with-lint
8492
 
# is specified.   (Use --with-lint=sparse for sparse.)
8493
 
# Sets $LINT to name of source checker passed with --with-lint (default: lint)
8494
 
# Sets $LINT_FLAGS to flags to pass to source checker
8495
 
# Sets LINT automake conditional if enabled (default: disabled)
8496
 
#
8497
 
AC_DEFUN([XORG_WITH_LINT],[
8498
 
 
8499
 
# Allow checking code with lint, sparse, etc.
8500
 
AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint],
8501
 
                [Use a lint-style source code checker (default: disabled)])],
8502
 
                [use_lint=$withval], [use_lint=no])
8503
 
if test "x$use_lint" = "xyes" ; then
8504
 
        LINT="lint"
8505
 
else
8506
 
        LINT="$use_lint"
8507
 
fi
8508
 
if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
8509
 
    case $LINT in
8510
 
        lint|*/lint)
8511
 
            case $host_os in
8512
 
                solaris*)
8513
 
                        LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
8514
 
                        ;;
8515
 
            esac
8516
 
            ;;
8517
 
    esac
8518
 
fi
8519
 
 
8520
 
AC_SUBST(LINT)
8521
 
AC_SUBST(LINT_FLAGS)
8522
 
AM_CONDITIONAL(LINT, [test x$LINT != xno])
8523
 
 
8524
 
]) # XORG_WITH_LINT
8525
 
 
8526
 
# XORG_LINT_LIBRARY(LIBNAME)
8527
 
# --------------------------
8528
 
# Minimum version: 1.1.0
8529
 
#
8530
 
# Sets up flags for building lint libraries for checking programs that call
8531
 
# functions in the library.
8532
 
# Disabled by default, enable with --enable-lint-library
8533
 
# Sets: 
8534
 
#       @LINTLIB@               - name of lint library file to make
8535
 
#       MAKE_LINT_LIB           - automake conditional
8536
 
#
8537
 
 
8538
 
AC_DEFUN([XORG_LINT_LIBRARY],[
8539
 
AC_REQUIRE([XORG_WITH_LINT])
8540
 
# Build lint "library" for more indepth checks of programs calling this library
8541
 
AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library],
8542
 
        [Create lint library (default: disabled)])],
8543
 
        [make_lint_lib=$enableval], [make_lint_lib=no])
8544
 
if test "x$make_lint_lib" != "xno" ; then
8545
 
        if test "x$LINT" = "xno" ; then
8546
 
                AC_MSG_ERROR([Cannot make lint library without --with-lint])
8547
 
        fi
8548
 
        if test "x$make_lint_lib" = "xyes" ; then
8549
 
                LINTLIB=llib-l$1.ln
8550
 
        else
8551
 
                LINTLIB=$make_lint_lib
8552
 
        fi
8553
 
fi
8554
 
AC_SUBST(LINTLIB)
8555
 
AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
8556
 
 
8557
 
]) # XORG_LINT_LIBRARY
8558
 
 
8559
 
# XORG_CWARNFLAGS
8560
 
# ---------------
8561
 
# Minimum version: 1.2.0
8562
 
#
8563
 
# Defines CWARNFLAGS to enable C compiler warnings.
8564
 
#
8565
 
AC_DEFUN([XORG_CWARNFLAGS], [
8566
 
AC_REQUIRE([AC_PROG_CC])
8567
 
if  test "x$GCC" = xyes ; then
8568
 
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
8569
 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
8570
 
-Wbad-function-cast"
8571
 
    case `gcc -dumpversion` in
8572
 
    3.4.* | 4.*)
8573
 
        CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
8574
 
        ;;
8575
 
    esac
8576
 
else
8577
 
    AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
8578
 
    if test "x$SUNCC" = "xyes"; then
8579
 
        CWARNFLAGS="-v"
8580
 
    fi
8581
 
fi
8582
 
AC_SUBST(CWARNFLAGS)
8583
 
]) # XORG_CWARNFLAGS
8584
 
dnl Copyright 2005 Red Hat, Inc
8585
 
dnl
8586
 
dnl Permission to use, copy, modify, distribute, and sell this software and its
8587
 
dnl documentation for any purpose is hereby granted without fee, provided that
8588
 
dnl the above copyright notice appear in all copies and that both that
8589
 
dnl copyright notice and this permission notice appear in supporting
8590
 
dnl documentation.
8591
 
dnl
8592
 
dnl The above copyright notice and this permission notice shall be included
8593
 
dnl in all copies or substantial portions of the Software.
8594
 
dnl
8595
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8596
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8597
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8598
 
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
8599
 
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8600
 
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8601
 
dnl OTHER DEALINGS IN THE SOFTWARE.
8602
 
dnl
8603
 
dnl Except as contained in this notice, the name of the copyright holders shall
8604
 
dnl not be used in advertising or otherwise to promote the sale, use or
8605
 
dnl other dealings in this Software without prior written authorization
8606
 
dnl from the copyright holders.
8607
 
dnl
8608
 
 
8609
 
# XORG_RELEASE_VERSION
8610
 
# --------------------
8611
 
# Adds --with/without-release-string and changes the PACKAGE and
8612
 
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION".  If
8613
 
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.  Also
8614
 
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
8615
 
 
8616
 
AC_DEFUN([XORG_RELEASE_VERSION],[
8617
 
        AC_ARG_WITH(release-version,
8618
 
                        AC_HELP_STRING([--with-release-version=STRING],
8619
 
                                [Use release version string in package name]),
8620
 
                        [RELEASE_VERSION="$withval"],
8621
 
                        [RELEASE_VERSION=""])
8622
 
        if test "x$RELEASE_VERSION" != "x"; then
8623
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
8624
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
8625
 
                AC_MSG_NOTICE([Building with package name set to $PACKAGE])
8626
 
        fi
8627
 
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
8628
 
                [`echo $PACKAGE_VERSION | cut -d . -f 1`],
8629
 
                [Major version of this package])
8630
 
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
8631
 
        if test "x$PVM" = "x"; then
8632
 
                PVM="0"
8633
 
        fi
8634
 
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
8635
 
                [$PVM],
8636
 
                [Minor version of this package])
8637
 
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
8638
 
        if test "x$PVP" = "x"; then
8639
 
                PVP="0"
8640
 
        fi
8641
 
        AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
8642
 
                [$PVP],
8643
 
                [Patch version of this package])
8644
 
])
8645
 
 
8646
 
# XORG_CHANGELOG()
8647
 
# ----------------
8648
 
# Minimum version: 1.2.0
8649
 
#
8650
 
# Defines the variable CHANGELOG_CMD as the command to generate
8651
 
# ChangeLog from git.
8652
 
#
8653
 
# Arrange that distcleancheck ignores ChangeLog left over by distclean.
8654
 
#
8655
 
AC_DEFUN([XORG_CHANGELOG], [
8656
 
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
8657
 
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
8658
 
echo 'git directory not found: installing possibly empty changelog.' >&2)"
8659
 
AC_SUBST([CHANGELOG_CMD])
8660
 
AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
8661
 
]) # XORG_CHANGELOG
8662
 
 
8663
 
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $
8664
 
dnl
8665
 
dnl Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
8666
 
dnl 
8667
 
dnl Permission to use, copy, modify, distribute, and sell this software and its
8668
 
dnl documentation for any purpose is hereby granted without fee, provided that
8669
 
dnl the above copyright notice appear in all copies and that both that
8670
 
dnl copyright notice and this permission notice appear in supporting
8671
 
dnl documentation.
8672
 
dnl 
8673
 
dnl The above copyright notice and this permission notice shall be included
8674
 
dnl in all copies or substantial portions of the Software.
8675
 
dnl 
8676
 
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8677
 
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8678
 
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8679
 
dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
8680
 
dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
8681
 
dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
8682
 
dnl OTHER DEALINGS IN THE SOFTWARE.
8683
 
dnl 
8684
 
dnl Except as contained in this notice, the name of the copyright holders shall
8685
 
dnl not be used in advertising or otherwise to promote the sale, use or
8686
 
dnl other dealings in this Software without prior written authorization
8687
 
dnl from the copyright holders.
8688
 
dnl 
8689
 
 
8690
 
# XTRANS_TCP_FLAGS()
8691
 
# ------------------
8692
 
# Find needed libraries for TCP sockets, and check for IPv6 support
8693
 
AC_DEFUN([XTRANS_TCP_FLAGS],[
8694
 
 # SVR4 hides these in libraries other than libc
8695
 
 AC_SEARCH_LIBS(socket, [socket])
8696
 
 AC_SEARCH_LIBS(gethostbyname, [nsl])
8697
 
 
8698
 
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
8699
 
 AC_ARG_ENABLE(ipv6, 
8700
 
        AC_HELP_STRING([--enable-IPv6],[Enable IPv6 support]),
8701
 
        [IPV6CONN=$enableval], 
8702
 
        [AC_CHECK_FUNC(getaddrinfo,[IPV6CONN=yes],[IPV6CONN=no])])
8703
 
 AC_MSG_CHECKING([if IPv6 support should be built])
8704
 
 if test "$IPV6CONN" = "yes"; then
8705
 
        AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
8706
 
 fi
8707
 
 AC_MSG_RESULT($IPV6CONN)
8708
 
 
8709
 
 # 4.3BSD-Reno added a new member to struct sockaddr_in
8710
 
 AC_CHECK_MEMBER([struct sockaddr_in.sin_len], 
8711
 
        AC_DEFINE([BSD44SOCKETS],1,
8712
 
            [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
8713
 
#include <sys/types.h>
8714
 
#include <sys/socket.h>
8715
 
#include <netinet/in.h>
8716
 
 ])
8717
 
 
8718
 
 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
8719
 
 AC_CHECK_TYPES([socklen_t], [], [], [
8720
 
AC_INCLUDES_DEFAULT
8721
 
#include <sys/socket.h>])
8722
 
 
8723
 
]) # XTRANS_TCP_FLAGS
8724
 
 
8725
 
# XTRANS_CONNECTION_FLAGS()
8726
 
# -------------------------
8727
 
# Standard checks for which Xtrans transports to use by the Xorg packages
8728
 
# that use Xtrans functions
8729
 
AC_DEFUN([XTRANS_CONNECTION_FLAGS],[
8730
 
 AC_REQUIRE([AC_CANONICAL_HOST])
8731
 
 AC_REQUIRE([AC_TYPE_SIGNAL])
8732
 
 [case $host_os in
8733
 
        mingw*) unixdef="no"   ;;
8734
 
        *)      unixdef="yes"  ;;
8735
 
 esac]
8736
 
 AC_ARG_ENABLE(unix-transport,
8737
 
        AC_HELP_STRING([--enable-unix-transport],[Enable UNIX domain socket transport]),
8738
 
        [UNIXCONN=$enableval], [UNIXCONN=$unixdef])
8739
 
 AC_MSG_CHECKING([if Xtrans should support UNIX socket connections])
8740
 
 if test "$UNIXCONN" = "yes"; then
8741
 
        AC_DEFINE(UNIXCONN,1,[Support UNIX socket connections])
8742
 
 fi
8743
 
 AC_MSG_RESULT($UNIXCONN)
8744
 
 AC_ARG_ENABLE(tcp-transport, 
8745
 
        AC_HELP_STRING([--enable-tcp-transport],[Enable TCP socket transport]),
8746
 
        [TCPCONN=$enableval], [TCPCONN=yes])
8747
 
 AC_MSG_CHECKING([if Xtrans should support TCP socket connections])
8748
 
 AC_MSG_RESULT($TCPCONN)
8749
 
 if test "$TCPCONN" = "yes"; then
8750
 
        AC_DEFINE(TCPCONN,1,[Support TCP socket connections])
8751
 
        XTRANS_TCP_FLAGS
8752
 
 fi
8753
 
 [case $host_os in
8754
 
        solaris*|sco*|sysv4*)   localdef="yes" ;;
8755
 
        *)                      localdef="no"  ;;
8756
 
 esac]
8757
 
 AC_ARG_ENABLE(local-transport,
8758
 
        AC_HELP_STRING([--enable-local-transport],[Enable os-specific local transport]),
8759
 
        [LOCALCONN=$enableval], [LOCALCONN=$localdef])
8760
 
 AC_MSG_CHECKING([if Xtrans should support os-specific local connections])
8761
 
 AC_MSG_RESULT($LOCALCONN)
8762
 
 if test "$LOCALCONN" = "yes"; then
8763
 
        AC_DEFINE(LOCALCONN,1,[Support os-specific local connections])
8764
 
 fi
8765
 
 
8766
 
]) # XTRANS_CONNECTION_FLAGS
8767
 
 
8768
 
 
8769
 
# XTRANS_SECURE_RPC_FLAGS()
8770
 
# -------------------------
8771
 
# Check for Secure RPC functions - must come after XTRANS_TCP_FLAGS
8772
 
# so that any necessary networking libraries are already found
8773
 
AC_DEFUN([XTRANS_SECURE_RPC_FLAGS],
8774
 
[AC_REQUIRE([XTRANS_TCP_FLAGS])
8775
 
 AC_ARG_ENABLE(secure-rpc, 
8776
 
        AC_HELP_STRING([--enable-secure-rpc],[Enable Secure RPC]),
8777
 
        [SECURE_RPC=$enableval], [SECURE_RPC="try"])
8778
 
 
8779
 
 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
8780
 
        FOUND_SECURE_RPC="no"
8781
 
        AC_CHECK_FUNCS([authdes_seccreate authdes_create],
8782
 
                        [FOUND_SECURE_RPC="yes"])
8783
 
        if test "x$FOUND_SECURE_RPC" = "xno" ; then
8784
 
                if test "x$SECURE_RPC" = "xyes" ; then
8785
 
        AC_MSG_ERROR([Secure RPC requested, but required functions not found])
8786
 
                fi      
8787
 
                SECURE_RPC="no"
8788
 
        else
8789
 
                dnl FreeBSD keeps getsecretkey in librpcsvc
8790
 
                AC_SEARCH_LIBS(getsecretkey, [rpcsvc])
8791
 
                SECURE_RPC="yes"
8792
 
        fi
8793
 
 fi
8794
 
 AC_MSG_CHECKING([if Secure RPC authentication ("SUN-DES-1") should be supported])
8795
 
 if test "x$SECURE_RPC" = "xyes" ; then
8796
 
        AC_DEFINE(SECURE_RPC, 1, [Support Secure RPC ("SUN-DES-1") authentication for X11 clients])
8797
 
 fi
8798
 
 AC_MSG_RESULT($SECURE_RPC)
8799
 
]) # XTRANS_SECURE_RPC_FLAGS
8800
 
 
8801
 
 
8802
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8803
 
#
8804
 
# This file is free software; the Free Software Foundation
8805
 
# gives unlimited permission to copy and/or distribute it,
8806
 
# with or without modifications, as long as this notice is preserved.
8807
 
 
8808
 
# AM_AUTOMAKE_VERSION(VERSION)
8809
 
# ----------------------------
8810
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8811
 
# generated from the m4 files accompanying Automake X.Y.
8812
 
# (This private macro should not be called outside this file.)
8813
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
8814
 
[am__api_version='1.10'
8815
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8816
 
dnl require some minimum version.  Point them to the right macro.
8817
 
m4_if([$1], [1.10.2], [],
8818
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8819
 
])
8820
 
 
8821
 
# _AM_AUTOCONF_VERSION(VERSION)
8822
 
# -----------------------------
8823
 
# aclocal traces this macro to find the Autoconf version.
8824
 
# This is a private macro too.  Using m4_define simplifies
8825
 
# the logic in aclocal, which can simply ignore this definition.
8826
 
m4_define([_AM_AUTOCONF_VERSION], [])
8827
 
 
8828
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
8829
 
# -------------------------------
8830
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8831
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8832
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8833
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8834
 
m4_ifndef([AC_AUTOCONF_VERSION],
8835
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8836
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8837
 
 
8838
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8839
 
 
8840
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
8841
 
#
8842
 
# This file is free software; the Free Software Foundation
8843
 
# gives unlimited permission to copy and/or distribute it,
8844
 
# with or without modifications, as long as this notice is preserved.
8845
 
 
8846
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8847
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
8848
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8849
 
#
8850
 
# Of course, Automake must honor this variable whenever it calls a
8851
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
8852
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
8853
 
# depending on how configure is run.  This is pretty annoying, since
8854
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8855
 
# source directory, any form will work fine, but in subdirectories a
8856
 
# relative path needs to be adjusted first.
8857
 
#
8858
 
# $ac_aux_dir/missing
8859
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
8860
 
# $top_srcdir/$ac_aux_dir/missing
8861
 
#    fails if $ac_aux_dir is absolute,
8862
 
#    fails when called from a subdirectory in a VPATH build with
8863
 
#          a relative $ac_aux_dir
8864
 
#
8865
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8866
 
# are both prefixed by $srcdir.  In an in-source build this is usually
8867
 
# harmless because $srcdir is `.', but things will broke when you
8868
 
# start a VPATH build or use an absolute $srcdir.
8869
 
#
8870
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8871
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
8872
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8873
 
# and then we would define $MISSING as
8874
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
8875
 
# This will work as long as MISSING is not called from configure, because
8876
 
# unfortunately $(top_srcdir) has no meaning in configure.
8877
 
# However there are other variables, like CC, which are often used in
8878
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
8879
 
#
8880
 
# Another solution, used here, is to always expand $ac_aux_dir to an
8881
 
# absolute PATH.  The drawback is that using absolute paths prevent a
8882
 
# configured tree to be moved without reconfiguration.
8883
 
 
8884
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
8885
 
[dnl Rely on autoconf to set up CDPATH properly.
8886
 
AC_PREREQ([2.50])dnl
8887
 
# expand $ac_aux_dir to an absolute path
8888
 
am_aux_dir=`cd $ac_aux_dir && pwd`
8889
 
])
8890
 
 
8891
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
8892
 
 
8893
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
8894
 
# Free Software Foundation, Inc.
8895
 
#
8896
 
# This file is free software; the Free Software Foundation
8897
 
# gives unlimited permission to copy and/or distribute it,
8898
 
# with or without modifications, as long as this notice is preserved.
8899
 
 
8900
 
# serial 8
8901
 
 
8902
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8903
 
# -------------------------------------
8904
 
# Define a conditional.
8905
 
AC_DEFUN([AM_CONDITIONAL],
8906
 
[AC_PREREQ(2.52)dnl
8907
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8908
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8909
 
AC_SUBST([$1_TRUE])dnl
8910
 
AC_SUBST([$1_FALSE])dnl
8911
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8912
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8913
 
if $2; then
8914
 
  $1_TRUE=
8915
 
  $1_FALSE='#'
8916
 
else
8917
 
  $1_TRUE='#'
8918
 
  $1_FALSE=
8919
 
fi
8920
 
AC_CONFIG_COMMANDS_PRE(
8921
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8922
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
8923
 
Usually this means the macro was only invoked conditionally.]])
8924
 
fi])])
8925
 
 
8926
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8927
 
# Free Software Foundation, Inc.
8928
 
#
8929
 
# This file is free software; the Free Software Foundation
8930
 
# gives unlimited permission to copy and/or distribute it,
8931
 
# with or without modifications, as long as this notice is preserved.
8932
 
 
8933
 
# serial 9
8934
 
 
8935
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8936
 
# written in clear, in which case automake, when reading aclocal.m4,
8937
 
# will think it sees a *use*, and therefore will trigger all it's
8938
 
# C support machinery.  Also note that it means that autoscan, seeing
8939
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8940
 
 
8941
 
 
8942
 
# _AM_DEPENDENCIES(NAME)
8943
 
# ----------------------
8944
 
# See how the compiler implements dependency checking.
8945
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
8946
 
# We try a few techniques and use that to set a single cache variable.
8947
 
#
8948
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8949
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8950
 
# dependency, and given that the user is not expected to run this macro,
8951
 
# just rely on AC_PROG_CC.
8952
 
AC_DEFUN([_AM_DEPENDENCIES],
8953
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
8954
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8955
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8956
 
AC_REQUIRE([AM_DEP_TRACK])dnl
8957
 
 
8958
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
8959
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
8960
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8961
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
8962
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
8963
 
                   [depcc="$$1"   am_compiler_list=])
8964
 
 
8965
 
AC_CACHE_CHECK([dependency style of $depcc],
8966
 
               [am_cv_$1_dependencies_compiler_type],
8967
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8968
 
  # We make a subdir and do the tests there.  Otherwise we can end up
8969
 
  # making bogus files that we don't know about and never remove.  For
8970
 
  # instance it was reported that on HP-UX the gcc test will end up
8971
 
  # making a dummy file named `D' -- because `-MD' means `put the output
8972
 
  # in D'.
8973
 
  mkdir conftest.dir
8974
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
8975
 
  # using a relative directory.
8976
 
  cp "$am_depcomp" conftest.dir
8977
 
  cd conftest.dir
8978
 
  # We will build objects and dependencies in a subdirectory because
8979
 
  # it helps to detect inapplicable dependency modes.  For instance
8980
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
8981
 
  # side effect of compilation, but ICC will put the dependencies in
8982
 
  # the current directory while Tru64 will put them in the object
8983
 
  # directory.
8984
 
  mkdir sub
8985
 
 
8986
 
  am_cv_$1_dependencies_compiler_type=none
8987
 
  if test "$am_compiler_list" = ""; then
8988
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8989
 
  fi
8990
 
  for depmode in $am_compiler_list; do
8991
 
    # Setup a source with many dependencies, because some compilers
8992
 
    # like to wrap large dependency lists on column 80 (with \), and
8993
 
    # we should not choose a depcomp mode which is confused by this.
8994
 
    #
8995
 
    # We need to recreate these files for each test, as the compiler may
8996
 
    # overwrite some of them when testing with obscure command lines.
8997
 
    # This happens at least with the AIX C compiler.
8998
 
    : > sub/conftest.c
8999
 
    for i in 1 2 3 4 5 6; do
9000
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9001
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9002
 
      # Solaris 8's {/usr,}/bin/sh.
9003
 
      touch sub/conftst$i.h
9004
 
    done
9005
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9006
 
 
9007
 
    case $depmode in
9008
 
    nosideeffect)
9009
 
      # after this tag, mechanisms are not by side-effect, so they'll
9010
 
      # only be used when explicitly requested
9011
 
      if test "x$enable_dependency_tracking" = xyes; then
9012
 
        continue
9013
 
      else
9014
 
        break
9015
 
      fi
9016
 
      ;;
9017
 
    none) break ;;
9018
 
    esac
9019
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9020
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9021
 
    # handle `-M -o', and we need to detect this.
9022
 
    if depmode=$depmode \
9023
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9024
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9025
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9026
 
         >/dev/null 2>conftest.err &&
9027
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9028
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9029
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9030
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9031
 
      # icc doesn't choke on unknown options, it will just issue warnings
9032
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9033
 
      # that says an option was ignored or not supported.
9034
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9035
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9036
 
      # The diagnosis changed in icc 8.0:
9037
 
      #   icc: Command line remark: option '-MP' not supported
9038
 
      if (grep 'ignoring option' conftest.err ||
9039
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9040
 
        am_cv_$1_dependencies_compiler_type=$depmode
9041
 
        break
9042
 
      fi
9043
 
    fi
9044
 
  done
9045
 
 
9046
 
  cd ..
9047
 
  rm -rf conftest.dir
9048
 
else
9049
 
  am_cv_$1_dependencies_compiler_type=none
9050
 
fi
9051
 
])
9052
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9053
 
AM_CONDITIONAL([am__fastdep$1], [
9054
 
  test "x$enable_dependency_tracking" != xno \
9055
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9056
 
])
9057
 
 
9058
 
 
9059
 
# AM_SET_DEPDIR
9060
 
# -------------
9061
 
# Choose a directory name for dependency files.
9062
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9063
 
AC_DEFUN([AM_SET_DEPDIR],
9064
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9065
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9066
 
])
9067
 
 
9068
 
 
9069
 
# AM_DEP_TRACK
9070
 
# ------------
9071
 
AC_DEFUN([AM_DEP_TRACK],
9072
 
[AC_ARG_ENABLE(dependency-tracking,
9073
 
[  --disable-dependency-tracking  speeds up one-time build
9074
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9075
 
if test "x$enable_dependency_tracking" != xno; then
9076
 
  am_depcomp="$ac_aux_dir/depcomp"
9077
 
  AMDEPBACKSLASH='\'
9078
 
fi
9079
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9080
 
AC_SUBST([AMDEPBACKSLASH])dnl
9081
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9082
 
])
9083
 
 
9084
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9085
 
 
9086
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9087
 
# Free Software Foundation, Inc.
9088
 
#
9089
 
# This file is free software; the Free Software Foundation
9090
 
# gives unlimited permission to copy and/or distribute it,
9091
 
# with or without modifications, as long as this notice is preserved.
9092
 
 
9093
 
#serial 4
9094
 
 
9095
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9096
 
# ------------------------------
9097
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9098
 
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9099
 
# are listed without --file.  Let's play safe and only enable the eval
9100
 
# if we detect the quoting.
9101
 
case $CONFIG_FILES in
9102
 
*\'*) eval set x "$CONFIG_FILES" ;;
9103
 
*)   set x $CONFIG_FILES ;;
9104
 
esac
9105
 
shift
9106
 
for mf
9107
 
do
9108
 
  # Strip MF so we end up with the name of the file.
9109
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
9110
 
  # Check whether this is an Automake generated Makefile or not.
9111
 
  # We used to match only the files named `Makefile.in', but
9112
 
  # some people rename them; so instead we look at the file content.
9113
 
  # Grep'ing the first line is not enough: some people post-process
9114
 
  # each Makefile.in and add a new line on top of each file to say so.
9115
 
  # Grep'ing the whole file is not good either: AIX grep has a line
9116
 
  # limit of 2048, but all sed's we know have understand at least 4000.
9117
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9118
 
    dirpart=`AS_DIRNAME("$mf")`
9119
 
  else
9120
 
    continue
9121
 
  fi
9122
 
  # Extract the definition of DEPDIR, am__include, and am__quote
9123
 
  # from the Makefile without running `make'.
9124
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9125
 
  test -z "$DEPDIR" && continue
9126
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
9127
 
  test -z "am__include" && continue
9128
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9129
 
  # When using ansi2knr, U may be empty or an underscore; expand it
9130
 
  U=`sed -n 's/^U = //p' < "$mf"`
9131
 
  # Find all dependency output files, they are included files with
9132
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
9133
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
9134
 
  # expansion.
9135
 
  for file in `sed -n "
9136
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9137
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9138
 
    # Make sure the directory exists.
9139
 
    test -f "$dirpart/$file" && continue
9140
 
    fdir=`AS_DIRNAME(["$file"])`
9141
 
    AS_MKDIR_P([$dirpart/$fdir])
9142
 
    # echo "creating $dirpart/$file"
9143
 
    echo '# dummy' > "$dirpart/$file"
9144
 
  done
9145
 
done
9146
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9147
 
 
9148
 
 
9149
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9150
 
# -----------------------------
9151
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9152
 
#
9153
 
# This code is only required when automatic dependency tracking
9154
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9155
 
# need in order to bootstrap the dependency handling code.
9156
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9157
 
[AC_CONFIG_COMMANDS([depfiles],
9158
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9159
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9160
 
])
9161
 
 
9162
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9163
 
# Free Software Foundation, Inc.
9164
 
#
9165
 
# This file is free software; the Free Software Foundation
9166
 
# gives unlimited permission to copy and/or distribute it,
9167
 
# with or without modifications, as long as this notice is preserved.
9168
 
 
9169
 
# serial 8
9170
 
 
9171
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
9172
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9173
 
 
9174
 
# Do all the work for Automake.                             -*- Autoconf -*-
9175
 
 
9176
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9177
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
9178
 
#
9179
 
# This file is free software; the Free Software Foundation
9180
 
# gives unlimited permission to copy and/or distribute it,
9181
 
# with or without modifications, as long as this notice is preserved.
9182
 
 
9183
 
# serial 13
9184
 
 
9185
 
# This macro actually does too much.  Some checks are only needed if
9186
 
# your package does certain things.  But this isn't really a big deal.
9187
 
 
9188
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9189
 
# AM_INIT_AUTOMAKE([OPTIONS])
9190
 
# -----------------------------------------------
9191
 
# The call with PACKAGE and VERSION arguments is the old style
9192
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9193
 
# and VERSION should now be passed to AC_INIT and removed from
9194
 
# the call to AM_INIT_AUTOMAKE.
9195
 
# We support both call styles for the transition.  After
9196
 
# the next Automake release, Autoconf can make the AC_INIT
9197
 
# arguments mandatory, and then we can depend on a new Autoconf
9198
 
# release and drop the old call support.
9199
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9200
 
[AC_PREREQ([2.60])dnl
9201
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9202
 
dnl the ones we care about.
9203
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9204
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9205
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9206
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9207
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9208
 
  # is not polluted with repeated "-I."
9209
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9210
 
  # test to see if srcdir already configured
9211
 
  if test -f $srcdir/config.status; then
9212
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9213
 
  fi
9214
 
fi
9215
 
 
9216
 
# test whether we have cygpath
9217
 
if test -z "$CYGPATH_W"; then
9218
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9219
 
    CYGPATH_W='cygpath -w'
9220
 
  else
9221
 
    CYGPATH_W=echo
9222
 
  fi
9223
 
fi
9224
 
AC_SUBST([CYGPATH_W])
9225
 
 
9226
 
# Define the identity of the package.
9227
 
dnl Distinguish between old-style and new-style calls.
9228
 
m4_ifval([$2],
9229
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9230
 
 AC_SUBST([PACKAGE], [$1])dnl
9231
 
 AC_SUBST([VERSION], [$2])],
9232
 
[_AM_SET_OPTIONS([$1])dnl
9233
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9234
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9235
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9236
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9237
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9238
 
 
9239
 
_AM_IF_OPTION([no-define],,
9240
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9241
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9242
 
 
9243
 
# Some tools Automake needs.
9244
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9245
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9246
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9247
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9248
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9249
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9250
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9251
 
AM_PROG_INSTALL_SH
9252
 
AM_PROG_INSTALL_STRIP
9253
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9254
 
# We need awk for the "check" target.  The system "awk" is bad on
9255
 
# some platforms.
9256
 
AC_REQUIRE([AC_PROG_AWK])dnl
9257
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9258
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9259
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9260
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9261
 
                             [_AM_PROG_TAR([v7])])])
9262
 
_AM_IF_OPTION([no-dependencies],,
9263
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9264
 
                  [_AM_DEPENDENCIES(CC)],
9265
 
                  [define([AC_PROG_CC],
9266
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9267
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9268
 
                  [_AM_DEPENDENCIES(CXX)],
9269
 
                  [define([AC_PROG_CXX],
9270
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9271
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9272
 
                  [_AM_DEPENDENCIES(OBJC)],
9273
 
                  [define([AC_PROG_OBJC],
9274
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9275
 
])
9276
 
])
9277
 
 
9278
 
 
9279
 
# When config.status generates a header, we must update the stamp-h file.
9280
 
# This file resides in the same directory as the config header
9281
 
# that is generated.  The stamp files are numbered to have different names.
9282
 
 
9283
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9284
 
# loop where config.status creates the headers, so we can generate
9285
 
# our stamp files there.
9286
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9287
 
[# Compute $1's index in $config_headers.
9288
 
_am_arg=$1
9289
 
_am_stamp_count=1
9290
 
for _am_header in $config_headers :; do
9291
 
  case $_am_header in
9292
 
    $_am_arg | $_am_arg:* )
9293
 
      break ;;
9294
 
    * )
9295
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9296
 
  esac
9297
 
done
9298
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9299
 
 
9300
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9301
 
#
9302
 
# This file is free software; the Free Software Foundation
9303
 
# gives unlimited permission to copy and/or distribute it,
9304
 
# with or without modifications, as long as this notice is preserved.
9305
 
 
9306
 
# AM_PROG_INSTALL_SH
9307
 
# ------------------
9308
 
# Define $install_sh.
9309
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9310
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9311
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
9312
 
AC_SUBST(install_sh)])
9313
 
 
9314
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9315
 
#
9316
 
# This file is free software; the Free Software Foundation
9317
 
# gives unlimited permission to copy and/or distribute it,
9318
 
# with or without modifications, as long as this notice is preserved.
9319
 
 
9320
 
# serial 2
9321
 
 
9322
 
# Check whether the underlying file-system supports filenames
9323
 
# with a leading dot.  For instance MS-DOS doesn't.
9324
 
AC_DEFUN([AM_SET_LEADING_DOT],
9325
 
[rm -rf .tst 2>/dev/null
9326
 
mkdir .tst 2>/dev/null
9327
 
if test -d .tst; then
9328
 
  am__leading_dot=.
9329
 
else
9330
 
  am__leading_dot=_
9331
 
fi
9332
 
rmdir .tst 2>/dev/null
9333
 
AC_SUBST([am__leading_dot])])
9334
 
 
9335
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9336
 
 
9337
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9338
 
#
9339
 
# This file is free software; the Free Software Foundation
9340
 
# gives unlimited permission to copy and/or distribute it,
9341
 
# with or without modifications, as long as this notice is preserved.
9342
 
 
9343
 
# serial 3
9344
 
 
9345
 
# AM_MAKE_INCLUDE()
9346
 
# -----------------
9347
 
# Check to see how make treats includes.
9348
 
AC_DEFUN([AM_MAKE_INCLUDE],
9349
 
[am_make=${MAKE-make}
9350
 
cat > confinc << 'END'
9351
 
am__doit:
9352
 
        @echo done
9353
 
.PHONY: am__doit
9354
 
END
9355
 
# If we don't find an include directive, just comment out the code.
9356
 
AC_MSG_CHECKING([for style of include used by $am_make])
9357
 
am__include="#"
9358
 
am__quote=
9359
 
_am_result=none
9360
 
# First try GNU make style include.
9361
 
echo "include confinc" > confmf
9362
 
# We grep out `Entering directory' and `Leaving directory'
9363
 
# messages which can occur if `w' ends up in MAKEFLAGS.
9364
 
# In particular we don't look at `^make:' because GNU make might
9365
 
# be invoked under some other name (usually "gmake"), in which
9366
 
# case it prints its new name instead of `make'.
9367
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9368
 
   am__include=include
9369
 
   am__quote=
9370
 
   _am_result=GNU
9371
 
fi
9372
 
# Now try BSD make style include.
9373
 
if test "$am__include" = "#"; then
9374
 
   echo '.include "confinc"' > confmf
9375
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9376
 
      am__include=.include
9377
 
      am__quote="\""
9378
 
      _am_result=BSD
9379
 
   fi
9380
 
fi
9381
 
AC_SUBST([am__include])
9382
 
AC_SUBST([am__quote])
9383
 
AC_MSG_RESULT([$_am_result])
9384
 
rm -f confinc confmf
9385
 
])
9386
 
 
9387
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9388
 
 
9389
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
9390
 
# Free Software Foundation, Inc.
9391
 
#
9392
 
# This file is free software; the Free Software Foundation
9393
 
# gives unlimited permission to copy and/or distribute it,
9394
 
# with or without modifications, as long as this notice is preserved.
9395
 
 
9396
 
# serial 5
9397
 
 
9398
 
# AM_MISSING_PROG(NAME, PROGRAM)
9399
 
# ------------------------------
9400
 
AC_DEFUN([AM_MISSING_PROG],
9401
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9402
 
$1=${$1-"${am_missing_run}$2"}
9403
 
AC_SUBST($1)])
9404
 
 
9405
 
 
9406
 
# AM_MISSING_HAS_RUN
9407
 
# ------------------
9408
 
# Define MISSING if not defined so far and test if it supports --run.
9409
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
9410
 
AC_DEFUN([AM_MISSING_HAS_RUN],
9411
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9412
 
AC_REQUIRE_AUX_FILE([missing])dnl
9413
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9414
 
# Use eval to expand $SHELL
9415
 
if eval "$MISSING --run true"; then
9416
 
  am_missing_run="$MISSING --run "
9417
 
else
9418
 
  am_missing_run=
9419
 
  AC_MSG_WARN([`missing' script is too old or missing])
9420
 
fi
9421
 
])
9422
 
 
9423
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
9424
 
#
9425
 
# This file is free software; the Free Software Foundation
9426
 
# gives unlimited permission to copy and/or distribute it,
9427
 
# with or without modifications, as long as this notice is preserved.
9428
 
 
9429
 
# AM_PROG_MKDIR_P
9430
 
# ---------------
9431
 
# Check for `mkdir -p'.
9432
 
AC_DEFUN([AM_PROG_MKDIR_P],
9433
 
[AC_PREREQ([2.60])dnl
9434
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9435
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
9436
 
dnl while keeping a definition of mkdir_p for backward compatibility.
9437
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9438
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9439
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9440
 
dnl adjustment using top_builddir (which is defined more often than
9441
 
dnl MKDIR_P).
9442
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9443
 
case $mkdir_p in
9444
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
9445
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9446
 
esac
9447
 
])
9448
 
 
9449
 
# Helper functions for option handling.                     -*- Autoconf -*-
9450
 
 
9451
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9452
 
#
9453
 
# This file is free software; the Free Software Foundation
9454
 
# gives unlimited permission to copy and/or distribute it,
9455
 
# with or without modifications, as long as this notice is preserved.
9456
 
 
9457
 
# serial 4
9458
 
 
9459
 
# _AM_MANGLE_OPTION(NAME)
9460
 
# -----------------------
9461
 
AC_DEFUN([_AM_MANGLE_OPTION],
9462
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9463
 
 
9464
 
# _AM_SET_OPTION(NAME)
9465
 
# ------------------------------
9466
 
# Set option NAME.  Presently that only means defining a flag for this option.
9467
 
AC_DEFUN([_AM_SET_OPTION],
9468
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9469
 
 
9470
 
# _AM_SET_OPTIONS(OPTIONS)
9471
 
# ----------------------------------
9472
 
# OPTIONS is a space-separated list of Automake options.
9473
 
AC_DEFUN([_AM_SET_OPTIONS],
9474
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9475
 
 
9476
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9477
 
# -------------------------------------------
9478
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9479
 
AC_DEFUN([_AM_IF_OPTION],
9480
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9481
 
 
9482
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9483
 
 
9484
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9485
 
# Free Software Foundation, Inc.
9486
 
#
9487
 
# This file is free software; the Free Software Foundation
9488
 
# gives unlimited permission to copy and/or distribute it,
9489
 
# with or without modifications, as long as this notice is preserved.
9490
 
 
9491
 
# serial 4
9492
 
 
9493
 
# AM_SANITY_CHECK
9494
 
# ---------------
9495
 
AC_DEFUN([AM_SANITY_CHECK],
9496
 
[AC_MSG_CHECKING([whether build environment is sane])
9497
 
# Just in case
9498
 
sleep 1
9499
 
echo timestamp > conftest.file
9500
 
# Do `set' in a subshell so we don't clobber the current shell's
9501
 
# arguments.  Must try -L first in case configure is actually a
9502
 
# symlink; some systems play weird games with the mod time of symlinks
9503
 
# (eg FreeBSD returns the mod time of the symlink's containing
9504
 
# directory).
9505
 
if (
9506
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9507
 
   if test "$[*]" = "X"; then
9508
 
      # -L didn't work.
9509
 
      set X `ls -t $srcdir/configure conftest.file`
9510
 
   fi
9511
 
   rm -f conftest.file
9512
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
9513
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
9514
 
 
9515
 
      # If neither matched, then we have a broken ls.  This can happen
9516
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9517
 
      # broken ls alias from the environment.  This has actually
9518
 
      # happened.  Such a system could not be considered "sane".
9519
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9520
 
alias in your environment])
9521
 
   fi
9522
 
 
9523
 
   test "$[2]" = conftest.file
9524
 
   )
9525
 
then
9526
 
   # Ok.
9527
 
   :
9528
 
else
9529
 
   AC_MSG_ERROR([newly created file is older than distributed files!
9530
 
Check your system clock])
9531
 
fi
9532
 
AC_MSG_RESULT(yes)])
9533
 
 
9534
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9535
 
#
9536
 
# This file is free software; the Free Software Foundation
9537
 
# gives unlimited permission to copy and/or distribute it,
9538
 
# with or without modifications, as long as this notice is preserved.
9539
 
 
9540
 
# AM_PROG_INSTALL_STRIP
9541
 
# ---------------------
9542
 
# One issue with vendor `install' (even GNU) is that you can't
9543
 
# specify the program used to strip binaries.  This is especially
9544
 
# annoying in cross-compiling environments, where the build's strip
9545
 
# is unlikely to handle the host's binaries.
9546
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
9547
 
# always use install-sh in `make install-strip', and initialize
9548
 
# STRIPPROG with the value of the STRIP variable (set by the user).
9549
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9550
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9551
 
# Installed binaries are usually stripped using `strip' when the user
9552
 
# run `make install-strip'.  However `strip' might not be the right
9553
 
# tool to use in cross-compilation environments, therefore Automake
9554
 
# will honor the `STRIP' environment variable to overrule this program.
9555
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9556
 
if test "$cross_compiling" != no; then
9557
 
  AC_CHECK_TOOL([STRIP], [strip], :)
9558
 
fi
9559
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9560
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9561
 
 
9562
 
# Copyright (C) 2006  Free Software Foundation, Inc.
9563
 
#
9564
 
# This file is free software; the Free Software Foundation
9565
 
# gives unlimited permission to copy and/or distribute it,
9566
 
# with or without modifications, as long as this notice is preserved.
9567
 
 
9568
 
# _AM_SUBST_NOTMAKE(VARIABLE)
9569
 
# ---------------------------
9570
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9571
 
# This macro is traced by Automake.
9572
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
9573
 
 
9574
 
# Check how to create a tarball.                            -*- Autoconf -*-
9575
 
 
9576
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
9577
 
#
9578
 
# This file is free software; the Free Software Foundation
9579
 
# gives unlimited permission to copy and/or distribute it,
9580
 
# with or without modifications, as long as this notice is preserved.
9581
 
 
9582
 
# serial 2
9583
 
 
9584
 
# _AM_PROG_TAR(FORMAT)
9585
 
# --------------------
9586
 
# Check how to create a tarball in format FORMAT.
9587
 
# FORMAT should be one of `v7', `ustar', or `pax'.
9588
 
#
9589
 
# Substitute a variable $(am__tar) that is a command
9590
 
# writing to stdout a FORMAT-tarball containing the directory
9591
 
# $tardir.
9592
 
#     tardir=directory && $(am__tar) > result.tar
9593
 
#
9594
 
# Substitute a variable $(am__untar) that extract such
9595
 
# a tarball read from stdin.
9596
 
#     $(am__untar) < result.tar
9597
 
AC_DEFUN([_AM_PROG_TAR],
9598
 
[# Always define AMTAR for backward compatibility.
9599
 
AM_MISSING_PROG([AMTAR], [tar])
9600
 
m4_if([$1], [v7],
9601
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9602
 
     [m4_case([$1], [ustar],, [pax],,
9603
 
              [m4_fatal([Unknown tar format])])
9604
 
AC_MSG_CHECKING([how to create a $1 tar archive])
9605
 
# Loop over all known methods to create a tar archive until one works.
9606
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9607
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9608
 
# Do not fold the above two line into one, because Tru64 sh and
9609
 
# Solaris sh will not grok spaces in the rhs of `-'.
9610
 
for _am_tool in $_am_tools
9611
 
do
9612
 
  case $_am_tool in
9613
 
  gnutar)
9614
 
    for _am_tar in tar gnutar gtar;
9615
 
    do
9616
 
      AM_RUN_LOG([$_am_tar --version]) && break
9617
 
    done
9618
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9619
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9620
 
    am__untar="$_am_tar -xf -"
9621
 
    ;;
9622
 
  plaintar)
9623
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
9624
 
    # ustar tarball either.
9625
 
    (tar --version) >/dev/null 2>&1 && continue
9626
 
    am__tar='tar chf - "$$tardir"'
9627
 
    am__tar_='tar chf - "$tardir"'
9628
 
    am__untar='tar xf -'
9629
 
    ;;
9630
 
  pax)
9631
 
    am__tar='pax -L -x $1 -w "$$tardir"'
9632
 
    am__tar_='pax -L -x $1 -w "$tardir"'
9633
 
    am__untar='pax -r'
9634
 
    ;;
9635
 
  cpio)
9636
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9637
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9638
 
    am__untar='cpio -i -H $1 -d'
9639
 
    ;;
9640
 
  none)
9641
 
    am__tar=false
9642
 
    am__tar_=false
9643
 
    am__untar=false
9644
 
    ;;
9645
 
  esac
9646
 
 
9647
 
  # If the value was cached, stop now.  We just wanted to have am__tar
9648
 
  # and am__untar set.
9649
 
  test -n "${am_cv_prog_tar_$1}" && break
9650
 
 
9651
 
  # tar/untar a dummy directory, and stop if the command works
9652
 
  rm -rf conftest.dir
9653
 
  mkdir conftest.dir
9654
 
  echo GrepMe > conftest.dir/file
9655
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9656
 
  rm -rf conftest.dir
9657
 
  if test -s conftest.tar; then
9658
 
    AM_RUN_LOG([$am__untar <conftest.tar])
9659
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9660
 
  fi
9661
 
done
9662
 
rm -rf conftest.dir
9663
 
 
9664
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9665
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9666
 
AC_SUBST([am__tar])
9667
 
AC_SUBST([am__untar])
9668
 
]) # _AM_PROG_TAR
9669