~ubuntu-branches/debian/stretch/vifm/stretch

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Edelhard Becker
  • Date: 2008-04-25 21:55:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080425215556-dbopd8mgbvro2y5i
Tags: 0.3a-3
make vifm build-depend on automake and libtool (Closes: #477735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006, 2007, 2008  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.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# Do all the work for Automake.                            -*- Autoconf -*-
15
 
 
16
 
# This macro actually does too much some checks are only needed if
17
 
# your package does certain things.  But this isn't really a big deal.
18
 
 
19
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
 
# Free Software Foundation, Inc.
21
 
 
22
 
# This program is free software; you can redistribute it and/or modify
23
 
# it under the terms of the GNU General Public License as published by
24
 
# the Free Software Foundation; either version 2, or (at your option)
25
 
# any later version.
26
 
 
27
 
# This program is distributed in the hope that it will be useful,
28
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 
# GNU General Public License for more details.
31
 
 
32
 
# You should have received a copy of the GNU General Public License
33
 
# along with this program; if not, write to the Free Software
34
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35
 
# 02111-1307, USA.
36
 
 
37
 
# serial 10
38
 
 
39
 
AC_PREREQ([2.54])
40
 
 
41
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
42
 
# the ones we care about.
43
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
44
 
 
45
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
 
# AM_INIT_AUTOMAKE([OPTIONS])
47
 
# -----------------------------------------------
48
 
# The call with PACKAGE and VERSION arguments is the old style
49
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
50
 
# and VERSION should now be passed to AC_INIT and removed from
51
 
# the call to AM_INIT_AUTOMAKE.
52
 
# We support both call styles for the transition.  After
53
 
# the next Automake release, Autoconf can make the AC_INIT
54
 
# arguments mandatory, and then we can depend on a new Autoconf
55
 
# release and drop the old call support.
56
 
AC_DEFUN([AM_INIT_AUTOMAKE],
57
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
59
 
# test to see if srcdir already configured
60
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
 
   test -f $srcdir/config.status; then
62
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
63
 
fi
64
 
 
65
 
# test whether we have cygpath
66
 
if test -z "$CYGPATH_W"; then
67
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
68
 
    CYGPATH_W='cygpath -w'
69
 
  else
70
 
    CYGPATH_W=echo
71
 
  fi
72
 
fi
73
 
AC_SUBST([CYGPATH_W])
74
 
 
75
 
# Define the identity of the package.
76
 
dnl Distinguish between old-style and new-style calls.
77
 
m4_ifval([$2],
78
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
 
 AC_SUBST([PACKAGE], [$1])dnl
80
 
 AC_SUBST([VERSION], [$2])],
81
 
[_AM_SET_OPTIONS([$1])dnl
82
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
84
 
 
85
 
_AM_IF_OPTION([no-define],,
86
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
88
 
 
89
 
# Some tools Automake needs.
90
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
 
AM_MISSING_PROG(AUTOCONF, autoconf)
94
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
 
AM_MISSING_PROG(AMTAR, tar)
98
 
AM_PROG_INSTALL_SH
99
 
AM_PROG_INSTALL_STRIP
100
 
# We need awk for the "check" target.  The system "awk" is bad on
101
 
# some platforms.
102
 
AC_REQUIRE([AC_PROG_AWK])dnl
103
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
105
 
 
106
 
_AM_IF_OPTION([no-dependencies],,
107
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
 
                  [_AM_DEPENDENCIES(CC)],
109
 
                  [define([AC_PROG_CC],
110
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
 
                  [_AM_DEPENDENCIES(CXX)],
113
 
                  [define([AC_PROG_CXX],
114
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
115
 
])
116
 
])
117
 
 
118
 
 
119
 
# When config.status generates a header, we must update the stamp-h file.
120
 
# This file resides in the same directory as the config header
121
 
# that is generated.  The stamp files are numbered to have different names.
122
 
 
123
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
 
# loop where config.status creates the headers, so we can generate
125
 
# our stamp files there.
126
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
 
[# Compute $1's index in $config_headers.
128
 
_am_stamp_count=1
129
 
for _am_header in $config_headers :; do
130
 
  case $_am_header in
131
 
    $1 | $1:* )
132
 
      break ;;
133
 
    * )
134
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
135
 
  esac
136
 
done
137
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
138
 
 
139
 
# Copyright 2002  Free Software Foundation, Inc.
140
 
 
141
 
# This program is free software; you can redistribute it and/or modify
142
 
# it under the terms of the GNU General Public License as published by
143
 
# the Free Software Foundation; either version 2, or (at your option)
144
 
# any later version.
145
 
 
146
 
# This program is distributed in the hope that it will be useful,
147
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149
 
# GNU General Public License for more details.
150
 
 
151
 
# You should have received a copy of the GNU General Public License
152
 
# along with this program; if not, write to the Free Software
153
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
154
 
 
155
 
# AM_AUTOMAKE_VERSION(VERSION)
156
 
# ----------------------------
157
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
 
# generated from the m4 files accompanying Automake X.Y.
159
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
160
 
 
161
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
 
# -------------------------------
163
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
167
 
 
168
 
# Helper functions for option handling.                    -*- Autoconf -*-
169
 
 
170
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
171
 
 
172
 
# This program is free software; you can redistribute it and/or modify
173
 
# it under the terms of the GNU General Public License as published by
174
 
# the Free Software Foundation; either version 2, or (at your option)
175
 
# any later version.
176
 
 
177
 
# This program is distributed in the hope that it will be useful,
178
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
180
 
# GNU General Public License for more details.
181
 
 
182
 
# You should have received a copy of the GNU General Public License
183
 
# along with this program; if not, write to the Free Software
184
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
185
 
# 02111-1307, USA.
186
 
 
187
 
# serial 2
188
 
 
189
 
# _AM_MANGLE_OPTION(NAME)
190
 
# -----------------------
191
 
AC_DEFUN([_AM_MANGLE_OPTION],
192
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
193
 
 
194
 
# _AM_SET_OPTION(NAME)
195
 
# ------------------------------
196
 
# Set option NAME.  Presently that only means defining a flag for this option.
197
 
AC_DEFUN([_AM_SET_OPTION],
198
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
199
 
 
200
 
# _AM_SET_OPTIONS(OPTIONS)
201
 
# ----------------------------------
202
 
# OPTIONS is a space-separated list of Automake options.
203
 
AC_DEFUN([_AM_SET_OPTIONS],
204
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
205
 
 
206
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
 
# -------------------------------------------
208
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
 
AC_DEFUN([_AM_IF_OPTION],
210
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
211
 
 
212
 
#
213
 
# Check to make sure that the build environment is sane.
214
 
#
215
 
 
216
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
217
 
 
218
 
# This program is free software; you can redistribute it and/or modify
219
 
# it under the terms of the GNU General Public License as published by
220
 
# the Free Software Foundation; either version 2, or (at your option)
221
 
# any later version.
222
 
 
223
 
# This program is distributed in the hope that it will be useful,
224
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
226
 
# GNU General Public License for more details.
227
 
 
228
 
# You should have received a copy of the GNU General Public License
229
 
# along with this program; if not, write to the Free Software
230
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
231
 
# 02111-1307, USA.
232
 
 
233
 
# serial 3
234
 
 
235
 
# AM_SANITY_CHECK
236
 
# ---------------
237
 
AC_DEFUN([AM_SANITY_CHECK],
238
 
[AC_MSG_CHECKING([whether build environment is sane])
239
 
# Just in case
240
 
sleep 1
241
 
echo timestamp > conftest.file
242
 
# Do `set' in a subshell so we don't clobber the current shell's
243
 
# arguments.  Must try -L first in case configure is actually a
244
 
# symlink; some systems play weird games with the mod time of symlinks
245
 
# (eg FreeBSD returns the mod time of the symlink's containing
246
 
# directory).
247
 
if (
248
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
 
   if test "$[*]" = "X"; then
250
 
      # -L didn't work.
251
 
      set X `ls -t $srcdir/configure conftest.file`
252
 
   fi
253
 
   rm -f conftest.file
254
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
255
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
256
 
 
257
 
      # If neither matched, then we have a broken ls.  This can happen
258
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
259
 
      # broken ls alias from the environment.  This has actually
260
 
      # happened.  Such a system could not be considered "sane".
261
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
262
 
alias in your environment])
263
 
   fi
264
 
 
265
 
   test "$[2]" = conftest.file
266
 
   )
267
 
then
268
 
   # Ok.
269
 
   :
270
 
else
271
 
   AC_MSG_ERROR([newly created file is older than distributed files!
272
 
Check your system clock])
273
 
fi
274
 
AC_MSG_RESULT(yes)])
275
 
 
276
 
#  -*- Autoconf -*-
277
 
 
278
 
 
279
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
280
 
 
281
 
# This program is free software; you can redistribute it and/or modify
282
 
# it under the terms of the GNU General Public License as published by
283
 
# the Free Software Foundation; either version 2, or (at your option)
284
 
# any later version.
285
 
 
286
 
# This program is distributed in the hope that it will be useful,
287
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
289
 
# GNU General Public License for more details.
290
 
 
291
 
# You should have received a copy of the GNU General Public License
292
 
# along with this program; if not, write to the Free Software
293
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
294
 
# 02111-1307, USA.
295
 
 
296
 
# serial 3
297
 
 
298
 
# AM_MISSING_PROG(NAME, PROGRAM)
299
 
# ------------------------------
300
 
AC_DEFUN([AM_MISSING_PROG],
301
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
 
$1=${$1-"${am_missing_run}$2"}
303
 
AC_SUBST($1)])
304
 
 
305
 
 
306
 
# AM_MISSING_HAS_RUN
307
 
# ------------------
308
 
# Define MISSING if not defined so far and test if it supports --run.
309
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
 
AC_DEFUN([AM_MISSING_HAS_RUN],
311
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
 
# Use eval to expand $SHELL
314
 
if eval "$MISSING --run true"; then
315
 
  am_missing_run="$MISSING --run "
316
 
else
317
 
  am_missing_run=
318
 
  AC_MSG_WARN([`missing' script is too old or missing])
319
 
fi
320
 
])
321
 
 
322
 
# AM_AUX_DIR_EXPAND
323
 
 
324
 
# Copyright 2001 Free Software Foundation, Inc.
325
 
 
326
 
# This program is free software; you can redistribute it and/or modify
327
 
# it under the terms of the GNU General Public License as published by
328
 
# the Free Software Foundation; either version 2, or (at your option)
329
 
# any later version.
330
 
 
331
 
# This program is distributed in the hope that it will be useful,
332
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
334
 
# GNU General Public License for more details.
335
 
 
336
 
# You should have received a copy of the GNU General Public License
337
 
# along with this program; if not, write to the Free Software
338
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
339
 
# 02111-1307, USA.
340
 
 
341
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
343
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
344
 
#
345
 
# Of course, Automake must honor this variable whenever it calls a
346
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
347
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
348
 
# depending on how configure is run.  This is pretty annoying, since
349
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
350
 
# source directory, any form will work fine, but in subdirectories a
351
 
# relative path needs to be adjusted first.
352
 
#
353
 
# $ac_aux_dir/missing
354
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
355
 
# $top_srcdir/$ac_aux_dir/missing
356
 
#    fails if $ac_aux_dir is absolute,
357
 
#    fails when called from a subdirectory in a VPATH build with
358
 
#          a relative $ac_aux_dir
359
 
#
360
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
361
 
# are both prefixed by $srcdir.  In an in-source build this is usually
362
 
# harmless because $srcdir is `.', but things will broke when you
363
 
# start a VPATH build or use an absolute $srcdir.
364
 
#
365
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
366
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
367
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
368
 
# and then we would define $MISSING as
369
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
370
 
# This will work as long as MISSING is not called from configure, because
371
 
# unfortunately $(top_srcdir) has no meaning in configure.
372
 
# However there are other variables, like CC, which are often used in
373
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
374
 
#
375
 
# Another solution, used here, is to always expand $ac_aux_dir to an
376
 
# absolute PATH.  The drawback is that using absolute paths prevent a
377
 
# configured tree to be moved without reconfiguration.
378
 
 
379
 
# Rely on autoconf to set up CDPATH properly.
380
 
AC_PREREQ([2.50])
381
 
 
382
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
383
 
# expand $ac_aux_dir to an absolute path
384
 
am_aux_dir=`cd $ac_aux_dir && pwd`
385
 
])
386
 
 
387
 
# AM_PROG_INSTALL_SH
388
 
# ------------------
389
 
# Define $install_sh.
390
 
 
391
 
# Copyright 2001 Free Software Foundation, Inc.
392
 
 
393
 
# This program is free software; you can redistribute it and/or modify
394
 
# it under the terms of the GNU General Public License as published by
395
 
# the Free Software Foundation; either version 2, or (at your option)
396
 
# any later version.
397
 
 
398
 
# This program is distributed in the hope that it will be useful,
399
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
401
 
# GNU General Public License for more details.
402
 
 
403
 
# You should have received a copy of the GNU General Public License
404
 
# along with this program; if not, write to the Free Software
405
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
406
 
# 02111-1307, USA.
407
 
 
408
 
AC_DEFUN([AM_PROG_INSTALL_SH],
409
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
 
AC_SUBST(install_sh)])
412
 
 
413
 
# AM_PROG_INSTALL_STRIP
414
 
 
415
 
# Copyright 2001 Free Software Foundation, Inc.
416
 
 
417
 
# This program is free software; you can redistribute it and/or modify
418
 
# it under the terms of the GNU General Public License as published by
419
 
# the Free Software Foundation; either version 2, or (at your option)
420
 
# any later version.
421
 
 
422
 
# This program is distributed in the hope that it will be useful,
423
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
425
 
# GNU General Public License for more details.
426
 
 
427
 
# You should have received a copy of the GNU General Public License
428
 
# along with this program; if not, write to the Free Software
429
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
430
 
# 02111-1307, USA.
431
 
 
432
 
# One issue with vendor `install' (even GNU) is that you can't
433
 
# specify the program used to strip binaries.  This is especially
434
 
# annoying in cross-compiling environments, where the build's strip
435
 
# is unlikely to handle the host's binaries.
436
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
 
# always use install-sh in `make install-strip', and initialize
438
 
# STRIPPROG with the value of the STRIP variable (set by the user).
439
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
 
# Installed binaries are usually stripped using `strip' when the user
442
 
# run `make install-strip'.  However `strip' might not be the right
443
 
# tool to use in cross-compilation environments, therefore Automake
444
 
# will honor the `STRIP' environment variable to overrule this program.
445
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
 
if test "$cross_compiling" != no; then
447
 
  AC_CHECK_TOOL([STRIP], [strip], :)
448
 
fi
449
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
451
 
 
452
 
#                                                          -*- Autoconf -*-
453
 
# Copyright (C) 2003  Free Software Foundation, Inc.
454
 
 
455
 
# This program is free software; you can redistribute it and/or modify
456
 
# it under the terms of the GNU General Public License as published by
457
 
# the Free Software Foundation; either version 2, or (at your option)
458
 
# any later version.
459
 
 
460
 
# This program is distributed in the hope that it will be useful,
461
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
463
 
# GNU General Public License for more details.
464
 
 
465
 
# You should have received a copy of the GNU General Public License
466
 
# along with this program; if not, write to the Free Software
467
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
468
 
# 02111-1307, USA.
469
 
 
470
 
# serial 1
471
 
 
472
 
# Check whether the underlying file-system supports filenames
473
 
# with a leading dot.  For instance MS-DOS doesn't.
474
 
AC_DEFUN([AM_SET_LEADING_DOT],
475
 
[rm -rf .tst 2>/dev/null
476
 
mkdir .tst 2>/dev/null
477
 
if test -d .tst; then
478
 
  am__leading_dot=.
479
 
else
480
 
  am__leading_dot=_
481
 
fi
482
 
rmdir .tst 2>/dev/null
483
 
AC_SUBST([am__leading_dot])])
484
 
 
485
 
# serial 5                                              -*- Autoconf -*-
486
 
 
487
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
488
 
 
489
 
# This program is free software; you can redistribute it and/or modify
490
 
# it under the terms of the GNU General Public License as published by
491
 
# the Free Software Foundation; either version 2, or (at your option)
492
 
# any later version.
493
 
 
494
 
# This program is distributed in the hope that it will be useful,
495
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
497
 
# GNU General Public License for more details.
498
 
 
499
 
# You should have received a copy of the GNU General Public License
500
 
# along with this program; if not, write to the Free Software
501
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
502
 
# 02111-1307, USA.
503
 
 
504
 
 
505
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
 
# written in clear, in which case automake, when reading aclocal.m4,
507
 
# will think it sees a *use*, and therefore will trigger all it's
508
 
# C support machinery.  Also note that it means that autoscan, seeing
509
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
510
 
 
511
 
 
512
 
 
513
 
# _AM_DEPENDENCIES(NAME)
514
 
# ----------------------
515
 
# See how the compiler implements dependency checking.
516
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
517
 
# We try a few techniques and use that to set a single cache variable.
518
 
#
519
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
520
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
521
 
# dependency, and given that the user is not expected to run this macro,
522
 
# just rely on AC_PROG_CC.
523
 
AC_DEFUN([_AM_DEPENDENCIES],
524
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
525
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
526
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
527
 
AC_REQUIRE([AM_DEP_TRACK])dnl
528
 
 
529
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
530
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
531
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
532
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
533
 
                   [depcc="$$1"   am_compiler_list=])
534
 
 
535
 
AC_CACHE_CHECK([dependency style of $depcc],
536
 
               [am_cv_$1_dependencies_compiler_type],
537
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
538
 
  # We make a subdir and do the tests there.  Otherwise we can end up
539
 
  # making bogus files that we don't know about and never remove.  For
540
 
  # instance it was reported that on HP-UX the gcc test will end up
541
 
  # making a dummy file named `D' -- because `-MD' means `put the output
542
 
  # in D'.
543
 
  mkdir conftest.dir
544
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
545
 
  # using a relative directory.
546
 
  cp "$am_depcomp" conftest.dir
547
 
  cd conftest.dir
548
 
  # We will build objects and dependencies in a subdirectory because
549
 
  # it helps to detect inapplicable dependency modes.  For instance
550
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
551
 
  # side effect of compilation, but ICC will put the dependencies in
552
 
  # the current directory while Tru64 will put them in the object
553
 
  # directory.
554
 
  mkdir sub
555
 
 
556
 
  am_cv_$1_dependencies_compiler_type=none
557
 
  if test "$am_compiler_list" = ""; then
558
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
559
 
  fi
560
 
  for depmode in $am_compiler_list; do
561
 
    # Setup a source with many dependencies, because some compilers
562
 
    # like to wrap large dependency lists on column 80 (with \), and
563
 
    # we should not choose a depcomp mode which is confused by this.
564
 
    #
565
 
    # We need to recreate these files for each test, as the compiler may
566
 
    # overwrite some of them when testing with obscure command lines.
567
 
    # This happens at least with the AIX C compiler.
568
 
    : > sub/conftest.c
569
 
    for i in 1 2 3 4 5 6; do
570
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
571
 
      : > sub/conftst$i.h
572
 
    done
573
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
574
 
 
575
 
    case $depmode in
576
 
    nosideeffect)
577
 
      # after this tag, mechanisms are not by side-effect, so they'll
578
 
      # only be used when explicitly requested
579
 
      if test "x$enable_dependency_tracking" = xyes; then
580
 
        continue
581
 
      else
582
 
        break
583
 
      fi
584
 
      ;;
585
 
    none) break ;;
586
 
    esac
587
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
588
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
589
 
    # handle `-M -o', and we need to detect this.
590
 
    if depmode=$depmode \
591
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
592
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
594
 
         >/dev/null 2>conftest.err &&
595
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
597
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
 
      # icc doesn't choke on unknown options, it will just issue warnings
599
 
      # (even with -Werror).  So we grep stderr for any message
600
 
      # that says an option was ignored.
601
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
602
 
        am_cv_$1_dependencies_compiler_type=$depmode
603
 
        break
604
 
      fi
605
 
    fi
606
 
  done
607
 
 
608
 
  cd ..
609
 
  rm -rf conftest.dir
610
 
else
611
 
  am_cv_$1_dependencies_compiler_type=none
612
 
fi
613
 
])
614
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
615
 
AM_CONDITIONAL([am__fastdep$1], [
616
 
  test "x$enable_dependency_tracking" != xno \
617
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
618
 
])
619
 
 
620
 
 
621
 
# AM_SET_DEPDIR
622
 
# -------------
623
 
# Choose a directory name for dependency files.
624
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
625
 
AC_DEFUN([AM_SET_DEPDIR],
626
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
628
 
])
629
 
 
630
 
 
631
 
# AM_DEP_TRACK
632
 
# ------------
633
 
AC_DEFUN([AM_DEP_TRACK],
634
 
[AC_ARG_ENABLE(dependency-tracking,
635
 
[  --disable-dependency-tracking Speeds up one-time builds
636
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
637
 
if test "x$enable_dependency_tracking" != xno; then
638
 
  am_depcomp="$ac_aux_dir/depcomp"
639
 
  AMDEPBACKSLASH='\'
640
 
fi
641
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
 
AC_SUBST([AMDEPBACKSLASH])
643
 
])
644
 
 
645
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
646
 
 
647
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
648
 
 
649
 
# This program is free software; you can redistribute it and/or modify
650
 
# it under the terms of the GNU General Public License as published by
651
 
# the Free Software Foundation; either version 2, or (at your option)
652
 
# any later version.
653
 
 
654
 
# This program is distributed in the hope that it will be useful,
655
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
657
 
# GNU General Public License for more details.
658
 
 
659
 
# You should have received a copy of the GNU General Public License
660
 
# along with this program; if not, write to the Free Software
661
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
662
 
# 02111-1307, USA.
663
 
 
664
 
#serial 2
665
 
 
666
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
 
# ------------------------------
668
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
 
[for mf in $CONFIG_FILES; do
670
 
  # Strip MF so we end up with the name of the file.
671
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
672
 
  # Check whether this is an Automake generated Makefile or not.
673
 
  # We used to match only the files named `Makefile.in', but
674
 
  # some people rename them; so instead we look at the file content.
675
 
  # Grep'ing the first line is not enough: some people post-process
676
 
  # each Makefile.in and add a new line on top of each file to say so.
677
 
  # So let's grep whole file.
678
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
 
    dirpart=`AS_DIRNAME("$mf")`
680
 
  else
681
 
    continue
682
 
  fi
683
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
 
  # Extract the definition of DEP_FILES from the Makefile without
685
 
  # running `make'.
686
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
 
  test -z "$DEPDIR" && continue
688
 
  # When using ansi2knr, U may be empty or an underscore; expand it
689
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
690
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
 
  # We invoke sed twice because it is the simplest approach to
692
 
  # changing $(DEPDIR) to its actual value in the expansion.
693
 
  for file in `sed -n -e '
694
 
    /^DEP_FILES = .*\\\\$/ {
695
 
      s/^DEP_FILES = //
696
 
      :loop
697
 
        s/\\\\$//
698
 
        p
699
 
        n
700
 
        /\\\\$/ b loop
701
 
      p
702
 
    }
703
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
 
    # Make sure the directory exists.
706
 
    test -f "$dirpart/$file" && continue
707
 
    fdir=`AS_DIRNAME(["$file"])`
708
 
    AS_MKDIR_P([$dirpart/$fdir])
709
 
    # echo "creating $dirpart/$file"
710
 
    echo '# dummy' > "$dirpart/$file"
711
 
  done
712
 
done
713
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
714
 
 
715
 
 
716
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
717
 
# -----------------------------
718
 
# This macro should only be invoked once -- use via AC_REQUIRE.
719
 
#
720
 
# This code is only required when automatic dependency tracking
721
 
# is enabled.  FIXME.  This creates each `.P' file that we will
722
 
# need in order to bootstrap the dependency handling code.
723
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
724
 
[AC_CONFIG_COMMANDS([depfiles],
725
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
726
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
727
 
])
728
 
 
729
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
730
 
 
731
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
732
 
 
733
 
# This program is free software; you can redistribute it and/or modify
734
 
# it under the terms of the GNU General Public License as published by
735
 
# the Free Software Foundation; either version 2, or (at your option)
736
 
# any later version.
737
 
 
738
 
# This program is distributed in the hope that it will be useful,
739
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
741
 
# GNU General Public License for more details.
742
 
 
743
 
# You should have received a copy of the GNU General Public License
744
 
# along with this program; if not, write to the Free Software
745
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
746
 
# 02111-1307, USA.
747
 
 
748
 
# serial 2
749
 
 
750
 
# AM_MAKE_INCLUDE()
751
 
# -----------------
752
 
# Check to see how make treats includes.
753
 
AC_DEFUN([AM_MAKE_INCLUDE],
754
 
[am_make=${MAKE-make}
755
 
cat > confinc << 'END'
756
 
am__doit:
757
 
        @echo done
758
 
.PHONY: am__doit
759
 
END
760
 
# If we don't find an include directive, just comment out the code.
761
 
AC_MSG_CHECKING([for style of include used by $am_make])
762
 
am__include="#"
763
 
am__quote=
764
 
_am_result=none
765
 
# First try GNU make style include.
766
 
echo "include confinc" > confmf
767
 
# We grep out `Entering directory' and `Leaving directory'
768
 
# messages which can occur if `w' ends up in MAKEFLAGS.
769
 
# In particular we don't look at `^make:' because GNU make might
770
 
# be invoked under some other name (usually "gmake"), in which
771
 
# case it prints its new name instead of `make'.
772
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
773
 
   am__include=include
774
 
   am__quote=
775
 
   _am_result=GNU
776
 
fi
777
 
# Now try BSD make style include.
778
 
if test "$am__include" = "#"; then
779
 
   echo '.include "confinc"' > confmf
780
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
781
 
      am__include=.include
782
 
      am__quote="\""
783
 
      _am_result=BSD
784
 
   fi
785
 
fi
786
 
AC_SUBST([am__include])
787
 
AC_SUBST([am__quote])
788
 
AC_MSG_RESULT([$_am_result])
789
 
rm -f confinc confmf
790
 
])
791
 
 
792
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
793
 
 
794
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
795
 
 
796
 
# This program is free software; you can redistribute it and/or modify
797
 
# it under the terms of the GNU General Public License as published by
798
 
# the Free Software Foundation; either version 2, or (at your option)
799
 
# any later version.
800
 
 
801
 
# This program is distributed in the hope that it will be useful,
802
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
804
 
# GNU General Public License for more details.
805
 
 
806
 
# You should have received a copy of the GNU General Public License
807
 
# along with this program; if not, write to the Free Software
808
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
809
 
# 02111-1307, USA.
810
 
 
811
 
# serial 5
812
 
 
813
 
AC_PREREQ(2.52)
814
 
 
815
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
 
# -------------------------------------
817
 
# Define a conditional.
818
 
AC_DEFUN([AM_CONDITIONAL],
819
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
820
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
821
 
AC_SUBST([$1_TRUE])
822
 
AC_SUBST([$1_FALSE])
823
 
if $2; then
824
 
  $1_TRUE=
825
 
  $1_FALSE='#'
826
 
else
827
 
  $1_TRUE='#'
828
 
  $1_FALSE=
829
 
fi
830
 
AC_CONFIG_COMMANDS_PRE(
831
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
 
  AC_MSG_ERROR([conditional "$1" was never defined.
833
 
Usually this means the macro was only invoked conditionally.])
834
 
fi])])
835
 
 
836
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
837
 
 
838
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
839
 
 
840
 
# This program is free software; you can redistribute it and/or modify
841
 
# it under the terms of the GNU General Public License as published by
842
 
# the Free Software Foundation; either version 2, or (at your option)
843
 
# any later version.
844
 
 
845
 
# This program is distributed in the hope that it will be useful,
846
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
848
 
# GNU General Public License for more details.
849
 
 
850
 
# You should have received a copy of the GNU General Public License
851
 
# along with this program; if not, write to the Free Software
852
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
853
 
# 02111-1307, USA.
854
 
 
855
 
AC_PREREQ([2.52])
856
 
 
857
 
# serial 6
858
 
 
859
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
860
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
861
 
 
862
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
863
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
864
 
dnl This file is free software; the Free Software Foundation
865
 
dnl gives unlimited permission to copy and/or distribute it,
866
 
dnl with or without modifications, as long as this notice is preserved.
867
 
 
868
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
869
 
 
870
 
# This test replaces the one in autoconf.
871
 
# Currently this macro should have the same name as the autoconf macro
872
 
# because gettext's gettext.m4 (distributed in the automake package)
873
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
874
 
# give these diagnostics:
875
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
876
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
877
 
 
878
 
undefine([AC_ISC_POSIX])
879
 
 
880
 
AC_DEFUN([AC_ISC_POSIX],
881
 
  [
882
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
883
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
884
 
  ]
885
 
)
886
 
 
887
 
 
888
 
# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
889
 
 
890
 
# This program is free software; you can redistribute it and/or modify
891
 
# it under the terms of the GNU General Public License as published by
892
 
# the Free Software Foundation; either version 2, or (at your option)
893
 
# any later version.
894
 
 
895
 
# This program is distributed in the hope that it will be useful,
896
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
897
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
898
 
# GNU General Public License for more details.
899
 
 
900
 
# You should have received a copy of the GNU General Public License
901
 
# along with this program; if not, write to the Free Software
902
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
903
 
# 02111-1307, USA.
904
 
 
905
 
# serial 2
906
 
 
907
 
# @defmac AC_PROG_CC_STDC
908
 
# @maindex PROG_CC_STDC
909
 
# @ovindex CC
910
 
# If the C compiler in not in ANSI C mode by default, try to add an option
911
 
# to output variable @code{CC} to make it so.  This macro tries various
912
 
# options that select ANSI C on some system or another.  It considers the
913
 
# compiler to be in ANSI C mode if it handles function prototypes correctly.
914
 
#
915
 
# If you use this macro, you should check after calling it whether the C
916
 
# compiler has been set to accept ANSI C; if not, the shell variable
917
 
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
918
 
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
919
 
# program @code{ansi2knr}, which comes with Ghostscript.
920
 
# @end defmac
921
 
 
922
 
AC_DEFUN([AM_PROG_CC_STDC],
923
 
[AC_REQUIRE([AC_PROG_CC])
924
 
AC_BEFORE([$0], [AC_C_INLINE])
925
 
AC_BEFORE([$0], [AC_C_CONST])
926
 
dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
927
 
dnl a magic option to avoid problems with ANSI preprocessor commands
928
 
dnl like #elif.
929
 
dnl FIXME: can't do this because then AC_AIX won't work due to a
930
 
dnl circular dependency.
931
 
dnl AC_BEFORE([$0], [AC_PROG_CPP])
932
 
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
933
 
AC_CACHE_VAL(am_cv_prog_cc_stdc,
934
 
[am_cv_prog_cc_stdc=no
935
 
ac_save_CC="$CC"
936
 
# Don't try gcc -ansi; that turns off useful extensions and
937
 
# breaks some systems' header files.
938
 
# AIX                   -qlanglvl=ansi
939
 
# Ultrix and OSF/1      -std1
940
 
# HP-UX 10.20 and later -Ae
941
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
942
 
# SVR4                  -Xc -D__EXTENSIONS__
943
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
944
 
do
945
 
  CC="$ac_save_CC $ac_arg"
946
 
  AC_TRY_COMPILE(
947
 
[#include <stdarg.h>
948
 
#include <stdio.h>
949
 
#include <sys/types.h>
950
 
#include <sys/stat.h>
951
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
952
 
struct buf { int x; };
953
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
954
 
static char *e (p, i)
955
 
     char **p;
956
 
     int i;
957
 
{
958
 
  return p[i];
959
 
}
960
 
static char *f (char * (*g) (char **, int), char **p, ...)
961
 
{
962
 
  char *s;
963
 
  va_list v;
964
 
  va_start (v,p);
965
 
  s = g (p, va_arg (v,int));
966
 
  va_end (v);
967
 
  return s;
968
 
}
969
 
int test (int i, double x);
970
 
struct s1 {int (*f) (int a);};
971
 
struct s2 {int (*f) (double a);};
972
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
973
 
int argc;
974
 
char **argv;
975
 
], [
976
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
977
 
],
978
 
[am_cv_prog_cc_stdc="$ac_arg"; break])
979
 
done
980
 
CC="$ac_save_CC"
981
 
])
982
 
if test -z "$am_cv_prog_cc_stdc"; then
983
 
  AC_MSG_RESULT([none needed])
984
 
else
985
 
  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
986
 
fi
987
 
case "x$am_cv_prog_cc_stdc" in
988
 
  x|xno) ;;
989
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
990
 
esac
991
 
])
992
 
 
993
 
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
994
21
 
995
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
996
23
 
997
 
# serial 47 AC_PROG_LIBTOOL
998
 
# Debian $Rev: 214 $
 
24
# serial 52 Debian 1.5.26-3 AC_PROG_LIBTOOL
999
25
 
1000
26
 
1001
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1083
109
AC_REQUIRE([AC_OBJEXT])dnl
1084
110
AC_REQUIRE([AC_EXEEXT])dnl
1085
111
dnl
1086
 
 
1087
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
1088
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1089
114
AC_LIBTOOL_OBJDIR
1105
130
 
1106
131
# Sed substitution that helps us do robust quoting.  It backslashifies
1107
132
# metacharacters that are still active within double-quoted strings.
1108
 
Xsed='sed -e s/^X//'
 
133
Xsed='sed -e 1s/^X//'
1109
134
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1110
135
 
1111
136
# Same as above, but do not quote variable references.
1125
150
default_ofile=libtool
1126
151
can_build_shared=yes
1127
152
 
1128
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
153
# All known linkers require a `.a' archive for static linking (except MSVC,
1129
154
# which needs '.lib').
1130
155
libext=a
1131
156
ltmain="$ac_aux_dir/ltmain.sh"
1145
170
test -z "$AS" && AS=as
1146
171
test -z "$CC" && CC=cc
1147
172
test -z "$LTCC" && LTCC=$CC
 
173
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1148
174
test -z "$DLLTOOL" && DLLTOOL=dlltool
1149
175
test -z "$LD" && LD=ld
1150
176
test -z "$LN_S" && LN_S="ln -s"
1157
183
test -z "$ac_objext" && ac_objext=o
1158
184
 
1159
185
# Determine commands to create old-style static archives.
1160
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
186
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1161
187
old_postinstall_cmds='chmod 644 $oldlib'
1162
188
old_postuninstall_cmds=
1163
189
 
1164
190
if test -n "$RANLIB"; then
1165
191
  case $host_os in
1166
192
  openbsd*)
