~ubuntu-branches/ubuntu/precise/flac/precise-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2007-05-29 22:56:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529225636-ljeff8xxip09qaap
Tags: 1.1.4-1
* New upstream release. closes: #405167, #411311
  - libOggFLAC and libOggFLAC++ have been merged into libFLAC, so
    remove their corresponding packages.
  - Because of the API changes required to effect the above, there has
    been yet another soname bump. libflac7 -> libflac8 and
    libflac++5 -> libflac++6. Emails have been dispatched to the
    maintainers of dependent packages.
* Some notes on patches that were removed:
  - 02_stdin_stdout, 06_manpage_mention_utf8_convert: merged upstream
  - 08_manpage_warnings: Upstream has changed the manpage so it defintely
    can't fit in in 80 cols, so just forget about it. We'll live.
  - 05_eof_warnings_are_errors: Upstream decided to add a -w option to
    flac to treat all warnings as errors. I am going to defer to that
    for now, but if people think it's stupid let me know and I'll port
    the patch forward.
  - 04_stack_smasher: was a backport from 1.1.3, so it's obsolete.

Show diffs side-by-side

added added

removed removed

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