1167
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
193
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1168
194
    ;;
1169
195
  *)
1170
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
196
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1171
197
    ;;
1172
198
  esac
1173
199
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1174
200
fi
1175
201
 
 
202
_LT_CC_BASENAME([$compiler])
 
203
 
1176
204
# Only perform the check for file, if the check method requires it
1177
205
case $deplibs_check_method in
1178
206
file_magic*)
1182
210
  ;;
1183
211
esac
1184
212
 
 
213
_LT_REQUIRED_DARWIN_CHECKS
 
214
 
1185
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1186
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1187
217
enable_win32_dll=yes, enable_win32_dll=no)
1213
243
# If no C compiler was specified, use CC.
1214
244
LTCC=${LTCC-"$CC"}
1215
245
 
 
246
# If no C compiler flags were specified, use CFLAGS.
 
247
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
248
 
1216
249
# Allow CC to be a program name with arguments.
1217
250
compiler=$CC
1218
251
])# _LT_AC_SYS_COMPILER
1219
252
 
1220
253
 
 
254
# _LT_CC_BASENAME(CC)
 
255
# -------------------
 
256
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
257
AC_DEFUN([_LT_CC_BASENAME],
 
258
[for cc_temp in $1""; do
 
259
  case $cc_temp in
 
260
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
261
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
262
    \-*) ;;
 
263
    *) break;;
 
264
  esac
 
265
done
 
266
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
267
])
 
268
 
 
269
 
 
270
# _LT_COMPILER_BOILERPLATE
 
271
# ------------------------
 
272
# Check for compiler boilerplate output or warnings with
 
273
# the simple compiler test code.
 
274
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
275
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
276
ac_outfile=conftest.$ac_objext
 
277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
279
_lt_compiler_boilerplate=`cat conftest.err`
 
280
$rm conftest*
 
281
])# _LT_COMPILER_BOILERPLATE
 
282
 
 
283
 
 
284
# _LT_LINKER_BOILERPLATE
 
285
# ----------------------
 
286
# Check for linker boilerplate output or warnings with
 
287
# the simple link test code.
 
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
290
ac_outfile=conftest.$ac_objext
 
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
293
_lt_linker_boilerplate=`cat conftest.err`
 
294
$rm -r conftest*
 
295
])# _LT_LINKER_BOILERPLATE
 
296
 
 
297
# _LT_REQUIRED_DARWIN_CHECKS
 
298
# --------------------------
 
299
# Check for some things on darwin
 
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
301
  case $host_os in
 
302
    rhapsody* | darwin*)
 
303
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
304
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
305
 
 
306
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
307
      [lt_cv_apple_cc_single_mod=no
 
308
      if test -z "${LT_MULTI_MODULE}"; then
 
309
   # By default we will add the -single_module flag. You can override
 
310
   # by either setting the environment variable LT_MULTI_MODULE
 
311
   # non-empty at configure time, or by adding -multi_module to the
 
312
   # link flags.
 
313
   echo "int foo(void){return 1;}" > conftest.c
 
314
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
315
     -dynamiclib ${wl}-single_module conftest.c
 
316
   if test -f libconftest.dylib; then
 
317
     lt_cv_apple_cc_single_mod=yes
 
318
     rm -rf libconftest.dylib*
 
319
   fi
 
320
   rm conftest.c
 
321
      fi])
 
322
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
323
      [lt_cv_ld_exported_symbols_list],
 
324
      [lt_cv_ld_exported_symbols_list=no
 
325
      save_LDFLAGS=$LDFLAGS
 
326
      echo "_main" > conftest.sym
 
327
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
328
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
329
   [lt_cv_ld_exported_symbols_list=yes],
 
330
   [lt_cv_ld_exported_symbols_list=no])
 
331
   LDFLAGS="$save_LDFLAGS"
 
332
    ])
 
333
    case $host_os in
 
334
    rhapsody* | darwin1.[[0123]])
 
335
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
336
    darwin1.*)
 
337
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
338
    darwin*)
 
339
      # if running on 10.5 or later, the deployment target defaults
 
340
      # to the OS version, if on x86, and 10.4, the deployment
 
341
      # target defaults to 10.4. Don't you love it?
 
342
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
343
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
344
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
345
   10.[[012]]*)
 
346
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
347
   10.*)
 
348
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
349
      esac
 
350
    ;;
 
351
  esac
 
352
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
353
      _lt_dar_single_mod='$single_module'
 
354
    fi
 
355
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
356
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
357
    else
 
358
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
359
    fi
 
360
    if test "$DSYMUTIL" != ":"; then
 
361
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
362
    else
 
363
      _lt_dsymutil=
 
364
    fi
 
365
    ;;
 
366
  esac
 
367
])
 
368
 
1221
369
# _LT_AC_SYS_LIBPATH_AIX
1222
370
# ----------------------
1223
371
# Links a minimal program and checks the executable
1227
375
# If we don't find anything, use the default library path according
1228
376
# to the aix ld manual.
1229
377
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1230
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1231
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1232
 
}'`
 
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
380
lt_aix_libpath_sed='
 
381
    /Import File Strings/,/^$/ {
 
382
        /^0/ {
 
383
            s/^0  *\(.*\)$/\1/
 
384
            p
 
385
        }
 
386
    }'
 
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1233
388
# Check for a 64-bit object if we didn't find anything.
1234
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1235
 
}'`; fi],[])
 
389
if test -z "$aix_libpath"; then
 
390
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
391
fi],[])
1236
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1237
393
])# _LT_AC_SYS_LIBPATH_AIX
1238
394
 
1290
446
 
1291
447
# The HP-UX ksh and POSIX shell print the target directory to stdout
1292
448
# if CDPATH is set.
1293
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
449
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1294
450
 
1295
451
if test -z "$ECHO"; then
1296
452
if test "X${echo_test_string+set}" != Xset; then
1297
453
# find a string as large as possible, as long as the shell can cope with it
1298
454
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1299
455
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1300
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1301
 
       echo_test_string="`eval $cmd`" &&
 
456
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
457
       echo_test_string=`eval $cmd` &&
1302
458
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1303
459
    then
1304
460
      break
1463
619
  rm -rf conftest*
1464
620
  ;;
1465
621
 
1466
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
622
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
623
s390*-*linux*|sparc*-*linux*)
1467
624
  # Find out which ABI we are using.
1468
625
  echo 'int i;' > conftest.$ac_ext
1469
626
  if AC_TRY_EVAL(ac_compile); then
1470
 
    case "`/usr/bin/file conftest.o`" in
 
627
    case `/usr/bin/file conftest.o` in
1471
628
    *32-bit*)
1472
629
      case $host in
 
630
        x86_64-*kfreebsd*-gnu)
 
631
          LD="${LD-ld} -m elf_i386_fbsd"
 
632
          ;;
1473
633
        x86_64-*linux*)
1474
634
          LD="${LD-ld} -m elf_i386"
1475
635
          ;;
1486
646
      ;;
1487
647
    *64-bit*)
1488
648
      case $host in
 
649
        x86_64-*kfreebsd*-gnu)
 
650
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
651
          ;;
1489
652
        x86_64-*linux*)
1490
653
          LD="${LD-ld} -m elf_x86_64"
1491
654
          ;;
1518
681
    CFLAGS="$SAVE_CFLAGS"
1519
682
  fi
1520
683
  ;;
 
684
sparc*-*solaris*)
 
685
  # Find out which ABI we are using.
 
686
  echo 'int i;' > conftest.$ac_ext
 
687
  if AC_TRY_EVAL(ac_compile); then
 
688
    case `/usr/bin/file conftest.o` in
 
689
    *64-bit*)
 
690
      case $lt_cv_prog_gnu_ld in
 
691
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
692
      *)
 
693
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
694
          LD="${LD-ld} -64"
 
695
        fi
 
696
        ;;
 
697
      esac
 
698
      ;;
 
699
    esac
 
700
  fi
 
701
  rm -rf conftest*
 
702
  ;;
 
703
 
1521
704
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1522
705
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1523
706
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1541
724
AC_CACHE_CHECK([$1], [$2],
1542
725
  [$2=no
1543
726
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1544
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
727
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1545
728
   lt_compiler_flag="$3"
1546
729
   # Insert the option either (1) after the last *FLAGS variable, or
1547
730
   # (2) before a word containing "conftest.", or (3) at the end.
1549
732
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1550
733
   # The option is referenced via a variable to avoid confusing sed.
1551
734
   lt_compile=`echo "$ac_compile" | $SED \
1552
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
735
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1553
736
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1554
737
   -e 's:$: $lt_compiler_flag:'`
1555
738
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1559
742
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1560
743
   if (exit $ac_status) && test -s "$ac_outfile"; then
1561
744
     # The compiler can only warn and ignore the option if not recognized
1562
 
     # So say no if there are warnings
1563
 
     if test ! -s conftest.err; then
 
745
     # So say no if there are warnings other than the usual output.
 
746
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
747
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
748
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1564
749
       $2=yes
1565
750
     fi
1566
751
   fi
1580
765
# ------------------------------------------------------------
1581
766
# Check whether the given compiler option works
1582
767
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1583
 
[AC_CACHE_CHECK([$1], [$2],
 
768
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
769
AC_CACHE_CHECK([$1], [$2],
1584
770
  [$2=no
1585
771
   save_LDFLAGS="$LDFLAGS"
1586
772
   LDFLAGS="$LDFLAGS $3"
1587
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
773
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1588
774
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1589
 
     # The compiler can only warn and ignore the option if not recognized
 
775
     # The linker can only warn and ignore the option if not recognized
1590
776
     # So say no if there are warnings
1591
777
     if test -s conftest.err; then
1592
778
       # Append any errors to the config.log.
1593
779
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
780
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
781
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
782
       if diff conftest.exp conftest.er2 >/dev/null; then
 
783
         $2=yes
 
784
       fi
1594
785
     else
1595
786
       $2=yes
1596
787
     fi
1597
788
   fi
1598
 
   $rm conftest*
 
789
   $rm -r conftest*
1599
790
   LDFLAGS="$save_LDFLAGS"
1600
791
])
1601
792
 
1649
840
    lt_cv_sys_max_cmd_len=8192;
1650
841
    ;;
1651
842
 
1652
 
 *)
1653
 
    # If test is not a shell built-in, we'll probably end up computing a
1654
 
    # maximum length that is only half of the actual maximum length, but
1655
 
    # we can't tell.
1656
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
843
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
844
    # This has been around since 386BSD, at least.  Likely further.
 
845
    if test -x /sbin/sysctl; then
 
846
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
847
    elif test -x /usr/sbin/sysctl; then
 
848
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
849
    else
 
850
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
851
    fi
 
852
    # And add a safety zone
 
853
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
854
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
855
    ;;
 
856
 
 
857
  interix*)
 
858
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
859
    lt_cv_sys_max_cmd_len=196608
 
860
    ;;
 
861
 
 
862
  osf*)
 
863
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
864
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
865
    # nice to cause kernel panics so lets avoid the loop below.
 
866
    # First set a reasonable default.
 
867
    lt_cv_sys_max_cmd_len=16384
 
868
    #
 
869
    if test -x /sbin/sysconfig; then
 
870
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
871
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
872
      esac
 
873
    fi
 
874
    ;;
 
875
  sco3.2v5*)
 
876
    lt_cv_sys_max_cmd_len=102400
 
877
    ;;
 
878
  sysv5* | sco5v6* | sysv4.2uw2*)
 
879
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
880
    if test -n "$kargmax"; then
 
881
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
882
    else
 
883
      lt_cv_sys_max_cmd_len=32768
 
884
    fi
 
885
    ;;
 
886
  *)
 
887
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
888
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
891
    else
 
892
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
893
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1657
894
               = "XX$teststring") >/dev/null 2>&1 &&
1658
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1659
 
            lt_cv_sys_max_cmd_len=$new_result &&
1660
 
            test $i != 17 # 1/2 MB should be enough
1661
 
    do
1662
 
      i=`expr $i + 1`
1663
 
      teststring=$teststring$teststring
1664
 
    done
1665
 
    teststring=
1666
 
    # Add a significant safety factor because C++ compilers can tack on massive
1667
 
    # amounts of additional arguments before passing them to the linker.
1668
 
    # It appears as though 1/2 is a usable value.
1669
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
895
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
896
              lt_cv_sys_max_cmd_len=$new_result &&
 
897
              test $i != 17 # 1/2 MB should be enough
 
898
      do
 
899
        i=`expr $i + 1`
 
900
        teststring=$teststring$teststring
 
901
      done
 
902
      teststring=
 
903
      # Add a significant safety factor because C++ compilers can tack on massive
 
904
      # amounts of additional arguments before passing them to the linker.
 
905
      # It appears as though 1/2 is a usable value.
 
906
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
907
    fi
1670
908
    ;;
1671
909
  esac
1672
910
])
1679
917
 
1680
918
 
1681
919
# _LT_AC_CHECK_DLFCN
1682
 
# --------------------
 
920
# ------------------
1683
921
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1684
922
[AC_CHECK_HEADERS(dlfcn.h)dnl
1685
923
])# _LT_AC_CHECK_DLFCN
1687
925
 
1688
926
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1689
927
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1690
 
# ------------------------------------------------------------------
 
928
# ---------------------------------------------------------------------
1691
929
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1692
930
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1693
931
if test "$cross_compiling" = yes; then :
1753
991
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1754
992
      /* dlclose (self); */
1755
993
    }
 
994
  else
 
995
    puts (dlerror ());
1756
996
 
1757
997
    exit (status);
1758
998
}]
1759
999
EOF
1760
1000
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1761
 
    (./conftest; exit; ) 2>/dev/null
 
1001
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1762
1002
    lt_status=$?
1763
1003
    case x$lt_status in
1764
1004
      x$lt_dlno_uscore) $1 ;;
1765
1005
      x$lt_dlneed_uscore) $2 ;;
1766
 
      x$lt_unknown|x*) $3 ;;
 
1006
      x$lt_dlunknown|x*) $3 ;;
1767
1007
    esac
1768
1008
  else :
1769
1009
    # compilation failed
1775
1015
 
1776
1016
 
1777
1017
# AC_LIBTOOL_DLOPEN_SELF
1778
 
# -------------------
 
1018
# ----------------------
1779
1019
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1780
1020
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1781
1021
if test "x$enable_dlopen" != xyes; then
1817
1057
    AC_CHECK_FUNC([shl_load],
1818
1058
          [lt_cv_dlopen="shl_load"],
1819
1059
      [AC_CHECK_LIB([dld], [shl_load],
1820
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1060
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1821
1061
        [AC_CHECK_FUNC([dlopen],
1822
1062
              [lt_cv_dlopen="dlopen"],
1823
1063
          [AC_CHECK_LIB([dl], [dlopen],
1825
1065
            [AC_CHECK_LIB([svld], [dlopen],
1826
1066
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1827
1067
              [AC_CHECK_LIB([dld], [dld_link],
1828
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1068
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1829
1069
              ])
1830
1070
            ])
1831
1071
          ])
1846
1086
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1847
1087
 
1848
1088
    save_LDFLAGS="$LDFLAGS"
1849
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1089
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1850
1090
 
1851
1091
    save_LIBS="$LIBS"
1852
1092
    LIBS="$lt_cv_dlopen_libs $LIBS"
1859
1099
    ])
1860
1100
 
1861
1101
    if test "x$lt_cv_dlopen_self" = xyes; then
1862
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1102
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1863
1103
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1864
1104
          lt_cv_dlopen_self_static, [dnl
1865
1105
          _LT_AC_TRY_DLOPEN_SELF(
1891
1131
# ---------------------------------
1892
1132
# Check to see if options -c and -o are simultaneously supported by compiler
1893
1133
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1894
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1134
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1135
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1895
1136
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1896
1137
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1897
1138
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1899
1140
   mkdir conftest
1900
1141
   cd conftest
1901
1142
   mkdir out
1902
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1143
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1903
1144
 
1904
1145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1905
1146
   # Insert the option either (1) after the last *FLAGS variable, or
1907
1148
   # Note that $ac_compile itself does not contain backslashes and begins
1908
1149
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1909
1150
   lt_compile=`echo "$ac_compile" | $SED \
1910
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1151
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1911
1152
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1912
1153
   -e 's:$: $lt_compiler_flag:'`
1913
1154
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1919
1160
   then
1920
1161
     # The compiler can only warn and ignore the option if not recognized
1921
1162
     # So say no if there are warnings
1922
 
     if test ! -s out/conftest.err; then
 
1163
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1164
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1165
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1923
1166
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1924
1167
     fi
1925
1168
   fi
1926
 
   chmod u+w .
 
1169
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1927
1170
   $rm conftest*
1928
1171
   # SGI C++ compiler will create directory out/ii_files/ for
1929
1172
   # template instantiation
1987
1230
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1988
1231
_LT_AC_TAGVAR(hardcode_action, $1)=
1989
1232
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1990
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1991
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1233
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1234
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1992
1235
 
1993
1236
  # We can hardcode non-existant directories.
1994
1237
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2037
1280
   darwin*)
2038
1281
       if test -n "$STRIP" ; then
2039
1282
         striplib="$STRIP -x"
 
1283
         old_striplib="$STRIP -S"
2040
1284
         AC_MSG_RESULT([yes])
2041
1285
       else
2042
1286
  AC_MSG_RESULT([no])
2054
1298
# -----------------------------
2055
1299
# PORTME Fill in your ld.so characteristics
2056
1300
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2057
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1301
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1302
AC_MSG_CHECKING([dynamic linker characteristics])
2058
1303
library_names_spec=
2059
1304
libname_spec='lib$name'
2060
1305
soname_spec=
2068
1313
version_type=none
2069
1314
dynamic_linker="$host_os ld.so"
2070
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1316
m4_if($1,[],[
2071
1317
if test "$GCC" = yes; then
2072
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2073
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1318
  case $host_os in
 
1319
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1320
    *) lt_awk_arg="/^libraries:/" ;;
 
1321
  esac
 
1322
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1323
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2074
1324
    # if the path contains ";" then we assume it to be the separator
2075
1325
    # otherwise default to the standard path separator (i.e. ":") - it is
2076
1326
    # assumed that no part of a normal pathname contains ";" but that should
2077
1327
    # okay in the real world where ";" in dirpaths is itself problematic.
2078
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1328
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2079
1329
  else
2080
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1330
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2081
1331
  fi
 
1332
  # Ok, now we have the path, separated by spaces, we can step through it
 
1333
  # and add multilib dir if necessary.
 
1334
  lt_tmp_lt_search_path_spec=
 
1335
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1336
  for lt_sys_path in $lt_search_path_spec; do
 
1337
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1338
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1339
    else
 
1340
      test -d "$lt_sys_path" && \
 
1341
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1342
    fi
 
1343
  done
 
1344
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1345
BEGIN {RS=" "; FS="/|\n";} {
 
1346
  lt_foo="";
 
1347
  lt_count=0;
 
1348
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1349
    if ($lt_i != "" && $lt_i != ".") {
 
1350
      if ($lt_i == "..") {
 
1351
        lt_count++;
 
1352
      } else {
 
1353
        if (lt_count == 0) {
 
1354
          lt_foo="/" $lt_i lt_foo;
 
1355
        } else {
 
1356
          lt_count--;
 
1357
        }
 
1358
      }
 
1359
    }
 
1360
  }
 
1361
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1362
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1363
}'`
 
1364
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2082
1365
else
2083
1366
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2084
 
fi
 
1367
fi])
2085
1368
need_lib_prefix=unknown
2086
1369
hardcode_into_libs=no
2087
1370
 
2099
1382
  soname_spec='${libname}${release}${shared_ext}$major'
2100
1383
  ;;
2101
1384
 
2102
 
aix4* | aix5*)
 
1385
aix[[4-9]]*)
2103
1386
  version_type=linux
2104
1387
  need_lib_prefix=no
2105
1388
  need_version=no
2155
1438
  shlibpath_var=LIBRARY_PATH
2156
1439
  ;;
2157
1440
 
2158
 
bsdi4*)
 
1441
bsdi[[45]]*)
2159
1442
  version_type=linux
2160
1443
  need_version=no
2161
1444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2183
1466
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2184
1467
      dldir=$destdir/`dirname \$dlpath`~
2185
1468
      test -d \$dldir || mkdir -p \$dldir~
2186
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1469
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1470
      chmod a+x \$dldir/$dlname'
2187
1471
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2188
1472
      dlpath=$dir/\$dldll~
2189
1473
       $rm \$dlpath'
2213
1497
      ;;
2214
1498
    pw32*)
2215
1499
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2216
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1500
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2217
1501
      ;;
2218
1502
    esac
2219
1503
    ;;
2236
1520
  soname_spec='${libname}${release}${major}$shared_ext'
2237
1521
  shlibpath_overrides_runpath=yes
2238
1522
  shlibpath_var=DYLD_LIBRARY_PATH
2239
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2240
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2241
 
  if test "$GCC" = yes; then
2242
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2243
 
  else
2244
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2245
 
  fi
 
1523
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
1524
  m4_if([$1], [],[
 
1525
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2246
1526
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2247
1527
  ;;
2248
1528
 
2259
1539
  dynamic_linker=no
2260
1540
  ;;
2261
1541
 
2262
 
kfreebsd*-gnu)
2263
 
  version_type=linux
2264
 
  need_lib_prefix=no
2265
 
  need_version=no
2266
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2267
 
  soname_spec='${libname}${release}${shared_ext}$major'
2268
 
  shlibpath_var=LD_LIBRARY_PATH
2269
 
  shlibpath_overrides_runpath=no
2270
 
  hardcode_into_libs=yes
2271
 
  dynamic_linker='GNU ld.so'
2272
 
  ;;
2273
 
 
2274
 
freebsd*)
2275
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1542
freebsd* | dragonfly*)
 
1543
  # DragonFly does not have aout.  When/if they implement a new
 
1544
  # versioning mechanism, adjust this.
 
1545
  if test -x /usr/bin/objformat; then
 
1546
    objformat=`/usr/bin/objformat`
 
1547
  else
 
1548
    case $host_os in
 
1549
    freebsd[[123]]*) objformat=aout ;;
 
1550
    *) objformat=elf ;;
 
1551
    esac
 
1552
  fi
2276
1553
  version_type=freebsd-$objformat
2277
1554
  case $version_type in
2278
1555
    freebsd-elf*)
2290
1567
  freebsd2*)
2291
1568
    shlibpath_overrides_runpath=yes
2292
1569
    ;;
2293
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1570
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2294
1571
    shlibpath_overrides_runpath=yes
2295
1572
    hardcode_into_libs=yes
2296
1573
    ;;
2297
 
  *) # from 3.2 on
 
1574
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1575
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2298
1576
    shlibpath_overrides_runpath=no
2299
1577
    hardcode_into_libs=yes
2300
1578
    ;;
 
1579
  *) # from 4.6 on, and DragonFly
 
1580
    shlibpath_overrides_runpath=yes
 
1581
    hardcode_into_libs=yes
 
1582
    ;;
2301
1583
  esac
2302
1584
  ;;
2303
1585
 
2317
1599
  version_type=sunos
2318
1600
  need_lib_prefix=no
2319
1601
  need_version=no
2320
 
  case "$host_cpu" in
 
1602
  case $host_cpu in
2321
1603
  ia64*)
2322
1604
    shrext_cmds='.so'
2323
1605
    hardcode_into_libs=yes
2357
1639
  postinstall_cmds='chmod 555 $lib'
2358
1640
  ;;
2359
1641
 
 
1642
interix[[3-9]]*)
 
1643
  version_type=linux
 
1644
  need_lib_prefix=no
 
1645
  need_version=no
 
1646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1647
  soname_spec='${libname}${release}${shared_ext}$major'
 
1648
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1649
  shlibpath_var=LD_LIBRARY_PATH
 
1650
  shlibpath_overrides_runpath=no
 
1651
  hardcode_into_libs=yes
 
1652
  ;;
 
1653
 
2360
1654
irix5* | irix6* | nonstopux*)
2361
1655
  case $host_os in
2362
1656
    nonstopux*) version_type=nonstopux ;;
2400
1694
  ;;
2401
1695
 
2402
1696
# This must be Linux ELF.
2403
 
linux*)
 
1697
linux* | k*bsd*-gnu)
2404
1698
  version_type=linux
2405
1699
  need_lib_prefix=no
2406
1700
  need_version=no
2416
1710
 
2417
1711
  # Append ld.so.conf contents to the search path
2418
1712
  if test -f /etc/ld.so.conf; then
2419
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1713
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2420
1714
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2421
1715
  fi
2422
1716
 
2441
1735
  dynamic_linker='NetBSD ld.elf_so'
2442
1736
  ;;
2443
1737
 
2444
 
knetbsd*-gnu)
2445
 
  version_type=linux
2446
 
  need_lib_prefix=no
2447
 
  need_version=no
2448
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2449
 
  soname_spec='${libname}${release}${shared_ext}$major'
2450
 
  shlibpath_var=LD_LIBRARY_PATH
2451
 
  shlibpath_overrides_runpath=no
2452
 
  hardcode_into_libs=yes
2453
 
  dynamic_linker='GNU ld.so'
2454
 
  ;;
2455
 
 
2456
1738
netbsd*)
2457
1739
  version_type=sunos
2458
1740
  need_lib_prefix=no
2490
1772
 
2491
1773
openbsd*)
2492
1774
  version_type=sunos
 
1775
  sys_lib_dlsearch_path_spec="/usr/lib"
2493
1776
  need_lib_prefix=no
2494
 
  need_version=yes
 
1777
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1778
  case $host_os in
 
1779
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1780
    *)                         need_version=no  ;;
 
1781
  esac
2495
1782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2496
1783
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2497
1784
  shlibpath_var=LD_LIBRARY_PATH
2529
1816
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2530
1817
  ;;
2531
1818
 
2532
 
sco3.2v5*)
2533
 
  version_type=osf
2534
 
  soname_spec='${libname}${release}${shared_ext}$major'
2535
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2536
 
  shlibpath_var=LD_LIBRARY_PATH
 
1819
rdos*)
 
1820
  dynamic_linker=no
2537
1821
  ;;
2538
1822
 
2539
1823
solaris*)
2561
1845
  need_version=yes
2562
1846
  ;;
2563
1847
 
2564
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1848
sysv4 | sysv4.3*)
2565
1849
  version_type=linux
2566
1850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2567
1851
  soname_spec='${libname}${release}${shared_ext}$major'
2594
1878
  fi
2595
1879
  ;;
2596
1880
 
 
1881
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1882
  version_type=freebsd-elf
 
1883
  need_lib_prefix=no
 
1884
  need_version=no
 
1885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1886
  soname_spec='${libname}${release}${shared_ext}$major'
 
1887
  shlibpath_var=LD_LIBRARY_PATH
 
1888
  hardcode_into_libs=yes
 
1889
  if test "$with_gnu_ld" = yes; then
 
1890
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1891
    shlibpath_overrides_runpath=no
 
1892
  else
 
1893
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1894
    shlibpath_overrides_runpath=yes
 
1895
    case $host_os in
 
1896
      sco3.2v5*)
 
1897
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1898
        ;;
 
1899
    esac
 
1900
  fi
 
1901
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1902
  ;;
 
1903
 
2597
1904
uts4*)
2598
1905
  version_type=linux
2599
1906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2607
1914
esac
2608
1915
AC_MSG_RESULT([$dynamic_linker])
2609
1916
test "$dynamic_linker" = no && can_build_shared=no
 
1917
 
 
1918
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
1919
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
1920
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
1921
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
1922
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
1923
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
1924
 
 
1925
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1926
if test "$GCC" = yes; then
 
1927
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1928
fi
2610
1929
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2611
1930
 
2612
1931
 
2613
1932
# _LT_AC_TAGCONFIG
2614
1933
# ----------------
2615
1934
AC_DEFUN([_LT_AC_TAGCONFIG],
2616
 
[AC_ARG_WITH([tags],
 
1935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1936
AC_ARG_WITH([tags],
2617
1937
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2618
1938
        [include additional configurations @<:@automatic@:>@])],
2619
1939
    [tagnames="$withval"])
2631
1951
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2632
1952
    fi
2633
1953
  fi
 
1954
  if test -z "$LTCFLAGS"; then
 
1955
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1956
  fi
2634
1957
 
2635
1958
  # Extract list of available tagged configurations in $ofile.
2636
1959
  # Note that this assumes the entire list is on one line.
2657
1980
 
2658
1981
      case $tagname in
2659
1982
      CXX)
2660
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1983
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1984
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1985
            (test "X$CXX" != "Xg++"))) ; then
2661
1986
          AC_LIBTOOL_LANG_CXX_CONFIG
2662
1987
        else
2663
1988
          tagname=""
2719
2044
 
2720
2045
# AC_LIBTOOL_WIN32_DLL
2721
2046
# --------------------
2722
 
# declare package support for building win32 dll's
 
2047
# declare package support for building win32 DLLs
2723
2048
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2724
2049
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2725
2050
])# AC_LIBTOOL_WIN32_DLL
2757
2082
 
2758
2083
# AC_DISABLE_SHARED
2759
2084
# -----------------
2760
 
#- set the default shared flag to --disable-shared
 
2085
# set the default shared flag to --disable-shared
2761
2086
AC_DEFUN([AC_DISABLE_SHARED],
2762
2087
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2763
2088
AC_ENABLE_SHARED(no)
2869
2194
 
2870
2195
# AC_PATH_TOOL_PREFIX
2871
2196
# -------------------
2872
 
# find a file program which can recognise shared library
 
2197
# find a file program which can recognize shared library
2873
2198
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2874
2199
[AC_REQUIRE([AC_PROG_EGREP])dnl
2875
2200
AC_MSG_CHECKING([for $1])
2893
2218
      if test -n "$file_magic_test_file"; then
2894
2219
        case $deplibs_check_method in
2895
2220
        "file_magic "*)
2896
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2221
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2897
2222
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2898
2223
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2899
2224
            $EGREP "$file_magic_regex" > /dev/null; then
2932
2257
 
2933
2258
# AC_PATH_MAGIC
2934
2259
# -------------
2935
 
# find a file program which can recognise a shared library
 
2260
# find a file program which can recognize a shared library
2936
2261
AC_DEFUN([AC_PATH_MAGIC],
2937
2262
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2938
2263
if test -z "$lt_cv_path_MAGIC_CMD"; then
3003
2328
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3004
2329
      lt_cv_path_LD="$ac_dir/$ac_prog"
3005
2330
      # Check to see if the program is GNU ld.  I'd rather use --version,
3006
 
      # but apparently some GNU ld's only accept -v.
 
2331
      # but apparently some variants of GNU ld only accept -v.
3007
2332
      # Break only if it was the GNU/non-GNU ld that we prefer.
3008
2333
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3009
2334
      *GNU* | *'with BFD'*)
3035
2360
AC_DEFUN([AC_PROG_LD_GNU],
3036
2361
[AC_REQUIRE([AC_PROG_EGREP])dnl
3037
2362
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3038
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2363
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3039
2364
case `$LD -v 2>&1 </dev/null` in
3040
2365
*GNU* | *'with BFD'*)
3041
2366
  lt_cv_prog_gnu_ld=yes
3062
2387
*) reload_flag=" $reload_flag" ;;
3063
2388
esac
3064
2389
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2390
case $host_os in
 
2391
  darwin*)
 
2392
    if test "$GCC" = yes; then
 
2393
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2394
    else
 
2395
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2396
    fi
 
2397
    ;;
 
2398
esac
3065
2399
])# AC_PROG_LD_RELOAD_FLAG
3066
2400
 
3067
2401
 
3070
2404
# how to check for library dependencies
3071
2405
#  -- PORTME fill in with the dynamic library characteristics
3072
2406
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3073
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2407
[AC_CACHE_CHECK([how to recognize dependent libraries],
3074
2408
lt_cv_deplibs_check_method,
3075
2409
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3076
2410
lt_cv_file_magic_test_file=
3087
2421
# whether `pass_all' will *always* work, you probably want this one.
3088
2422
 
3089
2423
case $host_os in
3090
 
aix4* | aix5*)
 
2424
aix[[4-9]]*)
3091
2425
  lt_cv_deplibs_check_method=pass_all
3092
2426
  ;;
3093
2427
 
3095
2429
  lt_cv_deplibs_check_method=pass_all
3096
2430
  ;;
3097
2431
 
3098
 
bsdi4*)
 
2432
bsdi[[45]]*)
3099
2433
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3100
2434
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3101
2435
  lt_cv_file_magic_test_file=/shlib/libc.so
3109
2443
 
3110
2444
mingw* | pw32*)
3111
2445
  # Base MSYS/MinGW do not provide the 'file' command needed by
3112
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3113
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3114
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2446
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2447
  # unless we find 'file', for example because we are cross-compiling.
 
2448
  if ( file / ) >/dev/null 2>&1; then
 
2449
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2450
    lt_cv_file_magic_cmd='func_win32_libid'
 
2451
  else
 
2452
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2453
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2454
  fi
3115
2455
  ;;
3116
2456
 
3117
2457
darwin* | rhapsody*)
3118
2458
  lt_cv_deplibs_check_method=pass_all
3119
2459
  ;;
3120
2460
 
3121
 
freebsd* | kfreebsd*-gnu)
 
2461
freebsd* | dragonfly*)
3122
2462
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3123
2463
    case $host_cpu in
3124
2464
    i*86 )
3125
2465
      # Not sure whether the presence of OpenBSD here was a mistake.
3126
2466
      # Let's accept both of them until this is cleared up.
3127
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2467
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3128
2468
      lt_cv_file_magic_cmd=/usr/bin/file
3129
2469
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3130
2470
      ;;
3140
2480
 
3141
2481
hpux10.20* | hpux11*)
3142
2482
  lt_cv_file_magic_cmd=/usr/bin/file
3143
 
  case "$host_cpu" in
 
2483
  case $host_cpu in
3144
2484
  ia64*)
3145
2485
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3146
2486
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3156
2496
  esac
3157
2497
  ;;
3158
2498
 
 
2499
interix[[3-9]]*)
 
2500
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2501
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2502
  ;;
 
2503
 
3159
2504
irix5* | irix6* | nonstopux*)
3160
2505
  case $LD in
3161
2506
  *-32|*"-32 ") libmagic=32-bit;;
3167
2512
  ;;
3168
2513
 
3169
2514
# This must be Linux ELF.
3170
 
linux*)
 
2515
linux* | k*bsd*-gnu)
3171
2516
  lt_cv_deplibs_check_method=pass_all
3172
2517
  ;;
3173
2518
 
3174
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2519
netbsd* | netbsdelf*-gnu)
3175
2520
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3176
2521
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3177
2522
  else
3190
2535
  ;;
3191
2536
 
3192
2537
openbsd*)
3193
 
  lt_cv_file_magic_cmd=/usr/bin/file
3194
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3195
2538
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3196
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2539
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3197
2540
  else
3198
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2541
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3199
2542
  fi
3200
2543
  ;;
3201
2544
 
3203
2546
  lt_cv_deplibs_check_method=pass_all
3204
2547
  ;;
3205
2548
 
3206
 
sco3.2v5*)
 
2549
rdos*)
3207
2550
  lt_cv_deplibs_check_method=pass_all
3208
2551
  ;;
3209
2552
 
3211
2554
  lt_cv_deplibs_check_method=pass_all
3212
2555
  ;;
3213
2556
 
3214
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2557
sysv4 | sysv4.3*)
3215
2558
  case $host_vendor in
3216
2559
  motorola)
3217
2560
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3232
2575
  siemens)
3233
2576
    lt_cv_deplibs_check_method=pass_all
3234
2577
    ;;
 
2578
  pc)
 
2579
    lt_cv_deplibs_check_method=pass_all
 
2580
    ;;
3235
2581
  esac
3236
2582
  ;;
3237
2583
 
3238
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2584
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3239
2585
  lt_cv_deplibs_check_method=pass_all
3240
2586
  ;;
3241
2587
esac
3255
2601
  # Let the user override the test.
3256
2602
  lt_cv_path_NM="$NM"
3257
2603
else
3258
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3259
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3260
 
    IFS="$lt_save_ifs"
3261
 
    test -z "$ac_dir" && ac_dir=.
3262
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3263
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3264
 
      # Check to see if the nm accepts a BSD-compat flag.
3265
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3266
 
      #   nm: unknown option "B" ignored
3267
 
      # Tru64's nm complains that /dev/null is an invalid object file
3268
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3269
 
      */dev/null* | *'Invalid file or object type'*)
3270
 
        lt_cv_path_NM="$tmp_nm -B"
3271
 
        break
3272
 
        ;;
3273
 
      *)
3274
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3275
 
        */dev/null*)
3276
 
          lt_cv_path_NM="$tmp_nm -p"
 
2604
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2605
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
2606
    lt_nm_to_check="$lt_nm_to_check nm"
 
2607
  fi
 
2608
  for lt_tmp_nm in $lt_nm_to_check; do
 
2609
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2610
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2611
      IFS="$lt_save_ifs"
 
2612
      test -z "$ac_dir" && ac_dir=.
 
2613
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2614
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2615
        # Check to see if the nm accepts a BSD-compat flag.
 
2616
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2617
        #   nm: unknown option "B" ignored
 
2618
        # Tru64's nm complains that /dev/null is an invalid object file
 
2619
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2620
        */dev/null* | *'Invalid file or object type'*)
 
2621
          lt_cv_path_NM="$tmp_nm -B"
3277
2622
          break
3278
2623
          ;;
3279
2624
        *)
3280
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3281
 
          continue # so that we can try to find one that supports BSD flags
 
2625
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2626
          */dev/null*)
 
2627
            lt_cv_path_NM="$tmp_nm -p"
 
2628
            break
 
2629
            ;;
 
2630
          *)
 
2631
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2632
            continue # so that we can try to find one that supports BSD flags
 
2633
            ;;
 
2634
          esac
3282
2635
          ;;
3283
2636
        esac
3284
 
      esac
3285
 
    fi
 
2637
      fi
 
2638
    done
 
2639
    IFS="$lt_save_ifs"
3286
2640
  done
3287
 
  IFS="$lt_save_ifs"
3288
2641
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3289
2642
fi])
3290
2643
NM="$lt_cv_path_NM"
3316
2669
# -----------------------------------
3317
2670
# sets LIBLTDL to the link flags for the libltdl convenience library and
3318
2671
# LTDLINCL to the include flags for the libltdl header and adds
3319
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3320
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3321
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3322
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3323
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3324
 
# flat and you're not using automake, define top_builddir and
3325
 
# top_srcdir appropriately in the Makefiles.
 
2672
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2673
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2674
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2675
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2676
# (note the single quotes!).  If your package is not flat and you're not
 
2677
# using automake, define top_builddir and top_srcdir appropriately in
 
2678
# the Makefiles.
3326
2679
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3327
2680
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3328
2681
  case $enable_ltdl_convenience in
3341
2694
# -----------------------------------
3342
2695
# sets LIBLTDL to the link flags for the libltdl installable library and
3343
2696
# LTDLINCL to the include flags for the libltdl header and adds
3344
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3345
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3346
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3347
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3348
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3349
 
# quotes!).  If your package is not flat and you're not using automake,
3350
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2697
# --enable-ltdl-install to the configure arguments.  Note that
 
2698
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2699
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2700
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2701
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2702
# flat and you're not using automake, define top_builddir and top_srcdir
 
2703
# appropriately in the Makefiles.
3351
2704
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3352
2705
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3353
2706
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3385
2738
# ---------------
3386
2739
AC_DEFUN([_LT_AC_LANG_CXX],
3387
2740
[AC_REQUIRE([AC_PROG_CXX])
3388
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2741
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3389
2742
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3390
2743
])# _LT_AC_LANG_CXX
3391
2744
 
 
2745
# _LT_AC_PROG_CXXCPP
 
2746
# ------------------
 
2747
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2748
[
 
2749
AC_REQUIRE([AC_PROG_CXX])
 
2750
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2751
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2752
    (test "X$CXX" != "Xg++"))) ; then
 
2753
  AC_PROG_CXXCPP
 
2754
fi
 
2755
])# _LT_AC_PROG_CXXCPP
3392
2756
 
3393
2757
# AC_LIBTOOL_F77
3394
2758
# --------------
3428
2792
 
3429
2793
 
3430
2794
# AC_LIBTOOL_RC
3431
 
# --------------
 
2795
# -------------
3432
2796
# enable support for Windows resource files
3433
2797
AC_DEFUN([AC_LIBTOOL_RC],
3434
2798
[AC_REQUIRE([LT_AC_PROG_RC])
3454
2818
_LT_AC_TAGVAR(objext, $1)=$objext
3455
2819
 
3456
2820
# Code to be used in simple compile tests
3457
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2821
lt_simple_compile_test_code="int some_variable = 0;"
3458
2822
 
3459
2823
# Code to be used in simple link tests
3460
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2824
lt_simple_link_test_code='int main(){return(0);}'
3461
2825
 
3462
2826
_LT_AC_SYS_COMPILER
3463
2827
 
3464
 
#
3465
 
# Check for any special shared library compilation flags.
3466
 
#
3467
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3468
 
if test "$GCC" = no; then
3469
 
  case $host_os in
3470
 
  sco3.2v5*)
3471
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3472
 
    ;;
3473
 
  esac
3474
 
fi
3475
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3476
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3477
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
3478
 
  else
3479
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3480
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3481
 
  fi
3482
 
fi
3483
 
 
3484
 
 
3485
 
#
3486
 
# Check to make sure the static flag actually works.
3487
 
#
3488
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3489
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3490
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3491
 
  [],
3492
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3493
 
 
 
2828
# save warnings/boilerplate of simple test code
 
2829
_LT_COMPILER_BOILERPLATE
 
2830
_LT_LINKER_BOILERPLATE
3494
2831
 
3495
2832
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3496
2833
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3500
2837
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3501
2838
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3502
2839
AC_LIBTOOL_SYS_LIB_STRIP
3503
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2840
AC_LIBTOOL_DLOPEN_SELF
3504
2841
 
3505
 
# Report which librarie types wil actually be built
 
2842
# Report which library types will actually be built
3506
2843
AC_MSG_CHECKING([if libtool supports shared libraries])
3507
2844
AC_MSG_RESULT([$can_build_shared])
3508
2845
 
3511
2848
 
3512
2849
# On AIX, shared libraries and static libraries use the same namespace, and
3513
2850
# are all built from PIC.
3514
 
case "$host_os" in
 
2851
case $host_os in
3515
2852
aix3*)
3516
2853
  test "$enable_shared" = yes && enable_static=no
3517
2854
  if test -n "$RANLIB"; then
3520
2857
  fi
3521
2858
  ;;
3522
2859
 
3523
 
aix4* | aix5*)
 
2860
aix[[4-9]]*)
3524
2861
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3525
2862
    test "$enable_shared" = yes && enable_static=no
3526
2863
  fi
3527
 
  ;;
3528
 
  darwin* | rhapsody*)
3529
 
  if test "$GCC" = yes; then
3530
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3531
 
    case "$host_os" in
3532
 
    rhapsody* | darwin1.[[012]])
3533
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3534
 
      ;;
3535
 
    *) # Darwin 1.3 on
3536
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3537
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3538
 
      else
3539
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3540
 
          10.[[012]])
3541
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3542
 
            ;;
3543
 
          10.*)
3544
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3545
 
            ;;
3546
 
        esac
3547
 
      fi
3548
 
      ;;
3549
 
    esac
3550
 
    output_verbose_link_cmd='echo'
3551
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3552
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3553
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3554
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3555
 
    _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}'
3556
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3557
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3558
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3559
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3560
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3561
 
  else
3562
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3563
 
  fi
3564
2864
    ;;
3565
2865
esac
3566
2866
AC_MSG_RESULT([$enable_shared])
3586
2886
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3587
2887
[AC_LANG_PUSH(C++)
3588
2888
AC_REQUIRE([AC_PROG_CXX])
3589
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2889
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3590
2890
 
3591
2891
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3592
2892
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3598
2898
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3599
2899
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3600
2900
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2901
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3601
2902
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3602
2903
_LT_AC_TAGVAR(module_cmds, $1)=
3603
2904
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3613
2914
_LT_AC_TAGVAR(predeps, $1)=
3614
2915
_LT_AC_TAGVAR(postdeps, $1)=
3615
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3616
2918
 
3617
2919
# Source file extension for C++ test sources.
3618
 
ac_ext=cc
 
2920
ac_ext=cpp
3619
2921
 
3620
2922
# Object file extension for compiled C++ test sources.
3621
2923
objext=o
3622
2924
_LT_AC_TAGVAR(objext, $1)=$objext
3623
2925
 
3624
2926
# Code to be used in simple compile tests
3625
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2927
lt_simple_compile_test_code="int some_variable = 0;"
3626
2928
 
3627
2929
# Code to be used in simple link tests
3628
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3629
2931
 
3630
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3631
2933
_LT_AC_SYS_COMPILER
3632
2934
 
 
2935
# save warnings/boilerplate of simple test code
 
2936
_LT_COMPILER_BOILERPLATE
 
2937
_LT_LINKER_BOILERPLATE
 
2938
 
3633
2939
# Allow CC to be a program name with arguments.
3634
2940
lt_save_CC=$CC
3635
2941
lt_save_LD=$LD
3640
2946
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3641
2947
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3642
2948
else
3643
 
  unset lt_cv_prog_gnu_ld
 
2949
  $as_unset lt_cv_prog_gnu_ld
3644
2950
fi
3645
2951
if test -n "${lt_cv_path_LDCXX+set}"; then
3646
2952
  lt_cv_path_LD=$lt_cv_path_LDCXX
3647
2953
else
3648
 
  unset lt_cv_path_LD
 
2954
  $as_unset lt_cv_path_LD
3649
2955
fi
3650
2956
test -z "${LDCXX+set}" || LD=$LDCXX
3651
2957
CC=${CXX-"c++"}
3652
2958
compiler=$CC
3653
2959
_LT_AC_TAGVAR(compiler, $1)=$CC
3654
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2960
_LT_CC_BASENAME([$compiler])
3655
2961
 
3656
2962
# We don't want -fno-exception wen compiling C++ code, so set the
3657
2963
# no_builtin_flag separately
3718
3024
    # FIXME: insert proper C++ library support
3719
3025
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3720
3026
    ;;
3721
 
  aix4* | aix5*)
 
3027
  aix[[4-9]]*)
3722
3028
    if test "$host_cpu" = ia64; then
3723
3029
      # On IA64, the linker does run time linking by default, so we don't
3724
3030
      # have to do anything special.
3731
3037
      # Test if we are trying to use run time linking or normal
3732
3038
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3733
3039
      # need to do runtime linking.
3734
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3040
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3735
3041
        for ld_flag in $LDFLAGS; do
3736
3042
          case $ld_flag in
3737
3043
          *-brtl*)
3740
3046
            ;;
3741
3047
          esac
3742
3048
        done
 
3049
        ;;
3743
3050
      esac
3744
3051
 
3745
3052
      exp_sym_flag='-bexport'
3758
3065
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3759
3066
 
3760
3067
    if test "$GXX" = yes; then
3761
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
3068
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3762
3069
      # We only want to do this on AIX 4.2 and lower, the check
3763
3070
      # below for broken collect2 doesn't work under 4.3+
3764
3071
        collect2name=`${CC} -print-prog-name=collect2`
3766
3073
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3767
3074
        then
3768
3075
          # We have reworked collect2
3769
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3076
          :
3770
3077
        else
3771
3078
          # We have old collect2
3772
3079
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3777
3084
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3778
3085
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3779
3086
        fi
 
3087
        ;;
3780
3088
      esac
3781
3089
      shared_flag='-shared'
 
3090
      if test "$aix_use_runtimelinking" = yes; then
 
3091
        shared_flag="$shared_flag "'${wl}-G'
 
3092
      fi
3782
3093
    else
3783
3094
      # not using gcc
3784
3095
      if test "$host_cpu" = ia64; then
3805
3116
      _LT_AC_SYS_LIBPATH_AIX
3806
3117
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3807
3118
 
3808
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3119
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3809
3120
     else
3810
3121
      if test "$host_cpu" = ia64; then
3811
3122
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3812
3123
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3813
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
3124
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3814
3125
      else
3815
3126
        # Determine the default libpath from the value encoded in an empty executable.
3816
3127
        _LT_AC_SYS_LIBPATH_AIX
3819
3130
        # -berok will link without error, but may produce a broken library.
3820
3131
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3821
3132
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3822
 
        # -bexpall does not export symbols beginning with underscore (_)
3823
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3824
3133
        # Exported symbols can be pulled into shared objects from archives
3825
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3134
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3826
3135
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3827
 
        # This is similar to how AIX traditionally builds it's shared libraries.
3828
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3136
        # This is similar to how AIX traditionally builds its shared libraries.
 
3137
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3829
3138
      fi
3830
3139
    fi
3831
3140
    ;;
 
3141
 
 
3142
  beos*)
 
3143
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3144
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3145
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3146
      # support --undefined.  This deserves some investigation.  FIXME
 
3147
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3148
    else
 
3149
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3150
    fi
 
3151
    ;;
 
3152
 
3832
3153
  chorus*)
3833
3154
    case $cc_basename in
3834
3155
      *)
3847
3168
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3848
3169
 
3849
3170
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3850
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3171
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3851
3172
      # If the export-symbols file already is a .def file (1st line
3852
3173
      # is EXPORTS), use it as is; otherwise, prepend...
3853
3174
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3856
3177
        echo EXPORTS > $output_objdir/$soname.def;
3857
3178
        cat $export_symbols >> $output_objdir/$soname.def;
3858
3179
      fi~
3859
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3180
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3860
3181
    else
3861
3182
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3862
3183
    fi
3863
3184
  ;;
3864
 
 
3865
 
  darwin* | rhapsody*)
3866
 
  if test "$GXX" = yes; then
3867
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3868
 
    case "$host_os" in
3869
 
    rhapsody* | darwin1.[[012]])
3870
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3871
 
      ;;
3872
 
    *) # Darwin 1.3 on
3873
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3874
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3185
      darwin* | rhapsody*)
 
3186
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3187
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3188
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3189
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3190
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3191
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3193
      if test "$GXX" = yes ; then
 
3194
      output_verbose_link_cmd='echo'
 
3195
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
3196
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3197
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
3198
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
3199
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3200
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
3201
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
3202
      fi
3875
3203
      else
3876
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
3877
 
          10.[[012]])
3878
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3879
 
            ;;
3880
 
          10.*)
3881
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3882
 
            ;;
3883
 
        esac
 
3204
      case $cc_basename in
 
3205
        xlc*)
 
3206
         output_verbose_link_cmd='echo'
 
3207
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
3208
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3209
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3210
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3211
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3212
          ;;
 
3213
       *)
 
3214
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3215
          ;;
 
3216
      esac
3884
3217
      fi
3885
 
      ;;
3886
 
    esac
3887
 
    lt_int_apple_cc_single_mod=no
3888
 
    output_verbose_link_cmd='echo'
3889
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3890
 
      lt_int_apple_cc_single_mod=yes
3891
 
    fi
3892
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3893
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3894
 
    else
3895
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
3896
 
    fi
3897
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3898
 
 
3899
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3900
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3901
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3902
 
    else
3903
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3904
 
    fi
3905
 
    _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}'
3906
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3907
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3908
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3909
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3910
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3911
 
  else
3912
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3913
 
  fi
3914
 
    ;;
 
3218
        ;;
3915
3219
 
3916
3220
  dgux*)
3917
3221
    case $cc_basename in
3918
 
      ec++)
 
3222
      ec++*)
3919
3223
        # FIXME: insert proper C++ library support
3920
3224
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3921
3225
        ;;
3922
 
      ghcx)
 
3226
      ghcx*)
3923
3227
        # Green Hills C++ Compiler
3924
3228
        # FIXME: insert proper C++ library support
3925
3229
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3930
3234
        ;;
3931
3235
    esac
3932
3236
    ;;
3933
 
  freebsd[12]*)
 
3237
  freebsd[[12]]*)
3934
3238
    # C++ shared libraries reported to be fairly broken before switch to ELF
3935
3239
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3936
3240
    ;;
3937
3241
  freebsd-elf*)
3938
3242
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3939
3243
    ;;
3940
 
  freebsd* | kfreebsd*-gnu)
 
3244
  freebsd* | dragonfly*)
3941
3245
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3942
3246
    # conventions
3943
3247
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3954
3258
                                # location of the library.
3955
3259
 
3956
3260
    case $cc_basename in
3957
 
    CC)
 
3261
    CC*)
3958
3262
      # FIXME: insert proper C++ library support
3959
3263
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3960
3264
      ;;
3961
 
    aCC)
 
3265
    aCC*)
3962
3266
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3963
3267
      # Commands to make compiler produce verbose output that lists
3964
3268
      # what "hidden" libraries, object files and flags are used when
3968
3272
      # explicitly linking system object files so we need to strip them
3969
3273
      # from the output so that they don't get included in the library
3970
3274
      # dependencies.
3971
 
      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'
 
3275
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3972
3276
      ;;
3973
3277
    *)
3974
3278
      if test "$GXX" = yes; then
3982
3286
    ;;
3983
3287
  hpux10*|hpux11*)
3984
3288
    if test $with_gnu_ld = no; then
3985
 
      case "$host_cpu" in
3986
 
      hppa*64*)
3987
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3988
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3989
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3990
 
        ;;
3991
 
      ia64*)
3992
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3993
 
        ;;
 
3289
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3290
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3291
 
 
3292
      case $host_cpu in
 
3293
      hppa*64*|ia64*) ;;
3994
3294
      *)
3995
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3996
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3997
3295
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3998
3296
        ;;
3999
3297
      esac
4000
3298
    fi
4001
 
    case "$host_cpu" in
4002
 
    hppa*64*)
4003
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4004
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4005
 
      ;;
4006
 
    ia64*)
4007
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4008
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4009
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4010
 
                                              # but as the default
4011
 
                                              # location of the library.
 
3299
    case $host_cpu in
 
3300
    hppa*64*|ia64*)
 
3301
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3302
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4012
3303
      ;;
4013
3304
    *)
4014
3305
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4019
3310
    esac
4020
3311
 
4021
3312
    case $cc_basename in
4022
 
      CC)
 
3313
      CC*)
4023
3314
        # FIXME: insert proper C++ library support
4024
3315
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4025
3316
        ;;
4026
 
      aCC)
4027
 
        case "$host_cpu" in
4028
 
        hppa*64*|ia64*)
4029
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3317
      aCC*)
 
3318
        case $host_cpu in
 
3319
        hppa*64*)
 
3320
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3321
          ;;
 
3322
        ia64*)
 
3323
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4030
3324
          ;;
4031
3325
        *)
4032
3326
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4045
3339
      *)
4046
3340
        if test "$GXX" = yes; then
4047
3341
          if test $with_gnu_ld = no; then
4048
 
            case "$host_cpu" in
4049
 
            ia64*|hppa*64*)
4050
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3342
            case $host_cpu in
 
3343
            hppa*64*)
 
3344
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3345
              ;;
 
3346
            ia64*)
 
3347
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4051
3348
              ;;
4052
3349
            *)
4053
3350
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4061
3358
        ;;
4062
3359
    esac
4063
3360
    ;;
 
3361
  interix[[3-9]]*)
 
3362
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3363
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3365
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3366
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3367
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3368
    # default) and relocated if they conflict, which is a slow very memory
 
3369
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3370
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3371
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3372
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3373
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3374
    ;;
4064
3375
  irix5* | irix6*)
4065
3376
    case $cc_basename in
4066
 
      CC)
 
3377
      CC*)
4067
3378
        # SGI C++
4068
 
        _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 ${objdir}/so_locations -o $lib'
 
3379
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4069
3380
 
4070
3381
        # Archives containing C++ object files must be created using
4071
3382
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4076
3387
      *)
4077
3388
        if test "$GXX" = yes; then
4078
3389
          if test "$with_gnu_ld" = no; then
4079
 
            _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}${objdir}/so_locations -o $lib'
 
3390
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4080
3391
          else
4081
3392
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4082
3393
          fi
4087
3398
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4088
3399
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4089
3400
    ;;
4090
 
  linux*)
 
3401
  linux* | k*bsd*-gnu)
4091
3402
    case $cc_basename in
4092
 
      KCC)
 
3403
      KCC*)
4093
3404
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4094
3405
 
4095
3406
        # KCC will only create a shared library if the output file
4114
3425
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4115
3426
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4116
3427
        ;;
4117
 
      icpc)
 
3428
      icpc*)
4118
3429
        # Intel C++
4119
3430
        with_gnu_ld=yes
 
3431
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3432
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3433
        # earlier do not add the objects themselves.
 
3434
        case `$CC -V 2>&1` in
 
3435
        *"Version 7."*)
 
3436
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3437
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3438
          ;;
 
3439
        *)  # Version 8.0 or newer
 
3440
          tmp_idyn=
 
3441
          case $host_cpu in
 
3442
            ia64*) tmp_idyn=' -i_dynamic';;
 
3443
          esac
 
3444
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3445
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3446
          ;;
 
3447
        esac
4120
3448
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4121
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4122
 
        _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'
4123
3449
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4124
3450
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4125
3451
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4126
3452
        ;;
4127
 
      cxx)
 
3453
      pgCC* | pgcpp*)
 
3454
        # Portland Group C++ compiler
 
3455
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3456
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3457
 
 
3458
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3459
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3460
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3461
        ;;
 
3462
      cxx*)
4128
3463
        # Compaq C++
4129
3464
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4130
3465
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4143
3478
        # dependencies.
4144
3479
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4145
3480
        ;;
 
3481
      *)
 
3482
        case `$CC -V 2>&1 | sed 5q` in
 
3483
        *Sun\ C*)
 
3484
          # Sun C++ 5.9
 
3485
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3486
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3487
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3488
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3489
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3490
 
 
3491
          # Not sure whether something based on
 
3492
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3493
          # would be better.
 
3494
          output_verbose_link_cmd='echo'
 
3495
 
 
3496
          # Archives containing C++ object files must be created using
 
3497
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3498
          # necessary to make sure instantiated templates are included
 
3499
          # in the archive.
 
3500
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3501
          ;;
 
3502
        esac
 
3503
        ;;
4146
3504
    esac
4147
3505
    ;;
4148
3506
  lynxos*)
4155
3513
    ;;
4156
3514
  mvs*)
4157
3515
    case $cc_basename in
4158
 
      cxx)
 
3516
      cxx*)
4159
3517
        # FIXME: insert proper C++ library support
4160
3518
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4161
3519
        ;;
4165
3523
        ;;
4166
3524
    esac
4167
3525
    ;;
4168
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3526
  netbsd* | netbsdelf*-gnu)
4169
3527
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4170
3528
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4171
3529
      wlarc=
4176
3534
    # Workaround some broken pre-1.5 toolchains
4177
3535
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4178
3536
    ;;
 
3537
  openbsd2*)
 
3538
    # C++ shared libraries are fairly broken
 
3539
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3540
    ;;
 
3541
  openbsd*)
 
3542
    if test -f /usr/libexec/ld.so; then
 
3543
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3544
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3545
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3546
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3548
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3549
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3550
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3551
      fi
 
3552
      output_verbose_link_cmd='echo'
 
3553
    else
 
3554
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3555
    fi
 
3556
    ;;
4179
3557
  osf3*)
4180
3558
    case $cc_basename in
4181
 
      KCC)
 
3559
      KCC*)
4182
3560
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4183
3561
 
4184
3562
        # KCC will only create a shared library if the output file
4194
3572
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4195
3573
 
4196
3574
        ;;
4197
 
      RCC)
 
3575
      RCC*)
4198
3576
        # Rational C++ 2.4.1
4199
3577
        # FIXME: insert proper C++ library support
4200
3578
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4201
3579
        ;;
4202
 
      cxx)
 
3580
      cxx*)
4203
3581
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4204
 
        _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 ${objdir}/so_locations -o $lib'
 
3582
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4205
3583
 
4206
3584
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4207
3585
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4219
3597
      *)
4220
3598
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4221
3599
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4222
 
          _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}${objdir}/so_locations -o $lib'
 
3600
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4223
3601
 
4224
3602
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4225
3603
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4238
3616
    ;;
4239
3617
  osf4* | osf5*)
4240
3618
    case $cc_basename in
4241
 
      KCC)
 
3619
      KCC*)
4242
3620
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4243
3621
 
4244
3622
        # KCC will only create a shared library if the output file
4253
3631
        # the KAI C++ compiler.
4254
3632
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4255
3633
        ;;
4256
 
      RCC)
 
3634
      RCC*)
4257
3635
        # Rational C++ 2.4.1
4258
3636
        # FIXME: insert proper C++ library support
4259
3637
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4260
3638
        ;;
4261
 
      cxx)
 
3639
      cxx*)
4262
3640
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4263
 
        _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 ${objdir}/so_locations -o $lib'
 
3641
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4264
3642
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4265
3643
          echo "-hidden">> $lib.exp~
4266
 
          $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 $objdir/so_locations -o $lib~
 
3644
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4267
3645
          $rm $lib.exp'
4268
3646
 
4269
3647
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4282
3660
      *)
4283
3661
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4284
3662
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4285
 
         _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}${objdir}/so_locations -o $lib'
 
3663
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4286
3664
 
4287
3665
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4288
3666
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4303
3681
    # FIXME: insert proper C++ library support
4304
3682
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4305
3683
    ;;
4306
 
  sco*)
4307
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4308
 
    case $cc_basename in
4309
 
      CC)
4310
 
        # FIXME: insert proper C++ library support
4311
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4312
 
        ;;
4313
 
      *)
4314
 
        # FIXME: insert proper C++ library support
4315
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4316
 
        ;;
4317
 
    esac
4318
 
    ;;
4319
3684
  sunos4*)
4320
3685
    case $cc_basename in
4321
 
      CC)
 
3686
      CC*)
4322
3687
        # Sun C++ 4.x
4323
3688
        # FIXME: insert proper C++ library support
4324
3689
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4325
3690
        ;;
4326
 
      lcc)
 
3691
      lcc*)
4327
3692
        # Lucid
4328
3693
        # FIXME: insert proper C++ library support
4329
3694
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4336
3701
    ;;
4337
3702
  solaris*)
4338
3703
    case $cc_basename in
4339
 
      CC)
 
3704
      CC*)
4340
3705
        # Sun C++ 4.2, 5.x and Centerline C++
 
3706
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4341
3707
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4342
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3708
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4343
3709
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4344
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3710
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4345
3711
 
4346
3712
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4347
3713
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4348
3714
        case $host_os in
4349
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3715
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4350
3716
          *)
4351
 
            # The C++ compiler is used as linker so we must use $wl
4352
 
            # flag to pass the commands to the underlying system
4353
 
            # linker.
 
3717
            # The compiler driver will combine and reorder linker options,
 
3718
            # but understands `-z linker_flag'.
4354
3719
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4355
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3720
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4356
3721
            ;;
4357
3722
        esac
4358
3723
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4359
3724
 
4360
 
        # Commands to make compiler produce verbose output that lists
4361
 
        # what "hidden" libraries, object files and flags are used when
4362
 
        # linking a shared library.
4363
 
        #
4364
 
        # There doesn't appear to be a way to prevent this compiler from
4365
 
        # explicitly linking system object files so we need to strip them
4366
 
        # from the output so that they don't get included in the library
4367
 
        # dependencies.
4368
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3725
        output_verbose_link_cmd='echo'
4369
3726
 
4370
3727
        # Archives containing C++ object files must be created using
4371
3728
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4373
3730
        # in the archive.
4374
3731
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4375
3732
        ;;
4376
 
      gcx)
 
3733
      gcx*)
4377
3734
        # Green Hills C++ Compiler
4378
3735
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4379
3736
 
4407
3764
          fi
4408
3765
 
4409
3766
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3767
          case $host_os in
 
3768
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3769
          *)
 
3770
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3771
            ;;
 
3772
          esac
4410
3773
        fi
4411
3774
        ;;
4412
3775
    esac
4413
3776
    ;;
4414
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4415
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3777
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3778
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3779
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3780
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3781
    runpath_var='LD_RUN_PATH'
 
3782
 
 
3783
    case $cc_basename in
 
3784
      CC*)
 
3785
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3786
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3787
        ;;
 
3788
      *)
 
3789
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3790
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3791
        ;;
 
3792
    esac
 
3793
    ;;
 
3794
  sysv5* | sco3.2v5* | sco5v6*)
 
3795
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3796
    # link with -lc, and that would cause any symbols used from libc to
 
3797
    # always be unresolved, which means just about no library would
 
3798
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3799
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3800
    # as -z defs.
 
3801
    # For security reasons, it is highly recommended that you always
 
3802
    # use absolute paths for naming shared libraries, and exclude the
 
3803
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3804
    # requires that you compile everything twice, which is a pain.
 
3805
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3806
    # non-empty value in the environment.  Most likely only useful for
 
3807
    # creating official distributions of packages.
 
3808
    # This is a hack until libtool officially supports absolute path
 
3809
    # names for shared libraries.
 
3810
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3811
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3812
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3813
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3814
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3815
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3816
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3817
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3818
    runpath_var='LD_RUN_PATH'
 
3819
 
 
3820
    case $cc_basename in
 
3821
      CC*)
 
3822
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3823
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3824
        ;;
 
3825
      *)
 
3826
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3827
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3828
        ;;
 
3829
    esac
4416
3830
    ;;
4417
3831
  tandem*)
4418
3832
    case $cc_basename in
4419
 
      NCC)
 
3833
      NCC*)
4420
3834
        # NonStop-UX NCC 3.20
4421
3835
        # FIXME: insert proper C++ library support
4422
3836
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4449
3863
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4450
3864
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4451
3865
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4452
 
AC_LIBTOOL_SYS_LIB_STRIP
4453
 
AC_LIBTOOL_DLOPEN_SELF($1)
4454
3866
 
4455
3867
AC_LIBTOOL_CONFIG($1)
4456
3868
 
4468
3880
])# AC_LIBTOOL_LANG_CXX_CONFIG
4469
3881
 
4470
3882
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4471
 
# ------------------------
 
3883
# ------------------------------------
4472
3884
# Figure out "hidden" library dependencies from verbose
4473
3885
# compiler output when linking a shared library.
4474
3886
# Parse the compiler output and extract the necessary
4475
3887
# objects, libraries and library flags.
4476
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4477
3890
dnl we can't use the lt_simple_compile_test_code here,
4478
3891
dnl because it contains code intended for an executable,
4479
3892
dnl not a library.  It's possible we should let each
4522
3935
  # The `*' in the case matches for architectures that use `case' in
4523
3936
  # $output_verbose_cmd can trigger glob expansion during the loop
4524
3937
  # eval without this substitution.
4525
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3938
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4526
3939
 
4527
3940
  for p in `eval $output_verbose_link_cmd`; do
4528
3941
    case $p in
4598
4011
 
4599
4012
$rm -f confest.$objext
4600
4013
 
 
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4016
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4017
fi
 
4018
 
 
4019
# PORTME: override above test on systems where it is broken
 
4020
ifelse([$1],[CXX],
 
4021
[case $host_os in
 
4022
interix[[3-9]]*)
 
4023
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4024
  # hack all around it, let's just trust "g++" to DTRT.
 
4025
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4026
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4027
  _LT_AC_TAGVAR(postdeps,$1)=
 
4028
  ;;
 
4029
 
 
4030
linux*)
 
4031
  case `$CC -V 2>&1 | sed 5q` in
 
4032
  *Sun\ C*)
 
4033
    # Sun C++ 5.9
 
4034
    #
 
4035
    # The more standards-conforming stlport4 library is
 
4036
    # incompatible with the Cstd library. Avoid specifying
 
4037
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4038
    # -library=stlport4 depends on it.
 
4039
    case " $CXX $CXXFLAGS " in
 
4040
    *" -library=stlport4 "*)
 
4041
      solaris_use_stlport4=yes
 
4042
      ;;
 
4043
    esac
 
4044
    if test "$solaris_use_stlport4" != yes; then
 
4045
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4046
    fi
 
4047
    ;;
 
4048
  esac
 
4049
  ;;
 
4050
 
 
4051
solaris*)
 
4052
  case $cc_basename in
 
4053
  CC*)
 
4054
    # The more standards-conforming stlport4 library is
 
4055
    # incompatible with the Cstd library. Avoid specifying
 
4056
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4057
    # -library=stlport4 depends on it.
 
4058
    case " $CXX $CXXFLAGS " in
 
4059
    *" -library=stlport4 "*)
 
4060
      solaris_use_stlport4=yes
 
4061
      ;;
 
4062
    esac
 
4063
 
 
4064
    # Adding this requires a known-good setup of shared libraries for
 
4065
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4066
    # archive will be linked into the output, leading to subtle bugs.
 
4067
    if test "$solaris_use_stlport4" != yes; then
 
4068
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4069
    fi
 
4070
    ;;
 
4071
  esac
 
4072
  ;;
 
4073
esac
 
4074
])
4601
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4602
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4603
4077
esac
4604
4078
])# AC_LIBTOOL_POSTDEP_PREDEP
4605
4079
 
4606
4080
# AC_LIBTOOL_LANG_F77_CONFIG
4607
 
# ------------------------
 
4081
# --------------------------
4608
4082
# Ensure that the configuration vars for the C compiler are
4609
4083
# suitably defined.  Those variables are subsequently used by
4610
4084
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4640
4114
_LT_AC_TAGVAR(objext, $1)=$objext
4641
4115
 
4642
4116
# Code to be used in simple compile tests
4643
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4117
lt_simple_compile_test_code="\
 
4118
      subroutine t
 
4119
      return
 
4120
      end
 
4121
"
4644
4122
 
4645
4123
# Code to be used in simple link tests
4646
 
lt_simple_link_test_code="      program t\n      end\n"
 
4124
lt_simple_link_test_code="\
 
4125
      program t
 
4126
      end
 
4127
"
4647
4128
 
4648
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4649
4130
_LT_AC_SYS_COMPILER
4650
4131
 
 
4132
# save warnings/boilerplate of simple test code
 
4133
_LT_COMPILER_BOILERPLATE
 
4134
_LT_LINKER_BOILERPLATE
 
4135
 
4651
4136
# Allow CC to be a program name with arguments.
4652
4137
lt_save_CC="$CC"
4653
4138
CC=${F77-"f77"}
4654
4139
compiler=$CC
4655
4140
_LT_AC_TAGVAR(compiler, $1)=$CC
4656
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
4141
_LT_CC_BASENAME([$compiler])
4657
4142
 
4658
4143
AC_MSG_CHECKING([if libtool supports shared libraries])
4659
4144
AC_MSG_RESULT([$can_build_shared])
4663
4148
 
4664
4149
# On AIX, shared libraries and static libraries use the same namespace, and
4665
4150
# are all built from PIC.
4666
 
case "$host_os" in
 
4151
case $host_os in
4667
4152
aix3*)
4668
4153
  test "$enable_shared" = yes && enable_static=no
4669
4154
  if test -n "$RANLIB"; then
4671
4156
    postinstall_cmds='$RANLIB $lib'
4672
4157
  fi
4673
4158
  ;;
4674
 
aix4* | aix5*)
4675
 
  test "$enable_shared" = yes && enable_static=no
 
4159
aix[[4-9]]*)
 
4160
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4161
    test "$enable_shared" = yes && enable_static=no
 
4162
  fi
4676
4163
  ;;
4677
4164
esac
4678
4165
AC_MSG_RESULT([$enable_shared])
4682
4169
test "$enable_shared" = yes || enable_static=yes
4683
4170
AC_MSG_RESULT([$enable_static])
4684
4171
 
4685
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4686
 
 
4687
4172
_LT_AC_TAGVAR(GCC, $1)="$G77"
4688
4173
_LT_AC_TAGVAR(LD, $1)="$LD"
4689
4174
 
4693
4178
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4694
4179
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4695
4180
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4696
 
AC_LIBTOOL_SYS_LIB_STRIP
4697
 
 
4698
4181
 
4699
4182
AC_LIBTOOL_CONFIG($1)
4700
4183
 
4720
4203
_LT_AC_TAGVAR(objext, $1)=$objext
4721
4204
 
4722
4205
# Code to be used in simple compile tests
4723
 
lt_simple_compile_test_code="class foo {}\n"
 
4206
lt_simple_compile_test_code="class foo {}"
4724
4207
 
4725
4208
# Code to be used in simple link tests
4726
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4727
4210
 
4728
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4729
4212
_LT_AC_SYS_COMPILER
4730
4213
 
 
4214
# save warnings/boilerplate of simple test code
 
4215
_LT_COMPILER_BOILERPLATE
 
4216
_LT_LINKER_BOILERPLATE
 
4217
 
4731
4218
# Allow CC to be a program name with arguments.
4732
4219
lt_save_CC="$CC"
4733
4220
CC=${GCJ-"gcj"}
4734
4221
compiler=$CC
4735
4222
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4223
_LT_CC_BASENAME([$compiler])
4736
4224
 
4737
4225
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4738
4226
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4739
4227
 
 
4228
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4229
 
4740
4230
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4741
4231
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4742
4232
AC_LIBTOOL_PROG_CC_C_O($1)
4744
4234
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4745
4235
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4746
4236
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4747
 
AC_LIBTOOL_SYS_LIB_STRIP
4748
 
AC_LIBTOOL_DLOPEN_SELF($1)
4749
4237
 
4750
4238
AC_LIBTOOL_CONFIG($1)
4751
4239
 
4755
4243
 
4756
4244
 
4757
4245
# AC_LIBTOOL_LANG_RC_CONFIG
4758
 
# --------------------------
 
4246
# -------------------------
4759
4247
# Ensure that the configuration vars for the Windows resource compiler are
4760
4248
# suitably defined.  Those variables are subsequently used by
4761
4249
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4771
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4772
4260
 
4773
4261
# Code to be used in simple compile tests
4774
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4775
4263
 
4776
4264
# Code to be used in simple link tests
4777
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4779
4267
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4780
4268
_LT_AC_SYS_COMPILER
4781
4269
 
 
4270
# save warnings/boilerplate of simple test code
 
4271
_LT_COMPILER_BOILERPLATE
 
4272
_LT_LINKER_BOILERPLATE
 
4273
 
4782
4274
# Allow CC to be a program name with arguments.
4783
4275
lt_save_CC="$CC"
4784
4276
CC=${RC-"windres"}
4785
4277
compiler=$CC
4786
4278
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4279
_LT_CC_BASENAME([$compiler])
4787
4280
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4788
4281
 
4789
4282
AC_LIBTOOL_CONFIG($1)
4813
4306
  # Now quote all the things that may contain metacharacters while being
4814
4307
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4815
4308
  # variables and quote the copies for generation of the libtool script.
4816
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4309
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4817
4310
    SED SHELL STRIP \
4818
4311
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4819
4312
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4840
4333
    _LT_AC_TAGVAR(predeps, $1) \
4841
4334
    _LT_AC_TAGVAR(postdeps, $1) \
4842
4335
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4336
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4843
4337
    _LT_AC_TAGVAR(archive_cmds, $1) \
4844
4338
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4845
4339
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4855
4349
    _LT_AC_TAGVAR(module_cmds, $1) \
4856
4350
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4857
4351
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4352
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4858
4353
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4859
4354
    _LT_AC_TAGVAR(include_expsyms, $1); do
4860
4355
 
4901
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4902
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4903
4398
#
4904
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4905
4400
# Free Software Foundation, Inc.
4906
4401
#
4907
4402
# This file is part of GNU Libtool:
4919
4414
#
4920
4415
# You should have received a copy of the GNU General Public License
4921
4416
# along with this program; if not, write to the Free Software
4922
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4417
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4923
4418
#
4924
4419
# As a special exception to the GNU General Public License, if you
4925
4420
# distribute this file as part of a program that contains a
4930
4425
SED=$lt_SED
4931
4426
 
4932
4427
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4933
 
Xsed="$SED -e s/^X//"
 
4428
Xsed="$SED -e 1s/^X//"
4934
4429
 
4935
4430
# The HP-UX ksh and POSIX shell print the target directory to stdout
4936
4431
# if CDPATH is set.
4937
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4432
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4938
4433
 
4939
4434
# The names of the tagged configurations supported by this script.
4940
4435
available_tags=
4965
4460
# The host system.
4966
4461
host_alias=$host_alias
4967
4462
host=$host
 
4463
host_os=$host_os
 
4464
 
 
4465
# The build system.
 
4466
build_alias=$build_alias
 
4467
build=$build
 
4468
build_os=$build_os
4968
4469
 
4969
4470
# An echo program that does not interpret backslashes.
4970
4471
echo=$lt_echo
4976
4477
# A C compiler.
4977
4478
LTCC=$lt_LTCC
4978
4479
 
 
4480
# LTCC compiler flags.
 
4481
LTCFLAGS=$lt_LTCFLAGS
 
4482
 
4979
4483
# A language-specific compiler.
4980
4484
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4981
4485
 
5041
4545
# Does compiler simultaneously support -c and -o options?
5042
4546
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5043
4547
 
5044
 
# Must we lock files when doing compilation ?
 
4548
# Must we lock files when doing compilation?
5045
4549
need_locks=$lt_need_locks
5046
4550
 
5047
4551
# Do we need the lib prefix for modules?
5129
4633
# shared library.
5130
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5131
4635
 
 
4636
# The directories searched by this compiler when creating a shared
 
4637
# library
 
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
4639
 
5132
4640
# The library search path used internally by the compiler when linking
5133
4641
# a shared library.
5134
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5217
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5218
4726
 
5219
4727
# Fix the shell variable \$srcfile for the compiler.
5220
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4728
fix_srcfile_path=$lt_fix_srcfile_path
5221
4729
 
5222
4730
# Set to yes if exported symbols are required.
5223
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5300
4808
# ---------------------------------
5301
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5302
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4811
AC_REQUIRE([LT_AC_PROG_SED])
5303
4812
AC_REQUIRE([AC_PROG_NM])
5304
4813
AC_REQUIRE([AC_OBJEXT])
5305
4814
# Check for command to grab the raw symbol name followed by C symbol from nm.
5315
4824
# Regexp to match symbols that can be accessed directly from C.
5316
4825
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5317
4826
 
5318
 
# Transform the above into a raw symbol and a C symbol.
5319
 
symxfrm='\1 \2\3 \3'
5320
 
 
5321
4827
# Transform an extracted symbol line into a proper C declaration
5322
4828
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5323
4829
 
5339
4845
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5340
4846
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5341
4847
  ;;
 
4848
linux* | k*bsd*-gnu)
 
4849
  if test "$host_cpu" = ia64; then
 
4850
    symcode='[[ABCDGIRSTW]]'
 
4851
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4852
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4853
  fi
 
4854
  ;;
5342
4855
irix* | nonstopux*)
5343
4856
  symcode='[[BCDEGRST]]'
5344
4857
  ;;
5345
4858
osf*)
5346
4859
  symcode='[[BCDEGQRST]]'
5347
4860
  ;;
5348
 
solaris* | sysv5*)
 
4861
solaris*)
5349
4862
  symcode='[[BDRT]]'
5350
4863
  ;;
 
4864
sco3.2v5*)
 
4865
  symcode='[[DT]]'
 
4866
  ;;
 
4867
sysv4.2uw2*)
 
4868
  symcode='[[DT]]'
 
4869
  ;;
 
4870
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4871
  symcode='[[ABDT]]'
 
4872
  ;;
5351
4873
sysv4)
5352
4874
  symcode='[[DFNSTU]]'
5353
4875
  ;;
5370
4892
# Try without a prefix undercore, then with it.
5371
4893
for ac_symprfx in "" "_"; do
5372
4894
 
 
4895
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4896
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4897
 
5373
4898
  # Write the raw and C identifiers.
5374
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4899
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5375
4900
 
5376
4901
  # Check to see that the pipe works correctly.
5377
4902
  pipe_works=no
5461
4986
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5462
4987
    cat conftest.$ac_ext >&5
5463
4988
  fi
5464
 
  rm -f conftest* conftst*
 
4989
  rm -rf conftest* conftst*
5465
4990
 
5466
4991
  # Do not use the global_symbol_pipe unless it works.
5467
4992
  if test "$pipe_works" = yes; then
5510
5035
      # like `-m68040'.
5511
5036
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5512
5037
      ;;
5513
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5038
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5514
5039
      # PIC is the default for these OSes.
5515
5040
      ;;
5516
 
    mingw* | os2* | pw32*)
 
5041
    mingw* | cygwin* | os2* | pw32*)
5517
5042
      # This hack is so that the source file can tell whether it is being
5518
5043
      # built for inclusion in a dll (and should export symbols for example).
5519
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5044
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5045
      # (--disable-auto-import) libraries
 
5046
      m4_if([$1], [GCJ], [],
 
5047
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5520
5048
      ;;
5521
5049
    darwin* | rhapsody*)
5522
5050
      # PIC is the default on this platform
5527
5055
      # DJGPP does not support shared libraries at all
5528
5056
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5529
5057
      ;;
 
5058
    interix[[3-9]]*)
 
5059
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5060
      # Instead, we relocate shared libraries at runtime.
 
5061
      ;;
5530
5062
    sysv4*MP*)
5531
5063
      if test -d /usr/nec; then
5532
5064
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5535
5067
    hpux*)
5536
5068
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5537
5069
      # not for PA HP-UX.
5538
 
      case "$host_cpu" in
 
5070
      case $host_cpu in
5539
5071
      hppa*64*|ia64*)
5540
5072
        ;;
5541
5073
      *)
5549
5081
    esac
5550
5082
  else
5551
5083
    case $host_os in
5552
 
      aix4* | aix5*)
 
5084
      aix[[4-9]]*)
5553
5085
        # All AIX code is PIC.
5554
5086
        if test "$host_cpu" = ia64; then
5555
5087
          # AIX 5 now supports IA64 processor
5560
5092
        ;;
5561
5093
      chorus*)
5562
5094
        case $cc_basename in
5563
 
        cxch68)
 
5095
        cxch68*)
5564
5096
          # Green Hills C++ Compiler
5565
5097
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5566
5098
          ;;
5567
5099
        esac
5568
5100
        ;;
 
5101
       darwin*)
 
5102
         # PIC is the default on this platform
 
5103
         # Common symbols not allowed in MH_DYLIB files
 
5104
         case $cc_basename in
 
5105
           xlc*)
 
5106
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5107
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5108
           ;;
 
5109
         esac
 
5110
       ;;
5569
5111
      dgux*)
5570
5112
        case $cc_basename in
5571
 
          ec++)
 
5113
          ec++*)
5572
5114
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5573
5115
            ;;
5574
 
          ghcx)
 
5116
          ghcx*)
5575
5117
            # Green Hills C++ Compiler
5576
5118
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5577
5119
            ;;
5579
5121
            ;;
5580
5122
        esac
5581
5123
        ;;
5582
 
      freebsd* | kfreebsd*-gnu)
 
5124
      freebsd* | dragonfly*)
5583
5125
        # FreeBSD uses GNU C++
5584
5126
        ;;
5585
5127
      hpux9* | hpux10* | hpux11*)
5586
5128
        case $cc_basename in
5587
 
          CC)
 
5129
          CC*)
5588
5130
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5589
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5131
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5590
5132
            if test "$host_cpu" != ia64; then
5591
5133
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5592
5134
            fi
5593
5135
            ;;
5594
 
          aCC)
 
5136
          aCC*)
5595
5137
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5596
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5597
 
            case "$host_cpu" in
 
5138
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5139
            case $host_cpu in
5598
5140
            hppa*64*|ia64*)
5599
5141
              # +Z the default
5600
5142
              ;;
5607
5149
            ;;
5608
5150
        esac
5609
5151
        ;;
 
5152
      interix*)
 
5153
        # This is c89, which is MS Visual C++ (no shared libs)
 
5154
        # Anyone wants to do a port?
 
5155
        ;;
5610
5156
      irix5* | irix6* | nonstopux*)
5611
5157
        case $cc_basename in
5612
 
          CC)
 
5158
          CC*)
5613
5159
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5614
5160
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5615
5161
            # CC pic flag -KPIC is the default.
5618
5164
            ;;
5619
5165
        esac
5620
5166
        ;;
5621
 
      linux*)
 
5167
      linux* | k*bsd*-gnu)
5622
5168
        case $cc_basename in
5623
 
          KCC)
 
5169
          KCC*)
5624
5170
            # KAI C++ Compiler
5625
5171
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5626
5172
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5627
5173
            ;;
5628
 
          icpc)
 
5174
          icpc* | ecpc*)
5629
5175
            # Intel C++
5630
5176
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5631
5177
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632
5178
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5633
5179
            ;;
5634
 
          cxx)
 
5180
          pgCC* | pgcpp*)
 
5181
            # Portland Group C++ compiler.
 
5182
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5183
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5184
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5185
            ;;
 
5186
          cxx*)
5635
5187
            # Compaq C++
5636
5188
            # Make sure the PIC flag is empty.  It appears that all Alpha
5637
5189
            # Linux and Compaq Tru64 Unix objects are PIC.
5639
5191
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5640
5192
            ;;
5641
5193
          *)
 
5194
            case `$CC -V 2>&1 | sed 5q` in
 
5195
            *Sun\ C*)
 
5196
              # Sun C++ 5.9
 
5197
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5198
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5199
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5200
              ;;
 
5201
            esac
5642
5202
            ;;
5643
5203
        esac
5644
5204
        ;;
5648
5208
        ;;
5649
5209
      mvs*)
5650
5210
        case $cc_basename in
5651
 
          cxx)
 
5211
          cxx*)
5652
5212
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5653
5213
            ;;
5654
5214
          *)
5655
5215
            ;;
5656
5216
        esac
5657
5217
        ;;
5658
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5218
      netbsd* | netbsdelf*-gnu)
5659
5219
        ;;
5660
5220
      osf3* | osf4* | osf5*)
5661
5221
        case $cc_basename in
5662
 
          KCC)
 
5222
          KCC*)
5663
5223
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5664
5224
            ;;
5665
 
          RCC)
 
5225
          RCC*)
5666
5226
            # Rational C++ 2.4.1
5667
5227
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5668
5228
            ;;
5669
 
          cxx)
 
5229
          cxx*)
5670
5230
            # Digital/Compaq C++
5671
5231
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5672
5232
            # Make sure the PIC flag is empty.  It appears that all Alpha
5680
5240
        ;;
5681
5241
      psos*)
5682
5242
        ;;
5683
 
      sco*)
5684
 
        case $cc_basename in
5685
 
          CC)
5686
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5687
 
            ;;
5688
 
          *)
5689
 
            ;;
5690
 
        esac
5691
 
        ;;
5692
5243
      solaris*)
5693
5244
        case $cc_basename in
5694
 
          CC)
 
5245
          CC*)
5695
5246
            # Sun C++ 4.2, 5.x and Centerline C++
5696
5247
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5697
5248
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5698
5249
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5699
5250
            ;;
5700
 
          gcx)
 
5251
          gcx*)
5701
5252
            # Green Hills C++ Compiler
5702
5253
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5703
5254
            ;;
5707
5258
        ;;
5708
5259
      sunos4*)
5709
5260
        case $cc_basename in
5710
 
          CC)
 
5261
          CC*)
5711
5262
            # Sun C++ 4.x
5712
5263
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5713
5264
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5714
5265
            ;;
5715
 
          lcc)
 
5266
          lcc*)
5716
5267
            # Lucid
5717
5268
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5718
5269
            ;;
5722
5273
        ;;
5723
5274
      tandem*)
5724
5275
        case $cc_basename in
5725
 
          NCC)
 
5276
          NCC*)
5726
5277
            # NonStop-UX NCC 3.20
5727
5278
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5728
5279
            ;;
5730
5281
            ;;
5731
5282
        esac
5732
5283
        ;;
5733
 
      unixware*)
 
5284
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5285
        case $cc_basename in
 
5286
          CC*)
 
5287
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5288
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5289
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5290
            ;;
 
5291
        esac
5734
5292
        ;;
5735
5293
      vxworks*)
5736
5294
        ;;
5761
5319
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5762
5320
      ;;
5763
5321
 
5764
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5322
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5765
5323
      # PIC is the default for these OSes.
5766
5324
      ;;
5767
5325
 
5768
 
    mingw* | pw32* | os2*)
 
5326
    mingw* | cygwin* | pw32* | os2*)
5769
5327
      # This hack is so that the source file can tell whether it is being
5770
5328
      # built for inclusion in a dll (and should export symbols for example).
5771
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5329
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5330
      # (--disable-auto-import) libraries
 
5331
      m4_if([$1], [GCJ], [],
 
5332
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5772
5333
      ;;
5773
5334
 
5774
5335
    darwin* | rhapsody*)
5777
5338
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5778
5339
      ;;
5779
5340
 
 
5341
    interix[[3-9]]*)
 
5342
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5343
      # Instead, we relocate shared libraries at runtime.
 
5344
      ;;
 
5345
 
5780
5346
    msdosdjgpp*)
5781
5347
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5782
5348
      # on systems that don't support them.
5793
5359
    hpux*)
5794
5360
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5795
5361
      # not for PA HP-UX.
5796
 
      case "$host_cpu" in
 
5362
      case $host_cpu in
5797
5363
      hppa*64*|ia64*)
5798
5364
        # +Z the default
5799
5365
        ;;
5819
5385
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5820
5386
      fi
5821
5387
      ;;
 
5388
      darwin*)
 
5389
        # PIC is the default on this platform
 
5390
        # Common symbols not allowed in MH_DYLIB files
 
5391
       case $cc_basename in
 
5392
         xlc*)
 
5393
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5394
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5395
         ;;
 
5396
       esac
 
5397
       ;;
5822
5398
 
5823
 
    mingw* | pw32* | os2*)
 
5399
    mingw* | cygwin* | pw32* | os2*)
5824
5400
      # This hack is so that the source file can tell whether it is being
5825
5401
      # built for inclusion in a dll (and should export symbols for example).
5826
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5402
      m4_if([$1], [GCJ], [],
 
5403
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5827
5404
      ;;
5828
5405
 
5829
5406
    hpux9* | hpux10* | hpux11*)
5830
5407
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5831
5408
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5832
5409
      # not for PA HP-UX.
5833
 
      case "$host_cpu" in
 
5410
      case $host_cpu in
5834
5411
      hppa*64*|ia64*)
5835
5412
        # +Z the default
5836
5413
        ;;
5853
5430
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5854
5431
      ;;
5855
5432
 
5856
 
    linux*)
5857
 
      case $CC in
 
5433
    linux* | k*bsd*-gnu)
 
5434
      case $cc_basename in
5858
5435
      icc* | ecc*)
5859
5436
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5860
5437
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5861
5438
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5862
5439
        ;;
 
5440
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5441
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5442
        # which looks to be a dead project)
 
5443
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5444
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5445
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5446
        ;;
5863
5447
      ccc*)
5864
5448
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5865
5449
        # All Alpha code is PIC.
5866
5450
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5867
5451
        ;;
 
5452
      *)
 
5453
        case `$CC -V 2>&1 | sed 5q` in
 
5454
        *Sun\ C*)
 
5455
          # Sun C 5.9
 
5456
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5457
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5458
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5459
          ;;
 
5460
        *Sun\ F*)
 
5461
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5462
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5463
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5464
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5465
          ;;
 
5466
        esac
 
5467
        ;;
5868
5468
      esac
5869
5469
      ;;
5870
5470
 
5874
5474
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5875
5475
      ;;
5876
5476
 
5877
 
    sco3.2v5*)
5878
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5879
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5477
    rdos*)
 
5478
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5880
5479
      ;;
5881
5480
 
5882
5481
    solaris*)
5883
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5884
5482
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5885
5483
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5484
      case $cc_basename in
 
5485
      f77* | f90* | f95*)
 
5486
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5487
      *)
 
5488
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5489
      esac
5886
5490
      ;;
5887
5491
 
5888
5492
    sunos4*)
5891
5495
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5892
5496
      ;;
5893
5497
 
5894
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5498
    sysv4 | sysv4.2uw2* | sysv4.3*)
5895
5499
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5896
5500
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5897
5501
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5904
5508
      fi
5905
5509
      ;;
5906
5510
 
 
5511
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5512
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5513
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5514
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5515
      ;;
 
5516
 
 
5517
    unicos*)
 
5518
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5519
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5520
      ;;
 
5521
 
5907
5522
    uts4*)
5908
5523
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5909
5524
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5922
5537
#
5923
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5924
5539
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5925
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5540
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5926
5541
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5927
5542
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5928
5543
     "" | " "*) ;;
5931
5546
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5932
5547
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5933
5548
fi
5934
 
case "$host_os" in
 
5549
case $host_os in
5935
5550
  # For platforms which do not support PIC, -DPIC is meaningless:
5936
5551
  *djgpp*)
5937
5552
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5940
5555
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5941
5556
    ;;
5942
5557
esac
 
5558
 
 
5559
#
 
5560
# Check to make sure the static flag actually works.
 
5561
#
 
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5564
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5565
  $lt_tmp_static_flag,
 
5566
  [],
 
5567
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5943
5568
])
5944
5569
 
5945
5570
 
5947
5572
# ------------------------------------
5948
5573
# See if the linker supports building shared libraries.
5949
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5950
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5576
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5951
5577
ifelse([$1],[CXX],[
5952
5578
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5953
5579
  case $host_os in
5954
 
  aix4* | aix5*)
 
5580
  aix[[4-9]]*)
5955
5581
    # If we're using GNU nm, then we don't want the "-C" option.
5956
5582
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5957
5583
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5964
5590
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5965
5591
  ;;
5966
5592
  cygwin* | mingw*)
5967
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5593
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5968
5594
  ;;
5969
 
  linux*)
 
5595
  linux* | k*bsd*-gnu)
5970
5596
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5971
5597
  ;;
5972
5598
  *)
5973
5599
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5974
5600
  ;;
5975
5601
  esac
 
5602
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5976
5603
],[
5977
5604
  runpath_var=
5978
5605
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6003
5630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6004
5631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6005
5632
  # as well as any symbol that contains `d'.
6006
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5633
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6007
5634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6008
5635
  # platforms (ab)use it in PIC code, but their linkers get confused if
6009
5636
  # the symbol is explicitly referenced.  Since portable code cannot
6010
5637
  # rely on this symbol name, it's probably fine to never include it in
6011
5638
  # preloaded symbol tables.
 
5639
  # Exclude shared library initialization/finalization symbols.
 
5640
dnl Note also adjust exclude_expsyms for C++ above.
6012
5641
  extract_expsyms_cmds=
6013
 
 
 
5642
  # Just being paranoid about ensuring that cc_basename is set.
 
5643
  _LT_CC_BASENAME([$compiler])
6014
5644
  case $host_os in
6015
5645
  cygwin* | mingw* | pw32*)
6016
5646
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6020
5650
      with_gnu_ld=no
6021
5651
    fi
6022
5652
    ;;
 
5653
  interix*)
 
5654
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5655
    with_gnu_ld=yes
 
5656
    ;;
6023
5657
  openbsd*)
6024
5658
    with_gnu_ld=no
6025
5659
    ;;
6030
5664
    # If archive_cmds runs LD, not CC, wlarc should be empty
6031
5665
    wlarc='${wl}'
6032
5666
 
 
5667
    # Set some defaults for GNU ld with shared library support. These
 
5668
    # are reset later if shared libraries are not supported. Putting them
 
5669
    # here allows them to be overridden if necessary.
 
5670
    runpath_var=LD_RUN_PATH
 
5671
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5672
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5673
    # ancient GNU ld didn't support --whole-archive et. al.
 
5674
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5675
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5676
      else
 
5677
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5678
    fi
 
5679
    supports_anon_versioning=no
 
5680
    case `$LD -v 2>/dev/null` in
 
5681
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5682
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5683
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5684
      *\ 2.11.*) ;; # other 2.11 versions
 
5685
      *) supports_anon_versioning=yes ;;
 
5686
    esac
 
5687
 
6033
5688
    # See if GNU ld supports shared libraries.
6034
5689
    case $host_os in
6035
 
    aix3* | aix4* | aix5*)
 
5690
    aix[[3-9]]*)
6036
5691
      # On AIX/PPC, the GNU linker is very broken
6037
5692
      if test "$host_cpu" != ia64; then
6038
5693
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6080
5735
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6081
5736
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6082
5737
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6083
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5738
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6084
5739
 
6085
5740
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6086
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5741
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6087
5742
        # If the export-symbols file already is a .def file (1st line
6088
5743
        # is EXPORTS), use it as is; otherwise, prepend...
6089
5744
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6092
5747
          echo EXPORTS > $output_objdir/$soname.def;
6093
5748
          cat $export_symbols >> $output_objdir/$soname.def;
6094
5749
        fi~
6095
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6096
 
      else
6097
 
        ld_shlibs=no
6098
 
      fi
6099
 
      ;;
6100
 
 
6101
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5750
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5751
      else
 
5752
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5753
      fi
 
5754
      ;;
 
5755
 
 
5756
    interix[[3-9]]*)
 
5757
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5758
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5759
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5760
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5761
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5762
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5763
      # default) and relocated if they conflict, which is a slow very memory
 
5764
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5765
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5766
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5767
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5768
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5769
      ;;
 
5770
 
 
5771
    gnu* | linux* | k*bsd*-gnu)
 
5772
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5773
        tmp_addflag=
 
5774
        case $cc_basename,$host_cpu in
 
5775
        pgcc*)                          # Portland Group C compiler
 
5776
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5777
          tmp_addflag=' $pic_flag'
 
5778
          ;;
 
5779
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5780
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5781
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5782
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5783
          tmp_addflag=' -i_dynamic' ;;
 
5784
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5785
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5786
        ifc* | ifort*)                  # Intel Fortran compiler
 
5787
          tmp_addflag=' -nofor_main' ;;
 
5788
        esac
 
5789
        case `$CC -V 2>&1 | sed 5q` in
 
5790
        *Sun\ C*)                       # Sun C 5.9
 
5791
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5792
          tmp_sharedflag='-G' ;;
 
5793
        *Sun\ F*)                       # Sun Fortran 8.3
 
5794
          tmp_sharedflag='-G' ;;
 
5795
        *)
 
5796
          tmp_sharedflag='-shared' ;;
 
5797
        esac
 
5798
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5799
 
 
5800
        if test $supports_anon_versioning = yes; then
 
5801
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5802
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5803
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5804
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5805
        fi
 
5806
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5807
      else
 
5808
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5809
      fi
 
5810
      ;;
 
5811
 
 
5812
    netbsd* | netbsdelf*-gnu)
6102
5813
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6103
5814
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6104
5815
        wlarc=
6108
5819
      fi
6109
5820
      ;;
6110
5821
 
6111
 
    solaris* | sysv5*)
 
5822
    solaris*)
6112
5823
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6113
5824
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6114
5825
        cat <<EOF 1>&2
6129
5840
      fi
6130
5841
      ;;
6131
5842
 
 
5843
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5844
      case `$LD -v 2>&1` in
 
5845
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5846
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5847
        cat <<_LT_EOF 1>&2
 
5848
 
 
5849
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5850
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5851
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5852
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5853
*** your PATH or compiler configuration so that the native linker is
 
5854
*** used, and then restart.
 
5855
 
 
5856
_LT_EOF
 
5857
        ;;
 
5858
        *)
 
5859
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5860
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5861
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5862
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5863
          else
 
5864
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5865
          fi
 
5866
        ;;
 
5867
      esac
 
5868
      ;;
 
5869
 
6132
5870
    sunos4*)
6133
5871
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6134
5872
      wlarc=
6136
5874
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6137
5875
      ;;
6138
5876
 
6139
 
  linux*)
6140
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6141
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6142
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6143
 
      supports_anon_versioning=no
6144
 
      case `$LD -v 2>/dev/null` in
6145
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6146
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6147
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6148
 
        *\ 2.11.*) ;; # other 2.11 versions
6149
 
        *) supports_anon_versioning=yes ;;
6150
 
      esac
6151
 
      if test $supports_anon_versioning = yes; then
6152
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6153
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6154
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6155
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6156
 
      else
6157
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6158
 
      fi
6159
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6160
 
    else
6161
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6162
 
    fi
6163
 
    ;;
6164
 
 
6165
5877
    *)
6166
5878
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6167
5879
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6172
5884
      ;;
6173
5885
    esac
6174
5886
 
6175
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6176
 
      runpath_var=LD_RUN_PATH
6177
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6178
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6179
 
      # ancient GNU ld didn't support --whole-archive et. al.
6180
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6181
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6182
 
      else
6183
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6184
 
      fi
 
5887
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5888
      runpath_var=
 
5889
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5890
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5891
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6185
5892
    fi
6186
5893
  else
6187
5894
    # PORTME fill in a description of your system's linker (not GNU ld)
6193
5900
      # Note: this linker hardcodes the directories in LIBPATH if there
6194
5901
      # are no directories specified by -L.
6195
5902
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6196
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5903
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6197
5904
        # Neither direct hardcoding nor static linking is supported with a
6198
5905
        # broken collect2.
6199
5906
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6200
5907
      fi
6201
5908
      ;;
6202
5909
 
6203
 
    aix4* | aix5*)
 
5910
    aix[[4-9]]*)
6204
5911
      if test "$host_cpu" = ia64; then
6205
5912
        # On IA64, the linker does run time linking by default, so we don't
6206
5913
        # have to do anything special.
6220
5927
        # Test if we are trying to use run time linking or normal
6221
5928
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6222
5929
        # need to do runtime linking.
6223
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5930
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6224
5931
          for ld_flag in $LDFLAGS; do
6225
5932
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6226
5933
            aix_use_runtimelinking=yes
6227
5934
            break
6228
5935
          fi
6229
5936
          done
 
5937
          ;;
6230
5938
        esac
6231
5939
 
6232
5940
        exp_sym_flag='-bexport'
6245
5953
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6246
5954
 
6247
5955
      if test "$GCC" = yes; then
6248
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5956
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6249
5957
        # We only want to do this on AIX 4.2 and lower, the check
6250
5958
        # below for broken collect2 doesn't work under 4.3+
6251
5959
          collect2name=`${CC} -print-prog-name=collect2`
6253
5961
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6254
5962
          then
6255
5963
          # We have reworked collect2
6256
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5964
          :
6257
5965
          else
6258
5966
          # We have old collect2
6259
5967
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6264
5972
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6265
5973
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6266
5974
          fi
 
5975
          ;;
6267
5976
        esac
6268
5977
        shared_flag='-shared'
 
5978
        if test "$aix_use_runtimelinking" = yes; then
 
5979
          shared_flag="$shared_flag "'${wl}-G'
 
5980
        fi
6269
5981
      else
6270
5982
        # not using gcc
6271
5983
        if test "$host_cpu" = ia64; then
6273
5985
        # chokes on -Wl,-G. The following line is correct:
6274
5986
          shared_flag='-G'
6275
5987
        else
6276
 
        if test "$aix_use_runtimelinking" = yes; then
 
5988
          if test "$aix_use_runtimelinking" = yes; then
6277
5989
            shared_flag='${wl}-G'
6278
5990
          else
6279
5991
            shared_flag='${wl}-bM:SRE'
6280
 
        fi
 
5992
          fi
6281
5993
        fi
6282
5994
      fi
6283
5995
 
6291
6003
       # Determine the default libpath from the value encoded in an empty executable.
6292
6004
       _LT_AC_SYS_LIBPATH_AIX
6293
6005
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6294
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6006
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6295
6007
       else
6296
6008
        if test "$host_cpu" = ia64; then
6297
6009
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6298
6010
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6299
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6011
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6300
6012
        else
6301
6013
         # Determine the default libpath from the value encoded in an empty executable.
6302
6014
         _LT_AC_SYS_LIBPATH_AIX
6305
6017
          # -berok will link without error, but may produce a broken library.
6306
6018
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6307
6019
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6308
 
          # -bexpall does not export symbols beginning with underscore (_)
6309
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6310
6020
          # Exported symbols can be pulled into shared objects from archives
6311
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
6021
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6312
6022
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6313
 
          # This is similar to how AIX traditionally builds it's shared libraries.
6314
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6023
          # This is similar to how AIX traditionally builds its shared libraries.
 
6024
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6315
6025
        fi
6316
6026
      fi
6317
6027
      ;;
6324
6034
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6325
6035
      ;;
6326
6036
 
6327
 
    bsdi4*)
 
6037
    bsdi[[45]]*)
6328
6038
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6329
6039
      ;;
6330
6040
 
6344
6054
      # The linker will automatically build a .lib file if we build a DLL.
6345
6055
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6346
6056
      # FIXME: Should let the user specify the lib program.
6347
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6348
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6057
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6058
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6349
6059
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6350
6060
      ;;
6351
6061
 
6352
6062
    darwin* | rhapsody*)
6353
 
    if test "$GXX" = yes ; then
 
6063
      case $host_os in
 
6064
        rhapsody* | darwin1.[[012]])
 
6065
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6066
         ;;
 
6067
       *) # Darwin 1.3 on
 
6068
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6069
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6070
         else
 
6071
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6072
             10.[[012]])
 
6073
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6074
               ;;
 
6075
             10.*)
 
6076
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6077
               ;;
 
6078
           esac
 
6079
         fi
 
6080
         ;;
 
6081
      esac
6354
6082
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6355
 
      case "$host_os" in
6356
 
      rhapsody* | darwin1.[[012]])
6357
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6358
 
        ;;
6359
 
      *) # Darwin 1.3 on
6360
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6361
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6362
 
      else
6363
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
6364
 
          10.[[012]])
6365
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6366
 
            ;;
6367
 
          10.*)
6368
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6369
 
            ;;
6370
 
        esac
6371
 
      fi
6372
 
        ;;
6373
 
      esac
6374
 
        lt_int_apple_cc_single_mod=no
 
6083
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6084
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6085
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6086
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6087
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6088
    if test "$GCC" = yes ; then
6375
6089
        output_verbose_link_cmd='echo'
6376
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6377
 
          lt_int_apple_cc_single_mod=yes
6378
 
        fi
6379
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6380
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6381
 
        else
6382
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
6383
 
      fi
6384
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6385
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6386
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6387
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6388
 
        else
6389
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6390
 
        fi
 
6090
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
6091
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6092
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
6093
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
6094
    else
 
6095
      case $cc_basename in
 
6096
        xlc*)
 
6097
         output_verbose_link_cmd='echo'
 
6098
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
6099
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6100
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6101
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6391
6102
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6392
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6393
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6394
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6395
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6396
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6397
 
    else
6398
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6103
          ;;
 
6104
       *)
 
6105
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6106
          ;;
 
6107
      esac
6399
6108
    fi
6400
6109
      ;;
6401
6110
 
6429
6138
      ;;
6430
6139
 
6431
6140
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6432
 
    freebsd* | kfreebsd*-gnu)
 
6141
    freebsd* | dragonfly*)
6433
6142
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6434
6143
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6435
6144
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6452
6161
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6453
6162
      ;;
6454
6163
 
6455
 
    hpux10* | hpux11*)
6456
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6457
 
        case "$host_cpu" in
6458
 
        hppa*64*|ia64*)
 
6164
    hpux10*)
 
6165
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6166
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6167
      else
 
6168
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6169
      fi
 
6170
      if test "$with_gnu_ld" = no; then
 
6171
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6172
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6173
 
 
6174
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6175
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6176
 
 
6177
        # hardcode_minus_L: Not really in the search PATH,
 
6178
        # but as the default location of the library.
 
6179
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6180
      fi
 
6181
      ;;
 
6182
 
 
6183
    hpux11*)
 
6184
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6185
        case $host_cpu in
 
6186
        hppa*64*)
6459
6187
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6460
6188
          ;;
 
6189
        ia64*)
 
6190
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6191
          ;;
6461
6192
        *)
6462
6193
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6463
6194
          ;;
6464
6195
        esac
6465
6196
      else
6466
 
        case "$host_cpu" in
6467
 
        hppa*64*|ia64*)
6468
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6197
        case $host_cpu in
 
6198
        hppa*64*)
 
6199
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6200
          ;;
 
6201
        ia64*)
 
6202
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6469
6203
          ;;
6470
6204
        *)
6471
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6205
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6472
6206
          ;;
6473
6207
        esac
6474
6208
      fi
6475
6209
      if test "$with_gnu_ld" = no; then
6476
 
        case "$host_cpu" in
6477
 
        hppa*64*)
6478
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6210
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6211
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6212
 
 
6213
        case $host_cpu in
 
6214
        hppa*64*|ia64*)
6479
6215
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6480
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6481
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6482
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6483
 
          ;;
6484
 
        ia64*)
6485
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6486
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6487
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6488
 
 
6489
 
          # hardcode_minus_L: Not really in the search PATH,
6490
 
          # but as the default location of the library.
6491
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6216
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6217
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6492
6218
          ;;
6493
6219
        *)
6494
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6495
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6496
6220
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6497
6221
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6498
6222
 
6516
6240
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6517
6241
      ;;
6518
6242
 
6519
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6243
    netbsd* | netbsdelf*-gnu)
6520
6244
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6521
6245
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6522
6246
      else
6536
6260
      ;;
6537
6261
 
6538
6262
    openbsd*)
6539
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6540
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6541
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6542
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6543
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6544
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6263
      if test -f /usr/libexec/ld.so; then
 
6264
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6265
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6266
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6267
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6268
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6269
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6270
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6271
        else
 
6272
          case $host_os in
 
6273
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6274
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6275
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6276
             ;;
 
6277
           *)
 
6278
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6279
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6280
             ;;
 
6281
          esac
 
6282
        fi
6545
6283
      else
6546
 
       case $host_os in
6547
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6548
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6549
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6550
 
           ;;
6551
 
         *)
6552
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6553
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6554
 
           ;;
6555
 
       esac
 
6284
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6556
6285
      fi
6557
6286
      ;;
6558
6287
 
6585
6314
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6586
6315
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6587
6316
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6588
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6317
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6589
6318
 
6590
6319
        # Both c and cxx compiler support -rpath directly
6591
6320
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6593
6322
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6594
6323
      ;;
6595
6324
 
6596
 
    sco3.2v5*)
6597
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6598
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6599
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6600
 
      runpath_var=LD_RUN_PATH
6601
 
      hardcode_runpath_var=yes
6602
 
      ;;
6603
 
 
6604
6325
    solaris*)
6605
6326
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6606
6327
      if test "$GCC" = yes; then
 
6328
        wlarc='${wl}'
6607
6329
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6608
6330
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6609
6331
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6610
6332
      else
 
6333
        wlarc=''
6611
6334
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6612
6335
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6613
6336
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6616
6339
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6617
6340
      case $host_os in
6618
6341
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6619
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6620
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6342
      *)
 
6343
        # The compiler driver will combine and reorder linker options,
 
6344
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6345
        # but is careful enough not to reorder.
 
6346
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6347
        if test "$GCC" = yes; then
 
6348
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6349
        else
 
6350
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6351
        fi
 
6352
        ;;
6621
6353
      esac
6622
6354
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6623
6355
      ;;
6674
6406
      fi
6675
6407
      ;;
6676
6408
 
6677
 
    sysv4.2uw2*)
6678
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6679
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6680
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6681
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6682
 
      hardcode_runpath_var=yes
6683
 
      runpath_var=LD_RUN_PATH
6684
 
      ;;
6685
 
 
6686
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
6687
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6688
 
      if test "$GCC" = yes; then
6689
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6690
 
      else
6691
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6692
 
      fi
6693
 
      runpath_var='LD_RUN_PATH'
6694
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6695
 
      ;;
6696
 
 
6697
 
    sysv5*)
6698
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6699
 
      # $CC -shared without GNU ld will not create a library from C++
6700
 
      # object files and a static libstdc++, better avoid it by now
6701
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6702
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6703
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6704
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6705
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6706
 
      runpath_var='LD_RUN_PATH'
 
6409
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6410
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6411
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6412
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6413
      runpath_var='LD_RUN_PATH'
 
6414
 
 
6415
      if test "$GCC" = yes; then
 
6416
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6417
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6418
      else
 
6419
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6420
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6421
      fi
 
6422
      ;;
 
6423
 
 
6424
    sysv5* | sco3.2v5* | sco5v6*)
 
6425
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6426
      # link with -lc, and that would cause any symbols used from libc to
 
6427
      # always be unresolved, which means just about no library would
 
6428
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6429
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6430
      # as -z defs.
 
6431
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6432
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6433
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6434
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6435
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6436
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6437
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6438
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6439
      runpath_var='LD_RUN_PATH'
 
6440
 
 
6441
      if test "$GCC" = yes; then
 
6442
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6443
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6444
      else
 
6445
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6446
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6447
      fi
6707
6448
      ;;
6708
6449
 
6709
6450
    uts4*)
6721
6462
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6722
6463
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6723
6464
 
6724
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6725
 
if test "$GCC" = yes; then
6726
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6727
 
fi
6728
 
 
6729
6465
#
6730
6466
# Do we need to explicitly link libc?
6731
6467
#
6745
6481
      # to ld, don't add -lc before -lgcc.
6746
6482
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6747
6483
      $rm conftest*
6748
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6484
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6749
6485
 
6750
6486
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6751
6487
        soname=conftest
6753
6489
        libobjs=conftest.$ac_objext
6754
6490
        deplibs=
6755
6491
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6492
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6756
6493
        compiler_flags=-v
6757
6494
        linker_flags=-v
6758
6495
        verstring=
6847
6584
[AC_CHECK_TOOL(RC, windres, no)
6848
6585
])
6849
6586
 
 
6587
 
 
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6590
 
 
6591
# _AS_TEST_PREPARE
 
6592
# ----------------
 
6593
m4_ifndef([_AS_TEST_PREPARE],
 
6594
[m4_defun([_AS_TEST_PREPARE],
 
6595
[if test -x / >/dev/null 2>&1; then
 
6596
  as_executable_p='test -x'
 
6597
else
 
6598
  as_executable_p='test -f'
 
6599
fi
 
6600
])])# _AS_TEST_PREPARE
 
6601
 
 
6602
# AS_EXECUTABLE_P
 
6603
# ---------------
 
6604
# Check whether a file is executable.
 
6605
m4_ifndef([AS_EXECUTABLE_P],
 
6606
[m4_defun([AS_EXECUTABLE_P],
 
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6608
$as_executable_p $1[]dnl
 
6609
])])# AS_EXECUTABLE_P
 
6610
 
6850
6611
# NOTE: This macro has been submitted for inclusion into   #
6851
6612
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6852
6613
#  a released version of Autoconf we should remove this    #
6867
6628
  test -z "$as_dir" && as_dir=.
6868
6629
  for lt_ac_prog in sed gsed; do
6869
6630
    for ac_exec_ext in '' $ac_executable_extensions; do
6870
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6631
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6871
6632
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6872
6633
      fi
6873
6634
    done
6874
6635
  done
6875
6636
done
 
6637
IFS=$as_save_IFS
6876
6638
lt_ac_max=0
6877
6639
lt_ac_count=0
6878
6640
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6879
6641
# along with /bin/sed that truncates output.
6880
6642
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6881
 
  test ! -f $lt_ac_sed && break
 
6643
  test ! -f $lt_ac_sed && continue
6882
6644
  cat /dev/null > conftest.in
6883
6645
  lt_ac_count=0
6884
6646
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6903
6665
    fi
6904
6666
  done
6905
6667
done
 
6668
])
6906
6669
SED=$lt_cv_path_SED
6907
 
])
 
6670
AC_SUBST([SED])
6908
6671
AC_MSG_RESULT([$SED])
6909
6672
])
6910
6673
 
 
6674
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
6675
#
 
6676
# This file is free software; the Free Software Foundation
 
6677
# gives unlimited permission to copy and/or distribute it,
 
6678
# with or without modifications, as long as this notice is preserved.
 
6679
 
 
6680
# AM_AUTOMAKE_VERSION(VERSION)
 
6681
# ----------------------------
 
6682
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
6683
# generated from the m4 files accompanying Automake X.Y.
 
6684
# (This private macro should not be called outside this file.)
 
6685
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
6686
[am__api_version='1.10'
 
6687
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
6688
dnl require some minimum version.  Point them to the right macro.
 
6689
m4_if([$1], [1.10.1], [],
 
6690
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
6691
])
 
6692
 
 
6693
# _AM_AUTOCONF_VERSION(VERSION)
 
6694
# -----------------------------
 
6695
# aclocal traces this macro to find the Autoconf version.
 
6696
# This is a private macro too.  Using m4_define simplifies
 
6697
# the logic in aclocal, which can simply ignore this definition.
 
6698
m4_define([_AM_AUTOCONF_VERSION], [])
 
6699
 
 
6700
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
6701
# -------------------------------
 
6702
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
6703
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
6704
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
6705
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
6706
m4_ifndef([AC_AUTOCONF_VERSION],
 
6707
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
6708
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
6709
 
 
6710
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
6711
 
 
6712
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
6713
#
 
6714
# This file is free software; the Free Software Foundation
 
6715
# gives unlimited permission to copy and/or distribute it,
 
6716
# with or without modifications, as long as this notice is preserved.
 
6717
 
 
6718
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
6719
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
6720
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
6721
#
 
6722
# Of course, Automake must honor this variable whenever it calls a
 
6723
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
6724
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
6725
# depending on how configure is run.  This is pretty annoying, since
 
6726
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
6727
# source directory, any form will work fine, but in subdirectories a
 
6728
# relative path needs to be adjusted first.
 
6729
#
 
6730
# $ac_aux_dir/missing
 
6731
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
6732
# $top_srcdir/$ac_aux_dir/missing
 
6733
#    fails if $ac_aux_dir is absolute,
 
6734
#    fails when called from a subdirectory in a VPATH build with
 
6735
#          a relative $ac_aux_dir
 
6736
#
 
6737
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
6738
# are both prefixed by $srcdir.  In an in-source build this is usually
 
6739
# harmless because $srcdir is `.', but things will broke when you
 
6740
# start a VPATH build or use an absolute $srcdir.
 
6741
#
 
6742
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
6743
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
6744
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
6745
# and then we would define $MISSING as
 
6746
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
6747
# This will work as long as MISSING is not called from configure, because
 
6748
# unfortunately $(top_srcdir) has no meaning in configure.
 
6749
# However there are other variables, like CC, which are often used in
 
6750
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
6751
#
 
6752
# Another solution, used here, is to always expand $ac_aux_dir to an
 
6753
# absolute PATH.  The drawback is that using absolute paths prevent a
 
6754
# configured tree to be moved without reconfiguration.
 
6755
 
 
6756
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
6757
[dnl Rely on autoconf to set up CDPATH properly.
 
6758
AC_PREREQ([2.50])dnl
 
6759
# expand $ac_aux_dir to an absolute path
 
6760
am_aux_dir=`cd $ac_aux_dir && pwd`
 
6761
])
 
6762
 
 
6763
 
 
6764
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
 
6765
# Free Software Foundation, Inc.
 
6766
#
 
6767
# This file is free software; the Free Software Foundation
 
6768
# gives unlimited permission to copy and/or distribute it,
 
6769
# with or without modifications, as long as this notice is preserved.
 
6770
 
 
6771
# serial 4
 
6772
 
 
6773
# This was merged into AC_PROG_CC in Autoconf.
 
6774
 
 
6775
AU_DEFUN([AM_PROG_CC_STDC],
 
6776
[AC_PROG_CC
 
6777
AC_DIAGNOSE([obsolete], [$0:
 
6778
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
 
6779
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
 
6780
        you adjust the code.  You can also remove the above call to
 
6781
        AC_PROG_CC if you already called it elsewhere.])
 
6782
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
6783
])
 
6784
AU_DEFUN([fp_PROG_CC_STDC])
 
6785
 
 
6786
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
6787
 
 
6788
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
6789
# Free Software Foundation, Inc.
 
6790
#
 
6791
# This file is free software; the Free Software Foundation
 
6792
# gives unlimited permission to copy and/or distribute it,
 
6793
# with or without modifications, as long as this notice is preserved.
 
6794
 
 
6795
# serial 8
 
6796
 
 
6797
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
6798
# -------------------------------------
 
6799
# Define a conditional.
 
6800
AC_DEFUN([AM_CONDITIONAL],
 
6801
[AC_PREREQ(2.52)dnl
 
6802
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
6803
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
6804
AC_SUBST([$1_TRUE])dnl
 
6805
AC_SUBST([$1_FALSE])dnl
 
6806
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
6807
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
6808
if $2; then
 
6809
  $1_TRUE=
 
6810
  $1_FALSE='#'
 
6811
else
 
6812
  $1_TRUE='#'
 
6813
  $1_FALSE=
 
6814
fi
 
6815
AC_CONFIG_COMMANDS_PRE(
 
6816
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
6817
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
6818
Usually this means the macro was only invoked conditionally.]])
 
6819
fi])])
 
6820
 
 
6821
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
6822
# Free Software Foundation, Inc.
 
6823
#
 
6824
# This file is free software; the Free Software Foundation
 
6825
# gives unlimited permission to copy and/or distribute it,
 
6826
# with or without modifications, as long as this notice is preserved.
 
6827
 
 
6828
# serial 9
 
6829
 
 
6830
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
6831
# written in clear, in which case automake, when reading aclocal.m4,
 
6832
# will think it sees a *use*, and therefore will trigger all it's
 
6833
# C support machinery.  Also note that it means that autoscan, seeing
 
6834
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
6835
 
 
6836
 
 
6837
# _AM_DEPENDENCIES(NAME)
 
6838
# ----------------------
 
6839
# See how the compiler implements dependency checking.
 
6840
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
6841
# We try a few techniques and use that to set a single cache variable.
 
6842
#
 
6843
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
6844
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
6845
# dependency, and given that the user is not expected to run this macro,
 
6846
# just rely on AC_PROG_CC.
 
6847
AC_DEFUN([_AM_DEPENDENCIES],
 
6848
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
6849
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
6850
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
6851
AC_REQUIRE([AM_DEP_TRACK])dnl
 
6852
 
 
6853
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
6854
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
6855
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
6856
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
6857
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
6858
                   [depcc="$$1"   am_compiler_list=])
 
6859
 
 
6860
AC_CACHE_CHECK([dependency style of $depcc],
 
6861
               [am_cv_$1_dependencies_compiler_type],
 
6862
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6863
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6864
  # making bogus files that we don't know about and never remove.  For
 
6865
  # instance it was reported that on HP-UX the gcc test will end up
 
6866
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6867
  # in D'.
 
6868
  mkdir conftest.dir
 
6869
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6870
  # using a relative directory.
 
6871
  cp "$am_depcomp" conftest.dir
 
6872
  cd conftest.dir
 
6873
  # We will build objects and dependencies in a subdirectory because
 
6874
  # it helps to detect inapplicable dependency modes.  For instance
 
6875
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6876
  # side effect of compilation, but ICC will put the dependencies in
 
6877
  # the current directory while Tru64 will put them in the object
 
6878
  # directory.
 
6879
  mkdir sub
 
6880
 
 
6881
  am_cv_$1_dependencies_compiler_type=none
 
6882
  if test "$am_compiler_list" = ""; then
 
6883
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
6884
  fi
 
6885
  for depmode in $am_compiler_list; do
 
6886
    # Setup a source with many dependencies, because some compilers
 
6887
    # like to wrap large dependency lists on column 80 (with \), and
 
6888
    # we should not choose a depcomp mode which is confused by this.
 
6889
    #
 
6890
    # We need to recreate these files for each test, as the compiler may
 
6891
    # overwrite some of them when testing with obscure command lines.
 
6892
    # This happens at least with the AIX C compiler.
 
6893
    : > sub/conftest.c
 
6894
    for i in 1 2 3 4 5 6; do
 
6895
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6896
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6897
      # Solaris 8's {/usr,}/bin/sh.
 
6898
      touch sub/conftst$i.h
 
6899
    done
 
6900
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6901
 
 
6902
    case $depmode in
 
6903
    nosideeffect)
 
6904
      # after this tag, mechanisms are not by side-effect, so they'll
 
6905
      # only be used when explicitly requested
 
6906
      if test "x$enable_dependency_tracking" = xyes; then
 
6907
        continue
 
6908
      else
 
6909
        break
 
6910
      fi
 
6911
      ;;
 
6912
    none) break ;;
 
6913
    esac
 
6914
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6915
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6916
    # handle `-M -o', and we need to detect this.
 
6917
    if depmode=$depmode \
 
6918
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6919
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6920
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6921
         >/dev/null 2>conftest.err &&
 
6922
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6923
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6924
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6925
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6926
      # icc doesn't choke on unknown options, it will just issue warnings
 
6927
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6928
      # that says an option was ignored or not supported.
 
6929
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6930
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6931
      # The diagnosis changed in icc 8.0:
 
6932
      #   icc: Command line remark: option '-MP' not supported
 
6933
      if (grep 'ignoring option' conftest.err ||
 
6934
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6935
        am_cv_$1_dependencies_compiler_type=$depmode
 
6936
        break
 
6937
      fi
 
6938
    fi
 
6939
  done
 
6940
 
 
6941
  cd ..
 
6942
  rm -rf conftest.dir
 
6943
else
 
6944
  am_cv_$1_dependencies_compiler_type=none
 
6945
fi
 
6946
])
 
6947
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
6948
AM_CONDITIONAL([am__fastdep$1], [
 
6949
  test "x$enable_dependency_tracking" != xno \
 
6950
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
6951
])
 
6952
 
 
6953
 
 
6954
# AM_SET_DEPDIR
 
6955
# -------------
 
6956
# Choose a directory name for dependency files.
 
6957
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
6958
AC_DEFUN([AM_SET_DEPDIR],
 
6959
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
6960
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
6961
])
 
6962
 
 
6963
 
 
6964
# AM_DEP_TRACK
 
6965
# ------------
 
6966
AC_DEFUN([AM_DEP_TRACK],
 
6967
[AC_ARG_ENABLE(dependency-tracking,
 
6968
[  --disable-dependency-tracking  speeds up one-time build
 
6969
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
6970
if test "x$enable_dependency_tracking" != xno; then
 
6971
  am_depcomp="$ac_aux_dir/depcomp"
 
6972
  AMDEPBACKSLASH='\'
 
6973
fi
 
6974
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
6975
AC_SUBST([AMDEPBACKSLASH])dnl
 
6976
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
6977
])
 
6978
 
 
6979
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
6980
 
 
6981
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
6982
# Free Software Foundation, Inc.
 
6983
#
 
6984
# This file is free software; the Free Software Foundation
 
6985
# gives unlimited permission to copy and/or distribute it,
 
6986
# with or without modifications, as long as this notice is preserved.
 
6987
 
 
6988
#serial 3
 
6989
 
 
6990
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
6991
# ------------------------------
 
6992
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
6993
[for mf in $CONFIG_FILES; do
 
6994
  # Strip MF so we end up with the name of the file.
 
6995
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
6996
  # Check whether this is an Automake generated Makefile or not.
 
6997
  # We used to match only the files named `Makefile.in', but
 
6998
  # some people rename them; so instead we look at the file content.
 
6999
  # Grep'ing the first line is not enough: some people post-process
 
7000
  # each Makefile.in and add a new line on top of each file to say so.
 
7001
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7002
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7003
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
7004
    dirpart=`AS_DIRNAME("$mf")`
 
7005
  else
 
7006
    continue
 
7007
  fi
 
7008
  # Extract the definition of DEPDIR, am__include, and am__quote
 
7009
  # from the Makefile without running `make'.
 
7010
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
7011
  test -z "$DEPDIR" && continue
 
7012
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7013
  test -z "am__include" && continue
 
7014
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
7015
  # When using ansi2knr, U may be empty or an underscore; expand it
 
7016
  U=`sed -n 's/^U = //p' < "$mf"`
 
7017
  # Find all dependency output files, they are included files with
 
7018
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7019
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
7020
  # expansion.
 
7021
  for file in `sed -n "
 
7022
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7023
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7024
    # Make sure the directory exists.
 
7025
    test -f "$dirpart/$file" && continue
 
7026
    fdir=`AS_DIRNAME(["$file"])`
 
7027
    AS_MKDIR_P([$dirpart/$fdir])
 
7028
    # echo "creating $dirpart/$file"
 
7029
    echo '# dummy' > "$dirpart/$file"
 
7030
  done
 
7031
done
 
7032
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
7033
 
 
7034
 
 
7035
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
7036
# -----------------------------
 
7037
# This macro should only be invoked once -- use via AC_REQUIRE.
 
7038
#
 
7039
# This code is only required when automatic dependency tracking
 
7040
# is enabled.  FIXME.  This creates each `.P' file that we will
 
7041
# need in order to bootstrap the dependency handling code.
 
7042
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7043
[AC_CONFIG_COMMANDS([depfiles],
 
7044
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
7045
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
7046
])
 
7047
 
 
7048
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7049
# Free Software Foundation, Inc.
 
7050
#
 
7051
# This file is free software; the Free Software Foundation
 
7052
# gives unlimited permission to copy and/or distribute it,
 
7053
# with or without modifications, as long as this notice is preserved.
 
7054
 
 
7055
# serial 8
 
7056
 
 
7057
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
7058
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
7059
 
 
7060
# Do all the work for Automake.                             -*- Autoconf -*-
 
7061
 
 
7062
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
7063
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
7064
#
 
7065
# This file is free software; the Free Software Foundation
 
7066
# gives unlimited permission to copy and/or distribute it,
 
7067
# with or without modifications, as long as this notice is preserved.
 
7068
 
 
7069
# serial 13
 
7070
 
 
7071
# This macro actually does too much.  Some checks are only needed if
 
7072
# your package does certain things.  But this isn't really a big deal.
 
7073
 
 
7074
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
7075
# AM_INIT_AUTOMAKE([OPTIONS])
 
7076
# -----------------------------------------------
 
7077
# The call with PACKAGE and VERSION arguments is the old style
 
7078
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
7079
# and VERSION should now be passed to AC_INIT and removed from
 
7080
# the call to AM_INIT_AUTOMAKE.
 
7081
# We support both call styles for the transition.  After
 
7082
# the next Automake release, Autoconf can make the AC_INIT
 
7083
# arguments mandatory, and then we can depend on a new Autoconf
 
7084
# release and drop the old call support.
 
7085
AC_DEFUN([AM_INIT_AUTOMAKE],
 
7086
[AC_PREREQ([2.60])dnl
 
7087
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
7088
dnl the ones we care about.
 
7089
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
7090
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
7091
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
7092
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
7093
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
7094
  # is not polluted with repeated "-I."
 
7095
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
7096
  # test to see if srcdir already configured
 
7097
  if test -f $srcdir/config.status; then
 
7098
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
7099
  fi
 
7100
fi
 
7101
 
 
7102
# test whether we have cygpath
 
7103
if test -z "$CYGPATH_W"; then
 
7104
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
7105
    CYGPATH_W='cygpath -w'
 
7106
  else
 
7107
    CYGPATH_W=echo
 
7108
  fi
 
7109
fi
 
7110
AC_SUBST([CYGPATH_W])
 
7111
 
 
7112
# Define the identity of the package.
 
7113
dnl Distinguish between old-style and new-style calls.
 
7114
m4_ifval([$2],
 
7115
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
7116
 AC_SUBST([PACKAGE], [$1])dnl
 
7117
 AC_SUBST([VERSION], [$2])],
 
7118
[_AM_SET_OPTIONS([$1])dnl
 
7119
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
7120
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
7121
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
7122
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
7123
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
7124
 
 
7125
_AM_IF_OPTION([no-define],,
 
7126
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
7127
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
7128
 
 
7129
# Some tools Automake needs.
 
7130
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
7131
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
7132
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
7133
AM_MISSING_PROG(AUTOCONF, autoconf)
 
7134
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
7135
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
7136
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
7137
AM_PROG_INSTALL_SH
 
7138
AM_PROG_INSTALL_STRIP
 
7139
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
7140
# We need awk for the "check" target.  The system "awk" is bad on
 
7141
# some platforms.
 
7142
AC_REQUIRE([AC_PROG_AWK])dnl
 
7143
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
7144
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
7145
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
7146
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7147
                             [_AM_PROG_TAR([v7])])])
 
7148
_AM_IF_OPTION([no-dependencies],,
 
7149
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
7150
                  [_AM_DEPENDENCIES(CC)],
 
7151
                  [define([AC_PROG_CC],
 
7152
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
7153
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
7154
                  [_AM_DEPENDENCIES(CXX)],
 
7155
                  [define([AC_PROG_CXX],
 
7156
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7157
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
7158
                  [_AM_DEPENDENCIES(OBJC)],
 
7159
                  [define([AC_PROG_OBJC],
 
7160
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
7161
])
 
7162
])
 
7163
 
 
7164
 
 
7165
# When config.status generates a header, we must update the stamp-h file.
 
7166
# This file resides in the same directory as the config header
 
7167
# that is generated.  The stamp files are numbered to have different names.
 
7168
 
 
7169
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
7170
# loop where config.status creates the headers, so we can generate
 
7171
# our stamp files there.
 
7172
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
7173
[# Compute $1's index in $config_headers.
 
7174
_am_arg=$1
 
7175
_am_stamp_count=1
 
7176
for _am_header in $config_headers :; do
 
7177
  case $_am_header in
 
7178
    $_am_arg | $_am_arg:* )
 
7179
      break ;;
 
7180
    * )
 
7181
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
7182
  esac
 
7183
done
 
7184
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
7185
 
 
7186
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7187
#
 
7188
# This file is free software; the Free Software Foundation
 
7189
# gives unlimited permission to copy and/or distribute it,
 
7190
# with or without modifications, as long as this notice is preserved.
 
7191
 
 
7192
# AM_PROG_INSTALL_SH
 
7193
# ------------------
 
7194
# Define $install_sh.
 
7195
AC_DEFUN([AM_PROG_INSTALL_SH],
 
7196
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7197
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
7198
AC_SUBST(install_sh)])
 
7199
 
 
7200
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
7201
#
 
7202
# This file is free software; the Free Software Foundation
 
7203
# gives unlimited permission to copy and/or distribute it,
 
7204
# with or without modifications, as long as this notice is preserved.
 
7205
 
 
7206
# serial 2
 
7207
 
 
7208
# Check whether the underlying file-system supports filenames
 
7209
# with a leading dot.  For instance MS-DOS doesn't.
 
7210
AC_DEFUN([AM_SET_LEADING_DOT],
 
7211
[rm -rf .tst 2>/dev/null
 
7212
mkdir .tst 2>/dev/null
 
7213
if test -d .tst; then
 
7214
  am__leading_dot=.
 
7215
else
 
7216
  am__leading_dot=_
 
7217
fi
 
7218
rmdir .tst 2>/dev/null
 
7219
AC_SUBST([am__leading_dot])])
 
7220
 
 
7221
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
7222
 
 
7223
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7224
#
 
7225
# This file is free software; the Free Software Foundation
 
7226
# gives unlimited permission to copy and/or distribute it,
 
7227
# with or without modifications, as long as this notice is preserved.
 
7228
 
 
7229
# serial 3
 
7230
 
 
7231
# AM_MAKE_INCLUDE()
 
7232
# -----------------
 
7233
# Check to see how make treats includes.
 
7234
AC_DEFUN([AM_MAKE_INCLUDE],
 
7235
[am_make=${MAKE-make}
 
7236
cat > confinc << 'END'
 
7237
am__doit:
 
7238
        @echo done
 
7239
.PHONY: am__doit
 
7240
END
 
7241
# If we don't find an include directive, just comment out the code.
 
7242
AC_MSG_CHECKING([for style of include used by $am_make])
 
7243
am__include="#"
 
7244
am__quote=
 
7245
_am_result=none
 
7246
# First try GNU make style include.
 
7247
echo "include confinc" > confmf
 
7248
# We grep out `Entering directory' and `Leaving directory'
 
7249
# messages which can occur if `w' ends up in MAKEFLAGS.
 
7250
# In particular we don't look at `^make:' because GNU make might
 
7251
# be invoked under some other name (usually "gmake"), in which
 
7252
# case it prints its new name instead of `make'.
 
7253
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
7254
   am__include=include
 
7255
   am__quote=
 
7256
   _am_result=GNU
 
7257
fi
 
7258
# Now try BSD make style include.
 
7259
if test "$am__include" = "#"; then
 
7260
   echo '.include "confinc"' > confmf
 
7261
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
7262
      am__include=.include
 
7263
      am__quote="\""
 
7264
      _am_result=BSD
 
7265
   fi
 
7266
fi
 
7267
AC_SUBST([am__include])
 
7268
AC_SUBST([am__quote])
 
7269
AC_MSG_RESULT([$_am_result])
 
7270
rm -f confinc confmf
 
7271
])
 
7272
 
 
7273
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
7274
 
 
7275
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
7276
# Free Software Foundation, Inc.
 
7277
#
 
7278
# This file is free software; the Free Software Foundation
 
7279
# gives unlimited permission to copy and/or distribute it,
 
7280
# with or without modifications, as long as this notice is preserved.
 
7281
 
 
7282
# serial 5
 
7283
 
 
7284
# AM_MISSING_PROG(NAME, PROGRAM)
 
7285
# ------------------------------
 
7286
AC_DEFUN([AM_MISSING_PROG],
 
7287
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
7288
$1=${$1-"${am_missing_run}$2"}
 
7289
AC_SUBST($1)])
 
7290
 
 
7291
 
 
7292
# AM_MISSING_HAS_RUN
 
7293
# ------------------
 
7294
# Define MISSING if not defined so far and test if it supports --run.
 
7295
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
7296
AC_DEFUN([AM_MISSING_HAS_RUN],
 
7297
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
7298
AC_REQUIRE_AUX_FILE([missing])dnl
 
7299
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
7300
# Use eval to expand $SHELL
 
7301
if eval "$MISSING --run true"; then
 
7302
  am_missing_run="$MISSING --run "
 
7303
else
 
7304
  am_missing_run=
 
7305
  AC_MSG_WARN([`missing' script is too old or missing])
 
7306
fi
 
7307
])
 
7308
 
 
7309
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
7310
#
 
7311
# This file is free software; the Free Software Foundation
 
7312
# gives unlimited permission to copy and/or distribute it,
 
7313
# with or without modifications, as long as this notice is preserved.
 
7314
 
 
7315
# AM_PROG_MKDIR_P
 
7316
# ---------------
 
7317
# Check for `mkdir -p'.
 
7318
AC_DEFUN([AM_PROG_MKDIR_P],
 
7319
[AC_PREREQ([2.60])dnl
 
7320
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
7321
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
7322
dnl while keeping a definition of mkdir_p for backward compatibility.
 
7323
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
7324
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
7325
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
7326
dnl adjustment using top_builddir (which is defined more often than
 
7327
dnl MKDIR_P).
 
7328
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
7329
case $mkdir_p in
 
7330
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
7331
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
7332
esac
 
7333
])
 
7334
 
 
7335
# Helper functions for option handling.                     -*- Autoconf -*-
 
7336
 
 
7337
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
7338
#
 
7339
# This file is free software; the Free Software Foundation
 
7340
# gives unlimited permission to copy and/or distribute it,
 
7341
# with or without modifications, as long as this notice is preserved.
 
7342
 
 
7343
# serial 3
 
7344
 
 
7345
# _AM_MANGLE_OPTION(NAME)
 
7346
# -----------------------
 
7347
AC_DEFUN([_AM_MANGLE_OPTION],
 
7348
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
7349
 
 
7350
# _AM_SET_OPTION(NAME)
 
7351
# ------------------------------
 
7352
# Set option NAME.  Presently that only means defining a flag for this option.
 
7353
AC_DEFUN([_AM_SET_OPTION],
 
7354
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
7355
 
 
7356
# _AM_SET_OPTIONS(OPTIONS)
 
7357
# ----------------------------------
 
7358
# OPTIONS is a space-separated list of Automake options.
 
7359
AC_DEFUN([_AM_SET_OPTIONS],
 
7360
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
7361
 
 
7362
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
7363
# -------------------------------------------
 
7364
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
7365
AC_DEFUN([_AM_IF_OPTION],
 
7366
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
7367
 
 
7368
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
7369
 
 
7370
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
7371
# Free Software Foundation, Inc.
 
7372
#
 
7373
# This file is free software; the Free Software Foundation
 
7374
# gives unlimited permission to copy and/or distribute it,
 
7375
# with or without modifications, as long as this notice is preserved.
 
7376
 
 
7377
# serial 4
 
7378
 
 
7379
# AM_SANITY_CHECK
 
7380
# ---------------
 
7381
AC_DEFUN([AM_SANITY_CHECK],
 
7382
[AC_MSG_CHECKING([whether build environment is sane])
 
7383
# Just in case
 
7384
sleep 1
 
7385
echo timestamp > conftest.file
 
7386
# Do `set' in a subshell so we don't clobber the current shell's
 
7387
# arguments.  Must try -L first in case configure is actually a
 
7388
# symlink; some systems play weird games with the mod time of symlinks
 
7389
# (eg FreeBSD returns the mod time of the symlink's containing
 
7390
# directory).
 
7391
if (
 
7392
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
7393
   if test "$[*]" = "X"; then
 
7394
      # -L didn't work.
 
7395
      set X `ls -t $srcdir/configure conftest.file`
 
7396
   fi
 
7397
   rm -f conftest.file
 
7398
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
7399
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
7400
 
 
7401
      # If neither matched, then we have a broken ls.  This can happen
 
7402
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
7403
      # broken ls alias from the environment.  This has actually
 
7404
      # happened.  Such a system could not be considered "sane".
 
7405
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
7406
alias in your environment])
 
7407
   fi
 
7408
 
 
7409
   test "$[2]" = conftest.file
 
7410
   )
 
7411
then
 
7412
   # Ok.
 
7413
   :
 
7414
else
 
7415
   AC_MSG_ERROR([newly created file is older than distributed files!
 
7416
Check your system clock])
 
7417
fi
 
7418
AC_MSG_RESULT(yes)])
 
7419
 
 
7420
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
7421
#
 
7422
# This file is free software; the Free Software Foundation
 
7423
# gives unlimited permission to copy and/or distribute it,
 
7424
# with or without modifications, as long as this notice is preserved.
 
7425
 
 
7426
# AM_PROG_INSTALL_STRIP
 
7427
# ---------------------
 
7428
# One issue with vendor `install' (even GNU) is that you can't
 
7429
# specify the program used to strip binaries.  This is especially
 
7430
# annoying in cross-compiling environments, where the build's strip
 
7431
# is unlikely to handle the host's binaries.
 
7432
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
7433
# always use install-sh in `make install-strip', and initialize
 
7434
# STRIPPROG with the value of the STRIP variable (set by the user).
 
7435
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
7436
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
7437
# Installed binaries are usually stripped using `strip' when the user
 
7438
# run `make install-strip'.  However `strip' might not be the right
 
7439
# tool to use in cross-compilation environments, therefore Automake
 
7440
# will honor the `STRIP' environment variable to overrule this program.
 
7441
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
7442
if test "$cross_compiling" != no; then
 
7443
  AC_CHECK_TOOL([STRIP], [strip], :)
 
7444
fi
 
7445
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
7446
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
7447
 
 
7448
# Copyright (C) 2006  Free Software Foundation, Inc.
 
7449
#
 
7450
# This file is free software; the Free Software Foundation
 
7451
# gives unlimited permission to copy and/or distribute it,
 
7452
# with or without modifications, as long as this notice is preserved.
 
7453
 
 
7454
# _AM_SUBST_NOTMAKE(VARIABLE)
 
7455
# ---------------------------
 
7456
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
7457
# This macro is traced by Automake.
 
7458
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
7459
 
 
7460
# Check how to create a tarball.                            -*- Autoconf -*-
 
7461
 
 
7462
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
7463
#
 
7464
# This file is free software; the Free Software Foundation
 
7465
# gives unlimited permission to copy and/or distribute it,
 
7466
# with or without modifications, as long as this notice is preserved.
 
7467
 
 
7468
# serial 2
 
7469
 
 
7470
# _AM_PROG_TAR(FORMAT)
 
7471
# --------------------
 
7472
# Check how to create a tarball in format FORMAT.
 
7473
# FORMAT should be one of `v7', `ustar', or `pax'.
 
7474
#
 
7475
# Substitute a variable $(am__tar) that is a command
 
7476
# writing to stdout a FORMAT-tarball containing the directory
 
7477
# $tardir.
 
7478
#     tardir=directory && $(am__tar) > result.tar
 
7479
#
 
7480
# Substitute a variable $(am__untar) that extract such
 
7481
# a tarball read from stdin.
 
7482
#     $(am__untar) < result.tar
 
7483
AC_DEFUN([_AM_PROG_TAR],
 
7484
[# Always define AMTAR for backward compatibility.
 
7485
AM_MISSING_PROG([AMTAR], [tar])
 
7486
m4_if([$1], [v7],
 
7487
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
7488
     [m4_case([$1], [ustar],, [pax],,
 
7489
              [m4_fatal([Unknown tar format])])
 
7490
AC_MSG_CHECKING([how to create a $1 tar archive])
 
7491
# Loop over all known methods to create a tar archive until one works.
 
7492
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
7493
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
7494
# Do not fold the above two line into one, because Tru64 sh and
 
7495
# Solaris sh will not grok spaces in the rhs of `-'.
 
7496
for _am_tool in $_am_tools
 
7497
do
 
7498
  case $_am_tool in
 
7499
  gnutar)
 
7500
    for _am_tar in tar gnutar gtar;
 
7501
    do
 
7502
      AM_RUN_LOG([$_am_tar --version]) && break
 
7503
    done
 
7504
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
7505
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
7506
    am__untar="$_am_tar -xf -"
 
7507
    ;;
 
7508
  plaintar)
 
7509
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
7510
    # ustar tarball either.
 
7511
    (tar --version) >/dev/null 2>&1 && continue
 
7512
    am__tar='tar chf - "$$tardir"'
 
7513
    am__tar_='tar chf - "$tardir"'
 
7514
    am__untar='tar xf -'
 
7515
    ;;
 
7516
  pax)
 
7517
    am__tar='pax -L -x $1 -w "$$tardir"'
 
7518
    am__tar_='pax -L -x $1 -w "$tardir"'
 
7519
    am__untar='pax -r'
 
7520
    ;;
 
7521
  cpio)
 
7522
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
7523
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
7524
    am__untar='cpio -i -H $1 -d'
 
7525
    ;;
 
7526
  none)
 
7527
    am__tar=false
 
7528
    am__tar_=false
 
7529
    am__untar=false
 
7530
    ;;
 
7531
  esac
 
7532
 
 
7533
  # If the value was cached, stop now.  We just wanted to have am__tar
 
7534
  # and am__untar set.
 
7535
  test -n "${am_cv_prog_tar_$1}" && break
 
7536
 
 
7537
  # tar/untar a dummy directory, and stop if the command works
 
7538
  rm -rf conftest.dir
 
7539
  mkdir conftest.dir
 
7540
  echo GrepMe > conftest.dir/file
 
7541
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
7542
  rm -rf conftest.dir
 
7543
  if test -s conftest.tar; then
 
7544
    AM_RUN_LOG([$am__untar <conftest.tar])
 
7545
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
7546
  fi
 
7547
done
 
7548
rm -rf conftest.dir
 
7549
 
 
7550
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
7551
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
7552
AC_SUBST([am__tar])
 
7553
AC_SUBST([am__untar])
 
7554
]) # _AM_PROG_TAR
 
7555